You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Shixu...

1402 lines
3.0 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var sx=Object.defineProperty,ax=Object.defineProperties;var lx=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var Cw=Object.prototype.hasOwnProperty,Bw=Object.prototype.propertyIsEnumerable;var Sw=(hi,Sn,Ft)=>Sn in hi?sx(hi,Sn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):hi[Sn]=Ft,xg=(hi,Sn)=>{for(var Ft in Sn||(Sn={}))Cw.call(Sn,Ft)&&Sw(hi,Ft,Sn[Ft]);if(vv)for(var Ft of vv(Sn))Bw.call(Sn,Ft)&&Sw(hi,Ft,Sn[Ft]);return hi},Iy=(hi,Sn)=>ax(hi,lx(Sn));var Pw=(hi,Sn)=>{var Ft={};for(var Lt in hi)Cw.call(hi,Lt)&&Sn.indexOf(Lt)<0&&(Ft[Lt]=hi[Lt]);if(hi!=null&&vv)for(var Lt of vv(hi))Sn.indexOf(Lt)<0&&Bw.call(hi,Lt)&&(Ft[Lt]=hi[Lt]);return Ft};(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},89489:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},59477:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},40001:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},26227:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},49198:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},87169:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},73331:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},15277:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},52671:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},8657:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},56082:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},33853:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},15075:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},43531:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},61485:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},38819:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},47472:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={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"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},95869:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Ie=re,ee=Ft(7657),Vt=function(bt,se){return ce.createElement(ee.Z,(0,Lt.Z)({},bt,{ref:se,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt},78780:function(){"use strict"},19136:function(){"use strict"},11570:function(hi,Sn){"use strict";Sn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},29277:function(){"use strict";function hi(Ct,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=Ct,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(hi.prototype,"name",{get:function(){return this._name},set:function(Ct){if(typeof Ct!="string"||Ct==="")throw new Error("Shape name must be a valid string.");this._name=Ct}}),Object.defineProperty(hi.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("The default value must be a real number, not: "+Ct);this._defaultValue=Ct}}),Object.defineProperty(hi.prototype,"minimum",{get:function(){return this._minimum},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("Minimum must be a real number, not: "+Ct);this._minimum=Ct}}),Object.defineProperty(hi.prototype,"maximum",{get:function(){return this._maximum},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("Maximum must be a real number, not: "+Ct);this._maximum=Ct}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ct,et){var tt=go.Shape._FigureParameters[Ct];return tt?tt[et]:null},go.Shape.setFigureParameter=function(Ct,et,tt){if(!(tt instanceof hi))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValue<tt.minimum||tt.defaultValue>tt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var lt=go.Shape._FigureParameters[Ct];lt||(lt=[],go.Shape._FigureParameters[Ct]=lt),lt[et]=tt};var Sn=[];function Ft(Ct,et){var tt=Sn.pop();return tt===void 0?new go.Point(Ct,et):(tt.x=Ct,tt.y=et,tt)}function Lt(){var Ct=Sn.pop();return Ct===void 0?new go.Point:Ct}function ce(Ct){Sn.push(Ct)}function re(Ct,et,tt,lt,rt,ht,dt,xt,Nt){Nt||(Nt=new go.Point);var Ut=Ct-tt,_t=rt-dt,oe=NaN,he=NaN;if(Ut===0)if(_t===0)Ct===tt&&(oe=Ct,he=et);else{var fe=(ht-xt)/_t,Le=ht-fe*rt;oe=Ct,he=fe*oe+Le}else if(_t===0){var te=(et-lt)/Ut,He=et-te*Ct;oe=rt,he=te*oe+He}else{var te=(et-lt)/Ut,fe=(ht-xt)/_t,He=et-te*Ct,Le=ht-fe*rt;oe=(Le-He)/(te-fe),he=te*oe+He}return Nt.x=oe,Nt.y=he,Nt}function Ie(Ct,et,tt,lt,rt,ht,dt,xt,Nt,Ut,_t,oe,he,fe){var Le=1-Nt,te=Nt,He=Ct*Le+tt*te,Wt=et*Le+lt*te,Ke=tt*Le+rt*te,_e=lt*Le+ht*te,Ne=rt*Le+dt*te,Ge=ht*Le+xt*te,Ue=He*Le+Ke*te,ve=Wt*Le+_e*te,ne=Ke*Le+Ne*te,Ce=_e*Le+Ge*te,bn=Ue*Le+ne*te,Ln=ve*Le+Ce*te;Ut.x=He,Ut.y=Wt,_t.x=Ue,_t.y=ve,oe.x=bn,oe.y=Ln,he.x=ne,he.y=Ce,fe.x=Ne,fe.y=Ge}var ee=new go.Spot(.156,.156),Vt=new go.Spot(.844,.844),Mt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new hi("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Mt,ht=new go.Geometry().add(new go.PathFigure(lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)).add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,lt,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,lt)).add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()));return rt>1&&(ht.spot1=new go.Spot(0,0,rt,rt),ht.spot2=new go.Spot(1,1,-rt,-rt)),ht}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=tt/2,lt.endX=et,lt.endY=tt/2,lt}),go.Shape.defineFigureGenerator("LineV",function(Ct,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et/2,lt.startY=0,lt.endX=et/2,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(lt*et,(1-lt)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,(1-lt)*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(Ct,et,tt){var lt=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close()));return rt.spot1=ee,rt.spot2=Vt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(Ct,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Line2",function(Ct,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et,lt.startY=0,lt.endX=0,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Curve1",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Mt*et,0,et,(1-Mt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,Mt*tt,(1-Mt)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,Mt*tt,Mt*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-Mt)*et,0,0,(1-Mt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ct,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(Ct,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(Ct,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(Ct,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 hi("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var rt=Math.abs(lt)*et;if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new hi("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et:lt>et&&(lt=et);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("Trapezoid1",0,new hi("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=.2:lt<.5?lt=-.5:lt>.5&&(lt=.5);var rt=Math.abs(lt)*et;if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new hi("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=20:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("ManualOperation",0,new hi("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.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())):ht.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())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}});var jt=[];function qt(){var Ct=jt.pop();return Ct===void 0?[]:Ct}function bt(Ct){Ct.length=0,jt.push(Ct)}function se(Ct){for(var et=qt(),tt=.5,lt=.5,rt=Math.PI*1.5,ht=0,dt=0;dt<Ct;dt++)ht=2*Math.PI/Ct*dt+rt,et[dt]=new go.Point(lt+tt*Math.cos(ht),lt+tt*Math.sin(ht));return et.push(et[0]),et}function Gt(Ct){var et=Xt(Ct),tt=qt();tt[0]=et[0];for(var lt=1,rt=1;lt<et.length;lt+=2,rt+=3)tt[rt]=et[lt],tt[rt+1]=et[lt],tt[rt+2]=et[lt+1];return bt(et),tt}function Xt(Ct){for(var et=se(Ct),tt=qt(),lt=Math.floor(et.length/2),rt=et.length-1,ht=Ct%2===0?2:1,dt=0;dt<rt;dt++){var xt=et[dt],Nt=et[dt+1],Ut=et[(lt+dt-1)%rt],_t=et[(lt+dt+ht)%rt];tt[dt*2]=xt,tt[dt*2+1]=re(xt.x,xt.y,Ut.x,Ut.y,Nt.x,Nt.y,_t.x,_t.y,new go.Point)}return tt[tt.length]=tt[0],bt(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(Ct,et,tt){var lt=se(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<5;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(Ct,et,tt){var lt=se(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<6;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(Ct,et,tt){var lt=se(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<7;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(Ct,et,tt){var lt=se(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<8;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(Ct,et,tt){var lt=se(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<9;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(Ct,et,tt){var lt=se(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(Ct,et,tt){var lt=se(12),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ct,et,tt){var lt=Xt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ct,et,tt){var lt=Xt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ct,et,tt){var lt=Xt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<14;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ct,et,tt){var lt=Xt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<16;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ct,et,tt){var lt=Xt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<18;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ct,et,tt){var lt=Xt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<20;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),bt(lt),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ct,et,tt){var lt=Gt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),bt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ct,et,tt){var lt=Gt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),bt(lt),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ct,et,tt){var lt=Gt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),bt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ct,et,tt){var lt=Gt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),bt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ct,et,tt){var lt=Gt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),bt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ct,et,tt){var lt=Gt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),bt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new hi("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new hi("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN,rt=Ct?Ct.parameter2:NaN;isNaN(lt)&&(lt=8),isNaN(rt)&&(rt=8);var ht=new go.Geometry,dt=new go.PathFigure(0,0,!0);return ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt<et/2&&rt<tt/2&&(dt.add(new go.PathSegment(go.PathSegment.Move,lt,rt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,rt).close())),ht.setSpots(0,0,1,1,lt,rt,-lt,-rt),ht}),go.Shape.setFigureParameter("Ring",0,new hi("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=8);var rt=et/2,ht=new go.Geometry,dt=new go.PathFigure(et,et/2,!0);ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var xt=Math.max(rt-lt,0);return xt>0&&(dt.add(new go.PathSegment(go.PathSegment.Move,et/2+xt,et/2)),dt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,xt,xt).close())),ht.spot1=ee,ht.spot2=Vt,ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Cloud",function(Ct,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(Ct,et,tt){var lt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(lt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close())).setSpots(lt/2,lt/2,1-lt/2,1-lt/2)}),go.Shape.setFigureParameter("Pie",0,new hi("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new hi("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN,rt=Ct?Ct.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(rt)&&(rt=315);var ht=lt%360;ht<0&&(ht+=360);var dt=rt%360,xt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(xt,xt).add(new go.PathSegment(go.PathSegment.Arc,ht,dt,xt,xt,xt,xt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ct,et,tt){var lt=Mt/Math.SQRT2*.5,rt=Math.SQRT2/2,ht=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ht*tt,et,(1-lt)*tt,(rt+lt)*et,(ht+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new hi("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var rt=Math.min(lt,et)/2,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new hi("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=Math.min(lt,et)/2,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new hi("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;if((isNaN(lt)||lt<0)&&(lt=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 ht=et/2,dt=tt/2,xt=Math.atan2(tt,et),Nt=lt-Math.min(Math.cos(xt)*lt/2,ht),Ut=lt-Math.min(Math.sin(xt)*lt/2,dt),rt=new go.Geometry,_t=new go.PathFigure(Nt,0,!0);return rt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,ht,.2*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,et-Nt,0)),_t.add(new go.PathSegment(go.PathSegment.Line,et,Ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,et,tt-Ut)),_t.add(new go.PathSegment(go.PathSegment.Line,et-Nt,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,ht,.8*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,Nt,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,tt-Ut)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Ut).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new hi("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=new go.Geometry,ht=new go.PathFigure(.1*et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new hi("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new hi("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.5);var rt=new go.Geometry,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Mt*et,0,et,(.5-Mt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Mt/2)*tt,Mt*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);lt.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 ht=.2,dt=.3,xt=0,Nt=ht*Mt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+xt)*tt,(.5-ht+dt)*et,(.5+Nt+xt)*tt,(.5-Nt+dt)*et,(.5+ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+xt)*tt,(.5+Nt+dt)*et,(.5+ht+xt)*tt,(.5+ht+dt)*et,(.5+Nt+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+xt)*tt,(1-.5+ht+dt)*et,(.5-Nt+xt)*tt,(.5+Nt+dt)*et,(.5-ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-Nt+dt)*et,(.5-ht+xt)*tt,(.5-ht+dt+.05)*et,(.5-Nt+xt-.02)*tt)),ht=.2,dt=0,xt=-.3,Nt=ht*Mt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+xt)*tt,(.5+Nt+dt)*et,(.5+ht+xt)*tt,(.5+ht+dt)*et,(.5+Nt+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+xt)*tt,(1-.5+ht+dt)*et,(.5-Nt+xt)*tt,(.5+Nt+dt)*et,(.5-ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+xt)*tt,(.5-Nt+dt)*et,(.5-ht+xt)*tt,(.5-ht+dt)*et,(.5-Nt+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Nt+dt)*et,(.5+ht+xt)*tt,(.5-ht+dt)*et,(.5+Nt+xt)*tt,(.5-Nt+dt)*et,(.5+ht+xt)*tt)),ht=.2,dt=-.3,xt=0,Nt=ht*Mt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+xt)*tt,(1-.5+ht+dt-.05)*et,(.5-Nt+xt-.02)*tt,(.5+Nt+dt)*et,(.5-ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+xt)*tt,(.5-Nt+dt)*et,(.5-ht+xt)*tt,(.5-ht+dt)*et,(.5-Nt+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+xt)*tt,(.5-ht+dt)*et,(.5+Nt+xt)*tt,(.5-Nt+dt)*et,(.5+ht+xt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+Nt+dt)*et,(.5+ht+xt)*tt,(.5+ht+dt)*et,(.5+Nt+xt)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);lt.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 ht=.1,dt=.5,xt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(dt+ht)*et,xt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*dt,tt*xt,ht*et,ht*et).close()),rt=new go.PathFigure(et*.5,0,!1),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),xt=.75,rt=new go.PathFigure((dt+ht)*et,xt*tt,!0),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*dt,tt*xt,ht*et,ht*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(Ct,et,tt){var lt=.8535533905932737,rt=.5*et,ht=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ht,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=.5,dt=.5,xt=.5,Nt=new go.PathFigure(dt*et,(xt-ht)*tt);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),ht=.4,rt=Mt*.4;var Ut=Lt(),_t=Lt(),oe=Lt(),he=Lt();Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.42,Ut,_t,oe,he,he);var fe=Lt(),Le=Lt(),te=Lt();Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.58,he,he,te,fe,Le);var He=Lt(),Wt=Lt(),Ke=Lt();Ie(dt,xt+ht,dt-rt,xt+ht,dt-ht,xt+rt,dt-ht,xt,.42,He,Wt,Ke,he,he);var _e=Lt(),Ne=Lt(),Ge=Lt();return Ie(dt,xt+ht,dt-rt,xt+ht,dt-ht,xt+rt,dt-ht,xt,.58,he,he,Ge,_e,Ne),Nt.add(new go.PathSegment(go.PathSegment.Move,Ge.x*et,Ge.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,_e.x*et,_e.y*tt,Ne.x*et,Ne.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*et,oe.y*tt,Ut.x*et,Ut.y*tt,_t.x*et,_t.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,Ge.x*et,Ge.y*tt).close()),Nt.add(new go.PathSegment(go.PathSegment.Move,Ke.x*et,Ke.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,te.x*et,te.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,fe.x*et,fe.y*tt,Le.x*et,Le.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Ke.x*et,Ke.y*tt,He.x*et,He.y*tt,Wt.x*et,Wt.y*tt).close()),ce(Ut),ce(_t),ce(oe),ce(he),ce(fe),ce(Le),ce(te),ce(He),ce(Wt),ce(Ke),ce(_e),ce(Ne),ce(Ge),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(Ct,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 hi("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var rt=(et-lt)/2,ht=rt+lt;return new go.Geometry().add(new go.PathFigure(ht,.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.4,ht=.4,dt=.5,xt=.5,Nt=Lt(),Ut=Lt(),_t=Lt(),oe=Lt(),he=new go.PathFigure((dt-ht)*et,xt*tt,!1);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.44,_t,oe,Ut,Nt,Nt),he.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,_t.x*et,_t.y*tt,oe.x*et,oe.y*tt));var fe=Ft(Ut.x,Ut.y);Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.56,Nt,Nt,Ut,_t,oe);var Le=Ft(Ut.x,Ut.y);he.add(new go.PathSegment(go.PathSegment.Line,(fe.x*.1+.95*.9)*et,fe.y*.1*tt)),he.add(new go.PathSegment(go.PathSegment.Line,.85*et,fe.y*.1*tt)),he.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),he.add(new go.PathSegment(go.PathSegment.Line,et,0)),he.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),he.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*et,.15*tt)),he.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*et,(Le.y*.1+.05*.9)*tt)),he.add(new go.PathSegment(go.PathSegment.Line,Le.x*et,Le.y*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,_t.x*et,_t.y*tt,oe.x*et,oe.y*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),ht=.35,rt=Mt*.35;var te=new go.PathFigure(dt*et,(xt-ht)*tt,!1);lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt));var He=new go.PathFigure((dt-ht)*et,xt*tt,!1);return lt.add(He),ce(Nt),ce(Ut),ce(_t),ce(oe),ce(fe),ce(Le),lt.spot1=new go.Spot(.202,.257),lt.spot2=new go.Spot(.792,.739),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("GenderFemale",function(Ct,et,tt){var lt=new go.Geometry,rt=.375,ht=0,dt=-.125,xt=rt*Mt,Nt=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+xt+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+xt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-xt+dt)*tt,(.5+xt+ht)*et,(.5-rt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-xt+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-xt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+xt+dt)*tt,(.5-xt+ht)*et,(.5+rt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ht=0,dt=-.125,xt=rt*Mt;var Nt=new go.PathFigure((1-.5+rt+ht)*et,(.5+dt)*tt,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+xt+dt)*tt,(.5+xt+ht)*et,(.5+rt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-xt+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+xt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-xt+dt)*tt,(.5-xt+ht)*et,(.5-rt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+xt+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-xt+dt)*tt));var Nt=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);return lt.add(Nt),lt.spot1=new go.Spot(.232,.136),lt.spot2=new go.Spot(.682,.611),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicImplies",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*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(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*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,lt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=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 lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicTruth",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ct,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new hi("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new hi("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.3);var ht=(1-lt)*et,dt=(.5-rt/2)*tt,xt=(.5+rt/2)*tt,Nt=new go.Geometry,Ut=new go.PathFigure(0,dt,!0);Nt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,xt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),Nt.spot1=new go.Spot(0,dt/tt);var _t=re(0,xt/tt,1,xt/tt,ht/et,1,1,.5,Lt());return Nt.spot2=new go.Spot(_t.x,_t.y),ce(_t),Nt}),go.Shape.setFigureParameter("Arrow2",0,new hi("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new hi("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ht=et-lt,dt=(tt-rt)/2,xt=dt+rt,Nt=new go.Geometry,Ut=new go.PathFigure(0,dt,!0);Nt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,0)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,ht,xt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,xt).close()),Nt.spot1=new go.Spot(0,dt/tt);var _t=re(0,xt/tt,1,xt/tt,ht/et,1,1,.5,Lt());return Nt.spot2=new go.Spot(_t.x,_t.y),ce(_t),Nt}),go.Shape.defineFigureGenerator("Chevron",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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()),lt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new hi("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Nt=re(0,.5,.3,0,0,rt/tt,.1,rt/tt,Lt());return dt.spot1=new go.Spot(Nt.x,Nt.y),Nt=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Nt),dt.spot2=new go.Spot(Nt.x,Nt.y),ce(Nt),dt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new hi("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new hi("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=100);var ht=(tt-lt)/2,dt=ht+lt,xt=(tt-rt)/2,Nt=xt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,xt=0,Nt=tt):(ht=0,dt=tt,xt=0,Nt=tt));var Ut=new go.Geometry,_t=new go.PathFigure(et,.5*tt,!0);Ut.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,Nt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,xt)),_t.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,xt).close());var oe=re(0,.5,.3,xt/tt,0,ht/tt,1,ht/tt,Lt());return Ut.spot1=new go.Spot(oe.x,oe.y),oe=re(.7,Nt/tt,1,.5,0,dt/tt,1,dt/tt,oe),Ut.spot2=new go.Spot(oe.x,oe.y),ce(oe),Ut}),go.Shape.setFigureParameter("IBeamArrow",0,new hi("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(0,rt/tt);var Nt=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Lt());return dt.spot2=new go.Spot(Nt.x,Nt.y),ce(Nt),dt}),go.Shape.setFigureParameter("IBeamArrow2",0,new hi("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new hi("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=100);var ht=(tt-lt)/2,dt=ht+lt,xt=(tt-rt)/2,Nt=xt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,xt=0,Nt=tt):(ht=0,dt=tt,xt=0,Nt=tt));var Ut=new go.Geometry,_t=new go.PathFigure(et,.5*tt,!0);Ut.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,Nt)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,Nt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,Nt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,xt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,xt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),_t.add(new go.PathSegment(go.PathSegment.Line,.7*et,xt).close()),Ut.spot1=new go.Spot(0,ht/tt);var oe=re(.7,Nt/tt,1,.5,0,dt/tt,1,dt/tt,Lt());return Ut.spot2=new go.Spot(oe.x,oe.y),ce(oe),Ut}),go.Shape.setFigureParameter("Pointer",0,new hi("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.1);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(lt,.35);var dt=re(.2,.65,1,.65,0,1,1,.5,Lt());return rt.spot2=new go.Spot(dt.x,dt.y),ce(dt),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new hi("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt.spot1=new go.Spot(lt,.35);var dt=re(0,.65,1,.65,0,1,1,.5,Lt());return rt.spot2=new go.Spot(dt.x,dt.y),ce(dt),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new hi("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.4);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,.3);var Nt=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Lt());return dt.spot2=new go.Spot(Nt.x,Nt.y),ce(Nt),dt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new hi("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=50);var rt=(tt-lt)/2,ht=rt+lt;lt>tt&&(rt=0,ht=tt);var dt=new go.Geometry,xt=new go.PathFigure(et,.5*tt,!0);dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,rt/tt);var Nt=re(.7,1,1,.5,0,ht/tt,1,ht/tt,Lt());return dt.spot2=new go.Spot(Nt.x,Nt.y),ce(Nt),dt}),go.Shape.setFigureParameter("SquareArrow",0,new hi("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.7);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(lt,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=Mt*.1,dt=new go.PathFigure(0,.9*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);lt.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 ht=new go.PathFigure(0,.9*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.82),lt}),go.Shape.defineFigureGenerator("Cube1",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);lt.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 ht=new go.PathFigure(.5*et,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.5,.85),lt}),go.Shape.defineFigureGenerator("Cube2",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);lt.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 ht=new go.PathFigure(0,.3*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.7,1),lt}),go.Shape.defineFigureGenerator("Cylinder1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Mt*.5,dt=new go.PathFigure(0,lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Mt*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ht)*et,0,1*et,Mt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-Mt*lt,(.5+ht)*et,1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,1*tt,0,tt-Mt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt));var xt=new go.PathFigure(et,lt,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Mt*lt,(.5+ht)*et,2*lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ht)*et,2*lt,0,2*lt-Mt*lt)),rt.spot1=new go.Spot(0,0,0,2*lt),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Mt*.5,dt=new go.PathFigure(0,tt-lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Mt*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ht)*et,0,et,Mt*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-Mt*lt,(.5+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,tt,0,tt-Mt*lt));var xt=new go.PathFigure(0,tt-lt,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Mt*lt,(.5-ht)*et,tt-2*lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ht)*et,tt-2*lt,et,tt-lt-Mt*lt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*lt),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ht=Mt*.5,dt=new go.PathFigure(lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Mt*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Mt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Mt*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Mt*lt,0));var xt=new go.PathFigure(lt,0,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Mt*lt,0,2*lt,(.5-ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ht)*tt,lt+Mt*lt,tt)),rt.spot1=new go.Spot(0,0,2*lt,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ht=Mt*.5,dt=new go.PathFigure(et-lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Mt*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Mt*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Mt*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Mt*lt,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var xt=new go.PathFigure(et-lt,0,!1);return rt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Mt*lt,0,et-2*lt,(.5-ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ht)*tt,et-lt-Mt*lt,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*lt,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);lt.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 ht=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.408,.172),lt.spot2=new go.Spot(.833,.662),lt}),go.Shape.defineFigureGenerator("Prism2",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);lt.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 ht=new go.PathFigure(0,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("Pyramid1",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.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 ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Pyramid2",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.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 ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Actor",function(Ct,et,tt){var lt=new go.Geometry,rt=.2,ht=.1,dt=Mt*rt,xt=Mt*ht,Nt=.5,Ut=.1,_t=new go.PathFigure(Nt*et,(Ut+ht)*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-rt)*et,Ut*tt,(Nt-dt)*et,(Ut+ht)*tt,(Nt-rt)*et,(Ut+xt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-ht)*tt,(Nt-rt)*et,(Ut-xt)*tt,(Nt-dt)*et,(Ut-ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+rt)*et,Ut*tt,(Nt+dt)*et,(Ut-ht)*tt,(Nt+rt)*et,(Ut-xt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+ht)*tt,(Nt+rt)*et,(Ut+xt)*tt,(Nt+dt)*et,(Ut+ht)*tt));var oe=.05,he=Mt*oe;Nt=.05,Ut=.25;var fe=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),Nt=.95,Ut=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+oe)*et,Ut*tt,(Nt+he)*et,(Ut-oe)*tt,(Nt+oe)*et,(Ut-he)*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),oe=.025,he=Mt*oe,Nt=.825,Ut=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-oe)*tt,(Nt+oe)*et,(Ut-he)*tt,(Nt+he)*et,(Ut-oe)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-oe)*et,Ut*tt,(Nt-he)*et,(Ut-oe)*tt,(Nt-oe)*et,(Ut-he)*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),oe=.05,he=Mt*oe,Nt=.5,Ut=.7,fe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-oe)*tt,(Nt+oe)*et,(Ut-he)*tt,(Nt+he)*et,(Ut-oe)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-oe)*et,Ut*tt,(Nt-he)*et,(Ut-oe)*tt,(Nt-oe)*et,(Ut-he)*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),oe=.025,he=Mt*oe,Nt=.175,Ut=.35,fe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-oe)*tt,(Nt+oe)*et,(Ut-he)*tt,(Nt+he)*et,(Ut-oe)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-oe)*et,Ut*tt,(Nt-he)*et,(Ut-oe)*tt,(Nt-oe)*et,(Ut-he)*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),oe=.05,he=Mt*oe,Nt=.05,Ut=.25,fe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-oe)*tt,(Nt-oe)*et,(Ut-he)*tt,(Nt-he)*et,(Ut-oe)*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),lt.spot1=new go.Spot(.2,.2),lt.spot2=new go.Spot(.8,.65),lt}),go.Shape.setFigureParameter("Card",0,new hi("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ht=new go.PathFigure(et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=new go.Spot(0,lt),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);lt.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 ht=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,.25),lt}),go.Shape.defineFigureGenerator("CreateRequest",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=Mt*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var xt=new go.PathFigure(et,.1*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ht)*tt,(.5+rt)*et,.4*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ht)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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()),lt.spot1=new go.Spot(.226,0),lt.spot2=new go.Spot(.81,1),lt}),go.Shape.defineFigureGenerator("DiskStorage",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=Mt*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var xt=new go.PathFigure(et,.1*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return lt.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()),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("DividedEvent",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ht=Mt*.2,dt=new go.PathFigure(0,.2*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ht)*tt,(.2-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ht)*et,0,et,(.2-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ht)*tt,(.8+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ht)*et,tt,0,(.8+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var xt=new go.PathFigure(0,rt*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(Ct,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return lt.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()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.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 ht=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("File",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(.75*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Interrupt",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);lt.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 ht=new go.PathFigure(et,.5*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt));var dt=new go.PathFigure(et,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("InternalStorage",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.1);var dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var xt=new go.PathFigure(rt*et,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Move,0,ht*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(Ct,et,tt){var lt=new go.Geometry,rt=1/Math.SQRT2,ht=(1-1/Math.SQRT2)/2,dt=Mt*.5,xt=.5,Nt=new go.PathFigure(et,xt*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,tt,et,(xt+dt)*tt,(xt+dt)*et,tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,xt*tt,(xt-dt)*et,tt,0,(xt+dt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,0,0,(xt-dt)*tt,(xt-dt)*et,0)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et,xt*tt,(xt+dt)*et,0,et,(xt-dt)*tt));var Ut=new go.PathFigure((ht+rt)*et,(ht+rt)*tt,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*tt)),Ut.add(new go.PathSegment(go.PathSegment.Move,ht*et,(ht+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,(ht+rt)*et,ht*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(Ct,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);lt.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 ht=new go.PathFigure(.1*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),lt.spot1=new go.Spot(.1,0),lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("LoopLimit",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.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()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MagneticTape",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=.5,dt=new go.PathFigure(.5*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ht+.1)*et,.9*tt,et,(ht+rt)*tt,(ht+rt)*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.8),lt}),go.Shape.defineFigureGenerator("ManualInput",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!0);return lt.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()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.7);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("MultiDocument",function(Ct,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);lt.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 ht=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.8,.77),lt}),go.Shape.defineFigureGenerator("MultiProcess",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);lt.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 ht=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),lt.spot1=new go.Spot(0,.2),lt.spot2=new go.Spot(.8,1),lt}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=1-rt,dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var xt=new go.PathFigure(.5*rt*et,rt*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("Or",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var xt=new go.PathFigure(et,.5*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(Ct,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return lt.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()),lt.spot1=new go.Spot(0,.49),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ht=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure((1-rt)*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.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 ht=new go.PathFigure(0,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.5),lt}),go.Shape.defineFigureGenerator("Start",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(rt*et,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),lt.spot1=new go.Spot(rt,0),lt.spot2=new go.Spot(1-rt,1),lt}),go.Shape.defineFigureGenerator("Terminator",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return lt.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)),lt.spot1=new go.Spot(.23,0),lt.spot2=new go.Spot(.77,1),lt}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.55,1),lt}),go.Shape.defineFigureGenerator("Buffer",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Clock",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var xt=new go.PathFigure(et,ht*tt,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt));var Nt=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),lt}),go.Shape.defineFigureGenerator("Ground",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Inverter",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.1,ht=.1,dt=.9,xt=.5,Nt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Ut=new go.PathFigure((dt+ht)*et,xt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=Mt*.4,dt=Mt*.1,xt=.1,Nt=.9,Ut=.5,_t=new go.PathFigure(.8*et,.5*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ht)*tt,(.4+rt)*et,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,0)),_t.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),_t.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ht)*tt));var oe=new go.PathFigure((Nt+xt)*et,Ut*tt,!0);return lt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+xt)*tt,(Nt+xt)*et,(Ut+dt)*tt,(Nt+dt)*et,(Ut+xt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et,Ut*tt,(Nt-dt)*et,(Ut+xt)*tt,(Nt-xt)*et,(Ut+dt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-xt)*tt,(Nt-xt)*et,(Ut-dt)*tt,(Nt-dt)*et,(Ut-xt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et,Ut*tt,(Nt+dt)*et,(Ut-xt)*tt,(Nt+xt)*et,(Ut-dt)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*rt,dt=0,xt=.5,Nt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(xt-rt)*tt,.7*et,(xt-ht)*tt)),rt=.1,ht=Mt*.1,dt=.9,xt=.5;var Ut=new go.PathFigure((dt-rt)*et,xt*tt,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*rt,dt=0,xt=.5,Nt=new go.PathFigure(0,0,!0);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht+ht)*et,(xt-rt)*tt,.8*et,(xt-ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(xt+ht)*tt,(dt+ht+ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("XnorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*rt,dt=.2,xt=.5,Nt=new go.PathFigure(.1*et,0,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ut=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(xt-rt)*tt,.7*et,(xt-ht)*tt)),rt=.1,ht=Mt*.1,dt=.9,xt=.5;var _t=new go.PathFigure((dt-rt)*et,xt*tt,!0);return lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*rt,dt=.2,xt=.5,Nt=new go.PathFigure(.1*et,0,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ut=new go.PathFigure(.2*et,0,!0);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht)*et,(xt-rt)*tt,.9*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.8,.75),lt}),go.Shape.defineFigureGenerator("Capacitor",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Resistor",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Inductor",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.1,ht=.1,dt=.1,xt=.5,Nt=new go.PathFigure((dt-rt*.5)*et,tt,!1);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.3,Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.5,Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.7,Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.9,Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt*.5)*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.5,ht=.5,dt=.5,xt=.5,Nt=new go.PathFigure((dt-ht)*et,xt*tt,!1);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt-ht)*tt,(dt+ht)*et,(xt-rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Move,(dt-ht+.1)*et,xt*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht-.1)*et,xt*tt,dt*et,(xt-ht)*tt,dt*et,(xt+ht)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Diode",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!1);return lt.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)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Wifi",function(Ct,et,tt){var lt=new go.Geometry,rt=et,ht=tt;et=et*.38,tt=tt*.6;var dt=Mt*.8,xt=.8,Nt=0,Ut=.5,_t=(rt-et)/2,oe=(ht-tt)/2,he=new go.PathFigure(Nt*et+_t,(Ut+xt)*tt+oe,!0);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et+_t,Ut*tt+oe,(Nt-dt)*et+_t,(Ut+xt)*tt+oe,(Nt-xt)*et+_t,(Ut+dt)*tt+oe)),he.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut-xt)*tt+oe,(Nt-xt)*et+_t,(Ut-dt)*tt+oe,(Nt-dt)*et+_t,(Ut-xt)*tt+oe)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt+dt*.5)*et+_t,Ut*tt+oe,Nt*et+_t,(Ut-xt)*tt+oe,(Nt-xt+dt*.5)*et+_t,(Ut-dt)*tt+oe)),he.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut+xt)*tt+oe,(Nt-xt+dt*.5)*et+_t,(Ut+dt)*tt+oe,Nt*et+_t,(Ut+xt)*tt+oe).close()),dt=Mt*.4,xt=.4,Nt=.2,Ut=.5;var fe=new go.PathFigure(Nt*et+_t,(Ut+xt)*tt+oe,!0);lt.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et+_t,Ut*tt+oe,(Nt-dt)*et+_t,(Ut+xt)*tt+oe,(Nt-xt)*et+_t,(Ut+dt)*tt+oe)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut-xt)*tt+oe,(Nt-xt)*et+_t,(Ut-dt)*tt+oe,(Nt-dt)*et+_t,(Ut-xt)*tt+oe)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt+dt*.5)*et+_t,Ut*tt+oe,Nt*et+_t,(Ut-xt)*tt+oe,(Nt-xt+dt*.5)*et+_t,(Ut-dt)*tt+oe)),fe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut+xt)*tt+oe,(Nt-xt+dt*.5)*et+_t,(Ut+dt)*tt+oe,Nt*et+_t,(Ut+xt)*tt+oe).close()),dt=Mt*.2,xt=.2,Nt=.5,Ut=.5;var Le=new go.PathFigure((Nt-xt)*et+_t,Ut*tt+oe,!0);lt.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut-xt)*tt+oe,(Nt-xt)*et+_t,(Ut-dt)*tt+oe,(Nt-dt)*et+_t,(Ut-xt)*tt+oe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et+_t,Ut*tt+oe,(Nt+dt)*et+_t,(Ut-xt)*tt+oe,(Nt+xt)*et+_t,(Ut-dt)*tt+oe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut+xt)*tt+oe,(Nt+xt)*et+_t,(Ut+dt)*tt+oe,(Nt+dt)*et+_t,(Ut+xt)*tt+oe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et+_t,Ut*tt+oe,(Nt-dt)*et+_t,(Ut+xt)*tt+oe,(Nt-xt)*et+_t,(Ut+dt)*tt+oe)),dt=Mt*.4,xt=.4,Nt=.8,Ut=.5;var te=new go.PathFigure(Nt*et+_t,(Ut-xt)*tt+oe,!0);lt.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et+_t,Ut*tt+oe,(Nt+dt)*et+_t,(Ut-xt)*tt+oe,(Nt+xt)*et+_t,(Ut-dt)*tt+oe)),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut+xt)*tt+oe,(Nt+xt)*et+_t,(Ut+dt)*tt+oe,(Nt+dt)*et+_t,(Ut+xt)*tt+oe)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt-dt*.5)*et+_t,Ut*tt+oe,Nt*et+_t,(Ut+xt)*tt+oe,(Nt+xt-dt*.5)*et+_t,(Ut+dt)*tt+oe)),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut-xt)*tt+oe,(Nt+xt-dt*.5)*et+_t,(Ut-dt)*tt+oe,Nt*et+_t,(Ut-xt)*tt+oe).close()),dt=Mt*.8,xt=.8,Nt=1,Ut=.5;var He=new go.PathFigure(Nt*et+_t,(Ut-xt)*tt+oe,!0);return lt.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et+_t,Ut*tt+oe,(Nt+dt)*et+_t,(Ut-xt)*tt+oe,(Nt+xt)*et+_t,(Ut-dt)*tt+oe)),He.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut+xt)*tt+oe,(Nt+xt)*et+_t,(Ut+dt)*tt+oe,(Nt+dt)*et+_t,(Ut+xt)*tt+oe)),He.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt-dt*.5)*et+_t,Ut*tt+oe,Nt*et+_t,(Ut+xt)*tt+oe,(Nt+xt-dt*.5)*et+_t,(Ut+dt)*tt+oe)),He.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+_t,(Ut-xt)*tt+oe,(Nt+xt-dt*.5)*et+_t,(Ut-dt)*tt+oe,Nt*et+_t,(Ut-xt)*tt+oe).close()),lt}),go.Shape.defineFigureGenerator("Email",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(0,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);lt.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 ht=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var dt=new go.PathFigure(.6*et,tt,!0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var xt=new go.PathFigure(0,.5*tt,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(Ct,et,tt){var lt=new go.Geometry,rt=Mt*.4,ht=.4,dt=.5,xt=.5,Nt=Lt(),Ut=Lt(),_t=Lt(),oe=Lt();Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.5,Nt,Nt,Ut,_t,oe);var he=Ft(Ut.x,Ut.y),fe=new go.PathFigure(Ut.x*et,Ut.y*tt,!0);lt.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,_t.x*et,_t.y*tt,oe.x*et,oe.y*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),Ie(dt-ht,xt,dt-ht,xt-rt,dt-rt,xt-ht,dt,xt-ht,.5,_t,oe,Ut,Nt,Nt),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,_t.x*et,_t.y*tt,oe.x*et,oe.y*tt)),rt=Mt*.3,ht=.3,Ie(dt-ht,xt,dt-ht,xt-rt,dt-rt,xt-ht,dt,xt-ht,.5,_t,oe,Ut,Nt,Nt),fe.add(new go.PathSegment(go.PathSegment.Line,Ut.x*et,Ut.y*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,oe.x*et,oe.y*tt,_t.x*et,_t.y*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ie(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.5,Nt,Nt,Ut,_t,oe),fe.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,oe.x*et,oe.y*tt,_t.x*et,_t.y*tt).close());var fe=new go.PathFigure(.45*et,0,!0);return lt.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),fe.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ce(Nt),ce(Ut),ce(_t),ce(oe),ce(he),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ht(dt,xt,Nt){dt.add(new go.PathSegment(go.PathSegment.Move,(.3+xt)*et,(.8+Nt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.5+xt)*et,(.5+Nt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.1+xt)*et,(.5+Nt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.3+xt)*et,(.8+Nt)*tt).close())}return ht(rt,0,0),ht(rt,.4,0),ht(rt,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return lt.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()),lt.spot1=new go.Spot(.3,.3),lt.spot2=new go.Spot(.7,.7),lt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("FireHazard",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return lt.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()),lt.spot1=new go.Spot(.07,.445),lt.spot2=new go.Spot(.884,.958),lt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=0,dt=0,xt=rt*Mt,Nt=.4*Math.SQRT2/2+.5,Ut=.5-.5*Math.SQRT2/2,_t=1,oe=.5,he=.5,fe=0,Le=new go.PathFigure(Nt*et,(1-Ut)*tt,!1);return lt.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,oe*tt,_t*et,.7*tt,_t*et,oe*tt)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(he+ht)*et,(fe+ht)*tt,(.5+rt+ht)*et,(.5-xt+ht)*tt,(.5+xt+ht)*et,(.5-rt+ht)*tt)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-xt+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-xt+dt)*tt)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ht)*et,.9*tt,(.5-rt+ht)*et,(.5+xt+dt)*tt,(.5-xt+ht)*et,.9*tt)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+ht)*et,.8*tt)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+ht)*et,.9*tt)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+ht)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(et,tt,!1);lt.add(ht);var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);lt.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 lt.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)),lt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);lt.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 ht=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var dt=.5-.285,xt=.5,Nt=dt,Ut=Math.PI/4,_t=4*(1-Math.cos(Ut))/(3*Math.sin(Ut)),oe=_t*.5,he=dt,fe=dt,Le=_t*he,te=_t*fe;ht.add(new go.PathSegment(go.PathSegment.Bezier,(xt-he)*et,Nt*tt,(xt-(Le+he)/2)*et,(Nt+(fe+te)/2)*tt,(xt-he)*et,(Nt+te)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,(Nt-fe)*tt,(xt-he)*et,(Nt-te)*tt,(xt-Le)*et,(Nt-fe)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(xt+he)*et,Nt*tt,(xt+Le)*et,(Nt-fe)*tt,(xt+he)*et,(Nt-te)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(xt+he)*et,(Nt+te)*tt,(xt+(Le+he)/2)*et,(Nt+(fe+te)/2)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var He=new go.PathFigure(.2*et,tt,!1);lt.add(He),He.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var Wt=new go.PathFigure(.8*et,tt,!1);return lt.add(Wt),Wt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);lt.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 ht=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(et,tt,!1);lt.add(ht);var dt=new go.PathFigure(.1*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);lt.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 ht=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ht)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ht*et,ht*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)),lt}),go.Shape.defineFigureGenerator("Recycle",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);lt.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 ht=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var dt=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*.5,dt=new go.PathFigure(et,rt*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ht)*tt,(rt+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ht)*et,tt,0,(rt+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ht)*tt,(rt-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ht)*et,0,et,(rt-ht)*tt));var xt=new go.PathFigure(rt*et,0,!1);return lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),xt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);lt.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 ht=new go.PathFigure(0,.15*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),lt.spot1=new go.Spot(0,.1),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Class",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,tt,!0);lt.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 ht=new go.PathFigure(0,.2*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var dt=new go.PathFigure(0,.6*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);lt.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 ht=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("Workcell",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("Supermarket",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("TruckShipment",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(et,.8*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var dt=.1,xt=Mt*.1,Nt=.2,Ut=.9,_t=new go.PathFigure((Nt-dt)*et,Ut*tt,!0);lt.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-dt)*tt,(Nt-dt)*et,(Ut-xt)*tt,(Nt-xt)*et,(Ut-dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+dt)*et,Ut*tt,(Nt+xt)*et,(Ut-dt)*tt,(Nt+dt)*et,(Ut-xt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+dt)*tt,(Nt+dt)*et,(Ut+xt)*tt,(Nt+xt)*et,(Ut+dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-dt)*et,Ut*tt,(Nt-xt)*et,(Ut+dt)*tt,(Nt-dt)*et,(Ut+xt)*tt).close()),dt=.1,xt=Mt*.1,Nt=.8,Ut=.9;var oe=new go.PathFigure((Nt-dt)*et,Ut*tt,!0);return lt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-dt)*tt,(Nt-dt)*et,(Ut-xt)*tt,(Nt-xt)*et,(Ut-dt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+dt)*et,Ut*tt,(Nt+xt)*et,(Ut-dt)*tt,(Nt+dt)*et,(Ut-xt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+dt)*tt,(Nt+dt)*et,(Ut+xt)*tt,(Nt+xt)*et,(Ut+dt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-dt)*et,Ut*tt,(Nt-xt)*et,(Ut+dt)*tt,(Nt-dt)*et,(Ut+xt)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Forklift",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(0,.5*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var dt=new go.PathFigure(.5*et,.8*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var xt=new go.PathFigure(.5*et,.7*tt,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var Nt=.1,Ut=Mt*.1,_t=.1,oe=.9,he=new go.PathFigure((_t-Nt)*et,oe*tt,!0);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(oe-Nt)*tt,(_t-Nt)*et,(oe-Ut)*tt,(_t-Ut)*et,(oe-Nt)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Nt)*et,oe*tt,(_t+Ut)*et,(oe-Nt)*tt,(_t+Nt)*et,(oe-Ut)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(oe+Nt)*tt,(_t+Nt)*et,(oe+Ut)*tt,(_t+Ut)*et,(oe+Nt)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Nt)*et,oe*tt,(_t-Ut)*et,(oe+Nt)*tt,(_t-Nt)*et,(oe+Ut)*tt)),Nt=.1,Ut=Mt*.1,_t=.4,oe=.9;var fe=new go.PathFigure((_t-Nt)*et,oe*tt,!0);return lt.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(oe-Nt)*tt,(_t-Nt)*et,(oe-Ut)*tt,(_t-Ut)*et,(oe-Nt)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(_t+Nt)*et,oe*tt,(_t+Ut)*et,(oe-Nt)*tt,(_t+Nt)*et,(oe-Ut)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,_t*et,(oe+Nt)*tt,(_t+Nt)*et,(oe+Ut)*tt,(_t+Ut)*et,(oe+Nt)*tt)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(_t-Nt)*et,oe*tt,(_t-Ut)*et,(oe+Nt)*tt,(_t-Nt)*et,(oe+Ut)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);lt.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 ht=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var dt=new go.PathFigure(.55*et,.4*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var _t=.05,oe=Mt*.05,he=.175,fe=.95,xt=new go.PathFigure((he-_t)*et,fe*tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe-_t)*tt,(he-_t)*et,(fe-oe)*tt,(he-oe)*et,(fe-_t)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,fe*tt,(he+oe)*et,(fe-_t)*tt,(he+_t)*et,(fe-oe)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe+_t)*tt,(he+_t)*et,(fe+oe)*tt,(he+oe)*et,(fe+_t)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,fe*tt,(he-oe)*et,(fe+_t)*tt,(he-_t)*et,(fe+oe)*tt));var _t=.05,oe=Mt*.05,he=.375,fe=.95,Nt=new go.PathFigure((he-_t)*et,fe*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe-_t)*tt,(he-_t)*et,(fe-oe)*tt,(he-oe)*et,(fe-_t)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,fe*tt,(he+oe)*et,(fe-_t)*tt,(he+_t)*et,(fe-oe)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe+_t)*tt,(he+_t)*et,(fe+oe)*tt,(he+oe)*et,(fe+_t)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,fe*tt,(he-oe)*et,(fe+_t)*tt,(he-_t)*et,(fe+oe)*tt));var _t=.05,oe=Mt*.05,he=.625,fe=.95,Ut=new go.PathFigure((he-_t)*et,fe*tt,!0);lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe-_t)*tt,(he-_t)*et,(fe-oe)*tt,(he-oe)*et,(fe-_t)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,fe*tt,(he+oe)*et,(fe-_t)*tt,(he+_t)*et,(fe-oe)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe+_t)*tt,(he+_t)*et,(fe+oe)*tt,(he+oe)*et,(fe+_t)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,fe*tt,(he-oe)*et,(fe+_t)*tt,(he-_t)*et,(fe+oe)*tt));var _t=.05,oe=Mt*.05,he=.825,fe=.95,Le=new go.PathFigure((he-_t)*et,fe*tt,!0);lt.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe-_t)*tt,(he-_t)*et,(fe-oe)*tt,(he-oe)*et,(fe-_t)*tt)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(he+_t)*et,fe*tt,(he+oe)*et,(fe-_t)*tt,(he+_t)*et,(fe-oe)*tt)),Le.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(fe+_t)*tt,(he+_t)*et,(fe+oe)*tt,(he+oe)*et,(fe+_t)*tt)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(he-_t)*et,fe*tt,(he-oe)*et,(fe+_t)*tt,(he-_t)*et,(fe+oe)*tt).close());var te=new go.PathFigure(0,tt,!1);return lt.add(te),te.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(.15*et,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var xt=.05,Nt=Mt*.05,Ut=.35,_t=.775,oe=new go.PathFigure((Ut-xt)*et,_t*tt,!0);return lt.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(_t-xt)*tt,(Ut-xt)*et,(_t-Nt)*tt,(Ut-Nt)*et,(_t-xt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ut+xt)*et,_t*tt,(Ut+Nt)*et,(_t-xt)*tt,(Ut+xt)*et,(_t-Nt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(_t+xt)*tt,(Ut+xt)*et,(_t+Nt)*tt,(Ut+Nt)*et,(_t+xt)*tt)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Ut-xt)*et,_t*tt,(Ut-Nt)*et,(_t+xt)*tt,(Ut-xt)*et,(_t+Nt)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("Bluetooth",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.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)),lt}),go.Shape.defineFigureGenerator("Globe",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Wave",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return lt.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)),lt}),go.Shape.defineFigureGenerator("Operator",function(Ct,et,tt){var lt=new go.Geometry,rt=.3,ht=Mt*.3,dt=.5,xt=.7,Nt=new go.PathFigure((dt-rt)*et,xt*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt));var Ut=new go.PathFigure(0,.7*tt,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return lt.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)),lt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!0);return lt.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)),lt}),go.Shape.defineFigureGenerator("Battery",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);lt.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 ht=new go.PathFigure(0,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*.5,dt=.5,xt=.5,Nt=new go.PathFigure((dt-rt)*et,xt*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt));var Ut=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("Help",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ht=Mt*.5,dt=.5,xt=.5,Nt=new go.PathFigure((dt-rt)*et,xt*tt,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt).close()),rt=.05,ht=Mt*.05,dt=.5,xt=.8;var Ut=new go.PathFigure((dt-rt)*et,xt*tt,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,xt*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt).close()),Ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),lt}),go.Shape.defineFigureGenerator("Location",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);lt.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 ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);lt.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 ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("Map",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return lt.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)),lt}),go.Shape.defineFigureGenerator("Eject",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);lt.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 ht=new go.PathFigure(0,tt*.6,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);lt.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 ht=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var dt=new go.PathFigure(.402*et,.85*tt,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var xt=new go.PathFigure(.678*et,.85*tt,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),xt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var Nt=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),lt}),go.Shape.defineFigureGenerator("Staircase",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("5Bars",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);lt.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 ht=new go.PathFigure(et*.204,tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var dt=new go.PathFigure(et*.408,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var xt=new go.PathFigure(et*.612,tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),xt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),xt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var Nt=new go.PathFigure(et*.816,tt,!0);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),Nt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),Nt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),lt}),go.Shape.defineFigureGenerator("PC",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.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 ht=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var dt=new go.PathFigure(et*.055,.13*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var xt=new go.PathFigure(et*.055,.18*tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var Nt=new go.PathFigure(et*1,0,!0);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),lt}),go.Shape.defineFigureGenerator("Plane",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("Key",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return lt.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()),lt}),go.Shape.defineFigureGenerator("FilmTape",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.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 ht=new go.PathFigure(0,0,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var dt=new go.PathFigure(et*.11,tt*.1,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var xt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),xt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),xt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var Nt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),lt}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ct,et,tt){var lt=new go.Geometry,rt=8,ht=rt*Mt,dt=new go.PathFigure(rt,0,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ht,ht,0).close());var xt=new go.PathFigure(et*.83,0,!1);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var Nt=new go.PathFigure(et*.83,tt*1,!1);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),Nt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Ut=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Ut.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Mt,ht=tt*.8,dt=new go.Geometry,xt=new go.PathFigure(lt,0,!0);return dt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)),xt.add(new go.PathSegment(go.PathSegment.Line,et,ht-lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ht,et,ht-rt,et-rt,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),xt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ht)),xt.add(new go.PathSegment(go.PathSegment.Line,lt,ht)),xt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht-lt,rt,ht,0,ht-rt)),xt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()),rt>1?(dt.spot1=new go.Spot(0,0,rt,rt),dt.spot2=new go.Spot(1,.8,-rt,-rt)):(dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(1,.8)),dt}),go.Shape.defineFigureGenerator("Repeat",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);lt.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 ht=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);lt.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 ht=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var dt=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(Ct,et,tt){var lt=new go.Geometry,rt=15,ht=rt*Mt,dt=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ht>1?(lt.spot1=new go.Spot(0,0,ht,ht),lt.spot2=new go.Spot(1,1,-ht,-ht)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.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-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),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-ht)).close());var dt=new go.PathFigure(et*.4,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.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-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),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-ht)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.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-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),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-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),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-ht)).close());var dt=new go.PathFigure(et*.5,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return lt.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()),lt}),go.Shape.defineFigureGenerator("Drink",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);lt.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 ht=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return lt.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()),lt}),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")},5559: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 hi={},Sn="5.0",Ft={},Lt=null,ce=!1,re=!1,Ie=null,ee=!1,Vt=null,Mt=null,jt=0;jt<arguments.length;jt++){var qt=arguments[jt];if(qt!==null)switch(typeof qt){case"number":Sn=qt.toFixed(1);break;case"string":qt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Sn=qt:Ie=qt;break;case"object":typeof qt.is3D!="undefined"?Lt=qt:Ft=qt;break;case"boolean":ce=qt,re=!0;break}}Lt===null&&(Lt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ft.material_id!==void 0&&!re&&(ce=!0)),Ie!==null&&Ft.id===void 0&&(Ft.id=Ie);var bt="",se="",Gt=!1,Xt=null,Ct=null,et=null,tt=!1,lt=null,rt=null,ht=null,dt=null,xt=null;Ft.height!==void 0&&(Ft.height=Math.round(Ft.height)),Ft.width!==void 0&&(Ft.width=Math.round(Ft.width));var Nt=function(Ve){return parseFloat(Ve)>4?parseFloat(Ve):5};hi.setHTML5Codebase=function(Ve,Nn){Mt=Ve,Ce(Ve,Nn)},hi.setJavaCodebase=hi.setJavaCodebaseVersion=hi.isCompiledInstalled=hi.setPreCompiledScriptPath=hi.setPreCompiledResourcePath=function(){},hi.setHTML5CodebaseVersion=function(Ve,Nn){var Zn=parseFloat(Ve);if(Zn!==NaN&&Zn<5){console.log("The GeoGebra HTML5 codebase version "+Zn+" is deprecated. Using version latest instead.");return}Vt=Ve,ne(Ve,Nn)},hi.getHTML5CodebaseVersion=function(){return Ct},hi.getParameters=function(){return Ft},hi.setFontsCSSURL=function(Ve){dt=Ve},hi.setGiacJSURL=function(Ve){},hi.setJNLPFile=function(Ve){bt=Ve},hi.setJNLPBaseDir=function(Ve){},hi.inject=function(){function Ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Nn="auto",Zn=Ft.id,gi,Kn=!1,Pi=0;Pi<arguments.length;Pi++){var tn=arguments[Pi];typeof tn=="string"?(tn=tn.toLowerCase(),tn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Nn=tn:Zn=arguments[Pi]):typeof tn=="boolean"?Kn=tn:tn instanceof HTMLElement&&(gi=tn)}Li();function Li(){if(!ee){setTimeout(Li,200);return}Nn=Ue(Nn);var ji=gi||document.getElementById(Zn);if(!ji){console.log("possibly bug on ajax loading? ");return}if(hi.removeExistingApplet(ji,!1),Ft.width===void 0&&ji.clientWidth&&(Ft.width=ji.clientWidth),Ft.height===void 0&&ji.clientHeight&&(Ft.height=ji.clientHeight),!(Ft.width&&Ft.height)&&Nn==="html5"&&(delete Ft.width,delete Ft.height),Xt=Nn,Nn==="screenshot")Wt(ji,Ft);else{var Ot=!1;Ft.hasOwnProperty("playButton")&&Ft.playButton||Ft.hasOwnProperty("clickToLoad")&&Ft.clickToLoad?Ot=!0:Ft.hasOwnProperty("playButtonAutoDecide")&&Ft.playButtonAutoDecide&&(Ot=(!Ut()||Ve())&&_t()),Ot?(Xt="screenshot",_e(ji,Ft,Kn,Nn)):He(ji,Ft,Kn)}}};function Ut(){try{return window.self!==window.top}catch(Ve){return!0}}function _t(){return Ft.hasOwnProperty("screenshotGenerator")&&Ft.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}hi.getViews=function(){return Lt},hi.isJavaInstalled=function(){return!1};var oe=function(Ve){var Nn=function(Pi){var tn=JSON.parse(Pi),Li=function(Tt){return Tt.type=="G"||Tt.type=="E"},ji=tn.elements?tn.elements.filter(Li)[0]:tn;if(!ji||!ji.url){Zn();return}Ft.fileName=ji.url,he(ji.settings||{}),Lt.is3D=!0;var Ot="https://www.geogebra.org/images/";hi.setPreviewImage(lt||ji.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),Ve()},Zn=function(){Ft.onError&&Ft.onError(),bn("Error: Fetching material (id "+Ft.material_id+") failed.",Ft)},gi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Kn="/materials/"+Ft.material_id+"?scope=basic";fe("https://"+gi+"/api/proxy.php?path="+encodeURIComponent(Kn),Nn,Zn)};function he(Ve){var Nn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Zn){Ve[Zn]=!!Ve[Zn]}),Nn.forEach(function(Zn){Ft[Zn]===void 0&&Ve[Zn]!==void 0&&(Ft[Zn]=Ve[Zn])}),Ft.showToolBarHelp===void 0&&(Ft.showToolBarHelp=Ft.showToolBar)}function fe(Ve,Nn,Zn){var gi=new XMLHttpRequest;gi.open("GET",Ve),gi.onload=function(){Nn(gi.responseText)},gi.onerror=Zn,gi.send()}hi.isHTML5Installed=function(){return!0},hi.getLoadedAppletType=function(){return Xt},hi.setPreviewImage=function(Ve,Nn,Zn){lt=Ve,rt=Nn,ht=Zn},hi.removeExistingApplet=function(Ve,Nn){var Zn;typeof Ve=="string"&&(Ve=document.getElementById(Ve)),Xt=null;var gi=null;for(Zn=0;Zn<Ve.childNodes.length;Zn++){var Kn=Ve.childNodes[Zn],Pi=Kn.className;Pi==="applet_screenshot"?Nn?(Kn.style.display="block",Xt="screenshot"):Kn.style.display="none":Pi!=="applet_scaler prerender"&&(Ve.removeChild(Kn),gi=Pi&&Pi.indexOf("appletParameters")!=-1?Kn.id:null,Zn--)}var tn=Ft.id!==void 0?Ft.id:gi,Li=window[tn];Li&&typeof Li.getBase64=="function"&&(Li.remove(),window[tn]=null)},hi.refreshHitPoints=function(){if(Nt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ve=hi.getAppletObject();return Ve&&typeof Ve.recalculateEnvironments=="function"?(Ve.recalculateEnvironments(),!0):!1},hi.startAnimation=function(){var Ve=hi.getAppletObject();return Ve&&typeof Ve.startAnimation=="function"?(Ve.startAnimation(),!0):!1},hi.stopAnimation=function(){var Ve=hi.getAppletObject();return Ve&&typeof Ve.stopAnimation=="function"?(Ve.stopAnimation(),!0):!1},hi.getAppletObject=function(){var Ve=Ft.id!==void 0?Ft.id:"ggbApplet";return window[Ve]},hi.resize=function(){};var Le=function(Ve,Nn,Zn){var gi=document.createElement("param");gi.setAttribute("name",Nn),gi.setAttribute("value",Zn),Ve.appendChild(gi)},te=function(Ve){return Ve&&Ve!=="false"},He=function(Ve,Nn,Zn){Nt(Ct)<=4.2&&(Zn=!0);var gi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ct||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(gi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Kn=document.createElement("div");Kn.classList.add("appletParameters","notranslate");var Pi=Nn.width,tn=Nn.height;if(Nn.disableAutoScale=Nn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Nn.disableAutoScale,Nn.width!==void 0)if(Nt(Ct)<=4.4)te(Nn.showToolBar)&&(Nn.height-=7),te(Nn.showAlgebraInput)&&(Nn.height-=37),Nn.width<605&&te(Nn.showToolBar)&&(Nn.width=605,Pi=605);else{var Li=100;(te(Nn.showToolBar)||te(Nn.showMenuBar))&&(Nn.hasOwnProperty("customToolBar")&&(Nn.customToolbar=Nn.customToolBar),Li=te(Nn.showMenuBar)?245:155),Pi<Li&&(Nn.width=Li,Pi=Li)}Kn.style.border="none",Kn.style.display="inline-block";for(var ji in Nn)Nn.hasOwnProperty(ji)&&ji!=="appletOnLoad"&&Kn.setAttribute("data-param-"+ji,Nn[ji]);dt&&Kn.setAttribute("data-param-fontscssurl",dt),hi.resize=function(){GGBAppletUtils.responsiveResize(Ve,Nn)},window.addEventListener("resize",function(Me){hi.resize()});var Ot=typeof Nn.appletOnLoad=="function"?Nn.appletOnLoad:function(){};if(!Zn&&Nn.width!==void 0){Nn.hasOwnProperty("showSplash")||Kn.setAttribute("data-param-showSplash","false");var Tt=Ve.querySelector(".applet_scaler.prerender"),vt=Tt!==null;if(vt)var gt=Tt.querySelector(".ggb_preview");else{var gt=Ge(Pi,tn,Nn.borderColor,!1);Tt=document.createElement("div"),Tt.className="applet_scaler",Tt.style.position="relative",Tt.style.display="block",Tt.style.width=Pi+"px",Tt.style.height=tn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),Nt(Ct)>=5?(Nn.appletOnLoad=function(Me){var on=Ve.querySelector(".ggb_preview");on&&on.parentNode.removeChild(on),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(Me)},vt||Tt.appendChild(gt)):Kn.appendChild(gt),Tt.appendChild(Kn),vt||Ve.appendChild(Tt),setTimeout(function(){hi.resize()},1)}else{var ft=document.createElement("div");ft.className="applet_scaler",ft.style.position="relative",ft.style.display="block",ft.appendChild(Kn),Ve.appendChild(ft),Nn.appletOnLoad=function(Me){hi.resize(),Ot(Me)}}function At(Me,on){on&&typeof on.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Me,on.appletOnLoad):renderGGBElement(Me),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",on)}function le(Me,on){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Me,params:on}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wn){At(Wn.article,Wn.params)}),html5AppletsToProcess=null)},Nt(Ct)<5&&(Me.className+=" geogebraweb")):At(Me,on)}if(gi){scriptLoadStarted=!0;for(var xe=0;xe<Kn.childNodes.length;xe++){var ae=Kn.childNodes[xe].tagName;ae==="TABLE"&&(Kn.removeChild(Kn.childNodes[xe]),xe--)}if(ggbHTML5LoadedScript!==null){var ye=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ye!=null&&ye.parentNode.removeChild(ye)}var Oe=document.createElement("script"),Te=function(){le(Kn,Nn)};Oe.src=se+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=Ct,ggbHTML5LoadedScript=Oe.src,bn("GeoGebra HTML5 codebase loaded: '"+se+"'.",Nn),!Mt&&(!Vt||Vt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Te()):se.requirejs?__webpack_require__.e(777).then(function(){var Me=[__webpack_require__(70777)];Te.apply(null,Me)}.bind(this)).catch(__webpack_require__.oe):(Oe.onload=Te,Ve.appendChild(Oe))}else le(Kn,Nn);Nn.height=tn,Nn.width=Pi},Wt=function(Ve,Nn,Zn){var gi=Ge(Nn.width,Nn.height,Nn.borderColor,Zn),Kn=document.createElement("div");Kn.style.position="relative",Kn.style.display="block",Kn.style.width=Nn.width+"px",Kn.style.height=Nn.height+"px",Kn.className="applet_screenshot applet_scaler"+(Zn?" applet_screenshot_play":""),Kn.appendChild(gi);var Pi=GGBAppletUtils.getScale(Nn,Ve,Zn);Zn?(Ve.appendChild(Ne()),window.GGBT_wsf_view||(Ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Kn,"66%"),Ve.appendChild(Kn),Pi!==1&&!isNaN(Pi)&&(GGBAppletUtils.scaleElement(Kn,Pi),Kn.style.width=Nn.width+"px",Kn.style.height=Nn.height+"px",Kn.parentNode.style.width=Nn.width*Pi+"px",Kn.parentNode.style.height=Nn.height*Pi+"px"),hi.resize=function(){Ke(Ve,gi,Kn,Zn)},window.addEventListener("resize",function(tn){hi.resize()}),hi.resize()};function Ke(Ve,Nn,Zn,gi){if(Ve.contains(Nn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ve)}var Kn=GGBAppletUtils.getScale(Ft,Ve,gi);Zn.parentNode!==null&&(!isNaN(Kn)&&Kn!==1?(GGBAppletUtils.scaleElement(Zn,Kn),Zn.parentNode.style.width=Ft.width*Kn+"px",Zn.parentNode.style.height=Ft.height*Kn+"px"):(GGBAppletUtils.scaleElement(Zn,1),Zn.parentNode.style.width=Ft.width+"px",Zn.parentNode.style.height=Ft.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}hi.onExitFullscreen=function(Ve,Nn){Nn.appendChild(Ve)};var _e=function(Ve,Nn,Zn,gi){Wt(Ve,Nn,!0);for(var Kn=function(){var Li=[];for(tn=0;tn<Ve.childNodes.length;tn++)Li.push(Ve.childNodes[tn]);if(window.GGBT_wsf_view){var ji=window.GGBT_wsf_view.renderFullScreen(Ve,Nn.id),Ot=document.getElementById("fullscreencontainer"),Tt=jQuery(Ve).find(".fullscreencontent");Tt.length>0?(ji.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(Ot).append(Tt),window.dispatchEvent(new Event("resize"))):He(ji,Nn,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else Xt=gi,He(Ve,Nn,!1);if(!window.GGBT_wsf_view)for(tn=0;tn<Li.length;tn++)Ve.removeChild(Li[tn])},Pi=Ve.getElementsByClassName("ggb_preview_play"),tn=0;tn<Pi.length;tn++)Pi[tn].addEventListener("click",Kn,!1),Pi[tn].addEventListener("ontouchstart",Kn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ve),_t()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var Ve=document.createElement("div");if(Ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Nn='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Zn=document.createElement("style");Zn.styleSheet?Zn.styleSheet.cssText=Nn:Zn.appendChild(document.createTextNode(Nn)),document.getElementsByTagName("head")[0].appendChild(Zn)}return Ve},Ge=function(Ve,Nn,Zn,gi){var Kn=document.createElement("div");Kn.className="ggb_preview",Kn.style.position="absolute",Kn.style.zIndex="90",Kn.style.width=Ve-2+"px",Kn.style.height=Nn-2+"px",Kn.style.top="0px",Kn.style.left="0px",Kn.style.overflow="hidden",Kn.style.backgroundColor="white";var Pi="lightgrey";Zn!==void 0&&(Zn==="none"?Pi="transparent":Pi=Zn),Kn.style.border="1px solid "+Pi;var tn=document.createElement("img");if(tn.style.position="relative",tn.style.zIndex="1000",tn.style.top="-1px",tn.style.left="-1px",lt!==null&&tn.setAttribute("src",lt),tn.style.opacity=.7,rt!==null){var Li,ji,Ot;if(!gi){Li=document.createElement("img"),Li.style.position="absolute",Li.style.zIndex="1001",Li.style.opacity=1,tn.style.opacity=.3,ji=360,ji>Ve/4*3&&(ji=Ve/4*3),Ot=ji/5.8,Li.setAttribute("src",rt),Li.setAttribute("width",ji),Li.setAttribute("height",Ot);var Tt=(Ve-ji)/2,vt=(Nn-Ot)/2;Li.style.left=Tt+"px",Li.style.top=vt+"px",Kn.appendChild(Li)}}return Kn.appendChild(tn),Kn},Ue=function(Ve){return Ve=Ve.toLowerCase(),Ve==="html5"||Ve==="screenshot"?Ve:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ne=function(Ve,Nn){if(Ct=Ve,Nn){Ce(Ct,!0);return}var Zn=!ce;if(Zn){var gi=Nt(Ct);!isNaN(gi)&&gi<4.4&&(Zn=!1)}var Kn,Pi;window.location.protocol.substr(0,4)==="http"?Kn=window.location.protocol:Kn="http:";var tn=Ct.indexOf("//");tn>0?Pi=Ct:tn===0?Pi=Kn+Ct:Pi="https://www.geogebra.org/apps/5.2.814.0/";for(var Li in ve)if(Ct.slice(ve[Li].length*-1)===ve[Li]||Ct.slice((ve[Li].length+1)*-1)===ve[Li]+"/"){Ce(Pi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Zn&&!Lt.is3D&&!Lt.AV&&!Lt.SV&&!Lt.CV&&!Lt.EV2&&!Lt.CP&&!Lt.PC&&!Lt.DA&&!Lt.FI&&!Lt.PV&&!te(Ft.showToolBar)&&!te(Ft.showMenuBar)&&!te(Ft.showAlgebraInput)&&!te(Ft.enableRightClick)&&(!Ft.appName||Ft.appName=="classic")?Pi+="webSimple/":Pi+="web3d/",Ce(Pi,!1)},Ce=function(Ve,Nn){if(Ve.requirejs){se=Ve;return}Ve.slice(-1)!=="/"&&(Ve+="/"),se=Ve,Nn===null&&(Nn=Ve.indexOf("http")===-1),Gt=Nn,et="web.nocache.js",tt=!1;var Zn=se.split("/");Zn.length>1&&(!Nn&&Zn[Zn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):ve.indexOf(Zn[Zn.length-2])>=0&&(et=Zn[Zn.length-2]+".nocache.js")),Zn=Ve.split("/"),Ct=Zn[Zn.length-3],Ct.substr(0,4)==="test"?Ct=Ct.substr(4,1)+"."+Ct.substr(5,1):(Ct.substr(0,3)==="war"||Ct.substr(0,4)==="beta")&&(Ct="5.0");var gi=parseFloat(Ct);gi!==NaN&&gi<5&&Ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gi+" is deprecated. Using version latest instead."),ne("5.0",Nn))},bn=function(Ve,Nn){window.console&&window.console.log&&(!Nn||typeof Nn.showLogging=="undefined"||Nn.showLogging&&Nn.showLogging!=="false")&&console.log(Ve)};Ft.material_id!==void 0?oe(Ln):Ln();function Ln(){var Ve=Sn;Vt!==null?Ve=Vt:parseFloat(Ve)<5&&(Ve="5.0"),ne(Ve,!1),Mt!==null&&Ce(Mt,Gt),ee=!0}return hi},GGBAppletUtils=function(){"use strict";function hi(){return window.GGBT_wsf_edit!==void 0}function Sn(ee,Vt){Vt!=1?(ee.style.transformOrigin="0% 0% 0px",ee.style.webkitTransformOrigin="0% 0% 0px",ee.style.transform="scale("+Vt+","+Vt+")",ee.style.webkitTransform="scale("+Vt+","+Vt+")",ee.style.maxWidth="initial",ee.querySelector(".ggb_preview")!==null&&(ee.querySelector(".ggb_preview").style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ee.style.transform="none",ee.style.webkitTransform="none")}function Ft(ee,Vt,Mt,jt,qt,bt){var se=null;if(bt!=null&&bt!="")for(var Gt=ee.parentNode;Gt!=null;)if((" "+Gt.className+" ").indexOf(" "+bt+" ")>-1){se=Gt;break}else Gt=Gt.parentNode;var Xt=0,Ct=0,et=0,tt=0,lt=0,rt=0,ht=0;if(se)Xt=se.offsetWidth,Ct=Math.max(jt?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Xt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Xt):(Xt=window.innerWidth,Ct=window.innerHeight,et=window.innerWidth),ee){var dt=ee.getBoundingClientRect();dt.left>0&&dt.left<=Xt&&(qt===void 0||!qt)&&(document.dir==="rtl"?(lt=Xt-dt.width-dt.left,rt=et<=480?10:30):(rt=dt.left,lt=et<=480?10:30),tt=rt+lt)}if(ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xt=ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ht=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ht=40)}}return ee&&((Mt===void 0||!Mt)&&Vt>0&&Vt+tt<Xt?Xt=Vt:Xt-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Mt===void 0||!Mt)&&(Ct-=ht)),{width:Xt,height:Ct}}function Lt(ee,Vt,Mt,jt,qt){if(ee.isScreenshoGenerator)return 1;var bt=jt!==void 0&&jt,se=ee.noScaleMargin!=null&&ee.noScaleMargin,Gt=function(xt){return xt&&xt!=="false"},Xt=Gt(ee.autoHeight),Ct=Ft(Vt,ee.width,Mt,Xt,bt&&window.GGBT_wsf_view||se,qt),et=parseInt(Ct.width),tt=ee.width,lt=ee.height;if(tt===void 0){var rt=Vt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,lt=rt.offsetHeight)}var ht=et/tt,dt=bt?1:Ct.height/lt;return Mt!==void 0&&!Mt&&(ht=Math.min(1,ht),dt=Math.min(1,dt)),Math.min(ht,dt)}function ce(ee,Vt,Mt){var jt=1,qt,bt=!1;if(ee.hasOwnProperty("allowUpscale")&&(bt=ee.allowUpscale),ee.hasOwnProperty("scale")&&(jt=parseFloat(ee.scale),(isNaN(jt)||jt===null||jt===0)&&(jt=1),jt>1&&(bt=!0)),Vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(bt=!0),!(ee.hasOwnProperty("disableAutoScale")&&ee.disableAutoScale))qt=Lt(ee,Vt,bt,Mt,ee.scaleContainerClass);else return jt;return bt&&(!ee.hasOwnProperty("scale")||jt===1)?qt:Math.min(jt,qt)}function re(ee){var Vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Mt=Math.min(window.innerHeight,document.documentElement.clientHeight),jt=ee.getBoundingClientRect(),qt=(Vt-jt.width)/2,bt=(Mt-jt.height)/2;bt<0&&(bt=0),ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(qt<40?ee.style.left="40px":ee.style.left=qt+"px",ee.style.top=bt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(bt<40?ee.style.top="40px":ee.style.top=bt+"px",ee.style.left=qt+"px")}function Ie(ee,Vt){var Mt=ee.querySelector(".appletParameters");if(Mt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Vt.id!==Mt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ee)}if(Mt.parentElement&&/fullscreen/.test(Mt.parentElement.className))return;var jt=ce(Vt,ee);hi()&&Mt.setAttribute("data-param-scale",jt);for(var qt=null,bt=0;bt<ee.childNodes.length;bt++)if(ee.childNodes[bt].className!==void 0&&ee.childNodes[bt].className.match(/^applet_scaler/)){qt=ee.childNodes[bt];break}if(qt!==null&&qt.querySelector(".noscale")!==null)return;var se=Vt.id!==void 0?Vt.id:"ggbApplet",Gt=window[se];(Gt==null||!Gt.recalculateEnvironments)&&qt!==null&&!qt.className.match(/fullscreen/)&&(qt.parentNode.style.transform="",!isNaN(jt)&&jt!==1?(qt.parentNode.style.width=Vt.width*jt+"px",qt.parentNode.style.height=Vt.height*jt+"px",Sn(qt,jt)):(Sn(qt,1),qt.parentNode.style.width=Vt.width+"px",qt.parentNode.style.height=Vt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&re(ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Mt).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:hi,positionCenter:re,getScale:ce,scaleElement:Sn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var hi=n.location.search;return hi.indexOf(J)!=-1||hi.indexOf(K)!=-1}function q(hi,Sn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(hi){var Sn=s[L].bindings;s[L].bindings=function(){for(var Ft=Sn?Sn():{},Lt=hi[webModule.__softPermutationId],ce=O;ce<Lt.length;ce++){var re=Lt[ce];Ft[re[O]]=re[P]}return Ft}};var t;function u(){return v(),t}function v(){if(!t){var hi=o.createElement(Q);if(hi.id=L,hi.style.cssText=R+S,hi.tabIndex=-1,o.body.appendChild(hi),t=hi.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Sn=document.compatMode==U?V:W;t.write(Sn+X),t.close()}}}function w(hi){function Sn(Lt){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var re=ce();if(re){Lt();return}function Ie(){if(!re){if(!ce())return;re=!0,Lt(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ee&&clearInterval(ee)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ee=setInterval(function(){Ie()},$)}function Ft(Lt){var ce=u(),re=ce.body,Ie=ce.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=Lt,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+Lt))}),re.appendChild(Ie)}Sn(function(){Ft(hi)})}webModule.__startLoadingFragment=function(hi){return C(hi)},webModule.__installRunAsyncCode=function(hi){var Sn=u(),Ft=Sn.body,Lt=Sn.createElement(_);Lt.language=ab,Lt.text=hi,Ft.appendChild(Lt),Ft.removeChild(Lt)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(hi){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(hi){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(hi){var Sn=c[hi];return Sn==null?null:Sn},r=d,webModule.__errFn=e}function B(){function hi(ee){var Vt=ee.lastIndexOf(rb);Vt==-1&&(Vt=ee.length);var Mt=ee.indexOf(sb);Mt==-1&&(Mt=ee.length);var jt=ee.lastIndexOf(tb,Math.min(Mt,Vt));return jt>=O?ee.substring(O,jt+P):W}function Sn(ee){if(!ee.match(/^\w+:\/\//)){var Vt=o.createElement(ub);Vt.src=ee+vb,ee=hi(Vt.src)}return ee}function Ft(){var ee=__gwt_getMetaProperty(wb);return ee!=null?ee:W}function Lt(){for(var ee=o.getElementsByTagName(_),Vt=O;Vt<ee.length;++Vt)if(ee[Vt].src.indexOf(xb)!=-1)return hi(ee[Vt].src);return W}function ce(){var ee=o.getElementsByTagName(yb);return ee.length>O?ee[ee.length-P].href:W}function re(){var ee=o.location;return ee.href==ee.protocol+zb+ee.host+ee.pathname+ee.search+ee.hash}var Ie=Ft();return Ie==W&&(Ie=Lt()),Ie==W&&(Ie=ce()),Ie==W&&re()&&(Ie=hi(o.location.href)),Ie=Sn(Ie),Ie}function C(hi){return hi.match(/^\//)||hi.match(/^[a-zA-Z]+:\/\//)?hi:webModule.__moduleBase+hi}function D(){var hi=[],Sn=O,Ft=[],Lt=[];function ce(ee){var Vt=Lt[ee](),Mt=Ft[ee];if(Vt in Mt)return Vt;var jt=[];for(var qt in Mt)jt[Mt[qt]]=qt;throw r&&r(ee,jt,Vt),null}if(__gwt_isKnownPropertyValue=function(ee,Vt){return Vt in Ft[ee]},webModule.__getPropMap=function(){var ee={};for(var Vt in Ft)Ft.hasOwnProperty(Vt)&&(ee[Vt]=ce(Vt));return ee},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var re;try{re=Cb;var Ie=re.indexOf(Db);Ie!=-1&&(Sn=parseInt(re.substring(Ie+P),$),re=re.substring(O,Ie))}catch(ee){}return webModule.__softPermutationId=Sn,C(re+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})()},49291:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Ax:function(){return Ie},Ds:function(){return ee},KI:function(){return Mt},SI:function(){return re},f1:function(){return ce}});var Lt=Ft(38446);function ce(jt){let qt=!0;if(jt.length>0){for(let bt=0;bt<jt.length;bt++)if(jt[bt].compile_success==0||!jt[bt].compile_success){qt=!1;break}}else qt=!1;return qt}function re(jt,qt=""){let bt=[];for(let se=0;se<jt.length;se++){let Gt=jt[se],Xt=qt?`${qt}/${Gt.name}`:`${Gt.name}`;bt.push({title:Gt.name,type:Gt.type,isLeaf:Gt.type!=="tree",key:Xt})}return bt}function Ie(jt,qt,bt){for(let se=0;se<jt.length;se++){let Gt=jt[se];if(Gt.key===qt){Gt.children=bt;break}Gt.children&&Ie(Gt.children,qt,bt)}return jt}function ee(jt,qt,bt){let se;return function(){let Gt=this,Xt=arguments,Ct=function(){se=null,bt||jt.apply(Gt,Xt)},et=bt&&!se;clearTimeout(se),se=setTimeout(Ct,qt),et&&jt.apply(Gt,Xt)}}const Vt=!0,Mt=Lt.Z.API_SERVER},3545:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{ij:function(){return ht},_s:function(){return rt},Uf:function(){return lt},ZP:function(){return xt}});var Lt=Ft(59301),ce={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},re=Ft(92310),Ie=Ft.n(re),ee=Ft(42441),Vt=Ft(6848),Mt=Ft(61621),jt=Ft(71418),qt=Ft(57816),bt=Ft(38446),se=Object.defineProperty,Gt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(Nt,Ut,_t)=>Ut in Nt?se(Nt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Nt[Ut]=_t,tt=(Nt,Ut)=>{for(var _t in Ut||(Ut={}))Xt.call(Ut,_t)&&et(Nt,_t,Ut[_t]);if(Gt)for(var _t of Gt(Ut))Ct.call(Ut,_t)&&et(Nt,_t,Ut[_t]);return Nt};const lt=(Nt={})=>{var Ut,_t,oe,he;let fe=(Ut=Nt==null?void 0:Nt.emotion)==null?void 0:Ut.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),Le=(_t=Nt==null?void 0:Nt.focus)==null?void 0:_t.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),te=(oe=Nt==null?void 0:Nt.action)==null?void 0:oe.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),He=(he=Nt==null?void 0:Nt.intention)==null?void 0:he.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:fe||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Le||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:te||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:He||[]}]},rt=({className:Nt,dataSource:Ut=[],col:_t=4,right:oe,bottom:he=23,precision:fe=0,wrapWidth:Le=1200})=>{const te=(Wt="",Ke,_e="--")=>Wt?(Wt==null?void 0:Wt.length)>Ke?(Wt==null?void 0:Wt.slice(0,Ke-1))+"...":Wt:_e,He=Math.floor((Le-(_t-1)*oe)/_t);return Lt.createElement("div",{className:Ie()(ce.list,Nt)},!!(Ut!=null&&Ut.length)&&(Ut==null?void 0:Ut.map((Wt,Ke)=>{const{cover_pic:_e,created_at:Ne,emotion:Ge,action:Ue,intention:ve,focus:ne}=Wt;return Lt.createElement("div",{key:Ke,className:ce.wrap,style:{width:He,marginRight:(1+Ke)%_t===0?0:oe+fe,marginBottom:he}},Lt.createElement("div",{className:ce.img},Lt.createElement("img",{src:`${bt.Z.API_SERVER}${_e}`}),Lt.createElement("div",{className:ce.tips},Lt.createElement("div",null,Lt.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),Lt.createElement("span",null,Ne))),Lt.createElement("div",{className:ce.footer},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-biaoqing"}),Lt.createElement("span",null,"\u8868\u60C5\uFF1A",Lt.createElement(Vt.Z,{title:Ge},Lt.createElement("span",{className:"c-grey-333"},te(Ge,4))))),Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-hangwei"}),Lt.createElement("span",null,"\u884C\u4E3A\uFF1A",Lt.createElement(Vt.Z,{title:Ue},Lt.createElement("span",{className:"c-grey-333"},te(Ue,4)))))),Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-yitu"}),Lt.createElement("span",null,"\u610F\u56FE\uFF1A",Lt.createElement(Vt.Z,{title:ve},Lt.createElement("span",{className:"c-grey-333"},te(ve,4))))),Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-zhuangtai"}),Lt.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",Lt.createElement(Vt.Z,{title:ne},Lt.createElement("span",{className:"c-grey-333"},te(ne,3))))))))})))},ht=({className:Nt,style:Ut,title:_t,hideBar:oe=!1,children:he,customText:fe="",noDataText:Le="",emptyData:te=[],loading:He,actionAnalysis:Wt})=>{var Ke,_e;const Ne=((Ke=te==null?void 0:te[0])==null?void 0:Ke.every(Ue=>{var ve;return!((ve=Ue==null?void 0:Ue.data)!=null&&ve.length)}))&&!((_e=te==null?void 0:te[1])!=null&&_e.length)||!Wt,Ge=Wt?Le:fe;return Lt.createElement(Mt.Z,{loading:He,active:!0},Ne&&Lt.createElement("div",{className:Ie()(ce.noData,Nt),style:Ut},!!_t&&Lt.createElement("div",{className:ce.title},!oe&&Lt.createElement("b",null),Lt.createElement("span",null,_t)),Lt.createElement("div",{className:ce.itemWrap},Lt.createElement(qt.Z,{customText:Ge}))),!Ne&&he)};var xt=({className:Nt,style:Ut,data:_t=[],title:oe,hideBar:he=!1,loading:fe=!1})=>Lt.createElement("div",{className:Ie()(ce.analysis,Nt),style:Ut},!!oe&&Lt.createElement("div",{className:ce.title},!he&&Lt.createElement("b",null),Lt.createElement("span",null,oe)),Lt.createElement(jt.Z,{spinning:fe},Lt.createElement("div",{className:ce.itemWrap},_t==null?void 0:_t.map((Le,te)=>Lt.createElement("div",{className:ce.item,key:te},Lt.createElement(ee.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:Le==null?void 0:Le.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(He){for(let Wt in Le==null?void 0:Le.data)if(He==(Le==null?void 0:Le.data[Wt].name))return He+" "+(Le==null?void 0:Le.data[Wt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Le==null?void 0:Le.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Le==null?void 0:Le.data}]},style:{height:145}}))))))},14573:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return se}});var Lt=Ft(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},re=Ft(92310),Ie=Ft.n(re),ee=Ft(71418),Vt=Ft(2859),Mt=Ft(7660),jt=Ft(88230),qt=(Gt,Xt,Ct)=>new Promise((et,tt)=>{var lt=dt=>{try{ht(Ct.next(dt))}catch(xt){tt(xt)}},rt=dt=>{try{ht(Ct.throw(dt))}catch(xt){tt(xt)}},ht=dt=>dt.done?et(dt.value):Promise.resolve(dt.value).then(lt,rt);ht((Ct=Ct.apply(Gt,Xt)).next())}),se=({data:Gt,className:Xt,fullWidth:Ct,style:et={},onClose:tt,onOk:lt,showFullTools:rt,noAssociationId:ht})=>{const dt=(0,Lt.useRef)(null),xt=(0,Lt.useRef)(null),Nt=(0,Lt.useRef)(null),Ut=(0,Lt.useRef)(null),[_t,oe]=(0,Lt.useState)(!1),[he,fe]=(0,Lt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Lt.useEffect)(()=>{Nt.current||(Nt.current=document.createElement("style"),document.head.appendChild(Nt.current)),Gt!=null&&Gt.visible?(document.body.setAttribute("data-custom","y-hidden"),Nt.current.innerHTML=" html { overflow-y: hidden; }",Gt!=null&&Gt.src&&Le()):(document.body.removeAttribute("data-custom"),Nt.current&&(document.head.removeChild(Nt.current),Nt.current=null))},[Gt==null?void 0:Gt.visible]);const Le=()=>qt(void 0,null,function*(){oe(!0),fe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ke=yield(0,jt.ZJ)(Gt==null?void 0:Gt.src);dt.current.src="",dt.current.src=Ke,dt.current.onload=function(){Wt()},oe(!1),fe("")}),te=Ke=>qt(void 0,null,function*(){oe(!0),fe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _e=yield(0,Mt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Gt.title,file:Ke.dataUrl}});_e!=null&&_e.id&&!ht?(yield(0,Mt.ZP)(`/api/attachments/${Gt.id}/add_subitem.json`,{method:"post",body:{subitem_id:_e==null?void 0:_e.id,settings:JSON.stringify(Ke.state)}})).status===0&&lt():_e!=null&&_e.id&&lt(_e),oe(!1),fe("")}),He=()=>{const Ke=document.querySelector('a[href="https://markerjs.com/"]');Ke&&Ke.parentNode&&(Ke.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(Ne=>{const Ge=document.querySelector(Ne.name);Ge&&Ge.setAttribute("title",Ne.title)})},Wt=()=>{xt.current=new Vt.hP(dt.current),xt.current.targetRoot=Ut.current,xt.current.addEventListener("render",te),xt.current.addEventListener("beforeclose",tt),rt&&(xt.current.availableMarkerTypes=xt.current.ALL_MARKER_TYPES,xt.current.uiStyleSettings.redoButtonVisible=!0,xt.current.uiStyleSettings.notesButtonVisible=!0,xt.current.uiStyleSettings.zoomButtonVisible=!0,xt.current.uiStyleSettings.zoomOutButtonVisible=!0,xt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xt.current.uiStyleSettings,xt.current.show(),Gt!=null&&Gt.snapshotData&&xt.current.restoreState(Gt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),He()},300)};return Lt.createElement(Lt.Fragment,null,(Gt==null?void 0:Gt.visible)&&Lt.createElement(ee.Z,{spinning:_t,tip:he,style:{position:"absolute"}},Lt.createElement("div",{ref:Ut,className:Ie()(ce.imageDimensions,Xt,Ct?ce.fullWidth:""),style:et},Lt.createElement("img",{className:ce.img,ref:dt}))))}},46531:function(hi,Sn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(95237),re=Ft(43604),Ie=Ft(99313),ee=Ft(3113),Vt=Ft(99325),Mt=Ft(11570),jt=Ft(48136),qt=Ft(59301);const bt=(0,Lt.forwardRef)(({callback:se,showSaveButton:Gt,value:Xt=""},Ct)=>{const et=(0,Lt.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 "}]}]}],lt=[{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=xt=>{et.current.setValue(et.current.getValue()+" "+xt.value+" ")},ht=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:qt.createElement(ce.Z,{className:Mt.Z.lists,gutter:[10,10]},tt.map((xt,Nt)=>qt.createElement(re.Z,{flex:"110px",className:Mt.Z.item},qt.createElement("div",null,qt.createElement(Vt.Z,{value:`$$${xt.value}$$`}),xt.name),qt.createElement("div",{className:Mt.Z.children},xt.children.map((Ut,_t)=>qt.createElement("div",{key:_t},qt.createElement("h1",null,Ut.name),qt.createElement(ce.Z,{gutter:[10,10]},Ut.data.map((oe,he)=>qt.createElement(re.Z,{key:he,onClick:()=>rt(oe),className:Mt.Z.diamond},qt.createElement(Vt.Z,{value:"`$$"+oe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:qt.createElement(ce.Z,{className:Mt.Z.lists,gutter:[10,10]},lt.map((xt,Nt)=>qt.createElement(re.Z,{flex:"110px",className:Mt.Z.item},qt.createElement("div",null,qt.createElement(Vt.Z,{value:"`$$"+xt.value+"$$`"}),xt.name),qt.createElement("div",{className:Mt.Z.children},xt.children.map((Ut,_t)=>qt.createElement("div",{key:_t},Ut.name&&qt.createElement("h1",null,Ut.name),qt.createElement(ce.Z,{gutter:[10,10]},Ut.data.map((oe,he)=>qt.createElement(re.Z,{key:he,onClick:()=>rt(oe),className:Mt.Z.diamond},qt.createElement(Vt.Z,{value:"`$$"+oe.value+"$$`"}))))))))))}],dt=()=>{var xt=document.createElement("div");xt.innerHTML=et.current.getValue();var Nt=xt.innerText;return se&&se(Nt),Nt};return(0,Lt.useImperativeHandle)(Ct,()=>({getData:dt})),qt.createElement("div",{className:Mt.Z.mathWrap},qt.createElement(Ie.default,{defaultActiveKey:"1",items:ht}),qt.createElement("math-field",{locale:"zh_cn",className:Mt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Xt||""),Gt&&qt.createElement("div",{className:Mt.Z.button},qt.createElement(ee.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Sn.Z=bt},57816:function(hi,Sn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(93314),re=Ft(3113),Ie=Object.defineProperty,ee=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,bt=(Ct,et,tt)=>et in Ct?Ie(Ct,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ct[et]=tt,se=(Ct,et)=>{for(var tt in et||(et={}))jt.call(et,tt)&&bt(Ct,tt,et[tt]);if(Mt)for(var tt of Mt(et))qt.call(et,tt)&&bt(Ct,tt,et[tt]);return Ct},Gt=(Ct,et)=>ee(Ct,Vt(et));const Xt=({img:Ct,buttonProps:et={},styles:tt={},customText:lt,ButtonText:rt,ButtonClick:ht,Buttonclass:dt,ButtonTwo:xt,imgStyles:Nt,loading:Ut=!1})=>Lt.createElement("section",{className:"tc animated fadeIn",style:se(se({},{color:"#999",margin:"100px auto",visibility:Ut?"hidden":"visible"}),tt)},Lt.createElement("img",{src:Ct||ce,style:Gt(se({},Nt),{pointerEvents:"none",userSelect:"none"})}),Lt.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Lt.createElement(re.ZP,se({className:dt,onClick:ht},et),rt),xt&&xt);Sn.Z=Xt},90853:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return dt}});var Lt=Ft(59301),ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},re=Ft(3113),Ie=Ft(70557),ee=Ft(57800),Vt=Ft(6848),Mt=Ft(88230),jt=Ft(30897),qt=Ft(57816),bt=Ft(38446),se=Ft(89282),Gt=Ft(59301),Xt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(xt,Nt,Ut)=>Nt in xt?Xt(xt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):xt[Nt]=Ut,rt=(xt,Nt)=>{for(var Ut in Nt||(Nt={}))et.call(Nt,Ut)&&lt(xt,Ut,Nt[Ut]);if(Ct)for(var Ut of Ct(Nt))tt.call(Nt,Ut)&&lt(xt,Ut,Nt[Ut]);return xt},ht=(xt,Nt,Ut)=>new Promise((_t,oe)=>{var he=te=>{try{Le(Ut.next(te))}catch(He){oe(He)}},fe=te=>{try{Le(Ut.throw(te))}catch(He){oe(He)}},Le=te=>te.done?_t(te.value):Promise.resolve(te.value).then(he,fe);Le((Ut=Ut.apply(xt,Nt)).next())}),dt=({editOffice:xt="view",data:Nt,theme:Ut,type:_t,filename:oe,monacoEditor:he,className:fe,style:Le,close:te,onClose:He,hasMask:Wt,disabledDownload:Ke,onImgDimensions:_e,showNodata:Ne,recordInfo:Ge})=>{const[Ue,ve]=(0,Lt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ne,Ce]=(0,Lt.useState)(""),[bn,Ln]=(0,Lt.useState)(),Ve=window.ENV==="build"?"/react/build":"",Nn=location.host.startsWith("localhost")?bt.Z.PROXY_SERVER:bt.Z.API_SERVER,gi=10*(1024*1024),Kn=(0,Lt.useRef)();Nt!=null&&Nt.startsWith("/api")&&_t!=="txt"&&(Nt=bt.Z.API_SERVER+Nt);const Pi=Ot=>Ot.substring(Ot.lastIndexOf("/")+1).split(".").pop();oe&&he&&(he.filename=oe),(0,Lt.useEffect)(()=>{var Ot,Tt;const vt=(Tt=(Ot=document.cookie)==null?void 0:Ot.replace(/\s/g,""))==null?void 0:Tt.split(";");vt==null||vt.map(gt=>{let ft=gt.split("=");ft[0]==="_educoder_session"&&Ce(ft[1])})},[]),(0,Lt.useEffect)(()=>{_t==="office"&&(Nt.indexOf("bigfilescdn.")>-1||Nt.indexOf("bigfiles1")>-1?Ln({url:Nt,fileType:Pi(Nt),model:Nt.indexOf("model=edit")?"edit":"view"}):tn())},[_t,Nt]);const tn=()=>ht(void 0,null,function*(){console.log("data:",Nt);let Ot=Nt;Nt.startsWith("http")||(Ot=location.origin+Ot);let Tt=new URL(Ot).pathname.split("/").pop();const vt=yield(0,jt.gJ)({attachment_id:Tt});vt.url=Nn+vt.url,Ln(vt)}),Li=()=>{if(Nt.startsWith("http")||Nt.startsWith("blob:")){ji();return}(0,Mt.Sv)(oe||"educoder",Nt,oe)},ji=()=>{Ge&&(0,se.fc)({id:Ge==null?void 0:Ge.id,watch_type:1,course_id:Ge==null?void 0:Ge.course_id}),(0,Mt.Nd)(oe||"educoder",decodeURIComponent(Nt))};return Gt.createElement("div",{style:rt({},Le||{}),className:`${Wt&&ce.bgBlack} ${_t?ce.wrp:"hide"}`},te&&Gt.createElement("div",{className:ce.close,ref:Kn},!!_e&&Gt.createElement(Vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Kn.current},Gt.createElement("span",{onClick:()=>{He(),_e()}},Gt.createElement("i",{className:"icon-yulanpizhu"}))),!Ke&&Gt.createElement(Vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Kn.current},Gt.createElement("span",{onClick:ji},Gt.createElement("i",{className:"icon-quxiaozhiding"}))),Gt.createElement(Vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Kn.current},Gt.createElement("span",{className:"",onClick:He},Gt.createElement("i",{className:"icon-guanbi1"})))),Gt.createElement("div",{className:`${ce[fe]} ${fe} ${ce.monaco} ${_t==="txt"?"show":"hide"}`},_t==="txt"&&Gt.createElement(Gt.Fragment,null,Gt.createElement(ee.ZP,rt({},he)))),_t==="audio"&&Gt.createElement("audio",{src:`${(Nt==null?void 0:Nt.indexOf("http://"))>-1||(Nt==null?void 0:Nt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Nt}`,autoPlay:!0}),_t==="video"&&Gt.createElement(Gt.Fragment,null,(Nt==null?void 0:Nt.indexOf("http"))>-1?Gt.createElement("video",{controls:!0,src:`${Nt}`,autoPlay:!0}):Gt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Nt}`,autoPlay:!0})),_t==="office"&&bn&&Gt.createElement("iframe",{src:`${Ve}/office.html?key=${bn.key}&url=${btoa(bn.url)}&callbackUrl=${Nn+(bn.callbackUrl||"")}&fileType=${bn.fileType}&title=${bn.title||""}&model=${xt}&officeServer=${bt.Z.ONLYOFFICE}&disabledDownload=${!!Ke}`}),_t==="html"&&Gt.createElement("iframe",{src:Nt+"&disposition=inline"}),_t==="pdf"&&Gt.createElement("iframe",{src:`${Ve}/js/pdfview/index.html?filename=${oe||"educoder.pdf"}&url=${encodeURIComponent(Nt)}&disabledDownload=${!!Ke}`}),_t==="image"&&Gt.createElement("img",{src:`${(Nt==null?void 0:Nt.indexOf("http://"))>-1||(Nt==null?void 0:Nt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Nt}`}),(_t==="other"||_t==="download")&&Gt.createElement(Gt.Fragment,null,Ne?Gt.createElement(qt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Gt.createElement(re.ZP,{icon:Gt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Li,disabled:Ke},"\u4E0B\u8F7D")}):Gt.createElement(re.ZP,{type:"primary",size:"middle",onClick:Li,disabled:Ke},Gt.createElement(Ie.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},99325:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{z:function(){return _t},Z:function(){return oe}});var Lt=Ft(59301),ce=Ft(2878),re=Ft(85187),Ie=Ft(64018),ee=Ft(40846),Vt=Ft(38446),Mt=Ft(88230),jt=Ft(15342),qt=Ft(1012),bt=Ft(90853),se=Ft(59301),Xt=({html:he})=>{const fe=(0,Lt.useRef)(null),Le=(0,Lt.useRef)(null),te=`.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,Lt.useEffect)(()=>{const He=fe.current.attachShadow({mode:"open"});Le.current=document.createElement("div"),Le.current.className="markdown-body",Le.current.innerHTML=he,He.appendChild(Le.current);const Wt=document.createElement("style");return Wt.textContent=te,He.appendChild(Wt),()=>{He.innerHTML=""}},[]),(0,Lt.useEffect)(()=>{Le.current&&(Le.current.innerHTML=he)},[he]),se.createElement("div",{ref:fe})},Ct=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(he,fe,Le)=>fe in he?Ct(he,fe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):he[fe]=Le,ht=(he,fe)=>{for(var Le in fe||(fe={}))tt.call(fe,Le)&&rt(he,Le,fe[Le]);if(et)for(var Le of et(fe))lt.call(fe,Le)&&rt(he,Le,fe[Le]);return he};const dt="@\u2581\u2581@",xt="@\u2581@",Nt=/<pre[^>]*>/g;function Ut(he){let fe=document.createElement("div");return fe.innerHTML=he,fe.childNodes.length===0?"":fe.childNodes[0].nodeValue}const _t=(he,fe)=>{he=he||"";const Le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,te=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Wt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return fe?he.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Le,(Ke,_e,Ne,Ge,Ue,ve,ne)=>{const Ce=_e||Ge||ve,bn=Ne||Ue||ne||"?";return Vt.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Mt.Jn)(Ce,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(he=he.replace(Wt,(Ke,_e,Ne,Ge,Ue,ve,ne)=>{const Ce=_e||Ge||ve,bn=Ne||Ue||ne||"?";return Vt.Z.API_SERVER+"/attachments/download/"+Ce+bn+"&t="+(0,Mt.Jn)(Ce,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(Le,(Ke,_e,Ne,Ge,Ue,ve,ne)=>{const Ce=_e||Ge||ve,bn=Ne||Ue||ne||"?";return Vt.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Mt.Jn)(Ce,Date.now())+(Ke.indexOf(")")>-1?")":"&")}).replace(te,(Ke,_e,Ne,Ge,Ue)=>{const ve=_e||Ge,ne=Ne||Ue||"";return'"'+Vt.Z.API_SERVER+"/api/attachments/"+ve+ne+ve+ne+"&t="+(0,Mt.Jn)(ve,Date.now())}).replace(He,(Ke,_e,Ne,Ge,Ue)=>{const ve=_e||Ge,ne=Ne||Ue||"";return"("+Vt.Z.API_SERVER+"/files/uploads/"+ve+ne+ve+ne+"&t="+(0,Mt.Jn)(ve,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,`
`),he)};var oe=({value:he="",className:fe,showTextOnly:Le,showLines:te,style:He={},stylesPrev:Wt={},highlightKeywords:Ke,showProgramFill:_e,isProgramFill:Ne,disabledFill:Ge=!1,programFillValue:Ue,onFillChange:ve=bn=>{},onFillBlur:ne=()=>{},onFillFocus:Ce=()=>{}})=>{let bn=String(he);const[Ln,Ve]=(0,Lt.useState)(""),[Nn,Zn]=(0,Lt.useState)("office"),[gi,Kn]=(0,Lt.useState)([]),Pi=(0,Lt.useRef)("a"+(0,qt.Z)()),tn={},Li=(Oe,Te,Me)=>{const on=document.createElement(Oe===xt?"input":"textarea");on.style.width="100%",on.style.height=Oe===xt?"40px":"151px",on.rows=5,on.spellcheck=!1,on.name="edu-program-fill",on.placeholder="\u8BF7\u8F93\u5165",on.dataset.id=Te;const Wn=Object.keys(tn).length;return tn[Wn]=on,`<span class="edu-program-fill-wrap ${Oe===xt?"":"show"}" style="width:${Oe===xt?"400px":"100%"}" title=${Me||""}><span>${on.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ji(Oe){return Oe=Oe.replace(/!\[.*?\]\(.*?\)/g,""),Oe=Oe.replace(/\[.*?\]\(.*?\)/g,""),Oe=Oe.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Oe=Oe.replace(/<embed.*?>/g,""),Oe=Oe.replace(/<img.*?>/g,""),Oe=Oe.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Oe=Oe.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Oe=Oe.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Oe=Oe.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Oe}const Ot=Oe=>Oe.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Te,Me){let on=Me.replace(/(\n|\r)/g,"").split("}"),Wn=[];return on.map(sn=>{sn!=""&&Wn.push(`.${Pi.current} ${sn}`)}),`<style>${Wn.join("}")}</style>`}),Tt=(0,Lt.useMemo)(()=>{try{const on=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Wn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,sn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ln=/\(\/attachments\/download\//g;bn=bn.replace(ln,"("+Vt.Z.API_SERVER+"/attachments/download/").replace(on,"("+Vt.Z.API_SERVER+"/api/attachments/").replace(Wn,'"'+Vt.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+Vt.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(on){}if(_e){let on=-1;return bn=bn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Wn,sn,ln){var Bn;return++on,Li(Wn,on,(Bn=Ue==null?void 0:Ue[on])==null?void 0:Bn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ot(bn||"")}</pre>`}let Oe=Ot(bn);Oe=(0,re.ZP)(Oe);const Te=(0,re.ez)();bn.match(/\[TOC\]/)&&(Oe=Oe.replace("<p>[TOC]</p>",(0,re.Qv)()),(0,re.Iy)()),Oe=Oe.replace(/(__special_katext_id_\d+__)/g,(on,Wn)=>{const{type:sn,expression:ln}=Te[Wn];return(0,jt.renderToString)(Ut(ln)||"",{displayMode:sn==="block",throwOnError:!1,output:"html"})}),Oe=Oe.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,re.AL)();const Me=document.createElement("div");if(Me.innerHTML=Oe,Le)return Me.innerText;if(Ke){const on=Ke.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return At(Me,on),Me.innerHTML}return setTimeout(()=>ae(),500),Me.innerHTML},[bn,Ke]);(0,Lt.useEffect)(()=>{le.current&&le.current.querySelectorAll(["input","textarea"]).forEach(Te=>{Te.oninput=vt,Te.onblur=gt,Te.onfocus=ft})},[gi]),(0,Lt.useEffect)(()=>{var Oe,Te,Me,on,Wn;if(Ue!=null&&Ue.length)try{const sn=le.current.querySelectorAll(".edu-program-fill-score"),ln=le.current.querySelectorAll('[name="edu-program-fill"]');for(const[Bn,li]of ln.entries())li.value=((Oe=Ue==null?void 0:Ue[Bn])==null?void 0:Oe.value)||"",((Te=Ue==null?void 0:Ue[Bn])==null?void 0:Te.type)==="warning"?li.className="program-fill-warning":((Me=Ue==null?void 0:Ue[Bn])==null?void 0:Me.type)==="success"?li.className="program-fill-success":li.className="";for(const[Bn,li]of sn.entries())li.innerHTML=(on=Ue==null?void 0:Ue[Bn])!=null&&on.score?`${(Wn=Ue==null?void 0:Ue[Bn])==null?void 0:Wn.score}\u5206`:"";Kn(Ue)}catch(sn){console.log(sn,"error")}},[Ue]);const vt=Oe=>{gi[Oe.target.dataset.id]=gi[Oe.target.dataset.id]||{},gi[Oe.target.dataset.id].value=Oe.target.value,Kn([...gi]),ve(gi,Oe.target.dataset.id)},gt=Oe=>{gi[Oe.target.dataset.id]=gi[Oe.target.dataset.id]||{},gi[Oe.target.dataset.id].value=Oe.target.value,Kn([...gi]),ne(gi,Oe.target.dataset.id)},ft=Oe=>{gi[Oe.target.dataset.id]=gi[Oe.target.dataset.id]||{},gi[Oe.target.dataset.id].value=Oe.target.value,Kn([...gi]),Ce(gi,Oe.target.dataset.id)};function At(Oe,Te){return Oe.childNodes.forEach(Me=>{var on;if(Me.childNodes.length>0)At(Me,Te);else if(Me.nodeName!=="IMG")if(Me.innerHTML)Me.innerHTML=(on=Me.innerHTML)==null?void 0:on.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Wn=document.createElement("span");Wn.innerHTML=Me.textContent.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Me.replaceWith(Wn)}})}const le=(0,Lt.useRef)();re.jb.WebkitLineClamp=te,te&&(He=ht(ht({},He),re.jb));function xe(Oe){let Te=Oe.target;if(Te.tagName.toUpperCase()==="A"){let Me=Te.getAttribute("href");if(Me.indexOf("office")>-1)Oe.preventDefault(),Ve(Me),Zn("office");else if(Me.indexOf("application/pdf")>-1)Oe.preventDefault(),Ve(Me),Zn("pdf");else if(Me.indexOf("text/html")>-1)Oe.preventDefault(),Ve(Me),Zn("html");else if(Me.startsWith("#")){Oe.preventDefault();let on=document.getElementById(Me.replace("#",""));on&&on.scrollIntoView(!0)}}}const ae=()=>{var Oe;const Te=(Oe=le.current)==null?void 0:Oe.querySelectorAll("video");Te==null||Te.forEach(Me=>{if(Me.oncontextmenu=()=>!1,Me.src.indexOf(".m3u8")>-1&&!Me.canPlayType("application/vnd.apple.mpegurl")){if(ee.ZP.isSupported()){var on=new ee.ZP;on.loadSource(Me.src),on.attachMedia(Me)}}})};(0,Lt.useEffect)(()=>{if(le.current&&Tt&&Tt.match(Nt)&&window.PR.prettyPrint(),le.current)return le.current.addEventListener("click",xe),()=>{var Oe;(Oe=le.current)==null||Oe.removeEventListener("click",xe),(0,re.AL)(),(0,re.Iy)()}},[Tt,le.current,xe]),(0,Lt.useEffect)(()=>{var Oe;const Te=Me=>{Me.preventDefault(),Me.clipboardData.setData("text",window.getSelection().toString())};return(Oe=le.current)==null||Oe.addEventListener("copy",Te),()=>{var Me;(Me=le.current)==null||Me.removeEventListener("copy",Te)}},[le.current]);const ye=Oe=>/<style[\s\S]*?>/i.test(Oe||"");return Lt.createElement(Lt.Fragment,null,Le&&Lt.createElement("div",{ref:le},Tt),!Le&&!ye(Tt)&&Lt.createElement("div",{ref:le,style:ht({},He),className:`${fe||""} ${Ge?"disabled-fill":""} markdown-body ${Pi.current}`,dangerouslySetInnerHTML:{__html:Tt}}),!Le&&ye(Tt)&&Lt.createElement(Xt,{html:Tt}),Lt.createElement(bt.Z,{close:!0,data:Ln,type:Ln!=null&&Ln.length?Nn:"",style:ht({},Wt),onClose:()=>Ve("")}))}},33471:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return He}});var Lt=Ft(59301),ce=Ft(24459),re=Ft(43418),Ie=Ft(78241),ee=Ft(8591),Vt=Ft(71418),Mt=Ft(17574),jt=Ft(95237),qt=Ft(43604),bt=Ft(6848),se=Ft(92832),Gt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Xt=Ft(59579),Ct=Ft(63623),et=Ft(57816),tt=Ft(15965),lt=Object.defineProperty,rt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Ut=(Wt,Ke,_e)=>Ke in Wt?lt(Wt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Wt[Ke]=_e,_t=(Wt,Ke)=>{for(var _e in Ke||(Ke={}))xt.call(Ke,_e)&&Ut(Wt,_e,Ke[_e]);if(dt)for(var _e of dt(Ke))Nt.call(Ke,_e)&&Ut(Wt,_e,Ke[_e]);return Wt},oe=(Wt,Ke)=>rt(Wt,ht(Ke)),he=(Wt,Ke)=>{var _e={};for(var Ne in Wt)xt.call(Wt,Ne)&&Ke.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&dt)for(var Ne of dt(Wt))Ke.indexOf(Ne)<0&&Nt.call(Wt,Ne)&&(_e[Ne]=Wt[Ne]);return _e},fe=(Wt,Ke,_e)=>new Promise((Ne,Ge)=>{var Ue=Ce=>{try{ne(_e.next(Ce))}catch(bn){Ge(bn)}},ve=Ce=>{try{ne(_e.throw(Ce))}catch(bn){Ge(bn)}},ne=Ce=>Ce.done?Ne(Ce.value):Promise.resolve(Ce.value).then(Ue,ve);ne((_e=_e.apply(Wt,Ke)).next())});const Le=(Wt=[])=>Wt==null?void 0:Wt.map(Ke=>oe(_t({},Ke),{title:(Ke==null?void 0:Ke.value)||"",key:Ke==null?void 0:Ke.id,isLeaf:!0})),te=Wt=>{var Ke=Wt,{user:_e,children:Ne,isShowComponent:Ge=!0,ModalProps:Ue={},onDataSelect:ve}=Ke,ne=he(Ke,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Ce,bn]=re.default.useModal(),[Ln]=Ie.default.useForm(),[Ve,Nn]=(0,Lt.useState)([]),[Zn,gi]=(0,Lt.useState)(!1),[Kn,Pi]=(0,Lt.useState)(!1),[,tn,Li,ji]=(0,Xt.U)(Ct.qE,{page:1,limit:9999}),[,,Ot]=(0,Xt.U)(Ct.V8,{}),[,,Tt]=(0,Xt.U)(Ct.B$,{}),[,,vt]=(0,Xt.U)(Ct.DH,{}),[,,gt]=(0,Xt.U)(Ct.bJ,{}),ft=()=>{gi(!1),Ln.resetFields(),Pi(!1)},At=xe=>fe(void 0,null,function*(){const{node:ae,dragNode:ye,event:Oe}=xe,Te=xe.node.pos.split("-"),Me=xe.dropPosition-Number(Te[Te.length-1]);if(Me==0){ee.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(Me==1&&(ye==null?void 0:ye.item_index)==(ae==null?void 0:ae.item_index)+1){ee.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const on=yield gt({id:ye==null?void 0:ye.key,position:Me==-1?1:(ye==null?void 0:ye.item_index)>(ae==null?void 0:ae.item_index)?(ae==null?void 0:ae.item_index)+1:ae==null?void 0:ae.item_index});(on==null?void 0:on.status)===0&&(ee.ZP.success("\u79FB\u52A8\u6210\u529F"),Li({},!0))}),le=xe=>fe(void 0,null,function*(){let ae={};Kn?ae=yield Tt(_t({},xe)):ae=yield vt(_t({},xe)),(ae==null?void 0:ae.status)==0&&(ee.ZP.success((ae==null?void 0:ae.message)||(Kn?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Li({},!0),ft())});return(0,Lt.useEffect)(()=>{Ue!=null&&Ue.open&&Li({},!0)},[Ue==null?void 0:Ue.open]),(0,Lt.useEffect)(()=>{var xe;Nn(Le((xe=ji==null?void 0:ji.data)==null?void 0:xe.list))},[ji]),Ge?Lt.createElement(Lt.Fragment,null,bn,Ne,Lt.createElement(re.default,_t({},_t({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Ue)),Lt.createElement(Vt.Z,{spinning:tn},(Ve==null?void 0:Ve.length)>0?Lt.createElement(Lt.Fragment,null,Lt.createElement(Mt.default.DirectoryTree,{height:500,className:Gt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:ve,treeData:Ve,onDrop:At,titleRender:xe=>Lt.createElement(Lt.Fragment,null,Lt.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},xe==null?void 0:xe.title),Lt.createElement("div",{className:`${Gt.EditDom}`},Lt.createElement(jt.Z,{wrap:!1,align:"middle",gutter:16},Lt.createElement(qt.Z,null,Lt.createElement(bt.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},Lt.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Gt.currentPrimary}`}))),Lt.createElement(qt.Z,null,Lt.createElement(bt.Z,{title:"\u7F16\u8F91"},Lt.createElement("i",{className:`iconfont icon-bianji11 font12 ${Gt.currentPrimary}`,onClick:ae=>{ae.stopPropagation(),Ln.setFieldsValue(_t({},xe)),gi(!0)}}))),Lt.createElement(qt.Z,null,Lt.createElement(bt.Z,{title:"\u5220\u9664"},Lt.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Gt.currentDelete}`,onClick:ae=>{ae.stopPropagation(),Ce.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>fe(void 0,null,function*(){const ye=yield Ot({id:xe==null?void 0:xe.key});(ye==null?void 0:ye.status)==0&&(ee.ZP.success((ye==null?void 0:ye.message)||"\u5220\u9664\u6210\u529F"),Li({},!0))})})}}))))))}),Lt.createElement(tt.op,{className:"ml20 mt20",icon:Lt.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Pi(!0),gi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):Lt.createElement(et.Z,{styles:{margin:"30px auto"},customText:Lt.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",Lt.createElement("a",{onClick:()=>{Pi(!0),gi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),Lt.createElement(re.default,{title:Kn?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Zn,okText:Kn?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{ft()},onOk:()=>{Ln.submit()}},Lt.createElement(Ie.default,{form:Ln,onFinish:le},Kn&&Lt.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),Lt.createElement(Ie.default.Item,{hidden:!0,name:"id"}),Lt.createElement(Ie.default.Item,{className:"mt10",name:"value"},Lt.createElement(se.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var He=(0,ce.connect)(({loading:Wt,user:Ke})=>({user:Ke,loading:Wt.effects}))(te)},73278:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{h:function(){return xt}});var Lt=Ft(59301),ce=Ft(57809),re=Ft(78241),Ie=Ft(3113),ee=Ft(89780),Vt=Ft.n(ee),Mt=Ft(78780),jt=Ft(19136),qt=Object.defineProperty,bt=Object.defineProperties,se=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(Nt,Ut,_t)=>Ut in Nt?qt(Nt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:_t}):Nt[Ut]=_t,tt=(Nt,Ut)=>{for(var _t in Ut||(Ut={}))Xt.call(Ut,_t)&&et(Nt,_t,Ut[_t]);if(Gt)for(var _t of Gt(Ut))Ct.call(Ut,_t)&&et(Nt,_t,Ut[_t]);return Nt},lt=(Nt,Ut)=>bt(Nt,se(Ut));const rt=ce.default.Option,ht={labelCol:{span:4},wrapperCol:{span:20}},dt={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"]};Sn.Z=({callback:Nt,onCancel:Ut})=>{const[_t,oe]=(0,Lt.useState)("python");function he(Le){oe(dt[Le][1])}function fe(Le){Nt(Le)}return Lt.createElement(re.default,lt(tt({},ht),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:fe,style:{width:500}}),Lt.createElement(re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Lt.createElement(ce.default,{getPopupContainer:Le=>Le.parentNode,onChange:he},Object.keys(dt).map(Le=>Lt.createElement(rt,{key:Le,value:Le},dt[Le][0])))),Lt.createElement(re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Lt.createElement(xt,{mode:_t})),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(Ie.ZP,{type:"ghost",onClick:Ut},"\u53D6\u6D88")))};function xt({value:Nt,onChange:Ut,mode:_t,options:oe={}}){const he=(0,Lt.useRef)(),[fe,Le]=(0,Lt.useState)();return(0,Lt.useEffect)(()=>{if(fe){let te=function(He){const Wt=He.getValue();Ut&&Ut(Wt)};return fe.on("change",te),()=>{fe.off("change",te)}}},[fe,Ut]),(0,Lt.useEffect)(()=>{fe&&fe.setOption("mode",_t)},[fe,_t]),(0,Lt.useEffect)(()=>{fe&&(Nt!==fe.getValue()||Nt==="")&&setTimeout(()=>{fe.setValue(Nt||"")},300)},[fe,Nt]),(0,Lt.useEffect)(()=>{if(he.current&&!fe){const te=Vt().fromTextArea(he.current,tt({mode:_t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},oe));Le(te)}},[he.current,fe]),Lt.createElement("div",{className:"my-codemirror-container"},Lt.createElement("textarea",{ref:he}))}},64726:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Hr}});var Lt=Ft(59301),ce=Ft(89780),re=Ft.n(ce),Ie=Ft(76374),ee=Ft(78780),Vt=Ft(6313),Mt=Ft(25717),jt=Ft(99498),qt=Ft(25419),bt=Ft(67549),se=Ft(99325),Gt=({value:Xn="",className:Hn,showTextOnly:Mn,showLines:qe,style:pi={}})=>{const xi=(0,Lt.useMemo)(()=>"",[Xn]);return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{dangerouslySetInnerHTML:{__html:xi}}))},Xt=Ft(59301),Ct=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,dt=(Xn,Hn,Mn)=>Hn in Xn?Ct(Xn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Xn[Hn]=Mn,xt=(Xn,Hn)=>{for(var Mn in Hn||(Hn={}))rt.call(Hn,Mn)&&dt(Xn,Mn,Hn[Mn]);if(lt)for(var Mn of lt(Hn))ht.call(Hn,Mn)&&dt(Xn,Mn,Hn[Mn]);return Xn},Nt=(Xn,Hn)=>et(Xn,tt(Hn));let Ut=[{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 _t({onActionCallback:Xn,title:Hn,icon:Mn,actionName:qe,className:pi="",children:xi}){function wn(){Xn(qe)}return Xt.createElement("a",{title:Hn,className:pi,onClick:wn},Xt.createElement("i",{className:`${Mn}`}),xi)}var oe=({watch:Xn,showNullButton:Hn,showNullProgramButton:Mn,onActionCallback:qe,fullScreen:pi,insertTemp:xi,hidetoolBar:wn,extraUse:Ee})=>{const Cn=[...Ut,{title:`${Xn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Xt.createElement("ul",{className:"markdown-toolbar-container"},!wn&&Cn.map((Gn,Ei)=>Xt.createElement("li",{key:Ei},Gn.actionName?Xt.createElement(_t,Nt(xt({},Gn),{onActionCallback:qe})):Xt.createElement("span",{className:"v-line"}))),Hn?Xt.createElement("li",null,Xt.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qe},Xt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Mn?Xt.createElement(Xt.Fragment,null,Xt.createElement("li",null,Xt.createElement(_t,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qe},Xt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Xt.createElement("li",null,Xt.createElement(_t,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qe},Xt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,xi&&Xt.createElement("li",null,Xt.createElement(_t,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xi}`,onActionCallback:qe},Xt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ee&&Xt.createElement("li",null,Ee),Xt.createElement("li",{className:"btn-full-screen"},Xt.createElement(_t,{icon:`${pi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qe})))},he=Ft(19647),fe=Ft(78241),Le=Ft(92832),te=Ft(3113),He=Object.defineProperty,Wt=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ue=(Xn,Hn,Mn)=>Hn in Xn?He(Xn,Hn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Xn[Hn]=Mn,ve=(Xn,Hn)=>{for(var Mn in Hn||(Hn={}))Ne.call(Hn,Mn)&&Ue(Xn,Mn,Hn[Mn]);if(_e)for(var Mn of _e(Hn))Ge.call(Hn,Mn)&&Ue(Xn,Mn,Hn[Mn]);return Xn},ne=(Xn,Hn)=>Wt(Xn,Ke(Hn));const Ce={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:Xn,onCancel:Hn})=>{function Mn(qe){Xn(qe)}return Lt.createElement(fe.default,ne(ve({},Ce),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Mn,style:{width:500}}),Lt.createElement(fe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Lt.createElement(Le.default,null)),Lt.createElement(fe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Lt.createElement(Le.default,null)),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(te.ZP,{type:"ghost",onClick:Hn},"\u53D6\u6D88")))},Ln=Ft(73278),Ve=Ft(56030),Nn=Ft(43418),Zn=Ft(95237),gi=Ft(14573),Kn=Ft(59301),Pi=({callback:Xn,onCancel:Hn})=>{const Mn=document.createElement("canvas"),qe=Mn.getContext("2d");Mn.width=1e3,Mn.height=800,qe.fillStyle="#ffffff",qe.fillRect(0,0,Mn.width,Mn.height);const pi=Mn.toDataURL("image/png");return Kn.createElement(Nn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Kn.createElement(Zn.Z,{style:{height:"100vh"}},Kn.createElement(gi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pi,visible:!0,title:String(Date.now())},onOk:xi=>{Xn({src:xi.url})},onClose:Hn})))},tn=Ft(12378);function Li(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Li,go.CommandHandler),Li.prototype.canAlignSelection=function(){var Xn=this.diagram;return!(Xn===null||Xn.isReadOnly||Xn.isModelReadOnly||Xn.selection.count<2)},Li.prototype.alignLeft=function(){var Xn=this.diagram;Xn.startTransaction("aligning left");var Hn=1/0;Xn.selection.each(function(Mn){Mn instanceof go.Link||(Hn=Math.min(Mn.position.x,Hn))}),Xn.selection.each(function(Mn){Mn instanceof go.Link||Mn.move(new go.Point(Hn,Mn.position.y))}),Xn.commitTransaction("aligning left")},Li.prototype.alignRight=function(){var Xn=this.diagram;Xn.startTransaction("aligning right");var Hn=-1/0;Xn.selection.each(function(Mn){if(!(Mn instanceof go.Link)){var qe=Mn.actualBounds.x+Mn.actualBounds.width;Hn=Math.max(qe,Hn)}}),Xn.selection.each(function(Mn){Mn instanceof go.Link||Mn.move(new go.Point(Hn-Mn.actualBounds.width,Mn.position.y))}),Xn.commitTransaction("aligning right")},Li.prototype.alignTop=function(){var Xn=this.diagram;Xn.startTransaction("alignTop");var Hn=1/0;Xn.selection.each(function(Mn){Mn instanceof go.Link||(Hn=Math.min(Mn.position.y,Hn))}),Xn.selection.each(function(Mn){Mn instanceof go.Link||Mn.move(new go.Point(Mn.position.x,Hn))}),Xn.commitTransaction("alignTop")},Li.prototype.alignBottom=function(){var Xn=this.diagram;Xn.startTransaction("aligning bottom");var Hn=-1/0;Xn.selection.each(function(Mn){if(!(Mn instanceof go.Link)){var qe=Mn.actualBounds.y+Mn.actualBounds.height;Hn=Math.max(qe,Hn)}}),Xn.selection.each(function(Mn){Mn instanceof go.Link||Mn.move(new go.Point(Mn.actualBounds.x,Hn-Mn.actualBounds.height))}),Xn.commitTransaction("aligning bottom")},Li.prototype.alignCenterX=function(){var Xn=this.diagram,Hn=Xn.selection.first();if(Hn){Xn.startTransaction("aligning Center X");var Mn=Hn.actualBounds.x+Hn.actualBounds.width/2;Xn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(Mn-qe.actualBounds.width/2,qe.actualBounds.y))}),Xn.commitTransaction("aligning Center X")}},Li.prototype.alignCenterY=function(){var Xn=this.diagram,Hn=Xn.selection.first();if(Hn){Xn.startTransaction("aligning Center Y");var Mn=Hn.actualBounds.y+Hn.actualBounds.height/2;Xn.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,Mn-qe.actualBounds.height/2))}),Xn.commitTransaction("aligning Center Y")}},Li.prototype.alignColumn=function(Xn){var Hn=this.diagram;Hn.startTransaction("align Column"),Xn===void 0&&(Xn=0),Xn=parseFloat(Xn);var Mn=new Array;Hn.selection.each(function(Ee){Ee instanceof go.Link||Mn.push(Ee)});for(var qe=0;qe<Mn.length-1;qe++){var pi=Mn[qe],xi=pi.actualBounds.y+pi.actualBounds.height+Xn,wn=Mn[qe+1];wn.move(new go.Point(pi.actualBounds.x,xi))}Hn.commitTransaction("align Column")},Li.prototype.alignRow=function(Xn){Xn===void 0&&(Xn=0),Xn=parseFloat(Xn);var Hn=this.diagram;Hn.startTransaction("align Row");var Mn=new Array;Hn.selection.each(function(Ee){Ee instanceof go.Link||Mn.push(Ee)});for(var qe=0;qe<Mn.length-1;qe++){var pi=Mn[qe],xi=pi.actualBounds.x+pi.actualBounds.width+Xn,wn=Mn[qe+1];wn.move(new go.Point(xi,pi.actualBounds.y))}Hn.commitTransaction("align Row")},Li.prototype.canRotate=function(Xn){var Hn=this.diagram;return!(Hn===null||Hn.isReadOnly||Hn.isModelReadOnly||Hn.selection.count<1)},Li.prototype.rotate=function(Xn){Xn===void 0&&(Xn=90);var Hn=this.diagram;Hn.startTransaction("rotate "+Xn.toString());var Hn=this.diagram;Hn.selection.each(function(Mn){Mn instanceof go.Link||Mn instanceof go.Group||(Mn.angle+=Xn)}),Hn.commitTransaction("rotate "+Xn.toString())},Li.prototype.pullToFront=function(){var Xn=this.diagram;Xn.startTransaction("pullToFront");var Hn=new go.Map;Xn.selection.each(function(Mn){Hn.set(Mn.layer,0)}),Hn.iteratorKeys.each(function(Mn){var qe=0;Mn.parts.each(function(pi){if(!pi.isSelected){var xi=pi.zOrder;isNaN(xi)?pi.zOrder=0:qe=Math.max(qe,xi)}}),Hn.set(Mn,qe)}),Xn.selection.each(function(Mn){Li._assignZOrder(Mn,Hn.get(Mn.layer)+1)}),Xn.commitTransaction("pullToFront")},Li.prototype.pushToBack=function(){var Xn=this.diagram;Xn.startTransaction("pushToBack");var Hn=new go.Map;Xn.selection.each(function(Mn){Hn.set(Mn.layer,0)}),Hn.iteratorKeys.each(function(Mn){var qe=0;Mn.parts.each(function(pi){if(!pi.isSelected){var xi=pi.zOrder;isNaN(xi)?pi.zOrder=0:qe=Math.min(qe,xi)}}),Hn.set(Mn,qe)}),Xn.selection.each(function(Mn){Li._assignZOrder(Mn,Hn.get(Mn.layer)-1-Li._findGroupDepth(Mn))}),Xn.commitTransaction("pushToBack")},Li._assignZOrder=function(Xn,Hn,Mn){Mn===void 0&&(Mn=Xn),Xn.layer===Mn.layer&&(Xn.zOrder=Hn),Xn instanceof go.Group&&Xn.memberParts.each(function(qe){Li._assignZOrder(qe,Hn+1,Mn)})},Li._findGroupDepth=function(Xn){if(Xn instanceof go.Group){var Hn=0;return Xn.memberParts.each(function(Mn){Hn=Math.max(Hn,Li._findGroupDepth(Mn))}),Hn+1}else return 0},Li.prototype.doKeyDown=function(){var Xn=this.diagram;if(Xn!==null){var Hn=Xn.lastInput;if(Hn.key==="Up"||Hn.key==="Down"||Hn.key==="Left"||Hn.key==="Right"){var Mn=this.arrowKeyBehavior;if(Mn==="none")return;if(Mn==="select"){this._arrowKeySelect();return}else if(Mn==="move"){this._arrowKeyMove();return}else if(Mn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Li.prototype._getAllParts=function(){var Xn=new Array;return this.diagram.nodes.each(function(Hn){Xn.push(Hn)}),this.diagram.parts.each(function(Hn){Xn.push(Hn)}),Xn},Li.prototype._arrowKeyMove=function(){var Xn=this.diagram,Hn=Xn.lastInput,Mn=0,qe=0;if(Hn.control||Hn.meta)Mn=1,qe=1;else if(Xn.grid!==null){var pi=Xn.grid.gridCellSize;qe=pi.width,Mn=pi.height}Xn.startTransaction("arrowKeyMove"),Xn.selection.each(function(xi){Hn.key==="Up"?xi.move(new go.Point(xi.actualBounds.x,xi.actualBounds.y-Mn)):Hn.key==="Down"?xi.move(new go.Point(xi.actualBounds.x,xi.actualBounds.y+Mn)):Hn.key==="Left"?xi.move(new go.Point(xi.actualBounds.x-qe,xi.actualBounds.y)):Hn.key==="Right"&&xi.move(new go.Point(xi.actualBounds.x+qe,xi.actualBounds.y))}),Xn.commitTransaction("arrowKeyMove")},Li.prototype._arrowKeySelect=function(){var Xn=this.diagram,Hn=Xn.lastInput,Mn=null;Hn.key==="Up"?Mn=this._findNearestPartTowards(270):Hn.key==="Down"?Mn=this._findNearestPartTowards(90):Hn.key==="Left"?Mn=this._findNearestPartTowards(180):Hn.key==="Right"&&(Mn=this._findNearestPartTowards(0)),Mn!==null&&(Hn.shift?Mn.isSelected=!0:Hn.control||Hn.meta?Mn.isSelected=!Mn.isSelected:Xn.select(Mn))},Li.prototype._findNearestPartTowards=function(Xn){var Hn=this.diagram.selection.first();if(Hn===null)return null;for(var Mn=Hn.actualBounds.center,qe=this._getAllParts(),pi=1/0,xi=Hn,wn=0;wn<qe.length;wn++){var Ee=qe[wn];if(Ee!==Hn&&Ee.canSelect()){var Cn=Ee.actualBounds.center,Gn=Mn.directionPoint(Cn),Ei=this._angleCloseness(Gn,Xn);if(Ei<=45){var ei=Mn.distanceSquaredPoint(Cn);ei*=1+Math.sin(Ei*Math.PI/180),ei<pi&&(pi=ei,xi=Ee)}}}return xi},Li.prototype._angleCloseness=function(Xn,Hn){return Math.min(Math.abs(Hn-Xn),Math.min(Math.abs(Hn+360-Xn),Math.abs(Hn-360-Xn)))},Li.prototype._arrowKeyTree=function(){var Xn=this.diagram,Hn=Xn.selection.first();if(Hn instanceof go.Node){var Mn=Xn.lastInput;if(Mn.key==="Right"){if(!Hn.isTreeLeaf)if(!Hn.isTreeExpanded)Xn.commandHandler.canExpandTree(Hn)&&Xn.commandHandler.expandTree(Hn);else{var qe=this._sortTreeChildrenByY(Hn).first();qe!==null&&Xn.select(qe)}}else if(Mn.key==="Left")if(!Hn.isTreeLeaf&&Hn.isTreeExpanded)Xn.commandHandler.canCollapseTree(Hn)&&Xn.commandHandler.collapseTree(Hn);else{var pi=Hn.findTreeParentNode();pi!==null&&Xn.select(pi)}else if(Mn.key==="Up"){var pi=Hn.findTreeParentNode();if(pi!==null){var xi=this._sortTreeChildrenByY(pi),wn=xi.indexOf(Hn);if(wn>0){for(var Ee=xi.elt(wn-1);Ee!==null&&Ee.isTreeExpanded&&!Ee.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(Ee);Ee=Cn.last()}Ee!==null&&Xn.select(Ee)}else Xn.select(pi)}}else if(Mn.key==="Down")if(Hn.isTreeExpanded&&!Hn.isTreeLeaf){var qe=this._sortTreeChildrenByY(Hn).first();qe!==null&&Xn.select(qe)}else for(;Hn!==null;){var pi=Hn.findTreeParentNode();if(pi===null)break;var xi=this._sortTreeChildrenByY(pi),wn=xi.indexOf(Hn);if(wn<xi.length-1){Xn.select(xi.elt(wn+1));break}else Hn=pi}var Gn=Xn.selection.first();Gn!==null&&Xn.scrollToRect(Gn.actualBounds)}},Li.prototype._sortTreeChildrenByY=function(Xn){var Hn=new go.List().addAll(Xn.findTreeChildrenNodes());return Hn.sort(function(Mn,qe){var pi=Mn.location,xi=qe.location;return pi.y<xi.y?-1:pi.y>xi.y?1:pi.x<xi.x?-1:pi.x>xi.x?1:0}),Hn},Li.prototype.copyToClipboard=function(Xn){go.CommandHandler.prototype.copyToClipboard.call(this,Xn),this._lastPasteOffset.set(this.pasteOffset)},Li.prototype.pasteFromClipboard=function(){var Xn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Xn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Xn},Object.defineProperty(Li.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Xn){if(Xn!=="move"&&Xn!=="select"&&Xn!=="scroll"&&Xn!=="tree"&&Xn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Xn);this._arrowKeyBehavior=Xn}}),Object.defineProperty(Li.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Xn){if(!(Xn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Xn);this._pasteOffset.set(Xn)}});var ji=Li,Ot=Ft(29277),Tt=Ft(43604),vt=Ft(7660),gt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ft=Ft(59301),At=(Xn,Hn,Mn)=>new Promise((qe,pi)=>{var xi=Cn=>{try{Ee(Mn.next(Cn))}catch(Gn){pi(Gn)}},wn=Cn=>{try{Ee(Mn.throw(Cn))}catch(Gn){pi(Gn)}},Ee=Cn=>Cn.done?qe(Cn.value):Promise.resolve(Cn.value).then(xi,wn);Ee((Mn=Mn.apply(Xn,Hn)).next())});function le({onCancel:Xn,callback:Hn}){let Mn=(0,Lt.useRef)(),qe=(0,Lt.useRef)(),pi=(0,Lt.useRef)(),xi=(0,Lt.useRef)(!1);const wn=(0,Lt.useRef)(!1),[Ee,Cn]=(0,Lt.useState)(0);function Gn(){const ei=tn.bx.make,gn={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"};Mn.current=new tn.S0(qe.current,{padding:20,grid:ei(tn.s_,"Grid",ei(tn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ei(tn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Dn=>{var Tr=Dn.diagram.commandHandler.addTopLevelParts(Dn.diagram.selection,!0);Tr||Dn.diagram.currentTool.doCancel()},commandHandler:ei(ji),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Dn=>{var Tr=Dn.subject;Tr.location=Tr.location.copy().snapToGridPoint(Dn.diagram.grid.gridOrigin,Dn.diagram.grid.gridCellSize),setTimeout(()=>{Dn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Dn=>{var Tr=Dn.subject;setTimeout(()=>{Dn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Dn=>{var Tr=Dn.parameter.part;Tr.invalidateConnectedLinks();var ao=Dn.subject;Dn.diagram.toolManager.linkingTool.isForwards?ao.toNode.invalidateConnectedLinks():ao.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Mn.current.nodeTemplate=ei(tn.NB,"Auto",{locationSpot:tn.z6.Center,locationObjectName:"SHAPE",desiredSize:new tn.$u(120,60),minSize:new tn.$u(40,40),resizable:!0,resizeCellSize:new tn.$u(10,10),rotatable:!0},new tn.KX("location","loc",tn.E9.parse).makeTwoWay(tn.E9.stringify),new tn.KX("desiredSize","size",tn.$u.parse).makeTwoWay(tn.$u.stringify),ei(tn.bn,{name:"SHAPE",fill:gn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:tn.z6.AllSides,toSpot:tn.z6.AllSides},new tn.KX("figure"),new tn.KX("fill"),new tn.KX("stroke","borderColor"),new tn.KX("strokeWidth","thickness"),new tn.KX("strokeDashArray","dash")),ei(tn.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ei(tn.al,{margin:1,textAlign:"center",overflow:tn.al.OverflowEllipsis,editable:!0},new tn.KX("text").makeTwoWay(),new tn.KX("stroke","color"))),Mn.current.nodeTemplate.toolTip=ei("ToolTip",ei(tn.s_,"Vertical",{maxSize:new tn.$u(200,NaN)},ei(tn.al,{font:"bold 10pt sans-serif",textAlign:"center"},new tn.KX("text")),ei(tn.al,{font:"10pt sans-serif",textAlign:"center"},new tn.KX("text","details"))));function di(Dn,Tr){var ao=(Kr,qo)=>{Kr.handled=!0,Kr.diagram.model.commit(Oo=>{var wi=qo.part.adornedPart,Po=new tn.E9().setRectSpot(wi.actualBounds,Dn);Po.subtract(wi.location),Po.scale(2,2),Po.x+=Math.sign(Po.x)*130,Po.y+=Math.sign(Po.y)*130,Po.add(wi.location),Po.snapToGridPoint(Kr.diagram.grid.gridOrigin,Kr.diagram.grid.gridCellSize);var Rr=Oo.copyNodeData(wi.data);Oo.setGroupKeyForNodeData(Rr,Oo.getGroupKeyForNodeData(wi.data)),Oo.addNodeData(Rr);var kr={from:wi.key,to:Oo.getKeyForNodeData(Rr)};Oo.addLinkData(kr);var Ci=Kr.diagram.findNodeForData(Rr);Ci.location=Po,Kr.diagram.select(Ci),setTimeout(()=>{Kr.diagram.commandHandler.editTextBlock()},20)})};return ei(tn.bn,{figure:Tr,alignment:Dn,alignmentFocus:Dn.opposite(),width:Dn.equals(tn.z6.Top)||Dn.equals(tn.z6.Bottom)?25:18,height:Dn.equals(tn.z6.Top)||Dn.equals(tn.z6.Bottom)?18:25,fill:"orange",stroke:gn.white,strokeWidth:4,mouseEnter:(Kr,qo)=>qo.fill="dodgerblue",mouseLeave:(Kr,qo)=>qo.fill="orange",isActionable:!0,click:ao,contextClick:ao})}function Ni(Dn){return ei(tn.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:(Tr,ao)=>ao.fill="dodgerblue",mouseLeave:(Tr,ao)=>ao.fill="orange",click:(Tr,ao)=>{Tr.diagram.commandHandler.showContextMenu(ao.part.adornedPart)}},Dn||{})}Mn.current.nodeTemplate.selectionAdornmentTemplate=ei(tn.uz,"Spot",ei(tn.Vm,{padding:10}),di(tn.z6.Top,"TriangleUp"),di(tn.z6.Left,"TriangleLeft"),di(tn.z6.Right,"TriangleRight"),di(tn.z6.Bottom,"TriangleDown"),Ni({alignment:new tn.z6(.75,0)}));function $i(Dn,Tr){return(ao,Kr)=>{ao.handled=!0,ao.diagram.model.commit(qo=>{qo.set(Kr.part.adornedPart.data,Dn,Tr)})}}function kn(Dn,Tr){return Tr||(Tr="color"),ei(tn.bn,{width:16,height:16,stroke:"lightgray",fill:Dn,margin:1,background:"transparent",mouseEnter:(ao,Kr)=>Kr.stroke="dodgerblue",mouseLeave:(ao,Kr)=>Kr.stroke="lightgray",click:$i(Tr,Dn),contextClick:$i(Tr,Dn)})}function yi(){return[ei("ContextMenuButton",ei(tn.s_,"Horizontal",kn(gn.white,"fill"),kn(gn.beige,"fill"),kn(gn.extralightblue,"fill"),kn(gn.extralightred,"fill"))),ei("ContextMenuButton",ei(tn.s_,"Horizontal",kn(gn.lightgray,"fill"),kn(gn.lightgreen,"fill"),kn(gn.lightblue,"fill"),kn(gn.lightred,"fill")))]}function Br(){return[ei("ContextMenuButton",ei(tn.s_,"Horizontal",kn(gn.black),kn(gn.green),kn(gn.blue),kn(gn.red))),ei("ContextMenuButton",ei(tn.s_,"Horizontal",kn(gn.white),kn(gn.magenta),kn(gn.purple),kn(gn.orange)))]}function dr(Dn,Tr){return Tr||(Tr="thickness"),ei(tn.bn,"LineH",{width:16,height:16,strokeWidth:Dn,margin:1,background:"transparent",mouseEnter:(ao,Kr)=>Kr.background="dodgerblue",mouseLeave:(ao,Kr)=>Kr.background="transparent",click:$i(Tr,Dn),contextClick:$i(Tr,Dn)})}function zr(Dn,Tr){return Tr||(Tr="dash"),ei(tn.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Dn,margin:1,background:"transparent",mouseEnter:(ao,Kr)=>Kr.background="dodgerblue",mouseLeave:(ao,Kr)=>Kr.background="transparent",click:$i(Tr,Dn),contextClick:$i(Tr,Dn)})}function cr(){return[ei("ContextMenuButton",ei(tn.s_,"Horizontal",dr(1),dr(2),dr(3),dr(4))),ei("ContextMenuButton",ei(tn.s_,"Horizontal",zr(null),zr([2,4]),zr([4,4])))]}function wr(Dn,Tr){return Tr||(Tr="figure"),ei(tn.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Dn,margin:1,background:"transparent",mouseEnter:(ao,Kr)=>Kr.fill="dodgerblue",mouseLeave:(ao,Kr)=>Kr.fill="lightgray",click:$i(Tr,Dn),contextClick:$i(Tr,Dn)})}Mn.current.nodeTemplate.contextMenu=ei("ContextMenu",ei("ContextMenuButton",ei(tn.s_,"Horizontal",wr("Rectangle"),wr("RoundedRectangle"),wr("Ellipse"),wr("Diamond"))),ei("ContextMenuButton",ei(tn.s_,"Horizontal",wr("Parallelogram2"),wr("ManualOperation"),wr("Procedure"),wr("Cylinder1"))),ei("ContextMenuButton",ei(tn.s_,"Horizontal",wr("Terminator"),wr("CreateRequest"),wr("Document"),wr("TriangleDown"))),yi(),Br(),cr()),Mn.current.groupTemplate=ei(tn.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:tn.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Dn,Tr)=>{var ao=Tr.addMembers(Tr.diagram.selection,!0);ao||Tr.diagram.currentTool.doCancel()},avoidable:!1},new tn.KX("location","loc",tn.E9.parse).makeTwoWay(tn.E9.stringify),ei(tn.s_,"Auto",{name:"BODY"},ei(tn.bn,{parameter1:10,fill:gn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:tn.z6.AllSides,toSpot:tn.z6.AllSides},new tn.KX("fill"),new tn.KX("stroke","color"),new tn.KX("strokeWidth","thickness"),new tn.KX("strokeDashArray","dash")),ei(tn.Vm,{background:"transparent",margin:20})),ei(tn.al,{alignment:tn.z6.Top,alignmentFocus:tn.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new tn.KX("text"),new tn.KX("stroke","color"))),Mn.current.groupTemplate.selectionAdornmentTemplate=ei(tn.uz,"Spot",ei(tn.s_,"Auto",ei(tn.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ei(tn.Vm,{margin:1.5})),Ni({alignment:tn.z6.TopRight,alignmentFocus:tn.z6.BottomRight})),Mn.current.groupTemplate.contextMenu=ei("ContextMenu",yi(),Br(),cr()),Mn.current.linkTemplate=ei(tn.rU,{layerName:"Foreground",routing:tn.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new tn.KX("fromSpot","fromSpot",tn.z6.parse),new tn.KX("toSpot","toSpot",tn.z6.parse),new tn.KX("fromShortLength","dir",Dn=>Dn>=1?10:0),new tn.KX("toShortLength","dir",Dn=>Dn>=1?10:0),new tn.KX("points").makeTwoWay(),ei(tn.bn,{strokeWidth:2},new tn.KX("stroke","color"),new tn.KX("strokeWidth","thickness"),new tn.KX("strokeDashArray","dash")),ei(tn.bn,{segmentIndex:0,segmentOffset:new tn.E9(15,0),segmentOrientation:tn.rU.OrientAlong,alignmentFocus:tn.z6.Right,figure:"circle",width:10,strokeWidth:0},new tn.KX("fill","color"),new tn.KX("visible","dir",Dn=>Dn===1)),ei(tn.bn,{segmentIndex:-1,segmentOffset:new tn.E9(-10,6),segmentOrientation:tn.rU.OrientPlus90,alignmentFocus:tn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new tn.KX("fill","color"),new tn.KX("visible","dir",Dn=>Dn>=1),new tn.KX("width","thickness",Dn=>7+3*Dn),new tn.KX("height","thickness",Dn=>7+3*Dn),new tn.KX("segmentOffset","thickness",Dn=>new tn.E9(-15,4+1.5*Dn))),ei(tn.bn,{segmentIndex:0,segmentOffset:new tn.E9(15,-6),segmentOrientation:tn.rU.OrientMinus90,alignmentFocus:tn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new tn.KX("fill","color"),new tn.KX("visible","dir",Dn=>Dn===2),new tn.KX("width","thickness",Dn=>7+3*Dn),new tn.KX("height","thickness",Dn=>7+3*Dn),new tn.KX("segmentOffset","thickness",Dn=>new tn.E9(-15,4+1.5*Dn))),ei(tn.al,{alignmentFocus:new tn.z6(0,1,-4,0),editable:!0},new tn.KX("text").makeTwoWay(),new tn.KX("stroke","color"))),Mn.current.linkTemplate.selectionAdornmentTemplate=ei(tn.uz,ei(tn.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:or(2)},new tn.KX("pathPattern","thickness",or)),Ni({alignmentFocus:new tn.z6(0,0,-6,-4)}));function or(Dn){return ei(tn.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Dn+4).toString()+" H3"})}function xr(Dn){var Tr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Dn===0?Tr="M0 0 M16 16 M0 8 L16 8":Dn===2&&(Tr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ei(tn.bn,{geometryString:Tr,margin:2,background:"transparent",mouseEnter:(ao,Kr)=>Kr.background="dodgerblue",mouseLeave:(ao,Kr)=>Kr.background="transparent",click:$i("dir",Dn),contextClick:$i("dir",Dn)})}function so(Dn){var Tr=(ao,Kr)=>{ao.handled=!0,ao.diagram.model.commit(qo=>{var Oo=Kr.part.adornedPart;qo.set(Oo.data,Dn?"toSpot":"fromSpot",tn.z6.stringify(tn.z6.AllSides)),(Dn?Oo.toNode:Oo.fromNode).invalidateConnectedLinks()})};return ei(tn.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ao,Kr)=>Kr.background="dodgerblue",mouseLeave:(ao,Kr)=>Kr.background="transparent",click:Tr,contextClick:Tr})}function Yi(Dn,Tr){var ao=0,Kr=tn.z6.RightSide;Dn.equals(tn.z6.Top)?(ao=270,Kr=tn.z6.TopSide):Dn.equals(tn.z6.Left)?(ao=180,Kr=tn.z6.LeftSide):Dn.equals(tn.z6.Bottom)&&(ao=90,Kr=tn.z6.BottomSide),Tr||(ao-=180);var qo=(Oo,wi)=>{Oo.handled=!0,Oo.diagram.model.commit(Po=>{var Rr=wi.part.adornedPart;Po.set(Rr.data,Tr?"toSpot":"fromSpot",tn.z6.stringify(Kr)),(Tr?Rr.toNode:Rr.fromNode).invalidateConnectedLinks()})};return ei(tn.bn,{alignment:Dn,alignmentFocus:Dn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ao,background:"transparent",mouseEnter:(Oo,wi)=>wi.background="dodgerblue",mouseLeave:(Oo,wi)=>wi.background="transparent",click:qo,contextClick:qo})}Mn.current.linkTemplate.contextMenu=ei("ContextMenu",Br(),cr(),ei("ContextMenuButton",ei(tn.s_,"Horizontal",xr(0),xr(1),xr(2))),ei("ContextMenuButton",ei(tn.s_,"Horizontal",ei(tn.s_,"Spot",so(!1),Yi(tn.z6.Top,!1),Yi(tn.z6.Left,!1),Yi(tn.z6.Right,!1),Yi(tn.z6.Bottom,!1)),ei(tn.s_,"Spot",{margin:new tn.Zt(0,0,0,2)},so(!0),Yi(tn.z6.Top,!0),Yi(tn.z6.Left,!0),Yi(tn.z6.Right,!0),Yi(tn.z6.Bottom,!0)))));const pr=`{ "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 yo=["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 Ss(Dn){return console.log("shapeName:",Dn),yo.indexOf(Dn)>=0}var _o=new tn.YI(pi.current,{maxSelectionCount:1,linkTemplate:ei(tn.rU,{locationSpot:tn.z6.Center,selectionAdornmentTemplate:ei(tn.uz,"Link",{locationSpot:tn.z6.Center},ei(tn.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ei(tn.bn,{toArrow:"Standard",stroke:null}))},{routing:tn.rU.AvoidsNodes,curve:tn.rU.JumpOver,corner:5,toShortLength:4},new tn.KX("points"),ei(tn.bn,{isPanelMain:!0,strokeWidth:2}),ei(tn.bn,{toArrow:"Standard",stroke:null})),model:new tn.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...tn.bn.getFigureGenerators().toArray().map(Dn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Dn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Mn.current.addDiagramListener("TextEdited",function(Dn){var Tr;const ao=Dn.subject.part;var Kr=(Tr=document.activeElement)==null?void 0:Tr.value;typeof Kr=="string"&&Kr.trim()===""&&Mn.current.model.commit(function(qo){qo.set(ao.data,"text","\u672A\u547D\u540D"),Mn.current.commandHandler.stopCommand()},"increment")}),_o.nodeTemplate=ei(tn.NB,"Auto",{locationSpot:tn.z6.Center},new tn.KX("location","location",tn.E9.parse).makeTwoWay(tn.E9.stringify),ei(tn.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 tn.KX("stroke").makeTwoWay(),new tn.KX("fill").makeTwoWay(),new tn.KX("figure")),ei(tn.al,{margin:new tn.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new tn.$u(16,16),maxSize:new tn.$u(10,NaN),textAlign:"center",editable:!0},new tn.KX("key").makeTwoWay())),setTimeout(()=>{Mn.current.grid=ei(tn.s_,"Grid",ei(tn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ei(tn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Mn.current.grid.visible=!0,Mn.current.grid.gridCellStroke="darkgray",Mn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Mn.current,Mn.current}const Ei=()=>At(this,null,function*(){var ei=Mn.current.makeImage();const gn=yield(0,vt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ei.src}});Hn({src:gn.url})});return(0,Lt.useEffect)(()=>(setTimeout(()=>{Gn()},500),Cn(Ee+1),()=>{Mn.current=null}),[]),ft.createElement("div",{ref:wn,className:xi.current?`${gt.maxH60} body-overflow-initial`:"body-overflow-initial"},ft.createElement(Nn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ee,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ft.createElement(Zn.Z,null,ft.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ft.createElement(Tt.Z,{onClick:()=>{var ei,gn,di=Mn.current.selection.first();if(xi.current=!xi.current,document.activeElement&&di){let Ni=(gn=(ei=document.activeElement)==null?void 0:ei.value)==null?void 0:gn.trim();typeof Ni=="string"&&Mn.current.model.commit(function($i){$i.set(di.data,"text",Ni||"\u672A\u547D\u540D"),Mn.current.commandHandler.stopCommand()},"increment")}Cn(Ee+1)}},ft.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Xn},ft.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:gt.flowChartWrp},ft.createElement("div",{style:{display:"flex",height:"100%"}},ft.createElement("div",{style:{width:"300px",height:"100%"}},ft.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ft.createElement("div",{style:{height:"calc(100% - 50px)"},className:gt.myPaletteDiv,ref:pi})),ft.createElement("div",{style:{flex:1,position:"relative"}},ft.createElement("div",{ref:qe,style:{height:"80vh"}}))),ft.createElement("div",{className:"tr"},ft.createElement(te.ZP,{size:"large",onClick:Ei,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var xe=le,ae=Ft(5112),ye=Ft(5871);const Oe=ae.ZP.Group,Te={margin:"0 8px"};var Me=({callback:Xn,onCancel:Hn})=>{function Mn(qe){Xn(qe)}return Lt.createElement(fe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Mn},Lt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Lt.createElement("span",{style:Te},"\u5355\u5143\u683C\u6570\uFF1A"),Lt.createElement("span",{style:Te},"\u884C\u6570"),Lt.createElement(fe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Lt.createElement(ye.Z,null)),Lt.createElement("span",{style:Te},"\u5217\u6570"),Lt.createElement(fe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Lt.createElement(ye.Z,null))),Lt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Lt.createElement("span",{style:Te},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Lt.createElement(fe.default.Item,{name:"align"},Lt.createElement(Oe,null,Lt.createElement(ae.ZP,{value:"default"},Lt.createElement("i",{className:"fa fa-align-justify"})),Lt.createElement(ae.ZP,{value:"left"},Lt.createElement("i",{className:"fa fa-align-left"})),Lt.createElement(ae.ZP,{value:"center"},Lt.createElement("i",{className:"fa fa-align-center"})),Lt.createElement(ae.ZP,{value:"right"},Lt.createElement("i",{className:"fa fa-align-right"}))))),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(te.ZP,{type:"ghost",onClick:Hn},"\u53D6\u6D88")))},on=Ft(78673),Wn=Ft(5559),sn=Ft.n(Wn),Bn=(0,Lt.forwardRef)(({use3d:Xn,width:Hn,height:Mn,callback:qe,showSaveButton:pi},xi)=>{const wn=(0,Lt.useRef)(),Ee=(0,Lt.useRef)(),[Cn,Gn]=(0,Lt.useState)(!1),Ei=(0,Lt.useRef)({id:wn,appName:"graphing",width:Hn||1e3,height:Mn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Lt.useEffect)(()=>{Ee.current=new(sn())(Ei.current,!0),window.onload=function(){Ee.current.inject("applet_container")}},[]);const ei=()=>{var gn=window.ggbApplet.getPNGBase64(1,!0,72);return qe&&qe(gn),gn};return(0,Lt.useEffect)(()=>{Ei.current.appName=Cn?"3D":"graphing",Ee.current.inject("applet_container")},[Cn]),(0,Lt.useEffect)(()=>{Gn(Xn)},[Xn]),(0,Lt.useImperativeHandle)(xi,()=>({getImgData:ei})),Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:wn}),Lt.createElement(Zn.Z,{align:"middle"},Lt.createElement(Tt.Z,{flex:1},Lt.createElement(on.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:gn=>Gn(gn)})),Lt.createElement(Tt.Z,null,Lt.createElement(te.ZP,{size:"large",onClick:ei,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),li=Ft(46531),On=Ft(8591);const Di="link",nr="upload-image",Xi="add-flowchart",Mr="draw-image",br="add-flowchart",eo="code-block",Yr="add-table",qr="------------",Ir={default:qr,left:`:${qr}`,center:`:${qr}:`,right:`${qr}:`};var Xr=Ft(50505);function oo(){}let jo=0;const ds=1e4,no="\u2581",Is="@\u2581\u2581@",xo="@\u2581@",$t=`
**\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`,ni=["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 gs(Xn){return/^\d+$/.test(Xn)?`${Xn}px`:Xn}const Gs=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ha={[Gs+"-B"]:"bold",[Gs+"-I"]:"italic"},Ws={[Di]:"\u6DFB\u52A0\u94FE\u63A5",[eo]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[nr]:"\u6DFB\u52A0\u56FE\u7247",[Mr]:"\u6DFB\u52A0\u753B\u56FE",[Xi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Hr=({defaultValue:Xn="",onChange:Hn,width:Mn="100%",height:qe=400,miniToolbar:pi=!1,isFocus:xi=!1,watch:wn,insertTemp:Ee,mode:Cn="markdown",id:Gn="markdown-editor-id",showResizeBar:Ei=!1,noStorage:ei=!1,showNullButton:gn=!1,showNullProgramButton:di=!1,hidetoolBar:Ni=!1,fullScreen:$i=!1,onBlur:kn,onCMBeforeChange:yi,onFullScreen:Br,className:dr="",disablePaste:zr=!1,disabled:cr=!1,disabledFill:wr=!1,placeholder:or="",values:xr="",extraUse:so})=>{const[Yi,pr]=(0,Lt.useState)(null),[yo,Ss]=(0,Lt.useState)(Xn),[_o,Dn]=(0,Lt.useState)(wn),[Tr,ao]=(0,Lt.useState)($i),[Kr,qo]=(0,Lt.useState)(""),[Oo,wi]=(0,Lt.useState)(0),[Po,Rr]=(0,Lt.useState)(qe),[kr,Ci]=(0,Lt.useState)(!1),[Lo,Bi]=(0,Lt.useState)(0),[Zo,ra]=(0,Lt.useState)(0),fs=(0,Lt.useRef)(),ba=(0,Lt.useRef)(),Vs=(0,Lt.useRef)(),Mo=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{const co=window.scrollY||window.pageYOffset;Ss(xr),Yi==null||Yi.setValue(xr),window.scrollTo(0,co)},[xr]),(0,Lt.useEffect)(()=>{Br==null||Br(Tr)},[Tr]),(0,Lt.useEffect)(()=>{if(fs.current){let co=function(Uo,Ki){var Ts;if(zr){Ki.preventDefault();return}const zs=Ki.clipboardData;if(zs){const Aa=zs.types.toString(),qs=zs.items;if(Aa==="Files"||zs.types.indexOf("Files")>-1){if(Ki.preventDefault(),Cn=="stex")return;try{let Qo=qs[1];((Ts=qs[0])==null?void 0:Ts.kind)==="file"&&(Qo=qs[0]);const Zs=Qo.getAsFile(),vl=Zs.name.split(".").pop();(0,Ve.I)(Zs,yl=>{var Dl,Bs,ai;yl.id?((Dl=Zs==null?void 0:Zs.type)==null?void 0:Dl.indexOf("image"))>-1?to.replaceSelection(`![,](/api/attachments/${yl.id}?type=${yl.content_type})`):((Bs=Zs==null?void 0:Zs.type)==null?void 0:Bs.indexOf("video"))>-1?to.replaceSelection(`<video width="100%" controls src="/api/attachments/${yl.id}"></video>`):((ai=Zs==null?void 0:Zs.type)==null?void 0:ai.indexOf("pdf"))>-1?to.replaceSelection(`<a href="/api/attachments/${yl.id}?type=${Zs.type}&disposition=inline" target="_blank">${Zs.name}</a>`):ni.includes(vl)?to.replaceSelection(`<a href="/api/attachments/${yl.id}?type=office&disposition=inline" target="_blank">${Zs.name}</a>`):to.replaceSelection(`[${Zs.name}](/api/attachments/${yl.id}?type=${yl.content_type})`):(yl==null?void 0:yl.status)===401&&(document.location.href="/user/login")})}catch(Qo){On.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const to=re().fromTextArea(fs.current,{mode:Cn,lineNumbers:!pi,lineWrapping:!0,value:Xn,autoCloseTags:!0,autoCloseBrackets:!0});return to.on("keyup",function(Uo,Ki){Ki.keyCode===8&&(Uo.getValue()==""?to.setOption("placeholder",or):to.setOption("placeholder",null))}),to.on("keydown",function(Uo,Ki){if(Ki.keyCode===8){var Ts=ps(Uo);Ts&&Ki.preventDefault()}}),xi&&to.focus(),to.on("paste",co),cr&&to.on("beforeChange",function(Uo,Ki){(Ki.origin==="paste"||Ki.origin==="+input")&&Ki.cancel()}),pr(to),()=>{to.off("paste",co)}}},[]);const Ho=(0,Lt.useCallback)(()=>{if(ba.current)try{}catch(co){console.log(co,"---- to set md editor body height")}},[Po,ba,Tr]);(0,Lt.useEffect)(()=>{function co(){let to=new Ie.Z(Uo=>{for(let Ki of Uo)(Ki.target.offsetHeight>0||Ki.target.offsetWidth>0)&&(Ho(),Yi.setSize("100%","100%"),Yi.refresh())});return to.observe(fs.current.parentElement),to}if(Yi){const to=co();return()=>{var Uo,Ki;(Uo=fs.current)!=null&&Uo.parentElement&&to.unobserve((Ki=fs.current)==null?void 0:Ki.parentElement)}}},[Yi,Ho]),(0,Lt.useEffect)(()=>{if(Yi){let co=[];for(const[to,Uo]of Object.entries(ha)){let Ki={[to]:()=>{ss(Uo)}};co.push(Ki),Yi.addKeyMap(Ki)}return()=>{for(let to of co)Yi.removeKeyMap(to)}}},[Yi]),(0,Lt.useEffect)(()=>{$i!==Tr&&ao($i)},[$i]),(0,Xr.Z)(()=>{if(!ei&&Oo>0){let co=new Date().getTime(),to=window.sessionStorage.getItem(Gn);co>=Oo+ds&&(!to||to!==yo)&&(window.sessionStorage.setItem(Gn,yo),Ci(!0))}},ds),(0,Lt.useEffect)(()=>{Dn(wn)},[Yi,wn]),(0,Lt.useEffect)(()=>{Yi&&xi&&Yi.focus()},[Yi,xi]),(0,Lt.useEffect)(()=>{if(_o&&Yi){let co=function(Uo){let Ki=Uo.target;if(Mo.current){let Ts=Ki.scrollTop/Ki.scrollHeight;Mo.current.scrollTop=Mo.current.scrollHeight*Ts}};const to=Yi.getScrollerElement();return to.addEventListener("scroll",co),()=>{to.removeEventListener("scroll",co)}}},[Yi,_o]),(0,Lt.useEffect)(()=>{if(Yi&&yi){let co=function(to,Uo){yi(to,Uo)};return Yi.on("beforeChange",co),()=>{Yi.off("beforeChange",co)}}},[Yi,yi]),(0,Lt.useEffect)(()=>{if(Yi&&kn){let co=function(){kn(Yi.getValue())};return Yi.on("blur",co),()=>{Yi.off("blur",co)}}},[Yi,kn]);function ps(co,to){var Uo=co.getDoc(),Ki=Uo.getCursor(),Ts=Uo.getLine(Ki.line),zs=Ts.charAt(Ki.ch-1),Aa=Ts.lastIndexOf("@\u2581@",Ki.ch),qs=Ts.lastIndexOf("@\u2581\u2581@",Ki.ch),Qo=Aa>qs?Aa:qs,Zs=Aa>qs?3:4;if(Is.indexOf(zs)===-1)return null;if(console.log("change1:",to,co,Ts,Ki,Qo,Aa,qs,zs),Qo>=0&&Ki.ch-Qo<5){var vl=Qo+Zs;return Uo.replaceRange("",{line:Ki.line,ch:Qo},{line:Ki.line,ch:vl}),{line:Ki.line,ch:vl}}return null}(0,Lt.useEffect)(()=>{if(Yi){let co=function(to,Uo){const Ki=to.getValue();Ss(Ki),wi(new Date().getTime()),to.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Hn&&(di?Hn(Ki,Ol(Ki)):Hn(Ki))};return Yi.on("change",co),()=>{Yi.off("change",co)}}},[Yi,Hn]),(0,Lt.useEffect)(()=>{if(Yi)if(Xn==null)Yi.setValue(""),Ss("");else{const co=window.scrollY||window.pageYOffset;Xn!==Yi.getValue()&&(Yi.setValue(Xn),Ss(Xn),Yi.setCursor(cr?1:Yi.lineCount(),0),window.scrollTo(0,co))}},[Yi,Xn]);const ss=(0,Lt.useCallback)(co=>{const to=Yi.getCursor(),Uo=Yi.getSelection();let Ki=Uo.split(`
`);switch(co){case"bold":return Yi.replaceSelection("**"+Uo+"**"),Uo===""&&Yi.setCursor(to.line,to.ch+2),Yi.focus();case"italic":return Yi.replaceSelection("*"+Uo+"*"),Uo===""&&Yi.setCursor(to.line,to.ch+1),Yi.focus();case"code":return Yi.replaceSelection("`"+Uo+"`"),Uo===""&&Yi.setCursor(to.line,to.ch+1),Yi.focus();case"inline-latex":return qo("inline-latex"),Yi.focus();case"latex":return Yi.replaceSelection("```latex\n"+Uo+"\n```"),Yi.setCursor(to.line+1,Uo.length+1),Yi.focus();case"line-break":return Yi.replaceSelection(`<br/>
`),Yi.focus();case"list-ul":return Uo===""?Yi.replaceSelection("- "+Uo):Yi.replaceSelection(Ki.map(Ts=>Ts===""?"":`- ${Ts}`).join(`
`)),Yi.focus();case"list-ol":return Uo===""?Yi.replaceSelection("1. "+Uo):Yi.replaceSelection(Ki.map((Ts,zs)=>Ts===""?"":`${zs+1}. ${Ts}`).join(`
`)),Yi.focus();case"add-null-ch":return Uo===""&&Yi.setCursor(to.line,to.ch),Yi.replaceSelection(no),Yi.focus();case"add-signal":return Uo===""&&Yi.setCursor(to.line,to.ch),Yi.replaceSelection(xo),Yi.focus();case"add-multiple":return Uo===""&&Yi.setCursor(to.line,to.ch),Yi.replaceSelection(Is),Yi.focus();case"inster-template-1":return Uo===""&&Yi.setCursor(to.line,to.ch),Yi.replaceSelection($t),Yi.focus();case"eraser":return Yi.setValue(""),Yi.focus();case"trigger-watch":return Dn(!_o),Yi.focus();case"trigger-full-screen":return ao(!Tr),Yi.focus();case Di:qo(Di);return;case eo:qo(eo);return;case nr:qo(nr);return;case Mr:qo(Mr);return;case"maths-latex":qo("maths-latex");return;case Xi:qo(Xi);return;case Yr:qo(Yr);return;default:throw new Error}},[Yi,_o,Tr]),gr=(0,Lt.useCallback)((co,to)=>{var Uo,Ki,Ts,zs,Aa,qs;switch(qo(""),Kr){case Di:const{title:Dl,link:Bs}=co;return Yi.replaceSelection(`[${Dl}](${Bs})`),Yi.focus();case eo:const{language:ai,content:Ga}=co;return Yi.replaceSelection(["```"+ai,Ga,"```"].join(`
`)),Yi.focus();case"maths-latex":for(var Qo=atob(co),Zs=new Uint8Array(Qo.length),vl=0;vl<Qo.length;vl++)Zs[vl]=Qo.charCodeAt(vl);var yl=new Blob([Zs],{type:"image/png"});(0,Ve.I)(yl,Ml=>{Ml.id?Yi.replaceSelection(`![,](/api/attachments/${Ml.id}?type=${Ml.content_type})`):(Ml==null?void 0:Ml.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Yi.replaceSelection("`$$"+co+"$$`");break;case nr:case Mr:case br:const{src:mh,alt:ju}=co,su=to,Ao=(Ts=(Ki=(Uo=su==null?void 0:su.name)==null?void 0:Uo.split("."))==null?void 0:Ki.pop)==null?void 0:Ts.call(Ki);return((zs=su==null?void 0:su.type)==null?void 0:zs.indexOf("image"))>-1||!(su!=null&&su.type)?ju?Yi.replaceSelection(`![ ${ju} ]( ${mh} "${ju}" )`):Yi.replaceSelection(`![,](${mh})`):((Aa=su==null?void 0:su.type)==null?void 0:Aa.indexOf("video"))>-1?Yi.replaceSelection(`<video width="100%" controls src="${mh}"></video>`):((qs=su==null?void 0:su.type)==null?void 0:qs.indexOf("pdf"))>-1?Yi.replaceSelection(`<a href="${mh}?type=${su.type}&disposition=inline" target="_blank">${su.name}</a>`):ni.includes(Ao)?Yi.replaceSelection(`<a href="${mh}?type=office&disposition=inline" target="_blank">${su.name}</a>`):Yi.replaceSelection(`[${su.name}](${mh})`),Yi.focus();case Yr:const{row:Ks,col:Ls,align:bs}=co;let Hs=`
`;for(let Ml=0;Ml<Ks;Ml++){let cs=[],Qs=[];for(let xs=0;xs<Ls;xs++)Ml===1&&Qs.push(Ir[bs]),cs.push(" ");Ml===1&&(Hs+=`| ${Qs.join(" | ")} |
`),Hs+=`| ${cs.join(Ls===1?"":" | ")} |
`}return Yi.replaceSelection(Hs+`
`),Yi.focus();default:throw new Error}},[Yi,Kr]),ke=(0,Lt.useMemo)(()=>{switch(Kr){case Di:return Lt.createElement(bn,{callback:gr,onCancel:ts});case eo:return Lt.createElement(Ln.Z,{callback:gr,onCancel:ts});case nr:return Lt.createElement(Ve.Z,{callback:gr,onCancel:ts});case Xi:return Lt.createElement(xe,{callback:gr,onCancel:ts});case Yr:return Lt.createElement(Me,{callback:gr,onCancel:ts});case"maths-latex":return Lt.createElement(Bn,{showSaveButton:!0,callback:gr});case"inline-latex":return Lt.createElement(li.Z,{showSaveButton:!0,callback:gr});default:return null}},[Kr]);function ts(){qo("")}(0,Lt.useEffect)(()=>{if(Vs.current){let co=function(Aa){Ts=!0,zs=Aa.pageY},to=function(){Ts=!1},Uo=function(Aa){if(Ts){let qs=Aa.pageY-zs;qs<0&&(qs=0),qs>300&&(qs=300);let Qo=qe+qs+"px";Rr(Qo)}},Ki=Vs.current,Ts=!1,zs=0;return Ki.addEventListener("mousedown",co),document.addEventListener("mousemove",Uo),document.addEventListener("mouseup",to),()=>{Ki.removeEventListener("mousedown",co),document.removeEventListener("mousemove",Uo),document.removeEventListener("mouseup",to)}}},[Yi,Vs]),(0,Lt.useEffect)(()=>{Rr(qe)},[qe]);const Sa=gs(Mn),sl=gs(Po),Ll={width:Sa,height:sl},ml=(0,Lt.useMemo)(()=>{if(Oo){let co=new Date(Oo),to=co.getHours(),Uo=co.getMinutes(),Ki=co.getSeconds();return to=to<10?"0"+to:to,Uo=Uo<10?"0"+Uo:Uo,Ki=Ki<10?"0"+Ki:Ki,`${to}:${Uo}:${Ki}`}return 0},[Oo]),Ol=co=>{const to=[];if(di){let Uo=-1;co=co.replace(/(@▁▁@|@▁@)/g,function(Ki,Ts,zs){to.push({multiLine:Ki!==xo})})}return to};function is(){window.sessionStorage.removeItem(Gn),Ci(!1),wi(0)}function $o(){Ci(!1),wi(0),Yi.setValue(window.sessionStorage.getItem(Gn))}(0,Lt.useEffect)(()=>{Ws[Kr]&&Kr!==Mr&&Kr!==Xi&&setTimeout(()=>{const co=document.getElementsByClassName("markdown-popup-form")[0],to=window.innerWidth/2-co.offsetWidth/2,Uo=window.innerHeight/2-co.offsetHeight/2;Bi(to),ra(Uo)},0)},[Kr]);const wo=co=>{co.preventDefault();const to=co.clientX-Lo,Uo=co.clientY-Zo;document.body.onmousemove=Ki=>{let Ts=Ki.clientX-to,zs=Ki.clientY-Uo;const Aa=document.getElementsByClassName("markdown-popup-form")[0],qs=window.innerWidth-Aa.offsetWidth,Qo=window.innerHeight-Aa.offsetHeight;Ts=Math.max(0,Math.min(Ts,qs)),zs=Math.max(0,Math.min(zs,Qo)),ks(Ki.clientX,Ki.clientY,to,Uo)&&(Bi(Ts),ra(zs))},document.body.onmouseup=function(){document.body.onmousemove=null}},ks=(co,to,Uo,Ki)=>{const Ts=document.body.clientHeight,zs=document.body.clientWidth;return co<20&&Uo>co||co>zs-20&&Uo<co||to<20&&Ki>to||to>Ts-20&&Ki<to?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:"markdown-editor-wrapper",ref:ba},Lt.createElement("div",{className:`markdown-editor-container ${dr} ${_o?"on-preview":""} ${pi?"mini":""} ${Tr?"full-screen":""}`,style:Ll},Lt.createElement(oe,{insertTemp:Ee,watch:_o,fullScreen:Tr,showNullButton:gn,showNullProgramButton:di,onActionCallback:ss,hidetoolBar:Ni,extraUse:so}),Lt.createElement("div",{className:"markdown-editor-body"},Lt.createElement("div",{className:"codemirror-container"},Lt.createElement("textarea",{ref:fs,placeholder:or})),_o?Lt.createElement("div",{ref:Mo,className:"preview-container"},Cn==="stex"&&Lt.createElement(Gt,{value:yo}),Cn!=="stex"&&Lt.createElement(se.Z,{disabledFill:wr,showProgramFill:di,value:yo})):null))),Ei?Lt.createElement("a",{ref:Vs,className:"editor-resize"}):null,Kr===Mr&&Lt.createElement(Pi,{callback:gr,onCancel:ts}),Kr===Xi&&Lt.createElement(xe,{callback:gr,onCancel:ts}),Lt.createElement(he.Z,null,Ws[Kr]&&Kr!==Mr&&Kr!==Xi?Lt.createElement(Nn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Lo,top:Zo},title:Lt.createElement("div",{style:{cursor:"move"},onMouseDown:wo},Ws[Kr]),open:!0,onCancel:ts,footer:null,destroyOnClose:!0,width:Kr===Xi?"1200px":null,height:Kr===Xi?"80vh":null,className:"markdown-popup-form"},ke):null))}},56030:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return dt},I:function(){return Nt}});var Lt=Ft(78241),ce=Ft(8591),re=Ft(92832),Ie=Ft(3113),ee=Ft(49291),Vt=Ft(59301),Mt=Ft(59301),jt=Object.defineProperty,qt=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Ct=(Ut,_t,oe)=>_t in Ut?jt(Ut,_t,{enumerable:!0,configurable:!0,writable:!0,value:oe}):Ut[_t]=oe,et=(Ut,_t)=>{for(var oe in _t||(_t={}))Gt.call(_t,oe)&&Ct(Ut,oe,_t[oe]);if(se)for(var oe of se(_t))Xt.call(_t,oe)&&Ct(Ut,oe,_t[oe]);return Ut},tt=(Ut,_t)=>qt(Ut,bt(_t));const{useForm:lt}=Lt.default,rt={width:280,marginRight:10},ht={labelCol:{span:5},wrapperCol:{span:19}};var dt=({callback:Ut,onCancel:_t})=>{const[oe]=lt();let he=(0,Vt.useRef)();function fe(He){Ut(He,he.current)}function Le(He,Wt){if(He.status===-1){ce.ZP.error(He.message);return}oe.setFieldsValue({src:`/api/attachments/${He.id}`,type:Wt.type})}function te(He){let Wt=He.target.files[0];he.current=Wt,Nt(Wt,Le)}return Mt.createElement(Lt.default,tt(et({form:oe},ht),{className:"upload-image-panel",onFinish:fe,style:{width:470,overflow:"hidden"}}),Mt.createElement(Lt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Mt.createElement("div",{className:"flex-container"},Mt.createElement(Lt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Mt.createElement(re.default,{style:rt})),Mt.createElement(xt,{onFileChange:te}))),Mt.createElement(Lt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Mt.createElement(re.default,{style:{width:264}})),Mt.createElement(Lt.default.Item,{style:{textAlign:"right"}},Mt.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Mt.createElement(Ie.ZP,{type:"default",onClick:_t},"\u53D6\u6D88")))};function xt({onFileChange:Ut}){return Mt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Mt.createElement("input",{type:"file",onChange:Ut}))}function Nt(Ut,_t){if(!Ut)throw new String("\u6CA1\u6709\u6587\u4EF6");let oe=new FormData;oe.append("editormd-image-file",Ut),oe.append("file_param_name","editormd-image-file"),oe.append("byxhr","true");var he=new window.XMLHttpRequest;he.withCredentials=!0,he.addEventListener("load",function(fe){_t(JSON.parse(fe.target.responseText),Ut)},!1),he.addEventListener("error",function(fe){console.error(fe)},!1),he.open("POST",`${ee.KI}/api/attachments.json`),he.send(oe)}},19647:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return re}});var Lt=Ft(59301),ce=Ft(4676);class re extends Lt.Component{constructor(ee){super(ee);const Vt=window.document;this.node=Vt.createElement("div"),Vt.body.appendChild(this.node)}render(){const{children:ee}=this.props;return(0,ce.createPortal)(ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57800:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{SV:function(){return le},ZP:function(){return At}});var Lt=Ft(59301),ce=Ft(76374);const re={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"]},Ie={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"]},ee={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},Vt={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(`
`)}]},Mt={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 jt=Ft(7947),qt=Ft.n(jt),bt=Object.defineProperty,se=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(xe,ae,ye)=>ae in xe?bt(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ye}):xe[ae]=ye,lt=(xe,ae)=>{for(var ye in ae||(ae={}))Ct.call(ae,ye)&&tt(xe,ye,ae[ye]);if(Xt)for(var ye of Xt(ae))et.call(ae,ye)&&tt(xe,ye,ae[ye]);return xe},rt=(xe,ae)=>se(xe,Gt(ae)),ht=(xe,ae,ye)=>new Promise((Oe,Te)=>{var Me=sn=>{try{Wn(ye.next(sn))}catch(ln){Te(ln)}},on=sn=>{try{Wn(ye.throw(sn))}catch(ln){Te(ln)}},Wn=sn=>sn.done?Oe(sn.value):Promise.resolve(sn.value).then(Me,on);Wn((ye=ye.apply(xe,ae)).next())});const dt={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"]}},xt=(xe,ae)=>ae.map(ye=>({label:ye,kind:xe.languages.CompletionItemKind.Keyword,insertText:ye})),Nt=xe=>Object.keys(dt.tables).map(ae=>({label:ae,kind:xe.languages.CompletionItemKind.Variable,insertText:ae})),Ut=(xe,ae)=>{const ye=dt.tables[xe];return ye?ye.map(Oe=>({label:Oe,kind:ae.languages.CompletionItemKind.Field,insertText:Oe})):[]};function _t(xe,ae,ye,Oe,Te){let Me=ae.getWordUntilPosition(ye),on={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Me.startColumn,endColumn:Me.endColumn},Wn=Oe.map(sn=>({label:sn,kind:xe.languages.CompletionItemKind.Keyword,insertText:sn,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:on}));return Te.map(sn=>{Wn.push(rt(lt({},sn),{range:on}))}),Wn}var oe=xe=>{dt.languages.map(Te=>(xe.languages.registerDocumentFormattingEditProvider(Te,{provideDocumentFormattingEdits(Me,on,Wn){return ht(this,null,function*(){const sn=qt()(Me.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:Me.getFullModelRange(),text:sn}]})}}),Te));const ae=ee.quickKey.map(Te=>({label:Te.label,kind:xe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ye=Vt.quickKey.map(Te=>({label:Te.label,kind:xe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Oe=Ie.quickKey.map(Te=>({label:Te.label,kind:xe.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet}));xe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Te,Me){var on=Te.getWordUntilPosition(Me),Wn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:on.startColumn,endColumn:on.endColumn},sn=Te.getLineContent(Me.lineNumber).substring(on.startColumn-2,on.endColumn);return{suggestions:[...ee.keywords.map(ln=>({label:ln,kind:xe.languages.CompletionItemKind.Function,documentation:ln,insertText:ln,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...ee.quickKey.map(ln=>({label:ln.label,kind:xe.languages.CompletionItemKind.Function,documentation:ln.content,insertText:sn.startsWith("#")?ln.content.replace(/#/,""):ln.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Te,Me){var on=Te.getWordUntilPosition(Me),Wn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:on.startColumn,endColumn:on.endColumn};return{suggestions:[...re.keywords.map(sn=>({label:sn,kind:xe.languages.CompletionItemKind.Function,documentation:sn,insertText:sn,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Te,Me){var on=Te.getWordUntilPosition(Me),Wn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:on.startColumn,endColumn:on.endColumn},sn=Te.getLineContent(Me.lineNumber).substring(on.startColumn-2,on.endColumn);return{suggestions:[...Ie.keywords.map(ln=>({label:ln,kind:xe.languages.CompletionItemKind.Function,documentation:ln,insertText:ln,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...Ie.quickKey.map(ln=>({label:ln.label,kind:xe.languages.CompletionItemKind.Function,documentation:ln.content,insertText:sn.startsWith("#")?ln.content.replace(/#/,""):ln.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Te,Me){var on=Te.getWordUntilPosition(Me),Wn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:on.startColumn,endColumn:on.endColumn},sn=Te.getLineContent(Me.lineNumber).substring(on.startColumn-2,on.endColumn);return{suggestions:[...Mt.keywords.map(ln=>({label:ln,kind:xe.languages.CompletionItemKind.Function,documentation:ln,insertText:ln,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...Mt.quickKey.map(ln=>({label:ln.label,kind:xe.languages.CompletionItemKind.Function,documentation:ln.content,insertText:sn.startsWith("#")?ln.content.replace(/#/,""):ln.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}}),xe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Te,Me){var on=Te.getWordUntilPosition(Me),Wn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:on.startColumn,endColumn:on.endColumn},sn=Te.getLineContent(Me.lineNumber).substring(on.startColumn-2,on.endColumn);return{suggestions:[...Vt.keywords.map(ln=>({label:ln,kind:xe.languages.CompletionItemKind.Function,documentation:ln,insertText:ln,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn})),...Vt.quickKey.map(ln=>({label:ln.label,kind:xe.languages.CompletionItemKind.Function,documentation:ln.content,insertText:sn.startsWith("#")?ln.content.replace(/#/,""):ln.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Wn}))]}}})};const he="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var fe=Object.defineProperty,Le=(xe,ae,ye)=>ae in xe?fe(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ye}):xe[ae]=ye,te=(xe,ae,ye)=>Le(xe,typeof ae!="symbol"?ae+"":ae,ye);const He=class bw{constructor(ae,ye,Oe){this.placeholder=ae,this.editor=ye,this.monaco=Oe,ye.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return bw.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)}};te(He,"ID","editor.widget.placeholderHint");var Ke=He,_e=Ft(96236),Ne=Ft(8591),Ge=Ft(6848),Ue=Ft(89392),ve=Ft(50484),ne=Ft(56102),Ce=Object.defineProperty,bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,gi=(xe,ae,ye)=>ae in xe?Ce(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ye}):xe[ae]=ye,Kn=(xe,ae)=>{for(var ye in ae||(ae={}))Nn.call(ae,ye)&&gi(xe,ye,ae[ye]);if(Ve)for(var ye of Ve(ae))Zn.call(ae,ye)&&gi(xe,ye,ae[ye]);return xe},Pi=(xe,ae)=>bn(xe,Ln(ae)),tn=(xe,ae)=>{var ye={};for(var Oe in xe)Nn.call(xe,Oe)&&ae.indexOf(Oe)<0&&(ye[Oe]=xe[Oe]);if(xe!=null&&Ve)for(var Oe of Ve(xe))ae.indexOf(Oe)<0&&Zn.call(xe,Oe)&&(ye[Oe]=xe[Oe]);return ye},Li=(xe,ae,ye)=>new Promise((Oe,Te)=>{var Me=sn=>{try{Wn(ye.next(sn))}catch(ln){Te(ln)}},on=sn=>{try{Wn(ye.throw(sn))}catch(ln){Te(ln)}},Wn=sn=>sn.done?Oe(sn.value):Promise.resolve(sn.value).then(Me,on);Wn((ye=ye.apply(xe,ae)).next())});function ji(xe){return/^\d+$/.test(xe)?`${xe}px`:xe}function Ot(){}let Tt=!1;const vt={"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 gt(xe=[]){let ae=xe;if(Array.isArray(xe)){for(let ye=0;ye<xe.length;ye++){let Oe=vt[xe[ye]];if(Oe)return Oe}return ae[0]}return vt[ae]||ae}let ft=null;var At=xe=>{var ae=xe,{width:ye="100%",height:Oe="100%",value:Te,language:Me="javascript",style:on={},options:Wn={},overrideServices:sn={},theme:ln="vs-dark",onEditBlur:Bn,isCopy:li=!1,onSave:On,autoHeight:Di=!1,forbidCopy:nr=!1,onChange:Xi=Ot,editorDidMount:Mr=Ot,onFocus:br=Ot,onBreakPoint:eo=Ot,breakPointValue:Yr=[],filename:qr="educoder.txt",errorLine:Ir,errorContent:Xr="",highlightLine:oo,openBreakPoint:jo=!1,placeholder:ds=""}=ae,no=tn(ae,["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 Is=(0,Lt.useRef)(),xo=(0,Lt.useRef)({}),$t=(0,Lt.useRef)(),ni=(0,Lt.useRef)(),gs=(0,Lt.useRef)([]),ua=(0,Lt.useRef)(!1),Gs=(0,Lt.useRef)(),ha=(0,Lt.useRef)(),Ws=(0,Lt.useRef)(!1),[Hr,Xn]=(0,Lt.useState)(!1);function Hn(){let kn;return Is.current&&(kn=new ce.Z(yi=>{for(let Br of yi)(Br.target.offsetHeight>0||Br.target.offsetWidth>0)&&xo.current.instance.layout()}),kn.observe(Is.current)),kn}function Mn(){Ne.ZP.warning({content:decodeURIComponent(he),key:"monaco-editor-tip"})}const qe=()=>{let kn=xo.current.instance;if(Te!=null&&kn&&Hr){const yi=kn.getModel();yi&&Te!==yi.getValue()&&(Tt=!0,yi.setValue(Te),kn.layout(),Tt=!1)}};(0,Lt.useEffect)(()=>{const kn=ve.Z.subscribe("formatDocument",yi=>{var Br;let dr=xo.current.instance;(Br=dr==null?void 0:dr.getAction)==null||Br.call(dr,"editor.action.formatDocument").run()});return window.updateMonacoValue=yi=>{Xi(yi)},kn},[]),(0,Lt.useEffect)(()=>{var kn;let yi=xo.current.instance;ni.current&&clearTimeout(ni.current),ni.current=setTimeout(()=>{qe()},500),Te&&(Te!=null&&Te.length)&&((kn=yi==null?void 0:yi.updateOptions)==null||kn.call(yi,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,Hr,xo.current]),(0,Lt.useEffect)(()=>{if(Ir&&xo.current&&xo.current.instance){let yi=xo.current.instance;yi.changeViewZones(function(Br){var dr=document.createElement("div");dr.style.padding="10px 20px",dr.style.width="calc(100% - 20px)",dr.className="my-error-line-wrp",dr.innerHTML=Xr,Br.addZone({afterLineNumber:Ir||11,heightInLines:3,domNode:dr})});var kn={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}};yi.addOverlayWidget(kn),yi.revealPositionInCenter({lineNumber:20,column:1})}},[Ir,xo.current,Hr]);const pi=(kn="",yi)=>{if(!kn||kn.trim()==="")return!0;const dr=xo.current.instance.getModel().getLineTokens(yi);let zr=!1;for(let cr=0;cr<2;cr++)dr.getStandardTokenType(cr)===1&&(zr=!0);return zr};(0,Lt.useEffect)(()=>{var kn;const yi=(kn=xo.current)==null?void 0:kn.instance;if(yi&&Hr&&nr){const Br=yi.onDidBlurEditorWidget(()=>{Ws.current=!1}),dr=yi.onDidFocusEditorText(()=>{Ws.current=!0});return()=>{Br.dispose(),dr.dispose()}}},[xo.current,Hr,nr]),(0,Lt.useEffect)(()=>{var kn;if((kn=xo.current)!=null&&kn.instance&&Hr&&jo){let yi=xo.current.instance,Br=yi.getModel();if(!Br)return;(()=>{var _o;let Dn=[],Tr=[];const ao=Br.getAllDecorations();for(let qo of ao)qo.options.className==="highlighted-line"&&(Dn.push((_o=qo==null?void 0:qo.range)==null?void 0:_o.startLineNumber),Tr.push(qo==null?void 0:qo.id));if(oo===Dn[0])return;Br.deltaDecorations(Tr,[]);const Kr=Br.getLineCount();oo&&oo<=Kr&&(yi.deltaDecorations([],[{range:new ft.Range(oo,1,oo,Br.getLineMaxColumn(oo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yi.revealLineInCenter(oo))})();const zr=(_o=!1)=>{var Dn;let Tr=[],ao=[];const Kr=Br.getAllDecorations();for(let qo of Kr)qo.options.linesDecorationsClassName==="breakpoints-select"&&(Tr.push((Dn=qo==null?void 0:qo.range)==null?void 0:Dn.startLineNumber),ao.push(qo==null?void 0:qo.id));if(_o)return{lines:Tr,ids:ao};eo(Tr)},cr=_o=>Li(void 0,null,function*(){let Dn={range:new ft.Range(_o,1,_o,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Br.deltaDecorations([],[Dn]),zr()}),wr=_o=>Li(void 0,null,function*(){let Dn=[];const Tr=yi.getLineDecorations(_o);for(let ao of Tr)ao.options.linesDecorationsClassName==="breakpoints-select"&&Dn.push(ao.id);yield Br.deltaDecorations(Dn,[]),zr()}),or=_o=>{let Dn=yi.getLineDecorations(_o);for(let Tr of Dn)if(Tr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ue.isEqual)(Yr,zr(!0).lines)){Br.deltaDecorations(zr(!0).ids,[]);const _o=Yr.map(Dn=>({range:new ft.Range(Dn,1,Dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Br.deltaDecorations([],_o)}const xr=yi.onDidChangeModelContent(_o=>{let Dn=yi.getPosition();if(Dn){let Tr=Dn.lineNumber;clearTimeout(ha.current),ha.current=setTimeout(()=>{pi(Br.getLineContent(Tr),Tr)?wr(Tr):or(Tr)?(wr(Tr),cr(Tr)):zr()},100)}}),so=yi.onMouseDown(_o=>{var Dn,Tr,ao;if(_o.target.detail&&((ao=(Tr=(Dn=_o.target)==null?void 0:Dn.element)==null?void 0:Tr.className)!=null&&ao.includes("line-numbers"))){let Kr=_o.target.position.lineNumber;if(pi(Br.getLineContent(Kr),Kr))return;or(Kr)?wr(Kr):cr(Kr)}}),Yi=_o=>{let Dn={range:new ft.Range(_o,1,_o,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};gs.current=yi.deltaDecorations(gs.current,[Dn])},pr=()=>{gs.current=yi.deltaDecorations(gs.current,[])},yo=yi.onMouseMove(_o=>{var Dn,Tr,ao;if(pr(),_o.target.detail&&((ao=(Tr=(Dn=_o.target)==null?void 0:Dn.element)==null?void 0:Tr.className)!=null&&ao.includes("line-numbers"))){let Kr=_o.target.position.lineNumber;if(pi(Br.getLineContent(Kr),Kr))return;Yi(Kr)}}),Ss=yi.onMouseLeave(()=>{pr()});return()=>{xr.dispose(),so.dispose(),yo.dispose(),Ss.dispose()}}},[xo.current,Hr,Yr,oo,jo,Me]),(0,Lt.useEffect)(()=>{var kn;(kn=xo.current)!=null&&kn.instance&&jo&&xo.current.instance.setPosition({lineNumber:0,column:0})},[oo]);function xi(){let kn=xo.current.instance;if(kn){const yi=kn.getSelection(),Br=xo.current.pastePos||{},dr=new ft.Range(Br.startLineNumber||yi.endLineNumber,Br.startColumn||yi.endColumn,Br.endLineNumber||yi.endLineNumber,Br.endColumn||yi.endColumn);setTimeout(()=>{kn.executeEdits("",[{range:dr,text:""}])},300)}}function wn(kn){(window.navigator.platform.match("Mac")?kn.metaKey:kn.ctrlKey)&&kn.keyCode==83&&(kn.preventDefault(),On())}const Ee=()=>{if(Di&&xo.current.instance){const kn=xo.current.instance.getContentHeight();Ni(kn<Oe?Oe:kn)}else Ni(Oe)};function Cn(kn){var yi=document.createEvent("MouseEvents");yi.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kn.dispatchEvent(yi)}const Gn=kn=>{if(!Ws.current)return;const{keyCode:yi,ctrlKey:Br,metaKey:dr,target:zr,type:cr}=kn;return(cr==="paste"||(yi===67||yi===86)&&(dr||Br))&&zr.nodeName==="TEXTAREA"&&(Mn(),kn.preventDefault()),!1};function Ei(kn,yi){var Br=window.URL||window.webkitURL||window,dr=new Blob([yi]),zr=document.createElementNS("http://www.w3.org/1999/xhtml","a");zr.href=Br.createObjectURL(dr),zr.download=kn,Cn(zr)}(0,Lt.useEffect)(()=>{Ee()},[Ee]),(0,Lt.useEffect)(()=>{Is.current&&!Hr&&Promise.all([Ft.e(8909),Ft.e(6894)]).then(Ft.bind(Ft,71448)).then(kn=>{try{ft=kn,xo.current.instance=ft.editor.create(Is.current,{value:Te,language:gt(Me),theme:ln,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},sn);const yi=xo.current.instance;let zr=[..._e.BH._menuItems].find(xr=>xr[0]._debugName=="EditorContext")[1],cr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],wr=(xr,so)=>{var Yi,pr;let yo=xr._first;do so.includes((pr=(Yi=yo.element)==null?void 0:Yi.command)==null?void 0:pr.id)&&xr._remove(yo);while(yo=yo.next)};if(Mr(yi,ft),setTimeout(()=>{Ee(),xo.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ei(qr||"educoder.txt",yi.getValue())}})},500),xo.current.subscription=yi.onDidChangeModelContent(xr=>{ua.current?clearTimeout(Gs.current):(Ee(),Xi(yi.getValue(),xr)),Gs.current=setTimeout(()=>{ua.current=!1},500)}),window.Monaco||oe(ft,gt(Me)),nr&&(wr(zr,cr),Is.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Gn),window.removeEventListener("paste",Gn),window.addEventListener("keydown",Gn),window.addEventListener("paste",Gn)),window.Monaco=ft,Bn&&yi.onDidBlurEditorWidget(()=>{Bn(yi.getValue())}),br&&yi.onDidFocusEditorText(()=>{br(yi.getValue())}),nr)try{yi.onDidPaste(xr=>{const so=yi.getSelection(),Yi=xo.current.pastePos||{},pr=new ft.Range(Yi.startLineNumber||so.endLineNumber,Yi.startColumn||so.endColumn,Yi.endLineNumber||so.endLineNumber,Yi.endColumn||so.endColumn);yi.executeEdits("",[{range:xr.range,text:""}])})}catch(xr){}let or=Hn();return ds&&typeof ds=="string"&&new Ke(ds,yi,ft),Xn(!0),()=>{const xr=xo.current.instance;xr.dispose();const so=xr.getModel();so&&so.dispose(),xo.current.subscription&&xo.current.subscription.dispose(),or.unobserve(Is.current)}}catch(yi){}})},[]),(0,Lt.useEffect)(()=>{if(xo.current.instance&&Hr)return document.addEventListener("keydown",wn,!1),()=>{document.removeEventListener("keydown",wn)}},[On,Hr]),(0,Lt.useEffect)(()=>{let kn=xo.current.instance;if(kn&&Hr){let yi=gt(Me);ft.editor.setModelLanguage(kn.getModel(),yi)}},[Me,Hr]),(0,Lt.useEffect)(()=>{xo.current.instance&&Hr&&ft.editor.setTheme(ln)},[ln,Hr]),(0,Lt.useEffect)(()=>{let kn=xo.current.instance;$t.current=Wn,kn&&Hr&&(kn.updateOptions(Kn({},Wn)),setTimeout(()=>{kn.getModel().updateOptions(Kn({},Wn))},200))},[JSON.stringify(Wn),Hr]),(0,Lt.useEffect)(()=>{let kn=xo.current.instance;kn&&Hr&&kn.layout()},[ye,Oe,Hr]);const[ei,gn]=(0,Lt.useState)(ji(ye)),[di,Ni]=(0,Lt.useState)(ji(Oe)),$i=Pi(Kn({},on),{width:ei,height:di,position:"relative"});return Lt.createElement("div",{className:"my-monaco-editor",ref:Is,style:$i},li&&Lt.createElement(ne.CopyToClipboard,{text:Te,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},Lt.createElement(Ge.Z,{title:"\u590D\u5236\u4EE3\u7801"},Lt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Lt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function le({width:xe="100%",height:ae="100%",original:ye,modified:Oe,language:Te,options:Me={}}){const on=(0,Lt.useRef)(),[Wn,sn]=(0,Lt.useState)(null);function ln(Di){let nr;return on.current&&(nr=new ce.Z(Xi=>{for(let Mr of Xi)(Mr.target.offsetHeight>0||Mr.target.offsetWidth>0)&&Di.layout()}),nr.observe(on.current)),nr}(0,Lt.useEffect)(()=>(on.current&&Promise.all([Ft.e(8909),Ft.e(9404)]).then(Ft.bind(Ft,2550)).then(Di=>{ft=Di;const nr=ft.editor.createDiffEditor(on.current,Pi(Kn({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},Me),{wordWrap:!0}));sn(nr);let Xi=ln(nr);return()=>{nr.dispose();const Mr=nr.getModel();Mr&&Mr.dispose(),Xi.unobserve(on.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Lt.useEffect)(()=>{Wn&&Wn.setModel({original:ft.editor.createModel(ye,Te),modified:ft.editor.createModel(Oe,Te)})},[ye,Oe,Te,Wn]);const Bn=ji(xe),li=ji(ae),On={width:Bn,height:li};return Lt.createElement("div",{className:"my-diff-editor",ref:on,style:On})}},15965:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{jL:function(){return ee},w9:function(){return Nn},QD:function(){return Xi},cQ:function(){return ne},op:function(){return ln},O5:function(){return Ws},_b:function(){return Ir},t7:function(){return rt},Gi:function(){return Li},YG:function(){return Pi},qp:function(){return se},vr:function(){return eo},qE:function(){return On},Je:function(){return xt},wb:function(){return _e},cq:function(){return ft},tp:function(){return Ct}});var Lt=Ft(59301),ce={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"},re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ee=({dataSource:Hr=[],img:Xn,imgWidth:Hn=346,title:Mn,sunTitle:qe,bannerExtraContent:pi})=>Lt.createElement("div",{className:ce.banner},Lt.createElement("div",{className:ce.content},Lt.createElement("aside",null,Lt.createElement("p",null,Lt.createElement("b",null,Mn),Lt.createElement("span",null,qe)),Hr.length>0&&Lt.createElement("div",{className:ce.btns},Hr.map((xi,wn)=>Lt.createElement("div",{key:wn,onClick:xi.click},xi.name,xi.sign?Lt.createElement("img",{src:re,width:39}):null))),pi),Xn&&Lt.createElement("img",{style:{marginTop:33,marginRight:38},src:Xn,width:Hn}))),Vt={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"},Mt=Ft(92310),jt=Ft.n(Mt),qt=Ft(89392),se=({dataSource:Hr=[],value:Xn,onChange:Hn,onTitleChange:Mn,className:qe,title:pi,titleWidth:xi=41,style:wn={},fontColor:Ee="#6A7283",showCount:Cn})=>{const[Gn,Ei]=(0,Lt.useState)(0),[ei,gn]=(0,Lt.useState)(!1),di=(0,Lt.useRef)(null),Ni=(0,Lt.useRef)(null);return(0,Lt.useEffect)(()=>{var $i;Hr.length!==0&&((($i=di==null?void 0:di.current)==null?void 0:$i.clientHeight)>97?Ei(1):Ei(0)),Hr.length===0&&Ei(0),gn(!1)},[Hr]),Lt.createElement("div",{className:jt()(Vt.row,qe),style:wn},Lt.createElement("div",{onClick:(0,qt.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:xi,marginTop:ei?12:4},className:`${Vt.title} ${Mn?"current":""}`},pi),Lt.createElement("div",{className:ei?`${Vt.tagsWrap} ${Vt.tagsBorderWrap}`:Vt.tagsWrap},Lt.createElement("div",{className:Vt.bar,ref:Ni,style:Gn>0?{height:Gn===1?97:"auto",overflow:Gn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Lt.createElement("div",{className:Vt.tag,ref:di},Hr==null?void 0:Hr.map($i=>Lt.createElement("span",{onClick:()=>Hn($i.id),key:$i.id,style:{color:Ee},className:Xn===$i.id?Vt.active:""},Lt.createElement("span",{title:$i.name,className:Vt.name},$i.name),!!Cn&&Lt.createElement("span",{className:Vt.num},$i.count))))),!!Gn&&Lt.createElement(Lt.Fragment,null,Gn===1?Lt.createElement("div",{onClick:()=>{var $i;Ei(2),(($i=di==null?void 0:di.current)==null?void 0:$i.clientHeight)>245?gn(!0):gn(!1)},className:Vt.action},"\u5C55\u5F00",Lt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Lt.createElement("div",{onClick:()=>{Ni.current.scrollTop=0,Ei(1),gn(!1)},className:Vt.action},"\u6536\u8D77",Lt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Gt={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"},Ct=({dataSource:Hr=[],value:Xn,onChange:Hn,className:Mn,style:qe={}})=>Lt.createElement("div",{style:qe,className:jt()(Gt.tabs,Mn)},Hr.map(pi=>Lt.createElement("span",{onClick:()=>Hn(pi.id),className:Xn===pi.id?Gt.active:"",key:pi.id},pi.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=Ft(92832),rt=({dataSource:Hr=[],value:Xn="",onChange:Hn,onInputChange:Mn=()=>{},className:qe,style:pi={},placeholder:xi,allowClear:wn=!1})=>{var Ee;const[Cn,Gn]=(0,Lt.useState)(""),[Ei,ei]=(0,Lt.useState)("");(0,Lt.useEffect)(()=>{var Ni;let $i=Xn;(Ni=JSON.stringify(Xn))!=null&&Ni.includes("{")&&(Gn(Xn.id),$i=Xn.value||"");try{ei(decodeURIComponent($i||""))}catch(kn){ei(decodeURIComponent($i||""))}},[Xn]);const gn=()=>{Hn(encodeURIComponent(Ei),Cn||null)},di=Ni=>{Ni!==Cn&&(Gn(Ni),Hn(encodeURIComponent(Ei),Ni))};return Lt.createElement("div",{className:jt()(et.input,qe),style:pi},!!Hr.length&&Lt.createElement("div",{className:et.dropdown},Lt.createElement("div",{className:et.text},(Ee=Hr.find(Ni=>Ni.id===Cn))==null?void 0:Ee.name,Lt.createElement("i",{className:"iconfont icon-zhankai4"}),Lt.createElement("b",{className:et.b1}),Lt.createElement("b",{className:et.b2})),Lt.createElement("div",{className:et.menu},Hr.map((Ni,$i)=>Lt.createElement("div",{key:$i,onClick:()=>di(Ni.id)},Ni.name)))),Lt.createElement(tt.default,{onPressEnter:gn,value:Ei,onChange:Ni=>{ei(Ni.target.value),Mn(encodeURIComponent(Ni.target.value),Cn||null)},bordered:!1,placeholder:xi}),Lt.createElement("i",{onClick:gn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ht={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"},xt=({value:Hr,onChange:Xn,className:Hn,total:Mn,pageSize:qe,style:pi={}})=>{const xi=Hr<2,wn=Hr>=Math.ceil(Mn/qe);return Mn<=qe?Lt.createElement(Lt.Fragment,null):Lt.createElement("div",{className:jt()(ht.quickPager,Hn),style:pi},Lt.createElement("div",{onClick:()=>{xi||Xn(Hr-1,"prev")},className:xi?ht.disabled:""},"\u4E0A\u4E00\u9875"),Lt.createElement("div",{onClick:()=>{wn||Xn(Hr+1,"next")},className:wn?ht.disabled:""},"\u4E0B\u4E00\u9875"))},Nt={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"},Ut=Ft(71418),_t=Ft(6848),oe=Ft(13570),he=Ft(38446),fe=Ft(88230),Le=Ft(96908),te=Ft(57177),He=Ft(81378),Wt=Ft(57816),_e=({className:Hr,dataSource:Xn=[],col:Hn=4,right:Mn,bottom:qe=23,precision:pi=0,wrapWidth:xi=1200,trackEventItems:wn,loading:Ee})=>{const Cn=Math.floor((xi-(Hn-1)*Mn)/Hn);return Lt.createElement(Ut.Z,{spinning:Ee},Lt.createElement("div",{className:jt()(Nt.list,Hr)},!!Xn.length&&Xn.map((Gn,Ei)=>{const{name:ei,id:gn,identifier:di,power:Ni,cover_image_id:$i,pic:kn}=Gn;return Lt.createElement("div",{className:Nt.wrap,key:gn,style:{width:Cn,marginRight:(1+Ei)%Hn===0?0:Mn+pi,marginBottom:qe}},Lt.createElement("a",{target:"_blank",href:`/shixuns/${di}/challenges`,className:Nt.li,onClick:yi=>{yi.preventDefault(),wn&&(0,fe.L9)([wn]),Ni&&(0,fe.xg)(`/shixuns/${di}/challenges`)}},Lt.createElement("div",{className:Nt.img},Lt.createElement("img",{className:Nt.cover,src:`${kn}`}),Gn.is_jupyter&&Lt.createElement("img",{className:Nt.sign,src:Le}),Gn.is_jupyter_lab&&Lt.createElement("img",{className:Nt.sign,src:te}),Gn.is_unity_3d&&Lt.createElement("img",{className:Nt.sign,src:He})),Lt.createElement("div",{className:Nt.name},Lt.createElement(_t.Z,{title:ei||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Lt.createElement("span",{className:Nt.e},ei||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Lt.createElement("div",{className:Nt.tags},Lt.createElement(_t.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Lt.createElement("span",null,Gn.challenges_count))),!!Gn.myshixuns_count&&Lt.createElement(_t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Lt.createElement("span",null,Gn.myshixuns_count))),Lt.createElement(_t.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Lt.createElement("span",null,Lt.createElement("span",null,Gn.level))),Lt.createElement("div",{className:Nt.rate},Lt.createElement(oe.Z,{allowHalf:!0,disabled:!0,defaultValue:Gn.score_info}),Lt.createElement("span",null,"\xA0",Gn.score_info?`${Gn.score_info}\u5206`:"5\u5206")))),!Ni&&Lt.createElement("div",{className:Nt.lockWrap},Lt.createElement("img",{src:`${he.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Lt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Xn.length&&Lt.createElement(Wt.Z,null)))},Ne={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},Ge=Ft(73898),Ue=Ft(59301),ne=({className:Hr,dataSource:Xn=[],col:Hn=4,right:Mn,bottom:qe=23,precision:pi=0,wrapWidth:xi=1200,trackEventItems:wn,loading:Ee,onRemove:Cn=()=>{},isCurrent:Gn=!0,showAlias:Ei=!1})=>{const ei=Math.floor((xi-(Hn-1)*Mn)/Hn),gn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ue.createElement(Ut.Z,{spinning:Ee},Ue.createElement("div",{className:jt()(Ne.list,Hr)},!!(Xn!=null&&Xn.length)&&(Xn==null?void 0:Xn.map((di,Ni)=>{var $i;const{name:kn,id:yi,identifier:Br,featured:dr,school_name:zr,image_url:cr,excellent:wr,is_plan:or}=di;return Ue.createElement("div",{key:yi,className:Ne.wrap,style:{width:ei,marginRight:(1+Ni)%Hn===0?0:Mn+pi,marginBottom:qe}},Ue.createElement("a",{className:Ne.li,onClick:xr=>{xr.preventDefault(),xr.stopPropagation(),wn&&(0,fe.L9)([wn]),(0,fe.xg)(`/paths/${Br}`)}},Ue.createElement("div",{className:Ne.img},Ue.createElement("img",{className:Ne.cover,src:`${cr}`}),Gn&&(0,Ge.bg)()&&(di==null?void 0:di.studying)&&Ue.createElement("div",{className:`${Ne.movebq} user-path-items`,onClick:xr=>{xr.stopPropagation(),Cn(di)}},Ue.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ue.createElement("span",{className:"c-red"},"\u79FB\u9664")),($i=di==null?void 0:di.subject_tags)==null?void 0:$i.map((xr,so)=>{var Yi,pr;if(so===0){const Ss=(Yi=gn.find(_o=>_o.name==xr))==null?void 0:Yi.swimg;return Ue.createElement("img",{className:Ne.sign,src:Ss,style:{left:"-4px"}})}const yo=(pr=gn.find(Ss=>Ss.name==xr))==null?void 0:pr.ptimg;return Ue.createElement("img",{className:Ne.sign,src:yo,style:{left:`${48+52*(so-1)+2*so}px`}})}),Ue.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(di==null?void 0:di.excellent)&&Ue.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ue.createElement("div",{className:Ne.name},Ue.createElement(_t.Z,{title:Ei&&(di!=null&&di.excellent_alias_name)?Ue.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${kn}`,Ue.createElement("br",null),Ue.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${di==null?void 0:di.excellent_alias_name}`)):kn},Ue.createElement("span",{className:Ne.e},Ei&&(di==null?void 0:di.excellent_alias_name)||kn))),Ue.createElement(_t.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${zr}`},Ue.createElement("div",{className:Ne.unit},Ue.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),zr)),Ue.createElement("div",{className:Ne.tags},Ue.createElement("div",null,Ue.createElement(_t.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ue.createElement("span",null,di.stages_count))),Ue.createElement(_t.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ue.createElement("span",null,di.members_count)))))))})),!Xn.length&&Ue.createElement(Wt.Z,null)))},Ce={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},bn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ln=Ft(59301),Nn=({className:Hr,dataSource:Xn=[],col:Hn=4,right:Mn,bottom:qe=23,precision:pi=0,wrapWidth:xi=1200,trackEventItems:wn,loading:Ee,handleVery:Cn=()=>{}})=>{const Gn=Math.floor((xi-(Hn-1)*Mn)/Hn);return Ln.createElement(Ut.Z,{spinning:Ee},Ln.createElement("div",{className:jt()(Ce.list,Hr)},!!Xn.length&&Xn.map((Ei,ei)=>{const{subject_identifier:gn,id:di,identifier:Ni,power:$i}=Ei,kn=Ei.is_public!=0&&Ei.is_public;return Ln.createElement("div",{className:Ce.wrap,key:di,style:{width:Gn,marginRight:(1+ei)%Hn===0?0:Mn+pi,marginBottom:qe}},Ln.createElement("a",{className:Ce.li,onClick:yi=>{yi.preventDefault(),Cn(Ei==null?void 0:Ei.first_category_url)}},Ln.createElement("div",{className:Ce.top},Ln.createElement(_t.Z,{title:Ei.name},Ln.createElement("div",{className:Ce.name},Ei.name)),Ln.createElement("img",{className:Ce.img,src:he.Z.IMG_SERVER+"/images/"+Ei.avatar_url}),Ln.createElement("div",{className:Ce.text,title:Ei.creator},Ei.creator),gn&&Ln.createElement("div",{className:Ce.btns},Ln.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ln.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),kn&&Ln.createElement("div",{className:Ce.sign},"\u516C\u5F00")),Ln.createElement("div",{className:Ce.bottom},Ei.visits>0&&Ln.createElement(_t.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-liulanyan"}),Ln.createElement("span",null,Ei.visits))),Ei.course_members_count>0&&Ln.createElement(_t.Z,{title:"\u6210\u5458",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-chengyuan"}),Ei.course_members_count)),Ei.tasks_count>0&&Ln.createElement(_t.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-zuoye"}),Ei.tasks_count)),Ei.is_end?Ln.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ln.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ei.is_accessible&&Ln.createElement("div",{className:Ce.lockWrap},Ln.createElement("img",{src:`${he.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ln.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Xn.length&&Ln.createElement(Wt.Z,null)))},Zn={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"},gi=Ft(24459),Pi=({dataSource:Hr=[],value:Xn,onChange:Hn,className:Mn,style:qe={},tabBarExtraContent:pi})=>Lt.createElement("div",{className:jt()(Zn.tabs,Mn),style:qe},Lt.createElement("div",{className:Zn.tabsWrap},Hr.map((xi,wn)=>!(xi!=null&&xi.hide)&&Lt.createElement("aside",{className:Zn.tab,onClick:()=>{Hn(xi.id),xi.link&&gi.history.push(xi.link)},key:wn},Lt.createElement("div",{className:Xn===xi.id?Zn.active:""},xi.name),(xi==null?void 0:xi.resetCount)==null&&(xi==null?void 0:xi.total)!==void 0&&Lt.createElement("span",null,"\uFF08",xi==null?void 0:xi.total,"\uFF09"),(xi==null?void 0:xi.resetCount)!==void 0&&(xi==null?void 0:xi.total)!==void 0&&Lt.createElement(_t.Z,{title:(xi==null?void 0:xi.tip)!=null?xi==null?void 0:xi.tip:""},Lt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Lt.createElement("span",{style:{color:"#000"}},xi==null?void 0:xi.resetCount),"/",Lt.createElement("span",null,xi==null?void 0:xi.total),"\uFF09"))))),Lt.createElement("div",{className:Zn.tabBar},pi)),Li=({className:Hr,style:Xn={},children:Hn})=>Lt.createElement("div",{className:jt()(Hr),style:Xn},Hn),ji={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"},Ot=Ft(38854),Tt=Ft(20834);const vt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ft=({sortValue:Hr,dropValue:Xn,className:Hn,onSort:Mn,onDrop:qe,dataSource:pi=vt})=>{var xi;return Lt.createElement("div",{className:jt()(ji.orderWrap,Hn)},Lt.createElement(Ot.Z,{dropdownRender:()=>Lt.createElement(Tt.default,null,pi.map((wn,Ee)=>Lt.createElement(Tt.default.Item,{key:Ee,onClick:()=>qe(wn.id)},wn.name)))},Lt.createElement("span",{className:ji.orderTextWrap},(xi=pi.find(wn=>Xn===wn.id))==null?void 0:xi.name)),Lt.createElement("span",{className:ji.orderIconWrap},Lt.createElement("span",{className:ji.orderAsc},Lt.createElement("i",{className:Hr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ji.cursorPointer} ${ji.active}`:`iconfont icon-sanjiaoxing-up font12 ${ji.cursorPointer}`,onClick:()=>Mn(Hr==="asc"?"desc":"asc")})),Lt.createElement("span",{className:ji.orderDesc},Lt.createElement("i",{className:Hr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ji.cursorPointer} ${ji.active}`:`iconfont icon-sanjiaoxing-down font12 ${ji.cursorPointer}`,onClick:()=>Mn(Hr==="asc"?"desc":"asc")}))))},At={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"},le=Ft(3113),xe=Object.defineProperty,ae=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Te=(Hr,Xn,Hn)=>Xn in Hr?xe(Hr,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):Hr[Xn]=Hn,Me=(Hr,Xn)=>{for(var Hn in Xn||(Xn={}))ye.call(Xn,Hn)&&Te(Hr,Hn,Xn[Hn]);if(ae)for(var Hn of ae(Xn))Oe.call(Xn,Hn)&&Te(Hr,Hn,Xn[Hn]);return Hr},on=(Hr,Xn)=>{var Hn={};for(var Mn in Hr)ye.call(Hr,Mn)&&Xn.indexOf(Mn)<0&&(Hn[Mn]=Hr[Mn]);if(Hr!=null&&ae)for(var Mn of ae(Hr))Xn.indexOf(Mn)<0&&Oe.call(Hr,Mn)&&(Hn[Mn]=Hr[Mn]);return Hn},Wn=(Hr,Xn,Hn)=>new Promise((Mn,qe)=>{var pi=Ee=>{try{wn(Hn.next(Ee))}catch(Cn){qe(Cn)}},xi=Ee=>{try{wn(Hn.throw(Ee))}catch(Cn){qe(Cn)}},wn=Ee=>Ee.done?Mn(Ee.value):Promise.resolve(Ee.value).then(pi,xi);wn((Hn=Hn.apply(Hr,Xn)).next())}),ln=Hr=>{var Xn=Hr,{className:Hn,style:Mn,children:qe,loading:pi=!1,openLoading:xi,onClick:wn=()=>{},size:Ee="middle",shape:Cn="round"}=Xn,Gn=on(Xn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ei,ei]=(0,Lt.useState)(!1);return Lt.createElement(le.ZP,Me({onClick:(0,qt.throttle)(gn=>Wn(void 0,null,function*(){xi&&ei(!0);try{yield wn(gn)}catch(di){console.log("error",di)}xi&&ei(!1)}),2e3,{leading:!0,trailing:!1}),className:jt()(At.btn,At[`${Ee}-${Cn}`],Hn),style:Mn,size:Ee,shape:Cn,loading:Ei||pi},Gn),qe)},Bn={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"},On=({className:Hr,style:Xn,children:Hn=null,onClick:Mn,title:qe})=>Lt.createElement("div",{className:jt()(Bn.head,Hr),style:Xn},Lt.createElement("span",{className:"primary-hover",onClick:Mn},Lt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Lt.createElement("b",{title:qe},qe),Lt.createElement("div",{className:Bn.node},Hn)),Di={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"},Xi=({confirmShow:Hr=!0,confirmTitle:Xn,confirmClick:Hn,cancelShow:Mn=!0,cancelTitle:qe,cancelClick:pi,className:xi,style:wn,confirmLoading:Ee=!1})=>Lt.createElement("div",{className:jt()(Di.btns,xi),style:wn},Hr&&Lt.createElement(le.ZP,{loading:Ee,onClick:Hn,type:"primary",className:Di.confirm},Xn),Mn&&Lt.createElement(le.ZP,{onClick:pi,className:Di.cancel},qe)),Mr={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"},eo=({className:Hr,style:Xn={},LeftContent:Hn,children:Mn,RightContent:qe})=>Lt.createElement("div",{className:jt()(Mr.fixedBottom,Hr),style:Xn},Lt.createElement("div",{className:Mr.wrap},Lt.createElement("div",{className:Mr.left},Hn),Lt.createElement("div",{className:Mr.center},Mn),Lt.createElement("div",{className:Mr.right},qe))),Yr={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"},Ir=({className:Hr,style:Xn={},dataSource:Hn=[]})=>Lt.createElement("div",{className:jt()(Yr.crumbs,Hr),style:Xn},Hn.map((Mn,qe)=>qe<Hn.length-1?Lt.createElement(Lt.Fragment,{key:qe},Mn.path||Mn.onClick?Lt.createElement("span",{className:Yr.hover,onClick:Mn!=null&&Mn.onClick?Mn.onClick:()=>gi.history.push(Mn.path)},Mn.name):Lt.createElement("span",null,Mn.name),Lt.createElement("span",null,"\xA0",">","\xA0")):Lt.createElement("span",{key:qe,style:{color:"#5F6368"}},Mn.name))),Xr=Ft(31797),oo=Object.defineProperty,jo=Object.defineProperties,ds=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,$t=(Hr,Xn,Hn)=>Xn in Hr?oo(Hr,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):Hr[Xn]=Hn,ni=(Hr,Xn)=>{for(var Hn in Xn||(Xn={}))Is.call(Xn,Hn)&&$t(Hr,Hn,Xn[Hn]);if(no)for(var Hn of no(Xn))xo.call(Xn,Hn)&&$t(Hr,Hn,Xn[Hn]);return Hr},gs=(Hr,Xn)=>jo(Hr,ds(Xn)),ua=(Hr,Xn)=>{var Hn={};for(var Mn in Hr)Is.call(Hr,Mn)&&Xn.indexOf(Mn)<0&&(Hn[Mn]=Hr[Mn]);if(Hr!=null&&no)for(var Mn of no(Hr))Xn.indexOf(Mn)<0&&xo.call(Hr,Mn)&&(Hn[Mn]=Hr[Mn]);return Hn};const{Countdown:Gs}=Xr.default;var Ws=Hr=>{var Xn=Hr,{onChange:Hn}=Xn,Mn=ua(Xn,["onChange"]);const[qe,pi]=(0,Lt.useState)(null);(0,Lt.useEffect)(()=>{typeof qe=="number"&&qe>=0&&Hn(qe)},[qe]);const xi=wn=>{const Ee=Math.floor(wn/1e3);pi(Ee)};return Lt.createElement(Gs,gs(ni({},Mn),{onChange:xi}))}},50505:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ce}});var Lt=Ft(59301);function ce(re,Ie){const ee=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{ee.current=re}),(0,Lt.useEffect)(()=>{function Vt(){ee.current()}if(Ie!==null){let Mt=setInterval(Vt,Ie);return()=>clearInterval(Mt)}},[Ie])}},27653:function(hi,Sn,Ft){"use strict";Ft.r(Sn),Ft.d(Sn,{default:function(){return wn}});var Lt=Ft(59301),ce=Ft(61186),re=Ft.n(ce),Ie=Ft(86129),ee=Ft.n(Ie),Vt=Ft(7660),Mt=Ft(24459),jt=Ft(43418),qt=Ft(8591),bt=Ft(61621),se=Ft(66104),Gt=Ft(95237),Xt=Ft(43604),Ct=Ft(3113),et=Ft(6848),tt=Ft(28103),lt=Ft(92832),rt=Ft(1710),ht=Ft(57809),dt=Ft(58421),xt=Ft(27812),Nt=Ft(95869),Ut=Ft(87169),_t=Ft(26227),oe=Ft(38446),he=Ft(73898),fe=Ft(88230),Le=Ft(42441),te={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt"},He={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Wt=({shixunHomeworks:Ee,data:Cn,globalSetting:Gn,loading:Ei,dispatch:ei})=>{var gn;const{shixunWorkReport:di}=Ee;let Ni=((gn=Cn==null?void 0:Cn.efficiency_list)==null?void 0:gn.length)-parseInt(Cn==null?void 0:Cn.myself_eff[0]);const $i=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(yi){return yi.name===di.username?"\u59D3\u540D\uFF1A"+di.username+"<br/>\u5B66\u53F7\uFF1A "+di.user_id+"<br/>\u6548\u7387\uFF1A"+(Cn==null?void 0:Cn.myself_eff[1]):yi.name+":"+yi.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:Cn==null?void 0:Cn.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:di.username,xAxis:Ni,yAxis:Cn==null?void 0:Cn.myself_eff[1],value:Cn==null?void 0:Cn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),kn=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(yi){var Br=yi.value;if(yi.name===di.username)return"\u59D3\u540D\uFF1A"+di.username+"<br/>\u5B66\u53F7\uFF1A "+di.user_id+"<br/>\u5F97\u5206\uFF1A"+(Cn==null?void 0:Cn.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:He,data:Cn==null?void 0:Cn.consume_list,symbolSize:function(yi){return Math.round(yi[2])},markPoint:{data:[{name:di.username,xAxis:Cn==null?void 0:Cn.myself_object[0],yAxis:Cn==null?void 0:Cn.myself_object[1],value:Cn==null?void 0:Cn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return Lt.createElement(Lt.Fragment,null,Lt.createElement("aside",{className:"ml60 pr30"},Lt.createElement(Gt.Z,null,Lt.createElement(Xt.Z,{flex:"800px"},Lt.createElement(Le.Z,{style:{width:750,height:580},option:$i()})),Lt.createElement(Xt.Z,{flex:"1"},Lt.createElement("aside",{className:te.rightInfo},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("span",null,"\u59D3\u540D")," ",Lt.createElement("span",{className:"ml30"},di.username)),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u53F7")," ",Lt.createElement("span",{className:"ml30"},di.student_id||"--")),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",Lt.createElement("span",{className:"ml30 c-orange"},Cn==null?void 0:Cn.myself_eff[1])),Lt.createElement("li",null,Lt.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",Lt.createElement("span",{className:"ml30 c-orange"},Cn==null?void 0:Cn.myself_eff[0]))),Lt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",Lt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",Lt.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",Lt.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),Lt.createElement("aside",{className:"ml60 pr30"},Lt.createElement(Gt.Z,null,Lt.createElement(Xt.Z,{flex:"800px"},Lt.createElement(Le.Z,{style:{width:750,height:580},option:kn()})),Lt.createElement(Xt.Z,{flex:"1"},Lt.createElement("aside",{className:te.rightInfo},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("span",null,"\u59D3\u540D")," ",Lt.createElement("span",{className:"ml30"},di.username)),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u53F7")," ",Lt.createElement("span",{className:"ml30"},di.student_id||"--")),Lt.createElement("li",null,Lt.createElement("span",null,"\u80FD\u529B")," ",Lt.createElement("span",{className:"ml30 c-orange"},Cn==null?void 0:Cn.myself_object[1]))),Lt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",Lt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",Lt.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",Lt.createElement("br",null)))))))};var Ke=(0,Mt.connect)(({shixunHomeworks:Ee,loading:Cn,globalSetting:Gn})=>({shixunHomeworks:Ee,globalSetting:Gn,loading:Cn.effects}))(Wt),_e=Ft(57800),Ne=Ft(5871),Ge=({defaultValue:Ee,onBlur:Cn,max:Gn,className:Ei="game-score"})=>{const[ei,gn]=(0,Lt.useState)(Ee);(0,Lt.useEffect)(()=>{gn(Ee)},[Ee]);function di($i){gn($i)}function Ni(){ei!==Ee&&Cn(ei>Gn?Gn:ei)}return Lt.createElement(Ne.Z,{max:Gn,min:0,className:Ei,value:ei,onChange:di,onBlur:Ni})},Ue=Ft(64726),ve={md:"md___TEmcT"},ne=Ft(59301),Ce=Object.defineProperty,bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Nn=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,gi=(Ee,Cn,Gn)=>Cn in Ee?Ce(Ee,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ee[Cn]=Gn,Kn=(Ee,Cn)=>{for(var Gn in Cn||(Cn={}))Nn.call(Cn,Gn)&&gi(Ee,Gn,Cn[Gn]);if(Ve)for(var Gn of Ve(Cn))Zn.call(Cn,Gn)&&gi(Ee,Gn,Cn[Gn]);return Ee},Pi=(Ee,Cn)=>bn(Ee,Ln(Cn));const tn=ht.default.Option,Li={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var ji=(Ee=>(Ee[Ee.SET_PATH=0]="SET_PATH",Ee[Ee.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Ee))(ji||{});function Ot(Ee,Cn){switch(Cn.type){case 0:return Pi(Kn({},Ee),{selectedPath:Cn.payload});case 1:return Pi(Kn({},Ee),{passedContent:Cn.payload});default:throw new Error}}var Tt=({path:Ee,game_id:Cn,onPathChange:Gn,autoHeight:Ei,diff_code_count:ei,data:gn,game_codes_cn:di})=>{var Ni,$i,kn,yi;const Br=Ee.split("\uFF1B").filter(so=>!!so),[dr,zr]=(0,Lt.useReducer)(Ot,{selectedPath:Br[0],passedContent:{language:"python",content:""}}),{selectedPath:cr,passedContent:wr}=dr;function or(so){zr({type:0,payload:so})}const xr={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return ne.createElement(ne.Fragment,null,ne.createElement("h2",null," ",ne.createElement("span",null,di,ne.createElement(et.Z,{title:ne.createElement("div",null,ne.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),ne.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),ne.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),ne.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},ne.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),ei&&ne.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",ei),ne.createElement("span",null,ne.createElement(ht.default,{style:{width:200},value:cr,onChange:or}," ",Br.map(so=>ne.createElement(tn,{key:so,value:so},so))," "))," "),(cr==null?void 0:cr.split(".")[1])==="md"&&ne.createElement(Ue.Z,{height:300,autoHeight:Ei,defaultValue:(($i=(Ni=gn==null?void 0:gn.filter(so=>so.path===cr))==null?void 0:Ni[0])==null?void 0:$i.content)||"",className:ve.md}),(cr==null?void 0:cr.split(".")[1])!=="md"&&ne.createElement(_e.ZP,{height:300,language:wr.language,value:((yi=(kn=gn==null?void 0:gn.filter(so=>so.path===cr))==null?void 0:kn[0])==null?void 0:yi.content)||"",autoHeight:Ei,theme:"default",isCopy:!0,options:Li}))},vt=Ft(94811),gt=Ft(12911),ft=Ft.n(gt),At=Object.defineProperty,le=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ye=(Ee,Cn,Gn)=>Cn in Ee?At(Ee,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ee[Cn]=Gn,Oe=(Ee,Cn)=>{for(var Gn in Cn||(Cn={}))xe.call(Cn,Gn)&&ye(Ee,Gn,Cn[Gn]);if(le)for(var Gn of le(Cn))ae.call(Cn,Gn)&&ye(Ee,Gn,Cn[Gn]);return Ee},Te=(Ee,Cn,Gn)=>new Promise((Ei,ei)=>{var gn=$i=>{try{Ni(Gn.next($i))}catch(kn){ei(kn)}},di=$i=>{try{Ni(Gn.throw($i))}catch(kn){ei(kn)}},Ni=$i=>$i.done?Ei($i.value):Promise.resolve($i.value).then(gn,di);Ni((Gn=Gn.apply(Ee,Cn)).next())});const Me=({shixunHomeworks:Ee,autoHeight:Cn,classroomList:Gn,dispatch:Ei})=>{var ei,gn,di,Ni,$i,kn,yi;const{shixunWorkReport:Br}=Ee,{stage_list:dr,work_id:zr}=Br,[cr,wr]=(0,Lt.useState)(!1),[or,xr]=(0,Lt.useState)(!0),[so,Yi]=(0,Lt.useState)({left:0,top:0,bottom:0,right:0}),pr=(0,Lt.useRef)(null),[yo,Ss]=(0,Lt.useState)(!1),_o=(Rr,kr)=>{var Ci;const{clientWidth:Lo,clientHeight:Bi}=window.document.documentElement,Zo=(Ci=pr.current)==null?void 0:Ci.getBoundingClientRect();Zo&&Yi({left:-Zo.left+kr.x,right:Lo-(Zo.right-kr.x),top:-Zo.top+kr.y,bottom:Bi-(Zo.bottom-kr.y)})},Dn=(0,Mt.useParams)(),Tr=(0,he.GJ)(),ao={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,Lt.useEffect)(()=>{console.log(Dn)},[]);const Kr=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(Rr,kr,Ci)=>Lt.createElement("div",null,Rr,kr.is_work_end_evaluate&&Lt.createElement(fe.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:Rr=>re()(Rr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(Rr,kr)=>Lt.createElement("span",{className:"c-blue current",onClick:()=>Te(void 0,null,function*(){var Ci,Lo;const Bi=yield(0,vt.Lk)(kr.game_identifier,{path:(Lo=(Ci=kr.path)==null?void 0:Ci.replace(/\/g,";"))==null?void 0:Lo.split(";")[0],query_index:kr.query_index,homework_common_id:Dn.categoryId});(Bi==null?void 0:Bi.status)===0&&(Ss(Bi),wr(!0))})},kr.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],qo=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(Rr,kr)=>{var Ci;return Lt.createElement("span",null,Lt.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:oe.Z.IMG_SERVER+"/images/"+((Ci=kr==null?void 0:kr.user)==null?void 0:Ci.image_url)}),Rr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:Rr=>Lt.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",Rr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:Rr=>Lt.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",Rr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:Rr=>Lt.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",Rr?re()(Rr).format("YYYY-MM-DD HH:mm"):"--")}];function Oo(Rr,kr){return Te(this,null,function*(){const{challenge_id:Ci}=dr[Rr],Lo=yield Ei({type:"shixunHomeworks/changeScore",payload:{categoryId:Dn.homeworkId,type:"report",score:kr,challenge_id:Ci}});yield Ei({type:"shixunHomeworks/getShixunWorkReport",payload:Oe({},Dn)}),Lo.status===0&&qt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function wi(Rr,kr){return(0,Vt.U2)(`student_works/${zr}/rep_passed_content.json`,{path:kr,game_id:Rr})}const Po=Br.shixun_detail;return Lt.createElement(Lt.Fragment,null,Po==null?void 0:Po.map(function(Rr,kr){var Ci,Lo;return Lt.createElement("div",{key:kr},Lt.createElement("aside",{className:"pl30 pr30",key:kr},Lt.createElement("div",{className:`${te.shixunTitle} mt10`},Lt.createElement("div",null,Lt.createElement("span",{className:"fa fa-code "}),Lt.createElement("strong",{className:"c-black"},"\u7B2C",kr+1,"\u5173 ",Lt.createElement(Mt.Link,{className:"c-black",target:"_blank",to:`/tasks/${Dn.coursesId}/${Dn.categoryId}/${Rr.game_identifier}`},Rr.subject))),Tr?Lt.createElement("span",null,"\u8C03\u5206\uFF1A",Lt.createElement(Ge,{className:"game-score",max:dr[kr].game_score_full,defaultValue:dr[kr].game_score,onBlur:Bi=>{var Zo;if((0,he.Rm)()&&!((Zo=Gn.AssistantObject.practice)!=null&&Zo.can_appraise)){qt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Oo(kr,Bi)}})):null),Lt.createElement("div",{className:"font16 mt10"},Rr.st===0&&(Rr.path?typeof(Rr==null?void 0:Rr.game_codes_cn)=="string"?Lt.createElement("aside",{className:te.shixunWrp},Lt.createElement(Tt,{game_codes_cn:Rr==null?void 0:Rr.game_codes_cn,autoHeight:Cn,path:Rr.path,game_id:Rr.id,data:Rr.game_codes,diff_code_count:Rr.diff_code_count,onPathChange:wi})):Lt.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),Rr.st===1&&(Rr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),Lt.createElement("aside",{className:"mt10 font16"},(Ci=Rr.outputs)!=null&&Ci.length?Lt.createElement(rt.default,{columns:Kr,pagination:{hideOnSinglePage:!0},dataSource:Rr.outputs.map(Bi=>Oe(Oe({},Rr),Bi))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),Lt.createElement("aside",{className:"mt10 font16"},((Lo=Rr==null?void 0:Rr.adjust_review_score_list)==null?void 0:Lo.length)>0&&(0,he.GJ)()&&Lt.createElement("div",null,Lt.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),Lt.createElement(rt.default,{columns:qo,pagination:{hideOnSinglePage:!0},dataSource:Rr.adjust_review_score_list,showHeader:!1})))))}),Lt.createElement(jt.default,{open:cr,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{Ss({}),wr(!1)},onCancel:()=>{Ss({}),wr(!1)},title:Lt.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{or&&xr(!1)},onMouseOut:()=>{xr(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:Rr=>Lt.createElement(ft(),{disabled:or,bounds:so,nodeRef:pr,onStart:(kr,Ci)=>_o(kr,Ci)},Lt.createElement("div",{ref:pr},Rr))},Lt.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},Lt.createElement("div",{style:{display:"flex",alignItems:"center"}},((ei=yo==null?void 0:yo.data)==null?void 0:ei.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?Lt.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):Lt.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),Lt.createElement("div",{style:{color:((gn=yo==null?void 0:yo.data)==null?void 0:gn.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(di=yo==null?void 0:yo.data)==null?void 0:di.output_detail)),Lt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},re()((Ni=yo==null?void 0:yo.data)==null?void 0:Ni.created_at).format("YYYY-MM-DD HH:mm:ss"))),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},($i=yo==null?void 0:yo.data)==null?void 0:$i.ts_time,"s")),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(kn=yo==null?void 0:yo.data)==null?void 0:kn.ts_mem,"mb")),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((yi=yo==null?void 0:yo.data)==null?void 0:yi.test_set_passed_rate)*100,"%")))),Lt.createElement(_e.ZP,{height:500,autoHeight:Cn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((yo==null?void 0:yo.content)||""))),options:ao})))};var on=(0,Mt.connect)(({shixunHomeworks:Ee,loading:Cn,globalSetting:Gn,classroomList:Ei})=>({shixunHomeworks:Ee,globalSetting:Gn,loading:Cn.effects,classroomList:Ei}))(Me),Wn=Ft(78241),sn={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},ln=Ft(33471),Bn=Ft(59301),li=Object.defineProperty,On=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,Xi=(Ee,Cn,Gn)=>Cn in Ee?li(Ee,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ee[Cn]=Gn,Mr=(Ee,Cn)=>{for(var Gn in Cn||(Cn={}))Di.call(Cn,Gn)&&Xi(Ee,Gn,Cn[Gn]);if(On)for(var Gn of On(Cn))nr.call(Cn,Gn)&&Xi(Ee,Gn,Cn[Gn]);return Ee},br=(Ee,Cn,Gn)=>new Promise((Ei,ei)=>{var gn=$i=>{try{Ni(Gn.next($i))}catch(kn){ei(kn)}},di=$i=>{try{Ni(Gn.throw($i))}catch(kn){ei(kn)}},Ni=$i=>$i.done?Ei($i.value):Promise.resolve($i.value).then(gn,di);Ni((Gn=Gn.apply(Ee,Cn)).next())});const eo=({shixunHomeworks:Ee,dispatch:Cn,classroomList:Gn})=>{const{shixunWorkReport:Ei}=Ee,ei=(0,Mt.useParams)(),[gn,di]=(0,Lt.useState)(!1),[Ni]=Wn.default.useForm(),[$i,kn]=jt.default.useModal(),[yi,Br]=(0,Lt.useState)(!1),[dr,zr]=(0,Lt.useState)(!1);(0,Lt.useEffect)(()=>{var or,xr,so,Yi;Ee.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Ni.setFieldsValue({comment:(xr=(or=Ee.actionTabs.selectArrs)==null?void 0:or.data)==null?void 0:xr.work_comment,hidden_comment:(Yi=(so=Ee.actionTabs.selectArrs)==null?void 0:so.data)==null?void 0:Yi.work_comment_hidden})},[Ee.actionTabs.key]);const cr=()=>br(void 0,null,function*(){const or=Ni.getFieldsValue();(yield(0,Vt.ZP)(`/api/student_works/${ei.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:or.hidden_comment,comment:or.comment}})).status===0&&(qt.ZP.success("\u8BC4\u9605\u6210\u529F"),Ni.resetFields(),Cn({type:"shixunHomeworks/setActionTabs",payload:{}}),Cn({type:"shixunHomeworks/getShixunWorkReport",payload:Mr({},ei)}))}),wr=[{title:"\u5173\u5361",dataIndex:"name",render:(or,xr,so)=>so+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(or,xr,so)=>Bn.createElement("div",null,or,xr.complete_status===4&&Bn.createElement(fe.vA,{status:xr.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:or=>or?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(or,xr)=>Bn.createElement("div",null,Bn.createElement("span",{style:{color:parseFloat(xr.game_score_full)!==parseFloat(or)?"#E30000":"#53C41B"}},or),"/",xr.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(or,xr)=>(0,he.GJ)()?Bn.createElement(Ge,{max:xr.game_score_full,defaultValue:parseFloat(or),onBlur:so=>br(void 0,null,function*(){var Yi,pr;if((0,he.Rm)()&&!((Yi=Gn.AssistantObject.practice)!=null&&Yi.can_appraise)){qt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const yo=yield Cn({type:"shixunHomeworks/changeScore",payload:{categoryId:ei.homeworkId,type:"report",score:so,challenge_id:xr.challenge_id}});(pr=Ee==null?void 0:Ee.actionTabs)==null||pr.fn(),yield Cn({type:"shixunHomeworks/getShixunWorkReport",payload:Mr({},ei)}),yo.status===0&&qt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):or}];return Bn.createElement(Bn.Fragment,null,kn,Bn.createElement(jt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:Ee.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>br(void 0,null,function*(){var or;if((0,he.Rm)()&&!((or=Gn.AssistantObject.practice)!=null&&or.can_appraise)){qt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const xr=Ni.getFieldsValue();JSON.stringify(xr)==="{}"||xr.hidden_comment===""&&xr.comment===""?di(!0):cr()}),onCancel:()=>{Cn({type:"shixunHomeworks/setActionTabs",payload:{}})}},Bn.createElement(Gt.Z,{justify:"space-between",className:sn.info},Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u59D3\u540D"),Bn.createElement("span",{className:sn.blackContent},Ei==null?void 0:Ei.username)),Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u5B66\u53F7"),Bn.createElement("span",{className:sn.blackContent},(Ei==null?void 0:Ei.student_id)||"--")),Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u73ED\u7EA7"),Bn.createElement("span",{className:sn.blackContent},(Ei==null?void 0:Ei.group_name)||"--")),Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u5173\u5361\u5F97\u5206"),Bn.createElement("span",{className:sn.orangeContent},(Ei==null?void 0:Ei.challenge_score)||"--")),Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u6548\u7387\u5206"),Bn.createElement("span",{className:sn.orangeContent},(Ei==null?void 0:Ei.eff_score)||"--")),Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u8865\u4EA4\u6263\u5206"),Bn.createElement("span",{className:sn.orangeContent},(Ei==null?void 0:Ei.late_penalty)||"--")),Bn.createElement(Xt.Z,null,Bn.createElement("span",{className:`${sn.label} ${sn.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Bn.createElement("span",{className:sn.orangeContent},(Ei==null?void 0:Ei.work_score)||"--"))),Bn.createElement(Wn.default,{form:Ni,onChange:()=>{gn&&di(!1)}},Bn.createElement(Gt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement(Xt.Z,null,Bn.createElement("div",{className:`${sn.inputLabel} ${sn.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement(Xt.Z,null,Bn.createElement(ln.Z,{isShowComponent:(0,he.G5)(),ModalProps:{open:yi,onCancel:()=>{Br(!1)}},onDataSelect:(or,xr)=>br(void 0,[or,xr],function*(so,{node:Yi}){const pr=()=>{Ni.setFieldsValue({comment:Yi==null?void 0:Yi.value}),Br(!1)};if(Ni.getFieldValue("comment")){$i.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:pr});return}pr()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:or=>{Br(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Wn.default.Item,{name:"comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Bn.createElement(Gt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement(Xt.Z,null,Bn.createElement("div",{className:`${sn.inputLabel} ${sn.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement(Xt.Z,null,Bn.createElement(ln.Z,{isShowComponent:(0,he.G5)(),ModalProps:{open:dr,onCancel:()=>{zr(!1)}},onDataSelect:(or,xr)=>br(void 0,[or,xr],function*(so,{node:Yi}){const pr=()=>{Ni.setFieldsValue({hidden_comment:Yi==null?void 0:Yi.value}),zr(!1)};if(Ni.getFieldValue("hidden_comment")){$i.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:pr});return}pr()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:or=>{zr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Wn.default.Item,{name:"hidden_comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),gn&&Bn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Bn.createElement("div",{className:sn.tableTitle},"\u5173\u5361\u6210\u7EE9"),Bn.createElement(rt.default,{className:sn.scoreTable,dataSource:Ei.stage_list,rowKey:"challenge_id",pagination:!1,columns:wr,scroll:{x:"max-content"}})))};var Yr=(0,Mt.connect)(({shixunHomeworks:Ee,classroomList:Cn})=>({shixunHomeworks:Ee,classroomList:Cn}))(eo),qr=Ft(9491),Ir=Ft(99325),Xr=Ft(32186),oo=Ft(65022),jo=Ft.n(oo),ds={wrap:"wrap___LZOi9",line:"line___oju0L"},no=Ft(3545),xo=({detailData:Ee})=>{var Cn;return Lt.createElement("div",{className:ds.wrap},Lt.createElement(no.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,no.Uf)(Ee),(Ee==null?void 0:Ee.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},Lt.createElement(no.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,no.Uf)(Ee)}),!!((Cn=Ee==null?void 0:Ee.photos)!=null&&Cn.length)&&Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:ds.line}),Lt.createElement(no._s,{dataSource:Ee==null?void 0:Ee.photos,right:21,col:4,wrapWidth:1140}))))},$t=Ft(63529),ni=Ft(59301),gs=Object.defineProperty,ua=Object.defineProperties,Gs=Object.getOwnPropertyDescriptors,ha=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,Hr=Object.prototype.propertyIsEnumerable,Xn=(Ee,Cn,Gn)=>Cn in Ee?gs(Ee,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Gn}):Ee[Cn]=Gn,Hn=(Ee,Cn)=>{for(var Gn in Cn||(Cn={}))Ws.call(Cn,Gn)&&Xn(Ee,Gn,Cn[Gn]);if(ha)for(var Gn of ha(Cn))Hr.call(Cn,Gn)&&Xn(Ee,Gn,Cn[Gn]);return Ee},Mn=(Ee,Cn)=>ua(Ee,Gs(Cn)),qe=(Ee,Cn)=>{var Gn={};for(var Ei in Ee)Ws.call(Ee,Ei)&&Cn.indexOf(Ei)<0&&(Gn[Ei]=Ee[Ei]);if(Ee!=null&&ha)for(var Ei of ha(Ee))Cn.indexOf(Ei)<0&&Hr.call(Ee,Ei)&&(Gn[Ei]=Ee[Ei]);return Gn},pi=(Ee,Cn,Gn)=>new Promise((Ei,ei)=>{var gn=$i=>{try{Ni(Gn.next($i))}catch(kn){ei(kn)}},di=$i=>{try{Ni(Gn.throw($i))}catch(kn){ei(kn)}},Ni=$i=>$i.done?Ei($i.value):Promise.resolve($i.value).then(gn,di);Ni((Gn=Gn.apply(Ee,Cn)).next())});const xi=Ee=>{var Cn=Ee,{shixunHomeworks:Gn,classroomList:Ei,globalSetting:ei,loading:gn,user:di,dispatch:Ni}=Cn,$i=qe(Cn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),kn,yi,Br;const[dr,zr]=(0,Lt.useState)(Hn({},(0,Mt.useParams)())),cr=(0,Mt.useParams)(),[wr,or]=(0,Lt.useState)({page:1,page_size:10}),xr=(0,Mt.useLocation)(),[]=(0,Lt.useState)([]),[so,Yi]=(0,Lt.useState)(),pr=(0,Lt.useRef)(),yo=(0,Lt.useRef)(),[Ss,_o]=(0,Lt.useState)(!1),[Dn,Tr]=(0,Lt.useState)(!0),[ao,Kr]=(0,Lt.useState)(!1),[qo,Oo]=(0,Lt.useState)(!1),{shixunWorkReport:wi}=Gn,[Po,Rr]=(0,Lt.useState)(),[kr,Ci]=(0,Lt.useState)([]),[Lo,Bi]=(0,Lt.useState)(),[Zo,ra]=(0,Lt.useState)("all"),fs=(0,he.GJ)(),[ba,Vs]=(0,Lt.useState)(new(ee())),[Mo,Ho]=(0,Lt.useState)(0),[ps,ss]=(0,Lt.useState)(!1),[gr,ke]=(0,Lt.useState)(!1),[ts,Sa]=(0,Lt.useState)(!1),[sl,Ll]=(0,Lt.useState)(""),[ml,Ol]=(0,Lt.useState)(!1),[is,$o]=(0,Lt.useState)(!0),[wo,ks]=(0,Lt.useState)(0),co=(0,Lt.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),to=(0,Lt.useRef)(),Uo=()=>pi(void 0,null,function*(){(di.userInfo.is_teacher||di.userInfo.admin)&&(Ol(!0),$o(!1))});(0,Lt.useEffect)(()=>{var Ao;(0,he.Rm)()&&Ei.AssistantObject.practice&&!((Ao=Ei.AssistantObject.practice)!=null&&Ao.can_view)&&Mt.history.replace("/403")},[(kn=Ei.AssistantObject.practice)==null?void 0:kn.can_view]),(0,Lt.useEffect)(()=>{Uo(),console.log("\u6253\u5370\u7684------",wi),to.current=wi==null?void 0:wi.next_student_work_id,Ll(wi.repeat_minus_score)},[wi,di]),(0,Lt.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",wi.work_score),ks(wi.work_score)},[wi.work_score,sl]),(0,Lt.useEffect)(()=>(Ni({type:"globalSetting/footerToggle",payload:!1}),()=>{Ni({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Lt.useEffect)(()=>{var Ao;if(wi){let Ks=[];(Ao=wi==null?void 0:wi.target_test_sets)==null||Ao.map((Ls,bs)=>{var Hs;(Hs=Ls==null?void 0:Ls.targets)==null||Hs.map((Ml,cs)=>{var Qs;Ml.name=Ls==null?void 0:Ls.name,Ml.total_target_score=Ls==null?void 0:Ls.total_target_score,Ml.actual_target_score=Ls==null?void 0:Ls.actual_target_score,Ml.rowSpan=cs===0?(Qs=Ls==null?void 0:Ls.targets)==null?void 0:Qs.length:0,Ml.order=bs+1,Ks.push(Ml)})}),Rr(Ks),(0,he.Rm)()&&Ni({type:"classroomList/getAssistantPermissions",payload:{course_id:dr.coursesId}})}},[wi]),(0,Lt.useEffect)(()=>{Gn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(wi==null?void 0:wi.students_count)>0&&!Dn&&setTimeout(()=>{vl("all")},800)},[wi==null?void 0:wi.homework_common_id,Dn]),(0,Lt.useEffect)(()=>{zr(Hn({},cr))},[xr.pathname]);const Ki=()=>{document.body.scrollIntoView()},Ts=Ao=>{wr.page=Ao,or(Hn({},wr)),zs(wr,Zo)},zs=(Ao,Ks)=>pi(void 0,null,function*(){Kr(!0);const Ls=yield(0,Vt.ZP)(`/api/student_works/${dr==null?void 0:dr.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Mn(Hn({},Ao),{challenge_id:Ks=="all"?null:Ks})});(Ls==null?void 0:Ls.status)===0&&(Ci(Ls==null?void 0:Ls.list),Bi(Ls==null?void 0:Ls.count)),Kr(!1)});function Aa(){return pi(this,null,function*(){co.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const qs=()=>{document.querySelectorAll("canvas").forEach(Ao=>{(!Ao.clientWidth||!Ao.clientHeight)&&Ao.remove()})},Qo=()=>{pr.current.offsetHeight>62e3?Oo(!1):Oo(!0)},Zs=Ao=>pi(void 0,null,function*(){const Ks=yield(0,Xr.t1)({homeworkId:Ao||dr.homeworkId});Yi(Ks==null?void 0:Ks.data)}),vl=Ao=>pi(void 0,null,function*(){var Ks,Ls,bs,Hs;let Ml=0,cs;cs=jt.default.info({width:460,title:ni.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",ni.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ni.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ni.createElement("span",{className:"c-blue"},Ml+1),"/",Ao!=="all"?1:wi==null?void 0:wi.students_count,ni.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:te.modal,onOk:()=>{}});const Qs={margin:[0,0],filename:`${wi!=null&&wi.student_id&&(wi==null?void 0:wi.student_id)!="--"?wi==null?void 0:wi.student_id:""}${wi.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},xs=ba.folder(wi==null?void 0:wi.shixun_name);function Gr(al){return pi(this,null,function*(){yield Zs(al||to.current);const Ds=yield Ni({type:"shixunHomeworks/getShixunWorkReport",payload:Hn({homeworkId:al||to.current},co.current||{})});to.current=Ds==null?void 0:Ds.next_student_work_id,Ki(),Ml++,setTimeout(()=>pi(this,null,function*(){var Su,Ku,$l,fr;qs();const nl=xs.folder(`${Ds==null?void 0:Ds.group_name}`).folder(`${Ds!=null&&Ds.student_id&&(Ds==null?void 0:Ds.student_id)!="--"?Ds.student_id+"+":""}${Ds==null?void 0:Ds.username}`),bl=document.querySelector("#export-all").children;let au=jo()();for(let Xa=0;Xa<bl.length;Xa++)yield au.set(Qs).from(bl[Xa]).toContainer().toCanvas().toPdf().get("pdf").then(Eo=>pi(this,null,function*(){Xa<bl.length-1&&(yield Eo.addPage())}));if(nl.file(`${Ds!=null&&Ds.student_id&&(Ds==null?void 0:Ds.student_id)!="--"?Ds.student_id+"+":""}${Ds==null?void 0:Ds.username}.pdf`,au.output("blob")),((Su=Ds==null?void 0:Ds.shixun_detail)==null?void 0:Su.length)>0&&(($l=(Ku=Ds==null?void 0:Ds.shixun_detail)==null?void 0:Ku.filter(Xa=>{var Eo;return((Eo=Xa==null?void 0:Xa.game_codes)==null?void 0:Eo.length)>0}))==null?void 0:$l.length)>0){const Xa=nl.folder("\u4EE3\u7801\u6587\u4EF6");(fr=Ds==null?void 0:Ds.shixun_detail)==null||fr.map((Eo,Oa)=>{var $a,lu;if((($a=Eo==null?void 0:Eo.game_codes)==null?void 0:$a.length)>0){const Yl=Xa.folder(`\u7B2C${Oa+1}\u5173-${Eo.subject}-${Eo.id}`);(lu=Eo==null?void 0:Eo.game_codes)==null||lu.map(Pu=>{Yl.file(`${Pu.filename}.txt`,Pu==null?void 0:Pu.content)})}})}cs.update({content:ni.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ni.createElement("span",{className:"c-blue"},Ml),"/",Ds==null?void 0:Ds.students_count,ni.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Ml==(Ds==null?void 0:Ds.students_count)?(cs.destroy(),yl()):Gr()}),2200)})}if(Ao!=="all"||(wi==null?void 0:wi.students_count)<2){qs(),Ki();const al=yo.current.children;let Ds=jo()();const Ku=xs.folder(`${wi==null?void 0:wi.group_name}`).folder(`${wi!=null&&wi.student_id&&(wi==null?void 0:wi.student_id)!="--"?(wi==null?void 0:wi.student_id)+"+":""}${wi==null?void 0:wi.username}`);for(let $l=0;$l<al.length;$l++)yield Ds.set(Qs).from(al[$l]).toContainer().toCanvas().toPdf().get("pdf").then(fr=>pi(void 0,null,function*(){$l<al.length-1&&(yield fr.addPage())}));if(_o(!1),Ku.file(`${wi!=null&&wi.student_id&&(wi==null?void 0:wi.student_id)!="--"?(wi==null?void 0:wi.student_id)+"+":""}${wi.username}.pdf`,Ds.output("blob"),{base64:!1}),((Ks=wi==null?void 0:wi.shixun_detail)==null?void 0:Ks.length)>0&&((bs=(Ls=wi==null?void 0:wi.shixun_detail)==null?void 0:Ls.filter($l=>{var fr;return((fr=$l==null?void 0:$l.game_codes)==null?void 0:fr.length)>0}))==null?void 0:bs.length)>0){const $l=Ku.folder("\u4EE3\u7801\u6587\u4EF6");(Hs=wi==null?void 0:wi.shixun_detail)==null||Hs.map((fr,Wa)=>{var nl,bl;if(((nl=fr==null?void 0:fr.game_codes)==null?void 0:nl.length)>0){const au=$l.folder(`\u7B2C${Wa+1}\u5173-${fr.subject}-${fr.id}`);(bl=fr==null?void 0:fr.game_codes)==null||bl.map(Xa=>{au.file(`${Xa.filename}.txt`,Xa==null?void 0:Xa.content)})}})}cs.destroy(),yl();return}else Gr(wi==null?void 0:wi.first_student_work_id)}),yl=()=>{ba.generateAsync({type:"blob"}).then(function(Ao){console.log(wi,"shixunWorkReport");const Ks=document.createElement("a");Ks.href=window.URL.createObjectURL(Ao),Ks.download=(wi==null?void 0:wi.shixun_name)+".zip",document.body.appendChild(Ks);const Ls=document.createEvent("MouseEvents");Ls.initEvent("click",!1,!1),Ks.dispatchEvent(Ls),document.body.removeChild(Ks),Vs(new(ee()))}),Oo(!1)};(0,Lt.useEffect)(()=>{Dl()},[dr.homeworkId]);const Dl=()=>pi(void 0,null,function*(){Tr(!0),yield Ni({type:"shixunHomeworks/getShixunWorkReport",payload:Hn(Hn({},dr),co.current||{})}),Zs(),(0,he.GJ)()&&Aa(),Tr(!1)}),Bs=[{title:"\u5173\u5361",dataIndex:"name",render:(Ao,Ks,Ls)=>Ls+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ao,Ks,Ls)=>ni.createElement("div",null,Ao,Ks.complete_status===4&&ni.createElement(fe.vA,{status:Ks.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Ao,Ks,Ls)=>Ao||"- -"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:Ao=>Ao?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Ao,Ks)=>ni.createElement("div",null,ni.createElement("span",{style:{color:parseFloat(Ks.myself_experience)!==parseFloat(Ao)?"red":"green"}},Ks.myself_experience),"/",Ao)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Ao,Ks)=>ni.createElement("div",null,ni.createElement("span",{style:{color:parseFloat(Ks.game_score_full)!==parseFloat(Ao)?"red":"green"}},Ao),"/",Ks.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Ao,Ks)=>fs?ni.createElement(Ge,{max:Ks.game_score_full,defaultValue:parseFloat(Ao),onBlur:Ls=>pi(void 0,null,function*(){var bs;if((0,he.Rm)()&&!((bs=Ei.AssistantObject.practice)!=null&&bs.can_appraise)){qt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Hs=yield Ni({type:"shixunHomeworks/changeScore",payload:{categoryId:dr.homeworkId,type:"report",score:Ls,challenge_id:Ks.challenge_id}});zs({page:1,page_size:10},"all"),yield Ni({type:"shixunHomeworks/getShixunWorkReport",payload:Hn(Hn({},dr),co.current||{})}),Hs.status===0&&qt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ao}];let ai=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Ao,Ks,Ls)=>({children:Ao,props:{rowSpan:Ks.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Ao,Ks,Ls)=>({children:Ao,props:{rowSpan:Ks.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Ao,Ks,Ls)=>ni.createElement("div",null,ni.createElement("span",{style:{color:parseFloat(Ks.actual_test_score)!==parseFloat(Ao)?"red":"green"}},Ks.actual_test_score),"/",Ao)},{title:"\u6307\u6807\u603B\u5206",render:(Ao,Ks,Ls)=>({children:ni.createElement("div",null,ni.createElement("span",{style:{color:parseFloat(Ks.actual_target_score)!==parseFloat(Ao)?"red":"green"}},Ks.actual_target_score),"/",Ao),props:{rowSpan:Ks.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Ga=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:Ao=>ni.createElement("span",null,Ao?re()(Ao).format("YYYY-MM-DD HH:mm"):"--")}],mh=Ao=>{Ni({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Ao==="next"?Mt.history.push(`/classrooms/${dr.coursesId}/shixun_homework/${dr.categoryId}/${wi==null?void 0:wi.next_student_work_id}/comment`):Mt.history.push(`/classrooms/${dr.coursesId}/shixun_homework/${dr.categoryId}/${wi==null?void 0:wi.pre_student_work_id}/comment`)},200)},ju=Ao=>{Ll(""),Ao.target.value&&(console.log("\u8FDB\u6765",wi),Ao.target.value=Ao.target.value>wi.repeat_setting_score?wi.repeat_setting_score:Ao.target.value,Ll(Ao.target.value))},su=()=>pi(void 0,null,function*(){const Ao=yield(0,Vt.ZP)(`/api/student_works/${wi==null?void 0:wi.work_id}/update_repeat_score`,{method:"put",body:{score:sl}});yield Ni({type:"shixunHomeworks/getShixunWorkReport",payload:Hn(Hn({},dr),co.current||{})}),Ao.status===0&&qt.ZP.info("\u64CD\u4F5C\u6210\u529F")});return ni.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},ni.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},ni.createElement(bt.Z,{loading:gn["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},ni.createElement("div",{className:"edu-container"},wi.course_id&&ni.createElement("section",{className:"animated fadeIn"},ni.createElement("aside",{className:""},wi.category&&ni.createElement(se.Z,{separator:">"},ni.createElement(se.Z.Item,null,ni.createElement(Mt.Link,{to:`/classrooms/${wi.course_id}/shixun_homework`},wi.course_name)),ni.createElement(se.Z.Item,null,ni.createElement(Mt.Link,{to:`/classrooms/${wi.course_id}/shixun_homework/${wi.category.main?"":wi.category.category_id}`},wi.category.category_name)),ni.createElement(se.Z.Item,null,ni.createElement(Mt.Link,{to:`/classrooms/${wi.course_id}/shixun_homework/${wi.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),ni.createElement(se.Z.Item,null,wi.username))),ni.createElement("aside",{className:[te.title1,"mt20"].join(" ")},ni.createElement(Gt.Z,{align:"middle"},ni.createElement(Xt.Z,{flex:1},ni.createElement(Mt.Link,{to:`/classrooms/${wi.course_id}/shixun_homework/${wi.homework_common_id}/detail`},ni.createElement(xt.Z,{className:"font16 c-black"})),ni.createElement("strong",{className:"font20 ml5"},wi==null?void 0:wi.homework_name),ni.createElement(fe.VV,{temporary:!0,status:wi.homework_status})),ni.createElement(Xt.Z,{className:te.title1_right},wi.view_tpi&&ni.createElement(Ct.ZP,{onClick:()=>{var Ao,Ks;(0,fe.xg)(`/tasks/${wi==null?void 0:wi.course_id}/${wi==null?void 0:wi.homework_common_id}/${(Ks=(Ao=wi==null?void 0:wi.shixun_detail)==null?void 0:Ao[0])==null?void 0:Ks.game_identifier}`)}},ni.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,he.GJ)()&&wi.homework_end===!1&&!!wi.myshixun_id&&ni.createElement(Ct.ZP,{className:"ml10",onClick:()=>pi(void 0,null,function*(){yield Ni({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:wi.myshixun_identifier},homework_common_id:cr.categoryId}})})},ni.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),ni.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,he.Rm)()&&!((Ao=Ei.AssistantObject.practice)!=null&&Ao.can_download)){qt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}vl("")},loading:Ss},ni.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,he.GJ)()&&(wi==null?void 0:wi.students_count)>1&&ni.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,he.Rm)()&&!((Ao=Ei.AssistantObject.practice)!=null&&Ao.can_download)){qt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}jt.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:ni.createElement(et.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:ni.createElement(et.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{vl("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,$t.jj)({categoryId:dr.categoryId,coursesId:dr.coursesId},"shixun_report")}}})}},ni.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),ni.createElement("aside",{className:"mt30 relative"})),ni.createElement("aside",{className:"edu-container bg-white",ref:pr},ni.createElement("div",{id:"export-all",ref:yo},ni.createElement("div",{id:"export-all-1"},ni.createElement("div",{className:te.title},ni.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),ni.createElement("div",null,(0,he.GJ)()&&ni.createElement(Ct.ZP,{className:"mr20",type:"primary",onClick:()=>{Ni({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:wi.user_id,data:Hn({},wi)},fn:()=>zs({page:1,page_size:10},"all")}})}},ni.createElement(Nt.Z,null),wi.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),ni.createElement(tt.Z,{style:{marginTop:0}}),ni.createElement(Gt.Z,{className:"pl30 pr30"},ni.createElement(Xt.Z,null,ni.createElement("img",{className:te.userPic,src:`${oe.Z.IMG_SERVER}/images/${wi.image_url}`,alt:wi.username})),ni.createElement(Xt.Z,null,ni.createElement("span",{className:"font16 ml40"},wi.username),ni.createElement(fe.vA,{status:wi.compelete_status}),ni.createElement("ul",{className:te.userInfo},ni.createElement("li",null,"\u5B66\u53F7\uFF1A",wi.student_id||"--"),ni.createElement("li",null,"\u5206\u73ED\uFF1A",wi.group_name||"--"),ni.createElement("br",null),ni.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",ni.createElement("span",{className:"c-red"},wi.complete_count),"/",ni.createElement("span",{className:"c-red"},wi.challenges_count)),ni.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",ni.createElement("span",{className:"c-red"},wi.current_complete_count||"-"),"/",ni.createElement("span",{className:"c-red"},wi.challenges_count)),ni.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",wi&&wi.efficiency===null?"--":wi&&wi.efficiency),ni.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",wi&&wi.max_efficiency===null?"--":wi&&wi.max_efficiency))),ni.createElement("ul",{className:[te.listItem,"mt10"].join(" ")},ni.createElement("li",null,ni.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),ni.createElement("div",{className:"c-light-black mt20"},wi&&wi.passed_time===null||wi&&wi.passed_time==="--"?"--":re()(wi&&wi.passed_time).format("YYYY-MM-DD HH:mm"))),ni.createElement("li",null,ni.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",ni.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),ss(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ni.createElement("div",{className:"c-light-black mt20"},wi==null?void 0:wi.human_training_time_rules)),ni.createElement("li",null,ni.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",ni.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),ke(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ni.createElement("div",{className:"c-light-black mt20"},wi.time_consuming)),ni.createElement("li",null,ni.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),ni.createElement("div",{className:"mt20"},wi.evaluate_count)),(wi==null?void 0:wi.eff_score_full)&&ni.createElement(ni.Fragment,null,ni.createElement("li",null,ni.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),ni.createElement("div",{className:"mt20"},ni.createElement("span",{className:"c-orange"},wi.challenge_score),"/",ni.createElement("span",{className:"c-light-black"},wi.challenge_score_full))),ni.createElement("li",null,ni.createElement("strong",null,"\u6548\u7387\u5206"),ni.createElement("div",{className:"mt20"},ni.createElement("span",{className:"c-orange"},wi.eff_score),"/",ni.createElement("span",{className:"c-light-black"},wi.eff_score_full)))),(wi==null?void 0:wi.have_repeat)&&(wi==null?void 0:wi.repeat_minus_score)!==0&&ni.createElement("li",{style:{position:"relative"}},ni.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ni.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ni.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},wi!=null&&wi.review_rate?ni.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(wi!=null&&wi.review_id&&ml)localStorage.setItem("studentDetial",window.location.pathname),Mt.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${dr.categoryId}/review_detail/${wi==null?void 0:wi.review_id}`});else return}},wi.review_rate.toFixed(1),"%"):ni.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),ml?ni.createElement("div",{className:"mt20"},ni.createElement(lt.default,{style:{width:"45px",height:"22px"},value:sl,onChange:Ao=>{ju(Ao)},onBlur:su,disabled:is})," / ",wi==null?void 0:wi.repeat_setting_score):ni.createElement("div",{className:"mt20"},wi==null?void 0:wi.repeat_minus_score," / ",wi==null?void 0:wi.repeat_setting_score)),console.log("sssssssssssssssssssssss",wi==null?void 0:wi.have_repeat,wi==null?void 0:wi.repeat_minus_score),(wi==null?void 0:wi.have_repeat)&&(wi==null?void 0:wi.repeat_minus_score)===0&&ni.createElement("li",null,ni.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ni.createElement("div",{className:"mt20"}," - -")),!(wi!=null&&wi.have_repeat)&&ni.createElement("li",null,ni.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ni.createElement("div",{className:"mt20"}," - -")),ni.createElement("li",null,ni.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),ni.createElement("div",{className:"mt20"},ni.createElement("span",null,wi.late_penalty||"- -"))),ni.createElement("li",null,ni.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),ni.createElement("div",{className:"mt20"},ni.createElement("span",{className:"c-orange"},wo),"/",ni.createElement("span",{className:"c-light-black"},wi.all_work_score))),ni.createElement("li",null,ni.createElement("strong",null,"\u603B\u8BC4"),ni.createElement("div",{className:"mt20"},ni.createElement("span",{className:"c-orange"},wi.overall_appraisal))))),ni.createElement(tt.Z,{style:{margin:0}}),(wi.work_comment_hidden||wi.work_comment)&&ni.createElement("div",null,ni.createElement(Gt.Z,{align:"middle"},ni.createElement(Xt.Z,{flex:1},ni.createElement("h1",{className:te.title},"\u70B9\u8BC4\u5185\u5BB9")),ni.createElement(Xt.Z,{className:"pr30"},(0,he.GJ)()&&ni.createElement(Ct.ZP,{onClick:()=>pi(void 0,null,function*(){jt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:ni.createElement(Ut.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return pi(this,null,function*(){(yield(0,Xr.gZ)({comment_id:wi.comment_id,homeworkId:dr.homeworkId})).status===0&&(qt.ZP.success("\u5220\u9664\u6210\u529F"),Ni({type:"shixunHomeworks/getShixunWorkReport",payload:Hn(Hn({},dr),co.current||{})}))})}})})},ni.createElement(_t.Z,null),"\u5220\u9664"))),ni.createElement(tt.Z,{style:{margin:0}}),wi.work_comment&&ni.createElement("aside",{className:"pl30 pr30 mt20"},ni.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ni.createElement("br",null),ni.createElement(Ir.Z,{value:wi.work_comment})),wi.work_comment_hidden&&ni.createElement("aside",{className:"pl30 pr30 mt20"},ni.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ni.createElement("br",null),ni.createElement(Ir.Z,{value:wi.work_comment_hidden}))),(wi==null?void 0:wi.action_analysis)&&ni.createElement(xo,{detailData:wi}),ni.createElement("div",{className:te.score},ni.createElement("h1",{className:te.title},"\u9636\u6BB5\u6210\u7EE9"),(wi==null?void 0:wi.adjust_review_score_count)>0&&(0,he.GJ)()&&ni.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Sa(!0),zs({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",wi==null?void 0:wi.adjust_review_score_count,"\u6B21\uFF09")),ni.createElement("aside",{className:"pl30 pr30"},ni.createElement(rt.default,{dataSource:wi.stage_list,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,columns:Bs})),((yi=wi==null?void 0:wi.target_test_sets)==null?void 0:yi.length)>0&&ni.createElement("div",null,ni.createElement("h1",{className:te.title},"\u6307\u6807\u6210\u7EE9"),ni.createElement("aside",{className:"pl30 pr30"},ni.createElement(rt.default,{dataSource:Po,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,bordered:!0,columns:ai}))),(wi==null?void 0:wi.work_description)&&ni.createElement(ni.Fragment,null,ni.createElement("h1",{className:te.title},"\u4E2A\u4EBA\u603B\u7ED3"),ni.createElement("aside",{className:"pl30 pr30"},ni.createElement(Ir.Z,{value:wi==null?void 0:wi.work_description}))),ni.createElement("h1",{className:te.title},"\u56FE\u5F62\u7EDF\u8BA1"),ni.createElement(Ke,{data:so}),ni.createElement("h1",{className:te.title},"\u5B9E\u8BAD\u8BE6\u60C5")),ni.createElement(on,{autoHeight:qo}))),(0,he.GJ)()&&ni.createElement("aside",{className:`${te.footerBar} ${Ss?te.footerBarStatic:""}`},ni.createElement("aside",{className:"edu-container"},ni.createElement(Gt.Z,{align:"middle"},ni.createElement(Xt.Z,{flex:"1"},ni.createElement(Mt.Link,{className:te.exitComment,to:`/classrooms/${dr.coursesId}/shixun_homework/${dr.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),ni.createElement(Xt.Z,{flex:"1",className:"tr"},ni.createElement(Ct.ZP,{type:"default",disabled:!(wi!=null&&wi.pre_student_work_id),onClick:()=>mh()},"\u4E0A\u4E00\u4E2A"),ni.createElement(Ct.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(wi!=null&&wi.next_student_work_id),onClick:()=>mh("next")},"\u4E0B\u4E00\u4E2A"),(0,he.GJ)()&&ni.createElement(Ct.ZP,{type:"primary",onClick:()=>pi(void 0,null,function*(){Ni({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:wi.user_id,data:Hn({},wi)},fn:()=>zs({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),ni.createElement(Yr,null),ni.createElement(qr.Z,null),ni.createElement(jt.default,{open:ps,width:860,centered:!0,onCancel:()=>{ss(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},ni.createElement("div",{style:{color:"#333333",fontWeight:400}},ni.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),ni.createElement("br",null),ni.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),ni.createElement("br",null),ni.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),ni.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),ni.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),ni.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ni.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),ni.createElement("br",null),ni.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),ni.createElement("br",null),ni.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),ni.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),ni.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),ni.createElement("br",null),ni.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),ni.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ni.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),ni.createElement("br",null),ni.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),ni.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ni.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),ni.createElement("br",null),ni.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),ni.createElement(jt.default,{open:gr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{ke(!1)},width:600},ni.createElement("div",{style:{fontWeight:400,color:"#333333"}},ni.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ni.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),ni.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ni.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),ni.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ni.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),ni.createElement(jt.default,{open:ts,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{ra("all"),Sa(!1)},destroyOnClose:!0,width:900},ni.createElement("div",{style:{fontWeight:400,color:"#333333"}},ni.createElement("div",null,ni.createElement("span",null,"\u5173\u5361\uFF1A"),ni.createElement(ht.default,{style:{width:300},value:Zo,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Ao=>pi(void 0,null,function*(){ra(Ao),zs({page:1,page_size:10},Ao)})},ni.createElement(ht.default.Option,{value:"all"}," \u5168\u90E8 "),(Br=wi==null?void 0:wi.stage_list)==null?void 0:Br.map((Ao,Ks)=>ni.createElement(ht.default.Option,{key:Ks,value:Ao==null?void 0:Ao.challenge_id},"\u7B2C",(0,fe.EM)(Ks+1),"\u5173")))),ni.createElement("div",{className:"mt20"},ni.createElement(rt.default,{dataSource:kr,rowKey:Ao=>Ao==null?void 0:Ao.id,pagination:!1,columns:Ga,loading:ao})),ni.createElement("div",{className:te.footer},ni.createElement("div",null,ni.createElement("span",{style:{color:"#656F87"}},"\u5171",ni.createElement("span",{className:"c-light-primary"},Lo),"\u6761\u6570\u636E")),ni.createElement(dt.Z,{defaultCurrent:1,defaultPageSize:10,current:(wr==null?void 0:wr.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:Lo,onChange:Ts})))))};var wn=(0,Mt.connect)(({shixunHomeworks:Ee,classroomList:Cn,loading:Gn,globalSetting:Ei,user:ei})=>({shixunHomeworks:Ee,classroomList:Cn,globalSetting:Ei,loading:Gn.effects,user:ei}))(xi)},9491:function(hi,Sn,Ft){"use strict";var Lt=Ft(43418),ce=Ft(8591),re=Ft(7660),Ie=Ft(24459),ee=Ft(73898),Vt=Ft(59301),Mt=(qt,bt,se)=>new Promise((Gt,Xt)=>{var Ct=lt=>{try{tt(se.next(lt))}catch(rt){Xt(rt)}},et=lt=>{try{tt(se.throw(lt))}catch(rt){Xt(rt)}},tt=lt=>lt.done?Gt(lt.value):Promise.resolve(lt.value).then(Ct,et);tt((se=se.apply(qt,bt)).next())});const jt=({shixunHomeworks:qt,classroomList:bt,dispatch:se})=>{const Gt=(0,Ie.useParams)();return Vt.createElement(Lt.default,{centered:!0,title:"\u63D0\u793A",open:qt.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Mt(void 0,null,function*(){var Xt,Ct,et,tt;if((0,ee.Rm)()&&!((Xt=bt.AssistantObject.practice)!=null&&Xt.can_redo)){ce.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const lt=yield(0,re.ZP)(`/api/myshixuns/${qt.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Gt.coursesId,homework_common_id:qt.actionTabs.homework_common_id}});if(lt.shixun_identifier){ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),se({type:"shixunHomeworks/setActionTabs",payload:{}});const rt=(et=(Ct=lt==null?void 0:lt.new_works)==null?void 0:Ct.find(ht=>`${ht.homework_common_id}`===Gt.categoryId))==null?void 0:et.id;if((0,ee.Rm)()&&!((tt=bt.AssistantObject.practice)!=null&&tt.can_view))return;Ie.history.replace(`/classrooms/${Gt.coursesId}/shixun_homework/${Gt.categoryId}/${rt}/comment`)}}),onCancel:()=>{se({type:"shixunHomeworks/setActionTabs",payload:{}})}},Vt.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Vt.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Sn.Z=(0,Ie.connect)(({shixunHomeworks:qt,classroomList:bt})=>({shixunHomeworks:qt,classroomList:bt}))(jt)},63529:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{AD:function(){return Ke},D9:function(){return ne},Hp:function(){return Ut},IM:function(){return bn},Iy:function(){return oe},KM:function(){return ji},MJ:function(){return _t},Ne:function(){return Ce},ON:function(){return gi},Uj:function(){return tn},VY:function(){return Nn},YO:function(){return Pi},YX:function(){return Kn},Zn:function(){return et},_g:function(){return dt},_k:function(){return Ue},c6:function(){return He},cr:function(){return tt},eV:function(){return Wt},fi:function(){return lt},gh:function(){return Le},hS:function(){return Ln},iA:function(){return rt},j6:function(){return xt},je:function(){return Ge},jj:function(){return Nt},kS:function(){return Zn},o6:function(){return te},pO:function(){return Li},rQ:function(){return _e},sA:function(){return fe},xm:function(){return ve},xo:function(){return Ve},y8:function(){return Ne},yd:function(){return ht}});var Lt=Ft(94811),ce=Ft(24459),re=Ft(88230),Ie=Ft(8591),ee=Ft(38446),Vt=Object.defineProperty,Mt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,bt=(Ot,Tt,vt)=>Tt in Ot?Vt(Ot,Tt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Ot[Tt]=vt,se=(Ot,Tt)=>{for(var vt in Tt||(Tt={}))jt.call(Tt,vt)&&bt(Ot,vt,Tt[vt]);if(Mt)for(var vt of Mt(Tt))qt.call(Tt,vt)&&bt(Ot,vt,Tt[vt]);return Ot},Gt=(Ot,Tt,vt)=>new Promise((gt,ft)=>{var At=ae=>{try{xe(vt.next(ae))}catch(ye){ft(ye)}},le=ae=>{try{xe(vt.throw(ae))}catch(ye){ft(ye)}},xe=ae=>ae.done?gt(ae.value):Promise.resolve(ae.value).then(At,le);xe((vt=vt.apply(Ot,Tt)).next())});const Xt=()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Ct=()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},et=Ot=>Gt(void 0,null,function*(){Xt(),(yield(0,Lt.YR)(se({},Ot))).status===0&&(yield(0,re.QH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Ot.coursesId}/export_couser_info.json`,query:Ot}))),Ct()}),tt=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.yS)(se({},Ot));if(Tt.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_member_act_score`);else{if(Tt.status===-2)return Tt;Tt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_member_act_score`))}}),lt=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.W0)(se({},Ot));if(Tt.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_score`);else{if(Tt.status===-4)return Tt;Tt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_score`))}}),rt=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.Nl)(se({},Ot));if(Tt.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Tt.status===-4)return Tt;Tt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_exercise_and_other`))}}),ht=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.IU)(se({},Ot));if(Tt.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/export_star_user`);else{if(Tt.status===-4)return Tt;Tt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/export_star_user`))}}),dt=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.td)(se({},Ot));if(Tt.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Tt.status===-2)return Tt;if(Tt.status===-3)(0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_exercise_and_other`);else if(Tt.status===-4)return Tt}}),xt=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.QX)(se({},Ot));if(Tt.status===0)Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_homework`);else{if(Tt.status===-4)return Tt;Tt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/course_total_homework`))}}),Nt=(Ot,Tt)=>Gt(void 0,null,function*(){const vt=yield(0,Lt.o_)(se({},Ot));vt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`)):vt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`))}),Ut=(Ot,Tt)=>Gt(void 0,null,function*(){const vt=yield(0,Lt.ZL)(se({},Ot));vt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`)):vt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`))}),_t=(Ot,Tt)=>Gt(void 0,null,function*(){const vt=yield(0,Lt.vV)(se({},Ot));vt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`)):vt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`))}),oe=(Ot,Tt)=>Gt(void 0,null,function*(){const vt=yield(0,Lt.aP)(se({},Ot));vt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`)):vt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/${Tt}`))}),he=Ot=>Gt(void 0,null,function*(){Xt(),(yield exportCourseWorkListAppendix(se({},Ot))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${Ot.categoryId}/works_list.zip`,query:Ot}))),Ct()}),fe=Ot=>Gt(void 0,null,function*(){Xt(),yield(0,re.QH)("",ee.Z.API_SERVER+`/api/polls/${Ot.categoryId}/commit_result.xlsx`),Ct()}),Le=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Ot.coursesId}/attendances/export_xlsx_data.xlsx`,query:Ot}))}),te=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Ot.coursesId}/video_study_statics.xlsx`,query:Ot}))}),He=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Ot.coursesId}/export_video_study.xlsx`,query:Ot}))}),Wt=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Ot.coursesId}/export_course_students_info.xlsx`,query:Ot}))}),Ke=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/school_manages/students.xlsx",query:Ot}))}),_e=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/item_banks/export.xlsx",query:Ot}))}),Ne=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:Ot}))}),Ge=Ot=>Gt(void 0,null,function*(){const Tt=yield(0,Lt.Uy)(se({},Ot));Tt.status===0?(Ie.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/exercise_score,export_exercise_users`)):Tt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Ot.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Ue=Ot=>Gt(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/export_records/${Ot.id}.xlsx`,query:Ot}))}),ve=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:Ot}))}),ne=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Ot==null?void 0:Ot.coursesId}/${Ot.menuKey}_statistic.xlsx?${Ot.checkedList.map(Tt=>`course_group_id[]=${Tt}`).join("&")}`,query:Ot}))}),Ce=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Ot==null?void 0:Ot.ec_year_id}/ec_training_objectives.xlsx`,query:Ot}))}),bn=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)(Ot==null?void 0:Ot.name,(0,re.NY)({url:ee.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Ot}))}),Ln=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Ot==null?void 0:Ot.ec_year_id}/ec_courses.xlsx`,query:Ot}))}),Ve=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Ot==null?void 0:Ot.ec_year_id}/ec_graduation_requirements.xlsx`,query:Ot}))}),Nn=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:Ot}))}),Zn=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Ot}))}),gi=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/examination_banks/${Ot.id}.json`,query:Ot}))}),Kn=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Ot.categoryId}.json`,query:Ot}))}),Pi=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/polls/${Ot==null?void 0:Ot.id}/commit_result.json`,query:Ot}))}),tn=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/paths/get_task_pass.json",query:Ot}))}),Li=(Ot,Tt)=>Gt(void 0,null,function*(){yield(0,re.FH)(Tt||"",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Ot==null?void 0:Ot.exercise_id}/consult_exercise.json`,query:Ot}))}),ji=Ot=>Gt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/competitions/${Ot==null?void 0:Ot.identifier}/competition_commit_records/member_works.xlsx`,query:Ot}))})},59579:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{U:function(){return qt}});var Lt=Ft(59301),ce=Object.defineProperty,re=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Vt=(bt,se,Gt)=>se in bt?ce(bt,se,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):bt[se]=Gt,Mt=(bt,se)=>{for(var Gt in se||(se={}))Ie.call(se,Gt)&&Vt(bt,Gt,se[Gt]);if(re)for(var Gt of re(se))ee.call(se,Gt)&&Vt(bt,Gt,se[Gt]);return bt},jt=(bt,se,Gt)=>new Promise((Xt,Ct)=>{var et=rt=>{try{lt(Gt.next(rt))}catch(ht){Ct(ht)}},tt=rt=>{try{lt(Gt.throw(rt))}catch(ht){Ct(ht)}},lt=rt=>rt.done?Xt(rt.value):Promise.resolve(rt.value).then(et,tt);lt((Gt=Gt.apply(bt,se)).next())});function qt(bt,se){const[Gt,Xt]=(0,Lt.useState)(se),[Ct,et]=(0,Lt.useState)(!1),[tt,lt]=(0,Lt.useState)();return[Gt,Ct,(ht,dt=!1)=>jt(this,null,function*(){const xt=dt?se:Mt(Mt({},Gt),ht);et(!0),Xt(xt);const Nt=yield bt(xt);return et(!1),lt(Nt),Nt}),tt,lt]}},85187:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{AL:function(){return xt},Iy:function(){return se},Qv:function(){return Ct},ez:function(){return dt},jb:function(){return Gt}});var Lt=Ft(32834),ce=Ft.n(Lt),re=Ft(11690),Ie=Ft.n(re);let ee=1;function Vt(he,fe){const Le=he.match(/^(\s+)(?:```)/);if(Le===null)return fe;const te=Le[1];return fe.split(`
`).map(He=>{const Wt=He.match(/^\s+/);if(Wt===null)return He;const[Ke]=Wt;return Ke.length>=te.length?He.slice(te.length):He}).join(`
`)}let Mt=[],jt=["<ul>"];const qt=new(ce()).Renderer,bt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function se(){Mt.length=0,jt=["<ul>"]}const Gt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Xt(he,fe,Le,te){if(fe>=he.length||he[fe].level<=Le)return fe;var He=he[fe];te.push("<li><a href='#"+ee+He.anchor+"'>"+He.text+"</a>"),fe++;var Wt=[];return fe=Xt(he,fe,He.level,Wt),Wt.length>0&&(te.push("<ul>"),Wt.forEach(function(Ke){te.push(Ke)}),te.push("</ul>")),te.push("</li>"),fe=Xt(he,fe,Le,te),fe}function Ct(){return Xt(Mt,0,0,jt),jt.push("</ul>"),jt.join("")}const et={heading(he){const fe=bt.exec(he);if(ee+=1,fe)return{type:"heading",raw:fe[0],depth:fe[1].length,text:fe[2]}},fences(he){const fe=this.rules.block.fences.exec(he);if(fe){const Le=fe[0];let te=Vt(Le,fe[3]||"");const He=fe[2]?fe[2].trim():fe[2];if(["latex","katex","math"].indexOf(He)>=0){const Wt=rt(),Ke=te;te=Wt,ht[Wt]={type:"block",expression:Ke}}return{type:"code",raw:Le,lang:He,text:te}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const rt=()=>`__special_katext_id_${lt++}__`;let ht={};function dt(){return ht}function xt(){lt=0,ht={}}function Nt(he){return he=he.replace(tt,(fe,Le)=>{const te=rt();return ht[te]={type:"inline",expression:Le},te}),he}const Ut=qt.listitem;qt.listitem=function(he){return Ut(Nt(he))};const _t=qt.paragraph;qt.paragraph=function(he){return _t(Nt(he))};const oe=qt.tablecell;qt.tablecell=function(he,fe){return oe(Nt(he),fe)},qt.code=function(he,fe,Le){const te=(fe||"").match(/\S*/)[0];return te?["latex","katex","math"].indexOf(te)>=0?`<p class='editormd-tex'>${he}</p>`:`<pre class="prettyprint linenums"><code class="language-${fe}">${Le?he:(0,re.escape)(he,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Le?he:(0,re.escape)(he,!0))+"</code></pre>"},qt.heading=function(he,fe,Le){let te=this.options.headerPrefix+Le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Mt.push({anchor:te,level:fe,text:he}),"<h"+fe+' id="'+ee+te+'">'+he+"</h"+fe+">"},ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),ce().use({tokenizer:et,renderer:qt}),Sn.ZP=ce()},50371:function(hi,Sn){"use strict";function Ft(){const Lt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ce=1;ce<arguments.length;ce++){const re=ce<0||arguments.length<=ce?void 0:arguments[ce];re&&Object.keys(re).forEach(Ie=>{const ee=re[Ie];ee!==void 0&&(Lt[Ie]=ee)})}return Lt}Sn.Z=Ft},13845:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{F:function(){return Lt},Z:function(){return ce}});function Lt(re){return re!=null&&re===re.window}function ce(re,Ie){var ee,Vt;if(typeof window=="undefined")return 0;const Mt=Ie?"scrollTop":"scrollLeft";let jt=0;return Lt(re)?jt=re[Ie?"pageYOffset":"pageXOffset"]:re instanceof Document?jt=re.documentElement[Mt]:(re instanceof HTMLElement||re)&&(jt=re[Mt]),re&&!Lt(re)&&typeof jt!="number"&&(jt=(Vt=((ee=re.ownerDocument)!==null&&ee!==void 0?ee:re).documentElement)===null||Vt===void 0?void 0:Vt[Mt]),jt}},56762:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ce}});var Lt=Ft(59301);function ce(){const[,re]=Lt.useReducer(Ie=>Ie+1,0);return re}},68031:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Ie}});var Lt=Ft(16089);function ce(ee,Vt,Mt,jt){const qt=Mt-Vt;return ee/=jt/2,ee<1?qt/2*ee*ee*ee+Vt:qt/2*((ee-=2)*ee*ee+2)+Vt}var re=Ft(13845);function Ie(ee){let Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Mt=()=>window,callback:jt,duration:qt=450}=Vt,bt=Mt(),se=(0,re.Z)(bt,!0),Gt=Date.now(),Xt=()=>{const et=Date.now()-Gt,tt=ce(et>qt?qt:et,se,ee,qt);(0,re.F)(bt)?bt.scrollTo(window.pageXOffset,tt):bt instanceof Document||bt.constructor.name==="HTMLDocument"?bt.documentElement.scrollTop=tt:bt.scrollTop=tt,et<qt?(0,Lt.Z)(Xt):typeof jt=="function"&&jt()};(0,Lt.Z)(Xt)}},66104:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Ke}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(11592),Ie=Ft(26112),ee=Ft(59301),Vt=Ft(92343),Mt=Ft(36355),jt=Ft(84105),qt=Ft(91857);const bt=_e=>{let{children:Ne}=_e;const{getPrefixCls:Ge}=ee.useContext(Mt.E_),Ue=Ge("breadcrumb");return ee.createElement("li",{className:`${Ue}-separator`,"aria-hidden":"true"},Ne===""?Ne:Ne||"/")};bt.__ANT_BREADCRUMB_SEPARATOR=!0;var se=bt,Gt=function(_e,Ne){var Ge={};for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&Ne.indexOf(Ue)<0&&(Ge[Ue]=_e[Ue]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ue=Object.getOwnPropertySymbols(_e);ve<Ue.length;ve++)Ne.indexOf(Ue[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ue[ve])&&(Ge[Ue[ve]]=_e[Ue[ve]]);return Ge};function Xt(_e,Ne){if(_e.title===void 0||_e.title===null)return null;const Ge=Object.keys(Ne).join("|");return typeof _e.title=="object"?_e.title:String(_e.title).replace(new RegExp(`:(${Ge})`,"g"),(Ue,ve)=>Ne[ve]||Ue)}function Ct(_e,Ne,Ge,Ue){if(Ge==null)return null;const{className:ve,onClick:ne}=Ne,Ce=Gt(Ne,["className","onClick"]),bn=Object.assign(Object.assign({},(0,Ie.Z)(Ce,{data:!0,aria:!0})),{onClick:ne});return Ue!==void 0?ee.createElement("a",Object.assign({},bn,{className:ce()(`${_e}-link`,ve),href:Ue}),Ge):ee.createElement("span",Object.assign({},bn,{className:ce()(`${_e}-link`,ve)}),Ge)}function et(_e,Ne){return(Ue,ve,ne,Ce,bn)=>{if(Ne)return Ne(Ue,ve,ne,Ce);const Ln=Xt(Ue,ve);return Ct(_e,Ue,Ln,bn)}}var tt=function(_e,Ne){var Ge={};for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&Ne.indexOf(Ue)<0&&(Ge[Ue]=_e[Ue]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ue=Object.getOwnPropertySymbols(_e);ve<Ue.length;ve++)Ne.indexOf(Ue[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ue[ve])&&(Ge[Ue[ve]]=_e[Ue[ve]]);return Ge};const lt=_e=>{const{prefixCls:Ne,separator:Ge="/",children:Ue,menu:ve,overlay:ne,dropdownProps:Ce,href:bn}=_e,Ve=(Nn=>{if(ve||ne){const Zn=Object.assign({},Ce);if(ve){const gi=ve||{},{items:Kn}=gi,Pi=tt(gi,["items"]);Zn.menu=Object.assign(Object.assign({},Pi),{items:Kn==null?void 0:Kn.map((tn,Li)=>{var{key:ji,title:Ot,label:Tt,path:vt}=tn,gt=tt(tn,["key","title","label","path"]);let ft=Tt!=null?Tt:Ot;return vt&&(ft=ee.createElement("a",{href:`${bn}${vt}`},ft)),Object.assign(Object.assign({},gt),{key:ji!=null?ji:Li,label:ft})})})}else ne&&(Zn.overlay=ne);return ee.createElement(qt.Z,Object.assign({placement:"bottom"},Zn),ee.createElement("span",{className:`${Ne}-overlay-link`},Nn,ee.createElement(jt.Z,null)))}return Nn})(Ue);return Ve!=null?ee.createElement(ee.Fragment,null,ee.createElement("li",null,Ve),Ge&&ee.createElement(se,null,Ge)):null},rt=_e=>{const{prefixCls:Ne,children:Ge,href:Ue}=_e,ve=tt(_e,["prefixCls","children","href"]),{getPrefixCls:ne}=ee.useContext(Mt.E_),Ce=ne("breadcrumb",Ne);return ee.createElement(lt,Object.assign({},ve,{prefixCls:Ce}),Ct(Ce,ve,Ge,Ue))};rt.__ANT_BREADCRUMB_ITEM=!0;var ht=rt,dt=Ft(17313),xt=Ft(83116),Nt=Ft(37613);const Ut=_e=>{const{componentCls:Ne,iconCls:Ge}=_e;return{[Ne]:Object.assign(Object.assign({},(0,dt.Wf)(_e)),{color:_e.itemColor,fontSize:_e.fontSize,[Ge]:{fontSize:_e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:_e.linkColor,transition:`color ${_e.motionDurationMid}`,padding:`0 ${_e.paddingXXS}px`,borderRadius:_e.borderRadiusSM,height:_e.lineHeight*_e.fontSize,display:"inline-block",marginInline:-_e.marginXXS,"&:hover":{color:_e.linkHoverColor,backgroundColor:_e.colorBgTextHover}},(0,dt.Qy)(_e)),"li:last-child":{color:_e.lastItemColor},[`${Ne}-separator`]:{marginInline:_e.separatorMargin,color:_e.separatorColor},[`${Ne}-link`]:{[`
> ${Ge} + span,
> ${Ge} + a
`]:{marginInlineStart:_e.marginXXS}},[`${Ne}-overlay-link`]:{borderRadius:_e.borderRadiusSM,height:_e.lineHeight*_e.fontSize,display:"inline-block",padding:`0 ${_e.paddingXXS}px`,marginInline:-_e.marginXXS,[`> ${Ge}`]:{marginInlineStart:_e.marginXXS,fontSize:_e.fontSizeIcon},"&:hover":{color:_e.linkHoverColor,backgroundColor:_e.colorBgTextHover,a:{color:_e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${_e.componentCls}-rtl`]:{direction:"rtl"}})}};var _t=(0,xt.Z)("Breadcrumb",_e=>{const Ne=(0,Nt.TS)(_e,{});return[Ut(Ne)]},_e=>({itemColor:_e.colorTextDescription,lastItemColor:_e.colorText,iconFontSize:_e.fontSize,linkColor:_e.colorTextDescription,linkHoverColor:_e.colorText,separatorColor:_e.colorTextDescription,separatorMargin:_e.marginXS})),oe=function(_e,Ne){var Ge={};for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&Ne.indexOf(Ue)<0&&(Ge[Ue]=_e[Ue]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ue=Object.getOwnPropertySymbols(_e);ve<Ue.length;ve++)Ne.indexOf(Ue[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ue[ve])&&(Ge[Ue[ve]]=_e[Ue[ve]]);return Ge};function he(_e){const{breadcrumbName:Ne,children:Ge}=_e,Ue=oe(_e,["breadcrumbName","children"]),ve=Object.assign({title:Ne},Ue);return Ge&&(ve.menu={items:Ge.map(ne=>{var{breadcrumbName:Ce}=ne,bn=oe(ne,["breadcrumbName"]);return Object.assign(Object.assign({},bn),{title:Ce})})}),ve}function fe(_e,Ne){return(0,ee.useMemo)(()=>_e||(Ne?Ne.map(he):null),[_e,Ne])}var Le=function(_e,Ne){var Ge={};for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&Ne.indexOf(Ue)<0&&(Ge[Ue]=_e[Ue]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Ue=Object.getOwnPropertySymbols(_e);ve<Ue.length;ve++)Ne.indexOf(Ue[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ue[ve])&&(Ge[Ue[ve]]=_e[Ue[ve]]);return Ge};const te=(_e,Ne)=>{if(Ne===void 0)return Ne;let Ge=(Ne||"").replace(/^\//,"");return Object.keys(_e).forEach(Ue=>{Ge=Ge.replace(`:${Ue}`,_e[Ue])}),Ge},He=_e=>{const{prefixCls:Ne,separator:Ge="/",style:Ue,className:ve,rootClassName:ne,routes:Ce,items:bn,children:Ln,itemRender:Ve,params:Nn={}}=_e,Zn=Le(_e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gi,direction:Kn,breadcrumb:Pi}=ee.useContext(Mt.E_);let tn;const Li=gi("breadcrumb",Ne),[ji,Ot]=_t(Li),Tt=fe(bn,Ce),vt=et(Li,Ve);if(Tt&&Tt.length>0){const At=[],le=bn||Ce;tn=Tt.map((xe,ae)=>{const{path:ye,key:Oe,type:Te,menu:Me,overlay:on,onClick:Wn,className:sn,separator:ln,dropdownProps:Bn}=xe,li=te(Nn,ye);li!==void 0&&At.push(li);const On=Oe!=null?Oe:ae;if(Te==="separator")return ee.createElement(se,{key:On},ln);const Di={},nr=ae===Tt.length-1;Me?Di.menu=Me:on&&(Di.overlay=on);let{href:Xi}=xe;return At.length&&li!==void 0&&(Xi=`#/${At.join("/")}`),ee.createElement(lt,Object.assign({key:On},Di,(0,Ie.Z)(xe,{data:!0,aria:!0}),{className:sn,dropdownProps:Bn,href:Xi,separator:nr?"":Ge,onClick:Wn,prefixCls:Li}),vt(xe,Nn,le,At,Xi))})}else if(Ln){const At=(0,re.Z)(Ln).length;tn=(0,re.Z)(Ln).map((le,xe)=>{if(!le)return le;const ae=xe===At-1;return(0,Vt.Tm)(le,{separator:ae?"":Ge,key:xe})})}const gt=ce()(Li,Pi==null?void 0:Pi.className,{[`${Li}-rtl`]:Kn==="rtl"},ve,ne,Ot),ft=Object.assign(Object.assign({},Pi==null?void 0:Pi.style),Ue);return ji(ee.createElement("nav",Object.assign({className:gt,style:ft},Zn),ee.createElement("ol",null,tn)))};He.Item=ht,He.Separator=se;var Wt=He,Ke=Wt},24905:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return _t}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(5630),Ie=Ft(59301),ee=Ft(36355),Vt=Ft(1684),Mt=Ft(32441),qt=Ie.createContext(null),bt=Ft(98447),se=Ft(14088),Gt=Ft(4572),Xt=function(oe,he){var fe={};for(var Le in oe)Object.prototype.hasOwnProperty.call(oe,Le)&&he.indexOf(Le)<0&&(fe[Le]=oe[Le]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,Le=Object.getOwnPropertySymbols(oe);te<Le.length;te++)he.indexOf(Le[te])<0&&Object.prototype.propertyIsEnumerable.call(oe,Le[te])&&(fe[Le[te]]=oe[Le[te]]);return fe};const Ct=(oe,he)=>{var fe;const{prefixCls:Le,className:te,rootClassName:He,children:Wt,indeterminate:Ke=!1,style:_e,onMouseEnter:Ne,onMouseLeave:Ge,skipGroup:Ue=!1,disabled:ve}=oe,ne=Xt(oe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ce,direction:bn,checkbox:Ln}=Ie.useContext(ee.E_),Ve=Ie.useContext(qt),{isFormItemInput:Nn}=Ie.useContext(Mt.aM),Zn=Ie.useContext(Vt.Z),gi=(fe=(Ve==null?void 0:Ve.disabled)||ve)!==null&&fe!==void 0?fe:Zn,Kn=Ie.useRef(ne.value);Ie.useEffect(()=>{Ve==null||Ve.registerValue(ne.value)},[]),Ie.useEffect(()=>{if(!Ue)return ne.value!==Kn.current&&(Ve==null||Ve.cancelValue(Kn.current),Ve==null||Ve.registerValue(ne.value),Kn.current=ne.value),()=>Ve==null?void 0:Ve.cancelValue(ne.value)},[ne.value]);const Pi=Ce("checkbox",Le),[tn,Li]=(0,bt.ZP)(Pi),ji=Object.assign({},ne);Ve&&!Ue&&(ji.onChange=function(){ne.onChange&&ne.onChange.apply(ne,arguments),Ve.toggleOption&&Ve.toggleOption({label:Wt,value:ne.value})},ji.name=Ve.name,ji.checked=Ve.value.includes(ne.value));const Ot=ce()(`${Pi}-wrapper`,{[`${Pi}-rtl`]:bn==="rtl",[`${Pi}-wrapper-checked`]:ji.checked,[`${Pi}-wrapper-disabled`]:gi,[`${Pi}-wrapper-in-form-item`]:Nn},Ln==null?void 0:Ln.className,te,He,Li),Tt=ce()({[`${Pi}-indeterminate`]:Ke},Gt.A,Li),vt=Ke?"mixed":void 0;return tn(Ie.createElement(se.Z,{component:"Checkbox",disabled:gi},Ie.createElement("label",{className:Ot,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),_e),onMouseEnter:Ne,onMouseLeave:Ge},Ie.createElement(re.Z,Object.assign({"aria-checked":vt},ji,{prefixCls:Pi,className:Tt,disabled:gi,ref:he})),Wt!==void 0&&Ie.createElement("span",null,Wt))))};var tt=Ie.forwardRef(Ct),lt=Ft(26407),rt=Ft(2738),ht=function(oe,he){var fe={};for(var Le in oe)Object.prototype.hasOwnProperty.call(oe,Le)&&he.indexOf(Le)<0&&(fe[Le]=oe[Le]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,Le=Object.getOwnPropertySymbols(oe);te<Le.length;te++)he.indexOf(Le[te])<0&&Object.prototype.propertyIsEnumerable.call(oe,Le[te])&&(fe[Le[te]]=oe[Le[te]]);return fe};const dt=(oe,he)=>{const{defaultValue:fe,children:Le,options:te=[],prefixCls:He,className:Wt,rootClassName:Ke,style:_e,onChange:Ne}=oe,Ge=ht(oe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:ve}=Ie.useContext(ee.E_),[ne,Ce]=Ie.useState(Ge.value||fe||[]),[bn,Ln]=Ie.useState([]);Ie.useEffect(()=>{"value"in Ge&&Ce(Ge.value||[])},[Ge.value]);const Ve=Ie.useMemo(()=>te.map(gt=>typeof gt=="string"||typeof gt=="number"?{label:gt,value:gt}:gt),[te]),Nn=gt=>{Ln(ft=>ft.filter(At=>At!==gt))},Zn=gt=>{Ln(ft=>[].concat((0,lt.Z)(ft),[gt]))},gi=gt=>{const ft=ne.indexOf(gt.value),At=(0,lt.Z)(ne);ft===-1?At.push(gt.value):At.splice(ft,1),"value"in Ge||Ce(At),Ne==null||Ne(At.filter(le=>bn.includes(le)).sort((le,xe)=>{const ae=Ve.findIndex(Oe=>Oe.value===le),ye=Ve.findIndex(Oe=>Oe.value===xe);return ae-ye}))},Kn=Ue("checkbox",He),Pi=`${Kn}-group`,[tn,Li]=(0,bt.ZP)(Kn),ji=(0,rt.Z)(Ge,["value","disabled"]),Ot=te.length?Ve.map(gt=>Ie.createElement(tt,{prefixCls:Kn,key:gt.value.toString(),disabled:"disabled"in gt?gt.disabled:Ge.disabled,value:gt.value,checked:ne.includes(gt.value),onChange:gt.onChange,className:`${Pi}-item`,style:gt.style,title:gt.title},gt.label)):Le,Tt={toggleOption:gi,value:ne,disabled:Ge.disabled,name:Ge.name,registerValue:Zn,cancelValue:Nn},vt=ce()(Pi,{[`${Pi}-rtl`]:ve==="rtl"},Wt,Ke,Li);return tn(Ie.createElement("div",Object.assign({className:vt,style:_e},ji,{ref:he}),Ie.createElement(qt.Provider,{value:Tt},Ot)))},xt=Ie.forwardRef(dt);var Nt=Ie.memo(xt);const Ut=tt;Ut.Group=Nt,Ut.__ANT_CHECKBOX=!0;var _t=Ut},98447:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{C2:function(){return ee}});var Lt=Ft(17313),ce=Ft(37613),re=Ft(83116);const Ie=Vt=>{const{checkboxCls:Mt}=Vt,jt=`${Mt}-wrapper`;return[{[`${Mt}-group`]:Object.assign(Object.assign({},(0,Lt.Wf)(Vt)),{display:"inline-flex",flexWrap:"wrap",columnGap:Vt.marginXS,[`> ${Vt.antCls}-row`]:{flex:1}}),[jt]:Object.assign(Object.assign({},(0,Lt.Wf)(Vt)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${jt}`]:{marginInlineStart:0},[`&${jt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Mt]:Object.assign(Object.assign({},(0,Lt.Wf)(Vt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Vt.borderRadiusSM,alignSelf:"center",[`${Mt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Mt}-inner`]:Object.assign({},(0,Lt.oN)(Vt))},[`${Mt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Vt.checkboxSize,height:Vt.checkboxSize,direction:"ltr",backgroundColor:Vt.colorBgContainer,border:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorBorder}`,borderRadius:Vt.borderRadiusSM,borderCollapse:"separate",transition:`all ${Vt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Vt.checkboxSize/14*5,height:Vt.checkboxSize/14*8,border:`${Vt.lineWidthBold}px solid ${Vt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Vt.motionDurationFast} ${Vt.motionEaseInBack}, opacity ${Vt.motionDurationFast}`}},"& + span":{paddingInlineStart:Vt.paddingXS,paddingInlineEnd:Vt.paddingXS}})},{[`
${jt}:not(${jt}-disabled),
${Mt}:not(${Mt}-disabled)
`]:{[`&:hover ${Mt}-inner`]:{borderColor:Vt.colorPrimary}},[`${jt}:not(${jt}-disabled)`]:{[`&:hover ${Mt}-checked:not(${Mt}-disabled) ${Mt}-inner`]:{backgroundColor:Vt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Mt}-checked:not(${Mt}-disabled):after`]:{borderColor:Vt.colorPrimaryHover}}},{[`${Mt}-checked`]:{[`${Mt}-inner`]:{backgroundColor:Vt.colorPrimary,borderColor:Vt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Vt.motionDurationMid} ${Vt.motionEaseOutBack} ${Vt.motionDurationFast}`}}},[`
${jt}-checked:not(${jt}-disabled),
${Mt}-checked:not(${Mt}-disabled)
`]:{[`&:hover ${Mt}-inner`]:{backgroundColor:Vt.colorPrimaryHover,borderColor:"transparent"}}},{[Mt]:{"&-indeterminate":{[`${Mt}-inner`]:{backgroundColor:Vt.colorBgContainer,borderColor:Vt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Vt.fontSizeLG/2,height:Vt.fontSizeLG/2,backgroundColor:Vt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${jt}-disabled`]:{cursor:"not-allowed"},[`${Mt}-disabled`]:{[`&, ${Mt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Mt}-inner`]:{background:Vt.colorBgContainerDisabled,borderColor:Vt.colorBorder,"&:after":{borderColor:Vt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Vt.colorTextDisabled},[`&${Mt}-indeterminate ${Mt}-inner::after`]:{background:Vt.colorTextDisabled}}}]};function ee(Vt,Mt){const jt=(0,ce.TS)(Mt,{checkboxCls:`.${Vt}`,checkboxSize:Mt.controlInteractiveSize});return[Ie(jt)]}Sn.ZP=(0,re.Z)("Checkbox",(Vt,Mt)=>{let{prefixCls:jt}=Mt;return[ee(jt,Vt)]})},93891:function(hi,Sn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(36355),re=Ft(64165);const Ie=ee=>{const{componentName:Vt}=ee,{getPrefixCls:Mt}=(0,Lt.useContext)(ce.E_),jt=Mt("empty");switch(Vt){case"Table":case"List":return Lt.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Lt.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE,className:`${jt}-small`});default:return Lt.createElement(re.Z,null)}};Sn.Z=Ie},28103:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Gt}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),Ie=Ft(36355),ee=Ft(17313),Vt=Ft(83116),Mt=Ft(37613);const jt=Xt=>{const{componentCls:Ct,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ht,verticalMarginInline:dt}=Xt;return{[Ct]:Object.assign(Object.assign({},(0,ee.Wf)(Xt)),{borderBlockStart:`${lt}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${lt}px solid ${tt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Xt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ct}-with-text`]:{display:"flex",alignItems:"center",margin:`${Xt.dividerHorizontalWithTextGutterMargin}px 0`,color:Xt.colorTextHeading,fontWeight:500,fontSize:Xt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${tt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${lt}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ct}-with-text-left`]:{"&::before":{width:`${ht*100}%`},"&::after":{width:`${100-ht*100}%`}},[`&-horizontal${Ct}-with-text-right`]:{"&::before":{width:`${100-ht*100}%`},"&::after":{width:`${ht*100}%`}},[`${Ct}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${lt}px 0 0`},[`&-horizontal${Ct}-with-text${Ct}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ct}-dashed`]:{borderInlineStartWidth:lt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ct}-with-text`]:{color:Xt.colorText,fontWeight:"normal",fontSize:Xt.fontSize},[`&-horizontal${Ct}-with-text-left${Ct}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ct}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Ct}-with-text-right${Ct}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ct}-inner-text`]:{paddingInlineEnd:et}}})}};var qt=(0,Vt.Z)("Divider",Xt=>{const Ct=(0,Mt.TS)(Xt,{dividerHorizontalWithTextGutterMargin:Xt.margin,dividerHorizontalGutterMargin:Xt.marginLG,sizePaddingEdgeHorizontal:0});return[jt(Ct)]},Xt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Xt.marginXS})),bt=function(Xt,Ct){var et={};for(var tt in Xt)Object.prototype.hasOwnProperty.call(Xt,tt)&&Ct.indexOf(tt)<0&&(et[tt]=Xt[tt]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Xt);lt<tt.length;lt++)Ct.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Xt,tt[lt])&&(et[tt[lt]]=Xt[tt[lt]]);return et},Gt=Xt=>{const{getPrefixCls:Ct,direction:et,divider:tt}=re.useContext(Ie.E_),{prefixCls:lt,type:rt="horizontal",orientation:ht="center",orientationMargin:dt,className:xt,rootClassName:Nt,children:Ut,dashed:_t,plain:oe,style:he}=Xt,fe=bt(Xt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Le=Ct("divider",lt),[te,He]=qt(Le),Wt=ht.length>0?`-${ht}`:ht,Ke=!!Ut,_e=ht==="left"&&dt!=null,Ne=ht==="right"&&dt!=null,Ge=ce()(Le,tt==null?void 0:tt.className,He,`${Le}-${rt}`,{[`${Le}-with-text`]:Ke,[`${Le}-with-text${Wt}`]:Ke,[`${Le}-dashed`]:!!_t,[`${Le}-plain`]:!!oe,[`${Le}-rtl`]:et==="rtl",[`${Le}-no-default-orientation-margin-left`]:_e,[`${Le}-no-default-orientation-margin-right`]:Ne},xt,Nt),Ue=re.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),ve=Object.assign(Object.assign({},_e&&{marginLeft:Ue}),Ne&&{marginRight:Ue});return te(re.createElement("div",Object.assign({className:Ge,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),he)},fe,{role:"separator"}),Ut&&rt!=="vertical"&&re.createElement("span",{className:`${Le}-inner-text`,style:ve},Ut)))}},91857:function(hi,Sn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(38819),re=Ft(92310),Ie=Ft.n(re),ee=Ft(31561),Vt=Ft(70425),Mt=Ft(18929),jt=Ft(2738),qt=Ft(79676),bt=Ft(53487),se=Ft(92343),Gt=Ft(36355),Xt=Ft(20834),Ct=Ft(40875),et=Ft(88088),tt=Ft(47211);const lt=null,rt=Nt=>{const{menu:Ut,arrow:_t,prefixCls:oe,children:he,trigger:fe,disabled:Le,dropdownRender:te,getPopupContainer:He,overlayClassName:Wt,rootClassName:Ke,open:_e,onOpenChange:Ne,visible:Ge,onVisibleChange:Ue,mouseEnterDelay:ve=.15,mouseLeaveDelay:ne=.1,autoAdjustOverflow:Ce=!0,placement:bn="",overlay:Ln,transitionName:Ve}=Nt,{getPopupContainer:Nn,getPrefixCls:Zn,direction:gi}=Lt.useContext(Gt.E_),Kn=Lt.useMemo(()=>{const Me=Zn();return Ve!==void 0?Ve:bn.includes("top")?`${Me}-slide-down`:`${Me}-slide-up`},[Zn,bn,Ve]),Pi=Lt.useMemo(()=>bn?bn.includes("Center")?bn.slice(0,bn.indexOf("Center")):bn:gi==="rtl"?"bottomRight":"bottomLeft",[bn,gi]),tn=Zn("dropdown",oe),[Li,ji]=(0,tt.Z)(tn),[,Ot]=(0,et.Z)(),Tt=Lt.Children.only(he),vt=(0,se.Tm)(Tt,{className:Ie()(`${tn}-trigger`,{[`${tn}-rtl`]:gi==="rtl"},Tt.props.className),disabled:Le}),gt=Le?[]:fe;let ft;gt&&gt.includes("contextMenu")&&(ft=!0);const[At,le]=(0,Mt.Z)(!1,{value:_e!=null?_e:Ge}),xe=(0,Vt.useEvent)(Me=>{Ne==null||Ne(Me),Ue==null||Ue(Me),le(Me)}),ae=Ie()(Wt,Ke,ji,{[`${tn}-rtl`]:gi==="rtl"}),ye=(0,qt.Z)({arrowPointAtCenter:typeof _t=="object"&&_t.pointAtCenter,autoAdjustOverflow:Ce,offset:Ot.marginXXS,arrowWidth:_t?Ot.sizePopupArrow:0,borderRadius:Ot.borderRadius}),Oe=Lt.useCallback(()=>{le(!1)},[]),Te=()=>{let Me;return Ut!=null&&Ut.items?Me=Lt.createElement(Xt.default,Object.assign({},Ut)):typeof Ln=="function"?Me=Ln():Me=Ln,te&&(Me=te(Me)),Me=Lt.Children.only(typeof Me=="string"?Lt.createElement("span",null,Me):Me),Lt.createElement(Ct.J,{prefixCls:`${tn}-menu`,expandIcon:Lt.createElement("span",{className:`${tn}-menu-submenu-arrow`},Lt.createElement(ce.Z,{className:`${tn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Oe,validator:on=>{let{mode:Wn}=on}},Me)};return Li(Lt.createElement(ee.Z,Object.assign({alignPoint:ft},(0,jt.Z)(Nt,["rootClassName"]),{mouseEnterDelay:ve,mouseLeaveDelay:ne,visible:At,builtinPlacements:ye,arrow:!!_t,overlayClassName:ae,prefixCls:tn,getPopupContainer:He||Nn,transitionName:Kn,trigger:gt,overlay:Te,placement:Pi,onVisibleChange:xe}),vt))};function ht(Nt){return Object.assign(Object.assign({},Nt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,bt.Z)(rt,"dropdown",Nt=>Nt,ht),xt=Nt=>Lt.createElement(dt,Object.assign({},Nt),Lt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=xt,Sn.Z=rt},38854:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return et}});var Lt=Ft(91857),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(59301),ee=Ft(18785),Vt=Ft(3113),Mt=Ft(36355),jt=Ft(81327),qt=Ft(33234),bt=Ft(47211),se=function(tt,lt){var rt={};for(var ht in tt)Object.prototype.hasOwnProperty.call(tt,ht)&&lt.indexOf(ht)<0&&(rt[ht]=tt[ht]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ht=Object.getOwnPropertySymbols(tt);dt<ht.length;dt++)lt.indexOf(ht[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,ht[dt])&&(rt[ht[dt]]=tt[ht[dt]]);return rt};const Gt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ht}=Ie.useContext(Mt.E_),{prefixCls:dt,type:xt="default",danger:Nt,disabled:Ut,loading:_t,onClick:oe,htmlType:he,children:fe,className:Le,menu:te,arrow:He,autoFocus:Wt,overlay:Ke,trigger:_e,align:Ne,open:Ge,onOpenChange:Ue,placement:ve,getPopupContainer:ne,href:Ce,icon:bn=Ie.createElement(ee.Z,null),title:Ln,buttonsRender:Ve=Te=>Te,mouseEnterDelay:Nn,mouseLeaveDelay:Zn,overlayClassName:gi,overlayStyle:Kn,destroyPopupOnHide:Pi,dropdownRender:tn}=tt,Li=se(tt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ji=rt("dropdown",dt),Ot=`${ji}-button`,[Tt,vt]=(0,bt.Z)(ji),gt={menu:te,arrow:He,autoFocus:Wt,align:Ne,disabled:Ut,trigger:Ut?[]:_e,onOpenChange:Ue,getPopupContainer:ne||lt,mouseEnterDelay:Nn,mouseLeaveDelay:Zn,overlayClassName:gi,overlayStyle:Kn,destroyPopupOnHide:Pi,dropdownRender:tn},{compactSize:ft,compactItemClassnames:At}=(0,qt.ri)(ji,ht),le=re()(Ot,At,Le,vt);"overlay"in tt&&(gt.overlay=Ke),"open"in tt&&(gt.open=Ge),"placement"in tt?gt.placement=ve:gt.placement=ht==="rtl"?"bottomLeft":"bottomRight";const xe=Ie.createElement(Vt.ZP,{type:xt,danger:Nt,disabled:Ut,loading:_t,onClick:oe,htmlType:he,href:Ce,title:Ln},fe),ae=Ie.createElement(Vt.ZP,{type:xt,danger:Nt,icon:bn}),[ye,Oe]=Ve([xe,ae]);return Tt(Ie.createElement(jt.Z.Compact,Object.assign({className:le,size:ft,block:!0},Li),ye,Ie.createElement(Lt.Z,Object.assign({},gt),Oe)))};Gt.__ANT_BUTTON=!0;var Xt=Gt;const Ct=Lt.Z;Ct.Button=Xt;var et=Ct},47211:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return se}});var Lt=Ft(17313),ce=Ft(13826),re=Ft(92899),Ie=Ft(29878),ee=Ft(19447),Vt=Ft(83116),Mt=Ft(37613),qt=Gt=>{const{componentCls:Xt,menuCls:Ct,colorError:et,colorTextLightSolid:tt}=Gt,lt=`${Ct}-item`;return{[`${Xt}, ${Xt}-menu-submenu`]:{[`${Ct} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const bt=Gt=>{const{componentCls:Xt,menuCls:Ct,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ht,motionDurationMid:dt,dropdownPaddingVertical:xt,fontSize:Nt,dropdownEdgeChildPadding:Ut,colorTextDisabled:_t,fontSizeIcon:oe,controlPaddingHorizontal:he,colorBgElevated:fe}=Gt;return[{[Xt]:Object.assign(Object.assign({},(0,Lt.Wf)(Gt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-tt+lt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${rt}-btn`]:{[`& > ${ht}-down, & > ${rt}-btn-icon > ${ht}-down`]:{fontSize:oe}},[`${Xt}-wrap`]:{position:"relative",[`${rt}-btn > ${ht}-down`]:{fontSize:oe},[`${ht}-down::before`]:{transition:`transform ${dt}`}},[`${Xt}-wrap-open`]:{[`${ht}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${Xt}-placement-bottomLeft,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Xt}-placement-bottomLeft,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Xt}-placement-bottom,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Xt}-placement-bottom,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Xt}-placement-bottomRight,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Xt}-placement-bottomRight`]:{animationName:ce.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${Xt}-placement-topLeft,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Xt}-placement-topLeft,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Xt}-placement-top,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Xt}-placement-top,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Xt}-placement-topRight,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Xt}-placement-topRight`]:{animationName:ce.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${Xt}-placement-bottomLeft,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Xt}-placement-bottom,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Xt}-placement-bottomRight`]:{animationName:ce.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${Xt}-placement-topLeft,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Xt}-placement-top,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Xt}-placement-topRight`]:{animationName:ce.ly}})},(0,ee.ZP)(Gt,{colorBg:fe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Xt} ${Ct}`]:{position:"relative",margin:0},[`${Ct}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Xt}, ${Xt}-menu-submenu`]:{[Ct]:Object.assign(Object.assign({padding:Ut,listStyleType:"none",backgroundColor:fe,backgroundClip:"padding-box",borderRadius:Gt.borderRadiusLG,outline:"none",boxShadow:Gt.boxShadowSecondary},(0,Lt.Qy)(Gt)),{[`${Ct}-item-group-title`]:{padding:`${xt}px ${he}px`,color:Gt.colorTextDescription,transition:`all ${dt}`},[`${Ct}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ct}-item-icon`]:{minWidth:Nt,marginInlineEnd:Gt.marginXS,fontSize:Gt.fontSizeSM},[`${Ct}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ct}-item, ${Ct}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${xt}px ${he}px`,color:Gt.colorText,fontWeight:"normal",fontSize:Nt,lineHeight:Gt.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Gt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Gt.controlItemBgHover}},(0,Lt.Qy)(Gt)),{"&-selected":{color:Gt.colorPrimary,backgroundColor:Gt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Gt.controlItemBgActiveHover}},"&-disabled":{color:_t,cursor:"not-allowed","&:hover":{color:_t,backgroundColor:fe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Gt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Gt.colorSplit},[`${Xt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Gt.paddingXS,[`${Xt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Gt.colorTextDescription,fontSize:oe,fontStyle:"normal"}}}),[`${Ct}-item-group-list`]:{margin:`0 ${Gt.marginXS}px`,padding:0,listStyle:"none"},[`${Ct}-submenu-title`]:{paddingInlineEnd:he+Gt.fontSizeSM},[`${Ct}-submenu-vertical`]:{position:"relative"},[`${Ct}-submenu${Ct}-submenu-disabled ${Xt}-menu-submenu-title`]:{[`&, ${Xt}-menu-submenu-arrow-icon`]:{color:_t,backgroundColor:fe,cursor:"not-allowed"}},[`${Ct}-submenu-selected ${Xt}-menu-submenu-title`]:{color:Gt.colorPrimary}})}},[(0,ce.oN)(Gt,"slide-up"),(0,ce.oN)(Gt,"slide-down"),(0,re.Fm)(Gt,"move-up"),(0,re.Fm)(Gt,"move-down"),(0,Ie._y)(Gt,"zoom-big")]]};var se=(0,Vt.Z)("Dropdown",(Gt,Xt)=>{let{rootPrefixCls:Ct}=Xt;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ht,paddingXXS:dt,componentCls:xt,borderRadiusLG:Nt}=Gt,Ut=(lt-rt*ht)/2,{dropdownArrowOffset:_t}=(0,ee.fS)({contentRadius:Nt}),oe=(0,Mt.TS)(Gt,{menuCls:`${xt}-menu`,rootPrefixCls:Ct,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:_t,dropdownPaddingVertical:Ut,dropdownEdgeChildPadding:dt});return[bt(oe),qt(oe)]},Gt=>({zIndexPopup:Gt.zIndexPopupBase+50}))},64165:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return dt}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),Ie=Ft(36355),ee=Ft(9763),Vt=Ft(64993),Mt=Ft(88088),qt=()=>{const[,xt]=(0,Mt.Z)(),Ut=new Vt.C(xt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:Ut,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},re.createElement("g",{fill:"none",fillRule:"evenodd"},re.createElement("g",{transform:"translate(24 31.67)"},re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),re.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),re.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),re.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),re.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),re.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},se=()=>{const[,xt]=(0,Mt.Z)(),{colorFill:Nt,colorFillTertiary:Ut,colorFillQuaternary:_t,colorBgContainer:oe}=xt,{borderColor:he,shadowColor:fe,contentColor:Le}=(0,re.useMemo)(()=>({borderColor:new Vt.C(Nt).onBackground(oe).toHexShortString(),shadowColor:new Vt.C(Ut).onBackground(oe).toHexShortString(),contentColor:new Vt.C(_t).onBackground(oe).toHexShortString()}),[Nt,Ut,_t,oe]);return re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},re.createElement("ellipse",{fill:fe,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:he},re.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),re.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Le}))))},Gt=Ft(83116),Xt=Ft(37613);const Ct=xt=>{const{componentCls:Nt,margin:Ut,marginXS:_t,marginXL:oe,fontSize:he,lineHeight:fe}=xt;return{[Nt]:{marginInline:_t,fontSize:he,lineHeight:fe,textAlign:"center",[`${Nt}-image`]:{height:xt.emptyImgHeight,marginBottom:_t,opacity:xt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Nt}-description`]:{color:xt.colorText},[`${Nt}-footer`]:{marginTop:Ut},"&-normal":{marginBlock:oe,color:xt.colorTextDisabled,[`${Nt}-description`]:{color:xt.colorTextDisabled},[`${Nt}-image`]:{height:xt.emptyImgHeightMD}},"&-small":{marginBlock:_t,color:xt.colorTextDisabled,[`${Nt}-image`]:{height:xt.emptyImgHeightSM}}}}};var et=(0,Gt.Z)("Empty",xt=>{const{componentCls:Nt,controlHeightLG:Ut}=xt,_t=(0,Xt.TS)(xt,{emptyImgCls:`${Nt}-img`,emptyImgHeight:Ut*2.5,emptyImgHeightMD:Ut,emptyImgHeightSM:Ut*.875});return[Ct(_t)]}),tt=function(xt,Nt){var Ut={};for(var _t in xt)Object.prototype.hasOwnProperty.call(xt,_t)&&Nt.indexOf(_t)<0&&(Ut[_t]=xt[_t]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,_t=Object.getOwnPropertySymbols(xt);oe<_t.length;oe++)Nt.indexOf(_t[oe])<0&&Object.prototype.propertyIsEnumerable.call(xt,_t[oe])&&(Ut[_t[oe]]=xt[_t[oe]]);return Ut};const lt=re.createElement(qt,null),rt=re.createElement(se,null),ht=xt=>{var{className:Nt,rootClassName:Ut,prefixCls:_t,image:oe=lt,description:he,children:fe,imageStyle:Le,style:te}=xt,He=tt(xt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Wt,direction:Ke,empty:_e}=re.useContext(Ie.E_),Ne=Wt("empty",_t),[Ge,Ue]=et(Ne),[ve]=(0,ee.Z)("Empty"),ne=typeof he!="undefined"?he:ve==null?void 0:ve.description,Ce=typeof ne=="string"?ne:"empty";let bn=null;return typeof oe=="string"?bn=re.createElement("img",{alt:Ce,src:oe}):bn=oe,Ge(re.createElement("div",Object.assign({className:ce()(Ue,Ne,_e==null?void 0:_e.className,{[`${Ne}-normal`]:oe===rt,[`${Ne}-rtl`]:Ke==="rtl"},Nt,Ut),style:Object.assign(Object.assign({},_e==null?void 0:_e.style),te)},He),re.createElement("div",{className:`${Ne}-image`,style:Le},bn),ne&&re.createElement("div",{className:`${Ne}-description`},ne),fe&&re.createElement("div",{className:`${Ne}-footer`},fe)))};ht.PRESENTED_IMAGE_DEFAULT=lt,ht.PRESENTED_IMAGE_SIMPLE=rt;var dt=ht},78241:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return Mn}});var Lt=Ft(26407),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(77900),ee=Ft(59301),Vt=Ft(62892),Mt=Ft(32441);function jt(qe){const[pi,xi]=ee.useState(qe);return ee.useEffect(()=>{const wn=setTimeout(()=>{xi(qe)},qe.length?0:10);return()=>{clearTimeout(wn)}},[qe]),pi}var qt=Ft(17313),bt=Ft(29878),se=Ft(8378),Gt=Ft(37613),Xt=Ft(83116),et=qe=>{const{componentCls:pi}=qe,xi=`${pi}-show-help`,wn=`${pi}-show-help-item`;return{[xi]:{transition:`opacity ${qe.motionDurationSlow} ${qe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[wn]:{overflow:"hidden",transition:`height ${qe.motionDurationSlow} ${qe.motionEaseInOut},
opacity ${qe.motionDurationSlow} ${qe.motionEaseInOut},
transform ${qe.motionDurationSlow} ${qe.motionEaseInOut} !important`,[`&${wn}-appear, &${wn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${wn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=qe=>({legend:{display:"block",width:"100%",marginBottom:qe.marginLG,padding:0,color:qe.colorTextDescription,fontSize:qe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${qe.lineWidth}px ${qe.lineType} ${qe.colorBorder}`},label:{fontSize:qe.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${qe.controlOutlineWidth}px ${qe.controlOutline}`},output:{display:"block",paddingTop:15,color:qe.colorText,fontSize:qe.fontSize,lineHeight:qe.lineHeight}}),lt=(qe,pi)=>{const{formItemCls:xi}=qe;return{[xi]:{[`${xi}-label > label`]:{height:pi},[`${xi}-control-input`]:{minHeight:pi}}}},rt=qe=>{const{componentCls:pi}=qe;return{[qe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,qt.Wf)(qe)),tt(qe)),{[`${pi}-text`]:{display:"inline-block",paddingInlineEnd:qe.paddingSM},"&-small":Object.assign({},lt(qe,qe.controlHeightSM)),"&-large":Object.assign({},lt(qe,qe.controlHeightLG))})}},ht=qe=>{const{formItemCls:pi,iconCls:xi,componentCls:wn,rootPrefixCls:Ee,labelRequiredMarkColor:Cn,labelColor:Gn,labelFontSize:Ei,labelHeight:ei,labelColonMarginInlineStart:gn,labelColonMarginInlineEnd:di,itemMarginBottom:Ni}=qe;return{[pi]:Object.assign(Object.assign({},(0,qt.Wf)(qe)),{marginBottom:Ni,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Ee}-row`]:{display:"none"},"&-has-warning":{[`${pi}-split`]:{color:qe.colorError}},"&-has-error":{[`${pi}-split`]:{color:qe.colorWarning}},[`${pi}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${qe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ei,color:Gn,fontSize:Ei,[`> ${xi}`]:{fontSize:qe.fontSize,verticalAlign:"top"},[`&${pi}-required:not(${pi}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:qe.marginXXS,color:Cn,fontSize:qe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${wn}-hide-required-mark &`]:{display:"none"}},[`${pi}-optional`]:{display:"inline-block",marginInlineStart:qe.marginXXS,color:qe.colorTextDescription,[`${wn}-hide-required-mark &`]:{display:"none"}},[`${pi}-tooltip`]:{color:qe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:qe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:gn,marginInlineEnd:di},[`&${pi}-no-colon::after`]:{content:'"\\a0"'}}},[`${pi}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ee}-col-'"]):not([class*="' ${Ee}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:qe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[pi]:{"&-explain, &-extra":{clear:"both",color:qe.colorTextDescription,fontSize:qe.fontSize,lineHeight:qe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:qe.controlHeightSM,transition:`color ${qe.motionDurationMid} ${qe.motionEaseOut}`},"&-explain":{"&-error":{color:qe.colorError},"&-warning":{color:qe.colorWarning}}},[`&-with-help ${pi}-explain`]:{height:"auto",opacity:1},[`${pi}-feedback-icon`]:{fontSize:qe.fontSize,textAlign:"center",visibility:"visible",animationName:bt.kr,animationDuration:qe.motionDurationMid,animationTimingFunction:qe.motionEaseOutBack,pointerEvents:"none","&-success":{color:qe.colorSuccess},"&-error":{color:qe.colorError},"&-warning":{color:qe.colorWarning},"&-validating":{color:qe.colorPrimary}}})}},dt=qe=>{const{componentCls:pi,formItemCls:xi}=qe;return{[`${pi}-horizontal`]:{[`${xi}-label`]:{flexGrow:0},[`${xi}-control`]:{flex:"1 1 0",minWidth:0},[`${xi}-label[class$='-24'], ${xi}-label[class*='-24 ']`]:{[`& + ${xi}-control`]:{minWidth:"unset"}}}}},xt=qe=>{const{componentCls:pi,formItemCls:xi}=qe;return{[`${pi}-inline`]:{display:"flex",flexWrap:"wrap",[xi]:{flex:"none",marginInlineEnd:qe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${xi}-label,
> ${xi}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${xi}-label`]:{flex:"none"},[`${pi}-text`]:{display:"inline-block"},[`${xi}-has-feedback`]:{display:"inline-block"}}}}},Nt=qe=>({padding:qe.verticalLabelPadding,margin:qe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ut=qe=>{const{componentCls:pi,formItemCls:xi,rootPrefixCls:wn}=qe;return{[`${xi} ${xi}-label`]:Nt(qe),[pi]:{[xi]:{flexWrap:"wrap",[`${xi}-label, ${xi}-control`]:{[`&:not([class*=" ${wn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},_t=qe=>{const{componentCls:pi,formItemCls:xi,rootPrefixCls:wn}=qe;return{[`${pi}-vertical`]:{[xi]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${pi}-item-control`]:{width:"100%"}}},[`${pi}-vertical ${xi}-label,
.${wn}-col-24${xi}-label,
.${wn}-col-xl-24${xi}-label`]:Nt(qe),[`@media (max-width: ${qe.screenXSMax}px)`]:[Ut(qe),{[pi]:{[`.${wn}-col-xs-24${xi}-label`]:Nt(qe)}}],[`@media (max-width: ${qe.screenSMMax}px)`]:{[pi]:{[`.${wn}-col-sm-24${xi}-label`]:Nt(qe)}},[`@media (max-width: ${qe.screenMDMax}px)`]:{[pi]:{[`.${wn}-col-md-24${xi}-label`]:Nt(qe)}},[`@media (max-width: ${qe.screenLGMax}px)`]:{[pi]:{[`.${wn}-col-lg-24${xi}-label`]:Nt(qe)}}}},oe=(qe,pi)=>(0,Gt.TS)(qe,{formItemCls:`${qe.componentCls}-item`,rootPrefixCls:pi});var he=(0,Xt.Z)("Form",(qe,pi)=>{let{rootPrefixCls:xi}=pi;const wn=oe(qe,xi);return[rt(wn),ht(wn),et(wn),dt(wn),xt(wn),_t(wn),(0,se.Z)(wn),bt.kr]},qe=>({labelRequiredMarkColor:qe.colorError,labelColor:qe.colorTextHeading,labelFontSize:qe.fontSize,labelHeight:qe.controlHeight,labelColonMarginInlineStart:qe.marginXXS/2,labelColonMarginInlineEnd:qe.marginXS,itemMarginBottom:qe.marginLG,verticalLabelPadding:`0 0 ${qe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const fe=[];function Le(qe,pi,xi){let wn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof qe=="string"?qe:`${pi}-${wn}`,error:qe,errorStatus:xi}}var He=qe=>{let{help:pi,helpStatus:xi,errors:wn=fe,warnings:Ee=fe,className:Cn,fieldId:Gn,onVisibleChanged:Ei}=qe;const{prefixCls:ei}=ee.useContext(Mt.Rk),gn=`${ei}-item-explain`,[,di]=he(ei),Ni=(0,ee.useMemo)(()=>(0,Vt.Z)(ei),[ei]),$i=jt(wn),kn=jt(Ee),yi=ee.useMemo(()=>pi!=null?[Le(pi,"help",xi)]:[].concat((0,Lt.Z)($i.map((dr,zr)=>Le(dr,"error","error",zr))),(0,Lt.Z)(kn.map((dr,zr)=>Le(dr,"warning","warning",zr)))),[pi,xi,$i,kn]),Br={};return Gn&&(Br.id=`${Gn}_help`),ee.createElement(Ie.default,{motionDeadline:Ni.motionDeadline,motionName:`${ei}-show-help`,visible:!!yi.length,onVisibleChanged:Ei},dr=>{const{className:zr,style:cr}=dr;return ee.createElement("div",Object.assign({},Br,{className:re()(gn,zr,Cn,di),style:cr,role:"alert"}),ee.createElement(Ie.CSSMotionList,Object.assign({keys:yi},(0,Vt.Z)(ei),{motionName:`${ei}-show-help-item`,component:!1}),wr=>{const{key:or,error:xr,errorStatus:so,className:Yi,style:pr}=wr;return ee.createElement("div",{key:or,className:re()(Yi,{[`${gn}-${so}`]:so}),style:pr},xr)}))})},Wt=Ft(95013),Ke=Ft(36355),_e=Ft(1684),Ne=Ft(52946),Ge=Ft(19716),Ue=Ft(16722);const ve=["parentNode"],ne="form_item";function Ce(qe){return qe===void 0||qe===!1?[]:Array.isArray(qe)?qe:[qe]}function bn(qe,pi){if(!qe.length)return;const xi=qe.join("_");return pi?`${pi}_${xi}`:ve.includes(xi)?`${ne}_${xi}`:xi}function Ln(qe,pi,xi,wn,Ee,Cn){let Gn=wn;return Cn!==void 0?Gn=Cn:xi.validating?Gn="validating":qe.length?Gn="error":pi.length?Gn="warning":(xi.touched||Ee&&xi.validated)&&(Gn="success"),Gn}function Ve(qe){return Ce(qe).join("_")}function Nn(qe){const[pi]=(0,Wt.useForm)(),xi=ee.useRef({}),wn=ee.useMemo(()=>qe!=null?qe:Object.assign(Object.assign({},pi),{__INTERNAL__:{itemRef:Ee=>Cn=>{const Gn=Ve(Ee);Cn?xi.current[Gn]=Cn:delete xi.current[Gn]}},scrollToField:function(Ee){let Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Gn=Ce(Ee),Ei=bn(Gn,wn.__INTERNAL__.name),ei=Ei?document.getElementById(Ei):null;ei&&(0,Ue.Z)(ei,Object.assign({scrollMode:"if-needed",block:"nearest"},Cn))},getFieldInstance:Ee=>{const Cn=Ve(Ee);return xi.current[Cn]}}),[qe,pi]);return[wn]}var Zn=Ft(28726),gi=function(qe,pi){var xi={};for(var wn in qe)Object.prototype.hasOwnProperty.call(qe,wn)&&pi.indexOf(wn)<0&&(xi[wn]=qe[wn]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,wn=Object.getOwnPropertySymbols(qe);Ee<wn.length;Ee++)pi.indexOf(wn[Ee])<0&&Object.prototype.propertyIsEnumerable.call(qe,wn[Ee])&&(xi[wn[Ee]]=qe[wn[Ee]]);return xi};const Kn=(qe,pi)=>{const xi=ee.useContext(_e.Z),{getPrefixCls:wn,direction:Ee,form:Cn}=ee.useContext(Ke.E_),{prefixCls:Gn,className:Ei,rootClassName:ei,size:gn,disabled:di=xi,form:Ni,colon:$i,labelAlign:kn,labelWrap:yi,labelCol:Br,wrapperCol:dr,hideRequiredMark:zr,layout:cr="horizontal",scrollToFirstError:wr,requiredMark:or,onFinishFailed:xr,name:so,style:Yi,feedbackIcons:pr}=qe,yo=gi(qe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Ss=(0,Ge.Z)(gn),_o=ee.useContext(Zn.Z),Dn=(0,ee.useMemo)(()=>or!==void 0?or:Cn&&Cn.requiredMark!==void 0?Cn.requiredMark:!zr,[zr,or,Cn]),Tr=$i!=null?$i:Cn==null?void 0:Cn.colon,ao=wn("form",Gn),[Kr,qo]=he(ao),Oo=re()(ao,`${ao}-${cr}`,{[`${ao}-hide-required-mark`]:Dn===!1,[`${ao}-rtl`]:Ee==="rtl",[`${ao}-${Ss}`]:Ss},qo,Cn==null?void 0:Cn.className,Ei,ei),[wi]=Nn(Ni),{__INTERNAL__:Po}=wi;Po.name=so;const Rr=(0,ee.useMemo)(()=>({name:so,labelAlign:kn,labelCol:Br,labelWrap:yi,wrapperCol:dr,vertical:cr==="vertical",colon:Tr,requiredMark:Dn,itemRef:Po.itemRef,form:wi,feedbackIcons:pr}),[so,kn,Br,dr,cr,Tr,Dn,wi,pr]);ee.useImperativeHandle(pi,()=>wi);const kr=(Lo,Bi)=>{if(Lo){let Zo={block:"nearest"};typeof Lo=="object"&&(Zo=Lo),wi.scrollToField(Bi,Zo)}},Ci=Lo=>{if(xr==null||xr(Lo),Lo.errorFields.length){const Bi=Lo.errorFields[0].name;if(wr!==void 0){kr(wr,Bi);return}Cn&&Cn.scrollToFirstError!==void 0&&kr(Cn.scrollToFirstError,Bi)}};return Kr(ee.createElement(_e.n,{disabled:di},ee.createElement(Ne.q,{size:Ss},ee.createElement(Mt.RV,Object.assign({},{validateMessages:_o}),ee.createElement(Mt.q3.Provider,{value:Rr},ee.createElement(Wt.default,Object.assign({id:so},yo,{name:so,onFinishFailed:Ci,form:wi,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),Yi),className:Oo})))))))};var tn=ee.forwardRef(Kn),Li=Ft(41799),ji=Ft(8654),Ot=Ft(92343),Tt=Ft(11592);function vt(qe){if(typeof qe=="function")return qe;const pi=(0,Tt.Z)(qe);return pi.length<=1?pi[0]:pi}const gt=()=>{const{status:qe,errors:pi=[],warnings:xi=[]}=(0,ee.useContext)(Mt.aM);return{status:qe,errors:pi,warnings:xi}};gt.Context=Mt.aM;var ft=gt,At=Ft(16089);function le(qe){const[pi,xi]=ee.useState(qe),wn=(0,ee.useRef)(null),Ee=(0,ee.useRef)([]),Cn=(0,ee.useRef)(!1);ee.useEffect(()=>(Cn.current=!1,()=>{Cn.current=!0,At.Z.cancel(wn.current),wn.current=null}),[]);function Gn(Ei){Cn.current||(wn.current===null&&(Ee.current=[],wn.current=(0,At.Z)(()=>{wn.current=null,xi(ei=>{let gn=ei;return Ee.current.forEach(di=>{gn=di(gn)}),gn})})),Ee.current.push(Ei))}return[pi,Gn]}function xe(){const{itemRef:qe}=ee.useContext(Mt.q3),pi=ee.useRef({});function xi(wn,Ee){const Cn=Ee&&typeof Ee=="object"&&Ee.ref,Gn=wn.join("_");return(pi.current.name!==Gn||pi.current.originRef!==Cn)&&(pi.current.name=Gn,pi.current.originRef=Cn,pi.current.ref=(0,ji.sQ)(qe(wn),Cn)),pi.current.ref}return xi}var ae=Ft(29194),ye=Ft(34280),Oe=Ft(2738),Te=Ft(27382),Me=Ft(37028);const on=qe=>{const{formItemCls:pi}=qe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${pi}-control`]:{display:"flex"}}}};var Wn=(0,Xt.b)(["Form","item-item"],(qe,pi)=>{let{rootPrefixCls:xi}=pi;const wn=oe(qe,xi);return[on(wn)]}),ln=qe=>{const{prefixCls:pi,status:xi,wrapperCol:wn,children:Ee,errors:Cn,warnings:Gn,_internalItemRender:Ei,extra:ei,help:gn,fieldId:di,marginBottom:Ni,onErrorVisibleChanged:$i}=qe,kn=`${pi}-item`,yi=ee.useContext(Mt.q3),Br=wn||yi.wrapperCol||{},dr=re()(`${kn}-control`,Br.className),zr=ee.useMemo(()=>Object.assign({},yi),[yi]);delete zr.labelCol,delete zr.wrapperCol;const cr=ee.createElement("div",{className:`${kn}-control-input`},ee.createElement("div",{className:`${kn}-control-input-content`},Ee)),wr=ee.useMemo(()=>({prefixCls:pi,status:xi}),[pi,xi]),or=Ni!==null||Cn.length||Gn.length?ee.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ee.createElement(Mt.Rk.Provider,{value:wr},ee.createElement(He,{fieldId:di,errors:Cn,warnings:Gn,help:gn,helpStatus:xi,className:`${kn}-explain-connected`,onVisibleChanged:$i})),!!Ni&&ee.createElement("div",{style:{width:0,height:Ni}})):null,xr={};di&&(xr.id=`${di}_extra`);const so=ei?ee.createElement("div",Object.assign({},xr,{className:`${kn}-extra`}),ei):null,Yi=Ei&&Ei.mark==="pro_table_render"&&Ei.render?Ei.render(qe,{input:cr,errorList:or,extra:so}):ee.createElement(ee.Fragment,null,cr,or,so);return ee.createElement(Mt.q3.Provider,{value:zr},ee.createElement(Me.Z,Object.assign({},Br,{className:dr}),Yi),ee.createElement(Wn,{prefixCls:pi}))},Bn=Ft(61485),li=Ft(31724),On=Ft(9763),Di=Ft(6848),nr=function(qe,pi){var xi={};for(var wn in qe)Object.prototype.hasOwnProperty.call(qe,wn)&&pi.indexOf(wn)<0&&(xi[wn]=qe[wn]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,wn=Object.getOwnPropertySymbols(qe);Ee<wn.length;Ee++)pi.indexOf(wn[Ee])<0&&Object.prototype.propertyIsEnumerable.call(qe,wn[Ee])&&(xi[wn[Ee]]=qe[wn[Ee]]);return xi};function Xi(qe){return qe?typeof qe=="object"&&!ee.isValidElement(qe)?qe:{title:qe}:null}var br=qe=>{let{prefixCls:pi,label:xi,htmlFor:wn,labelCol:Ee,labelAlign:Cn,colon:Gn,required:Ei,requiredMark:ei,tooltip:gn}=qe;var di;const[Ni]=(0,On.Z)("Form"),{vertical:$i,labelAlign:kn,labelCol:yi,labelWrap:Br,colon:dr}=ee.useContext(Mt.q3);if(!xi)return null;const zr=Ee||yi||{},cr=Cn||kn,wr=`${pi}-item-label`,or=re()(wr,cr==="left"&&`${wr}-left`,zr.className,{[`${wr}-wrap`]:!!Br});let xr=xi;const so=Gn===!0||dr!==!1&&Gn!==!1;so&&!$i&&typeof xi=="string"&&xi.trim()!==""&&(xr=xi.replace(/[:|]\s*$/,""));const pr=Xi(gn);if(pr){const{icon:Dn=ee.createElement(Bn.Z,null)}=pr,Tr=nr(pr,["icon"]),ao=ee.createElement(Di.Z,Object.assign({},Tr),ee.cloneElement(Dn,{className:`${pi}-item-tooltip`,title:""}));xr=ee.createElement(ee.Fragment,null,xr,ao)}const yo=ei==="optional",Ss=typeof ei=="function";Ss?xr=ei(xr,{required:!!Ei}):yo&&!Ei&&(xr=ee.createElement(ee.Fragment,null,xr,ee.createElement("span",{className:`${pi}-item-optional`,title:""},(Ni==null?void 0:Ni.optional)||((di=li.Z.Form)===null||di===void 0?void 0:di.optional))));const _o=re()({[`${pi}-item-required`]:Ei,[`${pi}-item-required-mark-optional`]:yo||Ss,[`${pi}-item-no-colon`]:!so});return ee.createElement(Me.Z,Object.assign({},zr,{className:or}),ee.createElement("label",{htmlFor:wn,className:_o,title:typeof xi=="string"?xi:""},xr))},eo=Ft(29679),Yr=Ft(19248),qr=Ft(96512),Ir=Ft(58617);const Xr={success:eo.Z,warning:qr.Z,error:Yr.Z,validating:Ir.Z};function oo(qe){let{children:pi,errors:xi,warnings:wn,hasFeedback:Ee,validateStatus:Cn,prefixCls:Gn,meta:Ei,noStyle:ei}=qe;const gn=`${Gn}-item`,{feedbackIcons:di}=ee.useContext(Mt.q3),Ni=Ln(xi,wn,Ei,null,!!Ee,Cn),{isFormItemInput:$i,status:kn}=ee.useContext(Mt.aM),yi=ee.useMemo(()=>{var Br;let dr;if(Ee){const wr=Ee!==!0&&Ee.icons||di,or=Ni&&((Br=wr==null?void 0:wr({status:Ni,errors:xi,warnings:wn}))===null||Br===void 0?void 0:Br[Ni]),xr=Ni&&Xr[Ni];dr=or!==!1&&xr?ee.createElement("span",{className:re()(`${gn}-feedback-icon`,`${gn}-feedback-icon-${Ni}`)},or||ee.createElement(xr,null)):null}let zr=!0,cr=Ni||"";return ei&&(zr=$i,cr=(Ni!=null?Ni:kn)||""),{status:cr,errors:xi,warnings:wn,hasFeedback:!!Ee,feedbackIcon:dr,isFormItemInput:zr}},[Ni,Ee,ei,$i,kn]);return ee.createElement(Mt.aM.Provider,{value:yi},pi)}var jo=function(qe,pi){var xi={};for(var wn in qe)Object.prototype.hasOwnProperty.call(qe,wn)&&pi.indexOf(wn)<0&&(xi[wn]=qe[wn]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,wn=Object.getOwnPropertySymbols(qe);Ee<wn.length;Ee++)pi.indexOf(wn[Ee])<0&&Object.prototype.propertyIsEnumerable.call(qe,wn[Ee])&&(xi[wn[Ee]]=qe[wn[Ee]]);return xi};function ds(qe){const{prefixCls:pi,className:xi,rootClassName:wn,style:Ee,help:Cn,errors:Gn,warnings:Ei,validateStatus:ei,meta:gn,hasFeedback:di,hidden:Ni,children:$i,fieldId:kn,required:yi,isRequired:Br,onSubItemMetaChange:dr}=qe,zr=jo(qe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),cr=`${pi}-item`,{requiredMark:wr}=ee.useContext(Mt.q3),or=ee.useRef(null),xr=jt(Gn),so=jt(Ei),Yi=Cn!=null,pr=!!(Yi||Gn.length||Ei.length),yo=!!or.current&&(0,ae.Z)(or.current),[Ss,_o]=ee.useState(null);(0,ye.Z)(()=>{if(pr&&or.current){const qo=getComputedStyle(or.current);_o(parseInt(qo.marginBottom,10))}},[pr,yo]);const Dn=qo=>{qo||_o(null)},ao=function(){let qo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Oo=qo?xr:gn.errors,wi=qo?so:gn.warnings;return Ln(Oo,wi,gn,"",!!di,ei)}(),Kr=re()(cr,xi,wn,{[`${cr}-with-help`]:Yi||xr.length||so.length,[`${cr}-has-feedback`]:ao&&di,[`${cr}-has-success`]:ao==="success",[`${cr}-has-warning`]:ao==="warning",[`${cr}-has-error`]:ao==="error",[`${cr}-is-validating`]:ao==="validating",[`${cr}-hidden`]:Ni});return ee.createElement("div",{className:Kr,style:Ee,ref:or},ee.createElement(Te.Z,Object.assign({className:`${cr}-row`},(0,Oe.Z)(zr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ee.createElement(br,Object.assign({htmlFor:kn},qe,{requiredMark:wr,required:yi!=null?yi:Br,prefixCls:pi})),ee.createElement(ln,Object.assign({},qe,gn,{errors:xr,warnings:so,prefixCls:pi,status:ao,help:Cn,marginBottom:Ss,onErrorVisibleChanged:Dn}),ee.createElement(Mt.qI.Provider,{value:dr},ee.createElement(oo,{prefixCls:pi,meta:gn,errors:gn.errors,warnings:gn.warnings,hasFeedback:di,validateStatus:ao},$i)))),!!Ss&&ee.createElement("div",{className:`${cr}-margin-offset`,style:{marginBottom:-Ss}}))}const no="__SPLIT__",Is=null,xo=ee.memo(qe=>{let{children:pi}=qe;return pi},(qe,pi)=>qe.value===pi.value&&qe.update===pi.update&&qe.childProps.length===pi.childProps.length&&qe.childProps.every((xi,wn)=>xi===pi.childProps[wn]));function $t(qe){return qe!=null}function ni(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gs(qe){const{name:pi,noStyle:xi,className:wn,dependencies:Ee,prefixCls:Cn,shouldUpdate:Gn,rules:Ei,children:ei,required:gn,label:di,messageVariables:Ni,trigger:$i="onChange",validateTrigger:kn,hidden:yi,help:Br}=qe,{getPrefixCls:dr}=ee.useContext(Ke.E_),{name:zr}=ee.useContext(Mt.q3),cr=vt(ei),wr=typeof cr=="function",or=ee.useContext(Mt.qI),{validateTrigger:xr}=ee.useContext(Wt.FieldContext),so=kn!==void 0?kn:xr,Yi=$t(pi),pr=dr("form",Cn),[yo,Ss]=he(pr),_o=ee.useContext(Wt.ListContext),Dn=ee.useRef(),[Tr,ao]=le({}),[Kr,qo]=(0,Li.Z)(()=>ni()),Oo=Bi=>{const Zo=_o==null?void 0:_o.getKey(Bi.name);if(qo(Bi.destroy?ni():Bi,!0),xi&&Br!==!1&&or){let ra=Bi.name;if(Bi.destroy)ra=Dn.current||ra;else if(Zo!==void 0){const[fs,ba]=Zo;ra=[fs].concat((0,Lt.Z)(ba)),Dn.current=ra}or(Bi,ra)}},wi=(Bi,Zo)=>{ao(ra=>{const fs=Object.assign({},ra),Vs=[].concat((0,Lt.Z)(Bi.name.slice(0,-1)),(0,Lt.Z)(Zo)).join(no);return Bi.destroy?delete fs[Vs]:fs[Vs]=Bi,fs})},[Po,Rr]=ee.useMemo(()=>{const Bi=(0,Lt.Z)(Kr.errors),Zo=(0,Lt.Z)(Kr.warnings);return Object.values(Tr).forEach(ra=>{Bi.push.apply(Bi,(0,Lt.Z)(ra.errors||[])),Zo.push.apply(Zo,(0,Lt.Z)(ra.warnings||[]))}),[Bi,Zo]},[Tr,Kr.errors,Kr.warnings]),kr=xe();function Ci(Bi,Zo,ra){return xi&&!yi?ee.createElement(oo,{prefixCls:pr,hasFeedback:qe.hasFeedback,validateStatus:qe.validateStatus,meta:Kr,errors:Po,warnings:Rr,noStyle:!0},Bi):ee.createElement(ds,Object.assign({key:"row"},qe,{className:re()(wn,Ss),prefixCls:pr,fieldId:Zo,isRequired:ra,errors:Po,warnings:Rr,meta:Kr,onSubItemMetaChange:wi}),Bi)}if(!Yi&&!wr&&!Ee)return yo(Ci(cr));let Lo={};return typeof di=="string"?Lo.label=di:pi&&(Lo.label=String(pi)),Ni&&(Lo=Object.assign(Object.assign({},Lo),Ni)),yo(ee.createElement(Wt.Field,Object.assign({},qe,{messageVariables:Lo,trigger:$i,validateTrigger:so,onMetaChange:Oo}),(Bi,Zo,ra)=>{const fs=Ce(pi).length&&Zo?Zo.name:[],ba=bn(fs,zr),Vs=gn!==void 0?gn:!!(Ei&&Ei.some(ps=>{if(ps&&typeof ps=="object"&&ps.required&&!ps.warningOnly)return!0;if(typeof ps=="function"){const ss=ps(ra);return ss&&ss.required&&!ss.warningOnly}return!1})),Mo=Object.assign({},Bi);let Ho=null;if(Array.isArray(cr)&&Yi)Ho=cr;else if(!(wr&&(!(Gn||Ee)||Yi))){if(!(Ee&&!wr&&!Yi))if((0,Ot.l$)(cr)){const ps=Object.assign(Object.assign({},cr.props),Mo);if(ps.id||(ps.id=ba),Br||Po.length>0||Rr.length>0||qe.extra){const ke=[];(Br||Po.length>0)&&ke.push(`${ba}_help`),qe.extra&&ke.push(`${ba}_extra`),ps["aria-describedby"]=ke.join(" ")}Po.length>0&&(ps["aria-invalid"]="true"),Vs&&(ps["aria-required"]="true"),(0,ji.Yr)(cr)&&(ps.ref=kr(fs,cr)),new Set([].concat((0,Lt.Z)(Ce($i)),(0,Lt.Z)(Ce(so)))).forEach(ke=>{ps[ke]=function(){for(var ts,Sa,sl,Ll,ml,Ol=arguments.length,is=new Array(Ol),$o=0;$o<Ol;$o++)is[$o]=arguments[$o];(sl=Mo[ke])===null||sl===void 0||(ts=sl).call.apply(ts,[Mo].concat(is)),(ml=(Ll=cr.props)[ke])===null||ml===void 0||(Sa=ml).call.apply(Sa,[Ll].concat(is))}});const gr=[ps["aria-required"],ps["aria-invalid"],ps["aria-describedby"]];Ho=ee.createElement(xo,{value:Mo[qe.valuePropName||"value"],update:cr,childProps:gr},(0,Ot.Tm)(cr,ps))}else wr&&(Gn||Ee)&&!Yi?Ho=cr(ra):Ho=cr}return Ci(Ho,ba,Vs)}))}const ua=gs;ua.useStatus=ft;var Gs=ua,ha=function(qe,pi){var xi={};for(var wn in qe)Object.prototype.hasOwnProperty.call(qe,wn)&&pi.indexOf(wn)<0&&(xi[wn]=qe[wn]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,wn=Object.getOwnPropertySymbols(qe);Ee<wn.length;Ee++)pi.indexOf(wn[Ee])<0&&Object.prototype.propertyIsEnumerable.call(qe,wn[Ee])&&(xi[wn[Ee]]=qe[wn[Ee]]);return xi},Hr=qe=>{var{prefixCls:pi,children:xi}=qe,wn=ha(qe,["prefixCls","children"]);const{getPrefixCls:Ee}=ee.useContext(Ke.E_),Cn=Ee("form",pi),Gn=ee.useMemo(()=>({prefixCls:Cn,status:"error"}),[Cn]);return ee.createElement(Wt.List,Object.assign({},wn),(Ei,ei,gn)=>ee.createElement(Mt.Rk.Provider,{value:Gn},xi(Ei.map(di=>Object.assign(Object.assign({},di),{fieldKey:di.key})),ei,{errors:gn.errors,warnings:gn.warnings})))};function Xn(){const{form:qe}=(0,ee.useContext)(Mt.q3);return qe}const Hn=tn;Hn.Item=Gs,Hn.List=Hr,Hn.ErrorList=He,Hn.useForm=Nn,Hn.useFormInstance=Xn,Hn.useWatch=Wt.useWatch,Hn.Provider=Mt.RV,Hn.create=()=>{};var Mn=Hn},8628:function(hi,Sn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(34280),re=Ft(56762),Ie=Ft(69507);function ee(){let Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Mt=(0,Lt.useRef)({}),jt=(0,re.Z)(),qt=(0,Ie.ZP)();return(0,ce.Z)(()=>{const bt=qt.subscribe(se=>{Mt.current=se,Vt&&jt()});return()=>qt.unsubscribe(bt)},[]),Mt.current}Sn.Z=ee},9432:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ht},n:function(){return lt}});var Lt=Ft(19248),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(93681),ee=Ft(8654),Vt=Ft(59301),Mt=Ft(19080),jt=Ft(36355),qt=Ft(1684),bt=Ft(19716),se=Ft(32441),Gt=Ft(33234),Xt=Ft(59412),Ct=Ft(9937);function et(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var tt=function(dt,xt){var Nt={};for(var Ut in dt)Object.prototype.hasOwnProperty.call(dt,Ut)&&xt.indexOf(Ut)<0&&(Nt[Ut]=dt[Ut]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Ut=Object.getOwnPropertySymbols(dt);_t<Ut.length;_t++)xt.indexOf(Ut[_t])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ut[_t])&&(Nt[Ut[_t]]=dt[Ut[_t]]);return Nt};function lt(dt,xt){if(!dt)return;dt.focus(xt);const{cursor:Nt}=xt||{};if(Nt){const Ut=dt.value.length;switch(Nt){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(Ut,Ut);break;default:dt.setSelectionRange(0,Ut);break}}}var ht=(0,Vt.forwardRef)((dt,xt)=>{var Nt;const{prefixCls:Ut,bordered:_t=!0,status:oe,size:he,disabled:fe,onBlur:Le,onFocus:te,suffix:He,allowClear:Wt,addonAfter:Ke,addonBefore:_e,className:Ne,style:Ge,styles:Ue,rootClassName:ve,onChange:ne,classNames:Ce}=dt,bn=tt(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ln,direction:Ve,input:Nn}=Vt.useContext(jt.E_),Zn=Ln("input",Ut),gi=(0,Vt.useRef)(null),[Kn,Pi]=(0,Ct.ZP)(Zn),{compactSize:tn,compactItemClassnames:Li}=(0,Gt.ri)(Zn,Ve),ji=(0,bt.Z)(Wn=>{var sn;return(sn=he!=null?he:tn)!==null&&sn!==void 0?sn:Wn}),Ot=Vt.useContext(qt.Z),Tt=fe!=null?fe:Ot,{status:vt,hasFeedback:gt,feedbackIcon:ft}=(0,Vt.useContext)(se.aM),At=(0,Mt.F)(vt,oe),le=et(dt)||!!gt,xe=(0,Vt.useRef)(le);(0,Vt.useEffect)(()=>{var Wn;le&&xe.current,xe.current=le},[le]);const ae=(0,Xt.Z)(gi,!0),ye=Wn=>{ae(),Le==null||Le(Wn)},Oe=Wn=>{ae(),te==null||te(Wn)},Te=Wn=>{ae(),ne==null||ne(Wn)},Me=(gt||He)&&Vt.createElement(Vt.Fragment,null,He,gt&&ft);let on;return typeof Wt=="object"&&(Wt!=null&&Wt.clearIcon)?on=Wt:Wt&&(on={clearIcon:Vt.createElement(Lt.Z,null)}),Kn(Vt.createElement(Ie.default,Object.assign({ref:(0,ee.sQ)(xt,gi),prefixCls:Zn,autoComplete:Nn==null?void 0:Nn.autoComplete},bn,{disabled:Tt,onBlur:ye,onFocus:Oe,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Ge),styles:Object.assign(Object.assign({},Nn==null?void 0:Nn.styles),Ue),suffix:Me,allowClear:on,className:re()(Ne,ve,Li,Nn==null?void 0:Nn.className),onChange:Te,addonAfter:Ke&&Vt.createElement(Gt.BR,null,Vt.createElement(se.Ux,{override:!0,status:!0},Ke)),addonBefore:_e&&Vt.createElement(Gt.BR,null,Vt.createElement(se.Ux,{override:!0,status:!0},_e)),classNames:Object.assign(Object.assign(Object.assign({},Ce),Nn==null?void 0:Nn.classNames),{input:re()({[`${Zn}-sm`]:ji==="small",[`${Zn}-lg`]:ji==="large",[`${Zn}-rtl`]:Ve==="rtl",[`${Zn}-borderless`]:!_t},!le&&(0,Mt.Z)(Zn,At),Ce==null?void 0:Ce.input,(Nt=Nn==null?void 0:Nn.classNames)===null||Nt===void 0?void 0:Nt.input,Pi)}),classes:{affixWrapper:re()({[`${Zn}-affix-wrapper-sm`]:ji==="small",[`${Zn}-affix-wrapper-lg`]:ji==="large",[`${Zn}-affix-wrapper-rtl`]:Ve==="rtl",[`${Zn}-affix-wrapper-borderless`]:!_t},(0,Mt.Z)(`${Zn}-affix-wrapper`,At,gt),Pi),wrapper:re()({[`${Zn}-group-rtl`]:Ve==="rtl"},Pi),group:re()({[`${Zn}-group-wrapper-sm`]:ji==="small",[`${Zn}-group-wrapper-lg`]:ji==="large",[`${Zn}-group-wrapper-rtl`]:Ve==="rtl",[`${Zn}-group-wrapper-disabled`]:Tt},(0,Mt.Z)(`${Zn}-group-wrapper`,At,gt),Pi)}})))})},1643:function(hi,Sn,Ft){"use strict";var Lt=Ft(19248),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(9296),ee=Ft(59301),Vt=Ft(19080),Mt=Ft(36355),jt=Ft(1684),qt=Ft(19716),bt=Ft(32441),se=Ft(9432),Gt=Ft(9937),Xt=function(et,tt){var lt={};for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&tt.indexOf(rt)<0&&(lt[rt]=et[rt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,rt=Object.getOwnPropertySymbols(et);ht<rt.length;ht++)tt.indexOf(rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ht])&&(lt[rt[ht]]=et[rt[ht]]);return lt};const Ct=(0,ee.forwardRef)((et,tt)=>{const{prefixCls:lt,bordered:rt=!0,size:ht,disabled:dt,status:xt,allowClear:Nt,showCount:Ut,classNames:_t,rootClassName:oe,className:he}=et,fe=Xt(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Le,direction:te}=ee.useContext(Mt.E_),He=(0,qt.Z)(ht),Wt=ee.useContext(jt.Z),Ke=dt!=null?dt:Wt,{status:_e,hasFeedback:Ne,feedbackIcon:Ge}=ee.useContext(bt.aM),Ue=(0,Vt.F)(_e,xt),ve=ee.useRef(null);ee.useImperativeHandle(tt,()=>{var Ve;return{resizableTextArea:(Ve=ve.current)===null||Ve===void 0?void 0:Ve.resizableTextArea,focus:Nn=>{var Zn,gi;(0,se.n)((gi=(Zn=ve.current)===null||Zn===void 0?void 0:Zn.resizableTextArea)===null||gi===void 0?void 0:gi.textArea,Nn)},blur:()=>{var Nn;return(Nn=ve.current)===null||Nn===void 0?void 0:Nn.blur()}}});const ne=Le("input",lt);let Ce;typeof Nt=="object"&&(Nt!=null&&Nt.clearIcon)?Ce=Nt:Nt&&(Ce={clearIcon:ee.createElement(Lt.Z,null)});const[bn,Ln]=(0,Gt.ZP)(ne);return bn(ee.createElement(Ie.default,Object.assign({},fe,{disabled:Ke,allowClear:Ce,className:re()(he,oe),classes:{affixWrapper:re()(`${ne}-textarea-affix-wrapper`,{[`${ne}-affix-wrapper-rtl`]:te==="rtl",[`${ne}-affix-wrapper-borderless`]:!rt,[`${ne}-affix-wrapper-sm`]:He==="small",[`${ne}-affix-wrapper-lg`]:He==="large",[`${ne}-textarea-show-count`]:Ut},(0,Vt.Z)(`${ne}-affix-wrapper`,Ue),Ln)},classNames:Object.assign(Object.assign({},_t),{textarea:re()({[`${ne}-borderless`]:!rt,[`${ne}-sm`]:He==="small",[`${ne}-lg`]:He==="large"},(0,Vt.Z)(ne,Ue),Ln,_t==null?void 0:_t.textarea)}),prefixCls:ne,suffix:Ne&&ee.createElement("span",{className:`${ne}-textarea-suffix`},Ge),showCount:Ut,ref:ve})))});Sn.Z=Ct},59412:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ce}});var Lt=Ft(59301);function ce(re,Ie){const ee=(0,Lt.useRef)([]),Vt=()=>{ee.current.push(setTimeout(()=>{var Mt,jt,qt,bt;!((Mt=re.current)===null||Mt===void 0)&&Mt.input&&((jt=re.current)===null||jt===void 0?void 0:jt.input.getAttribute("type"))==="password"&&(!((qt=re.current)===null||qt===void 0)&&qt.input.hasAttribute("value"))&&((bt=re.current)===null||bt===void 0||bt.input.removeAttribute("value"))}))};return(0,Lt.useEffect)(()=>(Ie&&Vt(),()=>ee.current.forEach(Mt=>{Mt&&clearTimeout(Mt)})),[]),Vt}},92832:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return He}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),Ie=Ft(36355),ee=Ft(32441),Vt=Ft(9937),jt=Wt=>{const{getPrefixCls:Ke,direction:_e}=(0,re.useContext)(Ie.E_),{prefixCls:Ne,className:Ge}=Wt,Ue=Ke("input-group",Ne),ve=Ke("input"),[ne,Ce]=(0,Vt.ZP)(ve),bn=ce()(Ue,{[`${Ue}-lg`]:Wt.size==="large",[`${Ue}-sm`]:Wt.size==="small",[`${Ue}-compact`]:Wt.compact,[`${Ue}-rtl`]:_e==="rtl"},Ce,Ge),Ln=(0,re.useContext)(ee.aM),Ve=(0,re.useMemo)(()=>Object.assign(Object.assign({},Ln),{isFormItemInput:!1}),[Ln]);return ne(re.createElement("span",{className:bn,style:Wt.style,onMouseEnter:Wt.onMouseEnter,onMouseLeave:Wt.onMouseLeave,onFocus:Wt.onFocus,onBlur:Wt.onBlur},re.createElement(ee.aM.Provider,{value:Ve},Wt.children)))},qt=Ft(9432),bt=Ft(73331),se=Ft(15277),Gt=Ft(2738),Xt=Ft(8654),Ct=Ft(59412),et=function(Wt,Ke){var _e={};for(var Ne in Wt)Object.prototype.hasOwnProperty.call(Wt,Ne)&&Ke.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(Wt);Ge<Ne.length;Ge++)Ke.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ne[Ge])&&(_e[Ne[Ge]]=Wt[Ne[Ge]]);return _e};const tt=Wt=>Wt?re.createElement(se.Z,null):re.createElement(bt.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ht=re.forwardRef((Wt,Ke)=>{const{visibilityToggle:_e=!0}=Wt,Ne=typeof _e=="object"&&_e.visible!==void 0,[Ge,Ue]=(0,re.useState)(()=>Ne?_e.visible:!1),ve=(0,re.useRef)(null);re.useEffect(()=>{Ne&&Ue(_e.visible)},[Ne,_e]);const ne=(0,Ct.Z)(ve),Ce=()=>{const{disabled:Tt}=Wt;Tt||(Ge&&ne(),Ue(vt=>{var gt;const ft=!vt;return typeof _e=="object"&&((gt=_e.onVisibleChange)===null||gt===void 0||gt.call(_e,ft)),ft}))},bn=Tt=>{const{action:vt="click",iconRender:gt=tt}=Wt,ft=lt[vt]||"",At=gt(Ge),le={[ft]:Ce,className:`${Tt}-icon`,key:"passwordIcon",onMouseDown:xe=>{xe.preventDefault()},onMouseUp:xe=>{xe.preventDefault()}};return re.cloneElement(re.isValidElement(At)?At:re.createElement("span",null,At),le)},{className:Ln,prefixCls:Ve,inputPrefixCls:Nn,size:Zn}=Wt,gi=et(Wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Kn}=re.useContext(Ie.E_),Pi=Kn("input",Nn),tn=Kn("input-password",Ve),Li=_e&&bn(tn),ji=ce()(tn,Ln,{[`${tn}-${Zn}`]:!!Zn}),Ot=Object.assign(Object.assign({},(0,Gt.Z)(gi,["suffix","iconRender","visibilityToggle"])),{type:Ge?"text":"password",className:ji,prefixCls:Pi,suffix:Li});return Zn&&(Ot.size=Zn),re.createElement(qt.Z,Object.assign({ref:(0,Xt.sQ)(Ke,ve)},Ot))}),dt=Ft(47472),xt=Ft(92343),Nt=Ft(3113),Ut=Ft(19716),_t=Ft(33234),oe=function(Wt,Ke){var _e={};for(var Ne in Wt)Object.prototype.hasOwnProperty.call(Wt,Ne)&&Ke.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(Wt);Ge<Ne.length;Ge++)Ke.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ne[Ge])&&(_e[Ne[Ge]]=Wt[Ne[Ge]]);return _e},fe=re.forwardRef((Wt,Ke)=>{const{prefixCls:_e,inputPrefixCls:Ne,className:Ge,size:Ue,suffix:ve,enterButton:ne=!1,addonAfter:Ce,loading:bn,disabled:Ln,onSearch:Ve,onChange:Nn,onCompositionStart:Zn,onCompositionEnd:gi}=Wt,Kn=oe(Wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Pi,direction:tn}=re.useContext(Ie.E_),Li=re.useRef(!1),ji=Pi("input-search",_e),Ot=Pi("input",Ne),{compactSize:Tt}=(0,_t.ri)(ji,tn),vt=(0,Ut.Z)(ln=>{var Bn;return(Bn=Ue!=null?Ue:Tt)!==null&&Bn!==void 0?Bn:ln}),gt=re.useRef(null),ft=ln=>{ln&&ln.target&&ln.type==="click"&&Ve&&Ve(ln.target.value,ln,{source:"clear"}),Nn&&Nn(ln)},At=ln=>{var Bn;document.activeElement===((Bn=gt.current)===null||Bn===void 0?void 0:Bn.input)&&ln.preventDefault()},le=ln=>{var Bn,li;Ve&&Ve((li=(Bn=gt.current)===null||Bn===void 0?void 0:Bn.input)===null||li===void 0?void 0:li.value,ln,{source:"input"})},xe=ln=>{Li.current||bn||le(ln)},ae=typeof ne=="boolean"?re.createElement(dt.Z,null):null,ye=`${ji}-button`;let Oe;const Te=ne||{},Me=Te.type&&Te.type.__ANT_BUTTON===!0;Me||Te.type==="button"?Oe=(0,xt.Tm)(Te,Object.assign({onMouseDown:At,onClick:ln=>{var Bn,li;(li=(Bn=Te==null?void 0:Te.props)===null||Bn===void 0?void 0:Bn.onClick)===null||li===void 0||li.call(Bn,ln),le(ln)},key:"enterButton"},Me?{className:ye,size:vt}:{})):Oe=re.createElement(Nt.ZP,{className:ye,type:ne?"primary":void 0,size:vt,disabled:Ln,key:"enterButton",onMouseDown:At,onClick:le,loading:bn,icon:ae},ne),Ce&&(Oe=[Oe,(0,xt.Tm)(Ce,{key:"addonAfter"})]);const on=ce()(ji,{[`${ji}-rtl`]:tn==="rtl",[`${ji}-${vt}`]:!!vt,[`${ji}-with-button`]:!!ne},Ge),Wn=ln=>{Li.current=!0,Zn==null||Zn(ln)},sn=ln=>{Li.current=!1,gi==null||gi(ln)};return re.createElement(qt.Z,Object.assign({ref:(0,Xt.sQ)(gt,Ke),onPressEnter:xe},Kn,{size:vt,onCompositionStart:Wn,onCompositionEnd:sn,prefixCls:Ot,addonAfter:Oe,suffix:ve,onChange:ft,className:on,disabled:Ln}))}),Le=Ft(1643);const te=qt.Z;te.Group=jt,te.Search=fe,te.TextArea=Le.Z,te.Password=ht;var He=te},45818:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{D:function(){return dt},Z:function(){return Ut}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ie=re,ee=Ft(7657),Vt=function(oe,he){return ce.createElement(ee.Z,(0,Lt.Z)({},oe,{ref:he,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt,qt=Ft(33853),bt=Ft(38819),se=Ft(92310),Gt=Ft.n(se),Xt=Ft(2738),et=_t=>!isNaN(parseFloat(_t))&&isFinite(_t),tt=Ft(36355),lt=Ft(84966),rt=function(_t,oe){var he={};for(var fe in _t)Object.prototype.hasOwnProperty.call(_t,fe)&&oe.indexOf(fe)<0&&(he[fe]=_t[fe]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,fe=Object.getOwnPropertySymbols(_t);Le<fe.length;Le++)oe.indexOf(fe[Le])<0&&Object.prototype.propertyIsEnumerable.call(_t,fe[Le])&&(he[fe[Le]]=_t[fe[Le]]);return he};const ht={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=ce.createContext({}),xt=(()=>{let _t=0;return function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return _t+=1,`${oe}${_t}`}})();var Ut=ce.forwardRef((_t,oe)=>{const{prefixCls:he,className:fe,trigger:Le,children:te,defaultCollapsed:He=!1,theme:Wt="dark",style:Ke={},collapsible:_e=!1,reverseArrow:Ne=!1,width:Ge=200,collapsedWidth:Ue=80,zeroWidthTriggerStyle:ve,breakpoint:ne,onCollapse:Ce,onBreakpoint:bn}=_t,Ln=rt(_t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ve}=(0,ce.useContext)(lt.Gs),[Nn,Zn]=(0,ce.useState)("collapsed"in _t?_t.collapsed:He),[gi,Kn]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in _t&&Zn(_t.collapsed)},[_t.collapsed]);const Pi=(vt,gt)=>{"collapsed"in _t||Zn(vt),Ce==null||Ce(vt,gt)},tn=(0,ce.useRef)();tn.current=vt=>{Kn(vt.matches),bn==null||bn(vt.matches),Nn!==vt.matches&&Pi(vt.matches,"responsive")},(0,ce.useEffect)(()=>{function vt(ft){return tn.current(ft)}let gt;if(typeof window!="undefined"){const{matchMedia:ft}=window;if(ft&&ne&&ne in ht){gt=ft(`(max-width: ${ht[ne]})`);try{gt.addEventListener("change",vt)}catch(At){gt.addListener(vt)}vt(gt)}}return()=>{try{gt==null||gt.removeEventListener("change",vt)}catch(ft){gt==null||gt.removeListener(vt)}}},[ne]),(0,ce.useEffect)(()=>{const vt=xt("ant-sider-");return Ve.addSider(vt),()=>Ve.removeSider(vt)},[]);const Li=()=>{Pi(!Nn,"clickTrigger")},{getPrefixCls:ji}=(0,ce.useContext)(tt.E_),Ot=()=>{const vt=ji("layout-sider",he),gt=(0,Xt.Z)(Ln,["collapsed"]),ft=Nn?Ue:Ge,At=et(ft)?`${ft}px`:String(ft),le=parseFloat(String(Ue||0))===0?ce.createElement("span",{onClick:Li,className:Gt()(`${vt}-zero-width-trigger`,`${vt}-zero-width-trigger-${Ne?"right":"left"}`),style:ve},Le||ce.createElement(jt,null)):null,ye={expanded:Ne?ce.createElement(bt.Z,null):ce.createElement(qt.Z,null),collapsed:Ne?ce.createElement(qt.Z,null):ce.createElement(bt.Z,null)}[Nn?"collapsed":"expanded"],Oe=Le!==null?le||ce.createElement("div",{className:`${vt}-trigger`,onClick:Li,style:{width:At}},Le||ye):null,Te=Object.assign(Object.assign({},Ke),{flex:`0 0 ${At}`,maxWidth:At,minWidth:At,width:At}),Me=Gt()(vt,`${vt}-${Wt}`,{[`${vt}-collapsed`]:!!Nn,[`${vt}-has-trigger`]:_e&&Le!==null&&!le,[`${vt}-below`]:!!gi,[`${vt}-zero-width`]:parseFloat(At)===0},fe);return ce.createElement("aside",Object.assign({className:Me},gt,{style:Te,ref:oe}),ce.createElement("div",{className:`${vt}-children`},te),_e||gi&&le?Oe:null)},Tt=ce.useMemo(()=>({siderCollapsed:Nn}),[Nn]);return ce.createElement(dt.Provider,{value:Tt},Ot())})},84966:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{VY:function(){return dt},$_:function(){return ht},h4:function(){return rt},Gs:function(){return Xt},ZP:function(){return xt}});var Lt=Ft(26407),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(2738),ee=Ft(59301),Vt=Ft(36355),Mt=Ft(83116),qt=Nt=>{const{componentCls:Ut,bodyBg:_t,lightSiderBg:oe,lightTriggerBg:he,lightTriggerColor:fe}=Nt;return{[`${Ut}-sider-light`]:{background:oe,[`${Ut}-sider-trigger`]:{color:fe,background:he},[`${Ut}-sider-zero-width-trigger`]:{color:fe,background:he,border:`1px solid ${_t}`,borderInlineStart:0}}}};const bt=Nt=>{const{antCls:Ut,componentCls:_t,colorText:oe,triggerColor:he,footerBg:fe,triggerBg:Le,headerHeight:te,headerPadding:He,headerColor:Wt,footerPadding:Ke,triggerHeight:_e,zeroTriggerHeight:Ne,zeroTriggerWidth:Ge,motionDurationMid:Ue,motionDurationSlow:ve,fontSize:ne,borderRadius:Ce,bodyBg:bn,headerBg:Ln,siderBg:Ve}=Nt;return{[_t]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{boxSizing:"border-box"},[`&${_t}-has-sider`]:{flexDirection:"row",[`> ${_t}, > ${_t}-content`]:{width:0}},[`${_t}-header, &${_t}-footer`]:{flex:"0 0 auto"},[`${_t}-sider`]:{position:"relative",minWidth:0,background:Ve,transition:`all ${Ue}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ut}-menu${Ut}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:_e},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:_e,color:he,lineHeight:`${_e}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${Ue}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:te,insetInlineEnd:-Ge,zIndex:1,width:Ge,height:Ne,color:he,fontSize:Nt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ve,borderStartStartRadius:0,borderStartEndRadius:Ce,borderEndEndRadius:Ce,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ge,borderStartStartRadius:Ce,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce}}}}},qt(Nt)),{"&-rtl":{direction:"rtl"}}),[`${_t}-header`]:{height:te,padding:He,color:Wt,lineHeight:`${te}px`,background:Ln,[`${Ut}-menu`]:{lineHeight:"inherit"}},[`${_t}-footer`]:{padding:Ke,color:oe,fontSize:ne,background:fe},[`${_t}-content`]:{flex:"auto",minHeight:0}}};var se=(0,Mt.Z)("Layout",Nt=>[bt(Nt)],Nt=>{const{colorBgLayout:Ut,controlHeight:_t,controlHeightLG:oe,colorText:he,controlHeightSM:fe,marginXXS:Le,colorTextLightSolid:te,colorBgContainer:He}=Nt,Wt=oe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ut,colorBgTrigger:"#002140",bodyBg:Ut,headerBg:"#001529",headerHeight:_t*2,headerPadding:`0 ${Wt}px`,headerColor:he,footerPadding:`${fe}px ${Wt}px`,footerBg:Ut,siderBg:"#001529",triggerHeight:oe+Le*2,triggerBg:"#002140",triggerColor:te,zeroTriggerWidth:oe,zeroTriggerHeight:oe,lightSiderBg:He,lightTriggerBg:He,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Gt=function(Nt,Ut){var _t={};for(var oe in Nt)Object.prototype.hasOwnProperty.call(Nt,oe)&&Ut.indexOf(oe)<0&&(_t[oe]=Nt[oe]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,oe=Object.getOwnPropertySymbols(Nt);he<oe.length;he++)Ut.indexOf(oe[he])<0&&Object.prototype.propertyIsEnumerable.call(Nt,oe[he])&&(_t[oe[he]]=Nt[oe[he]]);return _t};const Xt=ee.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ct(Nt){let{suffixCls:Ut,tagName:_t,displayName:oe}=Nt;return he=>ee.forwardRef((Le,te)=>ee.createElement(he,Object.assign({ref:te,suffixCls:Ut,tagName:_t},Le)))}const et=ee.forwardRef((Nt,Ut)=>{const{prefixCls:_t,suffixCls:oe,className:he,tagName:fe}=Nt,Le=Gt(Nt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:te}=ee.useContext(Vt.E_),He=te("layout",_t),[Wt,Ke]=se(He),_e=oe?`${He}-${oe}`:He;return Wt(ee.createElement(fe,Object.assign({className:re()(_t||_e,he,Ke),ref:Ut},Le)))}),tt=ee.forwardRef((Nt,Ut)=>{const{direction:_t}=ee.useContext(Vt.E_),[oe,he]=ee.useState([]),{prefixCls:fe,className:Le,rootClassName:te,children:He,hasSider:Wt,tagName:Ke,style:_e}=Nt,Ne=Gt(Nt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ge=(0,Ie.Z)(Ne,["suffixCls"]),{getPrefixCls:Ue,layout:ve}=ee.useContext(Vt.E_),ne=Ue("layout",fe),[Ce,bn]=se(ne),Ln=re()(ne,{[`${ne}-has-sider`]:typeof Wt=="boolean"?Wt:oe.length>0,[`${ne}-rtl`]:_t==="rtl"},ve==null?void 0:ve.className,Le,te,bn),Ve=ee.useMemo(()=>({siderHook:{addSider:Nn=>{he(Zn=>[].concat((0,Lt.Z)(Zn),[Nn]))},removeSider:Nn=>{he(Zn=>Zn.filter(gi=>gi!==Nn))}}}),[]);return Ce(ee.createElement(Xt.Provider,{value:Ve},ee.createElement(Ke,Object.assign({ref:Ut,className:Ln,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),_e)},Ge),He)))}),lt=Ct({tagName:"div",displayName:"Layout"})(tt),rt=Ct({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ht=Ct({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),dt=Ct({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var xt=lt},40875:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{J:function(){return Vt}});var Lt=Ft(59301),ce=Ft(33234),re=Ft(70425),Ie=function(Mt,jt){var qt={};for(var bt in Mt)Object.prototype.hasOwnProperty.call(Mt,bt)&&jt.indexOf(bt)<0&&(qt[bt]=Mt[bt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,bt=Object.getOwnPropertySymbols(Mt);se<bt.length;se++)jt.indexOf(bt[se])<0&&Object.prototype.propertyIsEnumerable.call(Mt,bt[se])&&(qt[bt[se]]=Mt[bt[se]]);return qt};const ee=Lt.createContext(null),Vt=Lt.forwardRef((Mt,jt)=>{const{children:qt}=Mt,bt=Ie(Mt,["children"]),se=Lt.useContext(ee),Gt=Lt.useMemo(()=>Object.assign(Object.assign({},se),bt),[se,bt.prefixCls,bt.mode,bt.selectable]);return Lt.createElement(ee.Provider,{value:Gt},Lt.createElement(ce.BR,null,(0,re.supportNodeRef)(qt)?Lt.cloneElement(qt,{ref:jt}):qt))});Sn.Z=ee},20834:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return Tt}});var Lt=Ft(15285),ce=Ft(59301),re=Ft(45818),Ie=Ft(92310),ee=Ft.n(Ie),Vt=Ft(36355),Mt=function(vt,gt){var ft={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&gt.indexOf(At)<0&&(ft[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,At=Object.getOwnPropertySymbols(vt);le<At.length;le++)gt.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[le])&&(ft[At[le]]=vt[At[le]]);return ft},qt=vt=>{const{prefixCls:gt,className:ft,dashed:At}=vt,le=Mt(vt,["prefixCls","className","dashed"]),{getPrefixCls:xe}=ce.useContext(Vt.E_),ae=xe("menu",gt),ye=ee()({[`${ae}-item-divider-dashed`]:!!At},ft);return ce.createElement(Lt.iz,Object.assign({className:ye},le))},bt=Ft(11592),se=Ft(2738),Gt=Ft(6848),Xt=Ft(92343),et=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=vt=>{var gt;const{className:ft,children:At,icon:le,title:xe,danger:ae}=vt,{prefixCls:ye,firstLevel:Oe,direction:Te,disableMenuItemTitleTooltip:Me,inlineCollapsed:on}=ce.useContext(et),Wn=Di=>{const nr=ce.createElement("span",{className:`${ye}-title-content`},At);return(!le||(0,Xt.l$)(At)&&At.type==="span")&&At&&Di&&Oe&&typeof At=="string"?ce.createElement("div",{className:`${ye}-inline-collapsed-noicon`},At.charAt(0)):nr},{siderCollapsed:sn}=ce.useContext(re.D);let ln=xe;typeof xe=="undefined"?ln=Oe?At:"":xe===!1&&(ln="");const Bn={title:ln};!sn&&!on&&(Bn.title=null,Bn.open=!1);const li=(0,bt.Z)(At).length;let On=ce.createElement(Lt.ck,Object.assign({},(0,se.Z)(vt,["title","icon","danger"]),{className:ee()({[`${ye}-item-danger`]:ae,[`${ye}-item-only-child`]:(le?li+1:li)===1},ft),title:typeof xe=="string"?xe:void 0}),(0,Xt.Tm)(le,{className:ee()((0,Xt.l$)(le)?(gt=le.props)===null||gt===void 0?void 0:gt.className:"",`${ye}-item-icon`)}),Wn(on));return Me||(On=ce.createElement(Gt.Z,Object.assign({},Bn,{placement:Te==="rtl"?"left":"right",overlayClassName:`${ye}-inline-collapsed-tooltip`}),On)),On},ht=vt=>{var gt;const{popupClassName:ft,icon:At,title:le,theme:xe}=vt,ae=ce.useContext(et),{prefixCls:ye,inlineCollapsed:Oe,theme:Te}=ae,Me=(0,Lt.Xl)();let on;if(!At)on=Oe&&!Me.length&&le&&typeof le=="string"?ce.createElement("div",{className:`${ye}-inline-collapsed-noicon`},le.charAt(0)):ce.createElement("span",{className:`${ye}-title-content`},le);else{const sn=(0,Xt.l$)(le)&&le.type==="span";on=ce.createElement(ce.Fragment,null,(0,Xt.Tm)(At,{className:ee()((0,Xt.l$)(At)?(gt=At.props)===null||gt===void 0?void 0:gt.className:"",`${ye}-item-icon`)}),sn?le:ce.createElement("span",{className:`${ye}-title-content`},le))}const Wn=ce.useMemo(()=>Object.assign(Object.assign({},ae),{firstLevel:!1}),[ae]);return ce.createElement(et.Provider,{value:Wn},ce.createElement(Lt.Wd,Object.assign({},(0,se.Z)(vt,["icon"]),{title:on,popupClassName:ee()(ye,ft,`${ye}-${xe||Te}`)})))},dt=Ft(18785),xt=Ft(70425),Nt=Ft(62892),Ut=Ft(40875),_t=function(vt,gt){var ft={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&gt.indexOf(At)<0&&(ft[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,At=Object.getOwnPropertySymbols(vt);le<At.length;le++)gt.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[le])&&(ft[At[le]]=vt[At[le]]);return ft};function oe(vt){return(vt||[]).map((gt,ft)=>{if(gt&&typeof gt=="object"){const At=gt,{label:le,children:xe,key:ae,type:ye}=At,Oe=_t(At,["label","children","key","type"]),Te=ae!=null?ae:`tmp-${ft}`;return xe||ye==="group"?ye==="group"?ce.createElement(Lt.BW,Object.assign({key:Te},Oe,{title:le}),oe(xe)):ce.createElement(ht,Object.assign({key:Te},Oe,{title:le}),oe(xe)):ye==="divider"?ce.createElement(qt,Object.assign({key:Te},Oe)):ce.createElement(lt,Object.assign({key:Te},Oe),le)}return null}).filter(gt=>gt)}function he(vt){return ce.useMemo(()=>vt&&oe(vt),[vt])}var fe=Ft(64993),Le=Ft(17313),te=Ft(8378),He=Ft(13826),Wt=Ft(29878),Ke=Ft(83116),_e=Ft(37613),Ge=vt=>{const{componentCls:gt,motionDurationSlow:ft,horizontalLineHeight:At,colorSplit:le,lineWidth:xe,lineType:ae,itemPaddingInline:ye}=vt;return{[`${gt}-horizontal`]:{lineHeight:At,border:0,borderBottom:`${xe}px ${ae} ${le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${gt}-item, ${gt}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ye},[`> ${gt}-item:hover,
> ${gt}-item-active,
> ${gt}-submenu ${gt}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${gt}-item, ${gt}-submenu-title`]:{transition:[`border-color ${ft}`,`background ${ft}`].join(",")},[`${gt}-submenu-arrow`]:{display:"none"}}}},ve=vt=>{let{componentCls:gt,menuArrowOffset:ft}=vt;return{[`${gt}-rtl`]:{direction:"rtl"},[`${gt}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${gt}-rtl${gt}-vertical,
${gt}-submenu-rtl ${gt}-vertical`]:{[`${gt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ft})`},"&::after":{transform:`rotate(45deg) translateY(${ft})`}}}}};const ne=vt=>Object.assign({},(0,Le.oN)(vt));var bn=(vt,gt)=>{const{componentCls:ft,itemColor:At,itemSelectedColor:le,groupTitleColor:xe,itemBg:ae,subMenuItemBg:ye,itemSelectedBg:Oe,activeBarHeight:Te,activeBarWidth:Me,activeBarBorderWidth:on,motionDurationSlow:Wn,motionEaseInOut:sn,motionEaseOut:ln,itemPaddingInline:Bn,motionDurationMid:li,itemHoverColor:On,lineType:Di,colorSplit:nr,itemDisabledColor:Xi,dangerItemColor:Mr,dangerItemHoverColor:br,dangerItemSelectedColor:eo,dangerItemActiveBg:Yr,dangerItemSelectedBg:qr,itemHoverBg:Ir,itemActiveBg:Xr,menuSubMenuBg:oo,horizontalItemSelectedColor:jo,horizontalItemSelectedBg:ds,horizontalItemBorderRadius:no,horizontalItemHoverBg:Is,popupBg:xo}=vt;return{[`${ft}-${gt}, ${ft}-${gt} > ${ft}`]:{color:At,background:ae,[`&${ft}-root:focus-visible`]:Object.assign({},ne(vt)),[`${ft}-item-group-title`]:{color:xe},[`${ft}-submenu-selected`]:{[`> ${ft}-submenu-title`]:{color:le}},[`${ft}-item-disabled, ${ft}-submenu-disabled`]:{color:`${Xi} !important`},[`${ft}-item:not(${ft}-item-selected):not(${ft}-submenu-selected)`]:{[`&:hover, > ${ft}-submenu-title:hover`]:{color:On}},[`&:not(${ft}-horizontal)`]:{[`${ft}-item:not(${ft}-item-selected)`]:{"&:hover":{backgroundColor:Ir},"&:active":{backgroundColor:Xr}},[`${ft}-submenu-title`]:{"&:hover":{backgroundColor:Ir},"&:active":{backgroundColor:Xr}}},[`${ft}-item-danger`]:{color:Mr,[`&${ft}-item:hover`]:{[`&:not(${ft}-item-selected):not(${ft}-submenu-selected)`]:{color:br}},[`&${ft}-item:active`]:{background:Yr}},[`${ft}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ft}-item-selected`]:{color:le,[`&${ft}-item-danger`]:{color:eo},"a, a:hover":{color:"inherit"}},[`& ${ft}-item-selected`]:{backgroundColor:Oe,[`&${ft}-item-danger`]:{backgroundColor:qr}},[`${ft}-item, ${ft}-submenu-title`]:{[`&:not(${ft}-item-disabled):focus-visible`]:Object.assign({},ne(vt))},[`&${ft}-submenu > ${ft}`]:{backgroundColor:oo},[`&${ft}-popup > ${ft}`]:{backgroundColor:xo},[`&${ft}-horizontal`]:Object.assign(Object.assign({},gt==="dark"?{borderBottom:0}:{}),{[`> ${ft}-item, > ${ft}-submenu`]:{top:on,marginTop:-on,marginBottom:0,borderRadius:no,"&::after":{position:"absolute",insetInline:Bn,bottom:0,borderBottom:`${Te}px solid transparent`,transition:`border-color ${Wn} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:Is,"&::after":{borderBottomWidth:Te,borderBottomColor:jo}},"&-selected":{color:jo,backgroundColor:ds,"&:hover":{backgroundColor:ds},"&::after":{borderBottomWidth:Te,borderBottomColor:jo}}}}),[`&${ft}-root`]:{[`&${ft}-inline, &${ft}-vertical`]:{borderInlineEnd:`${on}px ${Di} ${nr}`}},[`&${ft}-inline`]:{[`${ft}-sub${ft}-inline`]:{background:ye},[`${ft}-item, ${ft}-submenu-title`]:on&&Me?{width:`calc(100% + ${on}px)`}:{},[`${ft}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Me}px solid ${le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${li} ${ln}`,`opacity ${li} ${ln}`].join(","),content:'""'},[`&${ft}-item-danger`]:{"&::after":{borderInlineEndColor:eo}}},[`${ft}-selected, ${ft}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${li} ${sn}`,`opacity ${li} ${sn}`].join(",")}}}}}};const Ln=vt=>{const{componentCls:gt,itemHeight:ft,itemMarginInline:At,padding:le,menuArrowSize:xe,marginXS:ae,itemMarginBlock:ye}=vt,Oe=le+xe+ae;return{[`${gt}-item`]:{position:"relative",overflow:"hidden"},[`${gt}-item, ${gt}-submenu-title`]:{height:ft,lineHeight:`${ft}px`,paddingInline:le,overflow:"hidden",textOverflow:"ellipsis",marginInline:At,marginBlock:ye,width:`calc(100% - ${At*2}px)`},[`> ${gt}-item,
> ${gt}-submenu > ${gt}-submenu-title`]:{height:ft,lineHeight:`${ft}px`},[`${gt}-item-group-list ${gt}-submenu-title,
${gt}-submenu-title`]:{paddingInlineEnd:Oe}}};var Nn=vt=>{const{componentCls:gt,iconCls:ft,itemHeight:At,colorTextLightSolid:le,dropdownWidth:xe,controlHeightLG:ae,motionDurationMid:ye,motionEaseOut:Oe,paddingXL:Te,itemMarginInline:Me,fontSizeLG:on,motionDurationSlow:Wn,paddingXS:sn,boxShadowSecondary:ln,collapsedWidth:Bn,collapsedIconSize:li}=vt,On={height:At,lineHeight:`${At}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[gt]:{"&-inline, &-vertical":Object.assign({[`&${gt}-root`]:{boxShadow:"none"}},Ln(vt))},[`${gt}-submenu-popup`]:{[`${gt}-vertical`]:Object.assign(Object.assign({},Ln(vt)),{boxShadow:ln})}},{[`${gt}-submenu-popup ${gt}-vertical${gt}-sub`]:{minWidth:xe,maxHeight:`calc(100vh - ${ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${gt}-inline`]:{width:"100%",[`&${gt}-root`]:{[`${gt}-item, ${gt}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Wn}`,`background ${Wn}`,`padding ${ye} ${Oe}`].join(","),[`> ${gt}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${gt}-sub${gt}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${gt}-submenu > ${gt}-submenu-title`]:On,[`& ${gt}-item-group-title`]:{paddingInlineStart:Te}},[`${gt}-item`]:On}},{[`${gt}-inline-collapsed`]:{width:Bn,[`&${gt}-root`]:{[`${gt}-item, ${gt}-submenu ${gt}-submenu-title`]:{[`> ${gt}-inline-collapsed-noicon`]:{fontSize:on,textAlign:"center"}}},[`> ${gt}-item,
> ${gt}-item-group > ${gt}-item-group-list > ${gt}-item,
> ${gt}-item-group > ${gt}-item-group-list > ${gt}-submenu > ${gt}-submenu-title,
> ${gt}-submenu > ${gt}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${on/2}px - ${Me}px)`,textOverflow:"clip",[`
${gt}-submenu-arrow,
${gt}-submenu-expand-icon
`]:{opacity:0},[`${gt}-item-icon, ${ft}`]:{margin:0,fontSize:li,lineHeight:`${At}px`,"+ span":{display:"inline-block",opacity:0}}},[`${gt}-item-icon, ${ft}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${gt}-item-icon, ${ft}`]:{display:"none"},"a, a:hover":{color:le}},[`${gt}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:sn})}}]};const Zn=vt=>{const{componentCls:gt,motionDurationSlow:ft,motionDurationMid:At,motionEaseInOut:le,motionEaseOut:xe,iconCls:ae,iconSize:ye,iconMarginInlineEnd:Oe}=vt;return{[`${gt}-item, ${gt}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ft}`,`background ${ft}`,`padding ${ft} ${le}`].join(","),[`${gt}-item-icon, ${ae}`]:{minWidth:ye,fontSize:ye,transition:[`font-size ${At} ${xe}`,`margin ${ft} ${le}`,`color ${ft}`].join(","),"+ span":{marginInlineStart:Oe,opacity:1,transition:[`opacity ${ft} ${le}`,`margin ${ft}`,`color ${ft}`].join(",")}},[`${gt}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${gt}-item-only-child`]:{[`> ${ae}, > ${gt}-item-icon`]:{marginInlineEnd:0}}},[`${gt}-item-disabled, ${gt}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${gt}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gi=vt=>{const{componentCls:gt,motionDurationSlow:ft,motionEaseInOut:At,borderRadius:le,menuArrowSize:xe,menuArrowOffset:ae}=vt;return{[`${gt}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:vt.margin,width:xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ft} ${At}, opacity ${ft}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xe*.6,height:xe*.15,backgroundColor:"currentcolor",borderRadius:le,transition:[`background ${ft} ${At}`,`transform ${ft} ${At}`,`top ${ft} ${At}`,`color ${ft} ${At}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ae})`},"&::after":{transform:`rotate(-45deg) translateY(${ae})`}}}}},Kn=vt=>{const{antCls:gt,componentCls:ft,fontSize:At,motionDurationSlow:le,motionDurationMid:xe,motionEaseInOut:ae,paddingXS:ye,padding:Oe,colorSplit:Te,lineWidth:Me,zIndexPopup:on,borderRadiusLG:Wn,subMenuItemBorderRadius:sn,menuArrowSize:ln,menuArrowOffset:Bn,lineType:li,menuPanelMaskInset:On,groupTitleLineHeight:Di,groupTitleFontSize:nr}=vt;return[{"":{[`${ft}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${ft}-submenu-hidden`]:{display:"none"}},{[ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(vt)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:At,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ft}-item`]:{flex:"none"}},[`${ft}-item, ${ft}-submenu, ${ft}-submenu-title`]:{borderRadius:vt.itemBorderRadius},[`${ft}-item-group-title`]:{padding:`${ye}px ${Oe}px`,fontSize:nr,lineHeight:Di,transition:`all ${le}`},[`&-horizontal ${ft}-submenu`]:{transition:[`border-color ${le} ${ae}`,`background ${le} ${ae}`].join(",")},[`${ft}-submenu, ${ft}-submenu-inline`]:{transition:[`border-color ${le} ${ae}`,`background ${le} ${ae}`,`padding ${xe} ${ae}`].join(",")},[`${ft}-submenu ${ft}-sub`]:{cursor:"initial",transition:[`background ${le} ${ae}`,`padding ${le} ${ae}`].join(",")},[`${ft}-title-content`]:{transition:`color ${le}`},[`${ft}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ft}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Te,borderStyle:li,borderWidth:0,borderTopWidth:Me,marginBlock:Me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Zn(vt)),{[`${ft}-item-group`]:{[`${ft}-item-group-list`]:{margin:0,padding:0,[`${ft}-item, ${ft}-submenu-title`]:{paddingInline:`${At*2}px ${Oe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:on,borderRadius:Wn,boxShadow:"none",transformOrigin:"0 0",[`&${ft}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${On}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:On},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:vt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:vt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:vt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:vt.paddingXS},[`> ${ft}`]:Object.assign(Object.assign(Object.assign({borderRadius:Wn},Zn(vt)),gi(vt)),{[`${ft}-item, ${ft}-submenu > ${ft}-submenu-title`]:{borderRadius:sn},[`${ft}-submenu-title::after`]:{transition:`transform ${le} ${ae}`}})}}),gi(vt)),{[`&-inline-collapsed ${ft}-submenu-arrow,
&-inline ${ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bn})`},"&::after":{transform:`rotate(45deg) translateX(-${Bn})`}},[`${ft}-submenu-open${ft}-submenu-inline > ${ft}-submenu-title > ${ft}-submenu-arrow`]:{transform:`translateY(-${ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bn})`},"&::before":{transform:`rotate(45deg) translateX(${Bn})`}}})},{[`${gt}-layout-header`]:{[ft]:{lineHeight:"inherit"}}}]};var Pi=(vt,gt)=>(0,Ke.Z)("Menu",At=>{if(gt===!1)return[];const{colorBgElevated:le,colorPrimary:xe,colorTextLightSolid:ae,controlHeightLG:ye,fontSize:Oe,darkItemColor:Te,darkDangerItemColor:Me,darkItemBg:on,darkSubMenuItemBg:Wn,darkItemSelectedColor:sn,darkItemSelectedBg:ln,darkDangerItemSelectedBg:Bn,darkItemHoverBg:li,darkGroupTitleColor:On,darkItemHoverColor:Di,darkItemDisabledColor:nr,darkDangerItemHoverColor:Xi,darkDangerItemSelectedColor:Mr,darkDangerItemActiveBg:br}=At,eo=Oe/7*5,Yr=(0,_e.TS)(At,{menuArrowSize:eo,menuHorizontalHeight:ye*1.15,menuArrowOffset:`${eo*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:le}),qr=(0,_e.TS)(Yr,{itemColor:Te,itemHoverColor:Di,groupTitleColor:On,itemSelectedColor:sn,itemBg:on,popupBg:on,subMenuItemBg:Wn,itemActiveBg:"transparent",itemSelectedBg:ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:li,itemDisabledColor:nr,dangerItemColor:Me,dangerItemHoverColor:Xi,dangerItemSelectedColor:Mr,dangerItemActiveBg:br,dangerItemSelectedBg:Bn,menuSubMenuBg:Wn,horizontalItemSelectedColor:ae,horizontalItemSelectedBg:xe});return[Kn(Yr),Ge(Yr),Nn(Yr),bn(Yr,"light"),bn(qr,"dark"),ve(Yr),(0,te.Z)(Yr),(0,He.oN)(Yr,"slide-up"),(0,He.oN)(Yr,"slide-down"),(0,Wt._y)(Yr,"zoom-big")]},At=>{const{colorPrimary:le,colorError:xe,colorTextDisabled:ae,colorErrorBg:ye,colorText:Oe,colorTextDescription:Te,colorBgContainer:Me,colorFillAlter:on,colorFillContent:Wn,lineWidth:sn,lineWidthBold:ln,controlItemBgActive:Bn,colorBgTextHover:li,controlHeightLG:On,lineHeight:Di,colorBgElevated:nr,marginXXS:Xi,padding:Mr,fontSize:br,controlHeightSM:eo,fontSizeLG:Yr,colorTextLightSolid:qr,colorErrorHover:Ir}=At,Xr=new fe.C(qr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:At.zIndexPopupBase+50,radiusItem:At.borderRadiusLG,itemBorderRadius:At.borderRadiusLG,radiusSubMenuItem:At.borderRadiusSM,subMenuItemBorderRadius:At.borderRadiusSM,colorItemText:Oe,itemColor:Oe,colorItemTextHover:Oe,itemHoverColor:Oe,colorItemTextHoverHorizontal:le,horizontalItemHoverColor:le,colorGroupTitle:Te,groupTitleColor:Te,colorItemTextSelected:le,itemSelectedColor:le,colorItemTextSelectedHorizontal:le,horizontalItemSelectedColor:le,colorItemBg:Me,itemBg:Me,colorItemBgHover:li,itemHoverBg:li,colorItemBgActive:Wn,itemActiveBg:Bn,colorSubItemBg:on,subMenuItemBg:on,colorItemBgSelected:Bn,itemSelectedBg:Bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:sn,activeBarBorderWidth:sn,colorItemTextDisabled:ae,itemDisabledColor:ae,colorDangerItemText:xe,dangerItemColor:xe,colorDangerItemTextHover:xe,dangerItemHoverColor:xe,colorDangerItemTextSelected:xe,dangerItemSelectedColor:xe,colorDangerItemBgActive:ye,dangerItemActiveBg:ye,colorDangerItemBgSelected:ye,dangerItemSelectedBg:ye,itemMarginInline:At.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:On,groupTitleLineHeight:Di,collapsedWidth:On*2,popupBg:nr,itemMarginBlock:Xi,itemPaddingInline:Mr,horizontalLineHeight:`${On*1.15}px`,iconSize:br,iconMarginInlineEnd:eo-br,collapsedIconSize:Yr,groupTitleFontSize:br,darkItemDisabledColor:new fe.C(qr).setAlpha(.25).toRgbString(),darkItemColor:Xr,darkDangerItemColor:xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:qr,darkItemSelectedBg:le,darkDangerItemSelectedBg:xe,darkItemHoverBg:"transparent",darkGroupTitleColor:Xr,darkItemHoverColor:qr,darkDangerItemHoverColor:Ir,darkDangerItemSelectedColor:qr,darkDangerItemActiveBg:xe}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(vt),tn=function(vt,gt){var ft={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&gt.indexOf(At)<0&&(ft[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,At=Object.getOwnPropertySymbols(vt);le<At.length;le++)gt.indexOf(At[le])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[le])&&(ft[At[le]]=vt[At[le]]);return ft},ji=(0,ce.forwardRef)((vt,gt)=>{var ft,At;const le=ce.useContext(Ut.Z),xe=le||{},{getPrefixCls:ae,getPopupContainer:ye,direction:Oe,menu:Te}=ce.useContext(Vt.E_),Me=ae(),{prefixCls:on,className:Wn,style:sn,theme:ln="light",expandIcon:Bn,_internalDisableMenuItemTitleTooltip:li,inlineCollapsed:On,siderCollapsed:Di,items:nr,children:Xi,rootClassName:Mr,mode:br,selectable:eo,onClick:Yr,overflowedIndicatorPopupClassName:qr}=vt,Ir=tn(vt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xr=(0,se.Z)(Ir,["collapsedWidth"]),oo=he(nr)||Xi;(ft=xe.validator)===null||ft===void 0||ft.call(xe,{mode:br});const jo=(0,xt.useEvent)(function(){var Ws;Yr==null||Yr.apply(void 0,arguments),(Ws=xe.onClick)===null||Ws===void 0||Ws.call(xe)}),ds=xe.mode||br,no=eo!=null?eo:xe.selectable,Is=ce.useMemo(()=>Di!==void 0?Di:On,[On,Di]),xo={horizontal:{motionName:`${Me}-slide-up`},inline:(0,Nt.Z)(Me),other:{motionName:`${Me}-zoom-big`}},$t=ae("menu",on||xe.prefixCls),[ni,gs]=Pi($t,!le),ua=ee()(`${$t}-${ln}`,Te==null?void 0:Te.className,Wn);let Gs;if(typeof Bn=="function")Gs=Bn;else if(Bn===null||Bn===!1)Gs=null;else if(xe.expandIcon===null||xe.expandIcon===!1)Gs=null;else{const Ws=Bn!=null?Bn:xe.expandIcon;Gs=(0,Xt.Tm)(Ws,{className:ee()(`${$t}-submenu-expand-icon`,(0,Xt.l$)(Ws)?(At=Ws.props)===null||At===void 0?void 0:At.className:"")})}const ha=ce.useMemo(()=>({prefixCls:$t,inlineCollapsed:Is||!1,direction:Oe,firstLevel:!0,theme:ln,mode:ds,disableMenuItemTitleTooltip:li}),[$t,Is,Oe,li,ln]);return ni(ce.createElement(Ut.Z.Provider,{value:null},ce.createElement(et.Provider,{value:ha},ce.createElement(Lt.ZP,Object.assign({getPopupContainer:ye,overflowedIndicator:ce.createElement(dt.Z,null),overflowedIndicatorPopupClassName:ee()($t,`${$t}-${ln}`,qr),mode:ds,selectable:no,onClick:jo},Xr,{inlineCollapsed:Is,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),sn),className:ua,prefixCls:$t,direction:Oe,defaultMotions:xo,expandIcon:Gs,ref:gt,rootClassName:ee()(Mr,gs)}),oo))))});const Ot=(0,ce.forwardRef)((vt,gt)=>{const ft=(0,ce.useRef)(null),At=ce.useContext(re.D);return(0,ce.useImperativeHandle)(gt,()=>({menu:ft.current,focus:le=>{var xe;(xe=ft.current)===null||xe===void 0||xe.focus(le)}})),ce.createElement(ji,Object.assign({ref:ft},vt,At))});Ot.Item=lt,Ot.SubMenu=ht,Ot.Divider=qt,Ot.ItemGroup=Lt.BW;var Tt=Ot},58421:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return xe}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Ie=re,ee=Ft(7657),Vt=function(ye,Oe){return ce.createElement(ee.Z,(0,Lt.Z)({},ye,{ref:Oe,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt,qt=Ft(49198),bt=Ft(33853),se=Ft(38819),Gt=Ft(92310),Xt=Ft.n(Gt),Ct=Ft(400),et=Ft(33708),tt=Ft(6909),lt=Ft(4771),rt=Ft(9427),ht=Ft(25440),dt=Ft(26112),xt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Nt=xt,Ut=Ft(91735),_t=function(ae){(0,rt.Z)(Oe,ae);var ye=(0,ht.Z)(Oe);function Oe(){var Te;(0,tt.Z)(this,Oe);for(var Me=arguments.length,on=new Array(Me),Wn=0;Wn<Me;Wn++)on[Wn]=arguments[Wn];return Te=ye.call.apply(ye,[this].concat(on)),Te.state={goInputText:""},Te.getValidValue=function(){var sn=Te.state.goInputText;return!sn||Number.isNaN(sn)?void 0:Number(sn)},Te.buildOptionText=function(sn){return"".concat(sn," ").concat(Te.props.locale.items_per_page)},Te.changeSize=function(sn){Te.props.changeSize(Number(sn))},Te.handleChange=function(sn){Te.setState({goInputText:sn.target.value})},Te.handleBlur=function(sn){var ln=Te.props,Bn=ln.goButton,li=ln.quickGo,On=ln.rootPrefixCls,Di=Te.state.goInputText;Bn||Di===""||(Te.setState({goInputText:""}),!(sn.relatedTarget&&(sn.relatedTarget.className.indexOf("".concat(On,"-item-link"))>=0||sn.relatedTarget.className.indexOf("".concat(On,"-item"))>=0))&&li(Te.getValidValue()))},Te.go=function(sn){var ln=Te.state.goInputText;ln!==""&&(sn.keyCode===Nt.ENTER||sn.type==="click")&&(Te.setState({goInputText:""}),Te.props.quickGo(Te.getValidValue()))},Te}return(0,lt.Z)(Oe,[{key:"getPageSizeOptions",value:function(){var Me=this.props,on=Me.pageSize,Wn=Me.pageSizeOptions;return Wn.some(function(sn){return sn.toString()===on.toString()})?Wn:Wn.concat([on.toString()]).sort(function(sn,ln){var Bn=Number.isNaN(Number(sn))?0:Number(sn),li=Number.isNaN(Number(ln))?0:Number(ln);return Bn-li})}},{key:"render",value:function(){var Me=this,on=this.props,Wn=on.pageSize,sn=on.locale,ln=on.rootPrefixCls,Bn=on.changeSize,li=on.quickGo,On=on.goButton,Di=on.selectComponentClass,nr=on.buildOptionText,Xi=on.selectPrefixCls,Mr=on.disabled,br=this.state.goInputText,eo="".concat(ln,"-options"),Yr=Di,qr=null,Ir=null,Xr=null;if(!Bn&&!li)return null;var oo=this.getPageSizeOptions();if(Bn&&Yr){var jo=oo.map(function(ds,no){return ce.createElement(Yr.Option,{key:no,value:ds.toString()},(nr||Me.buildOptionText)(ds))});qr=ce.createElement(Yr,{disabled:Mr,prefixCls:Xi,showSearch:!1,className:"".concat(eo,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Wn||oo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(no){return no.parentNode},"aria-label":sn.page_size,defaultOpen:!1},jo)}return li&&(On&&(Xr=typeof On=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Mr,className:"".concat(eo,"-quick-jumper-button")},sn.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},On)),Ir=ce.createElement("div",{className:"".concat(eo,"-quick-jumper")},sn.jump_to,ce.createElement("input",{disabled:Mr,type:"text",value:br,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":sn.page}),sn.page,Xr)),ce.createElement("li",{className:"".concat(eo)},qr,Ir)}}]),Oe}(ce.Component);_t.defaultProps={pageSizeOptions:["10","20","50","100"]};var oe=_t,he=function(ye){var Oe,Te=ye.rootPrefixCls,Me=ye.page,on=ye.active,Wn=ye.className,sn=ye.showTitle,ln=ye.onClick,Bn=ye.onKeyPress,li=ye.itemRender,On="".concat(Te,"-item"),Di=Xt()(On,"".concat(On,"-").concat(Me),(Oe={},(0,Ct.Z)(Oe,"".concat(On,"-active"),on),(0,Ct.Z)(Oe,"".concat(On,"-disabled"),!Me),(0,Ct.Z)(Oe,ye.className,Wn),Oe)),nr=function(){ln(Me)},Xi=function(eo){Bn(eo,ln,Me)},Mr=li(Me,"page",ce.createElement("a",{rel:"nofollow"},Me));return Mr?ce.createElement("li",{title:sn?Me.toString():null,className:Di,onClick:nr,onKeyPress:Xi,tabIndex:0},Mr):null},fe=he;function Le(){}function te(ae){var ye=Number(ae);return typeof ye=="number"&&!Number.isNaN(ye)&&isFinite(ye)&&Math.floor(ye)===ye}var He=function(ye,Oe,Te){return Te};function Wt(ae,ye,Oe){var Te=typeof ae=="undefined"?ye.pageSize:ae;return Math.floor((Oe.total-1)/Te)+1}var Ke=function(ae){(0,rt.Z)(Oe,ae);var ye=(0,ht.Z)(Oe);function Oe(Te){var Me;(0,tt.Z)(this,Oe),Me=ye.call(this,Te),Me.paginationNode=ce.createRef(),Me.getJumpPrevPage=function(){return Math.max(1,Me.state.current-(Me.props.showLessItems?3:5))},Me.getJumpNextPage=function(){return Math.min(Wt(void 0,Me.state,Me.props),Me.state.current+(Me.props.showLessItems?3:5))},Me.getItemIcon=function(Bn,li){var On=Me.props.prefixCls,Di=Bn||ce.createElement("button",{type:"button","aria-label":li,className:"".concat(On,"-item-link")});return typeof Bn=="function"&&(Di=ce.createElement(Bn,(0,et.Z)({},Me.props))),Di},Me.isValid=function(Bn){var li=Me.props.total;return te(Bn)&&Bn!==Me.state.current&&te(li)&&li>0},Me.shouldDisplayQuickJumper=function(){var Bn=Me.props,li=Bn.showQuickJumper,On=Bn.total,Di=Me.state.pageSize;return On<=Di?!1:li},Me.handleKeyDown=function(Bn){(Bn.keyCode===Nt.ARROW_UP||Bn.keyCode===Nt.ARROW_DOWN)&&Bn.preventDefault()},Me.handleKeyUp=function(Bn){var li=Me.getValidValue(Bn),On=Me.state.currentInputValue;li!==On&&Me.setState({currentInputValue:li}),Bn.keyCode===Nt.ENTER?Me.handleChange(li):Bn.keyCode===Nt.ARROW_UP?Me.handleChange(li-1):Bn.keyCode===Nt.ARROW_DOWN&&Me.handleChange(li+1)},Me.handleBlur=function(Bn){var li=Me.getValidValue(Bn);Me.handleChange(li)},Me.changePageSize=function(Bn){var li=Me.state.current,On=Wt(Bn,Me.state,Me.props);li=li>On?On:li,On===0&&(li=Me.state.current),typeof Bn=="number"&&("pageSize"in Me.props||Me.setState({pageSize:Bn}),"current"in Me.props||Me.setState({current:li,currentInputValue:li})),Me.props.onShowSizeChange(li,Bn),"onChange"in Me.props&&Me.props.onChange&&Me.props.onChange(li,Bn)},Me.handleChange=function(Bn){var li=Me.props,On=li.disabled,Di=li.onChange,nr=Me.state,Xi=nr.pageSize,Mr=nr.current,br=nr.currentInputValue;if(Me.isValid(Bn)&&!On){var eo=Wt(void 0,Me.state,Me.props),Yr=Bn;return Bn>eo?Yr=eo:Bn<1&&(Yr=1),"current"in Me.props||Me.setState({current:Yr}),Yr!==br&&Me.setState({currentInputValue:Yr}),Di(Yr,Xi),Yr}return Mr},Me.prev=function(){Me.hasPrev()&&Me.handleChange(Me.state.current-1)},Me.next=function(){Me.hasNext()&&Me.handleChange(Me.state.current+1)},Me.jumpPrev=function(){Me.handleChange(Me.getJumpPrevPage())},Me.jumpNext=function(){Me.handleChange(Me.getJumpNextPage())},Me.hasPrev=function(){return Me.state.current>1},Me.hasNext=function(){return Me.state.current<Wt(void 0,Me.state,Me.props)},Me.runIfEnter=function(Bn,li){if(Bn.key==="Enter"||Bn.charCode===13){for(var On=arguments.length,Di=new Array(On>2?On-2:0),nr=2;nr<On;nr++)Di[nr-2]=arguments[nr];li.apply(void 0,Di)}},Me.runIfEnterPrev=function(Bn){Me.runIfEnter(Bn,Me.prev)},Me.runIfEnterNext=function(Bn){Me.runIfEnter(Bn,Me.next)},Me.runIfEnterJumpPrev=function(Bn){Me.runIfEnter(Bn,Me.jumpPrev)},Me.runIfEnterJumpNext=function(Bn){Me.runIfEnter(Bn,Me.jumpNext)},Me.handleGoTO=function(Bn){(Bn.keyCode===Nt.ENTER||Bn.type==="click")&&Me.handleChange(Me.state.currentInputValue)},Me.renderPrev=function(Bn){var li=Me.props,On=li.prevIcon,Di=li.itemRender,nr=Di(Bn,"prev",Me.getItemIcon(On,"prev page")),Xi=!Me.hasPrev();return(0,ce.isValidElement)(nr)?(0,ce.cloneElement)(nr,{disabled:Xi}):nr},Me.renderNext=function(Bn){var li=Me.props,On=li.nextIcon,Di=li.itemRender,nr=Di(Bn,"next",Me.getItemIcon(On,"next page")),Xi=!Me.hasNext();return(0,ce.isValidElement)(nr)?(0,ce.cloneElement)(nr,{disabled:Xi}):nr};var on=Te.onChange!==Le,Wn="current"in Te;Wn&&!on&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var sn=Te.defaultCurrent;"current"in Te&&(sn=Te.current);var ln=Te.defaultPageSize;return"pageSize"in Te&&(ln=Te.pageSize),sn=Math.min(sn,Wt(ln,void 0,Te)),Me.state={current:sn,currentInputValue:sn,pageSize:ln},Me}return(0,lt.Z)(Oe,[{key:"componentDidUpdate",value:function(Me,on){var Wn=this.props.prefixCls;if(on.current!==this.state.current&&this.paginationNode.current){var sn=this.paginationNode.current.querySelector(".".concat(Wn,"-item-").concat(on.current));if(sn&&document.activeElement===sn){var ln;sn==null||(ln=sn.blur)===null||ln===void 0||ln.call(sn)}}}},{key:"getValidValue",value:function(Me){var on=Me.target.value,Wn=Wt(void 0,this.state,this.props),sn=this.state.currentInputValue,ln;return on===""?ln=on:Number.isNaN(Number(on))?ln=sn:on>=Wn?ln=Wn:ln=Number(on),ln}},{key:"getShowSizeChanger",value:function(){var Me=this.props,on=Me.showSizeChanger,Wn=Me.total,sn=Me.totalBoundaryShowSizeChanger;return typeof on!="undefined"?on:Wn>sn}},{key:"render",value:function(){var Me=this.props,on=Me.prefixCls,Wn=Me.className,sn=Me.style,ln=Me.disabled,Bn=Me.hideOnSinglePage,li=Me.total,On=Me.locale,Di=Me.showQuickJumper,nr=Me.showLessItems,Xi=Me.showTitle,Mr=Me.showTotal,br=Me.simple,eo=Me.itemRender,Yr=Me.showPrevNextJumpers,qr=Me.jumpPrevIcon,Ir=Me.jumpNextIcon,Xr=Me.selectComponentClass,oo=Me.selectPrefixCls,jo=Me.pageSizeOptions,ds=this.state,no=ds.current,Is=ds.pageSize,xo=ds.currentInputValue;if(Bn===!0&&li<=Is)return null;var $t=Wt(void 0,this.state,this.props),ni=[],gs=null,ua=null,Gs=null,ha=null,Ws=null,Hr=Di&&Di.goButton,Xn=nr?1:2,Hn=no-1>0?no-1:0,Mn=no+1<$t?no+1:$t,qe=(0,dt.Z)(this.props,{aria:!0,data:!0}),pi=Mr&&ce.createElement("li",{className:"".concat(on,"-total-text")},Mr(li,[li===0?0:(no-1)*Is+1,no*Is>li?li:no*Is]));if(br){Hr&&(typeof Hr=="boolean"?Ws=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},On.jump_to_confirm):Ws=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Hr),Ws=ce.createElement("li",{title:Xi?"".concat(On.jump_to).concat(no,"/").concat($t):null,className:"".concat(on,"-simple-pager")},Ws));var xi=this.renderPrev(Hn);return ce.createElement("ul",(0,Lt.Z)({className:Xt()(on,"".concat(on,"-simple"),(0,Ct.Z)({},"".concat(on,"-disabled"),ln),Wn),style:sn,ref:this.paginationNode},qe),pi,xi?ce.createElement("li",{title:Xi?On.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Xt()("".concat(on,"-prev"),(0,Ct.Z)({},"".concat(on,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},xi):null,ce.createElement("li",{title:Xi?"".concat(no,"/").concat($t):null,className:"".concat(on,"-simple-pager")},ce.createElement("input",{type:"text",value:xo,disabled:ln,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(on,"-slash")},"/"),$t),ce.createElement("li",{title:Xi?On.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Xt()("".concat(on,"-next"),(0,Ct.Z)({},"".concat(on,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Mn)),Ws)}if($t<=3+Xn*2){var wn={locale:On,rootPrefixCls:on,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Xi,itemRender:eo};$t||ni.push(ce.createElement(fe,(0,Lt.Z)({},wn,{key:"noPager",page:1,className:"".concat(on,"-item-disabled")})));for(var Ee=1;Ee<=$t;Ee+=1){var Cn=no===Ee;ni.push(ce.createElement(fe,(0,Lt.Z)({},wn,{key:Ee,page:Ee,active:Cn})))}}else{var Gn=nr?On.prev_3:On.prev_5,Ei=nr?On.next_3:On.next_5,ei=eo(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(qr,"prev page")),gn=eo(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ir,"next page"));Yr&&(gs=ei?ce.createElement("li",{title:Xi?Gn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Xt()("".concat(on,"-jump-prev"),(0,Ct.Z)({},"".concat(on,"-jump-prev-custom-icon"),!!qr))},ei):null,ua=gn?ce.createElement("li",{title:Xi?Ei:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Xt()("".concat(on,"-jump-next"),(0,Ct.Z)({},"".concat(on,"-jump-next-custom-icon"),!!Ir))},gn):null),ha=ce.createElement(fe,{locale:On,last:!0,rootPrefixCls:on,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$t,page:$t,active:!1,showTitle:Xi,itemRender:eo}),Gs=ce.createElement(fe,{locale:On,rootPrefixCls:on,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Xi,itemRender:eo});var di=Math.max(1,no-Xn),Ni=Math.min(no+Xn,$t);no-1<=Xn&&(Ni=1+Xn*2),$t-no<=Xn&&(di=$t-Xn*2);for(var $i=di;$i<=Ni;$i+=1){var kn=no===$i;ni.push(ce.createElement(fe,{locale:On,rootPrefixCls:on,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$i,page:$i,active:kn,showTitle:Xi,itemRender:eo}))}no-1>=Xn*2&&no!==3&&(ni[0]=(0,ce.cloneElement)(ni[0],{className:"".concat(on,"-item-after-jump-prev")}),ni.unshift(gs)),$t-no>=Xn*2&&no!==$t-2&&(ni[ni.length-1]=(0,ce.cloneElement)(ni[ni.length-1],{className:"".concat(on,"-item-before-jump-next")}),ni.push(ua)),di!==1&&ni.unshift(Gs),Ni!==$t&&ni.push(ha)}var yi=!this.hasPrev()||!$t,Br=!this.hasNext()||!$t,dr=this.renderPrev(Hn),zr=this.renderNext(Mn);return ce.createElement("ul",(0,Lt.Z)({className:Xt()(on,Wn,(0,Ct.Z)({},"".concat(on,"-disabled"),ln)),style:sn,ref:this.paginationNode},qe),pi,dr?ce.createElement("li",{title:Xi?On.prev_page:null,onClick:this.prev,tabIndex:yi?null:0,onKeyPress:this.runIfEnterPrev,className:Xt()("".concat(on,"-prev"),(0,Ct.Z)({},"".concat(on,"-disabled"),yi)),"aria-disabled":yi},dr):null,ni,zr?ce.createElement("li",{title:Xi?On.next_page:null,onClick:this.next,tabIndex:Br?null:0,onKeyPress:this.runIfEnterNext,className:Xt()("".concat(on,"-next"),(0,Ct.Z)({},"".concat(on,"-disabled"),Br)),"aria-disabled":Br},zr):null,ce.createElement(oe,{disabled:ln,locale:On,rootPrefixCls:on,selectComponentClass:Xr,selectPrefixCls:oo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:no,pageSize:Is,pageSizeOptions:jo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Hr}))}}],[{key:"getDerivedStateFromProps",value:function(Me,on){var Wn={};if("current"in Me&&(Wn.current=Me.current,Me.current!==on.current&&(Wn.currentInputValue=Wn.current)),"pageSize"in Me&&Me.pageSize!==on.pageSize){var sn=on.current,ln=Wt(Me.pageSize,on,Me);sn=sn>ln?ln:sn,"current"in Me||(Wn.current=sn,Wn.currentInputValue=sn),Wn.pageSize=Me.pageSize}return Wn}}]),Oe}(ce.Component);Ke.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Le,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Le,locale:Ut.Z,style:{},itemRender:He,totalBoundaryShowSizeChanger:50};var _e=Ke,Ne=Ft(22075),Ge=Ft(36355),Ue=Ft(19716),ve=Ft(8628),ne=Ft(9763),Ce=Ft(57809);const bn=ae=>ce.createElement(Ce.default,Object.assign({},ae,{showSearch:!0,size:"small"})),Ln=ae=>ce.createElement(Ce.default,Object.assign({},ae,{showSearch:!0,size:"middle"}));bn.Option=Ce.default.Option,Ln.Option=Ce.default.Option;var Ve=Ft(9937),Nn=Ft(17313),Zn=Ft(83116),gi=Ft(37613);const Kn=ae=>{const{componentCls:ye}=ae;return{[`${ye}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ye}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ye}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed"}}},[`&${ye}-disabled`]:{cursor:"not-allowed",[`${ye}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ae.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ae.colorBorder,backgroundColor:ae.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ae.itemActiveBgDisabled},a:{color:ae.itemActiveColorDisabled}}},[`${ye}-item-link`]:{color:ae.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ye}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ye}-simple-pager`]:{color:ae.colorTextDisabled},[`${ye}-jump-prev, ${ye}-jump-next`]:{[`${ye}-item-link-icon`]:{opacity:0},[`${ye}-item-ellipsis`]:{opacity:1}}},[`&${ye}-simple`]:{[`${ye}-prev, ${ye}-next`]:{[`&${ye}-disabled ${ye}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Pi=ae=>{const{componentCls:ye}=ae;return{[`&${ye}-mini ${ye}-total-text, &${ye}-mini ${ye}-simple-pager`]:{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`},[`&${ye}-mini ${ye}-item`]:{minWidth:ae.itemSizeSM,height:ae.itemSizeSM,margin:0,lineHeight:`${ae.itemSizeSM-2}px`},[`&${ye}-mini:not(${ye}-disabled) ${ye}-item:not(${ye}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive}},[`&${ye}-mini ${ye}-prev, &${ye}-mini ${ye}-next`]:{minWidth:ae.itemSizeSM,height:ae.itemSizeSM,margin:0,lineHeight:`${ae.itemSizeSM}px`},[`&${ye}-mini:not(${ye}-disabled)`]:{[`${ye}-prev, ${ye}-next`]:{[`&:hover ${ye}-item-link`]:{backgroundColor:ae.colorBgTextHover},[`&:active ${ye}-item-link`]:{backgroundColor:ae.colorBgTextActive},[`&${ye}-disabled:hover ${ye}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ye}-mini ${ye}-prev ${ye}-item-link,
&${ye}-mini ${ye}-next ${ye}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`}},[`&${ye}-mini ${ye}-jump-prev, &${ye}-mini ${ye}-jump-next`]:{height:ae.itemSizeSM,marginInlineEnd:0,lineHeight:`${ae.itemSizeSM}px`},[`&${ye}-mini ${ye}-options`]:{marginInlineStart:ae.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ae.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ve.x0)(ae)),{width:ae.paginationMiniQuickJumperInputWidth,height:ae.controlHeightSM})}}}},tn=ae=>{const{componentCls:ye}=ae;return{[`
&${ye}-simple ${ye}-prev,
&${ye}-simple ${ye}-next
`]:{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`,verticalAlign:"top",[`${ye}-item-link`]:{height:ae.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive},"&::after":{height:ae.itemSizeSM,lineHeight:`${ae.itemSizeSM}px`}}},[`&${ye}-simple ${ye}-simple-pager`]:{display:"inline-block",height:ae.itemSizeSM,marginInlineEnd:ae.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ae.marginXS,padding:`0 ${ae.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ae.itemInputBg,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,borderRadius:ae.borderRadius,outline:"none",transition:`border-color ${ae.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ae.colorPrimary},"&:focus":{borderColor:ae.colorPrimaryHover,boxShadow:`${ae.inputOutlineOffset}px 0 ${ae.controlOutlineWidth}px ${ae.controlOutline}`},"&[disabled]":{color:ae.colorTextDisabled,backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,cursor:"not-allowed"}}}}},Li=ae=>{const{componentCls:ye}=ae;return{[`${ye}-jump-prev, ${ye}-jump-next`]:{outline:0,[`${ye}-item-container`]:{position:"relative",[`${ye}-item-link-icon`]:{color:ae.colorPrimary,fontSize:ae.fontSizeSM,opacity:0,transition:`all ${ae.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ye}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ae.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ae.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ae.paginationEllipsisTextIndent,opacity:1,transition:`all ${ae.motionDurationMid}`}},"&:hover":{[`${ye}-item-link-icon`]:{opacity:1},[`${ye}-item-ellipsis`]:{opacity:0}}},[`
${ye}-prev,
${ye}-jump-prev,
${ye}-jump-next
`]:{marginInlineEnd:ae.marginXS},[`
${ye}-prev,
${ye}-next,
${ye}-jump-prev,
${ye}-jump-next
`]:{display:"inline-block",minWidth:ae.itemSize,height:ae.itemSize,color:ae.colorText,fontFamily:ae.fontFamily,lineHeight:`${ae.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ae.borderRadius,cursor:"pointer",transition:`all ${ae.motionDurationMid}`},[`${ye}-prev, ${ye}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ae.colorText,cursor:"pointer",userSelect:"none"},[`${ye}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ae.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ae.lineWidth}px ${ae.lineType} transparent`,borderRadius:ae.borderRadius,outline:"none",transition:`all ${ae.motionDurationMid}`},[`&:hover ${ye}-item-link`]:{backgroundColor:ae.colorBgTextHover},[`&:active ${ye}-item-link`]:{backgroundColor:ae.colorBgTextActive},[`&${ye}-disabled:hover`]:{[`${ye}-item-link`]:{backgroundColor:"transparent"}}},[`${ye}-slash`]:{marginInlineEnd:ae.paginationSlashMarginInlineEnd,marginInlineStart:ae.paginationSlashMarginInlineStart},[`${ye}-options`]:{display:"inline-block",marginInlineStart:ae.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ae.controlHeight,marginInlineStart:ae.marginXS,lineHeight:`${ae.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ve.ik)(ae)),{width:ae.controlHeightLG*1.25,height:ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ae.marginXS,marginInlineEnd:ae.marginXS})}}}},ji=ae=>{const{componentCls:ye}=ae;return{[`${ye}-item`]:{display:"inline-block",minWidth:ae.itemSize,height:ae.itemSize,marginInlineEnd:ae.marginXS,fontFamily:ae.fontFamily,lineHeight:`${ae.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ae.lineWidth}px ${ae.lineType} transparent`,borderRadius:ae.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ae.paginationItemPaddingInline}px`,color:ae.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ye}-item-active)`]:{"&:hover":{transition:`all ${ae.motionDurationMid}`,backgroundColor:ae.colorBgTextHover},"&:active":{backgroundColor:ae.colorBgTextActive}},"&-active":{fontWeight:ae.fontWeightStrong,backgroundColor:ae.itemActiveBg,borderColor:ae.colorPrimary,a:{color:ae.colorPrimary},"&:hover":{borderColor:ae.colorPrimaryHover},"&:hover a":{color:ae.colorPrimaryHover}}}}},Ot=ae=>{const{componentCls:ye}=ae;return{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nn.Wf)(ae)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ye}-total-text`]:{display:"inline-block",height:ae.itemSize,marginInlineEnd:ae.marginXS,lineHeight:`${ae.itemSize-2}px`,verticalAlign:"middle"}}),ji(ae)),Li(ae)),tn(ae)),Pi(ae)),Kn(ae)),{[`@media only screen and (max-width: ${ae.screenLG}px)`]:{[`${ye}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ae.screenSM}px)`]:{[`${ye}-options`]:{display:"none"}}}),[`&${ae.componentCls}-rtl`]:{direction:"rtl"}}},Tt=ae=>{const{componentCls:ye}=ae;return{[`${ye}${ye}-disabled:not(${ye}-mini)`]:{"&, &:hover":{[`${ye}-item-link`]:{borderColor:ae.colorBorder}},"&:focus-visible":{[`${ye}-item-link`]:{borderColor:ae.colorBorder}},[`${ye}-item, ${ye}-item-link`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,[`&:hover:not(${ye}-item-active)`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,a:{color:ae.colorTextDisabled}},[`&${ye}-item-active`]:{backgroundColor:ae.itemActiveBgDisabled}},[`${ye}-prev, ${ye}-next`]:{"&:hover button":{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder,color:ae.colorTextDisabled},[`${ye}-item-link`]:{backgroundColor:ae.colorBgContainerDisabled,borderColor:ae.colorBorder}}},[`${ye}:not(${ye}-mini)`]:{[`${ye}-prev, ${ye}-next`]:{"&:hover button":{borderColor:ae.colorPrimaryHover,backgroundColor:ae.itemBg},[`${ye}-item-link`]:{backgroundColor:ae.itemLinkBg,borderColor:ae.colorBorder},[`&:hover ${ye}-item-link`]:{borderColor:ae.colorPrimary,backgroundColor:ae.itemBg,color:ae.colorPrimary},[`&${ye}-disabled`]:{[`${ye}-item-link`]:{borderColor:ae.colorBorder,color:ae.colorTextDisabled}}},[`${ye}-item`]:{backgroundColor:ae.itemBg,border:`${ae.lineWidth}px ${ae.lineType} ${ae.colorBorder}`,[`&:hover:not(${ye}-item-active)`]:{borderColor:ae.colorPrimary,backgroundColor:ae.itemBg,a:{color:ae.colorPrimary}},"&-active":{borderColor:ae.colorPrimary}}}}},vt=ae=>{const{componentCls:ye}=ae;return{[`${ye}:not(${ye}-disabled)`]:{[`${ye}-item`]:Object.assign({},(0,Nn.Qy)(ae)),[`${ye}-jump-prev, ${ye}-jump-next`]:{"&:focus-visible":Object.assign({[`${ye}-item-link-icon`]:{opacity:1},[`${ye}-item-ellipsis`]:{opacity:0}},(0,Nn.oN)(ae))},[`${ye}-prev, ${ye}-next`]:{[`&:focus-visible ${ye}-item-link`]:Object.assign({},(0,Nn.oN)(ae))}}}};var gt=(0,Zn.Z)("Pagination",ae=>{const ye=(0,gi.TS)(ae,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ae.marginXXS/2,paginationMiniQuickJumperInputWidth:ae.controlHeightLG*1.1,paginationItemPaddingInline:ae.marginXXS*1.5,paginationEllipsisLetterSpacing:ae.marginXXS/2,paginationSlashMarginInlineStart:ae.marginXXS,paginationSlashMarginInlineEnd:ae.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ve.e5)(ae),(0,Ve.TM)(ae));return[Ot(ye),vt(ye),ae.wireframe&&Tt(ye)]},ae=>({itemBg:ae.colorBgContainer,itemSize:ae.controlHeight,itemSizeSM:ae.controlHeightSM,itemActiveBg:ae.colorBgContainer,itemLinkBg:ae.colorBgContainer,itemActiveColorDisabled:ae.colorTextDisabled,itemActiveBgDisabled:ae.controlItemBgActiveDisabled,itemInputBg:ae.colorBgContainer,miniOptionsSizeChangerTop:0})),ft=function(ae,ye){var Oe={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&ye.indexOf(Te)<0&&(Oe[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Te=Object.getOwnPropertySymbols(ae);Me<Te.length;Me++)ye.indexOf(Te[Me])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[Me])&&(Oe[Te[Me]]=ae[Te[Me]]);return Oe},le=ae=>{const{prefixCls:ye,selectPrefixCls:Oe,className:Te,rootClassName:Me,style:on,size:Wn,locale:sn,selectComponentClass:ln,responsive:Bn,showSizeChanger:li}=ae,On=ft(ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Di}=(0,ve.Z)(Bn),{getPrefixCls:nr,direction:Xi,pagination:Mr={}}=ce.useContext(Ge.E_),br=nr("pagination",ye),[eo,Yr]=gt(br),qr=li!=null?li:Mr.showSizeChanger,Ir=ce.useMemo(()=>{const $t=ce.createElement("span",{className:`${br}-item-ellipsis`},"\u2022\u2022\u2022"),ni=ce.createElement("button",{className:`${br}-item-link`,type:"button",tabIndex:-1},Xi==="rtl"?ce.createElement(se.Z,null):ce.createElement(bt.Z,null)),gs=ce.createElement("button",{className:`${br}-item-link`,type:"button",tabIndex:-1},Xi==="rtl"?ce.createElement(bt.Z,null):ce.createElement(se.Z,null)),ua=ce.createElement("a",{className:`${br}-item-link`},ce.createElement("div",{className:`${br}-item-container`},Xi==="rtl"?ce.createElement(qt.Z,{className:`${br}-item-link-icon`}):ce.createElement(jt,{className:`${br}-item-link-icon`}),$t)),Gs=ce.createElement("a",{className:`${br}-item-link`},ce.createElement("div",{className:`${br}-item-container`},Xi==="rtl"?ce.createElement(jt,{className:`${br}-item-link-icon`}):ce.createElement(qt.Z,{className:`${br}-item-link-icon`}),$t));return{prevIcon:ni,nextIcon:gs,jumpPrevIcon:ua,jumpNextIcon:Gs}},[Xi,br]),[Xr]=(0,ne.Z)("Pagination",Ne.Z),oo=Object.assign(Object.assign({},Xr),sn),jo=(0,Ue.Z)(Wn),ds=jo==="small"||!!(Di&&!jo&&Bn),no=nr("select",Oe),Is=Xt()({[`${br}-mini`]:ds,[`${br}-rtl`]:Xi==="rtl"},Mr==null?void 0:Mr.className,Te,Me,Yr),xo=Object.assign(Object.assign({},Mr==null?void 0:Mr.style),on);return eo(ce.createElement(_e,Object.assign({},Ir,On,{style:xo,prefixCls:br,selectPrefixCls:no,className:Is,selectComponentClass:ln||(ds?bn:Ln),locale:oo,showSizeChanger:qr})))},xe=le},13570:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ne}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ie=re,ee=Ft(7657),Vt=function(bn,Ln){return ce.createElement(ee.Z,(0,Lt.Z)({},bn,{ref:Ln,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt,qt=Ft(92310),bt=Ft.n(qt),se=Ft(400),Gt=Ft(33606),Xt=Ft(37061),Ct=Ft(18929),et=Ft(10228),tt=Ft(26112);function lt(Ce,bn){var Ln=Ce.disabled,Ve=Ce.prefixCls,Nn=Ce.character,Zn=Ce.characterRender,gi=Ce.index,Kn=Ce.count,Pi=Ce.value,tn=Ce.allowHalf,Li=Ce.focused,ji=Ce.onHover,Ot=Ce.onClick,Tt=function(ye){ji(ye,gi)},vt=function(ye){Ot(ye,gi)},gt=function(ye){ye.keyCode===et.Z.ENTER&&Ot(ye,gi)},ft=gi+1,At=new Set([Ve]);Pi===0&&gi===0&&Li?At.add("".concat(Ve,"-focused")):tn&&Pi+.5>=ft&&Pi<ft?(At.add("".concat(Ve,"-half")),At.add("".concat(Ve,"-active")),Li&&At.add("".concat(Ve,"-focused"))):(ft<=Pi?At.add("".concat(Ve,"-full")):At.add("".concat(Ve,"-zero")),ft===Pi&&Li&&At.add("".concat(Ve,"-focused")));var le=typeof Nn=="function"?Nn(Ce):Nn,xe=ce.createElement("li",{className:bt()(Array.from(At)),ref:bn},ce.createElement("div",{onClick:Ln?null:vt,onKeyDown:Ln?null:gt,onMouseMove:Ln?null:Tt,role:"radio","aria-checked":Pi>gi?"true":"false","aria-posinset":gi+1,"aria-setsize":Kn,tabIndex:Ln?-1:0},ce.createElement("div",{className:"".concat(Ve,"-first")},le),ce.createElement("div",{className:"".concat(Ve,"-second")},le)));return Zn&&(xe=Zn(xe,Ce)),xe}var rt=ce.forwardRef(lt);function ht(){var Ce=ce.useRef({});function bn(Ve){return Ce.current[Ve]}function Ln(Ve){return function(Nn){Ce.current[Ve]=Nn}}return[bn,Ln]}function dt(Ce){var bn=Ce.pageXOffset,Ln="scrollLeft";if(typeof bn!="number"){var Ve=Ce.document;bn=Ve.documentElement[Ln],typeof bn!="number"&&(bn=Ve.body[Ln])}return bn}function xt(Ce){var bn,Ln,Ve=Ce.ownerDocument,Nn=Ve.body,Zn=Ve&&Ve.documentElement,gi=Ce.getBoundingClientRect();return bn=gi.left,Ln=gi.top,bn-=Zn.clientLeft||Nn.clientLeft||0,Ln-=Zn.clientTop||Nn.clientTop||0,{left:bn,top:Ln}}function Nt(Ce){var bn=xt(Ce),Ln=Ce.ownerDocument,Ve=Ln.defaultView||Ln.parentWindow;return bn.left+=dt(Ve),bn.left}var Ut=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function _t(Ce,bn){var Ln,Ve=Ce.prefixCls,Nn=Ve===void 0?"rc-rate":Ve,Zn=Ce.className,gi=Ce.defaultValue,Kn=Ce.value,Pi=Ce.count,tn=Pi===void 0?5:Pi,Li=Ce.allowHalf,ji=Li===void 0?!1:Li,Ot=Ce.allowClear,Tt=Ot===void 0?!0:Ot,vt=Ce.character,gt=vt===void 0?"\u2605":vt,ft=Ce.characterRender,At=Ce.disabled,le=Ce.direction,xe=le===void 0?"ltr":le,ae=Ce.tabIndex,ye=ae===void 0?0:ae,Oe=Ce.autoFocus,Te=Ce.onHoverChange,Me=Ce.onChange,on=Ce.onFocus,Wn=Ce.onBlur,sn=Ce.onKeyDown,ln=Ce.onMouseLeave,Bn=(0,Xt.Z)(Ce,Ut),li=ht(),On=(0,Gt.Z)(li,2),Di=On[0],nr=On[1],Xi=ce.useRef(null),Mr=function(){if(!At){var Ee;(Ee=Xi.current)===null||Ee===void 0||Ee.focus()}};ce.useImperativeHandle(bn,function(){return{focus:Mr,blur:function(){if(!At){var Ee;(Ee=Xi.current)===null||Ee===void 0||Ee.blur()}}}});var br=(0,Ct.Z)(gi||0,{value:Kn}),eo=(0,Gt.Z)(br,2),Yr=eo[0],qr=eo[1],Ir=(0,Ct.Z)(null),Xr=(0,Gt.Z)(Ir,2),oo=Xr[0],jo=Xr[1],ds=function(Ee,Cn){var Gn=xe==="rtl",Ei=Ee+1;if(ji){var ei=Di(Ee),gn=Nt(ei),di=ei.clientWidth;(Gn&&Cn-gn>di/2||!Gn&&Cn-gn<di/2)&&(Ei-=.5)}return Ei},no=function(Ee){qr(Ee),Me==null||Me(Ee)},Is=ce.useState(!1),xo=(0,Gt.Z)(Is,2),$t=xo[0],ni=xo[1],gs=function(){ni(!0),on==null||on()},ua=function(){ni(!1),Wn==null||Wn()},Gs=ce.useState(null),ha=(0,Gt.Z)(Gs,2),Ws=ha[0],Hr=ha[1],Xn=function(Ee,Cn){var Gn=ds(Cn,Ee.pageX);Gn!==oo&&(Hr(Gn),jo(null)),Te==null||Te(Gn)},Hn=function(Ee){At||(Hr(null),jo(null),Te==null||Te(void 0)),Ee&&(ln==null||ln(Ee))},Mn=function(Ee,Cn){var Gn=ds(Cn,Ee.pageX),Ei=!1;Tt&&(Ei=Gn===Yr),Hn(),no(Ei?0:Gn),jo(Ei?Gn:null)},qe=function(Ee){var Cn=Ee.keyCode,Gn=xe==="rtl",Ei=Yr;Cn===et.Z.RIGHT&&Ei<tn&&!Gn?(ji?Ei+=.5:Ei+=1,no(Ei),Ee.preventDefault()):Cn===et.Z.LEFT&&Ei>0&&!Gn||Cn===et.Z.RIGHT&&Ei>0&&Gn?(ji?Ei-=.5:Ei-=1,no(Ei),Ee.preventDefault()):Cn===et.Z.LEFT&&Ei<tn&&Gn&&(ji?Ei+=.5:Ei+=1,no(Ei),Ee.preventDefault()),sn==null||sn(Ee)};ce.useEffect(function(){Oe&&!At&&Mr()},[]);var pi=new Array(tn).fill(0).map(function(wn,Ee){return ce.createElement(rt,{ref:nr(Ee),index:Ee,count:tn,disabled:At,prefixCls:"".concat(Nn,"-star"),allowHalf:ji,value:Ws===null?Yr:Ws,onClick:Mn,onHover:Xn,key:wn||Ee,character:gt,characterRender:ft,focused:$t})}),xi=bt()(Nn,Zn,(Ln={},(0,se.Z)(Ln,"".concat(Nn,"-disabled"),At),(0,se.Z)(Ln,"".concat(Nn,"-rtl"),xe==="rtl"),Ln));return ce.createElement("ul",(0,Lt.Z)({className:xi,onMouseLeave:Hn,tabIndex:At?-1:ye,onFocus:At?null:gs,onBlur:At?null:ua,onKeyDown:At?null:qe,ref:Xi,role:"radiogroup"},(0,tt.Z)(Bn,{aria:!0,data:!0,attr:!0})),pi)}var oe=ce.forwardRef(_t),he=oe,fe=Ft(36355),Le=Ft(6848),te=Ft(17313),He=Ft(83116),Wt=Ft(37613);const Ke=Ce=>{const{componentCls:bn}=Ce;return{[`${bn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ce.marginXS},"> div":{transition:`all ${Ce.motionDurationMid}, outline 0s`,"&:hover":{transform:Ce.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ce.lineWidth}px dashed ${Ce.starColor}`,transform:Ce.starHoverScale}},"&-first, &-second":{color:Ce.starBg,transition:`all ${Ce.motionDurationMid}`,userSelect:"none",[Ce.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${bn}-star-first, &-half ${bn}-star-second`]:{opacity:1},[`&-half ${bn}-star-first, &-full ${bn}-star-second`]:{color:"inherit"}}}},_e=Ce=>({[`&-rtl${Ce.componentCls}`]:{direction:"rtl"}}),Ne=Ce=>{const{componentCls:bn}=Ce;return{[bn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,te.Wf)(Ce)),{display:"inline-block",margin:0,padding:0,color:Ce.starColor,fontSize:Ce.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${bn} ${bn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ke(Ce)),{[`+ ${bn}-text`]:{display:"inline-block",marginInlineStart:Ce.marginXS,fontSize:Ce.fontSize}}),_e(Ce))}};var Ge=(0,He.Z)("Rate",Ce=>{const bn=(0,Wt.TS)(Ce,{});return[Ne(bn)]},Ce=>({starColor:Ce.yellow6,starSize:Ce.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ce.colorFillContent})),Ue=function(Ce,bn){var Ln={};for(var Ve in Ce)Object.prototype.hasOwnProperty.call(Ce,Ve)&&bn.indexOf(Ve)<0&&(Ln[Ve]=Ce[Ve]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Ve=Object.getOwnPropertySymbols(Ce);Nn<Ve.length;Nn++)bn.indexOf(Ve[Nn])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ve[Nn])&&(Ln[Ve[Nn]]=Ce[Ve[Nn]]);return Ln},ne=ce.forwardRef((Ce,bn)=>{const{prefixCls:Ln,className:Ve,rootClassName:Nn,style:Zn,tooltips:gi,character:Kn=ce.createElement(jt,null)}=Ce,Pi=Ue(Ce,["prefixCls","className","rootClassName","style","tooltips","character"]),tn=(At,le)=>{let{index:xe}=le;return gi?ce.createElement(Le.Z,{title:gi[xe]},At):At},{getPrefixCls:Li,direction:ji,rate:Ot}=ce.useContext(fe.E_),Tt=Li("rate",Ln),[vt,gt]=Ge(Tt),ft=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Zn);return vt(ce.createElement(he,Object.assign({ref:bn,character:Kn,characterRender:tn},Pi,{className:bt()(Ve,Nn,gt,Ot==null?void 0:Ot.className),style:ft,prefixCls:Tt,direction:ji})))})},57809:function(hi,Sn,Ft){"use strict";var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(77861),Ie=Ft(2738),ee=Ft(59301),Vt=Ft(53487),Mt=Ft(62892),jt=Ft(19080),qt=Ft(36355),bt=Ft(1684),se=Ft(93891),Gt=Ft(19716),Xt=Ft(32441),Ct=Ft(33234),et=Ft(14154),tt=Ft(58582),lt=Ft(84443),rt=Ft(66339),ht=function(_t,oe){var he={};for(var fe in _t)Object.prototype.hasOwnProperty.call(_t,fe)&&oe.indexOf(fe)<0&&(he[fe]=_t[fe]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,fe=Object.getOwnPropertySymbols(_t);Le<fe.length;Le++)oe.indexOf(fe[Le])<0&&Object.prototype.propertyIsEnumerable.call(_t,fe[Le])&&(he[fe[Le]]=_t[fe[Le]]);return he};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",xt=(_t,oe)=>{var he,{prefixCls:fe,bordered:Le=!0,className:te,rootClassName:He,getPopupContainer:Wt,popupClassName:Ke,dropdownClassName:_e,listHeight:Ne=256,placement:Ge,listItemHeight:Ue=24,size:ve,disabled:ne,notFoundContent:Ce,status:bn,builtinPlacements:Ln,dropdownMatchSelectWidth:Ve,popupMatchSelectWidth:Nn,direction:Zn,style:gi,allowClear:Kn}=_t,Pi=ht(_t,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:tn,getPrefixCls:Li,renderEmpty:ji,direction:Ot,virtual:Tt,popupMatchSelectWidth:vt,popupOverflow:gt,select:ft}=ee.useContext(qt.E_),At=Li("select",fe),le=Li(),xe=Zn!=null?Zn:Ot,{compactSize:ae,compactItemClassnames:ye}=(0,Ct.ri)(At,xe),[Oe,Te]=(0,et.Z)(At),Me=ee.useMemo(()=>{const{mode:xo}=Pi;if(xo!=="combobox")return xo===dt?"combobox":xo},[Pi.mode]),on=Me==="multiple"||Me==="tags",Wn=(0,lt.Z)(Pi.suffixIcon,Pi.showArrow),sn=(he=Nn!=null?Nn:Ve)!==null&&he!==void 0?he:vt,{status:ln,hasFeedback:Bn,isFormItemInput:li,feedbackIcon:On}=ee.useContext(Xt.aM),Di=(0,jt.F)(ln,bn);let nr;Ce!==void 0?nr=Ce:Me==="combobox"?nr=null:nr=(ji==null?void 0:ji("Select"))||ee.createElement(se.Z,{componentName:"Select"});const{suffixIcon:Xi,itemIcon:Mr,removeIcon:br,clearIcon:eo}=(0,rt.Z)(Object.assign(Object.assign({},Pi),{multiple:on,hasFeedback:Bn,feedbackIcon:On,showSuffixIcon:Wn,prefixCls:At,showArrow:Pi.showArrow,componentName:"Select"})),Yr=Kn===!0?{clearIcon:eo}:Kn,qr=(0,Ie.Z)(Pi,["suffixIcon","itemIcon"]),Ir=ce()(Ke||_e,{[`${At}-dropdown-${xe}`]:xe==="rtl"},He,Te),Xr=(0,Gt.Z)(xo=>{var $t;return($t=ve!=null?ve:ae)!==null&&$t!==void 0?$t:xo}),oo=ee.useContext(bt.Z),jo=ne!=null?ne:oo,ds=ce()({[`${At}-lg`]:Xr==="large",[`${At}-sm`]:Xr==="small",[`${At}-rtl`]:xe==="rtl",[`${At}-borderless`]:!Le,[`${At}-in-form-item`]:li},(0,jt.Z)(At,Di,Bn),ye,ft==null?void 0:ft.className,te,He,Te),no=ee.useMemo(()=>Ge!==void 0?Ge:xe==="rtl"?"bottomRight":"bottomLeft",[Ge,xe]),Is=(0,tt.Z)(Ln,gt);return Oe(ee.createElement(re.ZP,Object.assign({ref:oe,virtual:Tt,showSearch:ft==null?void 0:ft.showSearch},qr,{style:Object.assign(Object.assign({},ft==null?void 0:ft.style),gi),dropdownMatchSelectWidth:sn,builtinPlacements:Is,transitionName:(0,Mt.m)(le,"slide-up",Pi.transitionName),listHeight:Ne,listItemHeight:Ue,mode:Me,prefixCls:At,placement:no,direction:xe,suffixIcon:Xi,menuItemSelectedIcon:Mr,removeIcon:br,allowClear:Yr,notFoundContent:nr,className:ds,getPopupContainer:Wt||tn,dropdownClassName:Ir,disabled:jo})))},Nt=ee.forwardRef(xt),Ut=(0,Vt.Z)(Nt);Nt.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,Nt.Option=re.Wx,Nt.OptGroup=re.Xo,Nt._InternalPanelDoNotUseOrYouWillBeFired=Ut,Sn.default=Nt},14154:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Nt}});var Lt=Ft(17313),ce=Ft(74207),re=Ft(37613),Ie=Ft(83116),ee=Ft(13826),Vt=Ft(92899);const Mt=Ut=>{const{optionHeight:_t,optionFontSize:oe,optionLineHeight:he,optionPadding:fe}=Ut;return{position:"relative",display:"block",minHeight:_t,padding:fe,color:Ut.colorText,fontWeight:"normal",fontSize:oe,lineHeight:he,boxSizing:"border-box"}};var qt=Ut=>{const{antCls:_t,componentCls:oe}=Ut,he=`${oe}-item`,fe=`&${_t}-slide-up-enter${_t}-slide-up-enter-active`,Le=`&${_t}-slide-up-appear${_t}-slide-up-appear-active`,te=`&${_t}-slide-up-leave${_t}-slide-up-leave-active`,He=`${oe}-dropdown-placement-`;return[{[`${oe}-dropdown`]:Object.assign(Object.assign({},(0,Lt.Wf)(Ut)),{position:"absolute",top:-9999,zIndex:Ut.zIndexPopup,boxSizing:"border-box",padding:Ut.paddingXXS,overflow:"hidden",fontSize:Ut.fontSize,fontVariant:"initial",backgroundColor:Ut.colorBgElevated,borderRadius:Ut.borderRadiusLG,outline:"none",boxShadow:Ut.boxShadowSecondary,[`
${fe}${He}bottomLeft,
${Le}${He}bottomLeft
`]:{animationName:ee.fJ},[`
${fe}${He}topLeft,
${Le}${He}topLeft,
${fe}${He}topRight,
${Le}${He}topRight
`]:{animationName:ee.Qt},[`${te}${He}bottomLeft`]:{animationName:ee.Uw},[`
${te}${He}topLeft,
${te}${He}topRight
`]:{animationName:ee.ly},"&-hidden":{display:"none"},[`${he}`]:Object.assign(Object.assign({},Mt(Ut)),{cursor:"pointer",transition:`background ${Ut.motionDurationSlow} ease`,borderRadius:Ut.borderRadiusSM,"&-group":{color:Ut.colorTextDescription,fontSize:Ut.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Lt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${he}-option-disabled)`]:{backgroundColor:Ut.optionActiveBg},[`&-selected:not(${he}-option-disabled)`]:{color:Ut.optionSelectedColor,fontWeight:Ut.optionSelectedFontWeight,backgroundColor:Ut.optionSelectedBg,[`${he}-option-state`]:{color:Ut.colorPrimary}},"&-disabled":{[`&${he}-option-selected`]:{backgroundColor:Ut.colorBgContainerDisabled},color:Ut.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ut.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ee.oN)(Ut,"slide-up"),(0,ee.oN)(Ut,"slide-down"),(0,Vt.Fm)(Ut,"move-up"),(0,Vt.Fm)(Ut,"move-down")]};const bt=2,se=Ut=>{let{controlHeightSM:_t,controlHeight:oe,lineWidth:he}=Ut;const fe=(oe-_t)/2-he,Le=Math.ceil(fe/2);return[fe,Le]};function Gt(Ut,_t){const{componentCls:oe,iconCls:he}=Ut,fe=`${oe}-selection-overflow`,Le=Ut.multipleSelectItemHeight,[te]=se(Ut),He=_t?`${oe}-${_t}`:"";return{[`${oe}-multiple${He}`]:{fontSize:Ut.fontSize,[fe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${oe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${te-bt}px ${bt*2}px`,borderRadius:Ut.borderRadius,[`${oe}-show-search&`]:{cursor:"text"},[`${oe}-disabled&`]:{background:Ut.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${bt}px 0`,lineHeight:`${Le}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${oe}-show-arrow ${oe}-selector,
&${oe}-allow-clear ${oe}-selector
`]:{paddingInlineEnd:Ut.fontSizeIcon+Ut.controlPaddingHorizontal},[`${oe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Le,marginTop:bt,marginBottom:bt,lineHeight:`${Le-Ut.lineWidth*2}px`,background:Ut.multipleItemBg,border:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.multipleItemBorderColor}`,borderRadius:Ut.borderRadiusSM,cursor:"default",transition:`font-size ${Ut.motionDurationSlow}, line-height ${Ut.motionDurationSlow}, height ${Ut.motionDurationSlow}`,userSelect:"none",marginInlineEnd:bt*2,paddingInlineStart:Ut.paddingXS,paddingInlineEnd:Ut.paddingXS/2,[`${oe}-disabled&`]:{color:Ut.multipleItemColorDisabled,borderColor:Ut.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ut.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Lt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ut.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${he}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ut.colorIconHover}})},[`${fe}-item + ${fe}-item`]:{[`${oe}-selection-search`]:{marginInlineStart:0}},[`${oe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ut.inputPaddingHorizontalBase-te,"\n &-input,\n &-mirror\n ":{height:Le,fontFamily:Ut.fontFamily,lineHeight:`${Le}px`,transition:`all ${Ut.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${oe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ut.inputPaddingHorizontalBase,insetInlineEnd:Ut.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ut.motionDurationSlow}`}}}}var Ct=Ut=>{const{componentCls:_t}=Ut,oe=(0,re.TS)(Ut,{controlHeight:Ut.controlHeightSM,multipleSelectItemHeight:Ut.controlHeightXS,borderRadius:Ut.borderRadiusSM,borderRadiusSM:Ut.borderRadiusXS}),he=(0,re.TS)(Ut,{fontSize:Ut.fontSizeLG,controlHeight:Ut.controlHeightLG,multipleSelectItemHeight:Ut.multipleItemHeightLG,borderRadius:Ut.borderRadiusLG,borderRadiusSM:Ut.borderRadius}),[,fe]=se(Ut);return[Gt(Ut),Gt(oe,"sm"),{[`${_t}-multiple${_t}-sm`]:{[`${_t}-selection-placeholder`]:{insetInline:Ut.controlPaddingHorizontalSM-Ut.lineWidth},[`${_t}-selection-search`]:{marginInlineStart:fe}}},Gt(he,"lg")]};function et(Ut,_t){const{componentCls:oe,inputPaddingHorizontalBase:he,borderRadius:fe}=Ut,Le=Ut.controlHeight-Ut.lineWidth*2,te=Math.ceil(Ut.fontSize*1.25),He=_t?`${oe}-${_t}`:"";return{[`${oe}-single${He}`]:{fontSize:Ut.fontSize,[`${oe}-selector`]:Object.assign(Object.assign({},(0,Lt.Wf)(Ut)),{display:"flex",borderRadius:fe,[`${oe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:he,insetInlineEnd:he,bottom:0,"&-input":{width:"100%"}},[`
${oe}-selection-item,
${oe}-selection-placeholder
`]:{padding:0,lineHeight:`${Le}px`,transition:`all ${Ut.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Le}px`}},[`${oe}-selection-item`]:{position:"relative",userSelect:"none"},[`${oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${oe}-selection-item:after`,`${oe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${oe}-show-arrow ${oe}-selection-item,
&${oe}-show-arrow ${oe}-selection-placeholder
`]:{paddingInlineEnd:te},[`&${oe}-open ${oe}-selection-item`]:{color:Ut.colorTextPlaceholder},[`&:not(${oe}-customize-input)`]:{[`${oe}-selector`]:{width:"100%",height:Ut.controlHeight,padding:`0 ${he}px`,[`${oe}-selection-search-input`]:{height:Le},"&:after":{lineHeight:`${Le}px`}}},[`&${oe}-customize-input`]:{[`${oe}-selector`]:{"&:after":{display:"none"},[`${oe}-selection-search`]:{position:"static",width:"100%"},[`${oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${he}px`,"&:after":{display:"none"}}}}}}}function tt(Ut){const{componentCls:_t}=Ut,oe=Ut.controlPaddingHorizontalSM-Ut.lineWidth;return[et(Ut),et((0,re.TS)(Ut,{controlHeight:Ut.controlHeightSM,borderRadius:Ut.borderRadiusSM}),"sm"),{[`${_t}-single${_t}-sm`]:{[`&:not(${_t}-customize-input)`]:{[`${_t}-selection-search`]:{insetInlineStart:oe,insetInlineEnd:oe},[`${_t}-selector`]:{padding:`0 ${oe}px`},[`&${_t}-show-arrow ${_t}-selection-search`]:{insetInlineEnd:oe+Ut.fontSize*1.5},[`
&${_t}-show-arrow ${_t}-selection-item,
&${_t}-show-arrow ${_t}-selection-placeholder
`]:{paddingInlineEnd:Ut.fontSize*1.5}}}},et((0,re.TS)(Ut,{controlHeight:Ut.singleItemHeightLG,fontSize:Ut.fontSizeLG,borderRadius:Ut.borderRadiusLG}),"lg")]}const lt=Ut=>{const{componentCls:_t,selectorBg:oe}=Ut;return{position:"relative",backgroundColor:oe,border:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.colorBorder}`,transition:`all ${Ut.motionDurationMid} ${Ut.motionEaseInOut}`,input:{cursor:"pointer"},[`${_t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${_t}-disabled&`]:{color:Ut.colorTextDisabled,background:Ut.colorBgContainerDisabled,cursor:"not-allowed",[`${_t}-multiple&`]:{background:Ut.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Ut,_t){let oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:he,borderHoverColor:fe,outlineColor:Le,antCls:te}=_t,He=oe?{[`${he}-selector`]:{borderColor:fe}}:{};return{[Ut]:{[`&:not(${he}-disabled):not(${he}-customize-input):not(${te}-pagination-size-changer)`]:Object.assign(Object.assign({},He),{[`${he}-focused& ${he}-selector`]:{borderColor:fe,boxShadow:`0 0 0 ${_t.controlOutlineWidth}px ${Le}`,outline:0},[`&:hover ${he}-selector`]:{borderColor:fe}})}}},ht=Ut=>{const{componentCls:_t}=Ut;return{[`${_t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dt=Ut=>{const{componentCls:_t,inputPaddingHorizontalBase:oe,iconCls:he}=Ut;return{[_t]:Object.assign(Object.assign({},(0,Lt.Wf)(Ut)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${_t}-customize-input) ${_t}-selector`]:Object.assign(Object.assign({},lt(Ut)),ht(Ut)),[`${_t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Lt.vS),[`${_t}-selection-placeholder`]:Object.assign(Object.assign({},Lt.vS),{flex:1,color:Ut.colorTextPlaceholder,pointerEvents:"none"}),[`${_t}-arrow`]:Object.assign(Object.assign({},(0,Lt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:oe,height:Ut.fontSizeIcon,marginTop:-Ut.fontSizeIcon/2,color:Ut.colorTextQuaternary,fontSize:Ut.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[he]:{verticalAlign:"top",transition:`transform ${Ut.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${_t}-suffix)`]:{pointerEvents:"auto"}},[`${_t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${_t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:oe,zIndex:1,display:"inline-block",width:Ut.fontSizeIcon,height:Ut.fontSizeIcon,marginTop:-Ut.fontSizeIcon/2,color:Ut.colorTextQuaternary,fontSize:Ut.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ut.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ut.motionDurationMid} ease, opacity ${Ut.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ut.colorTextTertiary}},"&:hover":{[`${_t}-clear`]:{opacity:1}}}),[`${_t}-has-feedback`]:{[`${_t}-clear`]:{insetInlineEnd:oe+Ut.fontSize+Ut.paddingXS}}}},xt=Ut=>{const{componentCls:_t}=Ut;return[{[_t]:{[`&-borderless ${_t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${_t}-in-form-item`]:{width:"100%"}}},dt(Ut),tt(Ut),Ct(Ut),qt(Ut),{[`${_t}-rtl`]:{direction:"rtl"}},rt(_t,(0,re.TS)(Ut,{borderHoverColor:Ut.colorPrimaryHover,outlineColor:Ut.controlOutline})),rt(`${_t}-status-error`,(0,re.TS)(Ut,{borderHoverColor:Ut.colorErrorHover,outlineColor:Ut.colorErrorOutline}),!0),rt(`${_t}-status-warning`,(0,re.TS)(Ut,{borderHoverColor:Ut.colorWarningHover,outlineColor:Ut.colorWarningOutline}),!0),(0,ce.c)(Ut,{borderElCls:`${_t}-selector`,focusElCls:`${_t}-focused`})]};var Nt=(0,Ie.Z)("Select",(Ut,_t)=>{let{rootPrefixCls:oe}=_t;const he=(0,re.TS)(Ut,{rootPrefixCls:oe,inputPaddingHorizontalBase:Ut.paddingSM-1,multipleSelectItemHeight:Ut.multipleItemHeight});return[xt(he)]},Ut=>{const{fontSize:_t,lineHeight:oe,controlHeight:he,controlPaddingHorizontal:fe,zIndexPopupBase:Le,colorText:te,fontWeightStrong:He,controlItemBgActive:Wt,controlItemBgHover:Ke,colorBgContainer:_e,colorFillSecondary:Ne,controlHeightLG:Ge,controlHeightSM:Ue,colorBgContainerDisabled:ve,colorTextDisabled:ne}=Ut;return{zIndexPopup:Le+50,optionSelectedColor:te,optionSelectedFontWeight:He,optionSelectedBg:Wt,optionActiveBg:Ke,optionPadding:`${(he-_t*oe)/2}px ${fe}px`,optionFontSize:_t,optionLineHeight:oe,optionHeight:he,selectorBg:_e,clearBg:_e,singleItemHeightLG:Ge,multipleItemBg:Ne,multipleItemBorderColor:"transparent",multipleItemHeight:Ue,multipleItemHeightLG:he,multipleSelectorBgDisabled:ve,multipleItemColorDisabled:ne,multipleItemBorderColorDisabled:"transparent"}})},58582:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ce}});const Lt=re=>{const ee={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:re==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ee),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ee),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ee),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ee),{points:["br","tr"],offset:[0,-4]})}};function ce(re,Ie){return re||Lt(Ie)}},84443:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Lt}});function Lt(ce,re){return re!==void 0?re:ce!==null}},66339:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});var Lt=Ft(40001),ce=Ft(19248),re=Ft(99267),Ie=Ft(84105),ee=Ft(58617),Vt=Ft(47472),Mt=Ft(59301);function jt(qt){let{suffixIcon:bt,clearIcon:se,menuItemSelectedIcon:Gt,removeIcon:Xt,loading:Ct,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ht,showArrow:dt,componentName:xt}=qt;const Nt=se!=null?se:Mt.createElement(ce.Z,null),Ut=fe=>bt===null&&!tt&&!dt?null:Mt.createElement(Mt.Fragment,null,rt!==!1&&fe,tt&&ht);let _t=null;if(bt!==void 0)_t=Ut(bt);else if(Ct)_t=Ut(Mt.createElement(ee.Z,{spin:!0}));else{const fe=`${lt}-suffix`;_t=Le=>{let{open:te,showSearch:He}=Le;return Ut(te&&He?Mt.createElement(Vt.Z,{className:fe}):Mt.createElement(Ie.Z,{className:fe}))}}let oe=null;Gt!==void 0?oe=Gt:et?oe=Mt.createElement(Lt.Z,null):oe=null;let he=null;return Xt!==void 0?he=Xt:he=Mt.createElement(re.Z,null),{clearIcon:Nt,suffixIcon:_t,itemIcon:oe,removeIcon:he}}},61621:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return gt}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),Ie=Ft(36355),ee=Ft(2738),Mt=ft=>{const{prefixCls:At,className:le,style:xe,size:ae,shape:ye}=ft,Oe=ce()({[`${At}-lg`]:ae==="large",[`${At}-sm`]:ae==="small"}),Te=ce()({[`${At}-circle`]:ye==="circle",[`${At}-square`]:ye==="square",[`${At}-round`]:ye==="round"}),Me=re.useMemo(()=>typeof ae=="number"?{width:ae,height:ae,lineHeight:`${ae}px`}:{},[ae]);return re.createElement("span",{className:ce()(At,Oe,Te,le),style:Object.assign(Object.assign({},Me),xe)})},jt=Ft(93083),qt=Ft(83116),bt=Ft(37613);const se=new jt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Gt=ft=>({height:ft,lineHeight:`${ft}px`}),Xt=ft=>Object.assign({width:ft},Gt(ft)),Ct=ft=>({background:ft.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:ft.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=ft=>Object.assign({width:ft*5,minWidth:ft*5},Gt(ft)),tt=ft=>{const{skeletonAvatarCls:At,gradientFromColor:le,controlHeight:xe,controlHeightLG:ae,controlHeightSM:ye}=ft;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},Xt(xe)),[`${At}${At}-circle`]:{borderRadius:"50%"},[`${At}${At}-lg`]:Object.assign({},Xt(ae)),[`${At}${At}-sm`]:Object.assign({},Xt(ye))}},lt=ft=>{const{controlHeight:At,borderRadiusSM:le,skeletonInputCls:xe,controlHeightLG:ae,controlHeightSM:ye,gradientFromColor:Oe}=ft;return{[`${xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe,borderRadius:le},et(At)),[`${xe}-lg`]:Object.assign({},et(ae)),[`${xe}-sm`]:Object.assign({},et(ye))}},rt=ft=>Object.assign({width:ft},Gt(ft)),ht=ft=>{const{skeletonImageCls:At,imageSizeBase:le,gradientFromColor:xe,borderRadiusSM:ae}=ft;return{[`${At}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:xe,borderRadius:ae},rt(le*2)),{[`${At}-path`]:{fill:"#bfbfbf"},[`${At}-svg`]:Object.assign(Object.assign({},rt(le)),{maxWidth:le*4,maxHeight:le*4}),[`${At}-svg${At}-svg-circle`]:{borderRadius:"50%"}}),[`${At}${At}-circle`]:{borderRadius:"50%"}}},dt=(ft,At,le)=>{const{skeletonButtonCls:xe}=ft;return{[`${le}${xe}-circle`]:{width:At,minWidth:At,borderRadius:"50%"},[`${le}${xe}-round`]:{borderRadius:At}}},xt=ft=>Object.assign({width:ft*2,minWidth:ft*2},Gt(ft)),Nt=ft=>{const{borderRadiusSM:At,skeletonButtonCls:le,controlHeight:xe,controlHeightLG:ae,controlHeightSM:ye,gradientFromColor:Oe}=ft;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe,borderRadius:At,width:xe*2,minWidth:xe*2},xt(xe))},dt(ft,xe,le)),{[`${le}-lg`]:Object.assign({},xt(ae))}),dt(ft,ae,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},xt(ye))}),dt(ft,ye,`${le}-sm`))},Ut=ft=>{const{componentCls:At,skeletonAvatarCls:le,skeletonTitleCls:xe,skeletonParagraphCls:ae,skeletonButtonCls:ye,skeletonInputCls:Oe,skeletonImageCls:Te,controlHeight:Me,controlHeightLG:on,controlHeightSM:Wn,gradientFromColor:sn,padding:ln,marginSM:Bn,borderRadius:li,titleHeight:On,blockRadius:Di,paragraphLiHeight:nr,controlHeightXS:Xi,paragraphMarginTop:Mr}=ft;return{[`${At}`]:{display:"table",width:"100%",[`${At}-header`]:{display:"table-cell",paddingInlineEnd:ln,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:sn},Xt(Me)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},Xt(on)),[`${le}-sm`]:Object.assign({},Xt(Wn))},[`${At}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${xe}`]:{width:"100%",height:On,background:sn,borderRadius:Di,[`+ ${ae}`]:{marginBlockStart:Wn}},[`${ae}`]:{padding:0,"> li":{width:"100%",height:nr,listStyle:"none",background:sn,borderRadius:Di,"+ li":{marginBlockStart:Xi}}},[`${ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${At}-content`]:{[`${xe}, ${ae} > li`]:{borderRadius:li}}},[`${At}-with-avatar ${At}-content`]:{[`${xe}`]:{marginBlockStart:Bn,[`+ ${ae}`]:{marginBlockStart:Mr}}},[`${At}${At}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Nt(ft)),tt(ft)),lt(ft)),ht(ft)),[`${At}${At}-block`]:{width:"100%",[`${ye}`]:{width:"100%"},[`${Oe}`]:{width:"100%"}},[`${At}${At}-active`]:{[`
${xe},
${ae} > li,
${le},
${ye},
${Oe},
${Te}
`]:Object.assign({},Ct(ft))}}};var _t=(0,qt.Z)("Skeleton",ft=>{const{componentCls:At}=ft,le=(0,bt.TS)(ft,{skeletonAvatarCls:`${At}-avatar`,skeletonTitleCls:`${At}-title`,skeletonParagraphCls:`${At}-paragraph`,skeletonButtonCls:`${At}-button`,skeletonInputCls:`${At}-input`,skeletonImageCls:`${At}-image`,imageSizeBase:ft.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ft.gradientFromColor} 25%, ${ft.gradientToColor} 37%, ${ft.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ut(le)]},ft=>{const{colorFillContent:At,colorFill:le}=ft,xe=At,ae=le;return{color:xe,colorGradientEnd:ae,gradientFromColor:xe,gradientToColor:ae,titleHeight:ft.controlHeight/2,blockRadius:ft.borderRadiusSM,paragraphMarginTop:ft.marginLG+ft.marginXXS,paragraphLiHeight:ft.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),he=ft=>{const{prefixCls:At,className:le,rootClassName:xe,active:ae,shape:ye="circle",size:Oe="default"}=ft,{getPrefixCls:Te}=re.useContext(Ie.E_),Me=Te("skeleton",At),[on,Wn]=_t(Me),sn=(0,ee.Z)(ft,["prefixCls","className"]),ln=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ae},le,xe,Wn);return on(re.createElement("div",{className:ln},re.createElement(Mt,Object.assign({prefixCls:`${Me}-avatar`,shape:ye,size:Oe},sn))))},Le=ft=>{const{prefixCls:At,className:le,rootClassName:xe,active:ae,block:ye=!1,size:Oe="default"}=ft,{getPrefixCls:Te}=re.useContext(Ie.E_),Me=Te("skeleton",At),[on,Wn]=_t(Me),sn=(0,ee.Z)(ft,["prefixCls"]),ln=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ae,[`${Me}-block`]:ye},le,xe,Wn);return on(re.createElement("div",{className:ln},re.createElement(Mt,Object.assign({prefixCls:`${Me}-button`,size:Oe},sn))))};const te="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Wt=ft=>{const{prefixCls:At,className:le,rootClassName:xe,style:ae,active:ye}=ft,{getPrefixCls:Oe}=re.useContext(Ie.E_),Te=Oe("skeleton",At),[Me,on]=_t(Te),Wn=ce()(Te,`${Te}-element`,{[`${Te}-active`]:ye},le,xe,on);return Me(re.createElement("div",{className:Wn},re.createElement("div",{className:ce()(`${Te}-image`,le),style:ae},re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Te}-image-svg`},re.createElement("path",{d:te,className:`${Te}-image-path`})))))},_e=ft=>{const{prefixCls:At,className:le,rootClassName:xe,active:ae,block:ye,size:Oe="default"}=ft,{getPrefixCls:Te}=re.useContext(Ie.E_),Me=Te("skeleton",At),[on,Wn]=_t(Me),sn=(0,ee.Z)(ft,["prefixCls"]),ln=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ae,[`${Me}-block`]:ye},le,xe,Wn);return on(re.createElement("div",{className:ln},re.createElement(Mt,Object.assign({prefixCls:`${Me}-input`,size:Oe},sn))))},Ne=Ft(92413),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Ue=Ge,ve=Ft(7657),ne=function(At,le){return re.createElement(ve.Z,(0,Ne.Z)({},At,{ref:le,icon:Ue}))},Ce=re.forwardRef(ne),bn=Ce,Ve=ft=>{const{prefixCls:At,className:le,rootClassName:xe,style:ae,active:ye,children:Oe}=ft,{getPrefixCls:Te}=re.useContext(Ie.E_),Me=Te("skeleton",At),[on,Wn]=_t(Me),sn=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ye},Wn,le,xe),ln=Oe!=null?Oe:re.createElement(bn,null);return on(re.createElement("div",{className:sn},re.createElement("div",{className:ce()(`${Me}-image`,le),style:ae},ln)))},Nn=Ft(26407),gi=ft=>{const At=Te=>{const{width:Me,rows:on=2}=ft;if(Array.isArray(Me))return Me[Te];if(on-1===Te)return Me},{prefixCls:le,className:xe,style:ae,rows:ye}=ft,Oe=(0,Nn.Z)(Array(ye)).map((Te,Me)=>re.createElement("li",{key:Me,style:{width:At(Me)}}));return re.createElement("ul",{className:ce()(le,xe),style:ae},Oe)},Pi=ft=>{let{prefixCls:At,className:le,width:xe,style:ae}=ft;return re.createElement("h3",{className:ce()(At,le),style:Object.assign({width:xe},ae)})};function tn(ft){return ft&&typeof ft=="object"?ft:{}}function Li(ft,At){return ft&&!At?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ji(ft,At){return!ft&&At?{width:"38%"}:ft&&At?{width:"50%"}:{}}function Ot(ft,At){const le={};return(!ft||!At)&&(le.width="61%"),!ft&&At?le.rows=3:le.rows=2,le}const Tt=ft=>{const{prefixCls:At,loading:le,className:xe,rootClassName:ae,style:ye,children:Oe,avatar:Te=!1,title:Me=!0,paragraph:on=!0,active:Wn,round:sn}=ft,{getPrefixCls:ln,direction:Bn,skeleton:li}=re.useContext(Ie.E_),On=ln("skeleton",At),[Di,nr]=_t(On);if(le||!("loading"in ft)){const Xi=!!Te,Mr=!!Me,br=!!on;let eo;if(Xi){const Ir=Object.assign(Object.assign({prefixCls:`${On}-avatar`},Li(Mr,br)),tn(Te));eo=re.createElement("div",{className:`${On}-header`},re.createElement(Mt,Object.assign({},Ir)))}let Yr;if(Mr||br){let Ir;if(Mr){const oo=Object.assign(Object.assign({prefixCls:`${On}-title`},ji(Xi,br)),tn(Me));Ir=re.createElement(Pi,Object.assign({},oo))}let Xr;if(br){const oo=Object.assign(Object.assign({prefixCls:`${On}-paragraph`},Ot(Xi,Mr)),tn(on));Xr=re.createElement(gi,Object.assign({},oo))}Yr=re.createElement("div",{className:`${On}-content`},Ir,Xr)}const qr=ce()(On,{[`${On}-with-avatar`]:Xi,[`${On}-active`]:Wn,[`${On}-rtl`]:Bn==="rtl",[`${On}-round`]:sn},li==null?void 0:li.className,xe,ae,nr);return Di(re.createElement("div",{className:qr,style:Object.assign(Object.assign({},li==null?void 0:li.style),ye)},eo,Yr))}return typeof Oe!="undefined"?Oe:null};Tt.Button=Le,Tt.Avatar=he,Tt.Input=_e,Tt.Image=Wt,Tt.Node=Ve;var vt=Tt,gt=vt},81327:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return lt}});var Lt=Ft(59301),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(11592),ee=Ft(36355),Vt=Ft(33234);const Mt=Lt.createContext({latestIndex:0}),jt=Mt.Provider;var bt=rt=>{let{className:ht,index:dt,children:xt,split:Nt,style:Ut}=rt;const{latestIndex:_t}=Lt.useContext(Mt);return xt==null?null:Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:ht,style:Ut},xt),dt<_t&&Nt&&Lt.createElement("span",{className:`${ht}-split`},Nt))},se=Ft(2856);function Gt(rt){return["small","middle","large"].includes(rt)}function Xt(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var Ct=function(rt,ht){var dt={};for(var xt in rt)Object.prototype.hasOwnProperty.call(rt,xt)&&ht.indexOf(xt)<0&&(dt[xt]=rt[xt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,xt=Object.getOwnPropertySymbols(rt);Nt<xt.length;Nt++)ht.indexOf(xt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(rt,xt[Nt])&&(dt[xt[Nt]]=rt[xt[Nt]]);return dt};const tt=Lt.forwardRef((rt,ht)=>{var dt,xt;const{getPrefixCls:Nt,space:Ut,direction:_t}=Lt.useContext(ee.E_),{size:oe=(Ut==null?void 0:Ut.size)||"small",align:he,className:fe,rootClassName:Le,children:te,direction:He="horizontal",prefixCls:Wt,split:Ke,style:_e,wrap:Ne=!1,classNames:Ge,styles:Ue}=rt,ve=Ct(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ne,Ce]=Array.isArray(oe)?oe:[oe,oe],bn=Gt(Ce),Ln=Gt(ne),Ve=Xt(Ce),Nn=Xt(ne),Zn=(0,Ie.Z)(te,{keepEmpty:!0}),gi=he===void 0&&He==="horizontal"?"center":he,Kn=Nt("space",Wt),[Pi,tn]=(0,se.Z)(Kn),Li=re()(Kn,Ut==null?void 0:Ut.className,tn,`${Kn}-${He}`,{[`${Kn}-rtl`]:_t==="rtl",[`${Kn}-align-${gi}`]:gi,[`${Kn}-gap-row-${Ce}`]:bn,[`${Kn}-gap-col-${ne}`]:Ln},fe,Le),ji=re()(`${Kn}-item`,(dt=Ge==null?void 0:Ge.item)!==null&&dt!==void 0?dt:(xt=Ut==null?void 0:Ut.classNames)===null||xt===void 0?void 0:xt.item);let Ot=0;const Tt=Zn.map((ft,At)=>{var le,xe;ft!=null&&(Ot=At);const ae=ft&&ft.key||`${ji}-${At}`;return Lt.createElement(bt,{className:ji,key:ae,index:At,split:Ke,style:(le=Ue==null?void 0:Ue.item)!==null&&le!==void 0?le:(xe=Ut==null?void 0:Ut.styles)===null||xe===void 0?void 0:xe.item},ft)}),vt=Lt.useMemo(()=>({latestIndex:Ot}),[Ot]);if(Zn.length===0)return null;const gt={};return Ne&&(gt.flexWrap="wrap"),!Ln&&Nn&&(gt.columnGap=ne),!bn&&Ve&&(gt.rowGap=Ce),Pi(Lt.createElement("div",Object.assign({ref:ht,className:Li,style:Object.assign(Object.assign(Object.assign({},gt),Ut==null?void 0:Ut.style),_e)},ve),Lt.createElement(jt,{value:vt},Tt)))});tt.Compact=Vt.ZP;var lt=tt},31797:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return _t}});var Lt=Ft(59301),ce=Ft(56762),re=Ft(92343),Ie=Ft(92310),ee=Ft.n(Ie),Vt=Ft(36355),Mt=Ft(61621),qt=oe=>{const{value:he,formatter:fe,precision:Le,decimalSeparator:te,groupSeparator:He="",prefixCls:Wt}=oe;let Ke;if(typeof fe=="function")Ke=fe(he);else{const _e=String(he),Ne=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ne||_e==="-")Ke=_e;else{const Ge=Ne[1];let Ue=Ne[2]||"0",ve=Ne[4]||"";Ue=Ue.replace(/\B(?=(\d{3})+(?!\d))/g,He),typeof Le=="number"&&(ve=ve.padEnd(Le,"0").slice(0,Le>0?Le:0)),ve&&(ve=`${te}${ve}`),Ke=[Lt.createElement("span",{key:"int",className:`${Wt}-content-value-int`},Ge,Ue),ve&&Lt.createElement("span",{key:"decimal",className:`${Wt}-content-value-decimal`},ve)]}}return Lt.createElement("span",{className:`${Wt}-content-value`},Ke)},bt=Ft(17313),se=Ft(83116),Gt=Ft(37613);const Xt=oe=>{const{componentCls:he,marginXXS:fe,padding:Le,colorTextDescription:te,titleFontSize:He,colorTextHeading:Wt,contentFontSize:Ke,fontFamily:_e}=oe;return{[`${he}`]:Object.assign(Object.assign({},(0,bt.Wf)(oe)),{[`${he}-title`]:{marginBottom:fe,color:te,fontSize:He},[`${he}-skeleton`]:{paddingTop:Le},[`${he}-content`]:{color:Wt,fontSize:Ke,fontFamily:_e,[`${he}-content-value`]:{display:"inline-block",direction:"ltr"},[`${he}-content-prefix, ${he}-content-suffix`]:{display:"inline-block"},[`${he}-content-prefix`]:{marginInlineEnd:fe},[`${he}-content-suffix`]:{marginInlineStart:fe}}})}};var Ct=(0,se.Z)("Statistic",oe=>{const he=(0,Gt.TS)(oe,{});return[Xt(he)]},oe=>{const{fontSizeHeading3:he,fontSize:fe}=oe;return{titleFontSize:fe,contentFontSize:he}}),tt=oe=>{const{prefixCls:he,className:fe,rootClassName:Le,style:te,valueStyle:He,value:Wt=0,title:Ke,valueRender:_e,prefix:Ne,suffix:Ge,loading:Ue=!1,onMouseEnter:ve,onMouseLeave:ne,decimalSeparator:Ce=".",groupSeparator:bn=","}=oe,{getPrefixCls:Ln,direction:Ve,statistic:Nn}=Lt.useContext(Vt.E_),Zn=Ln("statistic",he),[gi,Kn]=Ct(Zn),Pi=Lt.createElement(qt,Object.assign({decimalSeparator:Ce,groupSeparator:bn,prefixCls:Zn},oe,{value:Wt})),tn=ee()(Zn,{[`${Zn}-rtl`]:Ve==="rtl"},Nn==null?void 0:Nn.className,fe,Le,Kn);return gi(Lt.createElement("div",{className:tn,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),te),onMouseEnter:ve,onMouseLeave:ne},Ke&&Lt.createElement("div",{className:`${Zn}-title`},Ke),Lt.createElement(Mt.Z,{paragraph:!1,loading:Ue,className:`${Zn}-skeleton`},Lt.createElement("div",{style:He,className:`${Zn}-content`},Ne&&Lt.createElement("span",{className:`${Zn}-content-prefix`},Ne),_e?_e(Pi):Pi,Ge&&Lt.createElement("span",{className:`${Zn}-content-suffix`},Ge)))))};const lt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function rt(oe,he){let fe=oe;const Le=/\[[^\]]*]/g,te=(he.match(Le)||[]).map(_e=>_e.slice(1,-1)),He=he.replace(Le,"[]"),Wt=lt.reduce((_e,Ne)=>{let[Ge,Ue]=Ne;if(_e.includes(Ge)){const ve=Math.floor(fe/Ue);return fe-=ve*Ue,_e.replace(new RegExp(`${Ge}+`,"g"),ne=>{const Ce=ne.length;return ve.toString().padStart(Ce,"0")})}return _e},He);let Ke=0;return Wt.replace(Le,()=>{const _e=te[Ke];return Ke+=1,_e})}function ht(oe,he){const{format:fe=""}=he,Le=new Date(oe).getTime(),te=Date.now(),He=Math.max(Le-te,0);return rt(He,fe)}const dt=1e3/30;function xt(oe){return new Date(oe).getTime()}const Nt=oe=>{const{value:he,format:fe="HH:mm:ss",onChange:Le,onFinish:te}=oe,He=(0,ce.Z)(),Wt=Lt.useRef(null),Ke=()=>{te==null||te(),Wt.current&&(clearInterval(Wt.current),Wt.current=null)},_e=()=>{const Ue=xt(he);Ue>=Date.now()&&(Wt.current=setInterval(()=>{He(),Le==null||Le(Ue-Date.now()),Ue<Date.now()&&Ke()},dt))};Lt.useEffect(()=>(_e(),()=>{Wt.current&&(clearInterval(Wt.current),Wt.current=null)}),[he]);const Ne=(Ue,ve)=>ht(Ue,Object.assign(Object.assign({},ve),{format:fe})),Ge=Ue=>(0,re.Tm)(Ue,{title:void 0});return Lt.createElement(tt,Object.assign({},oe,{valueRender:Ge,formatter:Ne}))};var Ut=Lt.memo(Nt);tt.Countdown=Ut;var _t=tt},15969:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{N:function(){return Lt}});const Lt=ce=>({color:ce.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ce.motionDurationSlow}`,"&:focus, &:hover":{color:ce.colorLinkHover},"&:active":{color:ce.colorLinkActive}})},78673:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return He}});var Lt=Ft(58617),ce=Ft(92310),re=Ft.n(ce),Ie=Ft(92413),ee=Ft(400),Vt=Ft(33606),Mt=Ft(37061),jt=Ft(59301),qt=Ft(18929),bt=Ft(10228),se=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Gt=jt.forwardRef(function(Wt,Ke){var _e,Ne=Wt.prefixCls,Ge=Ne===void 0?"rc-switch":Ne,Ue=Wt.className,ve=Wt.checked,ne=Wt.defaultChecked,Ce=Wt.disabled,bn=Wt.loadingIcon,Ln=Wt.checkedChildren,Ve=Wt.unCheckedChildren,Nn=Wt.onClick,Zn=Wt.onChange,gi=Wt.onKeyDown,Kn=(0,Mt.Z)(Wt,se),Pi=(0,qt.Z)(!1,{value:ve,defaultValue:ne}),tn=(0,Vt.Z)(Pi,2),Li=tn[0],ji=tn[1];function Ot(ft,At){var le=Li;return Ce||(le=ft,ji(le),Zn==null||Zn(le,At)),le}function Tt(ft){ft.which===bt.Z.LEFT?Ot(!1,ft):ft.which===bt.Z.RIGHT&&Ot(!0,ft),gi==null||gi(ft)}function vt(ft){var At=Ot(!Li,ft);Nn==null||Nn(At,ft)}var gt=re()(Ge,Ue,(_e={},(0,ee.Z)(_e,"".concat(Ge,"-checked"),Li),(0,ee.Z)(_e,"".concat(Ge,"-disabled"),Ce),_e));return jt.createElement("button",(0,Ie.Z)({},Kn,{type:"button",role:"switch","aria-checked":Li,disabled:Ce,className:gt,ref:Ke,onKeyDown:Tt,onClick:vt}),bn,jt.createElement("span",{className:"".concat(Ge,"-inner")},jt.createElement("span",{className:"".concat(Ge,"-inner-checked")},Ln),jt.createElement("span",{className:"".concat(Ge,"-inner-unchecked")},Ve)))});Gt.displayName="Switch";var Xt=Gt,Ct=Ft(14088),et=Ft(36355),tt=Ft(1684),lt=Ft(19716),rt=Ft(64993),ht=Ft(17313),dt=Ft(83116),xt=Ft(37613);const Nt=Wt=>{const{componentCls:Ke,trackHeightSM:_e,trackPadding:Ne,trackMinWidthSM:Ge,innerMinMarginSM:Ue,innerMaxMarginSM:ve,handleSizeSM:ne}=Wt,Ce=`${Ke}-inner`;return{[Ke]:{[`&${Ke}-small`]:{minWidth:Ge,height:_e,lineHeight:`${_e}px`,[`${Ke}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Ue,[`${Ce}-checked`]:{marginInlineStart:`calc(-100% + ${ne+Ne*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${ne+Ne*2}px + ${ve*2}px)`},[`${Ce}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`${Ke}-handle`]:{width:ne,height:ne},[`${Ke}-loading-icon`]:{top:(ne-Wt.switchLoadingIconSize)/2,fontSize:Wt.switchLoadingIconSize},[`&${Ke}-checked`]:{[`${Ke}-inner`]:{paddingInlineStart:Ue,paddingInlineEnd:ve,[`${Ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ce}-unchecked`]:{marginInlineStart:`calc(100% - ${ne+Ne*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${ne+Ne*2}px - ${ve*2}px)`}},[`${Ke}-handle`]:{insetInlineStart:`calc(100% - ${ne+Ne}px)`}},[`&:not(${Ke}-disabled):active`]:{[`&:not(${Ke}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:Wt.marginXXS/2,marginInlineEnd:-Wt.marginXXS/2}},[`&${Ke}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:-Wt.marginXXS/2,marginInlineEnd:Wt.marginXXS/2}}}}}}},Ut=Wt=>{const{componentCls:Ke,handleSize:_e}=Wt;return{[Ke]:{[`${Ke}-loading-icon${Wt.iconCls}`]:{position:"relative",top:(_e-Wt.fontSize)/2,color:Wt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ke}-checked ${Ke}-loading-icon`]:{color:Wt.switchColor}}}},_t=Wt=>{const{componentCls:Ke,motion:_e,trackPadding:Ne,handleBg:Ge,handleShadow:Ue,handleSize:ve}=Wt,ne=`${Ke}-handle`;return{[Ke]:{[ne]:{position:"absolute",top:Ne,insetInlineStart:Ne,width:ve,height:ve,transition:`all ${Wt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ge,borderRadius:ve/2,boxShadow:Ue,transition:`all ${Wt.switchDuration} ease-in-out`,content:'""'}},[`&${Ke}-checked ${ne}`]:{insetInlineStart:`calc(100% - ${ve+Ne}px)`},[`&:not(${Ke}-disabled):active`]:_e?{[`${ne}::before`]:{insetInlineEnd:Wt.switchHandleActiveInset,insetInlineStart:0},[`&${Ke}-checked ${ne}::before`]:{insetInlineEnd:0,insetInlineStart:Wt.switchHandleActiveInset}}:{}}}},oe=Wt=>{const{componentCls:Ke,trackHeight:_e,trackPadding:Ne,innerMinMargin:Ge,innerMaxMargin:Ue,handleSize:ve}=Wt,ne=`${Ke}-inner`;return{[Ke]:{[ne]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ue,paddingInlineEnd:Ge,transition:`padding-inline-start ${Wt.switchDuration} ease-in-out, padding-inline-end ${Wt.switchDuration} ease-in-out`,[`${ne}-checked, ${ne}-unchecked`]:{display:"block",color:Wt.colorTextLightSolid,fontSize:Wt.fontSizeSM,transition:`margin-inline-start ${Wt.switchDuration} ease-in-out, margin-inline-end ${Wt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ne}-checked`]:{marginInlineStart:`calc(-100% + ${ve+Ne*2}px - ${Ue*2}px)`,marginInlineEnd:`calc(100% - ${ve+Ne*2}px + ${Ue*2}px)`},[`${ne}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`&${Ke}-checked ${ne}`]:{paddingInlineStart:Ge,paddingInlineEnd:Ue,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${ve+Ne*2}px + ${Ue*2}px)`,marginInlineEnd:`calc(-100% + ${ve+Ne*2}px - ${Ue*2}px)`}},[`&:not(${Ke}-disabled):active`]:{[`&:not(${Ke}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:Ne*2,marginInlineEnd:-Ne*2}},[`&${Ke}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:-Ne*2,marginInlineEnd:Ne*2}}}}}},he=Wt=>{const{componentCls:Ke,trackHeight:_e,trackMinWidth:Ne}=Wt;return{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Wt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ne,height:_e,lineHeight:`${_e}px`,verticalAlign:"middle",background:Wt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Wt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ke}-disabled)`]:{background:Wt.colorTextTertiary}}),(0,ht.Qy)(Wt)),{[`&${Ke}-checked`]:{background:Wt.switchColor,[`&:hover:not(${Ke}-disabled)`]:{background:Wt.colorPrimaryHover}},[`&${Ke}-loading, &${Ke}-disabled`]:{cursor:"not-allowed",opacity:Wt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ke}-rtl`]:{direction:"rtl"}})}};var fe=(0,dt.Z)("Switch",Wt=>{const Ke=(0,xt.TS)(Wt,{switchDuration:Wt.motionDurationMid,switchColor:Wt.colorPrimary,switchDisabledOpacity:Wt.opacityLoading,switchLoadingIconSize:Wt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Wt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[he(Ke),oe(Ke),_t(Ke),Ut(Ke),Nt(Ke)]},Wt=>{const{fontSize:Ke,lineHeight:_e,controlHeight:Ne,colorWhite:Ge}=Wt,Ue=Ke*_e,ve=Ne/2,ne=2,Ce=Ue-ne*2,bn=ve-ne*2;return{trackHeight:Ue,trackHeightSM:ve,trackMinWidth:Ce*2+ne*4,trackMinWidthSM:bn*2+ne*2,trackPadding:ne,handleBg:Ge,handleSize:Ce,handleSizeSM:bn,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ce/2,innerMaxMargin:Ce+ne+ne*2,innerMinMarginSM:bn/2,innerMaxMarginSM:bn+ne+ne*2}}),Le=function(Wt,Ke){var _e={};for(var Ne in Wt)Object.prototype.hasOwnProperty.call(Wt,Ne)&&Ke.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(Wt);Ge<Ne.length;Ge++)Ke.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ne[Ge])&&(_e[Ne[Ge]]=Wt[Ne[Ge]]);return _e};const te=jt.forwardRef((Wt,Ke)=>{const{prefixCls:_e,size:Ne,disabled:Ge,loading:Ue,className:ve,rootClassName:ne,style:Ce}=Wt,bn=Le(Wt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Ln,direction:Ve,switch:Nn}=jt.useContext(et.E_),Zn=jt.useContext(tt.Z),gi=(Ge!=null?Ge:Zn)||Ue,Kn=Ln("switch",_e),Pi=jt.createElement("div",{className:`${Kn}-handle`},Ue&&jt.createElement(Lt.Z,{className:`${Kn}-loading-icon`})),[tn,Li]=fe(Kn),ji=(0,lt.Z)(Ne),Ot=re()(Nn==null?void 0:Nn.className,{[`${Kn}-small`]:ji==="small",[`${Kn}-loading`]:Ue,[`${Kn}-rtl`]:Ve==="rtl"},ve,ne,Li),Tt=Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Ce);return tn(jt.createElement(Ct.Z,{component:"Switch"},jt.createElement(Xt,Object.assign({},bn,{prefixCls:Kn,className:Ot,style:Tt,disabled:gi,ref:Ke,loadingIcon:Pi}))))});te.__ANT_SWITCH=!0;var He=te},1710:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return oi}});var Lt={},ce="rc-table-internal-hook",re=Ft(33606),Ie=Ft(6089),ee=Ft(34280),Vt=Ft(13697),Mt=Ft(59301),jt=Ft(4676);function qt(pe){var me=Mt.createContext(void 0),Ze=function(mn){var en=mn.value,Tn=mn.children,Un=Mt.useRef(en);Un.current=en;var qn=Mt.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),Qe=(0,re.Z)(qn,1),un=Qe[0];return(0,ee.Z)(function(){(0,jt.unstable_batchedUpdates)(function(){un.listeners.forEach(function(pn){pn(en)})})},[en]),Mt.createElement(me.Provider,{value:un},Tn)};return{Context:me,Provider:Ze,defaultValue:pe}}function bt(pe,me){var Ze=(0,Ie.Z)(typeof me=="function"?me:function(pn){if(me===void 0)return pn;if(!Array.isArray(me))return pn[me];var Qn={};return me.forEach(function($n){Qn[$n]=pn[$n]}),Qn}),Ye=Mt.useContext(pe==null?void 0:pe.Context),mn=Ye||{},en=mn.listeners,Tn=mn.getValue,Un=Mt.useRef();Un.current=Ze(Ye?Tn():pe==null?void 0:pe.defaultValue);var qn=Mt.useState({}),Qe=(0,re.Z)(qn,2),un=Qe[1];return(0,ee.Z)(function(){if(!Ye)return;function pn(Qn){var $n=Ze(Qn);(0,Vt.Z)(Un.current,$n,!0)||un({})}return en.add(pn),function(){en.delete(pn)}},[Ye]),Un.current}var se=Ft(92413),Gt=Ft(8654);function Xt(){var pe=Mt.createContext(null);function me(){return Mt.useContext(pe)}function Ze(mn,en){var Tn=(0,Gt.Yr)(mn),Un=function(Qe,un){var pn=Tn?{ref:un}:{},Qn=Mt.useRef(0),$n=Mt.useRef(Qe),ri=me();return ri!==null?Mt.createElement(mn,(0,se.Z)({},Qe,pn)):((!en||en($n.current,Qe))&&(Qn.current+=1),$n.current=Qe,Mt.createElement(pe.Provider,{value:Qn.current},Mt.createElement(mn,(0,se.Z)({},Qe,pn))))};return Tn?Mt.forwardRef(Un):Un}function Ye(mn,en){var Tn=(0,Gt.Yr)(mn),Un=function(Qe,un){var pn=Tn?{ref:un}:{};return me(),Mt.createElement(mn,(0,se.Z)({},Qe,pn))};return Tn?Mt.memo(Mt.forwardRef(Un),en):Mt.memo(Un,en)}return{makeImmutable:Ze,responseImmutable:Ye,useImmutableMark:me}}var Ct=Xt(),et=Ct.makeImmutable,tt=Ct.responseImmutable,lt=Ct.useImmutableMark,rt=Xt(),ht=rt.makeImmutable,dt=rt.responseImmutable,xt=rt.useImmutableMark,Nt=qt(),Ut=Nt;function _t(pe,me){var Ze=Mt.useRef(0);Ze.current+=1;var Ye=Mt.useRef(pe),mn=[];Object.keys(pe||{}).map(function(Tn){var Un;(pe==null?void 0:pe[Tn])!==((Un=Ye.current)===null||Un===void 0?void 0:Un[Tn])&&mn.push(Tn)}),Ye.current=pe;var en=Mt.useRef([]);return mn.length&&(en.current=mn),Mt.useDebugValue(Ze.current),Mt.useDebugValue(en.current.join(", ")),me&&console.log("".concat(me,":"),Ze.current,en.current),Ze.current}var oe=null,he=Mt.memo(function(){var pe=_t();return Mt.createElement("h1",null,"Render Times: ",pe)});he.displayName="RenderBlock";var fe=Ft(39559),Le=Ft(33708),te=Ft(400),He=Ft(92310),Wt=Ft.n(He),Ke=Ft(80547),_e=Ft(97938),Ne=Ft(48736),Ge=Mt.createContext({renderWithProps:!1}),Ue=Ge,ve="RC_TABLE_KEY";function ne(pe){return pe==null?[]:Array.isArray(pe)?pe:[pe]}function Ce(pe){var me=[],Ze={};return pe.forEach(function(Ye){for(var mn=Ye||{},en=mn.key,Tn=mn.dataIndex,Un=en||ne(Tn).join("-")||ve;Ze[Un];)Un="".concat(Un,"_next");Ze[Un]=!0,me.push(Un)}),me}function bn(pe){return pe!=null}function Ln(pe){return pe&&(0,fe.Z)(pe)==="object"&&!Array.isArray(pe)&&!Mt.isValidElement(pe)}function Ve(pe,me,Ze,Ye,mn,en){var Tn=Mt.useContext(Ue),Un=xt(),qn=(0,Ke.Z)(function(){if(bn(Ye))return[Ye];var Qe=me==null||me===""?[]:Array.isArray(me)?me:[me],un=(0,_e.Z)(pe,Qe),pn=un,Qn=void 0;if(mn){var $n=mn(un,pe,Ze);Ln($n)?(pn=$n.children,Qn=$n.props,Tn.renderWithProps=!0):pn=$n}return[pn,Qn]},[Un,pe,Ye,me,mn,Ze],function(Qe,un){if(en){var pn=(0,re.Z)(Qe,2),Qn=pn[1],$n=(0,re.Z)(un,2),ri=$n[1];return en(ri,Qn)}return Tn.renderWithProps?!0:!(0,Vt.Z)(Qe,un,!0)});return qn}function Nn(pe,me,Ze,Ye){var mn=pe+me-1;return pe<=Ye&&mn>=Ze}function Zn(pe,me){return bt(Ut,function(Ze){var Ye=Nn(pe,me||1,Ze.hoverStartRow,Ze.hoverEndRow);return[Ye,Ze.onHover]})}var gi=function(me){var Ze=me.ellipsis,Ye=me.rowType,mn=me.children,en,Tn=Ze===!0?{showTitle:!0}:Ze;return Tn&&(Tn.showTitle||Ye==="header")&&(typeof mn=="string"||typeof mn=="number"?en=mn.toString():Mt.isValidElement(mn)&&typeof mn.props.children=="string"&&(en=mn.props.children)),en};function Kn(pe){var me,Ze,Ye,mn,en,Tn,Un,qn,Qe=pe.component,un=pe.children,pn=pe.ellipsis,Qn=pe.scope,$n=pe.prefixCls,ri=pe.className,Fi=pe.align,ui=pe.record,Ji=pe.render,Zi=pe.dataIndex,Ar=pe.renderIndex,Er=pe.shouldCellUpdate,io=pe.index,ki=pe.rowType,Yn=pe.colSpan,Bo=pe.rowSpan,Pr=pe.fixLeft,sr=pe.fixRight,ar=pe.firstFixLeft,er=pe.lastFixLeft,vr=pe.firstFixRight,Vr=pe.lastFixRight,ho=pe.appendNode,po=pe.additionalProps,_r=po===void 0?{}:po,Do=pe.isSticky,us="".concat($n,"-cell"),Yo=bt(Ut,["supportSticky","allColumnsFixedLeft"]),ns=Yo.supportSticky,So=Yo.allColumnsFixedLeft,va=Ve(ui,Zi,Ar,un,Ji,Er),Vo=(0,re.Z)(va,2),rs=Vo[0],Cs=Vo[1],ta={},Da=typeof Pr=="number"&&ns,Ys=typeof sr=="number"&&ns;Da&&(ta.position="sticky",ta.left=Pr),Ys&&(ta.position="sticky",ta.right=sr);var Ko=(me=(Ze=(Ye=Cs==null?void 0:Cs.colSpan)!==null&&Ye!==void 0?Ye:_r.colSpan)!==null&&Ze!==void 0?Ze:Yn)!==null&&me!==void 0?me:1,Go=(mn=(en=(Tn=Cs==null?void 0:Cs.rowSpan)!==null&&Tn!==void 0?Tn:_r.rowSpan)!==null&&en!==void 0?en:Bo)!==null&&mn!==void 0?mn:1,As=Zn(io,Go),es=(0,re.Z)(As,2),Os=es[0],ro=es[1],Wo=function(fo){var ja;ui&&ro(io,io+Go-1),_r==null||(ja=_r.onMouseEnter)===null||ja===void 0||ja.call(_r,fo)},aa=function(fo){var ja;ui&&ro(-1,-1),_r==null||(ja=_r.onMouseLeave)===null||ja===void 0||ja.call(_r,fo)};if(Ko===0||Go===0)return null;var Us=(Un=_r.title)!==null&&Un!==void 0?Un:gi({rowType:ki,ellipsis:pn,children:rs}),zl=Wt()(us,ri,(qn={},(0,te.Z)(qn,"".concat(us,"-fix-left"),Da&&ns),(0,te.Z)(qn,"".concat(us,"-fix-left-first"),ar&&ns),(0,te.Z)(qn,"".concat(us,"-fix-left-last"),er&&ns),(0,te.Z)(qn,"".concat(us,"-fix-left-all"),er&&So&&ns),(0,te.Z)(qn,"".concat(us,"-fix-right"),Ys&&ns),(0,te.Z)(qn,"".concat(us,"-fix-right-first"),vr&&ns),(0,te.Z)(qn,"".concat(us,"-fix-right-last"),Vr&&ns),(0,te.Z)(qn,"".concat(us,"-ellipsis"),pn),(0,te.Z)(qn,"".concat(us,"-with-append"),ho),(0,te.Z)(qn,"".concat(us,"-fix-sticky"),(Da||Ys)&&Do&&ns),(0,te.Z)(qn,"".concat(us,"-row-hover"),!Cs&&Os),qn),_r.className,Cs==null?void 0:Cs.className),Fl={};Fi&&(Fl.textAlign=Fi);var Ps=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},ta),_r.style),Fl),Cs==null?void 0:Cs.style),ca=rs;return(0,fe.Z)(ca)==="object"&&!Array.isArray(ca)&&!Mt.isValidElement(ca)&&(ca=null),pn&&(er||vr)&&(ca=Mt.createElement("span",{className:"".concat(us,"-content")},ca)),Mt.createElement(Qe,(0,se.Z)({},Cs,_r,{className:zl,style:Ps,title:Us,scope:Qn,onMouseEnter:Wo,onMouseLeave:aa,colSpan:Ko!==1?Ko:null,rowSpan:Go!==1?Go:null}),ho,ca)}var Pi=Mt.memo(Kn);function tn(pe,me,Ze,Ye,mn,en){var Tn=Ze[pe]||{},Un=Ze[me]||{},qn,Qe;Tn.fixed==="left"?qn=Ye.left[mn==="rtl"?me:pe]:Un.fixed==="right"&&(Qe=Ye.right[mn==="rtl"?pe:me]);var un=!1,pn=!1,Qn=!1,$n=!1,ri=Ze[me+1],Fi=Ze[pe-1],ui=!(en!=null&&en.children);if(mn==="rtl"){if(qn!==void 0){var Ji=Fi&&Fi.fixed==="left";$n=!Ji&&ui}else if(Qe!==void 0){var Zi=ri&&ri.fixed==="right";Qn=!Zi&&ui}}else if(qn!==void 0){var Ar=ri&&ri.fixed==="left";un=!Ar&&ui}else if(Qe!==void 0){var Er=Fi&&Fi.fixed==="right";pn=!Er&&ui}return{fixLeft:qn,fixRight:Qe,lastFixLeft:un,firstFixRight:pn,lastFixRight:Qn,firstFixLeft:$n,isSticky:Ye.isSticky}}var Li=Mt.createContext({}),ji=Li;function Ot(pe){var me=pe.className,Ze=pe.index,Ye=pe.children,mn=pe.colSpan,en=mn===void 0?1:mn,Tn=pe.rowSpan,Un=pe.align,qn=bt(Ut,["prefixCls","direction"]),Qe=qn.prefixCls,un=qn.direction,pn=Mt.useContext(ji),Qn=pn.scrollColumnIndex,$n=pn.stickyOffsets,ri=pn.flattenColumns,Fi=pn.columns,ui=Ze+en-1,Ji=ui+1===Qn?en+1:en,Zi=tn(Ze,Ze+Ji-1,ri,$n,un,Fi==null?void 0:Fi[Ze]);return Mt.createElement(Pi,(0,se.Z)({className:me,index:Ze,component:"td",prefixCls:Qe,record:null,dataIndex:null,align:Un,colSpan:Ji,rowSpan:Tn,render:function(){return Ye}},Zi))}var Tt=Ft(37061),vt=["children"];function gt(pe){var me=pe.children,Ze=(0,Tt.Z)(pe,vt);return Mt.createElement("tr",Ze,me)}function ft(pe){var me=pe.children;return me}ft.Row=gt,ft.Cell=Ot;var At=ft;function le(pe){var me=pe.children,Ze=pe.stickyOffsets,Ye=pe.flattenColumns,mn=pe.columns,en=bt(Ut,"prefixCls"),Tn=Ye.length-1,Un=Ye[Tn],qn=Mt.useMemo(function(){return{stickyOffsets:Ze,flattenColumns:Ye,scrollColumnIndex:Un!=null&&Un.scrollbar?Tn:null,columns:mn}},[Un,Ye,Tn,Ze,mn]);return Mt.createElement(ji.Provider,{value:qn},Mt.createElement("tfoot",{className:"".concat(en,"-summary")},me))}var xe=dt(le),ae=At,ye=Ft(70425),Oe=Ft(29301),Te=Ft(29194),Me=Ft(24514),on=Ft(75152),Wn=Ft(26112);function sn(pe,me,Ze,Ye,mn,en,Tn){pe.push({record:me,indent:Ze,index:Tn});var Un=en(me),qn=mn==null?void 0:mn.has(Un);if(me&&Array.isArray(me[Ye])&&qn)for(var Qe=0;Qe<me[Ye].length;Qe+=1)sn(pe,me[Ye][Qe],Ze+1,Ye,mn,en,Qe)}function ln(pe,me,Ze,Ye){var mn=Mt.useMemo(function(){if(Ze!=null&&Ze.size){for(var en=[],Tn=0;Tn<(pe==null?void 0:pe.length);Tn+=1){var Un=pe[Tn];sn(en,Un,0,me,Ze,Ye,Tn)}return en}return pe==null?void 0:pe.map(function(qn,Qe){return{record:qn,indent:0,index:Qe}})},[pe,me,Ze,Ye]);return mn}function Bn(pe){var me=pe.prefixCls,Ze=pe.children,Ye=pe.component,mn=pe.cellComponent,en=pe.className,Tn=pe.expanded,Un=pe.colSpan,qn=pe.isEmpty,Qe=bt(Ut,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),un=Qe.scrollbarSize,pn=Qe.fixHeader,Qn=Qe.fixColumn,$n=Qe.componentWidth,ri=Qe.horizonScroll,Fi=Ze;return(qn?ri&&$n:Qn)&&(Fi=Mt.createElement("div",{style:{width:$n-(pn?un:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},Fi)),Mt.createElement(Ye,{className:en,style:{display:Tn?null:"none"}},Mt.createElement(Pi,{component:mn,prefixCls:me,colSpan:Un},Fi))}var li=Bn;function On(pe,me,Ze,Ye){var mn=bt(Ut,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),en=mn.flattenColumns,Tn=mn.expandableType,Un=mn.expandedKeys,qn=mn.childrenColumnName,Qe=mn.onTriggerExpand,un=mn.rowExpandable,pn=mn.onRow,Qn=mn.expandRowByClick,$n=mn.rowClassName,ri=Tn==="nest",Fi=Tn==="row"&&(!un||un(pe)),ui=Fi||ri,Ji=Un&&Un.has(me),Zi=qn&&pe&&pe[qn],Ar=(0,ye.useEvent)(Qe),Er=pn==null?void 0:pn(pe,Ze),io=Er==null?void 0:Er.onClick,ki=function(sr){Qn&&ui&&Qe(pe,sr);for(var ar=arguments.length,er=new Array(ar>1?ar-1:0),vr=1;vr<ar;vr++)er[vr-1]=arguments[vr];io==null||io.apply(void 0,[sr].concat(er))},Yn;typeof $n=="string"?Yn=$n:typeof $n=="function"&&(Yn=$n(pe,Ze,Ye));var Bo=Ce(en);return(0,Le.Z)((0,Le.Z)({},mn),{},{columnsKey:Bo,nestExpandable:ri,expanded:Ji,hasNestChildren:Zi,record:pe,onTriggerExpand:Ar,rowSupportExpand:Fi,expandable:ui,rowProps:(0,Le.Z)((0,Le.Z)({},Er),{},{className:Wt()(Yn,Er==null?void 0:Er.className),onClick:ki})})}function Di(pe,me,Ze,Ye,mn){var en=pe.record,Tn=pe.prefixCls,Un=pe.columnsKey,qn=pe.fixedInfoList,Qe=pe.expandIconColumnIndex,un=pe.nestExpandable,pn=pe.indentSize,Qn=pe.expandIcon,$n=pe.expanded,ri=pe.hasNestChildren,Fi=pe.onTriggerExpand,ui=Un[Ze],Ji=qn[Ze],Zi;Ze===(Qe||0)&&un&&(Zi=Mt.createElement(Mt.Fragment,null,Mt.createElement("span",{style:{paddingLeft:"".concat(pn*Ye,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(Ye)}),Qn({prefixCls:Tn,expanded:$n,expandable:ri,record:en,onExpand:Fi})));var Ar;return me.onCell&&(Ar=me.onCell(en,mn)),{key:ui,fixedInfo:Ji,appendCellNode:Zi,additionalCellProps:Ar||{}}}function nr(pe){var me=pe.className,Ze=pe.style,Ye=pe.record,mn=pe.index,en=pe.renderIndex,Tn=pe.rowKey,Un=pe.indent,qn=Un===void 0?0:Un,Qe=pe.rowComponent,un=pe.cellComponent,pn=pe.scopeCellComponent,Qn=On(Ye,Tn,mn,qn),$n=Qn.prefixCls,ri=Qn.flattenColumns,Fi=Qn.expandedRowClassName,ui=Qn.expandedRowRender,Ji=Qn.rowProps,Zi=Qn.expanded,Ar=Qn.rowSupportExpand,Er=Mt.useState(!1),io=(0,re.Z)(Er,2),ki=io[0],Yn=io[1];Mt.useEffect(function(){Zi&&Yn(!0)},[Zi]);var Bo=Mt.createElement(Qe,(0,se.Z)({},Ji,{"data-row-key":Tn,className:Wt()(me,"".concat($n,"-row"),"".concat($n,"-row-level-").concat(qn),Ji==null?void 0:Ji.className),style:(0,Le.Z)((0,Le.Z)({},Ze),Ji==null?void 0:Ji.style)}),ri.map(function(er,vr){var Vr=er.render,ho=er.dataIndex,po=er.className,_r=Di(Qn,er,vr,qn,mn),Do=_r.key,us=_r.fixedInfo,Yo=_r.appendCellNode,ns=_r.additionalCellProps;return Mt.createElement(Pi,(0,se.Z)({className:po,ellipsis:er.ellipsis,align:er.align,scope:er.rowScope,component:er.rowScope?pn:un,prefixCls:$n,key:Do,record:Ye,index:mn,renderIndex:en,dataIndex:ho,render:Vr,shouldCellUpdate:er.shouldCellUpdate},us,{appendNode:Yo,additionalProps:ns}))})),Pr;if(Ar&&(ki||Zi)){var sr=ui(Ye,mn,qn+1,Zi),ar=Fi&&Fi(Ye,mn,qn);Pr=Mt.createElement(li,{expanded:Zi,className:Wt()("".concat($n,"-expanded-row"),"".concat($n,"-expanded-row-level-").concat(qn+1),ar),prefixCls:$n,component:Qe,cellComponent:un,colSpan:ri.length,isEmpty:!1},sr)}return Mt.createElement(Mt.Fragment,null,Bo,Pr)}nr.displayName="BodyRow";var Xi=dt(nr);function Mr(pe){var me=pe.columnKey,Ze=pe.onColumnResize,Ye=Mt.useRef();return Mt.useEffect(function(){Ye.current&&Ze(me,Ye.current.offsetWidth)},[]),Mt.createElement(Oe.Z,{data:me},Mt.createElement("td",{ref:Ye,style:{padding:0,border:0,height:0}},Mt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function br(pe){var me=pe.prefixCls,Ze=pe.columnsKey,Ye=pe.onColumnResize;return Mt.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0}},Mt.createElement(Oe.Z.Collection,{onBatchResize:function(en){en.forEach(function(Tn){var Un=Tn.data,qn=Tn.size;Ye(Un,qn.offsetWidth)})}},Ze.map(function(mn){return Mt.createElement(Mr,{key:mn,columnKey:mn,onColumnResize:Ye})})))}function eo(pe){var me=pe.data,Ze=pe.measureColumnWidth,Ye=bt(Ut,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),mn=Ye.prefixCls,en=Ye.getComponent,Tn=Ye.onColumnResize,Un=Ye.flattenColumns,qn=Ye.getRowKey,Qe=Ye.expandedKeys,un=Ye.childrenColumnName,pn=Ye.emptyNode,Qn=ln(me,un,Qe,qn),$n=Mt.useRef({renderWithProps:!1}),ri=en(["body","wrapper"],"tbody"),Fi=en(["body","row"],"tr"),ui=en(["body","cell"],"td"),Ji=en(["body","cell"],"th"),Zi;me.length?Zi=Qn.map(function(Er,io){var ki=Er.record,Yn=Er.indent,Bo=Er.index,Pr=qn(ki,io);return Mt.createElement(Xi,{key:Pr,rowKey:Pr,record:ki,index:io,renderIndex:Bo,rowComponent:Fi,cellComponent:ui,scopeCellComponent:Ji,getRowKey:qn,indent:Yn})}):Zi=Mt.createElement(li,{expanded:!0,className:"".concat(mn,"-placeholder"),prefixCls:mn,component:Fi,cellComponent:ui,colSpan:Un.length,isEmpty:!0},pn);var Ar=Ce(Un);return Mt.createElement(Ue.Provider,{value:$n.current},Mt.createElement(ri,{className:"".concat(mn,"-tbody")},Ze&&Mt.createElement(br,{prefixCls:mn,columnsKey:Ar,onColumnResize:Tn}),Zi))}eo.displayName="Body";var Yr=dt(eo),qr=["expandable"],Ir="RC_TABLE_INTERNAL_COL_DEFINE";function Xr(pe){var me=pe.expandable,Ze=(0,Tt.Z)(pe,qr),Ye;return"expandable"in pe?Ye=(0,Le.Z)((0,Le.Z)({},Ze),me):Ye=Ze,Ye.showExpandColumn===!1&&(Ye.expandIconColumnIndex=-1),Ye}var oo=["columnType"];function jo(pe){for(var me=pe.colWidths,Ze=pe.columns,Ye=pe.columCount,mn=[],en=Ye||Ze.length,Tn=!1,Un=en-1;Un>=0;Un-=1){var qn=me[Un],Qe=Ze&&Ze[Un],un=Qe&&Qe[Ir];if(qn||un||Tn){var pn=un||{},Qn=pn.columnType,$n=(0,Tt.Z)(pn,oo);mn.unshift(Mt.createElement("col",(0,se.Z)({key:Un,style:{width:qn}},$n))),Tn=!0}}return Mt.createElement("colgroup",null,mn)}var ds=jo,no=Ft(26407),Is=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function xo(pe,me){return(0,Mt.useMemo)(function(){for(var Ze=[],Ye=0;Ye<me;Ye+=1){var mn=pe[Ye];if(mn!==void 0)Ze[Ye]=mn;else return null}return Ze},[pe.join("_"),me])}var $t=Mt.forwardRef(function(pe,me){var Ze=pe.className,Ye=pe.noData,mn=pe.columns,en=pe.flattenColumns,Tn=pe.colWidths,Un=pe.columCount,qn=pe.stickyOffsets,Qe=pe.direction,un=pe.fixHeader,pn=pe.stickyTopOffset,Qn=pe.stickyBottomOffset,$n=pe.stickyClassName,ri=pe.onScroll,Fi=pe.maxContentScroll,ui=pe.children,Ji=(0,Tt.Z)(pe,Is),Zi=bt(Ut,["prefixCls","scrollbarSize","isSticky"]),Ar=Zi.prefixCls,Er=Zi.scrollbarSize,io=Zi.isSticky,ki=io&&!un?0:Er,Yn=Mt.useRef(null),Bo=Mt.useCallback(function(po){(0,Gt.mH)(me,po),(0,Gt.mH)(Yn,po)},[]);Mt.useEffect(function(){var po;function _r(Do){var us=Do,Yo=us.currentTarget,ns=us.deltaX;ns&&(ri({currentTarget:Yo,scrollLeft:Yo.scrollLeft+ns}),Do.preventDefault())}return(po=Yn.current)===null||po===void 0||po.addEventListener("wheel",_r),function(){var Do;(Do=Yn.current)===null||Do===void 0||Do.removeEventListener("wheel",_r)}},[]);var Pr=Mt.useMemo(function(){return en.every(function(po){return po.width})},[en]),sr=en[en.length-1],ar={fixed:sr?sr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ar,"-cell-scrollbar")}}},er=(0,Mt.useMemo)(function(){return ki?[].concat((0,no.Z)(mn),[ar]):mn},[ki,mn]),vr=(0,Mt.useMemo)(function(){return ki?[].concat((0,no.Z)(en),[ar]):en},[ki,en]),Vr=(0,Mt.useMemo)(function(){var po=qn.right,_r=qn.left;return(0,Le.Z)((0,Le.Z)({},qn),{},{left:Qe==="rtl"?[].concat((0,no.Z)(_r.map(function(Do){return Do+ki})),[0]):_r,right:Qe==="rtl"?po:[].concat((0,no.Z)(po.map(function(Do){return Do+ki})),[0]),isSticky:io})},[ki,qn,io]),ho=xo(Tn,Un);return Mt.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},io?{top:pn,bottom:Qn}:{}),ref:Bo,className:Wt()(Ze,(0,te.Z)({},$n,!!$n))},Mt.createElement("table",{style:{tableLayout:"fixed",visibility:Ye||ho?null:"hidden"}},(!Ye||!Fi||Pr)&&Mt.createElement(ds,{colWidths:ho?[].concat((0,no.Z)(ho),[ki]):[],columCount:Un+1,columns:vr}),ui((0,Le.Z)((0,Le.Z)({},Ji),{},{stickyOffsets:Vr,columns:er,flattenColumns:vr}))))});$t.displayName="FixedHolder";var ni=Mt.memo($t);function gs(pe){var me=pe.cells,Ze=pe.stickyOffsets,Ye=pe.flattenColumns,mn=pe.rowComponent,en=pe.cellComponent,Tn=pe.tdCellComponent,Un=pe.onHeaderRow,qn=pe.index,Qe=bt(Ut,["prefixCls","direction"]),un=Qe.prefixCls,pn=Qe.direction,Qn;Un&&(Qn=Un(me.map(function(ri){return ri.column}),qn));var $n=Ce(me.map(function(ri){return ri.column}));return Mt.createElement(mn,Qn,me.map(function(ri,Fi){var ui=ri.column,Ji=tn(ri.colStart,ri.colEnd,Ye,Ze,pn,ui),Zi;return ui&&ui.onHeaderCell&&(Zi=ri.column.onHeaderCell(ui)),Mt.createElement(Pi,(0,se.Z)({},ri,{scope:ui.title?ri.colSpan>1?"colgroup":"col":null,ellipsis:ui.ellipsis,align:ui.align,component:ui.title?en:Tn,prefixCls:un,key:$n[Fi]},Ji,{additionalProps:Zi,rowType:"header"}))}))}gs.displayName="HeaderRow";var ua=gs;function Gs(pe){var me=[];function Ze(Tn,Un){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[qn]=me[qn]||[];var Qe=Un,un=Tn.filter(Boolean).map(function(pn){var Qn={key:pn.key,className:pn.className||"",children:pn.title,column:pn,colStart:Qe},$n=1,ri=pn.children;return ri&&ri.length>0&&($n=Ze(ri,Qe,qn+1).reduce(function(Fi,ui){return Fi+ui},0),Qn.hasSubColumns=!0),"colSpan"in pn&&($n=pn.colSpan),"rowSpan"in pn&&(Qn.rowSpan=pn.rowSpan),Qn.colSpan=$n,Qn.colEnd=Qn.colStart+$n-1,me[qn].push(Qn),Qe+=$n,$n});return un}Ze(pe,0);for(var Ye=me.length,mn=function(Un){me[Un].forEach(function(qn){!("rowSpan"in qn)&&!qn.hasSubColumns&&(qn.rowSpan=Ye-Un)})},en=0;en<Ye;en+=1)mn(en);return me}function ha(pe){var me=pe.stickyOffsets,Ze=pe.columns,Ye=pe.flattenColumns,mn=pe.onHeaderRow,en=bt(Ut,["prefixCls","getComponent"]),Tn=en.prefixCls,Un=en.getComponent,qn=Mt.useMemo(function(){return Gs(Ze)},[Ze]),Qe=Un(["header","wrapper"],"thead"),un=Un(["header","row"],"tr"),pn=Un(["header","cell"],"th"),Qn=Un(["header","cell"],"td");return Mt.createElement(Qe,{className:"".concat(Tn,"-thead")},qn.map(function($n,ri){var Fi=Mt.createElement(ua,{key:ri,flattenColumns:Ye,cells:$n,stickyOffsets:me,rowComponent:un,cellComponent:pn,tdCellComponent:Qn,onHeaderRow:mn,index:ri});return Fi}))}var Ws=dt(ha),Hr=Ft(11592);function Xn(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof me=="number"?me:me.endsWith("%")?pe*parseFloat(me)/100:null}function Hn(pe,me){return Mt.useMemo(function(){if(me&&me>0){var Ze=0,Ye=0;pe.forEach(function(Qe){var un=Xn(me,Qe.width);un?Ze+=un:Ye+=1});var mn=me-Ze,en=Ye,Tn=mn/Ye,Un=0,qn=pe.map(function(Qe){var un=(0,Le.Z)({},Qe),pn=Xn(me,un.width);if(pn)un.width=pn;else{var Qn=Math.floor(Tn);un.width=en===1?mn:Qn,mn-=Qn,en-=1}return Un+=un.width,un});return[qn,Un]}return[pe,me]},[pe,me])}var Mn=["children"],qe=["fixed"];function pi(pe){return(0,Hr.Z)(pe).filter(function(me){return Mt.isValidElement(me)}).map(function(me){var Ze=me.key,Ye=me.props,mn=Ye.children,en=(0,Tt.Z)(Ye,Mn),Tn=(0,Le.Z)({key:Ze},en);return mn&&(Tn.children=pi(mn)),Tn})}function xi(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return pe.filter(function(Ze){return Ze&&(0,fe.Z)(Ze)==="object"}).reduce(function(Ze,Ye,mn){var en=Ye.fixed,Tn=en===!0?"left":en,Un="".concat(me,"-").concat(mn),qn=Ye.children;return qn&&qn.length>0?[].concat((0,no.Z)(Ze),(0,no.Z)(xi(qn,Un).map(function(Qe){return(0,Le.Z)({fixed:Tn},Qe)}))):[].concat((0,no.Z)(Ze),[(0,Le.Z)((0,Le.Z)({key:Un},Ye),{},{fixed:Tn})])},[])}function wn(pe){for(var me=!0,Ze=0;Ze<pe.length;Ze+=1){var Ye=pe[Ze];if(me&&Ye.fixed!=="left")me=!1;else if(!me&&Ye.fixed==="left"){warning(!1,"Index ".concat(Ze-1," of `columns` missing `fixed='left'` prop."));break}}for(var mn=!0,en=pe.length-1;en>=0;en-=1){var Tn=pe[en];if(mn&&Tn.fixed!=="right")mn=!1;else if(!mn&&Tn.fixed==="right"){warning(!1,"Index ".concat(en+1," of `columns` missing `fixed='right'` prop."));break}}}function Ee(pe){return pe.map(function(me){var Ze=me.fixed,Ye=(0,Tt.Z)(me,qe),mn=Ze;return Ze==="left"?mn="right":Ze==="right"&&(mn="left"),(0,Le.Z)({fixed:mn},Ye)})}function Cn(pe,me){var Ze=pe.prefixCls,Ye=pe.columns,mn=pe.children,en=pe.expandable,Tn=pe.expandedKeys,Un=pe.columnTitle,qn=pe.getRowKey,Qe=pe.onTriggerExpand,un=pe.expandIcon,pn=pe.rowExpandable,Qn=pe.expandIconColumnIndex,$n=pe.direction,ri=pe.expandRowByClick,Fi=pe.columnWidth,ui=pe.fixed,Ji=pe.scrollWidth,Zi=Mt.useMemo(function(){return Ye||pi(mn)},[Ye,mn]),Ar=Mt.useMemo(function(){if(en){var sr,ar=Zi.slice();if(!ar.includes(Lt)){var er=Qn||0;er>=0&&ar.splice(er,0,Lt)}var vr=ar.indexOf(Lt);ar=ar.filter(function(_r,Do){return _r!==Lt||Do===vr});var Vr=Zi[vr],ho;(ui==="left"||ui)&&!Qn?ho="left":(ui==="right"||ui)&&Qn===Zi.length?ho="right":ho=Vr?Vr.fixed:null;var po=(sr={},(0,te.Z)(sr,Ir,{className:"".concat(Ze,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,te.Z)(sr,"title",Un),(0,te.Z)(sr,"fixed",ho),(0,te.Z)(sr,"className","".concat(Ze,"-row-expand-icon-cell")),(0,te.Z)(sr,"width",Fi),(0,te.Z)(sr,"render",function(Do,us,Yo){var ns=qn(us,Yo),So=Tn.has(ns),va=pn?pn(us):!0,Vo=un({prefixCls:Ze,expanded:So,expandable:va,record:us,onExpand:Qe});return ri?Mt.createElement("span",{onClick:function(Cs){return Cs.stopPropagation()}},Vo):Vo}),sr);return ar.map(function(_r){return _r===Lt?po:_r})}return Zi.filter(function(_r){return _r!==Lt})},[en,Zi,qn,Tn,un,$n]),Er=Mt.useMemo(function(){var sr=Ar;return me&&(sr=me(sr)),sr.length||(sr=[{render:function(){return null}}]),sr},[me,Ar,$n]),io=Mt.useMemo(function(){return $n==="rtl"?Ee(xi(Er)):xi(Er)},[Er,$n,Ji]),ki=Hn(io,Ji),Yn=(0,re.Z)(ki,2),Bo=Yn[0],Pr=Yn[1];return[Er,Bo,Pr]}var Gn=Cn;function Ei(pe){var me,Ze=pe.prefixCls,Ye=pe.record,mn=pe.onExpand,en=pe.expanded,Tn=pe.expandable,Un="".concat(Ze,"-row-expand-icon");if(!Tn)return Mt.createElement("span",{className:Wt()(Un,"".concat(Ze,"-row-spaced"))});var qn=function(un){mn(Ye,un),un.stopPropagation()};return Mt.createElement("span",{className:Wt()(Un,(me={},(0,te.Z)(me,"".concat(Ze,"-row-expanded"),en),(0,te.Z)(me,"".concat(Ze,"-row-collapsed"),!en),me)),onClick:qn})}function ei(pe,me,Ze){var Ye=[];function mn(en){(en||[]).forEach(function(Tn,Un){Ye.push(me(Tn,Un)),mn(Tn[Ze])})}return mn(pe),Ye}function gn(pe,me,Ze){var Ye=Xr(pe),mn=Ye.expandIcon,en=Ye.expandedRowKeys,Tn=Ye.defaultExpandedRowKeys,Un=Ye.defaultExpandAllRows,qn=Ye.expandedRowRender,Qe=Ye.onExpand,un=Ye.onExpandedRowsChange,pn=Ye.childrenColumnName,Qn=mn||Ei,$n=pn||"children",ri=Mt.useMemo(function(){return qn?"row":pe.expandable&&pe.internalHooks===ce&&pe.expandable.__PARENT_RENDER_ICON__||me.some(function(io){return io&&(0,fe.Z)(io)==="object"&&io[$n]})?"nest":!1},[!!qn,me]),Fi=Mt.useState(function(){return Tn||(Un?ei(me,Ze,$n):[])}),ui=(0,re.Z)(Fi,2),Ji=ui[0],Zi=ui[1],Ar=Mt.useMemo(function(){return new Set(en||Ji||[])},[en,Ji]),Er=Mt.useCallback(function(io){var ki=Ze(io,me.indexOf(io)),Yn,Bo=Ar.has(ki);Bo?(Ar.delete(ki),Yn=(0,no.Z)(Ar)):Yn=[].concat((0,no.Z)(Ar),[ki]),Zi(Yn),Qe&&Qe(!Bo,io),un&&un(Yn)},[Ze,Ar,me,Qe,un]);return[Ye,ri,Ar,Qn,$n,Er]}function di(pe,me,Ze,Ye){var mn=pe.map(function(en,Tn){return tn(Tn,Tn,pe,me,Ze,Ye==null?void 0:Ye[Tn])});return(0,Ke.Z)(function(){return mn},[mn],function(en,Tn){return!(0,Vt.Z)(en,Tn)})}function Ni(pe){var me=(0,Mt.useRef)(pe),Ze=(0,Mt.useState)({}),Ye=(0,re.Z)(Ze,2),mn=Ye[1],en=(0,Mt.useRef)(null),Tn=(0,Mt.useRef)([]);function Un(qn){Tn.current.push(qn);var Qe=Promise.resolve();en.current=Qe,Qe.then(function(){if(en.current===Qe){var un=Tn.current,pn=me.current;Tn.current=[],un.forEach(function(Qn){me.current=Qn(me.current)}),en.current=null,pn!==me.current&&mn({})}})}return(0,Mt.useEffect)(function(){return function(){en.current=null}},[]),[me.current,Un]}function $i(pe){var me=(0,Mt.useRef)(pe||null),Ze=(0,Mt.useRef)();function Ye(){window.clearTimeout(Ze.current)}function mn(Tn){me.current=Tn,Ye(),Ze.current=window.setTimeout(function(){me.current=null,Ze.current=void 0},100)}function en(){return me.current}return(0,Mt.useEffect)(function(){return Ye},[]),[mn,en]}function kn(){var pe=Mt.useState(-1),me=(0,re.Z)(pe,2),Ze=me[0],Ye=me[1],mn=Mt.useState(-1),en=(0,re.Z)(mn,2),Tn=en[0],Un=en[1],qn=Mt.useCallback(function(Qe,un){Ye(Qe),Un(un)},[]);return[Ze,Tn,qn]}var yi=Ft(47273),Br=(0,yi.Z)()?window:null;function dr(pe,me){var Ze=(0,fe.Z)(pe)==="object"?pe:{},Ye=Ze.offsetHeader,mn=Ye===void 0?0:Ye,en=Ze.offsetSummary,Tn=en===void 0?0:en,Un=Ze.offsetScroll,qn=Un===void 0?0:Un,Qe=Ze.getContainer,un=Qe===void 0?function(){return Br}:Qe,pn=un()||Br;return Mt.useMemo(function(){var Qn=!!pe;return{isSticky:Qn,stickyClassName:Qn?"".concat(me,"-sticky-holder"):"",offsetHeader:mn,offsetSummary:Tn,offsetScroll:qn,container:pn}},[qn,mn,Tn,me,pn])}function zr(pe,me,Ze){var Ye=(0,Mt.useMemo)(function(){for(var mn=[],en=[],Tn=0,Un=0,qn=0;qn<me;qn+=1)if(Ze==="rtl"){en[qn]=Un,Un+=pe[qn]||0;var Qe=me-qn-1;mn[Qe]=Tn,Tn+=pe[Qe]||0}else{mn[qn]=Tn,Tn+=pe[qn]||0;var un=me-qn-1;en[un]=Un,Un+=pe[un]||0}return{left:mn,right:en}},[pe,me,Ze]);return Ye}var cr=zr;function wr(pe){var me=pe.className,Ze=pe.children;return Mt.createElement("div",{className:me},Ze)}var or=wr,xr=Ft(8224),so=Ft(55468),Yi=function(me,Ze){var Ye,mn,en=me.scrollBodyRef,Tn=me.onScroll,Un=me.offsetScroll,qn=me.container,Qe=bt(Ut,"prefixCls"),un=((Ye=en.current)===null||Ye===void 0?void 0:Ye.scrollWidth)||0,pn=((mn=en.current)===null||mn===void 0?void 0:mn.clientWidth)||0,Qn=un&&pn*(pn/un),$n=Mt.useRef(),ri=Ni({scrollLeft:0,isHiddenScrollBar:!1}),Fi=(0,re.Z)(ri,2),ui=Fi[0],Ji=Fi[1],Zi=Mt.useRef({delta:0,x:0}),Ar=Mt.useState(!1),Er=(0,re.Z)(Ar,2),io=Er[0],ki=Er[1],Yn=function(){ki(!1)},Bo=function(vr){vr.persist(),Zi.current.delta=vr.pageX-ui.scrollLeft,Zi.current.x=0,ki(!0),vr.preventDefault()},Pr=function(vr){var Vr,ho=vr||((Vr=window)===null||Vr===void 0?void 0:Vr.event),po=ho.buttons;if(!io||po===0){io&&ki(!1);return}var _r=Zi.current.x+vr.pageX-Zi.current.x-Zi.current.delta;_r<=0&&(_r=0),_r+Qn>=pn&&(_r=pn-Qn),Tn({scrollLeft:_r/pn*(un+2)}),Zi.current.x=vr.pageX},sr=function(){if(en.current){var vr=(0,so.os)(en.current).top,Vr=vr+en.current.offsetHeight,ho=qn===window?document.documentElement.scrollTop+window.innerHeight:(0,so.os)(qn).top+qn.clientHeight;Vr-(0,on.Z)()<=ho||vr>=ho-Un?Ji(function(po){return(0,Le.Z)((0,Le.Z)({},po),{},{isHiddenScrollBar:!0})}):Ji(function(po){return(0,Le.Z)((0,Le.Z)({},po),{},{isHiddenScrollBar:!1})})}},ar=function(vr){Ji(function(Vr){return(0,Le.Z)((0,Le.Z)({},Vr),{},{scrollLeft:vr/un*pn||0})})};return Mt.useImperativeHandle(Ze,function(){return{setScrollLeft:ar}}),Mt.useEffect(function(){var er=(0,xr.Z)(document.body,"mouseup",Yn,!1),vr=(0,xr.Z)(document.body,"mousemove",Pr,!1);return sr(),function(){er.remove(),vr.remove()}},[Qn,io]),Mt.useEffect(function(){var er=(0,xr.Z)(qn,"scroll",sr,!1),vr=(0,xr.Z)(window,"resize",sr,!1);return function(){er.remove(),vr.remove()}},[qn]),Mt.useEffect(function(){ui.isHiddenScrollBar||Ji(function(er){var vr=en.current;return vr?(0,Le.Z)((0,Le.Z)({},er),{},{scrollLeft:vr.scrollLeft/vr.scrollWidth*vr.clientWidth}):er})},[ui.isHiddenScrollBar]),un<=pn||!Qn||ui.isHiddenScrollBar?null:Mt.createElement("div",{style:{height:(0,on.Z)(),width:pn,bottom:Un},className:"".concat(Qe,"-sticky-scroll")},Mt.createElement("div",{onMouseDown:Bo,ref:$n,className:Wt()("".concat(Qe,"-sticky-scroll-bar"),(0,te.Z)({},"".concat(Qe,"-sticky-scroll-bar-active"),io)),style:{width:"".concat(Qn,"px"),transform:"translate3d(".concat(ui.scrollLeft,"px, 0, 0)")}}))},pr=Mt.forwardRef(Yi);function yo(pe){return null}var Ss=yo;function _o(pe){return null}var Dn=_o,Tr="rc-table",ao=[],Kr={};function qo(){return"No Data"}function Oo(pe){var me,Ze=(0,Le.Z)({rowKey:"key",prefixCls:Tr,emptyText:qo},pe),Ye=Ze.prefixCls,mn=Ze.className,en=Ze.rowClassName,Tn=Ze.style,Un=Ze.data,qn=Ze.rowKey,Qe=Ze.scroll,un=Ze.tableLayout,pn=Ze.direction,Qn=Ze.title,$n=Ze.footer,ri=Ze.summary,Fi=Ze.caption,ui=Ze.id,Ji=Ze.showHeader,Zi=Ze.components,Ar=Ze.emptyText,Er=Ze.onRow,io=Ze.onHeaderRow,ki=Ze.internalHooks,Yn=Ze.transformColumns,Bo=Ze.internalRefs,Pr=Ze.tailor,sr=Ze.sticky,ar=Un||ao,er=!!ar.length,vr=ki===ce,Vr=Mt.useCallback(function(ka,Za){return(0,_e.Z)(Zi,ka)||Za},[Zi]),ho=Mt.useMemo(function(){return typeof qn=="function"?qn:function(ka){var Za=ka&&ka[qn];return Za}},[qn]),po=Vr(["body"]),_r=kn(),Do=(0,re.Z)(_r,3),us=Do[0],Yo=Do[1],ns=Do[2],So=gn(Ze,ar,ho),va=(0,re.Z)(So,6),Vo=va[0],rs=va[1],Cs=va[2],ta=va[3],Da=va[4],Ys=va[5],Ko=Qe==null?void 0:Qe.x,Go=Mt.useState(0),As=(0,re.Z)(Go,2),es=As[0],Os=As[1],ro=Gn((0,Le.Z)((0,Le.Z)((0,Le.Z)({},Ze),Vo),{},{expandable:!!Vo.expandedRowRender,columnTitle:Vo.columnTitle,expandedKeys:Cs,getRowKey:ho,onTriggerExpand:Ys,expandIcon:ta,expandIconColumnIndex:Vo.expandIconColumnIndex,direction:pn,scrollWidth:vr&&Pr&&typeof Ko=="number"?Ko:null}),vr?Yn:null),Wo=(0,re.Z)(ro,3),aa=Wo[0],Us=Wo[1],zl=Wo[2],Fl=zl!=null?zl:Ko,Ps=Mt.useMemo(function(){return{columns:aa,flattenColumns:Us}},[aa,Us]),ca=Mt.useRef(),Ul=Mt.useRef(),fo=Mt.useRef(),ja=Mt.useRef(),Gl=Mt.useRef(),ea=Mt.useState(!1),la=(0,re.Z)(ea,2),Na=la[0],Va=la[1],ol=Mt.useState(!1),Rs=(0,re.Z)(ol,2),Ia=Rs[0],xl=Rs[1],pu=Ni(new Map),uu=(0,re.Z)(pu,2),Ru=uu[0],$u=uu[1],Ah=Ce(Us),Yu=Ah.map(function(ka){return Ru.get(ka)}),Ua=Mt.useMemo(function(){return Yu},[Yu.join("_")]),Bu=cr(Ua,Us.length,pn),Rl=Qe&&bn(Qe.y),tl=Qe&&bn(Fl)||!!Vo.fixed,vh=tl&&Us.some(function(ka){var Za=ka.fixed;return Za}),Cc=Mt.useRef(),yh=dr(sr,Ye),rc=yh.isSticky,oc=yh.offsetHeader,wh=yh.offsetSummary,fa=yh.offsetScroll,Sl=yh.stickyClassName,Ca=yh.container,Al=Mt.useMemo(function(){return ri==null?void 0:ri(ar)},[ri,ar]),ga=(Rl||rc)&&Mt.isValidElement(Al)&&Al.type===At&&Al.props.fixed,hu,Fu,Kh;Rl&&(Fu={overflowY:"scroll",maxHeight:Qe.y}),tl&&(hu={overflowX:"auto"},Rl||(Fu={overflowY:"hidden"}),Kh={width:Fl===!0?"auto":Fl,minWidth:"100%"});var Th=Mt.useCallback(function(ka,Za){(0,Te.Z)(ca.current)&&$u(function(Mu){if(Mu.get(ka)!==Za){var fh=new Map(Mu);return fh.set(ka,Za),fh}return Mu})},[]),_n=$i(null),_u=(0,re.Z)(_n,2),Oh=_u[0],lA=_u[1];function nd(ka,Za){Za&&(typeof Za=="function"?Za(ka):Za.scrollLeft!==ka&&(Za.scrollLeft=ka,Za.scrollLeft!==ka&&setTimeout(function(){Za.scrollLeft=ka},0)))}var gc=(0,Ie.Z)(function(ka){var Za=ka.currentTarget,Mu=ka.scrollLeft,fh=pn==="rtl",Eh=typeof Mu=="number"?Mu:Za.scrollLeft,Zd=Za||Kr;if(!lA()||lA()===Zd){var Bc;Oh(Zd),nd(Eh,Ul.current),nd(Eh,fo.current),nd(Eh,Gl.current),nd(Eh,(Bc=Cc.current)===null||Bc===void 0?void 0:Bc.setScrollLeft)}var Pd=Za||Ul.current;if(Pd){var Zu=Pd.scrollWidth,xh=Pd.clientWidth;if(Zu===xh){Va(!1),xl(!1);return}fh?(Va(-Eh<Zu-xh),xl(-Eh>0)):(Va(Eh>0),xl(Eh<Zu-xh))}}),xd=function(){tl&&fo.current?gc({currentTarget:fo.current}):(Va(!1),xl(!1))},SA=function(Za){var Mu=Za.width;Mu!==es&&(xd(),Os(ca.current?ca.current.offsetWidth:Mu))},Lu=Mt.useRef(!1);Mt.useEffect(function(){Lu.current&&xd()},[tl,Un,aa.length]),Mt.useEffect(function(){Lu.current=!0},[]);var jc=Mt.useState(0),Kd=(0,re.Z)(jc,2),id=Kd[0],CA=Kd[1],Uc=Mt.useState(!0),Sd=(0,re.Z)(Uc,2),Ju=Sd[0],ah=Sd[1];Mt.useEffect(function(){(!Pr||!vr)&&(fo.current instanceof Element?CA((0,on.o)(fo.current).width):CA((0,on.o)(ja.current).width)),ah((0,Me.G)("position","sticky"))},[]),Mt.useEffect(function(){vr&&Bo&&(Bo.body.current=fo.current)});var Vu=Mt.useCallback(function(ka){return Mt.createElement(Mt.Fragment,null,Mt.createElement(Ws,ka),ga==="top"&&Mt.createElement(xe,ka,Al))},[ga,Al]),BA=Mt.useCallback(function(ka){return Mt.createElement(xe,ka,Al)},[Al]),Gh=Vr(["table"],"table"),ia=Mt.useMemo(function(){return un||(vh?Fl==="max-content"?"auto":"fixed":Rl||rc||Us.some(function(ka){var Za=ka.ellipsis;return Za})?"fixed":"auto")},[Rl,vh,Us,un,rc]),Cd,rd={colWidths:Ua,columCount:Us.length,stickyOffsets:Bu,onHeaderRow:io,fixHeader:Rl,scroll:Qe},mu=Mt.useMemo(function(){return er?null:typeof Ar=="function"?Ar():Ar},[er,Ar]),Gd=Mt.createElement(Yr,{data:ar,measureColumnWidth:Rl||tl||rc}),Wd=Mt.createElement(ds,{colWidths:Us.map(function(ka){var Za=ka.width;return Za}),columns:Us}),qu=Fi!=null?Mt.createElement("caption",{className:"".concat(Ye,"-caption")},Fi):void 0,Rc=(0,Wn.Z)(Ze,{data:!0}),Bd=(0,Wn.Z)(Ze,{aria:!0});if(Rl||rc){var Vd;typeof po=="function"?(Vd=po(ar,{scrollbarSize:id,ref:fo,onScroll:gc}),rd.colWidths=Us.map(function(ka,Za){var Mu=ka.width,fh=Za===Us.length-1?Mu-id:Mu;return typeof fh=="number"&&!Number.isNaN(fh)?fh:0})):Vd=Mt.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},hu),Fu),onScroll:gc,ref:fo,className:Wt()("".concat(Ye,"-body"))},Mt.createElement(Gh,(0,se.Z)({style:(0,Le.Z)((0,Le.Z)({},Kh),{},{tableLayout:ia})},Bd),qu,Wd,Gd,!ga&&Al&&Mt.createElement(xe,{stickyOffsets:Bu,flattenColumns:Us,columns:aa},Al)));var cu=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!ar.length,maxContentScroll:tl&&Fl==="max-content"},rd),Ps),{},{direction:pn,stickyClassName:Sl,onScroll:gc});Cd=Mt.createElement(Mt.Fragment,null,Ji!==!1&&Mt.createElement(ni,(0,se.Z)({},cu,{stickyTopOffset:oc,className:"".concat(Ye,"-header"),ref:Ul}),Vu),Vd,ga&&ga!=="top"&&Mt.createElement(ni,(0,se.Z)({},cu,{stickyBottomOffset:wh,className:"".concat(Ye,"-summary"),ref:Gl}),BA),rc&&Mt.createElement(pr,{ref:Cc,offsetScroll:fa,scrollBodyRef:fo,onScroll:gc,container:Ca}))}else Cd=Mt.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},hu),Fu),className:Wt()("".concat(Ye,"-content")),onScroll:gc,ref:fo},Mt.createElement(Gh,(0,se.Z)({style:(0,Le.Z)((0,Le.Z)({},Kh),{},{tableLayout:ia})},Bd),qu,Wd,Ji!==!1&&Mt.createElement(Ws,(0,se.Z)({},rd,Ps)),Gd,Al&&Mt.createElement(xe,{stickyOffsets:Bu,flattenColumns:Us,columns:aa},Al)));var vu=Mt.createElement("div",(0,se.Z)({className:Wt()(Ye,mn,(me={},(0,te.Z)(me,"".concat(Ye,"-rtl"),pn==="rtl"),(0,te.Z)(me,"".concat(Ye,"-ping-left"),Na),(0,te.Z)(me,"".concat(Ye,"-ping-right"),Ia),(0,te.Z)(me,"".concat(Ye,"-layout-fixed"),un==="fixed"),(0,te.Z)(me,"".concat(Ye,"-fixed-header"),Rl),(0,te.Z)(me,"".concat(Ye,"-fixed-column"),vh),(0,te.Z)(me,"".concat(Ye,"-scroll-horizontal"),tl),(0,te.Z)(me,"".concat(Ye,"-has-fix-left"),Us[0]&&Us[0].fixed),(0,te.Z)(me,"".concat(Ye,"-has-fix-right"),Us[Us.length-1]&&Us[Us.length-1].fixed==="right"),me)),style:Tn,id:ui,ref:ca},Rc),Qn&&Mt.createElement(or,{className:"".concat(Ye,"-title")},Qn(ar)),Mt.createElement("div",{ref:ja,className:"".concat(Ye,"-container")},Cd),$n&&Mt.createElement(or,{className:"".concat(Ye,"-footer")},$n(ar)));tl&&(vu=Mt.createElement(Oe.Z,{onResize:SA},vu));var _c=di(Us,Bu,pn,aa),_l=Mt.useMemo(function(){return{scrollX:Fl,prefixCls:Ye,getComponent:Vr,scrollbarSize:id,direction:pn,fixedInfoList:_c,isSticky:rc,supportSticky:Ju,componentWidth:es,fixHeader:Rl,fixColumn:vh,horizonScroll:tl,tableLayout:ia,rowClassName:en,expandedRowClassName:Vo.expandedRowClassName,expandIcon:ta,expandableType:rs,expandRowByClick:Vo.expandRowByClick,expandedRowRender:Vo.expandedRowRender,onTriggerExpand:Ys,expandIconColumnIndex:Vo.expandIconColumnIndex,indentSize:Vo.indentSize,allColumnsFixedLeft:Us.every(function(ka){return ka.fixed==="left"}),emptyNode:mu,columns:aa,flattenColumns:Us,onColumnResize:Th,hoverStartRow:us,hoverEndRow:Yo,onHover:ns,rowExpandable:Vo.rowExpandable,onRow:Er,getRowKey:ho,expandedKeys:Cs,childrenColumnName:Da}},[Fl,Ye,Vr,id,pn,_c,rc,Ju,es,Rl,vh,tl,ia,en,Vo.expandedRowClassName,ta,rs,Vo.expandRowByClick,Vo.expandedRowRender,Ys,Vo.expandIconColumnIndex,Vo.indentSize,mu,aa,Us,Th,us,Yo,ns,Vo.rowExpandable,Er,ho,Cs,Da]);return Mt.createElement(Ut.Provider,{value:_l},vu)}function wi(pe){return ht(Oo,pe)}var Po=wi();Po.EXPAND_COLUMN=Lt,Po.INTERNAL_HOOKS=ce,Po.Column=Ss,Po.ColumnGroup=Dn,Po.Summary=ae;var Rr=Po,kr=Ft(4409),Ci=qt(null),Lo=qt(null);function Bi(pe,me,Ze){var Ye=me||1;return Ze[pe+Ye]-(Ze[pe]||0)}function Zo(pe){var me=pe.rowInfo,Ze=pe.column,Ye=pe.colIndex,mn=pe.indent,en=pe.index,Tn=pe.renderIndex,Un=pe.record,qn=pe.style,Qe=pe.className,un=pe.inverse,pn=pe.getHeight,Qn=Ze.render,$n=Ze.dataIndex,ri=Ze.className,Fi=Ze.width,ui=bt(Lo,["columnsOffset"]),Ji=ui.columnsOffset,Zi=Di(me,Ze,Ye,mn,en),Ar=Zi.key,Er=Zi.fixedInfo,io=Zi.appendCellNode,ki=Zi.additionalCellProps,Yn=ki.style,Bo=ki.colSpan,Pr=Bo===void 0?1:Bo,sr=ki.rowSpan,ar=sr===void 0?1:sr,er=Ye-1,vr=Bi(er,Pr,Ji),Vr=Pr>1?Fi-vr:0,ho=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},Yn),qn),{},{flex:"0 0 ".concat(vr,"px"),width:"".concat(vr,"px"),marginRight:Vr,pointerEvents:"auto"}),po=Mt.useMemo(function(){return un?ar<=1:Pr===0||ar===0||ar>1},[ar,Pr,un]);po?ho.visibility="hidden":un&&(ho.height=pn==null?void 0:pn(ar));var _r=po?function(){return null}:Qn,Do={};return(ar===0||Pr===0)&&(Do.rowSpan=1,Do.colSpan=1),Mt.createElement(Pi,(0,se.Z)({className:Wt()(ri,Qe),ellipsis:Ze.ellipsis,align:Ze.align,scope:Ze.rowScope,component:"div",prefixCls:me.prefixCls,key:Ar,record:Un,index:en,renderIndex:Tn,dataIndex:$n,render:_r,shouldCellUpdate:Ze.shouldCellUpdate},Er,{appendNode:io,additionalProps:(0,Le.Z)((0,Le.Z)({},ki),{},{style:ho},Do)}))}var ra=Zo,fs=["data","index","className","rowKey","style","extra","getHeight"],ba=Mt.forwardRef(function(pe,me){var Ze=pe.data,Ye=pe.index,mn=pe.className,en=pe.rowKey,Tn=pe.style,Un=pe.extra,qn=pe.getHeight,Qe=(0,Tt.Z)(pe,fs),un=Ze.record,pn=Ze.indent,Qn=Ze.index,$n=bt(Ut,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ri=$n.scrollX,Fi=$n.flattenColumns,ui=$n.prefixCls,Ji=$n.fixColumn,Zi=$n.componentWidth,Ar=On(un,en,Ye,pn),Er=Ar.rowSupportExpand,io=Ar.expanded,ki=Ar.rowProps,Yn=Ar.expandedRowRender,Bo=Ar.expandedRowClassName,Pr;if(Er&&io){var sr=Yn(un,Ye,pn+1,io),ar=Bo==null?void 0:Bo(un,Ye,pn),er={};Ji&&(er={style:(0,te.Z)({},"--virtual-width","".concat(Zi,"px"))});var vr="".concat(ui,"-expanded-row-cell");Pr=Mt.createElement("div",{className:Wt()("".concat(ui,"-expanded-row"),"".concat(ui,"-expanded-row-level-").concat(pn+1),ar)},Mt.createElement(Pi,{component:"div",prefixCls:ui,className:Wt()(vr,(0,te.Z)({},"".concat(vr,"-fixed"),Ji)),additionalProps:er},sr))}var Vr=(0,Le.Z)((0,Le.Z)({},Tn),{},{width:ri});Un&&(Vr.position="absolute",Vr.pointerEvents="none");var ho=Mt.createElement("div",(0,se.Z)({},ki,Qe,{ref:Er?null:me,className:Wt()(mn,"".concat(ui,"-row"),ki==null?void 0:ki.className,(0,te.Z)({},"".concat(ui,"-row-extra"),Un)),style:(0,Le.Z)((0,Le.Z)({},Vr),ki==null?void 0:ki.style)}),Fi.map(function(po,_r){return Mt.createElement(ra,{key:_r,rowInfo:Ar,column:po,colIndex:_r,indent:pn,index:Ye,renderIndex:Qn,record:un,inverse:Un,getHeight:qn})}));return Er?Mt.createElement("div",{ref:me},ho,Pr):ho}),Vs=dt(ba),Mo=Vs,Ho=Mt.forwardRef(function(pe,me){var Ze=pe.data,Ye=pe.onScroll,mn=bt(Ut,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),en=mn.flattenColumns,Tn=mn.onColumnResize,Un=mn.getRowKey,qn=mn.expandedKeys,Qe=mn.prefixCls,un=mn.childrenColumnName,pn=mn.emptyNode,Qn=mn.scrollX,$n=bt(Ci),ri=$n.scrollY,Fi=$n.listItemHeight,ui=Mt.useRef(),Ji=ln(Ze,un,qn,Un),Zi=Mt.useMemo(function(){var Pr=0;return en.map(function(sr){var ar=sr.width,er=sr.key;return Pr+=ar,[er,ar,Pr]})},[en]),Ar=Mt.useMemo(function(){return Zi.map(function(Pr){return Pr[2]})},[Zi]);Mt.useEffect(function(){Zi.forEach(function(Pr){var sr=(0,re.Z)(Pr,2),ar=sr[0],er=sr[1];Tn(ar,er)})},[Zi]),Mt.useImperativeHandle(me,function(){var Pr={};return Object.defineProperty(Pr,"scrollLeft",{get:function(){var ar;return((ar=ui.current)===null||ar===void 0?void 0:ar.getScrollInfo().x)||0},set:function(ar){var er;(er=ui.current)===null||er===void 0||er.scrollTo({left:ar})}}),Pr});var Er=function(sr,ar){var er,vr=(er=Ji[ar])===null||er===void 0?void 0:er.record,Vr=sr.onCell;if(Vr){var ho,po=Vr(vr,ar);return(ho=po==null?void 0:po.rowSpan)!==null&&ho!==void 0?ho:1}return 1},io=function(sr){var ar=sr.start,er=sr.end,vr=sr.getSize,Vr=sr.offsetY;if(er<0)return null;for(var ho=en.filter(function(Ko){return Er(Ko,ar)===0}),po=ar,_r=function(Go){if(ho=ho.filter(function(As){return Er(As,Go)===0}),!ho.length)return po=Go,"break"},Do=ar;Do>=0;Do-=1){var us=_r(Do);if(us==="break")break}for(var Yo=en.filter(function(Ko){return Er(Ko,er)!==1}),ns=er,So=function(Go){if(Yo=Yo.filter(function(As){return Er(As,Go)!==1}),!Yo.length)return ns=Math.max(Go-1,er),"break"},va=er;va<Ji.length;va+=1){var Vo=So(va);if(Vo==="break")break}for(var rs=[],Cs=function(Go){var As=Ji[Go];if(!As)return"continue";en.some(function(es){return Er(es,Go)>1})&&rs.push(Go)},ta=po;ta<=ns;ta+=1)var Da=Cs(ta);var Ys=rs.map(function(Ko){var Go=Ji[Ko],As=Un(Go.record,Ko),es=function(Wo){var aa=Ko+Wo-1,Us=Un(Ji[aa].record,aa),zl=vr(As,Us);return zl.bottom-zl.top},Os=vr(As);return Mt.createElement(Mo,{key:Ko,data:Go,rowKey:As,index:Ko,style:{top:-Vr+Os.top},extra:!0,getHeight:es})});return Ys},ki=Mt.useMemo(function(){return{columnsOffset:Ar}},[Ar]),Yn="".concat(Qe,"-tbody"),Bo;return Ji.length?Bo=Mt.createElement(kr.Z,{fullHeight:!1,ref:ui,className:Wt()(Yn,"".concat(Yn,"-virtual")),height:ri,itemHeight:Fi||24,data:Ji,itemKey:function(sr){return Un(sr.record)},scrollWidth:Qn,onVirtualScroll:function(sr){var ar=sr.x;Ye({scrollLeft:ar})},extraRender:io},function(Pr,sr,ar){var er=Un(Pr.record,sr);return Mt.createElement(Mo,(0,se.Z)({data:Pr,rowKey:er,index:sr},ar))}):Bo=Mt.createElement("div",{className:Wt()("".concat(Qe,"-placeholder"))},Mt.createElement(Pi,{component:"div",prefixCls:Qe},pn)),Mt.createElement(Lo.Provider,{value:ki},Bo)}),ps=dt(Ho),ss=ps,gr=function(me,Ze){var Ye=Ze.ref,mn=Ze.onScroll;return Mt.createElement(ss,{ref:Ye,data:me,onScroll:mn})},ke=100;function ts(pe){var me=pe.columns,Ze=pe.scroll,Ye=pe.prefixCls,mn=Ye===void 0?Tr:Ye,en=pe.className,Tn=pe.listItemHeight,Un=Ze||{},qn=Un.x,Qe=Un.y;typeof qn!="number"&&(qn=((me||[]).length+1)*ke),typeof Qe!="number"&&(Qe=500);var un=Mt.useMemo(function(){return{scrollY:Qe,listItemHeight:Tn}},[Qe,Tn]);return Mt.createElement(Ci.Provider,{value:un},Mt.createElement(Rr,(0,se.Z)({},pe,{className:Wt()(en,"".concat(mn,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},Ze),{},{x:qn}),components:{body:gr},columns:me,internalHooks:ce,tailor:!0})))}function Sa(pe){return ht(ts,pe)}var sl=Sa(),Ll=null;function ml(pe){return null}var Ol=ml;function is(pe){return null}var $o=is,wo=Ft(2738),ks=Ft(68031),co=Ft(36355),to=Ft(93891),Uo=Ft(19716),Ki=Ft(8628),Ts=Ft(31724),zs=Ft(58421),Aa=Ft(71418),qs=Ft(88088);function Qo(pe){return function(Ze){let{prefixCls:Ye,onExpand:mn,record:en,expanded:Tn,expandable:Un}=Ze;const qn=`${Ye}-row-expand-icon`;return Mt.createElement("button",{type:"button",onClick:Qe=>{mn(en,Qe),Qe.stopPropagation()},className:Wt()(qn,{[`${qn}-spaced`]:!Un,[`${qn}-expanded`]:Un&&Tn,[`${qn}-collapsed`]:Un&&!Tn}),"aria-label":Tn?pe.collapse:pe.expand,"aria-expanded":Tn})}}var Zs=Qo;function vl(pe,me){return"key"in pe&&pe.key!==void 0&&pe.key!==null?pe.key:pe.dataIndex?Array.isArray(pe.dataIndex)?pe.dataIndex.join("."):pe.dataIndex:me}function yl(pe,me){return me?`${me}-${pe}`:`${pe}`}function Dl(pe,me){return typeof pe=="function"?pe(me):pe}function Bs(pe,me){const Ze=Dl(pe,me);return Object.prototype.toString.call(Ze)==="[object Object]"?"":Ze}var ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ga=ai,mh=Ft(7657),ju=function(me,Ze){return Mt.createElement(mh.Z,(0,se.Z)({},me,{ref:Ze,icon:Ga}))},su=Mt.forwardRef(ju),Ao=su,Ks=Ft(56762);function Ls(pe){const me=Mt.useRef(pe),Ze=(0,Ks.Z)();return[()=>me.current,Ye=>{me.current=Ye,Ze()}]}var bs=Ft(3113),Hs=Ft(24905),Ml=Ft(38854),cs=Ft(64165),Qs=Ft(20834),xs=Ft(40875),Gr=Ft(5112),al=Ft(17574),Ds=Ft(47472),Su=Ft(92832);function Ku(pe){let{value:me,onChange:Ze,filterSearch:Ye,tablePrefixCls:mn,locale:en}=pe;return Ye?Mt.createElement("div",{className:`${mn}-filter-dropdown-search`},Mt.createElement(Su.default,{prefix:Mt.createElement(Ds.Z,null),placeholder:en.filterSearchPlaceholder,onChange:Ze,value:me,htmlSize:1,className:`${mn}-filter-dropdown-search-input`})):null}var $l=Ku,fr=Ft(10228);const Wa=pe=>{const{keyCode:me}=pe;me===fr.Z.ENTER&&pe.stopPropagation()};var bl=Mt.forwardRef((pe,me)=>Mt.createElement("div",{className:pe.className,onClick:Ze=>Ze.stopPropagation(),onKeyDown:Wa,ref:me},pe.children));function au(pe){let me=[];return(pe||[]).forEach(Ze=>{let{value:Ye,children:mn}=Ze;me.push(Ye),mn&&(me=[].concat((0,no.Z)(me),(0,no.Z)(au(mn))))}),me}function Xa(pe){return pe.some(me=>{let{children:Ze}=me;return Ze})}function Eo(pe,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(pe.trim().toLowerCase()):!1}function Oa(pe){let{filters:me,prefixCls:Ze,filteredKeys:Ye,filterMultiple:mn,searchValue:en,filterSearch:Tn}=pe;return me.map((Un,qn)=>{const Qe=String(Un.value);if(Un.children)return{key:Qe||qn,label:Un.text,popupClassName:`${Ze}-dropdown-submenu`,children:Oa({filters:Un.children,prefixCls:Ze,filteredKeys:Ye,filterMultiple:mn,searchValue:en,filterSearch:Tn})};const un=mn?Hs.default:Gr.ZP,pn={key:Un.value!==void 0?Qe:qn,label:Mt.createElement(Mt.Fragment,null,Mt.createElement(un,{checked:Ye.includes(Qe)}),Mt.createElement("span",null,Un.text))};return en.trim()?typeof Tn=="function"?Tn(en,Un)?pn:null:Eo(en,Un.text)?pn:null:pn})}function $a(pe){var me,Ze;const{tablePrefixCls:Ye,prefixCls:mn,column:en,dropdownPrefixCls:Tn,columnKey:Un,filterMultiple:qn,filterMode:Qe="menu",filterSearch:un=!1,filterState:pn,triggerFilter:Qn,locale:$n,children:ri,getPopupContainer:Fi}=pe,{filterDropdownOpen:ui,onFilterDropdownOpenChange:Ji,filterResetToDefaultFilteredValue:Zi,defaultFilteredValue:Ar,filterDropdownVisible:Er,onFilterDropdownVisibleChange:io}=en,[ki,Yn]=Mt.useState(!1),Bo=!!(pn&&(!((me=pn.filteredKeys)===null||me===void 0)&&me.length||pn.forceFiltered)),Pr=ro=>{Yn(ro),Ji==null||Ji(ro),io==null||io(ro)},sr=(Ze=ui!=null?ui:Er)!==null&&Ze!==void 0?Ze:ki,ar=pn==null?void 0:pn.filteredKeys,[er,vr]=Ls(ar||[]),Vr=ro=>{let{selectedKeys:Wo}=ro;vr(Wo)},ho=(ro,Wo)=>{let{node:aa,checked:Us}=Wo;Vr(qn?{selectedKeys:ro}:{selectedKeys:Us&&aa.key?[aa.key]:[]})};Mt.useEffect(()=>{ki&&Vr({selectedKeys:ar||[]})},[ar]);const[po,_r]=Mt.useState([]),Do=ro=>{_r(ro)},[us,Yo]=Mt.useState(""),ns=ro=>{const{value:Wo}=ro.target;Yo(Wo)};Mt.useEffect(()=>{ki||Yo("")},[ki]);const So=ro=>{const Wo=ro&&ro.length?ro:null;if(Wo===null&&(!pn||!pn.filteredKeys)||(0,Vt.Z)(Wo,pn==null?void 0:pn.filteredKeys,!0))return null;Qn({column:en,key:Un,filteredKeys:Wo})},va=()=>{Pr(!1),So(er())},Vo=function(){let{confirm:ro,closeDropdown:Wo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ro&&So([]),Wo&&Pr(!1),Yo(""),vr(Zi?(Ar||[]).map(aa=>String(aa)):[])},rs=function(){let{closeDropdown:ro}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ro&&Pr(!1),So(er())},Cs=ro=>{ro&&ar!==void 0&&vr(ar||[]),Pr(ro),!ro&&!en.filterDropdown&&va()},ta=Wt()({[`${Tn}-menu-without-submenu`]:!Xa(en.filters||[])}),Da=ro=>{if(ro.target.checked){const Wo=au(en==null?void 0:en.filters).map(aa=>String(aa));vr(Wo)}else vr([])},Ys=ro=>{let{filters:Wo}=ro;return(Wo||[]).map((aa,Us)=>{const zl=String(aa.value),Fl={title:aa.text,key:aa.value!==void 0?zl:Us};return aa.children&&(Fl.children=Ys({filters:aa.children})),Fl})},Ko=ro=>{var Wo;return Object.assign(Object.assign({},ro),{text:ro.title,value:ro.key,children:((Wo=ro.children)===null||Wo===void 0?void 0:Wo.map(aa=>Ko(aa)))||[]})};let Go;if(typeof en.filterDropdown=="function")Go=en.filterDropdown({prefixCls:`${Tn}-custom`,setSelectedKeys:ro=>Vr({selectedKeys:ro}),selectedKeys:er(),confirm:rs,clearFilters:Vo,filters:en.filters,visible:sr,close:()=>{Pr(!1)}});else if(en.filterDropdown)Go=en.filterDropdown;else{const ro=er()||[],Wo=()=>(en.filters||[]).length===0?Mt.createElement(cs.Z,{image:cs.Z.PRESENTED_IMAGE_SIMPLE,description:$n.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qe==="tree"?Mt.createElement(Mt.Fragment,null,Mt.createElement($l,{filterSearch:un,value:us,onChange:ns,tablePrefixCls:Ye,locale:$n}),Mt.createElement("div",{className:`${Ye}-filter-dropdown-tree`},qn?Mt.createElement(Hs.default,{checked:ro.length===au(en.filters).length,indeterminate:ro.length>0&&ro.length<au(en.filters).length,className:`${Ye}-filter-dropdown-checkall`,onChange:Da},$n.filterCheckall):null,Mt.createElement(al.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:qn,checkStrictly:!qn,className:`${Tn}-menu`,onCheck:ho,checkedKeys:ro,selectedKeys:ro,showIcon:!1,treeData:Ys({filters:en.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:us.trim()?Us=>typeof un=="function"?un(us,Ko(Us)):Eo(us,Us.title):void 0}))):Mt.createElement(Mt.Fragment,null,Mt.createElement($l,{filterSearch:un,value:us,onChange:ns,tablePrefixCls:Ye,locale:$n}),Mt.createElement(Qs.default,{selectable:!0,multiple:qn,prefixCls:`${Tn}-menu`,className:ta,onSelect:Vr,onDeselect:Vr,selectedKeys:ro,getPopupContainer:Fi,openKeys:po,onOpenChange:Do,items:Oa({filters:en.filters||[],filterSearch:un,prefixCls:mn,filteredKeys:er(),filterMultiple:qn,searchValue:us})})),aa=()=>Zi?(0,Vt.Z)((Ar||[]).map(Us=>String(Us)),ro,!0):ro.length===0;Go=Mt.createElement(Mt.Fragment,null,Wo(),Mt.createElement("div",{className:`${mn}-dropdown-btns`},Mt.createElement(bs.ZP,{type:"link",size:"small",disabled:aa(),onClick:()=>Vo()},$n.filterReset),Mt.createElement(bs.ZP,{type:"primary",size:"small",onClick:va},$n.filterConfirm)))}en.filterDropdown&&(Go=Mt.createElement(xs.J,{selectable:void 0},Go));const As=()=>Mt.createElement(bl,{className:`${mn}-dropdown`},Go);let es;typeof en.filterIcon=="function"?es=en.filterIcon(Bo):en.filterIcon?es=en.filterIcon:es=Mt.createElement(Ao,null);const{direction:Os}=Mt.useContext(co.E_);return Mt.createElement("div",{className:`${mn}-column`},Mt.createElement("span",{className:`${Ye}-column-title`},ri),Mt.createElement(Ml.Z,{dropdownRender:As,trigger:["click"],open:sr,onOpenChange:Cs,getPopupContainer:Fi,placement:Os==="rtl"?"bottomLeft":"bottomRight"},Mt.createElement("span",{role:"button",tabIndex:-1,className:Wt()(`${mn}-trigger`,{active:Bo}),onClick:ro=>{ro.stopPropagation()}},es)))}var lu=$a;function Yl(pe,me,Ze){let Ye=[];return(pe||[]).forEach((mn,en)=>{var Tn;const Un=yl(en,Ze);if(mn.filters||"filterDropdown"in mn||"onFilter"in mn)if("filteredValue"in mn){let qn=mn.filteredValue;"filterDropdown"in mn||(qn=(Tn=qn==null?void 0:qn.map(String))!==null&&Tn!==void 0?Tn:qn),Ye.push({column:mn,key:vl(mn,Un),filteredKeys:qn,forceFiltered:mn.filtered})}else Ye.push({column:mn,key:vl(mn,Un),filteredKeys:me&&mn.defaultFilteredValue?mn.defaultFilteredValue:void 0,forceFiltered:mn.filtered});"children"in mn&&(Ye=[].concat((0,no.Z)(Ye),(0,no.Z)(Yl(mn.children,me,Un))))}),Ye}function Pu(pe,me,Ze,Ye,mn,en,Tn,Un){return Ze.map((qn,Qe)=>{const un=yl(Qe,Un),{filterMultiple:pn=!0,filterMode:Qn,filterSearch:$n}=qn;let ri=qn;if(ri.filters||ri.filterDropdown){const Fi=vl(ri,un),ui=Ye.find(Ji=>{let{key:Zi}=Ji;return Fi===Zi});ri=Object.assign(Object.assign({},ri),{title:Ji=>Mt.createElement(lu,{tablePrefixCls:pe,prefixCls:`${pe}-filter`,dropdownPrefixCls:me,column:ri,columnKey:Fi,filterState:ui,filterMultiple:pn,filterMode:Qn,filterSearch:$n,triggerFilter:en,locale:mn,getPopupContainer:Tn},Dl(qn.title,Ji))})}return"children"in ri&&(ri=Object.assign(Object.assign({},ri),{children:Pu(pe,me,ri.children,Ye,mn,en,Tn,un)})),ri})}function bu(pe){const me={};return pe.forEach(Ze=>{let{key:Ye,filteredKeys:mn,column:en}=Ze;const{filters:Tn,filterDropdown:Un}=en;if(Un)me[Ye]=mn||null;else if(Array.isArray(mn)){const qn=au(Tn);me[Ye]=qn.filter(Qe=>mn.includes(String(Qe)))}else me[Ye]=null}),me}function fu(pe,me){return me.reduce((Ze,Ye)=>{const{column:{onFilter:mn,filters:en},filteredKeys:Tn}=Ye;return mn&&Tn&&Tn.length?Ze.filter(Un=>Tn.some(qn=>{const Qe=au(en),un=Qe.findIndex(Qn=>String(Qn)===String(qn)),pn=un!==-1?Qe[un]:qn;return mn(pn,Un)})):Ze},pe)}const nu=pe=>pe.flatMap(me=>"children"in me?[me].concat((0,no.Z)(nu(me.children||[]))):[me]);function zo(pe){let{prefixCls:me,dropdownPrefixCls:Ze,mergedColumns:Ye,onFilterChange:mn,getPopupContainer:en,locale:Tn}=pe;const Un=Mt.useMemo(()=>nu(Ye||[]),[Ye]),[qn,Qe]=Mt.useState(()=>Yl(Un,!0)),un=Mt.useMemo(()=>{const ri=Yl(Un,!1);if(ri.length===0)return ri;let Fi=!0,ui=!0;if(ri.forEach(Ji=>{let{filteredKeys:Zi}=Ji;Zi!==void 0?Fi=!1:ui=!1}),Fi){const Ji=(Un||[]).map((Zi,Ar)=>vl(Zi,yl(Ar)));return qn.filter(Zi=>{let{key:Ar}=Zi;return Ji.includes(Ar)}).map(Zi=>{const Ar=Un[Ji.findIndex(Er=>Er===Zi.key)];return Object.assign(Object.assign({},Zi),{column:Object.assign(Object.assign({},Zi.column),Ar),forceFiltered:Ar.filtered})})}return ri},[Un,qn]),pn=Mt.useMemo(()=>bu(un),[un]),Qn=ri=>{const Fi=un.filter(ui=>{let{key:Ji}=ui;return Ji!==ri.key});Fi.push(ri),Qe(Fi),mn(bu(Fi),Fi)};return[ri=>Pu(me,Ze,ri,un,Tn,Qn,en),un,pn]}var Hd=zo;function Eu(pe,me,Ze){const Ye=Mt.useRef({});function mn(en){if(!Ye.current||Ye.current.data!==pe||Ye.current.childrenColumnName!==me||Ye.current.getRowKey!==Ze){let Un=function(qn){qn.forEach((Qe,un)=>{const pn=Ze(Qe,un);Tn.set(pn,Qe),Qe&&typeof Qe=="object"&&me in Qe&&Un(Qe[me]||[])})};const Tn=new Map;Un(pe),Ye.current={data:pe,childrenColumnName:me,kvMap:Tn,getRowKey:Ze}}return Ye.current.kvMap.get(en)}return[mn]}var yd=Ft(50371),kh=function(pe,me){var Ze={};for(var Ye in pe)Object.prototype.hasOwnProperty.call(pe,Ye)&&me.indexOf(Ye)<0&&(Ze[Ye]=pe[Ye]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mn=0,Ye=Object.getOwnPropertySymbols(pe);mn<Ye.length;mn++)me.indexOf(Ye[mn])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ye[mn])&&(Ze[Ye[mn]]=pe[Ye[mn]]);return Ze};const nc=10;function il(pe,me){const Ze={current:pe.current,pageSize:pe.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach(mn=>{const en=pe[mn];typeof en!="function"&&(Ze[mn]=en)}),Ze}function Ch(pe,me,Ze){const Ye=Ze&&typeof Ze=="object"?Ze:{},{total:mn=0}=Ye,en=kh(Ye,["total"]),[Tn,Un]=(0,Mt.useState)(()=>({current:"defaultCurrent"in en?en.defaultCurrent:1,pageSize:"defaultPageSize"in en?en.defaultPageSize:nc})),qn=(0,yd.Z)(Tn,en,{total:mn>0?mn:pe}),Qe=Math.ceil((mn||pe)/qn.pageSize);qn.current>Qe&&(qn.current=Qe||1);const un=(Qn,$n)=>{Un({current:Qn!=null?Qn:1,pageSize:$n||qn.pageSize})},pn=(Qn,$n)=>{var ri;Ze&&((ri=Ze.onChange)===null||ri===void 0||ri.call(Ze,Qn,$n)),un(Qn,$n),me(Qn,$n||(qn==null?void 0:qn.pageSize))};return Ze===!1?[{},()=>{}]:[Object.assign(Object.assign({},qn),{onChange:pn}),un]}var Qd=Ch,Oc=Ft(84105),Dc=Ft(35654),Es=Ft(90782),ma=Ft(71430),Uu=Ft(18929);const Ya={},rl="SELECT_ALL",Ha="SELECT_INVERT",da="SELECT_NONE",Ja=[],jl=(pe,me)=>{let Ze=[];return(me||[]).forEach(Ye=>{Ze.push(Ye),Ye&&typeof Ye=="object"&&pe in Ye&&(Ze=[].concat((0,no.Z)(Ze),(0,no.Z)(jl(pe,Ye[pe]))))}),Ze};var dh=(pe,me)=>{const{preserveSelectedRowKeys:Ze,selectedRowKeys:Ye,defaultSelectedRowKeys:mn,getCheckboxProps:en,onChange:Tn,onSelect:Un,onSelectAll:qn,onSelectInvert:Qe,onSelectNone:un,onSelectMultiple:pn,columnWidth:Qn,type:$n,selections:ri,fixed:Fi,renderCell:ui,hideSelectAll:Ji,checkStrictly:Zi=!0}=me||{},{prefixCls:Ar,data:Er,pageData:io,getRecordByKey:ki,getRowKey:Yn,expandType:Bo,childrenColumnName:Pr,locale:sr,getPopupContainer:ar}=pe,[er,vr]=(0,Uu.Z)(Ye||mn||Ja,{value:Ye}),Vr=Mt.useRef(new Map),ho=(0,Mt.useCallback)(Ko=>{if(Ze){const Go=new Map;Ko.forEach(As=>{let es=ki(As);!es&&Vr.current.has(As)&&(es=Vr.current.get(As)),Go.set(As,es)}),Vr.current=Go}},[ki,Ze]);Mt.useEffect(()=>{ho(er)},[er]);const{keyEntities:po}=(0,Mt.useMemo)(()=>{if(Zi)return{keyEntities:null};let Ko=Er;if(Ze){const Go=new Set(Er.map((es,Os)=>Yn(es,Os))),As=Array.from(Vr.current).reduce((es,Os)=>{let[ro,Wo]=Os;return Go.has(ro)?es:es.concat(Wo)},[]);Ko=[].concat((0,no.Z)(Ko),(0,no.Z)(As))}return(0,ma.I8)(Ko,{externalGetKey:Yn,childrenPropName:Pr})},[Er,Yn,Zi,Pr,Ze]),_r=(0,Mt.useMemo)(()=>jl(Pr,io),[Pr,io]),Do=(0,Mt.useMemo)(()=>{const Ko=new Map;return _r.forEach((Go,As)=>{const es=Yn(Go,As),Os=(en?en(Go):null)||{};Ko.set(es,Os)}),Ko},[_r,Yn,en]),us=(0,Mt.useCallback)(Ko=>{var Go;return!!(!((Go=Do.get(Yn(Ko)))===null||Go===void 0)&&Go.disabled)},[Do,Yn]),[Yo,ns]=(0,Mt.useMemo)(()=>{if(Zi)return[er||[],[]];const{checkedKeys:Ko,halfCheckedKeys:Go}=(0,Es.S)(er,!0,po,us);return[Ko||[],Go]},[er,Zi,po,us]),So=(0,Mt.useMemo)(()=>{const Ko=$n==="radio"?Yo.slice(0,1):Yo;return new Set(Ko)},[Yo,$n]),va=(0,Mt.useMemo)(()=>$n==="radio"?new Set:new Set(ns),[ns,$n]),[Vo,rs]=(0,Mt.useState)(null);Mt.useEffect(()=>{me||vr(Ja)},[!!me]);const Cs=(0,Mt.useCallback)((Ko,Go)=>{let As,es;ho(Ko),Ze?(As=Ko,es=Ko.map(Os=>Vr.current.get(Os))):(As=[],es=[],Ko.forEach(Os=>{const ro=ki(Os);ro!==void 0&&(As.push(Os),es.push(ro))})),vr(As),Tn==null||Tn(As,es,{type:Go})},[vr,ki,Tn,Ze]),ta=(0,Mt.useCallback)((Ko,Go,As,es)=>{if(Un){const Os=As.map(ro=>ki(ro));Un(ki(Ko),Go,Os,es)}Cs(As,"single")},[Un,ki,Cs]),Da=(0,Mt.useMemo)(()=>!ri||Ji?null:(ri===!0?[rl,Ha,da]:ri).map(Go=>Go===rl?{key:"all",text:sr.selectionAll,onSelect(){Cs(Er.map((As,es)=>Yn(As,es)).filter(As=>{const es=Do.get(As);return!(es!=null&&es.disabled)||So.has(As)}),"all")}}:Go===Ha?{key:"invert",text:sr.selectInvert,onSelect(){const As=new Set(So);io.forEach((Os,ro)=>{const Wo=Yn(Os,ro),aa=Do.get(Wo);aa!=null&&aa.disabled||(As.has(Wo)?As.delete(Wo):As.add(Wo))});const es=Array.from(As);Qe&&Qe(es),Cs(es,"invert")}}:Go===da?{key:"none",text:sr.selectNone,onSelect(){un==null||un(),Cs(Array.from(So).filter(As=>{const es=Do.get(As);return es==null?void 0:es.disabled}),"none")}}:Go).map(Go=>Object.assign(Object.assign({},Go),{onSelect:function(){for(var As,es,Os=arguments.length,ro=new Array(Os),Wo=0;Wo<Os;Wo++)ro[Wo]=arguments[Wo];(es=Go.onSelect)===null||es===void 0||(As=es).call.apply(As,[Go].concat(ro)),rs(null)}})),[ri,So,io,Yn,Qe,Cs]);return[(0,Mt.useCallback)(Ko=>{var Go;if(!me)return Ko.filter(ea=>ea!==Ya);let As=(0,no.Z)(Ko);const es=new Set(So),Os=_r.map(Yn).filter(ea=>!Do.get(ea).disabled),ro=Os.every(ea=>es.has(ea)),Wo=Os.some(ea=>es.has(ea)),aa=()=>{const ea=[];ro?Os.forEach(Na=>{es.delete(Na),ea.push(Na)}):Os.forEach(Na=>{es.has(Na)||(es.add(Na),ea.push(Na))});const la=Array.from(es);qn==null||qn(!ro,la.map(Na=>ki(Na)),ea.map(Na=>ki(Na))),Cs(la,"all"),rs(null)};let Us;if($n!=="radio"){let ea;if(Da){const Rs={getPopupContainer:ar,items:Da.map((Ia,xl)=>{const{key:pu,text:uu,onSelect:Ru}=Ia;return{key:pu!=null?pu:xl,onClick:()=>{Ru==null||Ru(Os)},label:uu}})};ea=Mt.createElement("div",{className:`${Ar}-selection-extra`},Mt.createElement(Ml.Z,{menu:Rs,getPopupContainer:ar},Mt.createElement("span",null,Mt.createElement(Oc.Z,null))))}const la=_r.map((Rs,Ia)=>{const xl=Yn(Rs,Ia),pu=Do.get(xl)||{};return Object.assign({checked:es.has(xl)},pu)}).filter(Rs=>{let{disabled:Ia}=Rs;return Ia}),Na=!!la.length&&la.length===_r.length,Va=Na&&la.every(Rs=>{let{checked:Ia}=Rs;return Ia}),ol=Na&&la.some(Rs=>{let{checked:Ia}=Rs;return Ia});Us=!Ji&&Mt.createElement("div",{className:`${Ar}-selection`},Mt.createElement(Hs.default,{checked:Na?Va:!!_r.length&&ro,indeterminate:Na?!Va&&ol:!ro&&Wo,onChange:aa,disabled:_r.length===0||Na,"aria-label":ea?"Custom selection":"Select all",skipGroup:!0}),ea)}let zl;$n==="radio"?zl=(ea,la,Na)=>{const Va=Yn(la,Na),ol=es.has(Va);return{node:Mt.createElement(Gr.ZP,Object.assign({},Do.get(Va),{checked:ol,onClick:Rs=>Rs.stopPropagation(),onChange:Rs=>{es.has(Va)||ta(Va,!0,[Va],Rs.nativeEvent)}})),checked:ol}}:zl=(ea,la,Na)=>{var Va;const ol=Yn(la,Na),Rs=es.has(ol),Ia=va.has(ol),xl=Do.get(ol);let pu;return Bo==="nest"?pu=Ia:pu=(Va=xl==null?void 0:xl.indeterminate)!==null&&Va!==void 0?Va:Ia,{node:Mt.createElement(Hs.default,Object.assign({},xl,{indeterminate:pu,checked:Rs,skipGroup:!0,onClick:uu=>uu.stopPropagation(),onChange:uu=>{let{nativeEvent:Ru}=uu;const{shiftKey:$u}=Ru;let Ah=-1,Yu=-1;if($u&&Zi){const Ua=new Set([Vo,ol]);Os.some((Bu,Rl)=>{if(Ua.has(Bu))if(Ah===-1)Ah=Rl;else return Yu=Rl,!0;return!1})}if(Yu!==-1&&Ah!==Yu&&Zi){const Ua=Os.slice(Ah,Yu+1),Bu=[];Rs?Ua.forEach(tl=>{es.has(tl)&&(Bu.push(tl),es.delete(tl))}):Ua.forEach(tl=>{es.has(tl)||(Bu.push(tl),es.add(tl))});const Rl=Array.from(es);pn==null||pn(!Rs,Rl.map(tl=>ki(tl)),Bu.map(tl=>ki(tl))),Cs(Rl,"multiple")}else{const Ua=Yo;if(Zi){const Bu=Rs?(0,Dc._5)(Ua,ol):(0,Dc.L0)(Ua,ol);ta(ol,!Rs,Bu,Ru)}else{const Bu=(0,Es.S)([].concat((0,no.Z)(Ua),[ol]),!0,po,us),{checkedKeys:Rl,halfCheckedKeys:tl}=Bu;let vh=Rl;if(Rs){const Cc=new Set(Rl);Cc.delete(ol),vh=(0,Es.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:tl},po,us).checkedKeys}ta(ol,!Rs,vh,Ru)}}rs(Rs?null:ol)}})),checked:Rs}};const Fl=(ea,la,Na)=>{const{node:Va,checked:ol}=zl(ea,la,Na);return ui?ui(ol,la,Na,Va):Va};if(!As.includes(Ya))if(As.findIndex(ea=>{var la;return((la=ea[Ir])===null||la===void 0?void 0:la.columnType)==="EXPAND_COLUMN"})===0){const[ea,...la]=As;As=[ea,Ya].concat((0,no.Z)(la))}else As=[Ya].concat((0,no.Z)(As));const Ps=As.indexOf(Ya);As=As.filter((ea,la)=>ea!==Ya||la===Ps);const ca=As[Ps-1],Ul=As[Ps+1];let fo=Fi;fo===void 0&&((Ul==null?void 0:Ul.fixed)!==void 0?fo=Ul.fixed:(ca==null?void 0:ca.fixed)!==void 0&&(fo=ca.fixed)),fo&&ca&&((Go=ca[Ir])===null||Go===void 0?void 0:Go.columnType)==="EXPAND_COLUMN"&&ca.fixed===void 0&&(ca.fixed=fo);const ja=Wt()(`${Ar}-selection-col`,{[`${Ar}-selection-col-with-dropdown`]:ri&&$n==="checkbox"}),Gl={fixed:fo,width:Qn,className:`${Ar}-selection-column`,title:me.columnTitle||Us,render:Fl,onCell:me.onCell,[Ir]:{className:ja}};return As.map(ea=>ea===Ya?Gl:ea)},[Yn,_r,me,Yo,So,va,Qn,Da,Bo,Vo,Do,pn,ta,us]),So]},ll=Ft(89489),zd=Ft(59477),td=Ft(6848);const Bh="ascend",Ro="descend";function sA(pe){return typeof pe.sorter=="object"&&typeof pe.sorter.multiple=="number"?pe.sorter.multiple:!1}function En(pe){return typeof pe=="function"?pe:pe&&typeof pe=="object"&&pe.compare?pe.compare:!1}function Vi(pe,me){return me?pe[pe.indexOf(me)+1]:pe[0]}function aA(pe,me,Ze){let Ye=[];function mn(en,Tn){Ye.push({column:en,key:vl(en,Tn),multiplePriority:sA(en),sortOrder:en.sortOrder})}return(pe||[]).forEach((en,Tn)=>{const Un=yl(Tn,Ze);en.children?("sortOrder"in en&&mn(en,Un),Ye=[].concat((0,no.Z)(Ye),(0,no.Z)(aA(en.children,me,Un)))):en.sorter&&("sortOrder"in en?mn(en,Un):me&&en.defaultSortOrder&&Ye.push({column:en,key:vl(en,Un),multiplePriority:sA(en),sortOrder:en.defaultSortOrder}))}),Ye}function ic(pe,me,Ze,Ye,mn,en,Tn,Un){return(me||[]).map((qn,Qe)=>{const un=yl(Qe,Un);let pn=qn;if(pn.sorter){const Qn=pn.sortDirections||mn,$n=pn.showSorterTooltip===void 0?Tn:pn.showSorterTooltip,ri=vl(pn,un),Fi=Ze.find(Bo=>{let{key:Pr}=Bo;return Pr===ri}),ui=Fi?Fi.sortOrder:null,Ji=Vi(Qn,ui);let Zi;if(qn.sortIcon)Zi=qn.sortIcon({sortOrder:ui});else{const Bo=Qn.includes(Bh)&&Mt.createElement(zd.Z,{className:Wt()(`${pe}-column-sorter-up`,{active:ui===Bh})}),Pr=Qn.includes(Ro)&&Mt.createElement(ll.Z,{className:Wt()(`${pe}-column-sorter-down`,{active:ui===Ro})});Zi=Mt.createElement("span",{className:Wt()(`${pe}-column-sorter`,{[`${pe}-column-sorter-full`]:!!(Bo&&Pr)})},Mt.createElement("span",{className:`${pe}-column-sorter-inner`,"aria-hidden":"true"},Bo,Pr))}const{cancelSort:Ar,triggerAsc:Er,triggerDesc:io}=en||{};let ki=Ar;Ji===Ro?ki=io:Ji===Bh&&(ki=Er);const Yn=typeof $n=="object"?$n:{title:ki};pn=Object.assign(Object.assign({},pn),{className:Wt()(pn.className,{[`${pe}-column-sort`]:ui}),title:Bo=>{const Pr=Mt.createElement("div",{className:`${pe}-column-sorters`},Mt.createElement("span",{className:`${pe}-column-title`},Dl(qn.title,Bo)),Zi);return $n?Mt.createElement(td.Z,Object.assign({},Yn),Pr):Pr},onHeaderCell:Bo=>{const Pr=qn.onHeaderCell&&qn.onHeaderCell(Bo)||{},sr=Pr.onClick,ar=Pr.onKeyDown;Pr.onClick=Vr=>{Ye({column:qn,key:ri,sortOrder:Ji,multiplePriority:sA(qn)}),sr==null||sr(Vr)},Pr.onKeyDown=Vr=>{Vr.keyCode===fr.Z.ENTER&&(Ye({column:qn,key:ri,sortOrder:Ji,multiplePriority:sA(qn)}),ar==null||ar(Vr))};const er=Bs(qn.title,{}),vr=er==null?void 0:er.toString();return ui?Pr["aria-sort"]=ui==="ascend"?"ascending":"descending":Pr["aria-label"]=vr||"",Pr.className=Wt()(Pr.className,`${pe}-column-has-sorters`),Pr.tabIndex=0,qn.ellipsis&&(Pr.title=(er!=null?er:"").toString()),Pr}})}return"children"in pn&&(pn=Object.assign(Object.assign({},pn),{children:ic(pe,pn.children,Ze,Ye,mn,en,Tn,un)})),pn})}function Gu(pe){const{column:me,sortOrder:Ze}=pe;return{column:me,order:Ze,field:me.dataIndex,columnKey:me.key}}function Wu(pe){const me=pe.filter(Ze=>{let{sortOrder:Ye}=Ze;return Ye}).map(Gu);return me.length===0&&pe.length?Object.assign(Object.assign({},Gu(pe[pe.length-1])),{column:void 0}):me.length<=1?me[0]||{}:me}function Ph(pe,me,Ze){const Ye=me.slice().sort((Tn,Un)=>Un.multiplePriority-Tn.multiplePriority),mn=pe.slice(),en=Ye.filter(Tn=>{let{column:{sorter:Un},sortOrder:qn}=Tn;return En(Un)&&qn});return en.length?mn.sort((Tn,Un)=>{for(let qn=0;qn<en.length;qn+=1){const Qe=en[qn],{column:{sorter:un},sortOrder:pn}=Qe,Qn=En(un);if(Qn&&pn){const $n=Qn(Tn,Un,pn);if($n!==0)return pn===Bh?$n:-$n}}return 0}).map(Tn=>{const Un=Tn[Ze];return Un?Object.assign(Object.assign({},Tn),{[Ze]:Ph(Un,me,Ze)}):Tn}):mn}function zA(pe){let{prefixCls:me,mergedColumns:Ze,onSorterChange:Ye,sortDirections:mn,tableLocale:en,showSorterTooltip:Tn}=pe;const[Un,qn]=Mt.useState(aA(Ze,!0)),Qe=Mt.useMemo(()=>{let ri=!0;const Fi=aA(Ze,!1);if(!Fi.length)return Un;const ui=[];function Ji(Ar){ri?ui.push(Ar):ui.push(Object.assign(Object.assign({},Ar),{sortOrder:null}))}let Zi=null;return Fi.forEach(Ar=>{Zi===null?(Ji(Ar),Ar.sortOrder&&(Ar.multiplePriority===!1?ri=!1:Zi=!0)):(Zi&&Ar.multiplePriority!==!1||(ri=!1),Ji(Ar))}),ui},[Ze,Un]),un=Mt.useMemo(()=>{const ri=Qe.map(Fi=>{let{column:ui,sortOrder:Ji}=Fi;return{column:ui,order:Ji}});return{sortColumns:ri,sortColumn:ri[0]&&ri[0].column,sortOrder:ri[0]&&ri[0].order}},[Qe]);function pn(ri){let Fi;ri.multiplePriority===!1||!Qe.length||Qe[0].multiplePriority===!1?Fi=[ri]:Fi=[].concat((0,no.Z)(Qe.filter(ui=>{let{key:Ji}=ui;return Ji!==ri.key})),[ri]),qn(Fi),Ye(Wu(Fi),Fi)}return[ri=>ic(me,ri,Qe,pn,mn,en,Tn),Qe,un,()=>Wu(Qe)]}function ed(pe,me){return pe.map(Ze=>{const Ye=Object.assign({},Ze);return Ye.title=Dl(Ze.title,me),"children"in Ye&&(Ye.children=ed(Ye.children,me)),Ye})}function qa(pe){return[Mt.useCallback(Ze=>ed(Ze,pe),[pe])]}var ys=wi((pe,me)=>{const{_renderTimes:Ze}=pe,{_renderTimes:Ye}=me;return Ze!==Ye}),oh=Sa((pe,me)=>{const{_renderTimes:Ze}=pe,{_renderTimes:Ye}=me;return Ze!==Ye}),Xu=Ft(64993),El=Ft(17313),oa=Ft(83116),gu=Ft(37613),wl=pe=>{const{componentCls:me}=pe,Ze=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,Ye=(mn,en,Tn)=>({[`&${me}-${mn}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${en}px -${Tn+pe.lineWidth}px`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:Ze,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:Ze,borderTop:Ze,[`
> ${me}-content,
> ${me}-header,
> ${me}-body,
> ${me}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Ze},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ze},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:Ze}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${pe.tablePaddingVertical}px -${pe.tablePaddingHorizontal+pe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:pe.lineWidth,bottom:0,borderInlineEnd:Ze,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
> tr${me}-expanded-row,
> tr${me}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ye("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle)),Ye("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:Ze,borderTop:0}}),[`${me}-cell`]:{[`${me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${pe.lineWidth}px 0 ${pe.lineWidth}px ${pe.tableHeaderBg}`}},[`${me}-bordered ${me}-cell-scrollbar`]:{borderInlineEnd:Ze}}}},Cu=pe=>{const{componentCls:me}=pe;return{[`${me}-wrapper`]:{[`${me}-cell-ellipsis`]:Object.assign(Object.assign({},El.vS),{wordBreak:"keep-all",[`
&${me}-cell-fix-left-last,
&${me}-cell-fix-right-first
`]:{overflow:"visible",[`${me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ea=pe=>{const{componentCls:me}=pe;return{[`${me}-wrapper`]:{[`${me}-tbody > tr${me}-placeholder`]:{textAlign:"center",color:pe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:pe.colorBgContainer}}}}},sh=Ft(15969),dl=pe=>{const{componentCls:me,antCls:Ze,controlInteractiveSize:Ye,motionDurationSlow:mn,lineWidth:en,paddingXS:Tn,lineType:Un,tableBorderColor:qn,tableExpandIconBg:Qe,tableExpandColumnWidth:un,borderRadius:pn,fontSize:Qn,fontSizeSM:$n,lineHeight:ri,tablePaddingVertical:Fi,tablePaddingHorizontal:ui,tableExpandedRowBg:Ji,paddingXXS:Zi}=pe,Ar=Ye/2-en,Er=Ar*2+en*3,io=`${en}px ${Un} ${qn}`,ki=Zi-en;return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:un},[`${me}-row-expand-icon-cell`]:{textAlign:"center",[`${me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${me}-row-indent`]:{height:1,float:"left"},[`${me}-row-expand-icon`]:Object.assign(Object.assign({},(0,sh.N)(pe)),{position:"relative",float:"left",boxSizing:"border-box",width:Er,height:Er,padding:0,color:"inherit",lineHeight:`${Er}px`,background:Qe,border:io,borderRadius:pn,transform:`scale(${Ye/Er})`,transition:`all ${mn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${mn} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:ki,insetInlineStart:ki,height:en},"&::after":{top:ki,bottom:ki,insetInlineStart:Ar,width:en,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:(Qn*ri-en*3)/2-Math.ceil(($n*1.4-en*3)/2),marginInlineEnd:Tn},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ji}},[`${Ze}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`-${Fi}px -${ui}px`,padding:`${Fi}px ${ui}px`}}}},Jl=pe=>{const{componentCls:me,antCls:Ze,iconCls:Ye,tableFilterDropdownWidth:mn,tableFilterDropdownSearchWidth:en,paddingXXS:Tn,paddingXS:Un,colorText:qn,lineWidth:Qe,lineType:un,tableBorderColor:pn,tableHeaderIconColor:Qn,fontSizeSM:$n,tablePaddingHorizontal:ri,borderRadius:Fi,motionDurationSlow:ui,colorTextDescription:Ji,colorPrimary:Zi,tableHeaderFilterActiveBg:Ar,colorTextDisabled:Er,tableFilterDropdownBg:io,tableFilterDropdownHeight:ki,controlItemBgHover:Yn,controlItemBgActive:Bo,boxShadowSecondary:Pr,filterDropdownMenuBg:sr}=pe,ar=`${Ze}-dropdown`,er=`${me}-filter-dropdown`,vr=`${Ze}-tree`,Vr=`${Qe}px ${un} ${pn}`;return[{[`${me}-wrapper`]:{[`${me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Tn,marginInline:`${Tn}px ${-ri/2}px`,padding:`0 ${Tn}px`,color:Qn,fontSize:$n,borderRadius:Fi,cursor:"pointer",transition:`all ${ui}`,"&:hover":{color:Ji,background:Ar},"&.active":{color:Zi}}}},{[`${Ze}-dropdown`]:{[er]:Object.assign(Object.assign({},(0,El.Wf)(pe)),{minWidth:mn,backgroundColor:io,borderRadius:Fi,boxShadow:Pr,overflow:"hidden",[`${ar}-menu`]:{maxHeight:ki,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:sr,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:Er,fontSize:$n,textAlign:"center",content:'"Not Found"'}},[`${er}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[vr]:{padding:0},[`${vr}-treenode ${vr}-node-content-wrapper:hover`]:{backgroundColor:Yn},[`${vr}-treenode-checkbox-checked ${vr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Bo}}},[`${er}-search`]:{padding:Un,borderBottom:Vr,"&-input":{input:{minWidth:en},[Ye]:{color:Er}}},[`${er}-checkall`]:{width:"100%",marginBottom:Tn,marginInlineStart:Tn},[`${er}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-Qe}px ${Un}px`,overflow:"hidden",borderTop:Vr}})}},{[`${Ze}-dropdown ${er}, ${er}-submenu`]:{[`${Ze}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:qn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},wt=pe=>{const{componentCls:me,lineWidth:Ze,colorSplit:Ye,motionDurationSlow:mn,zIndexTableFixed:en,tableBg:Tn,zIndexTableSticky:Un}=pe,qn=Ye;return{[`${me}-wrapper`]:{[`
${me}-cell-fix-left,
${me}-cell-fix-right
`]:{position:"sticky !important",zIndex:en,background:Tn},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ze,width:30,transform:"translateX(100%)",transition:`box-shadow ${mn}`,content:'""',pointerEvents:"none"},[`${me}-cell-fix-left-all::after`]:{display:"none"},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ze,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${mn}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${mn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${me}-ping-left`]:{[`&:not(${me}-has-fix-left) ${me}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${qn}`}},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${qn}`},[`${me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${me}-ping-right`]:{[`&:not(${me}-has-fix-right) ${me}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${qn}`}},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${qn}`}}}}},Qt=pe=>{const{componentCls:me,antCls:Ze}=pe;return{[`${me}-wrapper`]:{[`${me}-pagination${Ze}-pagination`]:{margin:`${pe.margin}px 0`},[`${me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:pe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Yt=pe=>{const{componentCls:me,tableRadius:Ze}=pe;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${Ze}px ${Ze}px 0 0`},[`${me}-title + ${me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${me}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ze,borderStartEndRadius:Ze,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ze},"> *:last-child":{borderStartEndRadius:Ze}}},"&-footer":{borderRadius:`0 0 ${Ze}px ${Ze}px`}}}}},we=pe=>{const{componentCls:me}=pe;return{[`${me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${me}-pagination-left`]:{justifyContent:"flex-end"},[`${me}-pagination-right`]:{justifyContent:"flex-start"},[`${me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${me}-row-indent`]:{float:"right"}}}}},Xe=pe=>{const{componentCls:me,antCls:Ze,iconCls:Ye,fontSizeIcon:mn,padding:en,paddingXS:Tn,tableHeaderIconColor:Un,tableHeaderIconColorHover:qn,tableSelectionColumnWidth:Qe}=pe;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:Qe,[`&${me}-selection-col-with-dropdown`]:{width:Qe+mn+en/4}},[`${me}-bordered ${me}-selection-col`]:{width:Qe+Tn*2,[`&${me}-selection-col-with-dropdown`]:{width:Qe+mn+en/4+Tn*2}},[`
table tr th${me}-selection-column,
table tr td${me}-selection-column
`]:{paddingInlineEnd:pe.paddingXS,paddingInlineStart:pe.paddingXS,textAlign:"center",[`${Ze}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${me}-selection-column${me}-cell-fix-left`]:{zIndex:pe.zIndexTableFixed+1},[`table tr th${me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${pe.tablePaddingHorizontal/4}px`,[Ye]:{color:Un,fontSize:mn,verticalAlign:"baseline","&:hover":{color:qn}}}}}},An=pe=>{const{componentCls:me}=pe,Ze=(Ye,mn,en,Tn)=>({[`${me}${me}-${Ye}`]:{fontSize:Tn,[`
${me}-title,
${me}-footer,
${me}-cell,
${me}-thead > tr > th,
${me}-tbody > tr > th,
${me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${mn}px ${en}px`},[`${me}-filter-trigger`]:{marginInlineEnd:`-${en/2}px`},[`${me}-expanded-row-fixed`]:{margin:`-${mn}px -${en}px`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:`-${mn}px`,marginInline:`${pe.tableExpandColumnWidth-en}px -${en}px`}},[`${me}-selection-column`]:{paddingInlineStart:`${en/4}px`}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Ze("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle,pe.tableFontSizeMiddle)),Ze("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall,pe.tableFontSizeSmall))}},ze=pe=>{const{componentCls:me,marginXXS:Ze,fontSizeIcon:Ye,tableHeaderIconColor:mn,tableHeaderIconColorHover:en}=pe;return{[`${me}-wrapper`]:{[`${me}-thead th${me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,"&:hover":{background:pe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:pe.colorPrimary},[`
&${me}-cell-fix-left:hover,
&${me}-cell-fix-right:hover
`]:{background:pe.tableFixedHeaderSortActiveBg}},[`${me}-thead th${me}-column-sort`]:{background:pe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${me}-column-sort`]:{background:pe.tableBodySortBg},[`${me}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${me}-column-sorter`]:{marginInlineStart:Ze,color:mn,fontSize:0,transition:`color ${pe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ye,"&.active":{color:pe.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:en}}}},ti=pe=>{const{componentCls:me,opacityLoading:Ze,tableScrollThumbBg:Ye,tableScrollThumbBgHover:mn,tableScrollThumbSize:en,tableScrollBg:Tn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:qn}=pe,Qe=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`;return{[`${me}-wrapper`]:{[`${me}-sticky`]:{"&-holder":{position:"sticky",zIndex:Un,background:pe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${en}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Tn,borderTop:Qe,opacity:Ze,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:en,backgroundColor:Ye,borderRadius:qn,transition:`all ${pe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:mn}}}}}}},Rn=pe=>{const{componentCls:me,lineWidth:Ze,tableBorderColor:Ye}=pe,mn=`${Ze}px ${pe.lineType} ${Ye}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:pe.zIndexTableFixed,background:pe.tableBg,"> tr":{"> th, > td":{borderBottom:mn}}},[`div${me}-summary`]:{boxShadow:`0 -${Ze}px 0 ${Ye}`}}}},Qi=pe=>{const{componentCls:me}=pe,Ze=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,Ye=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${me}-cell`]:{borderBottom:Ze},[`${me}-expanded-row`]:{[`${Ye}${Ye}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${pe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${me}-bordered`]:{[`${me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ze,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:Ze,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-pe.lineWidth,borderInlineStart:Ze}}}}}}};const rr=pe=>{const{componentCls:me,fontWeightStrong:Ze,tablePaddingVertical:Ye,tablePaddingHorizontal:mn,lineWidth:en,lineType:Tn,tableBorderColor:Un,tableFontSize:qn,tableBg:Qe,tableRadius:un,tableHeaderTextColor:pn,motionDurationMid:Qn,tableHeaderBg:$n,tableHeaderCellSplitColor:ri,tableRowHoverBg:Fi,tableSelectedRowBg:ui,tableSelectedRowHoverBg:Ji,tableFooterTextColor:Zi,tableFooterBg:Ar,paddingContentVerticalLG:Er}=pe,io=`${en}px ${Tn} ${Un}`;return{[`${me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,El.dF)()),{[me]:Object.assign(Object.assign({},(0,El.Wf)(pe)),{fontSize:qn,background:Qe,borderRadius:`${un}px ${un}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${un}px ${un}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${me}-cell,
${me}-thead > tr > th,
${me}-tbody > tr > th,
${me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Er}px ${mn}px`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${Ye}px ${mn}px`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:pn,fontWeight:Ze,textAlign:"start",background:$n,borderBottom:io,transition:`background ${Qn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${me}-selection-column):not(${me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ri,transform:"translateY(-50%)",transition:`background-color ${Qn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Qn}, border-color ${Qn}`,borderBottom:io,[`
> ${me}-wrapper:only-child,
> ${me}-expanded-row-fixed > ${me}-wrapper:only-child
`]:{[me]:{marginBlock:`-${Ye}px`,marginInline:`${pe.tableExpandColumnWidth-mn}px -${mn}px`,[`${me}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:pn,fontWeight:Ze,textAlign:"start",background:$n,borderBottom:io,transition:`background ${Qn} ease`},[`
&${me}-row:hover > th,
&${me}-row:hover > td,
> th${me}-cell-row-hover,
> td${me}-cell-row-hover
`]:{background:Fi},[`&${me}-row-selected`]:{"> th, > td":{background:ui},"&:hover > th, &:hover > td":{background:Ji}}}},[`${me}-footer`]:{padding:`${Ye}px ${mn}px`,color:Zi,background:Ar}})}};var Fr=(0,oa.Z)("Table",pe=>{const{colorTextHeading:me,colorSplit:Ze,colorIcon:Ye,colorIconHover:mn,opacityLoading:en,colorBgContainer:Tn,controlInteractiveSize:Un,headerBg:qn,headerColor:Qe,headerSortActiveBg:un,headerSortHoverBg:pn,bodySortBg:Qn,rowHoverBg:$n,rowSelectedBg:ri,rowSelectedHoverBg:Fi,rowExpandedBg:ui,cellPaddingBlock:Ji,cellPaddingInline:Zi,cellPaddingBlockMD:Ar,cellPaddingInlineMD:Er,cellPaddingBlockSM:io,cellPaddingInlineSM:ki,borderColor:Yn,footerBg:Bo,footerColor:Pr,headerBorderRadius:sr,cellFontSize:ar,cellFontSizeMD:er,cellFontSizeSM:vr,headerSplitColor:Vr,fixedHeaderSortActiveBg:ho,headerFilterHoverBg:po,filterDropdownBg:_r,expandIconBg:Do,selectionColumnWidth:us,stickyScrollBarBg:Yo}=pe,ns=new Xu.C(Ye),So=new Xu.C(mn),va=2,Vo=(0,gu.TS)(pe,{tableFontSize:ar,tableBg:Tn,tableRadius:sr,tablePaddingVertical:Ji,tablePaddingHorizontal:Zi,tablePaddingVerticalMiddle:Ar,tablePaddingHorizontalMiddle:Er,tablePaddingVerticalSmall:io,tablePaddingHorizontalSmall:ki,tableBorderColor:Yn,tableHeaderTextColor:Qe,tableHeaderBg:qn,tableFooterTextColor:Pr,tableFooterBg:Bo,tableHeaderCellSplitColor:Vr,tableHeaderSortBg:un,tableHeaderSortHoverBg:pn,tableHeaderIconColor:ns.clone().setAlpha(ns.getAlpha()*en).toRgbString(),tableHeaderIconColorHover:So.clone().setAlpha(So.getAlpha()*en).toRgbString(),tableBodySortBg:Qn,tableFixedHeaderSortActiveBg:ho,tableHeaderFilterActiveBg:po,tableFilterDropdownBg:_r,tableRowHoverBg:$n,tableSelectedRowBg:ri,tableSelectedRowHoverBg:Fi,zIndexTableFixed:va,zIndexTableSticky:va+1,tableFontSizeMiddle:er,tableFontSizeSmall:vr,tableSelectionColumnWidth:us,tableExpandIconBg:Do,tableExpandColumnWidth:Un+2*pe.padding,tableExpandedRowBg:ui,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Yo,tableScrollThumbBgHover:me,tableScrollBg:Ze});return[rr(Vo),Qt(Vo),Rn(Vo),ze(Vo),Jl(Vo),wl(Vo),Yt(Vo),dl(Vo),Rn(Vo),Ea(Vo),Xe(Vo),wt(Vo),ti(Vo),Cu(Vo),An(Vo),we(Vo),Qi(Vo)]},pe=>{const{colorFillAlter:me,colorBgContainer:Ze,colorTextHeading:Ye,colorFillSecondary:mn,colorFillContent:en,controlItemBgActive:Tn,controlItemBgActiveHover:Un,padding:qn,paddingSM:Qe,paddingXS:un,colorBorderSecondary:pn,borderRadiusLG:Qn,fontSize:$n,controlHeight:ri,colorTextPlaceholder:Fi}=pe,ui=new Xu.C(mn).onBackground(Ze).toHexShortString(),Ji=new Xu.C(en).onBackground(Ze).toHexShortString(),Zi=new Xu.C(me).onBackground(Ze).toHexShortString();return{headerBg:Zi,headerColor:Ye,headerSortActiveBg:ui,headerSortHoverBg:Ji,bodySortBg:Zi,rowHoverBg:Zi,rowSelectedBg:Tn,rowSelectedHoverBg:Un,rowExpandedBg:me,cellPaddingBlock:qn,cellPaddingInline:qn,cellPaddingBlockMD:Qe,cellPaddingInlineMD:un,cellPaddingBlockSM:un,cellPaddingInlineSM:un,borderColor:pn,headerBorderRadius:Qn,footerBg:Zi,footerColor:Ye,cellFontSize:$n,cellFontSizeMD:$n,cellFontSizeSM:$n,headerSplitColor:pn,fixedHeaderSortActiveBg:ui,headerFilterHoverBg:en,filterDropdownMenuBg:Ze,filterDropdownBg:Ze,expandIconBg:Ze,selectionColumnWidth:ri,stickyScrollBarBg:Fi,stickyScrollBarBorderRadius:100}});const lo=[],mr=(pe,me)=>{const{prefixCls:Ze,className:Ye,rootClassName:mn,style:en,size:Tn,bordered:Un,dropdownPrefixCls:qn,dataSource:Qe,pagination:un,rowSelection:pn,rowKey:Qn="key",rowClassName:$n,columns:ri,children:Fi,childrenColumnName:ui,onChange:Ji,getPopupContainer:Zi,loading:Ar,expandIcon:Er,expandable:io,expandedRowRender:ki,expandIconColumnIndex:Yn,indentSize:Bo,scroll:Pr,sortDirections:sr,locale:ar,showSorterTooltip:er=!0,virtual:vr}=pe,Vr=Mt.useMemo(()=>ri||pi(Fi),[ri,Fi]),ho=Mt.useMemo(()=>Vr.some(fa=>fa.responsive),[Vr]),po=(0,Ki.Z)(ho),_r=Mt.useMemo(()=>{const fa=new Set(Object.keys(po).filter(Sl=>po[Sl]));return Vr.filter(Sl=>!Sl.responsive||Sl.responsive.some(Ca=>fa.has(Ca)))},[Vr,po]),Do=(0,wo.Z)(pe,["className","style","columns"]),{locale:us=Ts.Z,direction:Yo,table:ns,renderEmpty:So,getPrefixCls:va,getPopupContainer:Vo}=Mt.useContext(co.E_),rs=(0,Uo.Z)(Tn),Cs=Object.assign(Object.assign({},us.Table),ar),ta=Qe||lo,Da=va("table",Ze),Ys=va("dropdown",qn),Ko=Object.assign({childrenColumnName:ui,expandIconColumnIndex:Yn},io),{childrenColumnName:Go="children"}=Ko,As=Mt.useMemo(()=>ta.some(fa=>fa==null?void 0:fa[Go])?"nest":ki||io&&io.expandedRowRender?"row":null,[ta]),es={body:Mt.useRef()},Os=Mt.useMemo(()=>typeof Qn=="function"?Qn:fa=>fa==null?void 0:fa[Qn],[Qn]),[ro]=Eu(ta,Go,Os),Wo={},aa=function(fa,Sl){let Ca=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Al,ga,hu;const Fu=Object.assign(Object.assign({},Wo),fa);Ca&&((Al=Wo.resetPagination)===null||Al===void 0||Al.call(Wo),!((ga=Fu.pagination)===null||ga===void 0)&&ga.current&&(Fu.pagination.current=1),un&&un.onChange&&un.onChange(1,(hu=Fu.pagination)===null||hu===void 0?void 0:hu.pageSize)),Pr&&Pr.scrollToFirstRowOnChange!==!1&&es.body.current&&(0,ks.Z)(0,{getContainer:()=>es.body.current}),Ji==null||Ji(Fu.pagination,Fu.filters,Fu.sorter,{currentDataSource:fu(Ph(ta,Fu.sorterStates,Go),Fu.filterStates),action:Sl})},Us=(fa,Sl)=>{aa({sorter:fa,sorterStates:Sl},"sort",!1)},[zl,Fl,Ps,ca]=zA({prefixCls:Da,mergedColumns:_r,onSorterChange:Us,sortDirections:sr||["ascend","descend"],tableLocale:Cs,showSorterTooltip:er}),Ul=Mt.useMemo(()=>Ph(ta,Fl,Go),[ta,Fl]);Wo.sorter=ca(),Wo.sorterStates=Fl;const fo=(fa,Sl)=>{aa({filters:fa,filterStates:Sl},"filter",!0)},[ja,Gl,ea]=Hd({prefixCls:Da,locale:Cs,dropdownPrefixCls:Ys,mergedColumns:_r,onFilterChange:fo,getPopupContainer:Zi||Vo}),la=fu(Ul,Gl);Wo.filters=ea,Wo.filterStates=Gl;const Na=Mt.useMemo(()=>{const fa={};return Object.keys(ea).forEach(Sl=>{ea[Sl]!==null&&(fa[Sl]=ea[Sl])}),Object.assign(Object.assign({},Ps),{filters:fa})},[Ps,ea]),[Va]=qa(Na),ol=(fa,Sl)=>{aa({pagination:Object.assign(Object.assign({},Wo.pagination),{current:fa,pageSize:Sl})},"paginate")},[Rs,Ia]=Qd(la.length,ol,un);Wo.pagination=un===!1?{}:il(Rs,un),Wo.resetPagination=Ia;const xl=Mt.useMemo(()=>{if(un===!1||!Rs.pageSize)return la;const{current:fa=1,total:Sl,pageSize:Ca=nc}=Rs;return la.length<Sl?la.length>Ca?la.slice((fa-1)*Ca,fa*Ca):la:la.slice((fa-1)*Ca,fa*Ca)},[!!un,la,Rs&&Rs.current,Rs&&Rs.pageSize,Rs&&Rs.total]),[pu,uu]=dh({prefixCls:Da,data:la,pageData:xl,getRowKey:Os,getRecordByKey:ro,expandType:As,childrenColumnName:Go,locale:Cs,getPopupContainer:Zi||Vo},pn),Ru=(fa,Sl,Ca)=>{let Al;return typeof $n=="function"?Al=Wt()($n(fa,Sl,Ca)):Al=Wt()($n),Wt()({[`${Da}-row-selected`]:uu.has(Os(fa,Sl))},Al)};Ko.__PARENT_RENDER_ICON__=Ko.expandIcon,Ko.expandIcon=Ko.expandIcon||Er||Zs(Cs),As==="nest"&&Ko.expandIconColumnIndex===void 0?Ko.expandIconColumnIndex=pn?1:0:Ko.expandIconColumnIndex>0&&pn&&(Ko.expandIconColumnIndex-=1),typeof Ko.indentSize!="number"&&(Ko.indentSize=typeof Bo=="number"?Bo:15);const $u=Mt.useCallback(fa=>Va(pu(ja(zl(fa)))),[zl,ja,pu]);let Ah,Yu;if(un!==!1&&(Rs!=null&&Rs.total)){let fa;Rs.size?fa=Rs.size:fa=rs==="small"||rs==="middle"?"small":void 0;const Sl=ga=>Mt.createElement(zs.Z,Object.assign({},Rs,{className:Wt()(`${Da}-pagination ${Da}-pagination-${ga}`,Rs.className),size:fa})),Ca=Yo==="rtl"?"left":"right",{position:Al}=Rs;if(Al!==null&&Array.isArray(Al)){const ga=Al.find(Kh=>Kh.includes("top")),hu=Al.find(Kh=>Kh.includes("bottom")),Fu=Al.every(Kh=>`${Kh}`=="none");!ga&&!hu&&!Fu&&(Yu=Sl(Ca)),ga&&(Ah=Sl(ga.toLowerCase().replace("top",""))),hu&&(Yu=Sl(hu.toLowerCase().replace("bottom","")))}else Yu=Sl(Ca)}let Ua;typeof Ar=="boolean"?Ua={spinning:Ar}:typeof Ar=="object"&&(Ua=Object.assign({spinning:!0},Ar));const[Bu,Rl]=Fr(Da),[,tl]=(0,qs.Z)(),vh=Wt()(`${Da}-wrapper`,ns==null?void 0:ns.className,{[`${Da}-wrapper-rtl`]:Yo==="rtl"},Ye,mn,Rl),Cc=Object.assign(Object.assign({},ns==null?void 0:ns.style),en),yh=ar&&ar.emptyText||(So==null?void 0:So("Table"))||Mt.createElement(to.Z,{componentName:"Table"}),rc=vr?oh:ys,oc={},wh=Mt.useMemo(()=>{const{fontSize:fa,lineHeight:Sl,padding:Ca,paddingXS:Al,paddingSM:ga}=tl,hu=Math.floor(fa*Sl);switch(rs){case"large":return Ca*2+hu;case"small":return Al*2+hu;default:return ga*2+hu}},[tl,rs]);return vr&&(oc.listItemHeight=wh),Bu(Mt.createElement("div",{ref:me,className:vh,style:Cc},Mt.createElement(Aa.Z,Object.assign({spinning:!1},Ua),Ah,Mt.createElement(rc,Object.assign({},oc,Do,{columns:_r,direction:Yo,expandable:Ko,prefixCls:Da,className:Wt()({[`${Da}-middle`]:rs==="middle",[`${Da}-small`]:rs==="small",[`${Da}-bordered`]:Un,[`${Da}-empty`]:ta.length===0}),data:xl,rowKey:Os,rowClassName:Ru,emptyText:yh,internalHooks:ce,internalRefs:es,transformColumns:$u})),Yu)))};var Oi=Mt.forwardRef(mr);const Cr=(pe,me)=>{const Ze=Mt.useRef(0);return Ze.current+=1,Mt.createElement(Oi,Object.assign({},pe,{ref:me,_renderTimes:Ze.current}))},Or=Mt.forwardRef(Cr);Or.SELECTION_COLUMN=Ya,Or.EXPAND_COLUMN=Lt,Or.SELECTION_ALL=rl,Or.SELECTION_INVERT=Ha,Or.SELECTION_NONE=da,Or.Column=Ol,Or.ColumnGroup=$o,Or.Summary=ae;var Jn=Or,oi=Jn},17574:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{default:function(){return ve}});var Lt=Ft(23130),ce=Ft(26407),re=Ft(52671),Ie=Ft(8657),ee=Ft(92413),Vt=Ft(59301),Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},jt=Mt,qt=Ft(7657),bt=function(Ce,bn){return Vt.createElement(qt.Z,(0,ee.Z)({},Ce,{ref:bn,icon:jt}))},se=Vt.forwardRef(bt),Gt=se,Xt=Ft(92310),Ct=Ft.n(Xt),et=Ft(35654),tt=Ft(71430),lt=Ft(36355),rt=Ft(56082),ht=Ft(62892),dt=Ft(20648);const xt=4;function Nt(ne){const{dropPosition:Ce,dropLevelOffset:bn,prefixCls:Ln,indent:Ve,direction:Nn="ltr"}=ne,Zn=Nn==="ltr"?"left":"right",gi=Nn==="ltr"?"right":"left",Kn={[Zn]:-bn*Ve+xt,[gi]:0};switch(Ce){case-1:Kn.top=-3;break;case 1:Kn.bottom=-3;break;default:Kn.bottom=-3,Kn[Zn]=Ve+xt;break}return Vt.createElement("div",{style:Kn,className:`${Ln}-drop-indicator`})}var Ut=Ft(71997),oe=Vt.forwardRef((ne,Ce)=>{const{getPrefixCls:bn,direction:Ln,virtual:Ve,tree:Nn}=Vt.useContext(lt.E_),{prefixCls:Zn,className:gi,showIcon:Kn=!1,showLine:Pi,switcherIcon:tn,blockNode:Li=!1,children:ji,checkable:Ot=!1,selectable:Tt=!0,draggable:vt,motion:gt,style:ft}=ne,At=bn("tree",Zn),le=bn(),xe=gt!=null?gt:Object.assign(Object.assign({},(0,ht.Z)(le)),{motionAppear:!1}),ae=Object.assign(Object.assign({},ne),{checkable:Ot,selectable:Tt,showIcon:Kn,motion:xe,blockNode:Li,showLine:!!Pi,dropIndicatorRender:Nt}),[ye,Oe]=(0,dt.ZP)(At),Te=Vt.useMemo(()=>{if(!vt)return!1;let on={};switch(typeof vt){case"function":on.nodeDraggable=vt;break;case"object":on=Object.assign({},vt);break;default:break}return on.icon!==!1&&(on.icon=on.icon||Vt.createElement(rt.Z,null)),on},[vt]),Me=on=>Vt.createElement(Ut.Z,{prefixCls:At,switcherIcon:tn,treeNodeProps:on,showLine:Pi});return ye(Vt.createElement(Lt.Z,Object.assign({itemHeight:20,ref:Ce,virtual:Ve},ae,{style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),ft),prefixCls:At,className:Ct()({[`${At}-icon-hide`]:!Kn,[`${At}-block-node`]:Li,[`${At}-unselectable`]:!Tt,[`${At}-rtl`]:Ln==="rtl"},Nn==null?void 0:Nn.className,gi,Oe),direction:Ln,checkable:Ot&&Vt.createElement("span",{className:`${At}-checkbox-inner`}),selectable:Tt,switcherIcon:Me,draggable:Te}),ji))}),he;(function(ne){ne[ne.None=0]="None",ne[ne.Start=1]="Start",ne[ne.End=2]="End"})(he||(he={}));function fe(ne,Ce){function bn(Ln){const{key:Ve,children:Nn}=Ln;Ce(Ve,Ln)!==!1&&fe(Nn||[],Ce)}ne.forEach(bn)}function Le(ne){let{treeData:Ce,expandedKeys:bn,startKey:Ln,endKey:Ve}=ne;const Nn=[];let Zn=he.None;if(Ln&&Ln===Ve)return[Ln];if(!Ln||!Ve)return[];function gi(Kn){return Kn===Ln||Kn===Ve}return fe(Ce,Kn=>{if(Zn===he.End)return!1;if(gi(Kn)){if(Nn.push(Kn),Zn===he.None)Zn=he.Start;else if(Zn===he.Start)return Zn=he.End,!1}else Zn===he.Start&&Nn.push(Kn);return bn.includes(Kn)}),Nn}function te(ne,Ce){const bn=(0,ce.Z)(Ce),Ln=[];return fe(ne,(Ve,Nn)=>{const Zn=bn.indexOf(Ve);return Zn!==-1&&(Ln.push(Nn),bn.splice(Zn,1)),!!bn.length}),Ln}var He=function(ne,Ce){var bn={};for(var Ln in ne)Object.prototype.hasOwnProperty.call(ne,Ln)&&Ce.indexOf(Ln)<0&&(bn[Ln]=ne[Ln]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ln=Object.getOwnPropertySymbols(ne);Ve<Ln.length;Ve++)Ce.indexOf(Ln[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ln[Ve])&&(bn[Ln[Ve]]=ne[Ln[Ve]]);return bn};function Wt(ne){const{isLeaf:Ce,expanded:bn}=ne;return Ce?Vt.createElement(re.Z,null):bn?Vt.createElement(Ie.Z,null):Vt.createElement(Gt,null)}function Ke(ne){let{treeData:Ce,children:bn}=ne;return Ce||(0,tt.zn)(bn)}const _e=(ne,Ce)=>{var{defaultExpandAll:bn,defaultExpandParent:Ln,defaultExpandedKeys:Ve}=ne,Nn=He(ne,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Zn=Vt.useRef(),gi=Vt.useRef(),Kn=()=>{const{keyEntities:Te}=(0,tt.I8)(Ke(Nn));let Me;return bn?Me=Object.keys(Te):Ln?Me=(0,et.r7)(Nn.expandedKeys||Ve||[],Te):Me=Nn.expandedKeys||Ve,Me},[Pi,tn]=Vt.useState(Nn.selectedKeys||Nn.defaultSelectedKeys||[]),[Li,ji]=Vt.useState(()=>Kn());Vt.useEffect(()=>{"selectedKeys"in Nn&&tn(Nn.selectedKeys)},[Nn.selectedKeys]),Vt.useEffect(()=>{"expandedKeys"in Nn&&ji(Nn.expandedKeys)},[Nn.expandedKeys]);const Ot=(Te,Me)=>{var on;return"expandedKeys"in Nn||ji(Te),(on=Nn.onExpand)===null||on===void 0?void 0:on.call(Nn,Te,Me)},Tt=(Te,Me)=>{var on;const{multiple:Wn}=Nn,{node:sn,nativeEvent:ln}=Me,{key:Bn=""}=sn,li=Ke(Nn),On=Object.assign(Object.assign({},Me),{selected:!0}),Di=(ln==null?void 0:ln.ctrlKey)||(ln==null?void 0:ln.metaKey),nr=ln==null?void 0:ln.shiftKey;let Xi;Wn&&Di?(Xi=Te,Zn.current=Bn,gi.current=Xi,On.selectedNodes=te(li,Xi)):Wn&&nr?(Xi=Array.from(new Set([].concat((0,ce.Z)(gi.current||[]),(0,ce.Z)(Le({treeData:li,expandedKeys:Li,startKey:Bn,endKey:Zn.current}))))),On.selectedNodes=te(li,Xi)):(Xi=[Bn],Zn.current=Bn,gi.current=Xi,On.selectedNodes=te(li,Xi)),(on=Nn.onSelect)===null||on===void 0||on.call(Nn,Xi,On),"selectedKeys"in Nn||tn(Xi)},{getPrefixCls:vt,direction:gt}=Vt.useContext(lt.E_),{prefixCls:ft,className:At,showIcon:le=!0,expandAction:xe="click"}=Nn,ae=He(Nn,["prefixCls","className","showIcon","expandAction"]),ye=vt("tree",ft),Oe=Ct()(`${ye}-directory`,{[`${ye}-directory-rtl`]:gt==="rtl"},At);return Vt.createElement(oe,Object.assign({icon:Wt,ref:Ce,blockNode:!0},ae,{showIcon:le,expandAction:xe,prefixCls:ye,className:Oe,expandedKeys:Li,selectedKeys:Pi,onSelect:Tt,onExpand:Ot}))};var Ge=Vt.forwardRef(_e);const Ue=oe;Ue.DirectoryTree=Ge,Ue.TreeNode=Lt.O;var ve=Ue},20648:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{TM:function(){return Xt},Yk:function(){return Gt}});var Lt=Ft(93083),ce=Ft(98447),re=Ft(17313),Ie=Ft(8378),ee=Ft(37613),Vt=Ft(83116);const Mt=new Lt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jt=(Ct,et)=>({[`.${Ct}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),qt=(Ct,et)=>({[`.${Ct}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),bt=(Ct,et)=>{const{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt,titleHeight:ht,nodeSelectedBg:dt,nodeHoverBg:xt}=et,Nt=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,re.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${tt}-rtl`]:{[`${tt}-switcher`]:{"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${tt}-active-focused)`]:Object.assign({},(0,re.oN)(et)),[`${tt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${tt}-block-node`]:{[`${tt}-list-holder-inner`]:{alignItems:"stretch",[`${tt}-node-content-wrapper`]:{flex:"auto"},[`${lt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:rt,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Mt,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${lt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${rt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${tt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${tt}-node-content-wrapper`]:Object.assign({},(0,re.oN)(et)),[`&:not(${lt}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:ht,lineHeight:`${ht}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${lt}:hover &`]:{opacity:.45}},[`&${lt}-disabled`]:{[`${tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ht}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},jt(Ct,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ht,margin:0,lineHeight:`${ht}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ht/2*.8,height:ht/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:Nt},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ht,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ht}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:xt},[`&${tt}-node-selected`]:{backgroundColor:dt},[`${tt}-iconEle`]:{display:"inline-block",width:ht,height:ht,lineHeight:`${ht}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ht}px`,userSelect:"none"},qt(Ct,et)),[`${lt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${tt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-rt,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${lt}-leaf-last`]:{[`${tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ht/2}px !important`}}}}})}},se=Ct=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:lt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ht}=Ct;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:lt,insetInlineStart:0,transition:`background-color ${Ct.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ct.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Ct.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ht,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ht},[`${et}-node-content-wrapper`]:{color:ht,background:"transparent"}}}}}},Gt=(Ct,et)=>{const tt=`.${Ct}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ht=(0,ee.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[bt(Ct,ht),se(ht)]},Xt=Ct=>{const{controlHeightSM:et}=Ct;return{titleHeight:et,nodeHoverBg:Ct.controlItemBgHover,nodeSelectedBg:Ct.controlItemBgActive}};Sn.ZP=(0,Vt.Z)("Tree",(Ct,et)=>{let{prefixCls:tt}=et;return[{[Ct.componentCls]:(0,ce.C2)(`${tt}-checkbox`,Ct)},Gt(tt,Ct),(0,Ie.Z)(Ct)]},Ct=>{const{colorTextLightSolid:et,colorPrimary:tt}=Ct;return Object.assign(Object.assign({},Xt(Ct)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return lt}});var Lt=Ft(92413),ce=Ft(59301),re={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Ie=re,ee=Ft(7657),Vt=function(ht,dt){return ce.createElement(ee.Z,(0,Lt.Z)({},ht,{ref:dt,icon:Ie}))},Mt=ce.forwardRef(Vt),jt=Mt,qt=Ft(52671),bt=Ft(58617),se=Ft(15075),Gt=Ft(43531),Xt=Ft(92310),Ct=Ft.n(Xt),et=Ft(92343),lt=rt=>{const{prefixCls:ht,switcherIcon:dt,treeNodeProps:xt,showLine:Nt}=rt,{isLeaf:Ut,expanded:_t,loading:oe}=xt;if(oe)return ce.createElement(bt.Z,{className:`${ht}-switcher-loading-icon`});let he;if(Nt&&typeof Nt=="object"&&(he=Nt.showLeafIcon),Ut){if(!Nt)return null;if(typeof he!="boolean"&&he){const te=typeof he=="function"?he(xt):he,He=`${ht}-switcher-line-custom-icon`;return(0,et.l$)(te)?(0,et.Tm)(te,{className:Ct()(te.props.className||"",He)}):te}return he?ce.createElement(qt.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement("span",{className:`${ht}-switcher-leaf-line`})}const fe=`${ht}-switcher-icon`,Le=typeof dt=="function"?dt(xt):dt;return(0,et.l$)(Le)?(0,et.Tm)(Le,{className:Ct()(Le.props.className||"",fe)}):Le!==void 0?Le:Nt?_t?ce.createElement(se.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(Gt.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(jt,{className:fe})}},86251:function(hi,Sn){"use strict";Sn.byteLength=Mt,Sn.toByteArray=qt,Sn.fromByteArray=Gt;for(var Ft=[],Lt=[],ce=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ie=0,ee=re.length;Ie<ee;++Ie)Ft[Ie]=re[Ie],Lt[re.charCodeAt(Ie)]=Ie;Lt[45]=62,Lt[95]=63;function Vt(Xt){var Ct=Xt.length;if(Ct%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=Xt.indexOf("=");et===-1&&(et=Ct);var tt=et===Ct?0:4-et%4;return[et,tt]}function Mt(Xt){var Ct=Vt(Xt),et=Ct[0],tt=Ct[1];return(et+tt)*3/4-tt}function jt(Xt,Ct,et){return(Ct+et)*3/4-et}function qt(Xt){var Ct,et=Vt(Xt),tt=et[0],lt=et[1],rt=new ce(jt(Xt,tt,lt)),ht=0,dt=lt>0?tt-4:tt,xt;for(xt=0;xt<dt;xt+=4)Ct=Lt[Xt.charCodeAt(xt)]<<18|Lt[Xt.charCodeAt(xt+1)]<<12|Lt[Xt.charCodeAt(xt+2)]<<6|Lt[Xt.charCodeAt(xt+3)],rt[ht++]=Ct>>16&255,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255;return lt===2&&(Ct=Lt[Xt.charCodeAt(xt)]<<2|Lt[Xt.charCodeAt(xt+1)]>>4,rt[ht++]=Ct&255),lt===1&&(Ct=Lt[Xt.charCodeAt(xt)]<<10|Lt[Xt.charCodeAt(xt+1)]<<4|Lt[Xt.charCodeAt(xt+2)]>>2,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255),rt}function bt(Xt){return Ft[Xt>>18&63]+Ft[Xt>>12&63]+Ft[Xt>>6&63]+Ft[Xt&63]}function se(Xt,Ct,et){for(var tt,lt=[],rt=Ct;rt<et;rt+=3)tt=(Xt[rt]<<16&16711680)+(Xt[rt+1]<<8&65280)+(Xt[rt+2]&255),lt.push(bt(tt));return lt.join("")}function Gt(Xt){for(var Ct,et=Xt.length,tt=et%3,lt=[],rt=16383,ht=0,dt=et-tt;ht<dt;ht+=rt)lt.push(se(Xt,ht,ht+rt>dt?dt:ht+rt));return tt===1?(Ct=Xt[et-1],lt.push(Ft[Ct>>2]+Ft[Ct<<4&63]+"==")):tt===2&&(Ct=(Xt[et-2]<<8)+Xt[et-1],lt.push(Ft[Ct>>10]+Ft[Ct>>4&63]+Ft[Ct<<2&63]+"=")),lt.join("")}},19208:function(hi,Sn,Ft){"use strict";var Lt;var ce=Ft(86251),re=Ft(67467),Ie=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Sn.lW=jt,Lt=ht,Sn.h2=50;var ee=2147483647;Lt=ee,jt.TYPED_ARRAY_SUPPORT=Vt(),!jt.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Vt(){try{var vt=new Uint8Array(1),gt={foo:function(){return 42}};return Object.setPrototypeOf(gt,Uint8Array.prototype),Object.setPrototypeOf(vt,gt),vt.foo()===42}catch(ft){return!1}}Object.defineProperty(jt.prototype,"parent",{enumerable:!0,get:function(){if(jt.isBuffer(this))return this.buffer}}),Object.defineProperty(jt.prototype,"offset",{enumerable:!0,get:function(){if(jt.isBuffer(this))return this.byteOffset}});function Mt(vt){if(vt>ee)throw new RangeError('The value "'+vt+'" is invalid for option "size"');var gt=new Uint8Array(vt);return Object.setPrototypeOf(gt,jt.prototype),gt}function jt(vt,gt,ft){if(typeof vt=="number"){if(typeof gt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Gt(vt)}return qt(vt,gt,ft)}jt.poolSize=8192;function qt(vt,gt,ft){if(typeof vt=="string")return Xt(vt,gt);if(ArrayBuffer.isView(vt))return et(vt);if(vt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof vt);if(ji(vt,ArrayBuffer)||vt&&ji(vt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ji(vt,SharedArrayBuffer)||vt&&ji(vt.buffer,SharedArrayBuffer)))return tt(vt,gt,ft);if(typeof vt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var At=vt.valueOf&&vt.valueOf();if(At!=null&&At!==vt)return jt.from(At,gt,ft);var le=lt(vt);if(le)return le;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof vt[Symbol.toPrimitive]=="function")return jt.from(vt[Symbol.toPrimitive]("string"),gt,ft);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof vt)}jt.from=function(vt,gt,ft){return qt(vt,gt,ft)},Object.setPrototypeOf(jt.prototype,Uint8Array.prototype),Object.setPrototypeOf(jt,Uint8Array);function bt(vt){if(typeof vt!="number")throw new TypeError('"size" argument must be of type number');if(vt<0)throw new RangeError('The value "'+vt+'" is invalid for option "size"')}function se(vt,gt,ft){return bt(vt),vt<=0?Mt(vt):gt!==void 0?typeof ft=="string"?Mt(vt).fill(gt,ft):Mt(vt).fill(gt):Mt(vt)}jt.alloc=function(vt,gt,ft){return se(vt,gt,ft)};function Gt(vt){return bt(vt),Mt(vt<0?0:rt(vt)|0)}jt.allocUnsafe=function(vt){return Gt(vt)},jt.allocUnsafeSlow=function(vt){return Gt(vt)};function Xt(vt,gt){if((typeof gt!="string"||gt==="")&&(gt="utf8"),!jt.isEncoding(gt))throw new TypeError("Unknown encoding: "+gt);var ft=dt(vt,gt)|0,At=Mt(ft),le=At.write(vt,gt);return le!==ft&&(At=At.slice(0,le)),At}function Ct(vt){for(var gt=vt.length<0?0:rt(vt.length)|0,ft=Mt(gt),At=0;At<gt;At+=1)ft[At]=vt[At]&255;return ft}function et(vt){if(ji(vt,Uint8Array)){var gt=new Uint8Array(vt);return tt(gt.buffer,gt.byteOffset,gt.byteLength)}return Ct(vt)}function tt(vt,gt,ft){if(gt<0||vt.byteLength<gt)throw new RangeError('"offset" is outside of buffer bounds');if(vt.byteLength<gt+(ft||0))throw new RangeError('"length" is outside of buffer bounds');var At;return gt===void 0&&ft===void 0?At=new Uint8Array(vt):ft===void 0?At=new Uint8Array(vt,gt):At=new Uint8Array(vt,gt,ft),Object.setPrototypeOf(At,jt.prototype),At}function lt(vt){if(jt.isBuffer(vt)){var gt=rt(vt.length)|0,ft=Mt(gt);return ft.length===0||vt.copy(ft,0,0,gt),ft}if(vt.length!==void 0)return typeof vt.length!="number"||Ot(vt.length)?Mt(0):Ct(vt);if(vt.type==="Buffer"&&Array.isArray(vt.data))return Ct(vt.data)}function rt(vt){if(vt>=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return vt|0}function ht(vt){return+vt!=vt&&(vt=0),jt.alloc(+vt)}jt.isBuffer=function(gt){return gt!=null&&gt._isBuffer===!0&&gt!==jt.prototype},jt.compare=function(gt,ft){if(ji(gt,Uint8Array)&&(gt=jt.from(gt,gt.offset,gt.byteLength)),ji(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),!jt.isBuffer(gt)||!jt.isBuffer(ft))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(gt===ft)return 0;for(var At=gt.length,le=ft.length,xe=0,ae=Math.min(At,le);xe<ae;++xe)if(gt[xe]!==ft[xe]){At=gt[xe],le=ft[xe];break}return At<le?-1:le<At?1:0},jt.isEncoding=function(gt){switch(String(gt).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},jt.concat=function(gt,ft){if(!Array.isArray(gt))throw new TypeError('"list" argument must be an Array of Buffers');if(gt.length===0)return jt.alloc(0);var At;if(ft===void 0)for(ft=0,At=0;At<gt.length;++At)ft+=gt[At].length;var le=jt.allocUnsafe(ft),xe=0;for(At=0;At<gt.length;++At){var ae=gt[At];if(ji(ae,Uint8Array))xe+ae.length>le.length?jt.from(ae).copy(le,xe):Uint8Array.prototype.set.call(le,ae,xe);else if(jt.isBuffer(ae))ae.copy(le,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=ae.length}return le};function dt(vt,gt){if(jt.isBuffer(vt))return vt.length;if(ArrayBuffer.isView(vt)||ji(vt,ArrayBuffer))return vt.byteLength;if(typeof vt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof vt);var ft=vt.length,At=arguments.length>2&&arguments[2]===!0;if(!At&&ft===0)return 0;for(var le=!1;;)switch(gt){case"ascii":case"latin1":case"binary":return ft;case"utf8":case"utf-8":return gi(vt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft*2;case"hex":return ft>>>1;case"base64":return tn(vt).length;default:if(le)return At?-1:gi(vt).length;gt=(""+gt).toLowerCase(),le=!0}}jt.byteLength=dt;function xt(vt,gt,ft){var At=!1;if((gt===void 0||gt<0)&&(gt=0),gt>this.length||((ft===void 0||ft>this.length)&&(ft=this.length),ft<=0)||(ft>>>=0,gt>>>=0,ft<=gt))return"";for(vt||(vt="utf8");;)switch(vt){case"hex":return Ue(this,gt,ft);case"utf8":case"utf-8":return Wt(this,gt,ft);case"ascii":return Ne(this,gt,ft);case"latin1":case"binary":return Ge(this,gt,ft);case"base64":return He(this,gt,ft);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,gt,ft);default:if(At)throw new TypeError("Unknown encoding: "+vt);vt=(vt+"").toLowerCase(),At=!0}}jt.prototype._isBuffer=!0;function Nt(vt,gt,ft){var At=vt[gt];vt[gt]=vt[ft],vt[ft]=At}jt.prototype.swap16=function(){var gt=this.length;if(gt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ft=0;ft<gt;ft+=2)Nt(this,ft,ft+1);return this},jt.prototype.swap32=function(){var gt=this.length;if(gt%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var ft=0;ft<gt;ft+=4)Nt(this,ft,ft+3),Nt(this,ft+1,ft+2);return this},jt.prototype.swap64=function(){var gt=this.length;if(gt%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var ft=0;ft<gt;ft+=8)Nt(this,ft,ft+7),Nt(this,ft+1,ft+6),Nt(this,ft+2,ft+5),Nt(this,ft+3,ft+4);return this},jt.prototype.toString=function(){var gt=this.length;return gt===0?"":arguments.length===0?Wt(this,0,gt):xt.apply(this,arguments)},jt.prototype.toLocaleString=jt.prototype.toString,jt.prototype.equals=function(gt){if(!jt.isBuffer(gt))throw new TypeError("Argument must be a Buffer");return this===gt?!0:jt.compare(this,gt)===0},jt.prototype.inspect=function(){var gt="",ft=Sn.h2;return gt=this.toString("hex",0,ft).replace(/(.{2})/g,"$1 ").trim(),this.length>ft&&(gt+=" ... "),"<Buffer "+gt+">"},Ie&&(jt.prototype[Ie]=jt.prototype.inspect),jt.prototype.compare=function(gt,ft,At,le,xe){if(ji(gt,Uint8Array)&&(gt=jt.from(gt,gt.offset,gt.byteLength)),!jt.isBuffer(gt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof gt);if(ft===void 0&&(ft=0),At===void 0&&(At=gt?gt.length:0),le===void 0&&(le=0),xe===void 0&&(xe=this.length),ft<0||At>gt.length||le<0||xe>this.length)throw new RangeError("out of range index");if(le>=xe&&ft>=At)return 0;if(le>=xe)return-1;if(ft>=At)return 1;if(ft>>>=0,At>>>=0,le>>>=0,xe>>>=0,this===gt)return 0;for(var ae=xe-le,ye=At-ft,Oe=Math.min(ae,ye),Te=this.slice(le,xe),Me=gt.slice(ft,At),on=0;on<Oe;++on)if(Te[on]!==Me[on]){ae=Te[on],ye=Me[on];break}return ae<ye?-1:ye<ae?1:0};function Ut(vt,gt,ft,At,le){if(vt.length===0)return-1;if(typeof ft=="string"?(At=ft,ft=0):ft>2147483647?ft=2147483647:ft<-2147483648&&(ft=-2147483648),ft=+ft,Ot(ft)&&(ft=le?0:vt.length-1),ft<0&&(ft=vt.length+ft),ft>=vt.length){if(le)return-1;ft=vt.length-1}else if(ft<0)if(le)ft=0;else return-1;if(typeof gt=="string"&&(gt=jt.from(gt,At)),jt.isBuffer(gt))return gt.length===0?-1:_t(vt,gt,ft,At,le);if(typeof gt=="number")return gt=gt&255,typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(vt,gt,ft):Uint8Array.prototype.lastIndexOf.call(vt,gt,ft):_t(vt,[gt],ft,At,le);throw new TypeError("val must be string, number or Buffer")}function _t(vt,gt,ft,At,le){var xe=1,ae=vt.length,ye=gt.length;if(At!==void 0&&(At=String(At).toLowerCase(),At==="ucs2"||At==="ucs-2"||At==="utf16le"||At==="utf-16le")){if(vt.length<2||gt.length<2)return-1;xe=2,ae/=2,ye/=2,ft/=2}function Oe(sn,ln){return xe===1?sn[ln]:sn.readUInt16BE(ln*xe)}var Te;if(le){var Me=-1;for(Te=ft;Te<ae;Te++)if(Oe(vt,Te)===Oe(gt,Me===-1?0:Te-Me)){if(Me===-1&&(Me=Te),Te-Me+1===ye)return Me*xe}else Me!==-1&&(Te-=Te-Me),Me=-1}else for(ft+ye>ae&&(ft=ae-ye),Te=ft;Te>=0;Te--){for(var on=!0,Wn=0;Wn<ye;Wn++)if(Oe(vt,Te+Wn)!==Oe(gt,Wn)){on=!1;break}if(on)return Te}return-1}jt.prototype.includes=function(gt,ft,At){return this.indexOf(gt,ft,At)!==-1},jt.prototype.indexOf=function(gt,ft,At){return Ut(this,gt,ft,At,!0)},jt.prototype.lastIndexOf=function(gt,ft,At){return Ut(this,gt,ft,At,!1)};function oe(vt,gt,ft,At){ft=Number(ft)||0;var le=vt.length-ft;At?(At=Number(At),At>le&&(At=le)):At=le;var xe=gt.length;At>xe/2&&(At=xe/2);for(var ae=0;ae<At;++ae){var ye=parseInt(gt.substr(ae*2,2),16);if(Ot(ye))return ae;vt[ft+ae]=ye}return ae}function he(vt,gt,ft,At){return Li(gi(gt,vt.length-ft),vt,ft,At)}function fe(vt,gt,ft,At){return Li(Kn(gt),vt,ft,At)}function Le(vt,gt,ft,At){return Li(tn(gt),vt,ft,At)}function te(vt,gt,ft,At){return Li(Pi(gt,vt.length-ft),vt,ft,At)}jt.prototype.write=function(gt,ft,At,le){if(ft===void 0)le="utf8",At=this.length,ft=0;else if(At===void 0&&typeof ft=="string")le=ft,At=this.length,ft=0;else if(isFinite(ft))ft=ft>>>0,isFinite(At)?(At=At>>>0,le===void 0&&(le="utf8")):(le=At,At=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var xe=this.length-ft;if((At===void 0||At>xe)&&(At=xe),gt.length>0&&(At<0||ft<0)||ft>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ae=!1;;)switch(le){case"hex":return oe(this,gt,ft,At);case"utf8":case"utf-8":return he(this,gt,ft,At);case"ascii":case"latin1":case"binary":return fe(this,gt,ft,At);case"base64":return Le(this,gt,ft,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,gt,ft,At);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ae=!0}},jt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function He(vt,gt,ft){return gt===0&&ft===vt.length?ce.fromByteArray(vt):ce.fromByteArray(vt.slice(gt,ft))}function Wt(vt,gt,ft){ft=Math.min(vt.length,ft);for(var At=[],le=gt;le<ft;){var xe=vt[le],ae=null,ye=xe>239?4:xe>223?3:xe>191?2:1;if(le+ye<=ft){var Oe,Te,Me,on;switch(ye){case 1:xe<128&&(ae=xe);break;case 2:Oe=vt[le+1],(Oe&192)===128&&(on=(xe&31)<<6|Oe&63,on>127&&(ae=on));break;case 3:Oe=vt[le+1],Te=vt[le+2],(Oe&192)===128&&(Te&192)===128&&(on=(xe&15)<<12|(Oe&63)<<6|Te&63,on>2047&&(on<55296||on>57343)&&(ae=on));break;case 4:Oe=vt[le+1],Te=vt[le+2],Me=vt[le+3],(Oe&192)===128&&(Te&192)===128&&(Me&192)===128&&(on=(xe&15)<<18|(Oe&63)<<12|(Te&63)<<6|Me&63,on>65535&&on<1114112&&(ae=on))}}ae===null?(ae=65533,ye=1):ae>65535&&(ae-=65536,At.push(ae>>>10&1023|55296),ae=56320|ae&1023),At.push(ae),le+=ye}return _e(At)}var Ke=4096;function _e(vt){var gt=vt.length;if(gt<=Ke)return String.fromCharCode.apply(String,vt);for(var ft="",At=0;At<gt;)ft+=String.fromCharCode.apply(String,vt.slice(At,At+=Ke));return ft}function Ne(vt,gt,ft){var At="";ft=Math.min(vt.length,ft);for(var le=gt;le<ft;++le)At+=String.fromCharCode(vt[le]&127);return At}function Ge(vt,gt,ft){var At="";ft=Math.min(vt.length,ft);for(var le=gt;le<ft;++le)At+=String.fromCharCode(vt[le]);return At}function Ue(vt,gt,ft){var At=vt.length;(!gt||gt<0)&&(gt=0),(!ft||ft<0||ft>At)&&(ft=At);for(var le="",xe=gt;xe<ft;++xe)le+=Tt[vt[xe]];return le}function ve(vt,gt,ft){for(var At=vt.slice(gt,ft),le="",xe=0;xe<At.length-1;xe+=2)le+=String.fromCharCode(At[xe]+At[xe+1]*256);return le}jt.prototype.slice=function(gt,ft){var At=this.length;gt=~~gt,ft=ft===void 0?At:~~ft,gt<0?(gt+=At,gt<0&&(gt=0)):gt>At&&(gt=At),ft<0?(ft+=At,ft<0&&(ft=0)):ft>At&&(ft=At),ft<gt&&(ft=gt);var le=this.subarray(gt,ft);return Object.setPrototypeOf(le,jt.prototype),le};function ne(vt,gt,ft){if(vt%1!==0||vt<0)throw new RangeError("offset is not uint");if(vt+gt>ft)throw new RangeError("Trying to access beyond buffer length")}jt.prototype.readUintLE=jt.prototype.readUIntLE=function(gt,ft,At){gt=gt>>>0,ft=ft>>>0,At||ne(gt,ft,this.length);for(var le=this[gt],xe=1,ae=0;++ae<ft&&(xe*=256);)le+=this[gt+ae]*xe;return le},jt.prototype.readUintBE=jt.prototype.readUIntBE=function(gt,ft,At){gt=gt>>>0,ft=ft>>>0,At||ne(gt,ft,this.length);for(var le=this[gt+--ft],xe=1;ft>0&&(xe*=256);)le+=this[gt+--ft]*xe;return le},jt.prototype.readUint8=jt.prototype.readUInt8=function(gt,ft){return gt=gt>>>0,ft||ne(gt,1,this.length),this[gt]},jt.prototype.readUint16LE=jt.prototype.readUInt16LE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,2,this.length),this[gt]|this[gt+1]<<8},jt.prototype.readUint16BE=jt.prototype.readUInt16BE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,2,this.length),this[gt]<<8|this[gt+1]},jt.prototype.readUint32LE=jt.prototype.readUInt32LE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,4,this.length),(this[gt]|this[gt+1]<<8|this[gt+2]<<16)+this[gt+3]*16777216},jt.prototype.readUint32BE=jt.prototype.readUInt32BE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,4,this.length),this[gt]*16777216+(this[gt+1]<<16|this[gt+2]<<8|this[gt+3])},jt.prototype.readIntLE=function(gt,ft,At){gt=gt>>>0,ft=ft>>>0,At||ne(gt,ft,this.length);for(var le=this[gt],xe=1,ae=0;++ae<ft&&(xe*=256);)le+=this[gt+ae]*xe;return xe*=128,le>=xe&&(le-=Math.pow(2,8*ft)),le},jt.prototype.readIntBE=function(gt,ft,At){gt=gt>>>0,ft=ft>>>0,At||ne(gt,ft,this.length);for(var le=ft,xe=1,ae=this[gt+--le];le>0&&(xe*=256);)ae+=this[gt+--le]*xe;return xe*=128,ae>=xe&&(ae-=Math.pow(2,8*ft)),ae},jt.prototype.readInt8=function(gt,ft){return gt=gt>>>0,ft||ne(gt,1,this.length),this[gt]&128?(255-this[gt]+1)*-1:this[gt]},jt.prototype.readInt16LE=function(gt,ft){gt=gt>>>0,ft||ne(gt,2,this.length);var At=this[gt]|this[gt+1]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt16BE=function(gt,ft){gt=gt>>>0,ft||ne(gt,2,this.length);var At=this[gt+1]|this[gt]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt32LE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,4,this.length),this[gt]|this[gt+1]<<8|this[gt+2]<<16|this[gt+3]<<24},jt.prototype.readInt32BE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,4,this.length),this[gt]<<24|this[gt+1]<<16|this[gt+2]<<8|this[gt+3]},jt.prototype.readFloatLE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,4,this.length),re.read(this,gt,!0,23,4)},jt.prototype.readFloatBE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,4,this.length),re.read(this,gt,!1,23,4)},jt.prototype.readDoubleLE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,8,this.length),re.read(this,gt,!0,52,8)},jt.prototype.readDoubleBE=function(gt,ft){return gt=gt>>>0,ft||ne(gt,8,this.length),re.read(this,gt,!1,52,8)};function Ce(vt,gt,ft,At,le,xe){if(!jt.isBuffer(vt))throw new TypeError('"buffer" argument must be a Buffer instance');if(gt>le||gt<xe)throw new RangeError('"value" argument is out of bounds');if(ft+At>vt.length)throw new RangeError("Index out of range")}jt.prototype.writeUintLE=jt.prototype.writeUIntLE=function(gt,ft,At,le){if(gt=+gt,ft=ft>>>0,At=At>>>0,!le){var xe=Math.pow(2,8*At)-1;Ce(this,gt,ft,At,xe,0)}var ae=1,ye=0;for(this[ft]=gt&255;++ye<At&&(ae*=256);)this[ft+ye]=gt/ae&255;return ft+At},jt.prototype.writeUintBE=jt.prototype.writeUIntBE=function(gt,ft,At,le){if(gt=+gt,ft=ft>>>0,At=At>>>0,!le){var xe=Math.pow(2,8*At)-1;Ce(this,gt,ft,At,xe,0)}var ae=At-1,ye=1;for(this[ft+ae]=gt&255;--ae>=0&&(ye*=256);)this[ft+ae]=gt/ye&255;return ft+At},jt.prototype.writeUint8=jt.prototype.writeUInt8=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,1,255,0),this[ft]=gt&255,ft+1},jt.prototype.writeUint16LE=jt.prototype.writeUInt16LE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,2,65535,0),this[ft]=gt&255,this[ft+1]=gt>>>8,ft+2},jt.prototype.writeUint16BE=jt.prototype.writeUInt16BE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,2,65535,0),this[ft]=gt>>>8,this[ft+1]=gt&255,ft+2},jt.prototype.writeUint32LE=jt.prototype.writeUInt32LE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,4,4294967295,0),this[ft+3]=gt>>>24,this[ft+2]=gt>>>16,this[ft+1]=gt>>>8,this[ft]=gt&255,ft+4},jt.prototype.writeUint32BE=jt.prototype.writeUInt32BE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,4,4294967295,0),this[ft]=gt>>>24,this[ft+1]=gt>>>16,this[ft+2]=gt>>>8,this[ft+3]=gt&255,ft+4},jt.prototype.writeIntLE=function(gt,ft,At,le){if(gt=+gt,ft=ft>>>0,!le){var xe=Math.pow(2,8*At-1);Ce(this,gt,ft,At,xe-1,-xe)}var ae=0,ye=1,Oe=0;for(this[ft]=gt&255;++ae<At&&(ye*=256);)gt<0&&Oe===0&&this[ft+ae-1]!==0&&(Oe=1),this[ft+ae]=(gt/ye>>0)-Oe&255;return ft+At},jt.prototype.writeIntBE=function(gt,ft,At,le){if(gt=+gt,ft=ft>>>0,!le){var xe=Math.pow(2,8*At-1);Ce(this,gt,ft,At,xe-1,-xe)}var ae=At-1,ye=1,Oe=0;for(this[ft+ae]=gt&255;--ae>=0&&(ye*=256);)gt<0&&Oe===0&&this[ft+ae+1]!==0&&(Oe=1),this[ft+ae]=(gt/ye>>0)-Oe&255;return ft+At},jt.prototype.writeInt8=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,1,127,-128),gt<0&&(gt=255+gt+1),this[ft]=gt&255,ft+1},jt.prototype.writeInt16LE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,2,32767,-32768),this[ft]=gt&255,this[ft+1]=gt>>>8,ft+2},jt.prototype.writeInt16BE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,2,32767,-32768),this[ft]=gt>>>8,this[ft+1]=gt&255,ft+2},jt.prototype.writeInt32LE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,4,2147483647,-2147483648),this[ft]=gt&255,this[ft+1]=gt>>>8,this[ft+2]=gt>>>16,this[ft+3]=gt>>>24,ft+4},jt.prototype.writeInt32BE=function(gt,ft,At){return gt=+gt,ft=ft>>>0,At||Ce(this,gt,ft,4,2147483647,-2147483648),gt<0&&(gt=4294967295+gt+1),this[ft]=gt>>>24,this[ft+1]=gt>>>16,this[ft+2]=gt>>>8,this[ft+3]=gt&255,ft+4};function bn(vt,gt,ft,At,le,xe){if(ft+At>vt.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("Index out of range")}function Ln(vt,gt,ft,At,le){return gt=+gt,ft=ft>>>0,le||bn(vt,gt,ft,4,34028234663852886e22,-34028234663852886e22),re.write(vt,gt,ft,At,23,4),ft+4}jt.prototype.writeFloatLE=function(gt,ft,At){return Ln(this,gt,ft,!0,At)},jt.prototype.writeFloatBE=function(gt,ft,At){return Ln(this,gt,ft,!1,At)};function Ve(vt,gt,ft,At,le){return gt=+gt,ft=ft>>>0,le||bn(vt,gt,ft,8,17976931348623157e292,-17976931348623157e292),re.write(vt,gt,ft,At,52,8),ft+8}jt.prototype.writeDoubleLE=function(gt,ft,At){return Ve(this,gt,ft,!0,At)},jt.prototype.writeDoubleBE=function(gt,ft,At){return Ve(this,gt,ft,!1,At)},jt.prototype.copy=function(gt,ft,At,le){if(!jt.isBuffer(gt))throw new TypeError("argument should be a Buffer");if(At||(At=0),!le&&le!==0&&(le=this.length),ft>=gt.length&&(ft=gt.length),ft||(ft=0),le>0&&le<At&&(le=At),le===At||gt.length===0||this.length===0)return 0;if(ft<0)throw new RangeError("targetStart out of bounds");if(At<0||At>=this.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),gt.length-ft<le-At&&(le=gt.length-ft+At);var xe=le-At;return this===gt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ft,At,le):Uint8Array.prototype.set.call(gt,this.subarray(At,le),ft),xe},jt.prototype.fill=function(gt,ft,At,le){if(typeof gt=="string"){if(typeof ft=="string"?(le=ft,ft=0,At=this.length):typeof At=="string"&&(le=At,At=this.length),le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!jt.isEncoding(le))throw new TypeError("Unknown encoding: "+le);if(gt.length===1){var xe=gt.charCodeAt(0);(le==="utf8"&&xe<128||le==="latin1")&&(gt=xe)}}else typeof gt=="number"?gt=gt&255:typeof gt=="boolean"&&(gt=Number(gt));if(ft<0||this.length<ft||this.length<At)throw new RangeError("Out of range index");if(At<=ft)return this;ft=ft>>>0,At=At===void 0?this.length:At>>>0,gt||(gt=0);var ae;if(typeof gt=="number")for(ae=ft;ae<At;++ae)this[ae]=gt;else{var ye=jt.isBuffer(gt)?gt:jt.from(gt,le),Oe=ye.length;if(Oe===0)throw new TypeError('The value "'+gt+'" is invalid for argument "value"');for(ae=0;ae<At-ft;++ae)this[ae+ft]=ye[ae%Oe]}return this};var Nn=/[^+/0-9A-Za-z-_]/g;function Zn(vt){if(vt=vt.split("=")[0],vt=vt.trim().replace(Nn,""),vt.length<2)return"";for(;vt.length%4!==0;)vt=vt+"=";return vt}function gi(vt,gt){gt=gt||1/0;for(var ft,At=vt.length,le=null,xe=[],ae=0;ae<At;++ae){if(ft=vt.charCodeAt(ae),ft>55295&&ft<57344){if(!le){if(ft>56319){(gt-=3)>-1&&xe.push(239,191,189);continue}else if(ae+1===At){(gt-=3)>-1&&xe.push(239,191,189);continue}le=ft;continue}if(ft<56320){(gt-=3)>-1&&xe.push(239,191,189),le=ft;continue}ft=(le-55296<<10|ft-56320)+65536}else le&&(gt-=3)>-1&&xe.push(239,191,189);if(le=null,ft<128){if((gt-=1)<0)break;xe.push(ft)}else if(ft<2048){if((gt-=2)<0)break;xe.push(ft>>6|192,ft&63|128)}else if(ft<65536){if((gt-=3)<0)break;xe.push(ft>>12|224,ft>>6&63|128,ft&63|128)}else if(ft<1114112){if((gt-=4)<0)break;xe.push(ft>>18|240,ft>>12&63|128,ft>>6&63|128,ft&63|128)}else throw new Error("Invalid code point")}return xe}function Kn(vt){for(var gt=[],ft=0;ft<vt.length;++ft)gt.push(vt.charCodeAt(ft)&255);return gt}function Pi(vt,gt){for(var ft,At,le,xe=[],ae=0;ae<vt.length&&!((gt-=2)<0);++ae)ft=vt.charCodeAt(ae),At=ft>>8,le=ft%256,xe.push(le),xe.push(At);return xe}function tn(vt){return ce.toByteArray(Zn(vt))}function Li(vt,gt,ft,At){for(var le=0;le<At&&!(le+ft>=gt.length||le>=vt.length);++le)gt[le+ft]=vt[le];return le}function ji(vt,gt){return vt instanceof gt||vt!=null&&vt.constructor!=null&&vt.constructor.name!=null&&vt.constructor.name===gt.name}function Ot(vt){return vt!==vt}var Tt=function(){for(var vt="0123456789abcdef",gt=new Array(256),ft=0;ft<16;++ft)for(var At=ft*16,le=0;le<16;++le)gt[At+le]=vt[ft]+vt[le];return gt}()},57780:function(hi,Sn,Ft){"use strict";Ft.r(Sn),Ft.d(Sn,{clsx:function(){return ce}});function Lt(re){var Ie,ee,Vt="";if(typeof re=="string"||typeof re=="number")Vt+=re;else if(typeof re=="object")if(Array.isArray(re))for(Ie=0;Ie<re.length;Ie++)re[Ie]&&(ee=Lt(re[Ie]))&&(Vt&&(Vt+=" "),Vt+=ee);else for(Ie in re)re[Ie]&&(Vt&&(Vt+=" "),Vt+=Ie);return Vt}function ce(){for(var re,Ie,ee=0,Vt="";ee<arguments.length;)(re=arguments[ee++])&&(Ie=Lt(re))&&(Vt&&(Vt+=" "),Vt+=Ie);return Vt}Sn.default=ce},99498:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){Lt.defineOption("placeholder","",function(jt,qt,bt){var se=bt&&bt!=Lt.Init;if(qt&&!se)jt.on("blur",ee),jt.on("change",Vt),jt.on("swapDoc",Vt),Lt.on(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose=function(){Ie(jt)}),Vt(jt);else if(!qt&&se){jt.off("blur",ee),jt.off("change",Vt),jt.off("swapDoc",Vt),Lt.off(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose),ce(jt);var Gt=jt.getWrapperElement();Gt.className=Gt.className.replace(" CodeMirror-empty","")}qt&&!jt.hasFocus()&&ee(jt)});function ce(jt){jt.state.placeholder&&(jt.state.placeholder.parentNode.removeChild(jt.state.placeholder),jt.state.placeholder=null)}function re(jt){ce(jt);var qt=jt.state.placeholder=document.createElement("pre");qt.style.cssText="height: 0; overflow: visible",qt.style.direction=jt.getOption("direction"),qt.className="CodeMirror-placeholder CodeMirror-line-like";var bt=jt.getOption("placeholder");typeof bt=="string"&&(bt=document.createTextNode(bt)),qt.appendChild(bt),jt.display.lineSpace.insertBefore(qt,jt.display.lineSpace.firstChild)}function Ie(jt){setTimeout(function(){var qt=!1,bt=jt.getInputField();bt.nodeName=="TEXTAREA"?qt=!bt.value:jt.lineCount()==1&&(qt=!/[^\u200b]/.test(bt.querySelector(".CodeMirror-line").textContent)),qt?re(jt):ce(jt)},20)}function ee(jt){Mt(jt)&&re(jt)}function Vt(jt){var qt=jt.getWrapperElement(),bt=Mt(jt);qt.className=qt.className.replace(" CodeMirror-empty","")+(bt?" CodeMirror-empty":""),bt?re(jt):ce(jt)}function Mt(jt){return jt.lineCount()===1&&jt.getLine(0)===""}})},25717:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){var ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=Lt.Pos;Lt.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&&lt!=Lt.Init&&(et.removeKeyMap(ee),et.state.closeBrackets=null),tt&&(Vt(Ie(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(ee))});function Ie(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ce[tt]}var ee={Backspace:qt,Enter:bt};function Vt(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),rt="'"+lt+"'";ee[rt]||(ee[rt]=Mt(lt))}}Vt(ce.pairs+"`");function Mt(et){return function(tt){return Gt(tt,et)}}function jt(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var lt=et.getModeAt(et.getCursor());return lt.closeBrackets||tt}function qt(et){var tt=jt(et);if(!tt||et.getOption("disableInput"))return Lt.Pass;for(var lt=Ie(tt,"pairs"),rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Lt.Pass;var dt=Xt(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Lt.Pass}for(var ht=rt.length-1;ht>=0;ht--){var xt=rt[ht].head;et.replaceRange("",re(xt.line,xt.ch-1),re(xt.line,xt.ch+1),"+delete")}}function bt(et){var tt=jt(et),lt=tt&&Ie(tt,"explode");if(!lt||et.getOption("disableInput"))return Lt.Pass;for(var rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Lt.Pass;var dt=Xt(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Lt.Pass}et.operation(function(){var xt=et.lineSeparator()||`
`;et.replaceSelection(xt+xt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var Nt=0;Nt<rt.length;Nt++){var Ut=rt[Nt].head.line;et.indentLine(Ut,null,!0),et.indentLine(Ut+1,null,!0)}})}function se(et){var tt=Lt.cmpPos(et.anchor,et.head)>0;return{anchor:new re(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new re(et.head.line,et.head.ch+(tt?1:-1))}}function Gt(et,tt){var lt=jt(et);if(!lt||et.getOption("disableInput"))return Lt.Pass;var rt=Ie(lt,"pairs"),ht=rt.indexOf(tt);if(ht==-1)return Lt.Pass;for(var dt=Ie(lt,"closeBefore"),xt=Ie(lt,"triples"),Nt=rt.charAt(ht+1)==tt,Ut=et.listSelections(),_t=ht%2==0,oe,he=0;he<Ut.length;he++){var fe=Ut[he],Le=fe.head,te,He=et.getRange(Le,re(Le.line,Le.ch+1));if(_t&&!fe.empty())te="surround";else if((Nt||!_t)&&He==tt)Nt&&Ct(et,Le)?te="both":xt.indexOf(tt)>=0&&et.getRange(Le,re(Le.line,Le.ch+3))==tt+tt+tt?te="skipThree":te="skip";else if(Nt&&Le.ch>1&&xt.indexOf(tt)>=0&&et.getRange(re(Le.line,Le.ch-2),Le)==tt+tt){if(Le.ch>2&&/\bstring/.test(et.getTokenTypeAt(re(Le.line,Le.ch-2))))return Lt.Pass;te="addFour"}else if(Nt){var Wt=Le.ch==0?" ":et.getRange(re(Le.line,Le.ch-1),Le);if(!Lt.isWordChar(He)&&Wt!=tt&&!Lt.isWordChar(Wt))te="both";else return Lt.Pass}else if(_t&&(He.length===0||/\s/.test(He)||dt.indexOf(He)>-1))te="both";else return Lt.Pass;if(!oe)oe=te;else if(oe!=te)return Lt.Pass}var Ke=ht%2?rt.charAt(ht-1):tt,_e=ht%2?tt:rt.charAt(ht+1);et.operation(function(){if(oe=="skip")et.execCommand("goCharRight");else if(oe=="skipThree")for(var Ne=0;Ne<3;Ne++)et.execCommand("goCharRight");else if(oe=="surround"){for(var Ge=et.getSelections(),Ne=0;Ne<Ge.length;Ne++)Ge[Ne]=Ke+Ge[Ne]+_e;et.replaceSelections(Ge,"around"),Ge=et.listSelections().slice();for(var Ne=0;Ne<Ge.length;Ne++)Ge[Ne]=se(Ge[Ne]);et.setSelections(Ge)}else oe=="both"?(et.replaceSelection(Ke+_e,null),et.triggerElectric(Ke+_e),et.execCommand("goCharLeft")):oe=="addFour"&&(et.replaceSelection(Ke+Ke+Ke+Ke,"before"),et.execCommand("goCharRight"))})}function Xt(et,tt){var lt=et.getRange(re(tt.line,tt.ch-1),re(tt.line,tt.ch+1));return lt.length==2?lt:null}function Ct(et,tt){var lt=et.getTokenAt(re(tt.line,tt.ch+1));return/\bstring/.test(lt.type)&&lt.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780),Ft(32855))})(function(Lt){Lt.defineOption("autoCloseTags",!1,function(qt,bt,se){if(se!=Lt.Init&&se&&qt.removeKeyMap("autoCloseTags"),!!bt){var Gt={name:"autoCloseTags"};(typeof bt!="object"||bt.whenClosing!==!1)&&(Gt["'/'"]=function(Xt){return Vt(Xt)}),(typeof bt!="object"||bt.whenOpening!==!1)&&(Gt["'>'"]=function(Xt){return Ie(Xt)}),qt.addKeyMap(Gt)}});var ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],re=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Ie(qt){if(qt.getOption("disableInput"))return Lt.Pass;for(var bt=qt.listSelections(),se=[],Gt=qt.getOption("autoCloseTags"),Xt=0;Xt<bt.length;Xt++){if(!bt[Xt].empty())return Lt.Pass;var Ct=bt[Xt].head,et=qt.getTokenAt(Ct),tt=Lt.innerMode(qt.getMode(),et.state),lt=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ht=rt&&rt.name;if(!ht)return Lt.Pass;var dt=tt.mode.configuration=="html",xt=typeof Gt=="object"&&Gt.dontCloseTags||dt&&ce,Nt=typeof Gt=="object"&&Gt.indentTags||dt&&re;et.end>Ct.ch&&(ht=ht.slice(0,ht.length-et.end+Ct.ch));var Ut=ht.toLowerCase();if(!ht||et.type=="string"&&(et.end!=Ct.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==Ct.ch-et.start-1||xt&&Mt(xt,Ut)>-1||jt(qt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ht,Ct,!0))return Lt.Pass;var _t=typeof Gt=="object"&&Gt.emptyTags;if(_t&&Mt(_t,ht)>-1){se[Xt]={text:"/>",newPos:Lt.Pos(Ct.line,Ct.ch+2)};continue}var oe=Nt&&Mt(Nt,Ut)>-1;se[Xt]={indent:oe,text:">"+(oe?`
`:"")+"</"+ht+">",newPos:oe?Lt.Pos(Ct.line+1,0):Lt.Pos(Ct.line,Ct.ch+1)}}for(var he=typeof Gt=="object"&&Gt.dontIndentOnAutoClose,Xt=bt.length-1;Xt>=0;Xt--){var fe=se[Xt];qt.replaceRange(fe.text,bt[Xt].head,bt[Xt].anchor,"+insert");var Le=qt.listSelections().slice(0);Le[Xt]={head:fe.newPos,anchor:fe.newPos},qt.setSelections(Le),!he&&fe.indent&&(qt.indentLine(fe.newPos.line,null,!0),qt.indentLine(fe.newPos.line+1,null,!0))}}function ee(qt,bt){for(var se=qt.listSelections(),Gt=[],Xt=bt?"/":"</",Ct=qt.getOption("autoCloseTags"),et=typeof Ct=="object"&&Ct.dontIndentOnSlash,tt=0;tt<se.length;tt++){if(!se[tt].empty())return Lt.Pass;var lt=se[tt].head,rt=qt.getTokenAt(lt),ht=Lt.innerMode(qt.getMode(),rt.state),dt=ht.state;if(bt&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return Lt.Pass;var xt,Nt=ht.mode.name!="xml"&&qt.getMode().name=="htmlmixed";if(Nt&&ht.mode.name=="javascript")xt=Xt+"script";else if(Nt&&ht.mode.name=="css")xt=Xt+"style";else{var Ut=ht.mode.xmlCurrentContext&&ht.mode.xmlCurrentContext(dt);if(!Ut||Ut.length&&jt(qt,Ut,Ut[Ut.length-1],lt))return Lt.Pass;xt=Xt+Ut[Ut.length-1]}qt.getLine(lt.line).charAt(rt.end)!=">"&&(xt+=">"),Gt[tt]=xt}if(qt.replaceSelections(Gt),se=qt.listSelections(),!et)for(var tt=0;tt<se.length;tt++)(tt==se.length-1||se[tt].head.line<se[tt+1].head.line)&&qt.indentLine(se[tt].head.line)}function Vt(qt){return qt.getOption("disableInput")?Lt.Pass:ee(qt,!0)}Lt.commands.closeTag=function(qt){return ee(qt)};function Mt(qt,bt){if(qt.indexOf)return qt.indexOf(bt);for(var se=0,Gt=qt.length;se<Gt;++se)if(qt[se]==bt)return se;return-1}function jt(qt,bt,se,Gt,Xt){if(!Lt.scanForClosingTag)return!1;var Ct=Math.min(qt.lastLine()+1,Gt.line+500),et=Lt.scanForClosingTag(qt,Gt,null,Ct);if(!et||et.tag!=se)return!1;for(var tt=Xt?1:0,lt=bt.length-1;lt>=0&&bt[lt]==se;lt--)++tt;Gt=et.to;for(var lt=1;lt<tt;lt++){var rt=Lt.scanForClosingTag(qt,Gt,null,Ct);if(!rt||rt.tag!=se)return!1;Gt=rt.to}return!0}})},32855:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){"use strict";var ce=Lt.Pos;function re(lt,rt){return lt.line-rt.line||lt.ch-rt.ch}var Ie="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ee=Ie+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Vt=new RegExp("<(/?)(["+Ie+"]["+ee+"]*)","g");function Mt(lt,rt,ht,dt){this.line=rt,this.ch=ht,this.cm=lt,this.text=lt.getLine(rt),this.min=dt?Math.max(dt.from,lt.firstLine()):lt.firstLine(),this.max=dt?Math.min(dt.to-1,lt.lastLine()):lt.lastLine()}function jt(lt,rt){var ht=lt.cm.getTokenTypeAt(ce(lt.line,rt));return ht&&/\btag\b/.test(ht)}function qt(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function bt(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function se(lt){for(;;){var rt=lt.text.indexOf(">",lt.ch);if(rt==-1){if(qt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt+1;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function Gt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(rt==-1){if(bt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt;continue}Vt.lastIndex=rt,lt.ch=rt;var ht=Vt.exec(lt.text);if(ht&&ht.index==rt)return ht}}function Xt(lt){for(;;){Vt.lastIndex=lt.ch;var rt=Vt.exec(lt.text);if(!rt){if(qt(lt))continue;return}if(!jt(lt,rt.index+1)){lt.ch=rt.index+1;continue}return lt.ch=rt.index+rt[0].length,rt}}function Ct(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(rt==-1){if(bt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function et(lt,rt){for(var ht=[];;){var dt=Xt(lt),xt,Nt=lt.line,Ut=lt.ch-(dt?dt[0].length:0);if(!dt||!(xt=se(lt)))return;if(xt!="selfClose")if(dt[1]){for(var _t=ht.length-1;_t>=0;--_t)if(ht[_t]==dt[2]){ht.length=_t;break}if(_t<0&&(!rt||rt==dt[2]))return{tag:dt[2],from:ce(Nt,Ut),to:ce(lt.line,lt.ch)}}else ht.push(dt[2])}}function tt(lt,rt){for(var ht=[];;){var dt=Ct(lt);if(!dt)return;if(dt=="selfClose"){Gt(lt);continue}var xt=lt.line,Nt=lt.ch,Ut=Gt(lt);if(!Ut)return;if(Ut[1])ht.push(Ut[2]);else{for(var _t=ht.length-1;_t>=0;--_t)if(ht[_t]==Ut[2]){ht.length=_t;break}if(_t<0&&(!rt||rt==Ut[2]))return{tag:Ut[2],from:ce(lt.line,lt.ch),to:ce(xt,Nt)}}}}Lt.registerHelper("fold","xml",function(lt,rt){for(var ht=new Mt(lt,rt.line,0);;){var dt=Xt(ht);if(!dt||ht.line!=rt.line)return;var xt=se(ht);if(!xt)return;if(!dt[1]&&xt!="selfClose"){var Nt=ce(ht.line,ht.ch),Ut=et(ht,dt[2]);return Ut&&re(Ut.from,Nt)>0?{from:Nt,to:Ut.from}:null}}}),Lt.findMatchingTag=function(lt,rt,ht){var dt=new Mt(lt,rt.line,rt.ch,ht);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var xt=se(dt),Nt=xt&&ce(dt.line,dt.ch),Ut=xt&&Gt(dt);if(!(!xt||!Ut||re(dt,rt)>0)){var _t={from:ce(dt.line,dt.ch),to:Nt,tag:Ut[2]};return xt=="selfClose"?{open:_t,close:null,at:"open"}:Ut[1]?{open:tt(dt,Ut[2]),close:_t,at:"close"}:(dt=new Mt(lt,Nt.line,Nt.ch,ht),{open:_t,close:et(dt,Ut[2]),at:"open"})}}},Lt.findEnclosingTag=function(lt,rt,ht,dt){for(var xt=new Mt(lt,rt.line,rt.ch,ht);;){var Nt=tt(xt,dt);if(!Nt)break;var Ut=new Mt(lt,rt.line,rt.ch,ht),_t=et(Ut,Nt.tag);if(_t)return{open:Nt,close:_t}}},Lt.scanForClosingTag=function(lt,rt,ht,dt){var xt=new Mt(lt,rt.line,rt.ch,dt?{from:0,to:dt}:null);return et(xt,ht)}})},89780:function(hi){(function(Sn,Ft){hi.exports=Ft()})(this,function(){"use strict";var Sn=navigator.userAgent,Ft=navigator.platform,Lt=/gecko\/\d/i.test(Sn),ce=/MSIE \d/.test(Sn),re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Sn),Ie=/Edge\/(\d+)/.exec(Sn),ee=ce||re||Ie,Vt=ee&&(ce?document.documentMode||6:+(Ie||re)[1]),Mt=!Ie&&/WebKit\//.test(Sn),jt=Mt&&/Qt\/\d+\.\d+/.test(Sn),qt=!Ie&&/Chrome\//.test(Sn),bt=/Opera\//.test(Sn),se=/Apple Computer/.test(navigator.vendor),Gt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Sn),Xt=/PhantomJS/.test(Sn),Ct=!Ie&&/AppleWebKit/.test(Sn)&&/Mobile\/\w+/.test(Sn),et=/Android/.test(Sn),tt=Ct||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Sn),lt=Ct||/Mac/.test(Ft),rt=/\bCrOS\b/.test(Sn),ht=/win/i.test(Ft),dt=bt&&Sn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(bt=!1,Mt=!0);var xt=lt&&(jt||bt&&(dt==null||dt<12.11)),Nt=Lt||ee&&Vt>=9;function Ut(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var _t=function(it,st){var mt=it.className,pt=Ut(st).exec(mt);if(pt){var Bt=mt.slice(pt.index+pt[0].length);it.className=mt.slice(0,pt.index)+(Bt?pt[1]+Bt:"")}};function oe(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function he(it,st){return oe(it).appendChild(st)}function fe(it,st,mt,pt){var Bt=document.createElement(it);if(mt&&(Bt.className=mt),pt&&(Bt.style.cssText=pt),typeof st=="string")Bt.appendChild(document.createTextNode(st));else if(st)for(var Jt=0;Jt<st.length;++Jt)Bt.appendChild(st[Jt]);return Bt}function Le(it,st,mt,pt){var Bt=fe(it,st,mt,pt);return Bt.setAttribute("role","presentation"),Bt}var te;document.createRange?te=function(it,st,mt,pt){var Bt=document.createRange();return Bt.setEnd(pt||it,mt),Bt.setStart(it,st),Bt}:te=function(it,st,mt){var pt=document.body.createTextRange();try{pt.moveToElementText(it.parentNode)}catch(Bt){return pt}return pt.collapse(!0),pt.moveEnd("character",mt),pt.moveStart("character",st),pt};function He(it,st){if(st.nodeType==3&&(st=st.parentNode),it.contains)return it.contains(st);do if(st.nodeType==11&&(st=st.host),st==it)return!0;while(st=st.parentNode)}function Wt(){var it;try{it=document.activeElement}catch(st){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function Ke(it,st){var mt=it.className;Ut(st).test(mt)||(it.className+=(mt?" ":"")+st)}function _e(it,st){for(var mt=it.split(" "),pt=0;pt<mt.length;pt++)mt[pt]&&!Ut(mt[pt]).test(st)&&(st+=" "+mt[pt]);return st}var Ne=function(it){it.select()};Ct?Ne=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ee&&(Ne=function(it){try{it.select()}catch(st){}});function Ge(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function Ue(it,st,mt){st||(st={});for(var pt in it)it.hasOwnProperty(pt)&&(mt!==!1||!st.hasOwnProperty(pt))&&(st[pt]=it[pt]);return st}function ve(it,st,mt,pt,Bt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var Jt=pt||0,Se=Bt||0;;){var je=it.indexOf(" ",Jt);if(je<0||je>=st)return Se+(st-Jt);Se+=je-Jt,Se+=mt-Se%mt,Jt=je+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=Ge(this.onTimeout,this)};ne.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},ne.prototype.set=function(it,st){this.f=st;var mt=+new Date+it;(!this.id||mt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=mt)};function Ce(it,st){for(var mt=0;mt<it.length;++mt)if(it[mt]==st)return mt;return-1}var bn=50,Ln={toString:function(){return"CodeMirror.Pass"}},Ve={scroll:!1},Nn={origin:"*mouse"},Zn={origin:"+move"};function gi(it,st,mt){for(var pt=0,Bt=0;;){var Jt=it.indexOf(" ",pt);Jt==-1&&(Jt=it.length);var Se=Jt-pt;if(Jt==it.length||Bt+Se>=st)return pt+Math.min(Se,st-Bt);if(Bt+=Jt-pt,Bt+=mt-Bt%mt,pt=Jt+1,Bt>=st)return pt}}var Kn=[""];function Pi(it){for(;Kn.length<=it;)Kn.push(tn(Kn)+" ");return Kn[it]}function tn(it){return it[it.length-1]}function Li(it,st){for(var mt=[],pt=0;pt<it.length;pt++)mt[pt]=st(it[pt],pt);return mt}function ji(it,st,mt){for(var pt=0,Bt=mt(st);pt<it.length&&mt(it[pt])<=Bt;)pt++;it.splice(pt,0,st)}function Ot(){}function Tt(it,st){var mt;return Object.create?mt=Object.create(it):(Ot.prototype=it,mt=new Ot),st&&Ue(st,mt),mt}var vt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function gt(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||vt.test(it))}function ft(it,st){return st?st.source.indexOf("\\w")>-1&&gt(it)?!0:st.test(it):gt(it)}function At(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xe(it){return it.charCodeAt(0)>=768&&le.test(it)}function ae(it,st,mt){for(;(mt<0?st>0:st<it.length)&&xe(it.charAt(st));)st+=mt;return st}function ye(it,st,mt){for(var pt=st>mt?-1:1;;){if(st==mt)return st;var Bt=(st+mt)/2,Jt=pt<0?Math.ceil(Bt):Math.floor(Bt);if(Jt==st)return it(Jt)?st:mt;it(Jt)?mt=Jt:st=Jt+pt}}function Oe(it,st,mt,pt){if(!it)return pt(st,mt,"ltr",0);for(var Bt=!1,Jt=0;Jt<it.length;++Jt){var Se=it[Jt];(Se.from<mt&&Se.to>st||st==mt&&Se.to==st)&&(pt(Math.max(Se.from,st),Math.min(Se.to,mt),Se.level==1?"rtl":"ltr",Jt),Bt=!0)}Bt||pt(st,mt,"ltr")}var Te=null;function Me(it,st,mt){var pt;Te=null;for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt];if(Jt.from<st&&Jt.to>st)return Bt;Jt.to==st&&(Jt.from!=Jt.to&&mt=="before"?pt=Bt:Te=Bt),Jt.from==st&&(Jt.from!=Jt.to&&mt!="before"?pt=Bt:Te=Bt)}return pt!=null?pt:Te}var on=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function mt(an){return an<=247?it.charAt(an):1424<=an&&an<=1524?"R":1536<=an&&an<=1785?st.charAt(an-1536):1774<=an&&an<=2220?"r":8192<=an&&an<=8203?"w":an==8204?"b":"L"}var pt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Bt=/[stwN]/,Jt=/[LRr]/,Se=/[Lb1n]/,je=/[1n]/;function De(an,si,fn){this.level=an,this.from=si,this.to=fn}return function(an,si){var fn=si=="ltr"?"L":"R";if(an.length==0||si=="ltr"&&!pt.test(an))return!1;for(var Ti=an.length,bi=[],Sr=0;Sr<Ti;++Sr)bi.push(mt(an.charCodeAt(Sr)));for(var Dr=0,Jr=fn;Dr<Ti;++Dr){var vo=bi[Dr];vo=="m"?bi[Dr]=Jr:Jr=vo}for(var Xo=0,No=fn;Xo<Ti;++Xo){var as=bi[Xo];as=="1"&&No=="r"?bi[Xo]="n":Jt.test(as)&&(No=as,as=="r"&&(bi[Xo]="R"))}for(var Ms=1,Io=bi[0];Ms<Ti-1;++Ms){var na=bi[Ms];na=="+"&&Io=="1"&&bi[Ms+1]=="1"?bi[Ms]="1":na==","&&Io==bi[Ms+1]&&(Io=="1"||Io=="n")&&(bi[Ms]=Io),Io=na}for(var Cl=0;Cl<Ti;++Cl){var ku=bi[Cl];if(ku==",")bi[Cl]="N";else if(ku=="%"){var ul=void 0;for(ul=Cl+1;ul<Ti&&bi[ul]=="%";++ul);for(var yu=Cl&&bi[Cl-1]=="!"||ul<Ti&&bi[ul]=="1"?"1":"N",La=Cl;La<ul;++La)bi[La]=yu;Cl=ul-1}}for(var wa=0,gl=fn;wa<Ti;++wa){var pl=bi[wa];gl=="L"&&pl=="1"?bi[wa]="L":Jt.test(pl)&&(gl=pl)}for(var bo=0;bo<Ti;++bo)if(Bt.test(bi[bo])){var xa=void 0;for(xa=bo+1;xa<Ti&&Bt.test(bi[xa]);++xa);for(var Nl=(bo?bi[bo-1]:fn)=="L",Il=(xa<Ti?bi[xa]:fn)=="L",uh=Nl==Il?Nl?"L":"R":fn,Ta=bo;Ta<xa;++Ta)bi[Ta]=uh;bo=xa-1}for(var _s=[],wu,du=0;du<Ti;)if(Se.test(bi[du])){var ad=du;for(++du;du<Ti&&Se.test(bi[du]);++du);_s.push(new De(0,ad,du))}else{var uc=du,hh=_s.length,Sh=si=="rtl"?1:0;for(++du;du<Ti&&bi[du]!="L";++du);for(var kl=uc;kl<du;)if(je.test(bi[kl])){uc<kl&&(_s.splice(hh,0,new De(1,uc,kl)),hh+=Sh);var eh=kl;for(++kl;kl<du&&je.test(bi[kl]);++kl);_s.splice(hh,0,new De(2,eh,kl)),hh+=Sh,uc=kl}else++kl;uc<du&&_s.splice(hh,0,new De(1,uc,du))}return si=="ltr"&&(_s[0].level==1&&(wu=an.match(/^\s+/))&&(_s[0].from=wu[0].length,_s.unshift(new De(0,0,wu[0].length))),tn(_s).level==1&&(wu=an.match(/\s+$/))&&(tn(_s).to-=wu[0].length,_s.push(new De(0,Ti-wu[0].length,Ti)))),si=="rtl"?_s.reverse():_s}}();function Wn(it,st){var mt=it.order;return mt==null&&(mt=it.order=on(it.text,st)),mt}var sn=[],ln=function(it,st,mt){if(it.addEventListener)it.addEventListener(st,mt,!1);else if(it.attachEvent)it.attachEvent("on"+st,mt);else{var pt=it._handlers||(it._handlers={});pt[st]=(pt[st]||sn).concat(mt)}};function Bn(it,st){return it._handlers&&it._handlers[st]||sn}function li(it,st,mt){if(it.removeEventListener)it.removeEventListener(st,mt,!1);else if(it.detachEvent)it.detachEvent("on"+st,mt);else{var pt=it._handlers,Bt=pt&&pt[st];if(Bt){var Jt=Ce(Bt,mt);Jt>-1&&(pt[st]=Bt.slice(0,Jt).concat(Bt.slice(Jt+1)))}}}function On(it,st){var mt=Bn(it,st);if(mt.length)for(var pt=Array.prototype.slice.call(arguments,2),Bt=0;Bt<mt.length;++Bt)mt[Bt].apply(null,pt)}function Di(it,st,mt){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),On(it,mt||st.type,it,st),Yr(st)||st.codemirrorIgnore}function nr(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var mt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),pt=0;pt<st.length;++pt)Ce(mt,st[pt])==-1&&mt.push(st[pt])}function Xi(it,st){return Bn(it,st).length>0}function Mr(it){it.prototype.on=function(st,mt){ln(this,st,mt)},it.prototype.off=function(st,mt){li(this,st,mt)}}function br(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function eo(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Yr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function qr(it){br(it),eo(it)}function Ir(it){return it.target||it.srcElement}function Xr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),lt&&it.ctrlKey&&st==1&&(st=3),st}var oo=function(){if(ee&&Vt<9)return!1;var it=fe("div");return"draggable"in it||"dragDrop"in it}(),jo;function ds(it){if(jo==null){var st=fe("span","\u200B");he(it,fe("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(jo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ee&&Vt<8))}var mt=jo?fe("span","\u200B"):fe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return mt.setAttribute("cm-text",""),mt}var no;function Is(it){if(no!=null)return no;var st=he(it,document.createTextNode("A\u062EA")),mt=te(st,0,1).getBoundingClientRect(),pt=te(st,1,2).getBoundingClientRect();return oe(it),!mt||mt.left==mt.right?!1:no=pt.right-mt.right<3}var xo=`
b`.split(/\n/).length!=3?function(it){for(var st=0,mt=[],pt=it.length;st<=pt;){var Bt=it.indexOf(`
`,st);Bt==-1&&(Bt=it.length);var Jt=it.slice(st,it.charAt(Bt-1)=="\r"?Bt-1:Bt),Se=Jt.indexOf("\r");Se!=-1?(mt.push(Jt.slice(0,Se)),st+=Se+1):(mt.push(Jt),st=Bt+1)}return mt}:function(it){return it.split(/\r\n?|\n/)},$t=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(mt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},ni=function(){var it=fe("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),gs=null;function ua(it){if(gs!=null)return gs;var st=he(it,fe("span","x")),mt=st.getBoundingClientRect(),pt=te(st,0,1).getBoundingClientRect();return gs=Math.abs(mt.left-pt.left)>1}var Gs={},ha={};function Ws(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Gs[it]=st}function Hr(it,st){ha[it]=st}function Xn(it){if(typeof it=="string"&&ha.hasOwnProperty(it))it=ha[it];else if(it&&typeof it.name=="string"&&ha.hasOwnProperty(it.name)){var st=ha[it.name];typeof st=="string"&&(st={name:st}),it=Tt(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Xn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Xn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Hn(it,st){st=Xn(st);var mt=Gs[st.name];if(!mt)return Hn(it,"text/plain");var pt=mt(it,st);if(Mn.hasOwnProperty(st.name)){var Bt=Mn[st.name];for(var Jt in Bt)Bt.hasOwnProperty(Jt)&&(pt.hasOwnProperty(Jt)&&(pt["_"+Jt]=pt[Jt]),pt[Jt]=Bt[Jt])}if(pt.name=st.name,st.helperType&&(pt.helperType=st.helperType),st.modeProps)for(var Se in st.modeProps)pt[Se]=st.modeProps[Se];return pt}var Mn={};function qe(it,st){var mt=Mn.hasOwnProperty(it)?Mn[it]:Mn[it]={};Ue(st,mt)}function pi(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var mt={};for(var pt in st){var Bt=st[pt];Bt instanceof Array&&(Bt=Bt.concat([])),mt[pt]=Bt}return mt}function xi(it,st){for(var mt;it.innerMode&&(mt=it.innerMode(st),!(!mt||mt.mode==it));)st=mt.state,it=mt.mode;return mt||{mode:it,state:st}}function wn(it,st,mt){return it.startState?it.startState(st,mt):!0}var Ee=function(it,st,mt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=mt};Ee.prototype.eol=function(){return this.pos>=this.string.length},Ee.prototype.sol=function(){return this.pos==this.lineStart},Ee.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ee.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ee.prototype.eat=function(it){var st=this.string.charAt(this.pos),mt;if(typeof it=="string"?mt=st==it:mt=st&&(it.test?it.test(st):it(st)),mt)return++this.pos,st},Ee.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Ee.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ee.prototype.skipToEnd=function(){this.pos=this.string.length},Ee.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ee.prototype.backUp=function(it){this.pos-=it},Ee.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Ee.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Ee.prototype.match=function(it,st,mt){if(typeof it=="string"){var pt=function(Se){return mt?Se.toLowerCase():Se},Bt=this.string.substr(this.pos,it.length);if(pt(Bt)==pt(it))return st!==!1&&(this.pos+=it.length),!0}else{var Jt=this.string.slice(this.pos).match(it);return Jt&&Jt.index>0?null:(Jt&&st!==!1&&(this.pos+=Jt[0].length),Jt)}},Ee.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ee.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ee.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ee.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Cn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var mt=it;!mt.lines;)for(var pt=0;;++pt){var Bt=mt.children[pt],Jt=Bt.chunkSize();if(st<Jt){mt=Bt;break}st-=Jt}return mt.lines[st]}function Gn(it,st,mt){var pt=[],Bt=st.line;return it.iter(st.line,mt.line+1,function(Jt){var Se=Jt.text;Bt==mt.line&&(Se=Se.slice(0,mt.ch)),Bt==st.line&&(Se=Se.slice(st.ch)),pt.push(Se),++Bt}),pt}function Ei(it,st,mt){var pt=[];return it.iter(st,mt,function(Bt){pt.push(Bt.text)}),pt}function ei(it,st){var mt=st-it.height;if(mt)for(var pt=it;pt;pt=pt.parent)pt.height+=mt}function gn(it){if(it.parent==null)return null;for(var st=it.parent,mt=Ce(st.lines,it),pt=st.parent;pt;st=pt,pt=pt.parent)for(var Bt=0;pt.children[Bt]!=st;++Bt)mt+=pt.children[Bt].chunkSize();return mt+st.first}function di(it,st){var mt=it.first;t:do{for(var pt=0;pt<it.children.length;++pt){var Bt=it.children[pt],Jt=Bt.height;if(st<Jt){it=Bt;continue t}st-=Jt,mt+=Bt.chunkSize()}return mt}while(!it.lines);for(var Se=0;Se<it.lines.length;++Se){var je=it.lines[Se],De=je.height;if(st<De)break;st-=De}return mt+Se}function Ni(it,st){return st>=it.first&&st<it.first+it.size}function $i(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function kn(it,st,mt){if(mt===void 0&&(mt=null),!(this instanceof kn))return new kn(it,st,mt);this.line=it,this.ch=st,this.sticky=mt}function yi(it,st){return it.line-st.line||it.ch-st.ch}function Br(it,st){return it.sticky==st.sticky&&yi(it,st)==0}function dr(it){return kn(it.line,it.ch)}function zr(it,st){return yi(it,st)<0?st:it}function cr(it,st){return yi(it,st)<0?it:st}function wr(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function or(it,st){if(st.line<it.first)return kn(it.first,0);var mt=it.first+it.size-1;return st.line>mt?kn(mt,Cn(it,mt).text.length):xr(st,Cn(it,st.line).text.length)}function xr(it,st){var mt=it.ch;return mt==null||mt>st?kn(it.line,st):mt<0?kn(it.line,0):it}function so(it,st){for(var mt=[],pt=0;pt<st.length;pt++)mt[pt]=or(it,st[pt]);return mt}var Yi=function(it,st){this.state=it,this.lookAhead=st},pr=function(it,st,mt,pt){this.state=st,this.doc=it,this.line=mt,this.maxLookAhead=pt||0,this.baseTokens=null,this.baseTokenPos=1};pr.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},pr.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pr.fromSaved=function(it,st,mt){return st instanceof Yi?new pr(it,pi(it.mode,st.state),mt,st.lookAhead):new pr(it,pi(it.mode,st),mt)},pr.prototype.save=function(it){var st=it!==!1?pi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yi(st,this.maxLookAhead):st};function yo(it,st,mt,pt){var Bt=[it.state.modeGen],Jt={};wi(it,st.text,it.doc.mode,mt,function(an,si){return Bt.push(an,si)},Jt,pt);for(var Se=mt.state,je=function(an){mt.baseTokens=Bt;var si=it.state.overlays[an],fn=1,Ti=0;mt.state=!0,wi(it,st.text,si.mode,mt,function(bi,Sr){for(var Dr=fn;Ti<bi;){var Jr=Bt[fn];Jr>bi&&Bt.splice(fn,1,bi,Bt[fn+1],Jr),fn+=2,Ti=Math.min(bi,Jr)}if(Sr)if(si.opaque)Bt.splice(Dr,fn-Dr,bi,"overlay "+Sr),fn=Dr+2;else for(;Dr<fn;Dr+=2){var vo=Bt[Dr+1];Bt[Dr+1]=(vo?vo+" ":"")+"overlay "+Sr}},Jt),mt.state=Se,mt.baseTokens=null,mt.baseTokenPos=1},De=0;De<it.state.overlays.length;++De)je(De);return{styles:Bt,classes:Jt.bgClass||Jt.textClass?Jt:null}}function Ss(it,st,mt){if(!st.styles||st.styles[0]!=it.state.modeGen){var pt=_o(it,gn(st)),Bt=st.text.length>it.options.maxHighlightLength&&pi(it.doc.mode,pt.state),Jt=yo(it,st,pt);Bt&&(pt.state=Bt),st.stateAfter=pt.save(!Bt),st.styles=Jt.styles,Jt.classes?st.styleClasses=Jt.classes:st.styleClasses&&(st.styleClasses=null),mt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function _o(it,st,mt){var pt=it.doc,Bt=it.display;if(!pt.mode.startState)return new pr(pt,!0,st);var Jt=Po(it,st,mt),Se=Jt>pt.first&&Cn(pt,Jt-1).stateAfter,je=Se?pr.fromSaved(pt,Se,Jt):new pr(pt,wn(pt.mode),Jt);return pt.iter(Jt,st,function(De){Dn(it,De.text,je);var an=je.line;De.stateAfter=an==st-1||an%5==0||an>=Bt.viewFrom&&an<Bt.viewTo?je.save():null,je.nextLine()}),mt&&(pt.modeFrontier=je.line),je}function Dn(it,st,mt,pt){var Bt=it.doc.mode,Jt=new Ee(st,it.options.tabSize,mt);for(Jt.start=Jt.pos=pt||0,st==""&&Tr(Bt,mt.state);!Jt.eol();)ao(Bt,Jt,mt.state),Jt.start=Jt.pos}function Tr(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var mt=xi(it,st);if(mt.mode.blankLine)return mt.mode.blankLine(mt.state)}}function ao(it,st,mt,pt){for(var Bt=0;Bt<10;Bt++){pt&&(pt[0]=xi(it,mt).mode);var Jt=it.token(st,mt);if(st.pos>st.start)return Jt}throw new Error("Mode "+it.name+" failed to advance stream.")}var Kr=function(it,st,mt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=mt};function qo(it,st,mt,pt){var Bt=it.doc,Jt=Bt.mode,Se;st=or(Bt,st);var je=Cn(Bt,st.line),De=_o(it,st.line,mt),an=new Ee(je.text,it.options.tabSize,De),si;for(pt&&(si=[]);(pt||an.pos<st.ch)&&!an.eol();)an.start=an.pos,Se=ao(Jt,an,De.state),pt&&si.push(new Kr(an,Se,pi(Bt.mode,De.state)));return pt?si:new Kr(an,Se,De.state)}function Oo(it,st){if(it)for(;;){var mt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!mt)break;it=it.slice(0,mt.index)+it.slice(mt.index+mt[0].length);var pt=mt[1]?"bgClass":"textClass";st[pt]==null?st[pt]=mt[2]:new RegExp("(?:^|\\s)"+mt[2]+"(?:$|\\s)").test(st[pt])||(st[pt]+=" "+mt[2])}return it}function wi(it,st,mt,pt,Bt,Jt,Se){var je=mt.flattenSpans;je==null&&(je=it.options.flattenSpans);var De=0,an=null,si=new Ee(st,it.options.tabSize,pt),fn,Ti=it.options.addModeClass&&[null];for(st==""&&Oo(Tr(mt,pt.state),Jt);!si.eol();){if(si.pos>it.options.maxHighlightLength?(je=!1,Se&&Dn(it,st,pt,si.pos),si.pos=st.length,fn=null):fn=Oo(ao(mt,si,pt.state,Ti),Jt),Ti){var bi=Ti[0].name;bi&&(fn="m-"+(fn?bi+" "+fn:bi))}if(!je||an!=fn){for(;De<si.start;)De=Math.min(si.start,De+5e3),Bt(De,an);an=fn}si.start=si.pos}for(;De<si.pos;){var Sr=Math.min(si.pos,De+5e3);Bt(Sr,an),De=Sr}}function Po(it,st,mt){for(var pt,Bt,Jt=it.doc,Se=mt?-1:st-(it.doc.mode.innerMode?1e3:100),je=st;je>Se;--je){if(je<=Jt.first)return Jt.first;var De=Cn(Jt,je-1),an=De.stateAfter;if(an&&(!mt||je+(an instanceof Yi?an.lookAhead:0)<=Jt.modeFrontier))return je;var si=ve(De.text,null,it.options.tabSize);(Bt==null||pt>si)&&(Bt=je-1,pt=si)}return Bt}function Rr(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var mt=it.first,pt=st-1;pt>mt;pt--){var Bt=Cn(it,pt).stateAfter;if(Bt&&(!(Bt instanceof Yi)||pt+Bt.lookAhead<st)){mt=pt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,mt)}}var kr=!1,Ci=!1;function Lo(){kr=!0}function Bi(){Ci=!0}function Zo(it,st,mt){this.marker=it,this.from=st,this.to=mt}function ra(it,st){if(it)for(var mt=0;mt<it.length;++mt){var pt=it[mt];if(pt.marker==st)return pt}}function fs(it,st){for(var mt,pt=0;pt<it.length;++pt)it[pt]!=st&&(mt||(mt=[])).push(it[pt]);return mt}function ba(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Vs(it,st,mt){var pt;if(it)for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=Jt.marker,je=Jt.from==null||(Se.inclusiveLeft?Jt.from<=st:Jt.from<st);if(je||Jt.from==st&&Se.type=="bookmark"&&(!mt||!Jt.marker.insertLeft)){var De=Jt.to==null||(Se.inclusiveRight?Jt.to>=st:Jt.to>st);(pt||(pt=[])).push(new Zo(Se,Jt.from,De?null:Jt.to))}}return pt}function Mo(it,st,mt){var pt;if(it)for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=Jt.marker,je=Jt.to==null||(Se.inclusiveRight?Jt.to>=st:Jt.to>st);if(je||Jt.from==st&&Se.type=="bookmark"&&(!mt||Jt.marker.insertLeft)){var De=Jt.from==null||(Se.inclusiveLeft?Jt.from<=st:Jt.from<st);(pt||(pt=[])).push(new Zo(Se,De?null:Jt.from-st,Jt.to==null?null:Jt.to-st))}}return pt}function Ho(it,st){if(st.full)return null;var mt=Ni(it,st.from.line)&&Cn(it,st.from.line).markedSpans,pt=Ni(it,st.to.line)&&Cn(it,st.to.line).markedSpans;if(!mt&&!pt)return null;var Bt=st.from.ch,Jt=st.to.ch,Se=yi(st.from,st.to)==0,je=Vs(mt,Bt,Se),De=Mo(pt,Jt,Se),an=st.text.length==1,si=tn(st.text).length+(an?Bt:0);if(je)for(var fn=0;fn<je.length;++fn){var Ti=je[fn];if(Ti.to==null){var bi=ra(De,Ti.marker);bi?an&&(Ti.to=bi.to==null?null:bi.to+si):Ti.to=Bt}}if(De)for(var Sr=0;Sr<De.length;++Sr){var Dr=De[Sr];if(Dr.to!=null&&(Dr.to+=si),Dr.from==null){var Jr=ra(je,Dr.marker);Jr||(Dr.from=si,an&&(je||(je=[])).push(Dr))}else Dr.from+=si,an&&(je||(je=[])).push(Dr)}je&&(je=ps(je)),De&&De!=je&&(De=ps(De));var vo=[je];if(!an){var Xo=st.text.length-2,No;if(Xo>0&&je)for(var as=0;as<je.length;++as)je[as].to==null&&(No||(No=[])).push(new Zo(je[as].marker,null,null));for(var Ms=0;Ms<Xo;++Ms)vo.push(No);vo.push(De)}return vo}function ps(it){for(var st=0;st<it.length;++st){var mt=it[st];mt.from!=null&&mt.from==mt.to&&mt.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function ss(it,st,mt){var pt=null;if(it.iter(st.line,mt.line+1,function(bi){if(bi.markedSpans)for(var Sr=0;Sr<bi.markedSpans.length;++Sr){var Dr=bi.markedSpans[Sr].marker;Dr.readOnly&&(!pt||Ce(pt,Dr)==-1)&&(pt||(pt=[])).push(Dr)}}),!pt)return null;for(var Bt=[{from:st,to:mt}],Jt=0;Jt<pt.length;++Jt)for(var Se=pt[Jt],je=Se.find(0),De=0;De<Bt.length;++De){var an=Bt[De];if(!(yi(an.to,je.from)<0||yi(an.from,je.to)>0)){var si=[De,1],fn=yi(an.from,je.from),Ti=yi(an.to,je.to);(fn<0||!Se.inclusiveLeft&&!fn)&&si.push({from:an.from,to:je.from}),(Ti>0||!Se.inclusiveRight&&!Ti)&&si.push({from:je.to,to:an.to}),Bt.splice.apply(Bt,si),De+=si.length-3}}return Bt}function gr(it){var st=it.markedSpans;if(st){for(var mt=0;mt<st.length;++mt)st[mt].marker.detachLine(it);it.markedSpans=null}}function ke(it,st){if(st){for(var mt=0;mt<st.length;++mt)st[mt].marker.attachLine(it);it.markedSpans=st}}function ts(it){return it.inclusiveLeft?-1:0}function Sa(it){return it.inclusiveRight?1:0}function sl(it,st){var mt=it.lines.length-st.lines.length;if(mt!=0)return mt;var pt=it.find(),Bt=st.find(),Jt=yi(pt.from,Bt.from)||ts(it)-ts(st);if(Jt)return-Jt;var Se=yi(pt.to,Bt.to)||Sa(it)-Sa(st);return Se||st.id-it.id}function Ll(it,st){var mt=Ci&&it.markedSpans,pt;if(mt)for(var Bt=void 0,Jt=0;Jt<mt.length;++Jt)Bt=mt[Jt],Bt.marker.collapsed&&(st?Bt.from:Bt.to)==null&&(!pt||sl(pt,Bt.marker)<0)&&(pt=Bt.marker);return pt}function ml(it){return Ll(it,!0)}function Ol(it){return Ll(it,!1)}function is(it,st){var mt=Ci&&it.markedSpans,pt;if(mt)for(var Bt=0;Bt<mt.length;++Bt){var Jt=mt[Bt];Jt.marker.collapsed&&(Jt.from==null||Jt.from<st)&&(Jt.to==null||Jt.to>st)&&(!pt||sl(pt,Jt.marker)<0)&&(pt=Jt.marker)}return pt}function $o(it,st,mt,pt,Bt){var Jt=Cn(it,st),Se=Ci&&Jt.markedSpans;if(Se)for(var je=0;je<Se.length;++je){var De=Se[je];if(De.marker.collapsed){var an=De.marker.find(0),si=yi(an.from,mt)||ts(De.marker)-ts(Bt),fn=yi(an.to,pt)||Sa(De.marker)-Sa(Bt);if(!(si>=0&&fn<=0||si<=0&&fn>=0)&&(si<=0&&(De.marker.inclusiveRight&&Bt.inclusiveLeft?yi(an.to,mt)>=0:yi(an.to,mt)>0)||si>=0&&(De.marker.inclusiveRight&&Bt.inclusiveLeft?yi(an.from,pt)<=0:yi(an.from,pt)<0)))return!0}}}function wo(it){for(var st;st=ml(it);)it=st.find(-1,!0).line;return it}function ks(it){for(var st;st=Ol(it);)it=st.find(1,!0).line;return it}function co(it){for(var st,mt;st=Ol(it);)it=st.find(1,!0).line,(mt||(mt=[])).push(it);return mt}function to(it,st){var mt=Cn(it,st),pt=wo(mt);return mt==pt?st:gn(pt)}function Uo(it,st){if(st>it.lastLine())return st;var mt=Cn(it,st),pt;if(!Ki(it,mt))return st;for(;pt=Ol(mt);)mt=pt.find(1,!0).line;return gn(mt)+1}function Ki(it,st){var mt=Ci&&st.markedSpans;if(mt){for(var pt=void 0,Bt=0;Bt<mt.length;++Bt)if(pt=mt[Bt],!!pt.marker.collapsed){if(pt.from==null)return!0;if(!pt.marker.widgetNode&&pt.from==0&&pt.marker.inclusiveLeft&&Ts(it,st,pt))return!0}}}function Ts(it,st,mt){if(mt.to==null){var pt=mt.marker.find(1,!0);return Ts(it,pt.line,ra(pt.line.markedSpans,mt.marker))}if(mt.marker.inclusiveRight&&mt.to==st.text.length)return!0;for(var Bt=void 0,Jt=0;Jt<st.markedSpans.length;++Jt)if(Bt=st.markedSpans[Jt],Bt.marker.collapsed&&!Bt.marker.widgetNode&&Bt.from==mt.to&&(Bt.to==null||Bt.to!=mt.from)&&(Bt.marker.inclusiveLeft||mt.marker.inclusiveRight)&&Ts(it,st,Bt))return!0}function zs(it){it=wo(it);for(var st=0,mt=it.parent,pt=0;pt<mt.lines.length;++pt){var Bt=mt.lines[pt];if(Bt==it)break;st+=Bt.height}for(var Jt=mt.parent;Jt;mt=Jt,Jt=mt.parent)for(var Se=0;Se<Jt.children.length;++Se){var je=Jt.children[Se];if(je==mt)break;st+=je.height}return st}function Aa(it){if(it.height==0)return 0;for(var st=it.text.length,mt,pt=it;mt=ml(pt);){var Bt=mt.find(0,!0);pt=Bt.from.line,st+=Bt.from.ch-Bt.to.ch}for(pt=it;mt=Ol(pt);){var Jt=mt.find(0,!0);st-=pt.text.length-Jt.from.ch,pt=Jt.to.line,st+=pt.text.length-Jt.to.ch}return st}function qs(it){var st=it.display,mt=it.doc;st.maxLine=Cn(mt,mt.first),st.maxLineLength=Aa(st.maxLine),st.maxLineChanged=!0,mt.iter(function(pt){var Bt=Aa(pt);Bt>st.maxLineLength&&(st.maxLineLength=Bt,st.maxLine=pt)})}var Qo=function(it,st,mt){this.text=it,ke(this,st),this.height=mt?mt(this):1};Qo.prototype.lineNo=function(){return gn(this)},Mr(Qo);function Zs(it,st,mt,pt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),gr(it),ke(it,mt);var Bt=pt?pt(it):1;Bt!=it.height&&ei(it,Bt)}function vl(it){it.parent=null,gr(it)}var yl={},Dl={};function Bs(it,st){if(!it||/^\s*$/.test(it))return null;var mt=st.addModeClass?Dl:yl;return mt[it]||(mt[it]=it.replace(/\S+/g,"cm-$&"))}function ai(it,st){var mt=Le("span",null,null,Mt?"padding-right: .1px":null),pt={pre:Le("pre",[mt],"CodeMirror-line"),content:mt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var Bt=0;Bt<=(st.rest?st.rest.length:0);Bt++){var Jt=Bt?st.rest[Bt-1]:st.line,Se=void 0;pt.pos=0,pt.addToken=mh,Is(it.display.measure)&&(Se=Wn(Jt,it.doc.direction))&&(pt.addToken=su(pt.addToken,Se)),pt.map=[];var je=st!=it.display.externalMeasured&&gn(Jt);Ks(Jt,pt,Ss(it,Jt,je)),Jt.styleClasses&&(Jt.styleClasses.bgClass&&(pt.bgClass=_e(Jt.styleClasses.bgClass,pt.bgClass||"")),Jt.styleClasses.textClass&&(pt.textClass=_e(Jt.styleClasses.textClass,pt.textClass||""))),pt.map.length==0&&pt.map.push(0,0,pt.content.appendChild(ds(it.display.measure))),Bt==0?(st.measure.map=pt.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(pt.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(Mt){var De=pt.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(pt.content.className="cm-tab-wrap-hack")}return On(it,"renderLine",it,st.line,pt.pre),pt.pre.className&&(pt.textClass=_e(pt.pre.className,pt.textClass||"")),pt}function Ga(it){var st=fe("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function mh(it,st,mt,pt,Bt,Jt,Se){if(st){var je=it.splitSpaces?ju(st,it.trailingSpace):st,De=it.cm.state.specialChars,an=!1,si;if(!De.test(st))it.col+=st.length,si=document.createTextNode(je),it.map.push(it.pos,it.pos+st.length,si),ee&&Vt<9&&(an=!0),it.pos+=st.length;else{si=document.createDocumentFragment();for(var fn=0;;){De.lastIndex=fn;var Ti=De.exec(st),bi=Ti?Ti.index-fn:st.length-fn;if(bi){var Sr=document.createTextNode(je.slice(fn,fn+bi));ee&&Vt<9?si.appendChild(fe("span",[Sr])):si.appendChild(Sr),it.map.push(it.pos,it.pos+bi,Sr),it.col+=bi,it.pos+=bi}if(!Ti)break;fn+=bi+1;var Dr=void 0;if(Ti[0]==" "){var Jr=it.cm.options.tabSize,vo=Jr-it.col%Jr;Dr=si.appendChild(fe("span",Pi(vo),"cm-tab")),Dr.setAttribute("role","presentation"),Dr.setAttribute("cm-text"," "),it.col+=vo}else Ti[0]=="\r"||Ti[0]==`
`?(Dr=si.appendChild(fe("span",Ti[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Dr.setAttribute("cm-text",Ti[0]),it.col+=1):(Dr=it.cm.options.specialCharPlaceholder(Ti[0]),Dr.setAttribute("cm-text",Ti[0]),ee&&Vt<9?si.appendChild(fe("span",[Dr])):si.appendChild(Dr),it.col+=1);it.map.push(it.pos,it.pos+1,Dr),it.pos++}}if(it.trailingSpace=je.charCodeAt(st.length-1)==32,mt||pt||Bt||an||Jt||Se){var Xo=mt||"";pt&&(Xo+=pt),Bt&&(Xo+=Bt);var No=fe("span",[si],Xo,Jt);if(Se)for(var as in Se)Se.hasOwnProperty(as)&&as!="style"&&as!="class"&&No.setAttribute(as,Se[as]);return it.content.appendChild(No)}it.content.appendChild(si)}}function ju(it,st){if(it.length>1&&!/ /.test(it))return it;for(var mt=st,pt="",Bt=0;Bt<it.length;Bt++){var Jt=it.charAt(Bt);Jt==" "&&mt&&(Bt==it.length-1||it.charCodeAt(Bt+1)==32)&&(Jt="\xA0"),pt+=Jt,mt=Jt==" "}return pt}function su(it,st){return function(mt,pt,Bt,Jt,Se,je,De){Bt=Bt?Bt+" cm-force-border":"cm-force-border";for(var an=mt.pos,si=an+pt.length;;){for(var fn=void 0,Ti=0;Ti<st.length&&(fn=st[Ti],!(fn.to>an&&fn.from<=an));Ti++);if(fn.to>=si)return it(mt,pt,Bt,Jt,Se,je,De);it(mt,pt.slice(0,fn.to-an),Bt,Jt,null,je,De),Jt=null,pt=pt.slice(fn.to-an),an=fn.to}}}function Ao(it,st,mt,pt){var Bt=!pt&&mt.widgetNode;Bt&&it.map.push(it.pos,it.pos+st,Bt),!pt&&it.cm.display.input.needsContentAttribute&&(Bt||(Bt=it.content.appendChild(document.createElement("span"))),Bt.setAttribute("cm-marker",mt.id)),Bt&&(it.cm.display.input.setUneditable(Bt),it.content.appendChild(Bt)),it.pos+=st,it.trailingSpace=!1}function Ks(it,st,mt){var pt=it.markedSpans,Bt=it.text,Jt=0;if(!pt){for(var Se=1;Se<mt.length;Se+=2)st.addToken(st,Bt.slice(Jt,Jt=mt[Se]),Bs(mt[Se+1],st.cm.options));return}for(var je=Bt.length,De=0,an=1,si="",fn,Ti,bi=0,Sr,Dr,Jr,vo,Xo;;){if(bi==De){Sr=Dr=Jr=Ti="",Xo=null,vo=null,bi=1/0;for(var No=[],as=void 0,Ms=0;Ms<pt.length;++Ms){var Io=pt[Ms],na=Io.marker;if(na.type=="bookmark"&&Io.from==De&&na.widgetNode)No.push(na);else if(Io.from<=De&&(Io.to==null||Io.to>De||na.collapsed&&Io.to==De&&Io.from==De)){if(Io.to!=null&&Io.to!=De&&bi>Io.to&&(bi=Io.to,Dr=""),na.className&&(Sr+=" "+na.className),na.css&&(Ti=(Ti?Ti+";":"")+na.css),na.startStyle&&Io.from==De&&(Jr+=" "+na.startStyle),na.endStyle&&Io.to==bi&&(as||(as=[])).push(na.endStyle,Io.to),na.title&&((Xo||(Xo={})).title=na.title),na.attributes)for(var Cl in na.attributes)(Xo||(Xo={}))[Cl]=na.attributes[Cl];na.collapsed&&(!vo||sl(vo.marker,na)<0)&&(vo=Io)}else Io.from>De&&bi>Io.from&&(bi=Io.from)}if(as)for(var ku=0;ku<as.length;ku+=2)as[ku+1]==bi&&(Dr+=" "+as[ku]);if(!vo||vo.from==De)for(var ul=0;ul<No.length;++ul)Ao(st,0,No[ul]);if(vo&&(vo.from||0)==De){if(Ao(st,(vo.to==null?je+1:vo.to)-De,vo.marker,vo.from==null),vo.to==null)return;vo.to==De&&(vo=!1)}}if(De>=je)break;for(var yu=Math.min(je,bi);;){if(si){var La=De+si.length;if(!vo){var wa=La>yu?si.slice(0,yu-De):si;st.addToken(st,wa,fn?fn+Sr:Sr,Jr,De+wa.length==bi?Dr:"",Ti,Xo)}if(La>=yu){si=si.slice(yu-De),De=yu;break}De=La,Jr=""}si=Bt.slice(Jt,Jt=mt[an++]),fn=Bs(mt[an++],st.cm.options)}}}function Ls(it,st,mt){this.line=st,this.rest=co(st),this.size=this.rest?gn(tn(this.rest))-mt+1:1,this.node=this.text=null,this.hidden=Ki(it,st)}function bs(it,st,mt){for(var pt=[],Bt,Jt=st;Jt<mt;Jt=Bt){var Se=new Ls(it.doc,Cn(it.doc,Jt),Jt);Bt=Jt+Se.size,pt.push(Se)}return pt}var Hs=null;function Ml(it){Hs?Hs.ops.push(it):it.ownsGroup=Hs={ops:[it],delayedCallbacks:[]}}function cs(it){var st=it.delayedCallbacks,mt=0;do{for(;mt<st.length;mt++)st[mt].call(null);for(var pt=0;pt<it.ops.length;pt++){var Bt=it.ops[pt];if(Bt.cursorActivityHandlers)for(;Bt.cursorActivityCalled<Bt.cursorActivityHandlers.length;)Bt.cursorActivityHandlers[Bt.cursorActivityCalled++].call(null,Bt.cm)}}while(mt<st.length)}function Qs(it,st){var mt=it.ownsGroup;if(mt)try{cs(mt)}finally{Hs=null,st(mt)}}var xs=null;function Gr(it,st){var mt=Bn(it,st);if(mt.length){var pt=Array.prototype.slice.call(arguments,2),Bt;Hs?Bt=Hs.delayedCallbacks:xs?Bt=xs:(Bt=xs=[],setTimeout(al,0));for(var Jt=function(je){Bt.push(function(){return mt[je].apply(null,pt)})},Se=0;Se<mt.length;++Se)Jt(Se)}}function al(){var it=xs;xs=null;for(var st=0;st<it.length;++st)it[st]()}function Ds(it,st,mt,pt){for(var Bt=0;Bt<st.changes.length;Bt++){var Jt=st.changes[Bt];Jt=="text"?fr(it,st):Jt=="gutter"?nl(it,st,mt,pt):Jt=="class"?Wa(it,st):Jt=="widget"&&bl(it,st,pt)}st.changes=null}function Su(it){return it.node==it.text&&(it.node=fe("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ee&&Vt<8&&(it.node.style.zIndex=2)),it.node}function Ku(it,st){var mt=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(mt&&(mt+=" CodeMirror-linebackground"),st.background)mt?st.background.className=mt:(st.background.parentNode.removeChild(st.background),st.background=null);else if(mt){var pt=Su(st);st.background=pt.insertBefore(fe("div",null,mt),pt.firstChild),it.display.input.setUneditable(st.background)}}function $l(it,st){var mt=it.display.externalMeasured;return mt&&mt.line==st.line?(it.display.externalMeasured=null,st.measure=mt.measure,mt.built):ai(it,st)}function fr(it,st){var mt=st.text.className,pt=$l(it,st);st.text==st.node&&(st.node=pt.pre),st.text.parentNode.replaceChild(pt.pre,st.text),st.text=pt.pre,pt.bgClass!=st.bgClass||pt.textClass!=st.textClass?(st.bgClass=pt.bgClass,st.textClass=pt.textClass,Wa(it,st)):mt&&(st.text.className=mt)}function Wa(it,st){Ku(it,st),st.line.wrapClass?Su(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var mt=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=mt||""}function nl(it,st,mt,pt){if(st.gutter&&(st.node.removeChild(st.gutter),st.gutter=null),st.gutterBackground&&(st.node.removeChild(st.gutterBackground),st.gutterBackground=null),st.line.gutterClass){var Bt=Su(st);st.gutterBackground=fe("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px; width: "+pt.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),Bt.insertBefore(st.gutterBackground,st.text)}var Jt=st.line.gutterMarkers;if(it.options.lineNumbers||Jt){var Se=Su(st),je=st.gutter=fe("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(je),Se.insertBefore(je,st.text),st.line.gutterClass&&(je.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!Jt||!Jt["CodeMirror-linenumbers"])&&(st.lineNumber=je.appendChild(fe("div",$i(it.options,mt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Jt)for(var De=0;De<it.display.gutterSpecs.length;++De){var an=it.display.gutterSpecs[De].className,si=Jt.hasOwnProperty(an)&&Jt[an];si&&je.appendChild(fe("div",[si],"CodeMirror-gutter-elt","left: "+pt.gutterLeft[an]+"px; width: "+pt.gutterWidth[an]+"px"))}}}function bl(it,st,mt){st.alignable&&(st.alignable=null);for(var pt=Ut("CodeMirror-linewidget"),Bt=st.node.firstChild,Jt=void 0;Bt;Bt=Jt)Jt=Bt.nextSibling,pt.test(Bt.className)&&st.node.removeChild(Bt);Xa(it,st,mt)}function au(it,st,mt,pt){var Bt=$l(it,st);return st.text=st.node=Bt.pre,Bt.bgClass&&(st.bgClass=Bt.bgClass),Bt.textClass&&(st.textClass=Bt.textClass),Wa(it,st),nl(it,st,mt,pt),Xa(it,st,pt),st.node}function Xa(it,st,mt){if(Eo(it,st.line,st,mt,!0),st.rest)for(var pt=0;pt<st.rest.length;pt++)Eo(it,st.rest[pt],st,mt,!1)}function Eo(it,st,mt,pt,Bt){if(st.widgets)for(var Jt=Su(mt),Se=0,je=st.widgets;Se<je.length;++Se){var De=je[Se],an=fe("div",[De.node],"CodeMirror-linewidget"+(De.className?" "+De.className:""));De.handleMouseEvents||an.setAttribute("cm-ignore-events","true"),Oa(De,an,mt,pt),it.display.input.setUneditable(an),Bt&&De.above?Jt.insertBefore(an,mt.gutter||mt.text):Jt.appendChild(an),Gr(De,"redraw")}}function Oa(it,st,mt,pt){if(it.noHScroll){(mt.alignable||(mt.alignable=[])).push(st);var Bt=pt.wrapperWidth;st.style.left=pt.fixedPos+"px",it.coverGutter||(Bt-=pt.gutterTotalWidth,st.style.paddingLeft=pt.gutterTotalWidth+"px"),st.style.width=Bt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-pt.gutterTotalWidth+"px"))}function $a(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!He(document.body,it.node)){var mt="position: relative;";it.coverGutter&&(mt+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(mt+="width: "+st.display.wrapper.clientWidth+"px;"),he(st.display.measure,fe("div",[it.node],null,mt))}return it.height=it.node.parentNode.offsetHeight}function lu(it,st){for(var mt=Ir(st);mt!=it.wrapper;mt=mt.parentNode)if(!mt||mt.nodeType==1&&mt.getAttribute("cm-ignore-events")=="true"||mt.parentNode==it.sizer&&mt!=it.mover)return!0}function Yl(it){return it.lineSpace.offsetTop}function Pu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function bu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=he(it.measure,fe("pre","x","CodeMirror-line-like")),mt=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,pt={left:parseInt(mt.paddingLeft),right:parseInt(mt.paddingRight)};return!isNaN(pt.left)&&!isNaN(pt.right)&&(it.cachedPaddingH=pt),pt}function fu(it){return bn-it.display.nativeBarWidth}function nu(it){return it.display.scroller.clientWidth-fu(it)-it.display.barWidth}function zo(it){return it.display.scroller.clientHeight-fu(it)-it.display.barHeight}function Hd(it,st,mt){var pt=it.options.lineWrapping,Bt=pt&&nu(it);if(!st.measure.heights||pt&&st.measure.width!=Bt){var Jt=st.measure.heights=[];if(pt){st.measure.width=Bt;for(var Se=st.text.firstChild.getClientRects(),je=0;je<Se.length-1;je++){var De=Se[je],an=Se[je+1];Math.abs(De.bottom-an.bottom)>2&&Jt.push((De.bottom+an.top)/2-mt.top)}}Jt.push(mt.bottom-mt.top)}}function Eu(it,st,mt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var pt=0;pt<it.rest.length;pt++)if(it.rest[pt]==st)return{map:it.measure.maps[pt],cache:it.measure.caches[pt]};for(var Bt=0;Bt<it.rest.length;Bt++)if(gn(it.rest[Bt])>mt)return{map:it.measure.maps[Bt],cache:it.measure.caches[Bt],before:!0}}function yd(it,st){st=wo(st);var mt=gn(st),pt=it.display.externalMeasured=new Ls(it.doc,st,mt);pt.lineN=mt;var Bt=pt.built=ai(it,pt);return pt.text=Bt.pre,he(it.display.lineMeasure,Bt.pre),pt}function kh(it,st,mt,pt){return Ch(it,il(it,st),mt,pt)}function nc(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Xu(it,st)];var mt=it.display.externalMeasured;if(mt&&st>=mt.lineN&&st<mt.lineN+mt.size)return mt}function il(it,st){var mt=gn(st),pt=nc(it,mt);pt&&!pt.text?pt=null:pt&&pt.changes&&(Ds(it,pt,mt,zA(it)),it.curOp.forceUpdate=!0),pt||(pt=yd(it,st));var Bt=Eu(pt,st,mt);return{line:st,view:pt,rect:null,map:Bt.map,cache:Bt.cache,before:Bt.before,hasHeights:!1}}function Ch(it,st,mt,pt,Bt){st.before&&(mt=-1);var Jt=mt+(pt||""),Se;return st.cache.hasOwnProperty(Jt)?Se=st.cache[Jt]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(Hd(it,st.view,st.rect),st.hasHeights=!0),Se=Es(it,st,mt,pt),Se.bogus||(st.cache[Jt]=Se)),{left:Se.left,right:Se.right,top:Bt?Se.rtop:Se.top,bottom:Bt?Se.rbottom:Se.bottom}}var Qd={left:0,right:0,top:0,bottom:0};function Oc(it,st,mt){for(var pt,Bt,Jt,Se,je,De,an=0;an<it.length;an+=3)if(je=it[an],De=it[an+1],st<je?(Bt=0,Jt=1,Se="left"):st<De?(Bt=st-je,Jt=Bt+1):(an==it.length-3||st==De&&it[an+3]>st)&&(Jt=De-je,Bt=Jt-1,st>=De&&(Se="right")),Bt!=null){if(pt=it[an+2],je==De&&mt==(pt.insertLeft?"left":"right")&&(Se=mt),mt=="left"&&Bt==0)for(;an&&it[an-2]==it[an-3]&&it[an-1].insertLeft;)pt=it[(an-=3)+2],Se="left";if(mt=="right"&&Bt==De-je)for(;an<it.length-3&&it[an+3]==it[an+4]&&!it[an+5].insertLeft;)pt=it[(an+=3)+2],Se="right";break}return{node:pt,start:Bt,end:Jt,collapse:Se,coverStart:je,coverEnd:De}}function Dc(it,st){var mt=Qd;if(st=="left")for(var pt=0;pt<it.length&&(mt=it[pt]).left==mt.right;pt++);else for(var Bt=it.length-1;Bt>=0&&(mt=it[Bt]).left==mt.right;Bt--);return mt}function Es(it,st,mt,pt){var Bt=Oc(st.map,mt,pt),Jt=Bt.node,Se=Bt.start,je=Bt.end,De=Bt.collapse,an;if(Jt.nodeType==3){for(var si=0;si<4;si++){for(;Se&&xe(st.line.text.charAt(Bt.coverStart+Se));)--Se;for(;Bt.coverStart+je<Bt.coverEnd&&xe(st.line.text.charAt(Bt.coverStart+je));)++je;if(ee&&Vt<9&&Se==0&&je==Bt.coverEnd-Bt.coverStart?an=Jt.parentNode.getBoundingClientRect():an=Dc(te(Jt,Se,je).getClientRects(),pt),an.left||an.right||Se==0)break;je=Se,Se=Se-1,De="right"}ee&&Vt<11&&(an=ma(it.display.measure,an))}else{Se>0&&(De=pt="right");var fn;it.options.lineWrapping&&(fn=Jt.getClientRects()).length>1?an=fn[pt=="right"?fn.length-1:0]:an=Jt.getBoundingClientRect()}if(ee&&Vt<9&&!Se&&(!an||!an.left&&!an.right)){var Ti=Jt.parentNode.getClientRects()[0];Ti?an={left:Ti.left,right:Ti.left+Ph(it.display),top:Ti.top,bottom:Ti.bottom}:an=Qd}for(var bi=an.top-st.rect.top,Sr=an.bottom-st.rect.top,Dr=(bi+Sr)/2,Jr=st.view.measure.heights,vo=0;vo<Jr.length-1&&!(Dr<Jr[vo]);vo++);var Xo=vo?Jr[vo-1]:0,No=Jr[vo],as={left:(De=="right"?an.right:an.left)-st.rect.left,right:(De=="left"?an.left:an.right)-st.rect.left,top:Xo,bottom:No};return!an.left&&!an.right&&(as.bogus=!0),it.options.singleCursorHeightPerLine||(as.rtop=bi,as.rbottom=Sr),as}function ma(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ua(it))return st;var mt=screen.logicalXDPI/screen.deviceXDPI,pt=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*mt,right:st.right*mt,top:st.top*pt,bottom:st.bottom*pt}}function Uu(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st<it.rest.length;st++)it.measure.caches[st]={}}function Ya(it){it.display.externalMeasure=null,oe(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)Uu(it.display.view[st])}function rl(it){Ya(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Ha(){return qt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function da(){return qt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ja(it){var st=0;if(it.widgets)for(var mt=0;mt<it.widgets.length;++mt)it.widgets[mt].above&&(st+=$a(it.widgets[mt]));return st}function jl(it,st,mt,pt,Bt){if(!Bt){var Jt=Ja(st);mt.top+=Jt,mt.bottom+=Jt}if(pt=="line")return mt;pt||(pt="local");var Se=zs(st);if(pt=="local"?Se+=Yl(it.display):Se-=it.display.viewOffset,pt=="page"||pt=="window"){var je=it.display.lineSpace.getBoundingClientRect();Se+=je.top+(pt=="window"?0:da());var De=je.left+(pt=="window"?0:Ha());mt.left+=De,mt.right+=De}return mt.top+=Se,mt.bottom+=Se,mt}function fc(it,st,mt){if(mt=="div")return st;var pt=st.left,Bt=st.top;if(mt=="page")pt-=Ha(),Bt-=da();else if(mt=="local"||!mt){var Jt=it.display.sizer.getBoundingClientRect();pt+=Jt.left,Bt+=Jt.top}var Se=it.display.lineSpace.getBoundingClientRect();return{left:pt-Se.left,top:Bt-Se.top}}function dh(it,st,mt,pt,Bt){return pt||(pt=Cn(it.doc,st.line)),jl(it,pt,kh(it,pt,st.ch,Bt),mt)}function ll(it,st,mt,pt,Bt,Jt){pt=pt||Cn(it.doc,st.line),Bt||(Bt=il(it,pt));function Se(Sr,Dr){var Jr=Ch(it,Bt,Sr,Dr?"right":"left",Jt);return Dr?Jr.left=Jr.right:Jr.right=Jr.left,jl(it,pt,Jr,mt)}var je=Wn(pt,it.doc.direction),De=st.ch,an=st.sticky;if(De>=pt.text.length?(De=pt.text.length,an="before"):De<=0&&(De=0,an="after"),!je)return Se(an=="before"?De-1:De,an=="before");function si(Sr,Dr,Jr){var vo=je[Dr],Xo=vo.level==1;return Se(Jr?Sr-1:Sr,Xo!=Jr)}var fn=Me(je,De,an),Ti=Te,bi=si(De,fn,an=="before");return Ti!=null&&(bi.other=si(De,Ti,an!="before")),bi}function zd(it,st){var mt=0;st=or(it.doc,st),it.options.lineWrapping||(mt=Ph(it.display)*st.ch);var pt=Cn(it.doc,st.line),Bt=zs(pt)+Yl(it.display);return{left:mt,right:mt,top:Bt,bottom:Bt+pt.height}}function td(it,st,mt,pt,Bt){var Jt=kn(it,st,mt);return Jt.xRel=Bt,pt&&(Jt.outside=pt),Jt}function Bh(it,st,mt){var pt=it.doc;if(mt+=it.display.viewOffset,mt<0)return td(pt.first,0,null,-1,-1);var Bt=di(pt,mt),Jt=pt.first+pt.size-1;if(Bt>Jt)return td(pt.first+pt.size-1,Cn(pt,Jt).text.length,null,1,1);st<0&&(st=0);for(var Se=Cn(pt,Bt);;){var je=Vi(it,Se,Bt,st,mt),De=is(Se,je.ch+(je.xRel>0||je.outside>0?1:0));if(!De)return je;var an=De.find(1);if(an.line==Bt)return an;Se=Cn(pt,Bt=an.line)}}function Ro(it,st,mt,pt){pt-=Ja(st);var Bt=st.text.length,Jt=ye(function(Se){return Ch(it,mt,Se-1).bottom<=pt},Bt,0);return Bt=ye(function(Se){return Ch(it,mt,Se).top>pt},Jt,Bt),{begin:Jt,end:Bt}}function sA(it,st,mt,pt){mt||(mt=il(it,st));var Bt=jl(it,st,Ch(it,mt,pt),"line").top;return Ro(it,st,mt,Bt)}function En(it,st,mt,pt){return it.bottom<=mt?!1:it.top>mt?!0:(pt?it.left:it.right)>st}function Vi(it,st,mt,pt,Bt){Bt-=zs(st);var Jt=il(it,st),Se=Ja(st),je=0,De=st.text.length,an=!0,si=Wn(st,it.doc.direction);if(si){var fn=(it.options.lineWrapping?ic:aA)(it,st,mt,Jt,si,pt,Bt);an=fn.level!=1,je=an?fn.from:fn.to-1,De=an?fn.to:fn.from-1}var Ti=null,bi=null,Sr=ye(function(Ms){var Io=Ch(it,Jt,Ms);return Io.top+=Se,Io.bottom+=Se,En(Io,pt,Bt,!1)?(Io.top<=Bt&&Io.left<=pt&&(Ti=Ms,bi=Io),!0):!1},je,De),Dr,Jr,vo=!1;if(bi){var Xo=pt-bi.left<bi.right-pt,No=Xo==an;Sr=Ti+(No?0:1),Jr=No?"after":"before",Dr=Xo?bi.left:bi.right}else{!an&&(Sr==De||Sr==je)&&Sr++,Jr=Sr==0?"after":Sr==st.text.length?"before":Ch(it,Jt,Sr-(an?1:0)).bottom+Se<=Bt==an?"after":"before";var as=ll(it,kn(mt,Sr,Jr),"line",st,Jt);Dr=as.left,vo=Bt<as.top?-1:Bt>=as.bottom?1:0}return Sr=ae(st.text,Sr,1),td(mt,Sr,Jr,vo,pt-Dr)}function aA(it,st,mt,pt,Bt,Jt,Se){var je=ye(function(fn){var Ti=Bt[fn],bi=Ti.level!=1;return En(ll(it,kn(mt,bi?Ti.to:Ti.from,bi?"before":"after"),"line",st,pt),Jt,Se,!0)},0,Bt.length-1),De=Bt[je];if(je>0){var an=De.level!=1,si=ll(it,kn(mt,an?De.from:De.to,an?"after":"before"),"line",st,pt);En(si,Jt,Se,!0)&&si.top>Se&&(De=Bt[je-1])}return De}function ic(it,st,mt,pt,Bt,Jt,Se){var je=Ro(it,st,pt,Se),De=je.begin,an=je.end;/\s/.test(st.text.charAt(an-1))&&an--;for(var si=null,fn=null,Ti=0;Ti<Bt.length;Ti++){var bi=Bt[Ti];if(!(bi.from>=an||bi.to<=De)){var Sr=bi.level!=1,Dr=Ch(it,pt,Sr?Math.min(an,bi.to)-1:Math.max(De,bi.from)).right,Jr=Dr<Jt?Jt-Dr+1e9:Dr-Jt;(!si||fn>Jr)&&(si=bi,fn=Jr)}}return si||(si=Bt[Bt.length-1]),si.from<De&&(si={from:De,to:si.to,level:si.level}),si.to>an&&(si={from:si.from,to:an,level:si.level}),si}var Gu;function Wu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Gu==null){Gu=fe("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Gu.appendChild(document.createTextNode("x")),Gu.appendChild(fe("br"));Gu.appendChild(document.createTextNode("x"))}he(it.measure,Gu);var mt=Gu.offsetHeight/50;return mt>3&&(it.cachedTextHeight=mt),oe(it.measure),mt||1}function Ph(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=fe("span","xxxxxxxxxx"),mt=fe("pre",[st],"CodeMirror-line-like");he(it.measure,mt);var pt=st.getBoundingClientRect(),Bt=(pt.right-pt.left)/10;return Bt>2&&(it.cachedCharWidth=Bt),Bt||10}function zA(it){for(var st=it.display,mt={},pt={},Bt=st.gutters.clientLeft,Jt=st.gutters.firstChild,Se=0;Jt;Jt=Jt.nextSibling,++Se){var je=it.display.gutterSpecs[Se].className;mt[je]=Jt.offsetLeft+Jt.clientLeft+Bt,pt[je]=Jt.clientWidth}return{fixedPos:ed(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:mt,gutterWidth:pt,wrapperWidth:st.wrapper.clientWidth}}function ed(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function qa(it){var st=Wu(it.display),mt=it.options.lineWrapping,pt=mt&&Math.max(5,it.display.scroller.clientWidth/Ph(it.display)-3);return function(Bt){if(Ki(it.doc,Bt))return 0;var Jt=0;if(Bt.widgets)for(var Se=0;Se<Bt.widgets.length;Se++)Bt.widgets[Se].height&&(Jt+=Bt.widgets[Se].height);return mt?Jt+(Math.ceil(Bt.text.length/pt)||1)*st:Jt+st}}function ys(it){var st=it.doc,mt=qa(it);st.iter(function(pt){var Bt=mt(pt);Bt!=pt.height&&ei(pt,Bt)})}function oh(it,st,mt,pt){var Bt=it.display;if(!mt&&Ir(st).getAttribute("cm-not-content")=="true")return null;var Jt,Se,je=Bt.lineSpace.getBoundingClientRect();try{Jt=st.clientX-je.left,Se=st.clientY-je.top}catch(fn){return null}var De=Bh(it,Jt,Se),an;if(pt&&De.xRel>0&&(an=Cn(it.doc,De.line).text).length==De.ch){var si=ve(an,an.length,it.options.tabSize)-an.length;De=kn(De.line,Math.max(0,Math.round((Jt-bu(it.display).left)/Ph(it.display))-si))}return De}function Xu(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var mt=it.display.view,pt=0;pt<mt.length;pt++)if(st-=mt[pt].size,st<0)return pt}function El(it,st,mt,pt){st==null&&(st=it.doc.first),mt==null&&(mt=it.doc.first+it.doc.size),pt||(pt=0);var Bt=it.display;if(pt&&mt<Bt.viewTo&&(Bt.updateLineNumbers==null||Bt.updateLineNumbers>st)&&(Bt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=Bt.viewTo)Ci&&to(it.doc,st)<Bt.viewTo&&gu(it);else if(mt<=Bt.viewFrom)Ci&&Uo(it.doc,mt+pt)>Bt.viewFrom?gu(it):(Bt.viewFrom+=pt,Bt.viewTo+=pt);else if(st<=Bt.viewFrom&&mt>=Bt.viewTo)gu(it);else if(st<=Bt.viewFrom){var Jt=bh(it,mt,mt+pt,1);Jt?(Bt.view=Bt.view.slice(Jt.index),Bt.viewFrom=Jt.lineN,Bt.viewTo+=pt):gu(it)}else if(mt>=Bt.viewTo){var Se=bh(it,st,st,-1);Se?(Bt.view=Bt.view.slice(0,Se.index),Bt.viewTo=Se.lineN):gu(it)}else{var je=bh(it,st,st,-1),De=bh(it,mt,mt+pt,1);je&&De?(Bt.view=Bt.view.slice(0,je.index).concat(bs(it,je.lineN,De.lineN)).concat(Bt.view.slice(De.index)),Bt.viewTo+=pt):gu(it)}var an=Bt.externalMeasured;an&&(mt<an.lineN?an.lineN+=pt:st<an.lineN+an.size&&(Bt.externalMeasured=null))}function oa(it,st,mt){it.curOp.viewChanged=!0;var pt=it.display,Bt=it.display.externalMeasured;if(Bt&&st>=Bt.lineN&&st<Bt.lineN+Bt.size&&(pt.externalMeasured=null),!(st<pt.viewFrom||st>=pt.viewTo)){var Jt=pt.view[Xu(it,st)];if(Jt.node!=null){var Se=Jt.changes||(Jt.changes=[]);Ce(Se,mt)==-1&&Se.push(mt)}}}function gu(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function bh(it,st,mt,pt){var Bt=Xu(it,st),Jt,Se=it.display.view;if(!Ci||mt==it.doc.first+it.doc.size)return{index:Bt,lineN:mt};for(var je=it.display.viewFrom,De=0;De<Bt;De++)je+=Se[De].size;if(je!=st){if(pt>0){if(Bt==Se.length-1)return null;Jt=je+Se[Bt].size-st,Bt++}else Jt=je-st;st+=Jt,mt+=Jt}for(;to(it.doc,mt)!=mt;){if(Bt==(pt<0?0:Se.length-1))return null;mt+=pt*Se[Bt-(pt<0?1:0)].size,Bt+=pt}return{index:Bt,lineN:mt}}function wl(it,st,mt){var pt=it.display,Bt=pt.view;Bt.length==0||st>=pt.viewTo||mt<=pt.viewFrom?(pt.view=bs(it,st,mt),pt.viewFrom=st):(pt.viewFrom>st?pt.view=bs(it,st,pt.viewFrom).concat(pt.view):pt.viewFrom<st&&(pt.view=pt.view.slice(Xu(it,st))),pt.viewFrom=st,pt.viewTo<mt?pt.view=pt.view.concat(bs(it,pt.viewTo,mt)):pt.viewTo>mt&&(pt.view=pt.view.slice(0,Xu(it,mt)))),pt.viewTo=mt}function zh(it){for(var st=it.display.view,mt=0,pt=0;pt<st.length;pt++){var Bt=st[pt];!Bt.hidden&&(!Bt.node||Bt.changes)&&++mt}return mt}function Cu(it){it.display.input.showSelection(it.display.input.prepareSelection())}function wd(it,st){st===void 0&&(st=!0);for(var mt=it.doc,pt={},Bt=pt.cursors=document.createDocumentFragment(),Jt=pt.selection=document.createDocumentFragment(),Se=0;Se<mt.sel.ranges.length;Se++)if(!(!st&&Se==mt.sel.primIndex)){var je=mt.sel.ranges[Se];if(!(je.from().line>=it.display.viewTo||je.to().line<it.display.viewFrom)){var De=je.empty();(De||it.options.showCursorWhenSelecting)&&Ea(it,je.head,Bt),De||Fa(it,je,Jt)}}return pt}function Ea(it,st,mt){var pt=ll(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),Bt=mt.appendChild(fe("div","\xA0","CodeMirror-cursor"));if(Bt.style.left=pt.left+"px",Bt.style.top=pt.top+"px",Bt.style.height=Math.max(0,pt.bottom-pt.top)*it.options.cursorHeight+"px",pt.other){var Jt=mt.appendChild(fe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Jt.style.display="",Jt.style.left=pt.other.left+"px",Jt.style.top=pt.other.top+"px",Jt.style.height=(pt.other.bottom-pt.other.top)*.85+"px"}}function sh(it,st){return it.top-st.top||it.left-st.left}function Fa(it,st,mt){var pt=it.display,Bt=it.doc,Jt=document.createDocumentFragment(),Se=bu(it.display),je=Se.left,De=Math.max(pt.sizerWidth,nu(it)-pt.sizer.offsetLeft)-Se.right,an=Bt.direction=="ltr";function si(No,as,Ms,Io){as<0&&(as=0),as=Math.round(as),Io=Math.round(Io),Jt.appendChild(fe("div",null,"CodeMirror-selected","position: absolute; left: "+No+`px;
top: `+as+"px; width: "+(Ms==null?De-No:Ms)+`px;
height: `+(Io-as)+"px"))}function fn(No,as,Ms){var Io=Cn(Bt,No),na=Io.text.length,Cl,ku;function ul(wa,gl){return dh(it,kn(No,wa),"div",Io,gl)}function yu(wa,gl,pl){var bo=sA(it,Io,null,wa),xa=gl=="ltr"==(pl=="after")?"left":"right",Nl=pl=="after"?bo.begin:bo.end-(/\s/.test(Io.text.charAt(bo.end-1))?2:1);return ul(Nl,xa)[xa]}var La=Wn(Io,Bt.direction);return Oe(La,as||0,Ms==null?na:Ms,function(wa,gl,pl,bo){var xa=pl=="ltr",Nl=ul(wa,xa?"left":"right"),Il=ul(gl-1,xa?"right":"left"),uh=as==null&&wa==0,Ta=Ms==null&&gl==na,_s=bo==0,wu=!La||bo==La.length-1;if(Il.top-Nl.top<=3){var du=(an?uh:Ta)&&_s,ad=(an?Ta:uh)&&wu,uc=du?je:(xa?Nl:Il).left,hh=ad?De:(xa?Il:Nl).right;si(uc,Nl.top,hh-uc,Nl.bottom)}else{var Sh,kl,eh,Wc;xa?(Sh=an&&uh&&_s?je:Nl.left,kl=an?De:yu(wa,pl,"before"),eh=an?je:yu(gl,pl,"after"),Wc=an&&Ta&&wu?De:Il.right):(Sh=an?yu(wa,pl,"before"):je,kl=!an&&uh&&_s?De:Nl.right,eh=!an&&Ta&&wu?je:Il.left,Wc=an?yu(gl,pl,"after"):De),si(Sh,Nl.top,kl-Sh,Nl.bottom),Nl.bottom<Il.top&&si(je,Nl.bottom,null,Il.top),si(eh,Il.top,Wc-eh,Il.bottom)}(!Cl||sh(Nl,Cl)<0)&&(Cl=Nl),sh(Il,Cl)<0&&(Cl=Il),(!ku||sh(Nl,ku)<0)&&(ku=Nl),sh(Il,ku)<0&&(ku=Il)}),{start:Cl,end:ku}}var Ti=st.from(),bi=st.to();if(Ti.line==bi.line)fn(Ti.line,Ti.ch,bi.ch);else{var Sr=Cn(Bt,Ti.line),Dr=Cn(Bt,bi.line),Jr=wo(Sr)==wo(Dr),vo=fn(Ti.line,Ti.ch,Jr?Sr.text.length+1:null).end,Xo=fn(bi.line,Jr?0:null,bi.ch).start;Jr&&(vo.top<Xo.top-2?(si(vo.right,vo.top,null,vo.bottom),si(je,Xo.top,Xo.left,Xo.bottom)):si(vo.right,vo.top,Xo.left-vo.right,vo.bottom)),vo.bottom<Xo.top&&si(je,vo.bottom,null,Xo.top)}mt.appendChild(Jt)}function dl(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var mt=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||wt(it),st.cursorDiv.style.visibility=(mt=!mt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Ql(it){it.state.focused||(it.display.input.focus(),Et(it))}function Jl(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,wt(it))},100)}function Et(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(On(it,"focus",it,st),it.state.focused=!0,Ke(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Mt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),dl(it))}function wt(it,st){it.state.delayingBlurEvent||(it.state.focused&&(On(it,"blur",it,st),it.state.focused=!1,_t(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Pt(it){for(var st=it.display,mt=st.lineDiv.offsetTop,pt=0;pt<st.view.length;pt++){var Bt=st.view[pt],Jt=it.options.lineWrapping,Se=void 0,je=0;if(!Bt.hidden){if(ee&&Vt<8){var De=Bt.node.offsetTop+Bt.node.offsetHeight;Se=De-mt,mt=De}else{var an=Bt.node.getBoundingClientRect();Se=an.bottom-an.top,!Jt&&Bt.text.firstChild&&(je=Bt.text.firstChild.getBoundingClientRect().right-an.left-1)}var si=Bt.line.height-Se;if((si>.005||si<-.005)&&(ei(Bt.line,Se),Qt(Bt.line),Bt.rest))for(var fn=0;fn<Bt.rest.length;fn++)Qt(Bt.rest[fn]);if(je>it.display.sizerWidth){var Ti=Math.ceil(je/Ph(it.display));Ti>it.display.maxLineLength&&(it.display.maxLineLength=Ti,it.display.maxLine=Bt.line,it.display.maxLineChanged=!0)}}}}function Qt(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var mt=it.widgets[st],pt=mt.node.parentNode;pt&&(mt.height=pt.offsetHeight)}}function ie(it,st,mt){var pt=mt&&mt.top!=null?Math.max(0,mt.top):it.scroller.scrollTop;pt=Math.floor(pt-Yl(it));var Bt=mt&&mt.bottom!=null?mt.bottom:pt+it.wrapper.clientHeight,Jt=di(st,pt),Se=di(st,Bt);if(mt&&mt.ensure){var je=mt.ensure.from.line,De=mt.ensure.to.line;je<Jt?(Jt=je,Se=di(st,zs(Cn(st,je))+it.wrapper.clientHeight)):Math.min(De,st.lastLine())>=Se&&(Jt=di(st,zs(Cn(st,De))-it.wrapper.clientHeight),Se=De)}return{from:Jt,to:Math.max(Se,Jt+1)}}function Yt(it,st){if(!Di(it,"scrollCursorIntoView")){var mt=it.display,pt=mt.sizer.getBoundingClientRect(),Bt=null;if(st.top+pt.top<0?Bt=!0:st.bottom+pt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Bt=!1),Bt!=null&&!Xt){var Jt=fe("div","\u200B",null,`position: absolute;
top: `+(st.top-mt.viewOffset-Yl(it.display))+`px;
height: `+(st.bottom-st.top+fu(it)+mt.barHeight)+`px;
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(Jt),Jt.scrollIntoView(Bt),it.display.lineSpace.removeChild(Jt)}}}function ge(it,st,mt,pt){pt==null&&(pt=0);var Bt;!it.options.lineWrapping&&st==mt&&(st=st.ch?kn(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,mt=st.sticky=="before"?kn(st.line,st.ch+1,"before"):st);for(var Jt=0;Jt<5;Jt++){var Se=!1,je=ll(it,st),De=!mt||mt==st?je:ll(it,mt);Bt={left:Math.min(je.left,De.left),top:Math.min(je.top,De.top)-pt,right:Math.max(je.left,De.left),bottom:Math.max(je.bottom,De.bottom)+pt};var an=Pe(it,Bt),si=it.doc.scrollTop,fn=it.doc.scrollLeft;if(an.scrollTop!=null&&(ti(it,an.scrollTop),Math.abs(it.doc.scrollTop-si)>1&&(Se=!0)),an.scrollLeft!=null&&(Rn(it,an.scrollLeft),Math.abs(it.doc.scrollLeft-fn)>1&&(Se=!0)),!Se)break}return Bt}function we(it,st){var mt=Pe(it,st);mt.scrollTop!=null&&ti(it,mt.scrollTop),mt.scrollLeft!=null&&Rn(it,mt.scrollLeft)}function Pe(it,st){var mt=it.display,pt=Wu(it.display);st.top<0&&(st.top=0);var Bt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:mt.scroller.scrollTop,Jt=zo(it),Se={};st.bottom-st.top>Jt&&(st.bottom=st.top+Jt);var je=it.doc.height+Pu(mt),De=st.top<pt,an=st.bottom>je-pt;if(st.top<Bt)Se.scrollTop=De?0:st.top;else if(st.bottom>Bt+Jt){var si=Math.min(st.top,(an?je:st.bottom)-Jt);si!=Bt&&(Se.scrollTop=si)}var fn=it.options.fixedGutter?0:mt.gutters.offsetWidth,Ti=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:mt.scroller.scrollLeft-fn,bi=nu(it)-mt.gutters.offsetWidth,Sr=st.right-st.left>bi;return Sr&&(st.right=st.left+bi),st.left<10?Se.scrollLeft=0:st.left<Ti?Se.scrollLeft=Math.max(0,st.left+fn-(Sr?0:10)):st.right>bi+Ti-3&&(Se.scrollLeft=st.right+(Sr?0:10)-bi),Se}function Xe(it,st){st!=null&&(ze(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function dn(it){ze(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function An(it,st,mt){(st!=null||mt!=null)&&ze(it),st!=null&&(it.curOp.scrollLeft=st),mt!=null&&(it.curOp.scrollTop=mt)}function Pn(it,st){ze(it),it.curOp.scrollToPos=st}function ze(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var mt=zd(it,st.from),pt=zd(it,st.to);mi(it,mt,pt,st.margin)}}function mi(it,st,mt,pt){var Bt=Pe(it,{left:Math.min(st.left,mt.left),top:Math.min(st.top,mt.top)-pt,right:Math.max(st.right,mt.right),bottom:Math.max(st.bottom,mt.bottom)+pt});An(it,Bt.scrollLeft,Bt.scrollTop)}function ti(it,st){Math.abs(it.doc.scrollTop-st)<2||(Lt||Ji(it,{top:st}),vi(it,st,!0),Lt&&Ji(it),Qe(it,100))}function vi(it,st,mt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!mt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function Rn(it,st,mt,pt){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((mt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!pt)&&(it.doc.scrollLeft=st,io(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Ai(it){var st=it.display,mt=st.gutters.offsetWidth,pt=Math.round(it.doc.height+Pu(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?mt:0,docHeight:pt,scrollHeight:pt+fu(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:mt}}var Qi=function(it,st,mt){this.cm=mt;var pt=this.vert=fe("div",[fe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Bt=this.horiz=fe("div",[fe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pt.tabIndex=Bt.tabIndex=-1,it(pt),it(Bt),ln(pt,"scroll",function(){pt.clientHeight&&st(pt.scrollTop,"vertical")}),ln(Bt,"scroll",function(){Bt.clientWidth&&st(Bt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ee&&Vt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qi.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,mt=it.scrollHeight>it.clientHeight+1,pt=it.nativeBarWidth;if(mt){this.vert.style.display="block",this.vert.style.bottom=st?pt+"px":"0";var Bt=it.viewHeight-(st?pt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+Bt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=mt?pt+"px":"0",this.horiz.style.left=it.barLeft+"px";var Jt=it.viewWidth-it.barLeft-(mt?pt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+Jt)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(pt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:mt?pt:0,bottom:st?pt:0}},Qi.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qi.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qi.prototype.zeroWidthHack=function(){var it=lt&&!Gt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ne,this.disableVert=new ne},Qi.prototype.enableZeroWidthBar=function(it,st,mt){it.style.pointerEvents="auto";function pt(){var Bt=it.getBoundingClientRect(),Jt=mt=="vert"?document.elementFromPoint(Bt.right-1,(Bt.top+Bt.bottom)/2):document.elementFromPoint((Bt.right+Bt.left)/2,Bt.bottom-1);Jt!=it?it.style.pointerEvents="none":st.set(1e3,pt)}st.set(1e3,pt)},Qi.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var rr=function(){};rr.prototype.update=function(){return{bottom:0,right:0}},rr.prototype.setScrollLeft=function(){},rr.prototype.setScrollTop=function(){},rr.prototype.clear=function(){};function Fr(it,st){st||(st=Ai(it));var mt=it.display.barWidth,pt=it.display.barHeight;lo(it,st);for(var Bt=0;Bt<4&&mt!=it.display.barWidth||pt!=it.display.barHeight;Bt++)mt!=it.display.barWidth&&it.options.lineWrapping&&Pt(it),lo(it,Ai(it)),mt=it.display.barWidth,pt=it.display.barHeight}function lo(it,st){var mt=it.display,pt=mt.scrollbars.update(st);mt.sizer.style.paddingRight=(mt.barWidth=pt.right)+"px",mt.sizer.style.paddingBottom=(mt.barHeight=pt.bottom)+"px",mt.heightForcer.style.borderBottom=pt.bottom+"px solid transparent",pt.right&&pt.bottom?(mt.scrollbarFiller.style.display="block",mt.scrollbarFiller.style.height=pt.bottom+"px",mt.scrollbarFiller.style.width=pt.right+"px"):mt.scrollbarFiller.style.display="",pt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(mt.gutterFiller.style.display="block",mt.gutterFiller.style.height=pt.bottom+"px",mt.gutterFiller.style.width=st.gutterWidth+"px"):mt.gutterFiller.style.display=""}var mr={native:Qi,null:rr};function Oi(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&_t(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new mr[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),ln(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,mt){mt=="horizontal"?Rn(it,st):ti(it,st)},it),it.display.scrollbars.addClass&&Ke(it.display.wrapper,it.display.scrollbars.addClass)}var Cr=0;function Or(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr},Ml(it.curOp)}function Jn(it){var st=it.curOp;st&&Qs(st,function(mt){for(var pt=0;pt<mt.ops.length;pt++)mt.ops[pt].cm.curOp=null;oi(mt)})}function oi(it){for(var st=it.ops,mt=0;mt<st.length;mt++)pe(st[mt]);for(var pt=0;pt<st.length;pt++)me(st[pt]);for(var Bt=0;Bt<st.length;Bt++)Ze(st[Bt]);for(var Jt=0;Jt<st.length;Jt++)Ye(st[Jt]);for(var Se=0;Se<st.length;Se++)mn(st[Se])}function pe(it){var st=it.cm,mt=st.display;Qn(st),it.updateMaxLine&&qs(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<mt.viewFrom||it.scrollToPos.to.line>=mt.viewTo)||mt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new pn(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function me(it){it.updatedDisplay=it.mustUpdate&&Fi(it.cm,it.update)}function Ze(it){var st=it.cm,mt=st.display;it.updatedDisplay&&Pt(st),it.barMeasure=Ai(st),mt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=kh(st,mt.maxLine,mt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(mt.scroller.clientWidth,mt.sizer.offsetLeft+it.adjustWidthTo+fu(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,mt.sizer.offsetLeft+it.adjustWidthTo-nu(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=mt.input.prepareSelection())}function Ye(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&Rn(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var mt=it.focus&&it.focus==Wt();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,mt),(it.updatedDisplay||it.startHeight!=st.doc.height)&&Fr(st,it.barMeasure),it.updatedDisplay&&Er(st,it.barMeasure),it.selectionChanged&&dl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),mt&&Ql(it.cm)}function mn(it){var st=it.cm,mt=st.display,pt=st.doc;if(it.updatedDisplay&&ui(st,it.update),mt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(mt.wheelStartX=mt.wheelStartY=null),it.scrollTop!=null&&vi(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Rn(st,it.scrollLeft,!0,!0),it.scrollToPos){var Bt=ge(st,or(pt,it.scrollToPos.from),or(pt,it.scrollToPos.to),it.scrollToPos.margin);Yt(st,Bt)}var Jt=it.maybeHiddenMarkers,Se=it.maybeUnhiddenMarkers;if(Jt)for(var je=0;je<Jt.length;++je)Jt[je].lines.length||On(Jt[je],"hide");if(Se)for(var De=0;De<Se.length;++De)Se[De].lines.length&&On(Se[De],"unhide");mt.wrapper.offsetHeight&&(pt.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&On(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function en(it,st){if(it.curOp)return st();Or(it);try{return st()}finally{Jn(it)}}function Tn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);Or(it);try{return st.apply(it,arguments)}finally{Jn(it)}}}function Un(it){return function(){if(this.curOp)return it.apply(this,arguments);Or(this);try{return it.apply(this,arguments)}finally{Jn(this)}}}function qn(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);Or(st);try{return it.apply(this,arguments)}finally{Jn(st)}}}function Qe(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,Ge(un,it))}function un(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var mt=+new Date+it.options.workTime,pt=_o(it,st.highlightFrontier),Bt=[];st.iter(pt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(Jt){if(pt.line>=it.display.viewFrom){var Se=Jt.styles,je=Jt.text.length>it.options.maxHighlightLength?pi(st.mode,pt.state):null,De=yo(it,Jt,pt,!0);je&&(pt.state=je),Jt.styles=De.styles;var an=Jt.styleClasses,si=De.classes;si?Jt.styleClasses=si:an&&(Jt.styleClasses=null);for(var fn=!Se||Se.length!=Jt.styles.length||an!=si&&(!an||!si||an.bgClass!=si.bgClass||an.textClass!=si.textClass),Ti=0;!fn&&Ti<Se.length;++Ti)fn=Se[Ti]!=Jt.styles[Ti];fn&&Bt.push(pt.line),Jt.stateAfter=pt.save(),pt.nextLine()}else Jt.text.length<=it.options.maxHighlightLength&&Dn(it,Jt.text,pt),Jt.stateAfter=pt.line%5==0?pt.save():null,pt.nextLine();if(+new Date>mt)return Qe(it,it.options.workDelay),!0}),st.highlightFrontier=pt.line,st.modeFrontier=Math.max(st.modeFrontier,pt.line),Bt.length&&en(it,function(){for(var Jt=0;Jt<Bt.length;Jt++)oa(it,Bt[Jt],"text")})}}var pn=function(it,st,mt){var pt=it.display;this.viewport=st,this.visible=ie(pt,it.doc,st),this.editorIsHidden=!pt.wrapper.offsetWidth,this.wrapperHeight=pt.wrapper.clientHeight,this.wrapperWidth=pt.wrapper.clientWidth,this.oldDisplayWidth=nu(it),this.force=mt,this.dims=zA(it),this.events=[]};pn.prototype.signal=function(it,st){Xi(it,st)&&this.events.push(arguments)},pn.prototype.finish=function(){for(var it=0;it<this.events.length;it++)On.apply(null,this.events[it])};function Qn(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=fu(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=fu(it)+"px",st.scrollbarsClipped=!0)}function $n(it){if(it.hasFocus())return null;var st=Wt();if(!st||!He(it.display.lineDiv,st))return null;var mt={activeElt:st};if(window.getSelection){var pt=window.getSelection();pt.anchorNode&&pt.extend&&He(it.display.lineDiv,pt.anchorNode)&&(mt.anchorNode=pt.anchorNode,mt.anchorOffset=pt.anchorOffset,mt.focusNode=pt.focusNode,mt.focusOffset=pt.focusOffset)}return mt}function ri(it){if(!(!it||!it.activeElt||it.activeElt==Wt())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&He(document.body,it.anchorNode)&&He(document.body,it.focusNode))){var st=window.getSelection(),mt=document.createRange();mt.setEnd(it.anchorNode,it.anchorOffset),mt.collapse(!1),st.removeAllRanges(),st.addRange(mt),st.extend(it.focusNode,it.focusOffset)}}function Fi(it,st){var mt=it.display,pt=it.doc;if(st.editorIsHidden)return gu(it),!1;if(!st.force&&st.visible.from>=mt.viewFrom&&st.visible.to<=mt.viewTo&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo)&&mt.renderedView==mt.view&&zh(it)==0)return!1;ki(it)&&(gu(it),st.dims=zA(it));var Bt=pt.first+pt.size,Jt=Math.max(st.visible.from-it.options.viewportMargin,pt.first),Se=Math.min(Bt,st.visible.to+it.options.viewportMargin);mt.viewFrom<Jt&&Jt-mt.viewFrom<20&&(Jt=Math.max(pt.first,mt.viewFrom)),mt.viewTo>Se&&mt.viewTo-Se<20&&(Se=Math.min(Bt,mt.viewTo)),Ci&&(Jt=to(it.doc,Jt),Se=Uo(it.doc,Se));var je=Jt!=mt.viewFrom||Se!=mt.viewTo||mt.lastWrapHeight!=st.wrapperHeight||mt.lastWrapWidth!=st.wrapperWidth;wl(it,Jt,Se),mt.viewOffset=zs(Cn(it.doc,mt.viewFrom)),it.display.mover.style.top=mt.viewOffset+"px";var De=zh(it);if(!je&&De==0&&!st.force&&mt.renderedView==mt.view&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo))return!1;var an=$n(it);return De>4&&(mt.lineDiv.style.display="none"),Zi(it,mt.updateLineNumbers,st.dims),De>4&&(mt.lineDiv.style.display=""),mt.renderedView=mt.view,ri(an),oe(mt.cursorDiv),oe(mt.selectionDiv),mt.gutters.style.height=mt.sizer.style.minHeight=0,je&&(mt.lastWrapHeight=st.wrapperHeight,mt.lastWrapWidth=st.wrapperWidth,Qe(it,400)),mt.updateLineNumbers=null,!0}function ui(it,st){for(var mt=st.viewport,pt=!0;;pt=!1){if(!pt||!it.options.lineWrapping||st.oldDisplayWidth==nu(it)){if(mt&&mt.top!=null&&(mt={top:Math.min(it.doc.height+Pu(it.display)-zo(it),mt.top)}),st.visible=ie(it.display,it.doc,mt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else pt&&(st.visible=ie(it.display,it.doc,mt));if(!Fi(it,st))break;Pt(it);var Bt=Ai(it);Cu(it),Fr(it,Bt),Er(it,Bt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Ji(it,st){var mt=new pn(it,st);if(Fi(it,mt)){Pt(it),ui(it,mt);var pt=Ai(it);Cu(it),Fr(it,pt),Er(it,pt),mt.finish()}}function Zi(it,st,mt){var pt=it.display,Bt=it.options.lineNumbers,Jt=pt.lineDiv,Se=Jt.firstChild;function je(Sr){var Dr=Sr.nextSibling;return Mt&&lt&&it.display.currentWheelTarget==Sr?Sr.style.display="none":Sr.parentNode.removeChild(Sr),Dr}for(var De=pt.view,an=pt.viewFrom,si=0;si<De.length;si++){var fn=De[si];if(!fn.hidden)if(!fn.node||fn.node.parentNode!=Jt){var Ti=au(it,fn,an,mt);Jt.insertBefore(Ti,Se)}else{for(;Se!=fn.node;)Se=je(Se);var bi=Bt&&st!=null&&st<=an&&fn.lineNumber;fn.changes&&(Ce(fn.changes,"gutter")>-1&&(bi=!1),Ds(it,fn,an,mt)),bi&&(oe(fn.lineNumber),fn.lineNumber.appendChild(document.createTextNode($i(it.options,an)))),Se=fn.node.nextSibling}an+=fn.size}for(;Se;)Se=je(Se)}function Ar(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Er(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+fu(it)+"px"}function io(it){var st=it.display,mt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var pt=ed(st)-st.scroller.scrollLeft+it.doc.scrollLeft,Bt=st.gutters.offsetWidth,Jt=pt+"px",Se=0;Se<mt.length;Se++)if(!mt[Se].hidden){it.options.fixedGutter&&(mt[Se].gutter&&(mt[Se].gutter.style.left=Jt),mt[Se].gutterBackground&&(mt[Se].gutterBackground.style.left=Jt));var je=mt[Se].alignable;if(je)for(var De=0;De<je.length;De++)je[De].style.left=Jt}it.options.fixedGutter&&(st.gutters.style.left=pt+Bt+"px")}}function ki(it){if(!it.options.lineNumbers)return!1;var st=it.doc,mt=$i(it.options,st.first+st.size-1),pt=it.display;if(mt.length!=pt.lineNumChars){var Bt=pt.measure.appendChild(fe("div",[fe("div",mt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Jt=Bt.firstChild.offsetWidth,Se=Bt.offsetWidth-Jt;return pt.lineGutter.style.width="",pt.lineNumInnerWidth=Math.max(Jt,pt.lineGutter.offsetWidth-Se)+1,pt.lineNumWidth=pt.lineNumInnerWidth+Se,pt.lineNumChars=pt.lineNumInnerWidth?mt.length:-1,pt.lineGutter.style.width=pt.lineNumWidth+"px",Ar(it.display),!0}return!1}function Yn(it,st){for(var mt=[],pt=!1,Bt=0;Bt<it.length;Bt++){var Jt=it[Bt],Se=null;if(typeof Jt!="string"&&(Se=Jt.style,Jt=Jt.className),Jt=="CodeMirror-linenumbers")if(st)pt=!0;else continue;mt.push({className:Jt,style:Se})}return st&&!pt&&mt.push({className:"CodeMirror-linenumbers",style:null}),mt}function Bo(it){var st=it.gutters,mt=it.gutterSpecs;oe(st),it.lineGutter=null;for(var pt=0;pt<mt.length;++pt){var Bt=mt[pt],Jt=Bt.className,Se=Bt.style,je=st.appendChild(fe("div",null,"CodeMirror-gutter "+Jt));Se&&(je.style.cssText=Se),Jt=="CodeMirror-linenumbers"&&(it.lineGutter=je,je.style.width=(it.lineNumWidth||1)+"px")}st.style.display=mt.length?"":"none",Ar(it)}function Pr(it){Bo(it.display),El(it),io(it)}function sr(it,st,mt,pt){var Bt=this;this.input=mt,Bt.scrollbarFiller=fe("div",null,"CodeMirror-scrollbar-filler"),Bt.scrollbarFiller.setAttribute("cm-not-content","true"),Bt.gutterFiller=fe("div",null,"CodeMirror-gutter-filler"),Bt.gutterFiller.setAttribute("cm-not-content","true"),Bt.lineDiv=Le("div",null,"CodeMirror-code"),Bt.selectionDiv=fe("div",null,null,"position: relative; z-index: 1"),Bt.cursorDiv=fe("div",null,"CodeMirror-cursors"),Bt.measure=fe("div",null,"CodeMirror-measure"),Bt.lineMeasure=fe("div",null,"CodeMirror-measure"),Bt.lineSpace=Le("div",[Bt.measure,Bt.lineMeasure,Bt.selectionDiv,Bt.cursorDiv,Bt.lineDiv],null,"position: relative; outline: none");var Jt=Le("div",[Bt.lineSpace],"CodeMirror-lines");Bt.mover=fe("div",[Jt],null,"position: relative"),Bt.sizer=fe("div",[Bt.mover],"CodeMirror-sizer"),Bt.sizerWidth=null,Bt.heightForcer=fe("div",null,null,"position: absolute; height: "+bn+"px; width: 1px;"),Bt.gutters=fe("div",null,"CodeMirror-gutters"),Bt.lineGutter=null,Bt.scroller=fe("div",[Bt.sizer,Bt.heightForcer,Bt.gutters],"CodeMirror-scroll"),Bt.scroller.setAttribute("tabIndex","-1"),Bt.wrapper=fe("div",[Bt.scrollbarFiller,Bt.gutterFiller,Bt.scroller],"CodeMirror"),ee&&Vt<8&&(Bt.gutters.style.zIndex=-1,Bt.scroller.style.paddingRight=0),!Mt&&!(Lt&&tt)&&(Bt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(Bt.wrapper):it(Bt.wrapper)),Bt.viewFrom=Bt.viewTo=st.first,Bt.reportedViewFrom=Bt.reportedViewTo=st.first,Bt.view=[],Bt.renderedView=null,Bt.externalMeasured=null,Bt.viewOffset=0,Bt.lastWrapHeight=Bt.lastWrapWidth=0,Bt.updateLineNumbers=null,Bt.nativeBarWidth=Bt.barHeight=Bt.barWidth=0,Bt.scrollbarsClipped=!1,Bt.lineNumWidth=Bt.lineNumInnerWidth=Bt.lineNumChars=null,Bt.alignWidgets=!1,Bt.cachedCharWidth=Bt.cachedTextHeight=Bt.cachedPaddingH=null,Bt.maxLine=null,Bt.maxLineLength=0,Bt.maxLineChanged=!1,Bt.wheelDX=Bt.wheelDY=Bt.wheelStartX=Bt.wheelStartY=null,Bt.shift=!1,Bt.selForContextMenu=null,Bt.activeTouch=null,Bt.gutterSpecs=Yn(pt.gutters,pt.lineNumbers),Bo(Bt),mt.init(Bt)}var ar=0,er=null;ee?er=-.53:Lt?er=15:qt?er=-.7:se&&(er=-1/3);function vr(it){var st=it.wheelDeltaX,mt=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),mt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?mt=it.detail:mt==null&&(mt=it.wheelDelta),{x:st,y:mt}}function Vr(it){var st=vr(it);return st.x*=er,st.y*=er,st}function ho(it,st){var mt=vr(st),pt=mt.x,Bt=mt.y,Jt=it.display,Se=Jt.scroller,je=Se.scrollWidth>Se.clientWidth,De=Se.scrollHeight>Se.clientHeight;if(pt&&je||Bt&&De){if(Bt&&lt&&Mt){t:for(var an=st.target,si=Jt.view;an!=Se;an=an.parentNode)for(var fn=0;fn<si.length;fn++)if(si[fn].node==an){it.display.currentWheelTarget=an;break t}}if(pt&&!Lt&&!bt&&er!=null){Bt&&De&&ti(it,Math.max(0,Se.scrollTop+Bt*er)),Rn(it,Math.max(0,Se.scrollLeft+pt*er)),(!Bt||Bt&&De)&&br(st),Jt.wheelStartX=null;return}if(Bt&&er!=null){var Ti=Bt*er,bi=it.doc.scrollTop,Sr=bi+Jt.wrapper.clientHeight;Ti<0?bi=Math.max(0,bi+Ti-50):Sr=Math.min(it.doc.height,Sr+Ti+50),Ji(it,{top:bi,bottom:Sr})}ar<20&&(Jt.wheelStartX==null?(Jt.wheelStartX=Se.scrollLeft,Jt.wheelStartY=Se.scrollTop,Jt.wheelDX=pt,Jt.wheelDY=Bt,setTimeout(function(){if(Jt.wheelStartX!=null){var Dr=Se.scrollLeft-Jt.wheelStartX,Jr=Se.scrollTop-Jt.wheelStartY,vo=Jr&&Jt.wheelDY&&Jr/Jt.wheelDY||Dr&&Jt.wheelDX&&Dr/Jt.wheelDX;Jt.wheelStartX=Jt.wheelStartY=null,vo&&(er=(er*ar+vo)/(ar+1),++ar)}},200)):(Jt.wheelDX+=pt,Jt.wheelDY+=Bt))}}var po=function(it,st){this.ranges=it,this.primIndex=st};po.prototype.primary=function(){return this.ranges[this.primIndex]},po.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var st=0;st<this.ranges.length;st++){var mt=this.ranges[st],pt=it.ranges[st];if(!Br(mt.anchor,pt.anchor)||!Br(mt.head,pt.head))return!1}return!0},po.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new _r(dr(this.ranges[st].anchor),dr(this.ranges[st].head));return new po(it,this.primIndex)},po.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},po.prototype.contains=function(it,st){st||(st=it);for(var mt=0;mt<this.ranges.length;mt++){var pt=this.ranges[mt];if(yi(st,pt.from())>=0&&yi(it,pt.to())<=0)return mt}return-1};var _r=function(it,st){this.anchor=it,this.head=st};_r.prototype.from=function(){return cr(this.anchor,this.head)},_r.prototype.to=function(){return zr(this.anchor,this.head)},_r.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Do(it,st,mt){var pt=it&&it.options.selectionsMayTouch,Bt=st[mt];st.sort(function(Ti,bi){return yi(Ti.from(),bi.from())}),mt=Ce(st,Bt);for(var Jt=1;Jt<st.length;Jt++){var Se=st[Jt],je=st[Jt-1],De=yi(je.to(),Se.from());if(pt&&!Se.empty()?De>0:De>=0){var an=cr(je.from(),Se.from()),si=zr(je.to(),Se.to()),fn=je.empty()?Se.from()==Se.head:je.from()==je.head;Jt<=mt&&--mt,st.splice(--Jt,2,new _r(fn?si:an,fn?an:si))}}return new po(st,mt)}function us(it,st){return new po([new _r(it,st||it)],0)}function Yo(it){return it.text?kn(it.from.line+it.text.length-1,tn(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function ns(it,st){if(yi(it,st.from)<0)return it;if(yi(it,st.to)<=0)return Yo(st);var mt=it.line+st.text.length-(st.to.line-st.from.line)-1,pt=it.ch;return it.line==st.to.line&&(pt+=Yo(st).ch-st.to.ch),kn(mt,pt)}function So(it,st){for(var mt=[],pt=0;pt<it.sel.ranges.length;pt++){var Bt=it.sel.ranges[pt];mt.push(new _r(ns(Bt.anchor,st),ns(Bt.head,st)))}return Do(it.cm,mt,it.sel.primIndex)}function va(it,st,mt){return it.line==st.line?kn(mt.line,it.ch-st.ch+mt.ch):kn(mt.line+(it.line-st.line),it.ch)}function Vo(it,st,mt){for(var pt=[],Bt=kn(it.first,0),Jt=Bt,Se=0;Se<st.length;Se++){var je=st[Se],De=va(je.from,Bt,Jt),an=va(Yo(je),Bt,Jt);if(Bt=je.to,Jt=an,mt=="around"){var si=it.sel.ranges[Se],fn=yi(si.head,si.anchor)<0;pt[Se]=new _r(fn?an:De,fn?De:an)}else pt[Se]=new _r(De,De)}return new po(pt,it.sel.primIndex)}function rs(it){it.doc.mode=Hn(it.options,it.doc.modeOption),Cs(it)}function Cs(it){it.doc.iter(function(st){st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,Qe(it,100),it.state.modeGen++,it.curOp&&El(it)}function ta(it,st){return st.from.ch==0&&st.to.ch==0&&tn(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Da(it,st,mt,pt){function Bt(Xo){return mt?mt[Xo]:null}function Jt(Xo,No,as){Zs(Xo,No,as,pt),Gr(Xo,"change",Xo,st)}function Se(Xo,No){for(var as=[],Ms=Xo;Ms<No;++Ms)as.push(new Qo(an[Ms],Bt(Ms),pt));return as}var je=st.from,De=st.to,an=st.text,si=Cn(it,je.line),fn=Cn(it,De.line),Ti=tn(an),bi=Bt(an.length-1),Sr=De.line-je.line;if(st.full)it.insert(0,Se(0,an.length)),it.remove(an.length,it.size-an.length);else if(ta(it,st)){var Dr=Se(0,an.length-1);Jt(fn,fn.text,bi),Sr&&it.remove(je.line,Sr),Dr.length&&it.insert(je.line,Dr)}else if(si==fn)if(an.length==1)Jt(si,si.text.slice(0,je.ch)+Ti+si.text.slice(De.ch),bi);else{var Jr=Se(1,an.length-1);Jr.push(new Qo(Ti+si.text.slice(De.ch),bi,pt)),Jt(si,si.text.slice(0,je.ch)+an[0],Bt(0)),it.insert(je.line+1,Jr)}else if(an.length==1)Jt(si,si.text.slice(0,je.ch)+an[0]+fn.text.slice(De.ch),Bt(0)),it.remove(je.line+1,Sr);else{Jt(si,si.text.slice(0,je.ch)+an[0],Bt(0)),Jt(fn,Ti+fn.text.slice(De.ch),bi);var vo=Se(1,an.length-1);Sr>1&&it.remove(je.line+1,Sr-1),it.insert(je.line+1,vo)}Gr(it,"change",it,st)}function Ys(it,st,mt){function pt(Bt,Jt,Se){if(Bt.linked)for(var je=0;je<Bt.linked.length;++je){var De=Bt.linked[je];if(De.doc!=Jt){var an=Se&&De.sharedHist;mt&&!an||(st(De.doc,an),pt(De.doc,Bt,an))}}}pt(it,null,!0)}function Ko(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,ys(it),rs(it),Go(it),it.options.lineWrapping||qs(it),it.options.mode=st.modeOption,El(it)}function Go(it){(it.doc.direction=="rtl"?Ke:_t)(it.display.lineDiv,"CodeMirror-rtl")}function As(it){en(it,function(){Go(it),El(it)})}function es(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Os(it,st){var mt={from:dr(st.from),to:Yo(st),text:Gn(it,st.from,st.to)};return Ps(it,mt,st.from.line,st.to.line+1),Ys(it,function(pt){return Ps(pt,mt,st.from.line,st.to.line+1)},!0),mt}function ro(it){for(;it.length;){var st=tn(it);if(st.ranges)it.pop();else break}}function Wo(it,st){if(st)return ro(it.done),tn(it.done);if(it.done.length&&!tn(it.done).ranges)return tn(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),tn(it.done)}function aa(it,st,mt,pt){var Bt=it.history;Bt.undone.length=0;var Jt=+new Date,Se,je;if((Bt.lastOp==pt||Bt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&Bt.lastModTime>Jt-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Se=Wo(Bt,Bt.lastOp==pt)))je=tn(Se.changes),yi(st.from,st.to)==0&&yi(st.from,je.to)==0?je.to=Yo(st):Se.changes.push(Os(it,st));else{var De=tn(Bt.done);for((!De||!De.ranges)&&Fl(it.sel,Bt.done),Se={changes:[Os(it,st)],generation:Bt.generation},Bt.done.push(Se);Bt.done.length>Bt.undoDepth;)Bt.done.shift(),Bt.done[0].ranges||Bt.done.shift()}Bt.done.push(mt),Bt.generation=++Bt.maxGeneration,Bt.lastModTime=Bt.lastSelTime=Jt,Bt.lastOp=Bt.lastSelOp=pt,Bt.lastOrigin=Bt.lastSelOrigin=st.origin,je||On(it,"historyAdded")}function Us(it,st,mt,pt){var Bt=st.charAt(0);return Bt=="*"||Bt=="+"&&mt.ranges.length==pt.ranges.length&&mt.somethingSelected()==pt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function zl(it,st,mt,pt){var Bt=it.history,Jt=pt&&pt.origin;mt==Bt.lastSelOp||Jt&&Bt.lastSelOrigin==Jt&&(Bt.lastModTime==Bt.lastSelTime&&Bt.lastOrigin==Jt||Us(it,Jt,tn(Bt.done),st))?Bt.done[Bt.done.length-1]=st:Fl(st,Bt.done),Bt.lastSelTime=+new Date,Bt.lastSelOrigin=Jt,Bt.lastSelOp=mt,pt&&pt.clearRedo!==!1&&ro(Bt.undone)}function Fl(it,st){var mt=tn(st);mt&&mt.ranges&&mt.equals(it)||st.push(it)}function Ps(it,st,mt,pt){var Bt=st["spans_"+it.id],Jt=0;it.iter(Math.max(it.first,mt),Math.min(it.first+it.size,pt),function(Se){Se.markedSpans&&((Bt||(Bt=st["spans_"+it.id]={}))[Jt]=Se.markedSpans),++Jt})}function ca(it){if(!it)return null;for(var st,mt=0;mt<it.length;++mt)it[mt].marker.explicitlyCleared?st||(st=it.slice(0,mt)):st&&st.push(it[mt]);return st?st.length?st:null:it}function Ul(it,st){var mt=st["spans_"+it.id];if(!mt)return null;for(var pt=[],Bt=0;Bt<st.text.length;++Bt)pt.push(ca(mt[Bt]));return pt}function fo(it,st){var mt=Ul(it,st),pt=Ho(it,st);if(!mt)return pt;if(!pt)return mt;for(var Bt=0;Bt<mt.length;++Bt){var Jt=mt[Bt],Se=pt[Bt];if(Jt&&Se)t:for(var je=0;je<Se.length;++je){for(var De=Se[je],an=0;an<Jt.length;++an)if(Jt[an].marker==De.marker)continue t;Jt.push(De)}else Se&&(mt[Bt]=Se)}return mt}function ja(it,st,mt){for(var pt=[],Bt=0;Bt<it.length;++Bt){var Jt=it[Bt];if(Jt.ranges){pt.push(mt?po.prototype.deepCopy.call(Jt):Jt);continue}var Se=Jt.changes,je=[];pt.push({changes:je});for(var De=0;De<Se.length;++De){var an=Se[De],si=void 0;if(je.push({from:an.from,to:an.to,text:an.text}),st)for(var fn in an)(si=fn.match(/^spans_(\d+)$/))&&Ce(st,Number(si[1]))>-1&&(tn(je)[fn]=an[fn],delete an[fn])}}return pt}function Gl(it,st,mt,pt){if(pt){var Bt=it.anchor;if(mt){var Jt=yi(st,Bt)<0;Jt!=yi(mt,Bt)<0?(Bt=st,st=mt):Jt!=yi(st,mt)<0&&(st=mt)}return new _r(Bt,st)}else return new _r(mt||st,st)}function ea(it,st,mt,pt,Bt){Bt==null&&(Bt=it.cm&&(it.cm.display.shift||it.extend)),Ia(it,new po([Gl(it.sel.primary(),st,mt,Bt)],0),pt)}function la(it,st,mt){for(var pt=[],Bt=it.cm&&(it.cm.display.shift||it.extend),Jt=0;Jt<it.sel.ranges.length;Jt++)pt[Jt]=Gl(it.sel.ranges[Jt],st[Jt],null,Bt);var Se=Do(it.cm,pt,it.sel.primIndex);Ia(it,Se,mt)}function Na(it,st,mt,pt){var Bt=it.sel.ranges.slice(0);Bt[st]=mt,Ia(it,Do(it.cm,Bt,it.sel.primIndex),pt)}function Va(it,st,mt,pt){Ia(it,us(st,mt),pt)}function ol(it,st,mt){var pt={ranges:st.ranges,update:function(Bt){this.ranges=[];for(var Jt=0;Jt<Bt.length;Jt++)this.ranges[Jt]=new _r(or(it,Bt[Jt].anchor),or(it,Bt[Jt].head))},origin:mt&&mt.origin};return On(it,"beforeSelectionChange",it,pt),it.cm&&On(it.cm,"beforeSelectionChange",it.cm,pt),pt.ranges!=st.ranges?Do(it.cm,pt.ranges,pt.ranges.length-1):st}function Rs(it,st,mt){var pt=it.history.done,Bt=tn(pt);Bt&&Bt.ranges?(pt[pt.length-1]=st,xl(it,st,mt)):Ia(it,st,mt)}function Ia(it,st,mt){xl(it,st,mt),zl(it,it.sel,it.cm?it.cm.curOp.id:NaN,mt)}function xl(it,st,mt){(Xi(it,"beforeSelectionChange")||it.cm&&Xi(it.cm,"beforeSelectionChange"))&&(st=ol(it,st,mt));var pt=mt&&mt.bias||(yi(st.primary().head,it.sel.primary().head)<0?-1:1);pu(it,Ru(it,st,pt,!0)),!(mt&&mt.scroll===!1)&&it.cm&&dn(it.cm)}function pu(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,nr(it.cm)),Gr(it,"cursorActivity",it))}function uu(it){pu(it,Ru(it,it.sel,null,!1))}function Ru(it,st,mt,pt){for(var Bt,Jt=0;Jt<st.ranges.length;Jt++){var Se=st.ranges[Jt],je=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[Jt],De=Ah(it,Se.anchor,je&&je.anchor,mt,pt),an=Ah(it,Se.head,je&&je.head,mt,pt);(Bt||De!=Se.anchor||an!=Se.head)&&(Bt||(Bt=st.ranges.slice(0,Jt)),Bt[Jt]=new _r(De,an))}return Bt?Do(it.cm,Bt,st.primIndex):st}function $u(it,st,mt,pt,Bt){var Jt=Cn(it,st.line);if(Jt.markedSpans)for(var Se=0;Se<Jt.markedSpans.length;++Se){var je=Jt.markedSpans[Se],De=je.marker,an="selectLeft"in De?!De.selectLeft:De.inclusiveLeft,si="selectRight"in De?!De.selectRight:De.inclusiveRight;if((je.from==null||(an?je.from<=st.ch:je.from<st.ch))&&(je.to==null||(si?je.to>=st.ch:je.to>st.ch))){if(Bt&&(On(De,"beforeCursorEnter"),De.explicitlyCleared))if(Jt.markedSpans){--Se;continue}else break;if(!De.atomic)continue;if(mt){var fn=De.find(pt<0?1:-1),Ti=void 0;if((pt<0?si:an)&&(fn=Yu(it,fn,-pt,fn&&fn.line==st.line?Jt:null)),fn&&fn.line==st.line&&(Ti=yi(fn,mt))&&(pt<0?Ti<0:Ti>0))return $u(it,fn,st,pt,Bt)}var bi=De.find(pt<0?-1:1);return(pt<0?an:si)&&(bi=Yu(it,bi,pt,bi.line==st.line?Jt:null)),bi?$u(it,bi,st,pt,Bt):null}}return st}function Ah(it,st,mt,pt,Bt){var Jt=pt||1,Se=$u(it,st,mt,Jt,Bt)||!Bt&&$u(it,st,mt,Jt,!0)||$u(it,st,mt,-Jt,Bt)||!Bt&&$u(it,st,mt,-Jt,!0);return Se||(it.cantEdit=!0,kn(it.first,0))}function Yu(it,st,mt,pt){return mt<0&&st.ch==0?st.line>it.first?or(it,kn(st.line-1)):null:mt>0&&st.ch==(pt||Cn(it,st.line)).text.length?st.line<it.first+it.size-1?kn(st.line+1,0):null:new kn(st.line,st.ch+mt)}function Ua(it){it.setSelection(kn(it.firstLine(),0),kn(it.lastLine()),Ve)}function Bu(it,st,mt){var pt={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return pt.canceled=!0}};return mt&&(pt.update=function(Bt,Jt,Se,je){Bt&&(pt.from=or(it,Bt)),Jt&&(pt.to=or(it,Jt)),Se&&(pt.text=Se),je!==void 0&&(pt.origin=je)}),On(it,"beforeChange",it,pt),it.cm&&On(it.cm,"beforeChange",it.cm,pt),pt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:pt.from,to:pt.to,text:pt.text,origin:pt.origin}}function Rl(it,st,mt){if(it.cm){if(!it.cm.curOp)return Tn(it.cm,Rl)(it,st,mt);if(it.cm.state.suppressEdits)return}if(!((Xi(it,"beforeChange")||it.cm&&Xi(it.cm,"beforeChange"))&&(st=Bu(it,st,!0),!st))){var pt=kr&&!mt&&ss(it,st.from,st.to);if(pt)for(var Bt=pt.length-1;Bt>=0;--Bt)tl(it,{from:pt[Bt].from,to:pt[Bt].to,text:Bt?[""]:st.text,origin:st.origin});else tl(it,st)}}function tl(it,st){if(!(st.text.length==1&&st.text[0]==""&&yi(st.from,st.to)==0)){var mt=So(it,st);aa(it,st,mt,it.cm?it.cm.curOp.id:NaN),yh(it,st,mt,Ho(it,st));var pt=[];Ys(it,function(Bt,Jt){!Jt&&Ce(pt,Bt.history)==-1&&(Sl(Bt.history,st),pt.push(Bt.history)),yh(Bt,st,null,Ho(Bt,st))})}}function vh(it,st,mt){var pt=it.cm&&it.cm.state.suppressEdits;if(!(pt&&!mt)){for(var Bt=it.history,Jt,Se=it.sel,je=st=="undo"?Bt.done:Bt.undone,De=st=="undo"?Bt.undone:Bt.done,an=0;an<je.length&&(Jt=je[an],!(mt?Jt.ranges&&!Jt.equals(it.sel):!Jt.ranges));an++);if(an!=je.length){for(Bt.lastOrigin=Bt.lastSelOrigin=null;;)if(Jt=je.pop(),Jt.ranges){if(Fl(Jt,De),mt&&!Jt.equals(it.sel)){Ia(it,Jt,{clearRedo:!1});return}Se=Jt}else if(pt){je.push(Jt);return}else break;var si=[];Fl(Se,De),De.push({changes:si,generation:Bt.generation}),Bt.generation=Jt.generation||++Bt.maxGeneration;for(var fn=Xi(it,"beforeChange")||it.cm&&Xi(it.cm,"beforeChange"),Ti=function(Dr){var Jr=Jt.changes[Dr];if(Jr.origin=st,fn&&!Bu(it,Jr,!1))return je.length=0,{};si.push(Os(it,Jr));var vo=Dr?So(it,Jr):tn(je);yh(it,Jr,vo,fo(it,Jr)),!Dr&&it.cm&&it.cm.scrollIntoView({from:Jr.from,to:Yo(Jr)});var Xo=[];Ys(it,function(No,as){!as&&Ce(Xo,No.history)==-1&&(Sl(No.history,Jr),Xo.push(No.history)),yh(No,Jr,null,fo(No,Jr))})},bi=Jt.changes.length-1;bi>=0;--bi){var Sr=Ti(bi);if(Sr)return Sr.v}}}}function Cc(it,st){if(st!=0&&(it.first+=st,it.sel=new po(Li(it.sel.ranges,function(Bt){return new _r(kn(Bt.anchor.line+st,Bt.anchor.ch),kn(Bt.head.line+st,Bt.head.ch))}),it.sel.primIndex),it.cm)){El(it.cm,it.first,it.first-st,st);for(var mt=it.cm.display,pt=mt.viewFrom;pt<mt.viewTo;pt++)oa(it.cm,pt,"gutter")}}function yh(it,st,mt,pt){if(it.cm&&!it.cm.curOp)return Tn(it.cm,yh)(it,st,mt,pt);if(st.to.line<it.first){Cc(it,st.text.length-1-(st.to.line-st.from.line));return}if(!(st.from.line>it.lastLine())){if(st.from.line<it.first){var Bt=st.text.length-1-(it.first-st.from.line);Cc(it,Bt),st={from:kn(it.first,0),to:kn(st.to.line+Bt,st.to.ch),text:[tn(st.text)],origin:st.origin}}var Jt=it.lastLine();st.to.line>Jt&&(st={from:st.from,to:kn(Jt,Cn(it,Jt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Gn(it,st.from,st.to),mt||(mt=So(it,st)),it.cm?rc(it.cm,st,pt):Da(it,st,pt),xl(it,mt,Ve),it.cantEdit&&Ah(it,kn(it.firstLine(),0))&&(it.cantEdit=!1)}}function rc(it,st,mt){var pt=it.doc,Bt=it.display,Jt=st.from,Se=st.to,je=!1,De=Jt.line;it.options.lineWrapping||(De=gn(wo(Cn(pt,Jt.line))),pt.iter(De,Se.line+1,function(bi){if(bi==Bt.maxLine)return je=!0,!0})),pt.sel.contains(st.from,st.to)>-1&&nr(it),Da(pt,st,mt,qa(it)),it.options.lineWrapping||(pt.iter(De,Jt.line+st.text.length,function(bi){var Sr=Aa(bi);Sr>Bt.maxLineLength&&(Bt.maxLine=bi,Bt.maxLineLength=Sr,Bt.maxLineChanged=!0,je=!1)}),je&&(it.curOp.updateMaxLine=!0)),Rr(pt,Jt.line),Qe(it,400);var an=st.text.length-(Se.line-Jt.line)-1;st.full?El(it):Jt.line==Se.line&&st.text.length==1&&!ta(it.doc,st)?oa(it,Jt.line,"text"):El(it,Jt.line,Se.line+1,an);var si=Xi(it,"changes"),fn=Xi(it,"change");if(fn||si){var Ti={from:Jt,to:Se,text:st.text,removed:st.removed,origin:st.origin};fn&&Gr(it,"change",it,Ti),si&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Ti)}it.display.selForContextMenu=null}function oc(it,st,mt,pt,Bt){var Jt;pt||(pt=mt),yi(pt,mt)<0&&(Jt=[pt,mt],mt=Jt[0],pt=Jt[1]),typeof st=="string"&&(st=it.splitLines(st)),Rl(it,{from:mt,to:pt,text:st,origin:Bt})}function wh(it,st,mt,pt){mt<it.line?it.line+=pt:st<it.line&&(it.line=st,it.ch=0)}function fa(it,st,mt,pt){for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=!0;if(Jt.ranges){Jt.copied||(Jt=it[Bt]=Jt.deepCopy(),Jt.copied=!0);for(var je=0;je<Jt.ranges.length;je++)wh(Jt.ranges[je].anchor,st,mt,pt),wh(Jt.ranges[je].head,st,mt,pt);continue}for(var De=0;De<Jt.changes.length;++De){var an=Jt.changes[De];if(mt<an.from.line)an.from=kn(an.from.line+pt,an.from.ch),an.to=kn(an.to.line+pt,an.to.ch);else if(st<=an.to.line){Se=!1;break}}Se||(it.splice(0,Bt+1),Bt=0)}}function Sl(it,st){var mt=st.from.line,pt=st.to.line,Bt=st.text.length-(pt-mt)-1;fa(it.done,mt,pt,Bt),fa(it.undone,mt,pt,Bt)}function Ca(it,st,mt,pt){var Bt=st,Jt=st;return typeof st=="number"?Jt=Cn(it,wr(it,st)):Bt=gn(st),Bt==null?null:(pt(Jt,Bt)&&it.cm&&oa(it.cm,Bt,mt),Jt)}function Al(it){this.lines=it,this.parent=null;for(var st=0,mt=0;mt<it.length;++mt)it[mt].parent=this,st+=it[mt].height;this.height=st}Al.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var mt=it,pt=it+st;mt<pt;++mt){var Bt=this.lines[mt];this.height-=Bt.height,vl(Bt),Gr(Bt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,mt){this.height+=mt,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var pt=0;pt<st.length;++pt)st[pt].parent=this},iterN:function(it,st,mt){for(var pt=it+st;it<pt;++it)if(mt(this.lines[it]))return!0}};function ga(it){this.children=it;for(var st=0,mt=0,pt=0;pt<it.length;++pt){var Bt=it[pt];st+=Bt.chunkSize(),mt+=Bt.height,Bt.parent=this}this.size=st,this.height=mt,this.parent=null}ga.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var mt=0;mt<this.children.length;++mt){var pt=this.children[mt],Bt=pt.chunkSize();if(it<Bt){var Jt=Math.min(st,Bt-it),Se=pt.height;if(pt.removeInner(it,Jt),this.height-=Se-pt.height,Bt==Jt&&(this.children.splice(mt--,1),pt.parent=null),(st-=Jt)==0)break;it=0}else it-=Bt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof Al))){var je=[];this.collapse(je),this.children=[new Al(je)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st<this.children.length;++st)this.children[st].collapse(it)},insertInner:function(it,st,mt){this.size+=st.length,this.height+=mt;for(var pt=0;pt<this.children.length;++pt){var Bt=this.children[pt],Jt=Bt.chunkSize();if(it<=Jt){if(Bt.insertInner(it,st,mt),Bt.lines&&Bt.lines.length>50){for(var Se=Bt.lines.length%25+25,je=Se;je<Bt.lines.length;){var De=new Al(Bt.lines.slice(je,je+=25));Bt.height-=De.height,this.children.splice(++pt,0,De),De.parent=this}Bt.lines=Bt.lines.slice(0,Se),this.maybeSpill()}break}it-=Jt}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var st=it.children.splice(it.children.length-5,5),mt=new ga(st);if(it.parent){it.size-=mt.size,it.height-=mt.height;var Bt=Ce(it.parent.children,it);it.parent.children.splice(Bt+1,0,mt)}else{var pt=new ga(it.children);pt.parent=it,it.children=[pt,mt],it=pt}mt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,mt){for(var pt=0;pt<this.children.length;++pt){var Bt=this.children[pt],Jt=Bt.chunkSize();if(it<Jt){var Se=Math.min(st,Jt-it);if(Bt.iterN(it,Se,mt))return!0;if((st-=Se)==0)break;it=0}else it-=Jt}}};var hu=function(it,st,mt){if(mt)for(var pt in mt)mt.hasOwnProperty(pt)&&(this[pt]=mt[pt]);this.doc=it,this.node=st};hu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,mt=this.line,pt=gn(mt);if(!(pt==null||!st)){for(var Bt=0;Bt<st.length;++Bt)st[Bt]==this&&st.splice(Bt--,1);st.length||(mt.widgets=null);var Jt=$a(this);ei(mt,Math.max(0,mt.height-Jt)),it&&(en(it,function(){Fu(it,mt,-Jt),oa(it,pt,"widget")}),Gr(it,"lineWidgetCleared",it,this,pt))}},hu.prototype.changed=function(){var it=this,st=this.height,mt=this.doc.cm,pt=this.line;this.height=null;var Bt=$a(this)-st;Bt&&(Ki(this.doc,pt)||ei(pt,pt.height+Bt),mt&&en(mt,function(){mt.curOp.forceUpdate=!0,Fu(mt,pt,Bt),Gr(mt,"lineWidgetChanged",mt,it,gn(pt))}))},Mr(hu);function Fu(it,st,mt){zs(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Xe(it,mt)}function Kh(it,st,mt,pt){var Bt=new hu(it,mt,pt),Jt=it.cm;return Jt&&Bt.noHScroll&&(Jt.display.alignWidgets=!0),Ca(it,st,"widget",function(Se){var je=Se.widgets||(Se.widgets=[]);if(Bt.insertAt==null?je.push(Bt):je.splice(Math.min(je.length-1,Math.max(0,Bt.insertAt)),0,Bt),Bt.line=Se,Jt&&!Ki(it,Se)){var De=zs(Se)<it.scrollTop;ei(Se,Se.height+$a(Bt)),De&&Xe(Jt,Bt.height),Jt.curOp.forceUpdate=!0}return!0}),Jt&&Gr(Jt,"lineWidgetAdded",Jt,Bt,typeof st=="number"?st:gn(st)),Bt}var Th=0,_n=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Th};_n.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&Or(it),Xi(this,"clear")){var mt=this.find();mt&&Gr(this,"clear",mt.from,mt.to)}for(var pt=null,Bt=null,Jt=0;Jt<this.lines.length;++Jt){var Se=this.lines[Jt],je=ra(Se.markedSpans,this);it&&!this.collapsed?oa(it,gn(Se),"text"):it&&(je.to!=null&&(Bt=gn(Se)),je.from!=null&&(pt=gn(Se))),Se.markedSpans=fs(Se.markedSpans,je),je.from==null&&this.collapsed&&!Ki(this.doc,Se)&&it&&ei(Se,Wu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var De=0;De<this.lines.length;++De){var an=wo(this.lines[De]),si=Aa(an);si>it.display.maxLineLength&&(it.display.maxLine=an,it.display.maxLineLength=si,it.display.maxLineChanged=!0)}pt!=null&&it&&this.collapsed&&El(it,pt,Bt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&uu(it.doc)),it&&Gr(it,"markerCleared",it,this,pt,Bt),st&&Jn(it),this.parent&&this.parent.clear()}},_n.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var mt,pt,Bt=0;Bt<this.lines.length;++Bt){var Jt=this.lines[Bt],Se=ra(Jt.markedSpans,this);if(Se.from!=null&&(mt=kn(st?Jt:gn(Jt),Se.from),it==-1))return mt;if(Se.to!=null&&(pt=kn(st?Jt:gn(Jt),Se.to),it==1))return pt}return mt&&{from:mt,to:pt}},_n.prototype.changed=function(){var it=this,st=this.find(-1,!0),mt=this,pt=this.doc.cm;!st||!pt||en(pt,function(){var Bt=st.line,Jt=gn(st.line),Se=nc(pt,Jt);if(Se&&(Uu(Se),pt.curOp.selectionChanged=pt.curOp.forceUpdate=!0),pt.curOp.updateMaxLine=!0,!Ki(mt.doc,Bt)&&mt.height!=null){var je=mt.height;mt.height=null;var De=$a(mt)-je;De&&ei(Bt,Bt.height+De)}Gr(pt,"markerChanged",pt,it)})},_n.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||Ce(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},_n.prototype.detachLine=function(it){if(this.lines.splice(Ce(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},Mr(_n);function _u(it,st,mt,pt,Bt){if(pt&&pt.shared)return lA(it,st,mt,pt,Bt);if(it.cm&&!it.cm.curOp)return Tn(it.cm,_u)(it,st,mt,pt,Bt);var Jt=new _n(it,Bt),Se=yi(st,mt);if(pt&&Ue(pt,Jt,!1),Se>0||Se==0&&Jt.clearWhenEmpty!==!1)return Jt;if(Jt.replacedWith&&(Jt.collapsed=!0,Jt.widgetNode=Le("span",[Jt.replacedWith],"CodeMirror-widget"),pt.handleMouseEvents||Jt.widgetNode.setAttribute("cm-ignore-events","true"),pt.insertLeft&&(Jt.widgetNode.insertLeft=!0)),Jt.collapsed){if($o(it,st.line,st,mt,Jt)||st.line!=mt.line&&$o(it,mt.line,st,mt,Jt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bi()}Jt.addToHistory&&aa(it,{from:st,to:mt,origin:"markText"},it.sel,NaN);var je=st.line,De=it.cm,an;if(it.iter(je,mt.line+1,function(fn){De&&Jt.collapsed&&!De.options.lineWrapping&&wo(fn)==De.display.maxLine&&(an=!0),Jt.collapsed&&je!=st.line&&ei(fn,0),ba(fn,new Zo(Jt,je==st.line?st.ch:null,je==mt.line?mt.ch:null)),++je}),Jt.collapsed&&it.iter(st.line,mt.line+1,function(fn){Ki(it,fn)&&ei(fn,0)}),Jt.clearOnEnter&&ln(Jt,"beforeCursorEnter",function(){return Jt.clear()}),Jt.readOnly&&(Lo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Jt.collapsed&&(Jt.id=++Th,Jt.atomic=!0),De){if(an&&(De.curOp.updateMaxLine=!0),Jt.collapsed)El(De,st.line,mt.line+1);else if(Jt.className||Jt.startStyle||Jt.endStyle||Jt.css||Jt.attributes||Jt.title)for(var si=st.line;si<=mt.line;si++)oa(De,si,"text");Jt.atomic&&uu(De.doc),Gr(De,"markerAdded",De,Jt)}return Jt}var Oh=function(it,st){this.markers=it,this.primary=st;for(var mt=0;mt<it.length;++mt)it[mt].parent=this};Oh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Gr(this,"clear")}},Oh.prototype.find=function(it,st){return this.primary.find(it,st)},Mr(Oh);function lA(it,st,mt,pt,Bt){pt=Ue(pt),pt.shared=!1;var Jt=[_u(it,st,mt,pt,Bt)],Se=Jt[0],je=pt.widgetNode;return Ys(it,function(De){je&&(pt.widgetNode=je.cloneNode(!0)),Jt.push(_u(De,or(De,st),or(De,mt),pt,Bt));for(var an=0;an<De.linked.length;++an)if(De.linked[an].isParent)return;Se=tn(Jt)}),new Oh(Jt,Se)}function nd(it){return it.findMarks(kn(it.first,0),it.clipPos(kn(it.lastLine())),function(st){return st.parent})}function gc(it,st){for(var mt=0;mt<st.length;mt++){var pt=st[mt],Bt=pt.find(),Jt=it.clipPos(Bt.from),Se=it.clipPos(Bt.to);if(yi(Jt,Se)){var je=_u(it,Jt,Se,pt.primary,pt.primary.type);pt.markers.push(je),je.parent=pt}}}function xd(it){for(var st=function(pt){var Bt=it[pt],Jt=[Bt.primary.doc];Ys(Bt.primary.doc,function(De){return Jt.push(De)});for(var Se=0;Se<Bt.markers.length;Se++){var je=Bt.markers[Se];Ce(Jt,je.doc)==-1&&(je.parent=null,Bt.markers.splice(Se--,1))}},mt=0;mt<it.length;mt++)st(mt)}var SA=0,Lu=function(it,st,mt,pt,Bt){if(!(this instanceof Lu))return new Lu(it,st,mt,pt,Bt);mt==null&&(mt=0),ga.call(this,[new Al([new Qo("",null)])]),this.first=mt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=mt;var Jt=kn(mt,0);this.sel=us(Jt),this.history=new es(null),this.id=++SA,this.modeOption=st,this.lineSep=pt,this.direction=Bt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Da(this,{from:Jt,to:Jt,text:it}),Ia(this,us(Jt),Ve)};Lu.prototype=Tt(ga.prototype,{constructor:Lu,iter:function(it,st,mt){mt?this.iterN(it-this.first,st-it,mt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var mt=0,pt=0;pt<st.length;++pt)mt+=st[pt].height;this.insertInner(it-this.first,st,mt)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=Ei(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:qn(function(it){var st=kn(this.first,0),mt=this.first+this.size-1;Rl(this,{from:st,to:kn(mt,Cn(this,mt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&An(this.cm,0,0),Ia(this,us(st),Ve)}),replaceRange:function(it,st,mt,pt){st=or(this,st),mt=mt?or(this,mt):st,oc(this,it,st,mt,pt)},getRange:function(it,st,mt){var pt=Gn(this,or(this,it),or(this,st));return mt===!1?pt:pt.join(mt||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Ni(this,it))return Cn(this,it)},getLineNumber:function(it){return gn(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=Cn(this,it)),wo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return or(this,it)},getCursor:function(it){var st=this.sel.primary(),mt;return it==null||it=="head"?mt=st.head:it=="anchor"?mt=st.anchor:it=="end"||it=="to"||it===!1?mt=st.to():mt=st.from(),mt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qn(function(it,st,mt){Va(this,or(this,typeof it=="number"?kn(it,st||0):it),null,mt)}),setSelection:qn(function(it,st,mt){Va(this,or(this,it),or(this,st||it),mt)}),extendSelection:qn(function(it,st,mt){ea(this,or(this,it),st&&or(this,st),mt)}),extendSelections:qn(function(it,st){la(this,so(this,it),st)}),extendSelectionsBy:qn(function(it,st){var mt=Li(this.sel.ranges,it);la(this,so(this,mt),st)}),setSelections:qn(function(it,st,mt){if(it.length){for(var pt=[],Bt=0;Bt<it.length;Bt++)pt[Bt]=new _r(or(this,it[Bt].anchor),or(this,it[Bt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ia(this,Do(this.cm,pt,st),mt)}}),addSelection:qn(function(it,st,mt){var pt=this.sel.ranges.slice(0);pt.push(new _r(or(this,it),or(this,st||it))),Ia(this,Do(this.cm,pt,pt.length-1),mt)}),getSelection:function(it){for(var st=this.sel.ranges,mt,pt=0;pt<st.length;pt++){var Bt=Gn(this,st[pt].from(),st[pt].to());mt=mt?mt.concat(Bt):Bt}return it===!1?mt:mt.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],mt=this.sel.ranges,pt=0;pt<mt.length;pt++){var Bt=Gn(this,mt[pt].from(),mt[pt].to());it!==!1&&(Bt=Bt.join(it||this.lineSeparator())),st[pt]=Bt}return st},replaceSelection:function(it,st,mt){for(var pt=[],Bt=0;Bt<this.sel.ranges.length;Bt++)pt[Bt]=it;this.replaceSelections(pt,st,mt||"+input")},replaceSelections:qn(function(it,st,mt){for(var pt=[],Bt=this.sel,Jt=0;Jt<Bt.ranges.length;Jt++){var Se=Bt.ranges[Jt];pt[Jt]={from:Se.from(),to:Se.to(),text:this.splitLines(it[Jt]),origin:mt}}for(var je=st&&st!="end"&&Vo(this,pt,st),De=pt.length-1;De>=0;De--)Rl(this,pt[De]);je?Rs(this,je):this.cm&&dn(this.cm)}),undo:qn(function(){vh(this,"undo")}),redo:qn(function(){vh(this,"redo")}),undoSelection:qn(function(){vh(this,"undo",!0)}),redoSelection:qn(function(){vh(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,mt=0,pt=0;pt<it.done.length;pt++)it.done[pt].ranges||++st;for(var Bt=0;Bt<it.undone.length;Bt++)it.undone[Bt].ranges||++mt;return{undo:st,redo:mt}},clearHistory:function(){var it=this;this.history=new es(this.history.maxGeneration),Ys(this,function(st){return st.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:ja(this.history.done),undone:ja(this.history.undone)}},setHistory:function(it){var st=this.history=new es(this.history.maxGeneration);st.done=ja(it.done.slice(0),null,!0),st.undone=ja(it.undone.slice(0),null,!0)},setGutterMarker:qn(function(it,st,mt){return Ca(this,it,"gutter",function(pt){var Bt=pt.gutterMarkers||(pt.gutterMarkers={});return Bt[st]=mt,!mt&&At(Bt)&&(pt.gutterMarkers=null),!0})}),clearGutter:qn(function(it){var st=this;this.iter(function(mt){mt.gutterMarkers&&mt.gutterMarkers[it]&&Ca(st,mt,"gutter",function(){return mt.gutterMarkers[it]=null,At(mt.gutterMarkers)&&(mt.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Ni(this,it)||(st=it,it=Cn(this,it),!it))return null}else if(st=gn(it),st==null)return null;return{line:st,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:qn(function(it,st,mt){return Ca(this,it,st=="gutter"?"gutter":"class",function(pt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!pt[Bt])pt[Bt]=mt;else{if(Ut(mt).test(pt[Bt]))return!1;pt[Bt]+=" "+mt}return!0})}),removeLineClass:qn(function(it,st,mt){return Ca(this,it,st=="gutter"?"gutter":"class",function(pt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",Jt=pt[Bt];if(Jt)if(mt==null)pt[Bt]=null;else{var Se=Jt.match(Ut(mt));if(!Se)return!1;var je=Se.index+Se[0].length;pt[Bt]=Jt.slice(0,Se.index)+(!Se.index||je==Jt.length?"":" ")+Jt.slice(je)||null}else return!1;return!0})}),addLineWidget:qn(function(it,st,mt){return Kh(this,it,st,mt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,mt){return _u(this,or(this,it),or(this,st),mt,mt&&mt.type||"range")},setBookmark:function(it,st){var mt={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=or(this,it),_u(this,it,it,mt,"bookmark")},findMarksAt:function(it){it=or(this,it);var st=[],mt=Cn(this,it.line).markedSpans;if(mt)for(var pt=0;pt<mt.length;++pt){var Bt=mt[pt];(Bt.from==null||Bt.from<=it.ch)&&(Bt.to==null||Bt.to>=it.ch)&&st.push(Bt.marker.parent||Bt.marker)}return st},findMarks:function(it,st,mt){it=or(this,it),st=or(this,st);var pt=[],Bt=it.line;return this.iter(it.line,st.line+1,function(Jt){var Se=Jt.markedSpans;if(Se)for(var je=0;je<Se.length;je++){var De=Se[je];!(De.to!=null&&Bt==it.line&&it.ch>=De.to||De.from==null&&Bt!=it.line||De.from!=null&&Bt==st.line&&De.from>=st.ch)&&(!mt||mt(De.marker))&&pt.push(De.marker.parent||De.marker)}++Bt}),pt},getAllMarks:function(){var it=[];return this.iter(function(st){var mt=st.markedSpans;if(mt)for(var pt=0;pt<mt.length;++pt)mt[pt].from!=null&&it.push(mt[pt].marker)}),it},posFromIndex:function(it){var st,mt=this.first,pt=this.lineSeparator().length;return this.iter(function(Bt){var Jt=Bt.text.length+pt;if(Jt>it)return st=it,!0;it-=Jt,++mt}),or(this,kn(mt,st))},indexFromPos:function(it){it=or(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var mt=this.lineSeparator().length;return this.iter(this.first,it.line,function(pt){st+=pt.text.length+mt}),st},copy:function(it){var st=new Lu(Ei(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return st.scrollTop=this.scrollTop,st.scrollLeft=this.scrollLeft,st.sel=this.sel,st.extend=!1,it&&(st.history.undoDepth=this.history.undoDepth,st.setHistory(this.getHistory())),st},linkedDoc:function(it){it||(it={});var st=this.first,mt=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<mt&&(mt=it.to);var pt=new Lu(Ei(this,st,mt),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(pt.history=this.history),(this.linked||(this.linked=[])).push({doc:pt,sharedHist:it.sharedHist}),pt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],gc(pt,nd(this)),pt},unlinkDoc:function(it){if(it instanceof vs&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var mt=this.linked[st];if(mt.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),xd(nd(this));break}}if(it.history==this.history){var pt=[it.id];Ys(it,function(Bt){return pt.push(Bt.id)},!0),it.history=new es(null),it.history.done=ja(this.history.done,pt),it.history.undone=ja(this.history.undone,pt)}},iterLinkedDocs:function(it){Ys(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):xo(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:qn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&As(this.cm))})}),Lu.prototype.eachLine=Lu.prototype.iter;var jc=0;function Kd(it){var st=this;if(Uc(st),!(Di(st,it)||lu(st.display,it))){br(it),ee&&(jc=+new Date);var mt=oh(st,it,!0),pt=it.dataTransfer.files;if(!(!mt||st.isReadOnly()))if(pt&&pt.length&&window.FileReader&&window.File)for(var Bt=pt.length,Jt=Array(Bt),Se=0,je=function(){++Se==Bt&&Tn(st,function(){mt=or(st.doc,mt);var bi={from:mt,to:mt,text:st.doc.splitLines(Jt.filter(function(Sr){return Sr!=null}).join(st.doc.lineSeparator())),origin:"paste"};Rl(st.doc,bi),Rs(st.doc,us(or(st.doc,mt),or(st.doc,Yo(bi))))})()},De=function(bi,Sr){if(st.options.allowDropFileTypes&&Ce(st.options.allowDropFileTypes,bi.type)==-1){je();return}var Dr=new FileReader;Dr.onerror=function(){return je()},Dr.onload=function(){var Jr=Dr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Jr)){je();return}Jt[Sr]=Jr,je()},Dr.readAsText(bi)},an=0;an<pt.length;an++)De(pt[an],an);else{if(st.state.draggingText&&st.doc.sel.contains(mt)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var si=it.dataTransfer.getData("Text");if(si){var fn;if(st.state.draggingText&&!st.state.draggingText.copy&&(fn=st.listSelections()),xl(st.doc,us(mt,mt)),fn)for(var Ti=0;Ti<fn.length;++Ti)oc(st.doc,"",fn[Ti].anchor,fn[Ti].head,"drag");st.replaceSelection(si,"around","paste"),st.display.input.focus()}}catch(bi){}}}}function id(it,st){if(ee&&(!it.state.draggingText||+new Date-jc<100)){qr(st);return}if(!(Di(it,st)||lu(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!se)){var mt=fe("img",null,null,"position: fixed; left: 0; top: 0;");mt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",bt&&(mt.width=mt.height=1,it.display.wrapper.appendChild(mt),mt._top=mt.offsetTop),st.dataTransfer.setDragImage(mt,0,0),bt&&mt.parentNode.removeChild(mt)}}function CA(it,st){var mt=oh(it,st);if(mt){var pt=document.createDocumentFragment();Ea(it,mt,pt),it.display.dragCursor||(it.display.dragCursor=fe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),he(it.display.dragCursor,pt)}}function Uc(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Sd(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),mt=[],pt=0;pt<st.length;pt++){var Bt=st[pt].CodeMirror;Bt&&mt.push(Bt)}mt.length&&mt[0].operation(function(){for(var Jt=0;Jt<mt.length;Jt++)it(mt[Jt])})}}var Ju=!1;function ah(){Ju||(Vu(),Ju=!0)}function Vu(){var it;ln(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Sd(BA)},100))}),ln(window,"blur",function(){return Sd(wt)})}function BA(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Gh={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ia=0;ia<10;ia++)Gh[ia+48]=Gh[ia+96]=String(ia);for(var Cd=65;Cd<=90;Cd++)Gh[Cd]=String.fromCharCode(Cd);for(var rd=1;rd<=12;rd++)Gh[rd+111]=Gh[rd+63235]="F"+rd;var mu={};mu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},mu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},mu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},mu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},mu.default=lt?mu.macDefault:mu.pcDefault;function Gd(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var mt,pt,Bt,Jt,Se=0;Se<st.length-1;Se++){var je=st[Se];if(/^(cmd|meta|m)$/i.test(je))Jt=!0;else if(/^a(lt)?$/i.test(je))mt=!0;else if(/^(c|ctrl|control)$/i.test(je))pt=!0;else if(/^s(hift)?$/i.test(je))Bt=!0;else throw new Error("Unrecognized modifier name: "+je)}return mt&&(it="Alt-"+it),pt&&(it="Ctrl-"+it),Jt&&(it="Cmd-"+it),Bt&&(it="Shift-"+it),it}function Wd(it){var st={};for(var mt in it)if(it.hasOwnProperty(mt)){var pt=it[mt];if(/^(name|fallthrough|(de|at)tach)$/.test(mt))continue;if(pt=="..."){delete it[mt];continue}for(var Bt=Li(mt.split(" "),Gd),Jt=0;Jt<Bt.length;Jt++){var Se=void 0,je=void 0;Jt==Bt.length-1?(je=Bt.join(" "),Se=pt):(je=Bt.slice(0,Jt+1).join(" "),Se="...");var De=st[je];if(!De)st[je]=Se;else if(De!=Se)throw new Error("Inconsistent bindings for "+je)}delete it[mt]}for(var an in st)it[an]=st[an];return it}function qu(it,st,mt,pt){st=cu(st);var Bt=st.call?st.call(it,pt):st[it];if(Bt===!1)return"nothing";if(Bt==="...")return"multi";if(Bt!=null&&mt(Bt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return qu(it,st.fallthrough,mt,pt);for(var Jt=0;Jt<st.fallthrough.length;Jt++){var Se=qu(it,st.fallthrough[Jt],mt,pt);if(Se)return Se}}}function Rc(it){var st=typeof it=="string"?it:Gh[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Bd(it,st,mt){var pt=it;return st.altKey&&pt!="Alt"&&(it="Alt-"+it),(xt?st.metaKey:st.ctrlKey)&&pt!="Ctrl"&&(it="Ctrl-"+it),(xt?st.ctrlKey:st.metaKey)&&pt!="Mod"&&(it="Cmd-"+it),!mt&&st.shiftKey&&pt!="Shift"&&(it="Shift-"+it),it}function Vd(it,st){if(bt&&it.keyCode==34&&it.char)return!1;var mt=Gh[it.keyCode];return mt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(mt=it.code),Bd(mt,it,st))}function cu(it){return typeof it=="string"?mu[it]:it}function vu(it,st){for(var mt=it.doc.sel.ranges,pt=[],Bt=0;Bt<mt.length;Bt++){for(var Jt=st(mt[Bt]);pt.length&&yi(Jt.from,tn(pt).to)<=0;){var Se=pt.pop();if(yi(Se.from,Jt.from)<0){Jt.from=Se.from;break}}pt.push(Jt)}en(it,function(){for(var je=pt.length-1;je>=0;je--)oc(it.doc,"",pt[je].from,pt[je].to,"+delete");dn(it)})}function _c(it,st,mt){var pt=ae(it.text,st+mt,mt);return pt<0||pt>it.text.length?null:pt}function _l(it,st,mt){var pt=_c(it,st.ch,mt);return pt==null?null:new kn(st.line,pt,mt<0?"after":"before")}function ka(it,st,mt,pt,Bt){if(it){st.doc.direction=="rtl"&&(Bt=-Bt);var Jt=Wn(mt,st.doc.direction);if(Jt){var Se=Bt<0?tn(Jt):Jt[0],je=Bt<0==(Se.level==1),De=je?"after":"before",an;if(Se.level>0||st.doc.direction=="rtl"){var si=il(st,mt);an=Bt<0?mt.text.length-1:0;var fn=Ch(st,si,an).top;an=ye(function(Ti){return Ch(st,si,Ti).top==fn},Bt<0==(Se.level==1)?Se.from:Se.to-1,an),De=="before"&&(an=_c(mt,an,1))}else an=Bt<0?Se.to:Se.from;return new kn(pt,an,De)}}return new kn(pt,Bt<0?mt.text.length:0,Bt<0?"before":"after")}function Za(it,st,mt,pt){var Bt=Wn(st,it.doc.direction);if(!Bt)return _l(st,mt,pt);mt.ch>=st.text.length?(mt.ch=st.text.length,mt.sticky="before"):mt.ch<=0&&(mt.ch=0,mt.sticky="after");var Jt=Me(Bt,mt.ch,mt.sticky),Se=Bt[Jt];if(it.doc.direction=="ltr"&&Se.level%2==0&&(pt>0?Se.to>mt.ch:Se.from<mt.ch))return _l(st,mt,pt);var je=function(vo,Xo){return _c(st,vo instanceof kn?vo.ch:vo,Xo)},De,an=function(vo){return it.options.lineWrapping?(De=De||il(it,st),sA(it,st,De,vo)):{begin:0,end:st.text.length}},si=an(mt.sticky=="before"?je(mt,-1):mt.ch);if(it.doc.direction=="rtl"||Se.level==1){var fn=Se.level==1==pt<0,Ti=je(mt,fn?1:-1);if(Ti!=null&&(fn?Ti<=Se.to&&Ti<=si.end:Ti>=Se.from&&Ti>=si.begin)){var bi=fn?"before":"after";return new kn(mt.line,Ti,bi)}}var Sr=function(vo,Xo,No){for(var as=function(Cl,ku){return ku?new kn(mt.line,je(Cl,1),"before"):new kn(mt.line,Cl,"after")};vo>=0&&vo<Bt.length;vo+=Xo){var Ms=Bt[vo],Io=Xo>0==(Ms.level!=1),na=Io?No.begin:je(No.end,-1);if(Ms.from<=na&&na<Ms.to||(na=Io?Ms.from:je(Ms.to,-1),No.begin<=na&&na<No.end))return as(na,Io)}},Dr=Sr(Jt+pt,pt,si);if(Dr)return Dr;var Jr=pt>0?si.end:je(si.begin,-1);return Jr!=null&&!(pt>0&&Jr==st.text.length)&&(Dr=Sr(pt>0?0:Bt.length-1,pt,an(Jr)),Dr)?Dr:null}var Mu={selectAll:Ua,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ve)},killLine:function(it){return vu(it,function(st){if(st.empty()){var mt=Cn(it.doc,st.head.line).text.length;return st.head.ch==mt&&st.head.line<it.lastLine()?{from:st.head,to:kn(st.head.line+1,0)}:{from:st.head,to:kn(st.head.line,mt)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return vu(it,function(st){return{from:kn(st.from().line,0),to:or(it.doc,kn(st.to().line+1,0))}})},delLineLeft:function(it){return vu(it,function(st){return{from:kn(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return vu(it,function(st){var mt=it.charCoords(st.head,"div").top+5,pt=it.coordsChar({left:0,top:mt},"div");return{from:pt,to:st.from()}})},delWrappedLineRight:function(it){return vu(it,function(st){var mt=it.charCoords(st.head,"div").top+5,pt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:mt},"div");return{from:st.from(),to:pt}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(kn(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(kn(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return fh(it,st.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(st){return Zd(it,st.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(st){return Eh(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var mt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:mt},"div")},Zn)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var mt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:mt},"div")},Zn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var mt=it.cursorCoords(st.head,"div").top+5,pt=it.coordsChar({left:0,top:mt},"div");return pt.ch<it.getLine(pt.line).search(/\S/)?Zd(it,st.head):pt},Zn)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var st=[],mt=it.listSelections(),pt=it.options.tabSize,Bt=0;Bt<mt.length;Bt++){var Jt=mt[Bt].from(),Se=ve(it.getLine(Jt.line),Jt.ch,pt);st.push(Pi(pt-Se%pt))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return en(it,function(){for(var st=it.listSelections(),mt=[],pt=0;pt<st.length;pt++)if(st[pt].empty()){var Bt=st[pt].head,Jt=Cn(it.doc,Bt.line).text;if(Jt){if(Bt.ch==Jt.length&&(Bt=new kn(Bt.line,Bt.ch-1)),Bt.ch>0)Bt=new kn(Bt.line,Bt.ch+1),it.replaceRange(Jt.charAt(Bt.ch-1)+Jt.charAt(Bt.ch-2),kn(Bt.line,Bt.ch-2),Bt,"+transpose");else if(Bt.line>it.doc.first){var Se=Cn(it.doc,Bt.line-1).text;Se&&(Bt=new kn(Bt.line,1),it.replaceRange(Jt.charAt(0)+it.doc.lineSeparator()+Se.charAt(Se.length-1),kn(Bt.line-1,Se.length-1),Bt,"+transpose"))}}mt.push(new _r(Bt,Bt))}it.setSelections(mt)})},newlineAndIndent:function(it){return en(it,function(){for(var st=it.listSelections(),mt=st.length-1;mt>=0;mt--)it.replaceRange(it.doc.lineSeparator(),st[mt].anchor,st[mt].head,"+input");st=it.listSelections();for(var pt=0;pt<st.length;pt++)it.indentLine(st[pt].from().line,null,!0);dn(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function fh(it,st){var mt=Cn(it.doc,st),pt=wo(mt);return pt!=mt&&(st=gn(pt)),ka(!0,it,pt,st,1)}function Eh(it,st){var mt=Cn(it.doc,st),pt=ks(mt);return pt!=mt&&(st=gn(pt)),ka(!0,it,mt,st,-1)}function Zd(it,st){var mt=fh(it,st.line),pt=Cn(it.doc,mt.line),Bt=Wn(pt,it.doc.direction);if(!Bt||Bt[0].level==0){var Jt=Math.max(mt.ch,pt.text.search(/\S/)),Se=st.line==mt.line&&st.ch<=Jt&&st.ch;return kn(mt.line,Se?0:Jt,mt.sticky)}return mt}function Bc(it,st,mt){if(typeof st=="string"&&(st=Mu[st],!st))return!1;it.display.input.ensurePolled();var pt=it.display.shift,Bt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),mt&&(it.display.shift=!1),Bt=st(it)!=Ln}finally{it.display.shift=pt,it.state.suppressEdits=!1}return Bt}function Pd(it,st,mt){for(var pt=0;pt<it.state.keyMaps.length;pt++){var Bt=qu(st,it.state.keyMaps[pt],mt,it);if(Bt)return Bt}return it.options.extraKeys&&qu(st,it.options.extraKeys,mt,it)||qu(st,it.options.keyMap,mt,it)}var Zu=new ne;function xh(it,st,mt,pt){var Bt=it.state.keySeq;if(Bt){if(Rc(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Zu.set(50,function(){it.state.keySeq==Bt&&(it.state.keySeq=null,it.display.input.reset())}),PA(it,Bt+" "+st,mt,pt))return!0}return PA(it,st,mt,pt)}function PA(it,st,mt,pt){var Bt=Pd(it,st,pt);return Bt=="multi"&&(it.state.keySeq=st),Bt=="handled"&&Gr(it,"keyHandled",it,st,mt),(Bt=="handled"||Bt=="multi")&&(br(mt),dl(it)),!!Bt}function Hc(it,st){var mt=Vd(st,!0);return mt?st.shiftKey&&!it.state.keySeq?xh(it,"Shift-"+mt,st,function(pt){return Bc(it,pt,!0)})||xh(it,mt,st,function(pt){if(typeof pt=="string"?/^go[A-Z]/.test(pt):pt.motion)return Bc(it,pt)}):xh(it,mt,st,function(pt){return Bc(it,pt)}):!1}function sc(it,st,mt){return xh(it,"'"+mt+"'",st,function(pt){return Bc(it,pt,!0)})}var Qc=null;function od(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=Wt(),!Di(st,it))){ee&&Vt<11&&it.keyCode==27&&(it.returnValue=!1);var mt=it.keyCode;st.display.shift=mt==16||it.shiftKey;var pt=Hc(st,it);bt&&(Qc=pt?mt:null,!pt&&mt==88&&!ni&&(lt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),Lt&&!lt&&!pt&&mt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),mt==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&lf(st)}}function lf(it){var st=it.display.lineDiv;Ke(st,"CodeMirror-crosshair");function mt(pt){(pt.keyCode==18||!pt.altKey)&&(_t(st,"CodeMirror-crosshair"),li(document,"keyup",mt),li(document,"mouseover",mt))}ln(document,"keyup",mt),ln(document,"mouseover",mt)}function uA(it){it.keyCode==16&&(this.doc.sel.shift=!1),Di(this,it)}function Pc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(lu(st.display,it)||Di(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var mt=it.keyCode,pt=it.charCode;if(bt&&mt==Qc){Qc=null,br(it);return}if(!(bt&&(!it.which||it.which<10)&&Hc(st,it))){var Bt=String.fromCharCode(pt==null?mt:pt);Bt!="\b"&&(sc(st,it,Bt)||st.display.input.onKeyPress(it))}}}var KA=400,bd=function(it,st,mt){this.time=it,this.pos=st,this.button=mt};bd.prototype.compare=function(it,st,mt){return this.time+KA>it&&yi(st,this.pos)==0&&mt==this.button};var zc,Kc;function hA(it,st){var mt=+new Date;return Kc&&Kc.compare(mt,it,st)?(zc=Kc=null,"triple"):zc&&zc.compare(mt,it,st)?(Kc=new bd(mt,it,st),zc=null,"double"):(zc=new bd(mt,it,st),Kc=null,"single")}function Dh(it){var st=this,mt=st.display;if(!(Di(st,it)||mt.activeTouch&&mt.input.supportsTouch())){if(mt.input.ensurePolled(),mt.shift=it.shiftKey,lu(mt,it)){Mt||(mt.scroller.draggable=!1,setTimeout(function(){return mt.scroller.draggable=!0},100));return}if(!vn(st,it)){var pt=oh(st,it),Bt=Xr(it),Jt=pt?hA(pt,Bt):"single";window.focus(),Bt==1&&st.state.selectingText&&st.state.selectingText(it),!(pt&&bA(st,Bt,pt,Jt,it))&&(Bt==1?pt?cA(st,pt,Jt,it):Ir(it)==mt.scroller&&br(it):Bt==2?(pt&&ea(st.doc,pt),setTimeout(function(){return mt.input.focus()},20)):Bt==3&&(Nt?st.display.input.onContextMenu(it):Jl(st)))}}}function bA(it,st,mt,pt,Bt){var Jt="Click";return pt=="double"?Jt="Double"+Jt:pt=="triple"&&(Jt="Triple"+Jt),Jt=(st==1?"Left":st==2?"Middle":"Right")+Jt,xh(it,Bd(Jt,Bt),Bt,function(Se){if(typeof Se=="string"&&(Se=Mu[Se]),!Se)return!1;var je=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),je=Se(it,mt)!=Ln}finally{it.state.suppressEdits=!1}return je})}function EA(it,st,mt){var pt=it.getOption("configureMouse"),Bt=pt?pt(it,st,mt):{};if(Bt.unit==null){var Jt=rt?mt.shiftKey&&mt.metaKey:mt.altKey;Bt.unit=Jt?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(Bt.extend==null||it.doc.extend)&&(Bt.extend=it.doc.extend||mt.shiftKey),Bt.addNew==null&&(Bt.addNew=lt?mt.metaKey:mt.ctrlKey),Bt.moveOnDrag==null&&(Bt.moveOnDrag=!(lt?mt.altKey:mt.ctrlKey)),Bt}function cA(it,st,mt,pt){ee?setTimeout(Ge(Ql,it),0):it.curOp.focus=Wt();var Bt=EA(it,mt,pt),Jt=it.doc.sel,Se;it.options.dragDrop&&oo&&!it.isReadOnly()&&mt=="single"&&(Se=Jt.contains(st))>-1&&(yi((Se=Jt.ranges[Se]).from(),st)<0||st.xRel>0)&&(yi(Se.to(),st)>0||st.xRel<0)?Xd(it,pt,st,Bt):$d(it,pt,st,Bt)}function Xd(it,st,mt,pt){var Bt=it.display,Jt=!1,Se=Tn(it,function(an){Mt&&(Bt.scroller.draggable=!1),it.state.draggingText=!1,li(Bt.wrapper.ownerDocument,"mouseup",Se),li(Bt.wrapper.ownerDocument,"mousemove",je),li(Bt.scroller,"dragstart",De),li(Bt.scroller,"drop",Se),Jt||(br(an),pt.addNew||ea(it.doc,mt,null,null,pt.extend),Mt&&!se||ee&&Vt==9?setTimeout(function(){Bt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Bt.input.focus()},20):Bt.input.focus())}),je=function(an){Jt=Jt||Math.abs(st.clientX-an.clientX)+Math.abs(st.clientY-an.clientY)>=10},De=function(){return Jt=!0};Mt&&(Bt.scroller.draggable=!0),it.state.draggingText=Se,Se.copy=!pt.moveOnDrag,Bt.scroller.dragDrop&&Bt.scroller.dragDrop(),ln(Bt.wrapper.ownerDocument,"mouseup",Se),ln(Bt.wrapper.ownerDocument,"mousemove",je),ln(Bt.scroller,"dragstart",De),ln(Bt.scroller,"drop",Se),Jl(it),setTimeout(function(){return Bt.input.focus()},20)}function Ed(it,st,mt){if(mt=="char")return new _r(st,st);if(mt=="word")return it.findWordAt(st);if(mt=="line")return new _r(kn(st.line,0),or(it.doc,kn(st.line+1,0)));var pt=mt(it,st);return new _r(pt.from,pt.to)}function $d(it,st,mt,pt){var Bt=it.display,Jt=it.doc;br(st);var Se,je,De=Jt.sel,an=De.ranges;if(pt.addNew&&!pt.extend?(je=Jt.sel.contains(mt),je>-1?Se=an[je]:Se=new _r(mt,mt)):(Se=Jt.sel.primary(),je=Jt.sel.primIndex),pt.unit=="rectangle")pt.addNew||(Se=new _r(mt,mt)),mt=oh(it,st,!0,!0),je=-1;else{var si=Ed(it,mt,pt.unit);pt.extend?Se=Gl(Se,si.anchor,si.head,pt.extend):Se=si}pt.addNew?je==-1?(je=an.length,Ia(Jt,Do(it,an.concat([Se]),je),{scroll:!1,origin:"*mouse"})):an.length>1&&an[je].empty()&&pt.unit=="char"&&!pt.extend?(Ia(Jt,Do(it,an.slice(0,je).concat(an.slice(je+1)),0),{scroll:!1,origin:"*mouse"}),De=Jt.sel):Na(Jt,je,Se,Nn):(je=0,Ia(Jt,new po([Se],0),Nn),De=Jt.sel);var fn=mt;function Ti(No){if(yi(fn,No)!=0)if(fn=No,pt.unit=="rectangle"){for(var as=[],Ms=it.options.tabSize,Io=ve(Cn(Jt,mt.line).text,mt.ch,Ms),na=ve(Cn(Jt,No.line).text,No.ch,Ms),Cl=Math.min(Io,na),ku=Math.max(Io,na),ul=Math.min(mt.line,No.line),yu=Math.min(it.lastLine(),Math.max(mt.line,No.line));ul<=yu;ul++){var La=Cn(Jt,ul).text,wa=gi(La,Cl,Ms);Cl==ku?as.push(new _r(kn(ul,wa),kn(ul,wa))):La.length>wa&&as.push(new _r(kn(ul,wa),kn(ul,gi(La,ku,Ms))))}as.length||as.push(new _r(mt,mt)),Ia(Jt,Do(it,De.ranges.slice(0,je).concat(as),je),{origin:"*mouse",scroll:!1}),it.scrollIntoView(No)}else{var gl=Se,pl=Ed(it,No,pt.unit),bo=gl.anchor,xa;yi(pl.anchor,bo)>0?(xa=pl.head,bo=cr(gl.from(),pl.anchor)):(xa=pl.anchor,bo=zr(gl.to(),pl.head));var Nl=De.ranges.slice(0);Nl[je]=FA(it,new _r(or(Jt,bo),xa)),Ia(Jt,Do(it,Nl,je),Nn)}}var bi=Bt.wrapper.getBoundingClientRect(),Sr=0;function Dr(No){var as=++Sr,Ms=oh(it,No,!0,pt.unit=="rectangle");if(Ms)if(yi(Ms,fn)!=0){it.curOp.focus=Wt(),Ti(Ms);var Io=ie(Bt,Jt);(Ms.line>=Io.to||Ms.line<Io.from)&&setTimeout(Tn(it,function(){Sr==as&&Dr(No)}),150)}else{var na=No.clientY<bi.top?-20:No.clientY>bi.bottom?20:0;na&&setTimeout(Tn(it,function(){Sr==as&&(Bt.scroller.scrollTop+=na,Dr(No))}),50)}}function Jr(No){it.state.selectingText=!1,Sr=1/0,No&&(br(No),Bt.input.focus()),li(Bt.wrapper.ownerDocument,"mousemove",vo),li(Bt.wrapper.ownerDocument,"mouseup",Xo),Jt.history.lastSelOrigin=null}var vo=Tn(it,function(No){No.buttons===0||!Xr(No)?Jr(No):Dr(No)}),Xo=Tn(it,Jr);it.state.selectingText=Xo,ln(Bt.wrapper.ownerDocument,"mousemove",vo),ln(Bt.wrapper.ownerDocument,"mouseup",Xo)}function FA(it,st){var mt=st.anchor,pt=st.head,Bt=Cn(it.doc,mt.line);if(yi(mt,pt)==0&&mt.sticky==pt.sticky)return st;var Jt=Wn(Bt);if(!Jt)return st;var Se=Me(Jt,mt.ch,mt.sticky),je=Jt[Se];if(je.from!=mt.ch&&je.to!=mt.ch)return st;var De=Se+(je.from==mt.ch==(je.level!=1)?0:1);if(De==0||De==Jt.length)return st;var an;if(pt.line!=mt.line)an=(pt.line-mt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var si=Me(Jt,pt.ch,pt.sticky),fn=si-Se||(pt.ch-mt.ch)*(je.level==1?-1:1);si==De-1||si==De?an=fn<0:an=fn>0}var Ti=Jt[De+(an?-1:0)],bi=an==(Ti.level==1),Sr=bi?Ti.from:Ti.to,Dr=bi?"after":"before";return mt.ch==Sr&&mt.sticky==Dr?st:new _r(new kn(mt.line,Sr,Dr),pt)}function Ae(it,st,mt,pt){var Bt,Jt;if(st.touches)Bt=st.touches[0].clientX,Jt=st.touches[0].clientY;else try{Bt=st.clientX,Jt=st.clientY}catch(Ti){return!1}if(Bt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;pt&&br(st);var Se=it.display,je=Se.lineDiv.getBoundingClientRect();if(Jt>je.bottom||!Xi(it,mt))return Yr(st);Jt-=je.top-Se.viewOffset;for(var De=0;De<it.display.gutterSpecs.length;++De){var an=Se.gutters.childNodes[De];if(an&&an.getBoundingClientRect().right>=Bt){var si=di(it.doc,Jt),fn=it.display.gutterSpecs[De];return On(it,mt,it,si,fn.className,st),Yr(st)}}}function vn(it,st){return Ae(it,st,"gutterClick",!0)}function Si(it,st){lu(it.display,st)||_i(it,st)||Di(it,st,"contextmenu")||Nt||it.display.input.onContextMenu(st)}function _i(it,st){return Xi(it,"gutterContextMenu")?Ae(it,st,"gutterContextMenu",!1):!1}function ur(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),rl(it)}var Ur={toString:function(){return"CodeMirror.Init"}},Co={},ms={};function Js(it){var st=it.optionHandlers;function mt(pt,Bt,Jt,Se){it.defaults[pt]=Bt,Jt&&(st[pt]=Se?function(je,De,an){an!=Ur&&Jt(je,De,an)}:Jt)}it.defineOption=mt,it.Init=Ur,mt("value","",function(pt,Bt){return pt.setValue(Bt)},!0),mt("mode",null,function(pt,Bt){pt.doc.modeOption=Bt,rs(pt)},!0),mt("indentUnit",2,rs,!0),mt("indentWithTabs",!1),mt("smartIndent",!0),mt("tabSize",4,function(pt){Cs(pt),rl(pt),El(pt)},!0),mt("lineSeparator",null,function(pt,Bt){if(pt.doc.lineSep=Bt,!!Bt){var Jt=[],Se=pt.doc.first;pt.doc.iter(function(De){for(var an=0;;){var si=De.text.indexOf(Bt,an);if(si==-1)break;an=si+Bt.length,Jt.push(kn(Se,si))}Se++});for(var je=Jt.length-1;je>=0;je--)oc(pt.doc,Bt,Jt[je],kn(Jt[je].line,Jt[je].ch+Bt.length))}}),mt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(pt,Bt,Jt){pt.state.specialChars=new RegExp(Bt.source+(Bt.test(" ")?"":"| "),"g"),Jt!=Ur&&pt.refresh()}),mt("specialCharPlaceholder",Ga,function(pt){return pt.refresh()},!0),mt("electricChars",!0),mt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),mt("spellcheck",!1,function(pt,Bt){return pt.getInputField().spellcheck=Bt},!0),mt("autocorrect",!1,function(pt,Bt){return pt.getInputField().autocorrect=Bt},!0),mt("autocapitalize",!1,function(pt,Bt){return pt.getInputField().autocapitalize=Bt},!0),mt("rtlMoveVisually",!ht),mt("wholeLineUpdateBefore",!0),mt("theme","default",function(pt){ur(pt),Pr(pt)},!0),mt("keyMap","default",function(pt,Bt,Jt){var Se=cu(Bt),je=Jt!=Ur&&cu(Jt);je&&je.detach&&je.detach(pt,Se),Se.attach&&Se.attach(pt,je||null)}),mt("extraKeys",null),mt("configureMouse",null),mt("lineWrapping",!1,Pa,!0),mt("gutters",[],function(pt,Bt){pt.display.gutterSpecs=Yn(Bt,pt.options.lineNumbers),Pr(pt)},!0),mt("fixedGutter",!0,function(pt,Bt){pt.display.gutters.style.left=Bt?ed(pt.display)+"px":"0",pt.refresh()},!0),mt("coverGutterNextToScrollbar",!1,function(pt){return Fr(pt)},!0),mt("scrollbarStyle","native",function(pt){Oi(pt),Fr(pt),pt.display.scrollbars.setScrollTop(pt.doc.scrollTop),pt.display.scrollbars.setScrollLeft(pt.doc.scrollLeft)},!0),mt("lineNumbers",!1,function(pt,Bt){pt.display.gutterSpecs=Yn(pt.options.gutters,Bt),Pr(pt)},!0),mt("firstLineNumber",1,Pr,!0),mt("lineNumberFormatter",function(pt){return pt},Pr,!0),mt("showCursorWhenSelecting",!1,Cu,!0),mt("resetSelectionOnContextMenu",!0),mt("lineWiseCopyCut",!0),mt("pasteLinesPerSelection",!0),mt("selectionsMayTouch",!1),mt("readOnly",!1,function(pt,Bt){Bt=="nocursor"&&(wt(pt),pt.display.input.blur()),pt.display.input.readOnlyChanged(Bt)}),mt("screenReaderLabel",null,function(pt,Bt){Bt=Bt===""?null:Bt,pt.display.input.screenReaderLabelChanged(Bt)}),mt("disableInput",!1,function(pt,Bt){Bt||pt.display.input.reset()},!0),mt("dragDrop",!0,Ba),mt("allowDropFileTypes",null),mt("cursorBlinkRate",530),mt("cursorScrollMargin",0),mt("cursorHeight",1,Cu,!0),mt("singleCursorHeightPerLine",!0,Cu,!0),mt("workTime",100),mt("workDelay",100),mt("flattenSpans",!0,Cs,!0),mt("addModeClass",!1,Cs,!0),mt("pollInterval",100),mt("undoDepth",200,function(pt,Bt){return pt.doc.history.undoDepth=Bt}),mt("historyEventDelay",1250),mt("viewportMargin",10,function(pt){return pt.refresh()},!0),mt("maxHighlightLength",1e4,Cs,!0),mt("moveInputWithCursor",!0,function(pt,Bt){Bt||pt.display.input.resetPosition()}),mt("tabindex",null,function(pt,Bt){return pt.display.input.getField().tabIndex=Bt||""}),mt("autofocus",null),mt("direction","ltr",function(pt,Bt){return pt.doc.setDirection(Bt)},!0),mt("phrases",null)}function Ba(it,st,mt){var pt=mt&&mt!=Ur;if(!st!=!pt){var Bt=it.display.dragFunctions,Jt=st?ln:li;Jt(it.display.scroller,"dragstart",Bt.start),Jt(it.display.scroller,"dragenter",Bt.enter),Jt(it.display.scroller,"dragover",Bt.over),Jt(it.display.scroller,"dragleave",Bt.leave),Jt(it.display.scroller,"drop",Bt.drop)}}function Pa(it){it.options.lineWrapping?(Ke(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(_t(it.display.wrapper,"CodeMirror-wrap"),qs(it)),ys(it),El(it),rl(it),setTimeout(function(){return Fr(it)},100)}function vs(it,st){var mt=this;if(!(this instanceof vs))return new vs(it,st);this.options=st=st?Ue(st):{},Ue(Co,st,!1);var pt=st.value;typeof pt=="string"?pt=new Lu(pt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(pt.modeOption=st.mode),this.doc=pt;var Bt=new vs.inputStyles[st.inputStyle](this),Jt=this.display=new sr(it,pt,Bt,st);Jt.wrapper.CodeMirror=this,ur(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Oi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ne,keySeq:null,specialChars:null},st.autofocus&&!tt&&Jt.input.focus(),ee&&Vt<11&&setTimeout(function(){return mt.display.input.reset(!0)},20),iu(this),ah(),Or(this),this.curOp.forceUpdate=!0,Ko(this,pt),st.autofocus&&!tt||this.hasFocus()?setTimeout(function(){mt.hasFocus()&&!mt.state.focused&&Et(mt)},20):wt(this);for(var Se in ms)ms.hasOwnProperty(Se)&&ms[Se](this,st[Se],Ur);ki(this),st.finishInit&&st.finishInit(this);for(var je=0;je<ru.length;++je)ru[je](this);Jn(this),Mt&&st.lineWrapping&&getComputedStyle(Jt.lineDiv).textRendering=="optimizelegibility"&&(Jt.lineDiv.style.textRendering="auto")}vs.defaults=Co,vs.optionHandlers=ms;function iu(it){var st=it.display;ln(st.scroller,"mousedown",Tn(it,Dh)),ee&&Vt<11?ln(st.scroller,"dblclick",Tn(it,function(De){if(!Di(it,De)){var an=oh(it,De);if(!(!an||vn(it,De)||lu(it.display,De))){br(De);var si=it.findWordAt(an);ea(it.doc,si.anchor,si.head)}}})):ln(st.scroller,"dblclick",function(De){return Di(it,De)||br(De)}),ln(st.scroller,"contextmenu",function(De){return Si(it,De)}),ln(st.input.getField(),"contextmenu",function(De){st.scroller.contains(De.target)||Si(it,De)});var mt,pt={end:0};function Bt(){st.activeTouch&&(mt=setTimeout(function(){return st.activeTouch=null},1e3),pt=st.activeTouch,pt.end=+new Date)}function Jt(De){if(De.touches.length!=1)return!1;var an=De.touches[0];return an.radiusX<=1&&an.radiusY<=1}function Se(De,an){if(an.left==null)return!0;var si=an.left-De.left,fn=an.top-De.top;return si*si+fn*fn>20*20}ln(st.scroller,"touchstart",function(De){if(!Di(it,De)&&!Jt(De)&&!vn(it,De)){st.input.ensurePolled(),clearTimeout(mt);var an=+new Date;st.activeTouch={start:an,moved:!1,prev:an-pt.end<=300?pt:null},De.touches.length==1&&(st.activeTouch.left=De.touches[0].pageX,st.activeTouch.top=De.touches[0].pageY)}}),ln(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),ln(st.scroller,"touchend",function(De){var an=st.activeTouch;if(an&&!lu(st,De)&&an.left!=null&&!an.moved&&new Date-an.start<300){var si=it.coordsChar(st.activeTouch,"page"),fn;!an.prev||Se(an,an.prev)?fn=new _r(si,si):!an.prev.prev||Se(an,an.prev.prev)?fn=it.findWordAt(si):fn=new _r(kn(si.line,0),or(it.doc,kn(si.line+1,0))),it.setSelection(fn.anchor,fn.head),it.focus(),br(De)}Bt()}),ln(st.scroller,"touchcancel",Bt),ln(st.scroller,"scroll",function(){st.scroller.clientHeight&&(ti(it,st.scroller.scrollTop),Rn(it,st.scroller.scrollLeft,!0),On(it,"scroll",it))}),ln(st.scroller,"mousewheel",function(De){return ho(it,De)}),ln(st.scroller,"DOMMouseScroll",function(De){return ho(it,De)}),ln(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(De){Di(it,De)||qr(De)},over:function(De){Di(it,De)||(CA(it,De),qr(De))},start:function(De){return id(it,De)},drop:Tn(it,Kd),leave:function(De){Di(it,De)||Uc(it)}};var je=st.input.getField();ln(je,"keyup",function(De){return uA.call(it,De)}),ln(je,"keydown",Tn(it,od)),ln(je,"keypress",Tn(it,Pc)),ln(je,"focus",function(De){return Et(it,De)}),ln(je,"blur",function(De){return wt(it,De)})}var ru=[];vs.defineInitHook=function(it){return ru.push(it)};function Qa(it,st,mt,pt){var Bt=it.doc,Jt;mt==null&&(mt="add"),mt=="smart"&&(Bt.mode.indent?Jt=_o(it,st).state:mt="prev");var Se=it.options.tabSize,je=Cn(Bt,st),De=ve(je.text,null,Se);je.stateAfter&&(je.stateAfter=null);var an=je.text.match(/^\s*/)[0],si;if(!pt&&!/\S/.test(je.text))si=0,mt="not";else if(mt=="smart"&&(si=Bt.mode.indent(Jt,je.text.slice(an.length),je.text),si==Ln||si>150)){if(!pt)return;mt="prev"}mt=="prev"?st>Bt.first?si=ve(Cn(Bt,st-1).text,null,Se):si=0:mt=="add"?si=De+it.options.indentUnit:mt=="subtract"?si=De-it.options.indentUnit:typeof mt=="number"&&(si=De+mt),si=Math.max(0,si);var fn="",Ti=0;if(it.options.indentWithTabs)for(var bi=Math.floor(si/Se);bi;--bi)Ti+=Se,fn+=" ";if(Ti<si&&(fn+=Pi(si-Ti)),fn!=an)return oc(Bt,fn,kn(st,0),kn(st,an.length),"+input"),je.stateAfter=null,!0;for(var Sr=0;Sr<Bt.sel.ranges.length;Sr++){var Dr=Bt.sel.ranges[Sr];if(Dr.head.line==st&&Dr.head.ch<an.length){var Jr=kn(st,an.length);Na(Bt,Sr,new _r(Jr,Jr));break}}}var Kl=null;function Nu(it){Kl=it}function ac(it,st,mt,pt,Bt){var Jt=it.doc;it.display.shift=!1,pt||(pt=Jt.sel);var Se=+new Date-200,je=Bt=="paste"||it.state.pasteIncoming>Se,De=xo(st),an=null;if(je&&pt.ranges.length>1)if(Kl&&Kl.text.join(`
`)==st){if(pt.ranges.length%Kl.text.length==0){an=[];for(var si=0;si<Kl.text.length;si++)an.push(Jt.splitLines(Kl.text[si]))}}else De.length==pt.ranges.length&&it.options.pasteLinesPerSelection&&(an=Li(De,function(vo){return[vo]}));for(var fn=it.curOp.updateInput,Ti=pt.ranges.length-1;Ti>=0;Ti--){var bi=pt.ranges[Ti],Sr=bi.from(),Dr=bi.to();bi.empty()&&(mt&&mt>0?Sr=kn(Sr.line,Sr.ch-mt):it.state.overwrite&&!je?Dr=kn(Dr.line,Math.min(Cn(Jt,Dr.line).text.length,Dr.ch+tn(De).length)):je&&Kl&&Kl.lineWise&&Kl.text.join(`
`)==De.join(`
`)&&(Sr=Dr=kn(Sr.line,0)));var Jr={from:Sr,to:Dr,text:an?an[Ti%an.length]:De,origin:Bt||(je?"paste":it.state.cutIncoming>Se?"cut":"+input")};Rl(it.doc,Jr),Gr(it,"inputRead",it,Jr)}st&&!je&&lc(it,st),dn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=fn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Fh(it,st){var mt=it.clipboardData&&it.clipboardData.getData("Text");if(mt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&en(st,function(){return ac(st,mt,0,null,"paste")}),!0}function lc(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var mt=it.doc.sel,pt=mt.ranges.length-1;pt>=0;pt--){var Bt=mt.ranges[pt];if(!(Bt.head.ch>100||pt&&mt.ranges[pt-1].head.line==Bt.head.line)){var Jt=it.getModeAt(Bt.head),Se=!1;if(Jt.electricChars){for(var je=0;je<Jt.electricChars.length;je++)if(st.indexOf(Jt.electricChars.charAt(je))>-1){Se=Qa(it,Bt.head.line,"smart");break}}else Jt.electricInput&&Jt.electricInput.test(Cn(it.doc,Bt.head.line).text.slice(0,Bt.head.ch))&&(Se=Qa(it,Bt.head.line,"smart"));Se&&Gr(it,"electricInput",it,Bt.head.line)}}}function LA(it){for(var st=[],mt=[],pt=0;pt<it.doc.sel.ranges.length;pt++){var Bt=it.doc.sel.ranges[pt].head.line,Jt={anchor:kn(Bt,0),head:kn(Bt+1,0)};mt.push(Jt),st.push(it.getRange(Jt.anchor,Jt.head))}return{text:st,ranges:mt}}function dA(it,st,mt,pt){it.setAttribute("autocorrect",mt?"":"off"),it.setAttribute("autocapitalize",pt?"":"off"),it.setAttribute("spellcheck",!!st)}function MA(){var it=fe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=fe("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Mt?it.style.width="1000px":it.setAttribute("wrap","off"),Ct&&(it.style.border="1px solid black"),dA(it),st}function pc(it){var st=it.optionHandlers,mt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(pt,Bt){var Jt=this.options,Se=Jt[pt];Jt[pt]==Bt&&pt!="mode"||(Jt[pt]=Bt,st.hasOwnProperty(pt)&&Tn(this,st[pt])(this,Bt,Se),On(this,"optionChange",this,pt))},getOption:function(pt){return this.options[pt]},getDoc:function(){return this.doc},addKeyMap:function(pt,Bt){this.state.keyMaps[Bt?"push":"unshift"](cu(pt))},removeKeyMap:function(pt){for(var Bt=this.state.keyMaps,Jt=0;Jt<Bt.length;++Jt)if(Bt[Jt]==pt||Bt[Jt].name==pt)return Bt.splice(Jt,1),!0},addOverlay:Un(function(pt,Bt){var Jt=pt.token?pt:it.getMode(this.options,pt);if(Jt.startState)throw new Error("Overlays may not be stateful.");ji(this.state.overlays,{mode:Jt,modeSpec:pt,opaque:Bt&&Bt.opaque,priority:Bt&&Bt.priority||0},function(Se){return Se.priority}),this.state.modeGen++,El(this)}),removeOverlay:Un(function(pt){for(var Bt=this.state.overlays,Jt=0;Jt<Bt.length;++Jt){var Se=Bt[Jt].modeSpec;if(Se==pt||typeof pt=="string"&&Se.name==pt){Bt.splice(Jt,1),this.state.modeGen++,El(this);return}}}),indentLine:Un(function(pt,Bt,Jt){typeof Bt!="string"&&typeof Bt!="number"&&(Bt==null?Bt=this.options.smartIndent?"smart":"prev":Bt=Bt?"add":"subtract"),Ni(this.doc,pt)&&Qa(this,pt,Bt,Jt)}),indentSelection:Un(function(pt){for(var Bt=this.doc.sel.ranges,Jt=-1,Se=0;Se<Bt.length;Se++){var je=Bt[Se];if(je.empty())je.head.line>Jt&&(Qa(this,je.head.line,pt,!0),Jt=je.head.line,Se==this.doc.sel.primIndex&&dn(this));else{var De=je.from(),an=je.to(),si=Math.max(Jt,De.line);Jt=Math.min(this.lastLine(),an.line-(an.ch?0:1))+1;for(var fn=si;fn<Jt;++fn)Qa(this,fn,pt);var Ti=this.doc.sel.ranges;De.ch==0&&Bt.length==Ti.length&&Ti[Se].from().ch>0&&Na(this.doc,Se,new _r(De,Ti[Se].to()),Ve)}}}),getTokenAt:function(pt,Bt){return qo(this,pt,Bt)},getLineTokens:function(pt,Bt){return qo(this,kn(pt),Bt,!0)},getTokenTypeAt:function(pt){pt=or(this.doc,pt);var Bt=Ss(this,Cn(this.doc,pt.line)),Jt=0,Se=(Bt.length-1)/2,je=pt.ch,De;if(je==0)De=Bt[2];else for(;;){var an=Jt+Se>>1;if((an?Bt[an*2-1]:0)>=je)Se=an;else if(Bt[an*2+1]<je)Jt=an+1;else{De=Bt[an*2+2];break}}var si=De?De.indexOf("overlay "):-1;return si<0?De:si==0?null:De.slice(0,si-1)},getModeAt:function(pt){var Bt=this.doc.mode;return Bt.innerMode?it.innerMode(Bt,this.getTokenAt(pt).state).mode:Bt},getHelper:function(pt,Bt){return this.getHelpers(pt,Bt)[0]},getHelpers:function(pt,Bt){var Jt=[];if(!mt.hasOwnProperty(Bt))return Jt;var Se=mt[Bt],je=this.getModeAt(pt);if(typeof je[Bt]=="string")Se[je[Bt]]&&Jt.push(Se[je[Bt]]);else if(je[Bt])for(var De=0;De<je[Bt].length;De++){var an=Se[je[Bt][De]];an&&Jt.push(an)}else je.helperType&&Se[je.helperType]?Jt.push(Se[je.helperType]):Se[je.name]&&Jt.push(Se[je.name]);for(var si=0;si<Se._global.length;si++){var fn=Se._global[si];fn.pred(je,this)&&Ce(Jt,fn.val)==-1&&Jt.push(fn.val)}return Jt},getStateAfter:function(pt,Bt){var Jt=this.doc;return pt=wr(Jt,pt==null?Jt.first+Jt.size-1:pt),_o(this,pt+1,Bt).state},cursorCoords:function(pt,Bt){var Jt,Se=this.doc.sel.primary();return pt==null?Jt=Se.head:typeof pt=="object"?Jt=or(this.doc,pt):Jt=pt?Se.from():Se.to(),ll(this,Jt,Bt||"page")},charCoords:function(pt,Bt){return dh(this,or(this.doc,pt),Bt||"page")},coordsChar:function(pt,Bt){return pt=fc(this,pt,Bt||"page"),Bh(this,pt.left,pt.top)},lineAtHeight:function(pt,Bt){return pt=fc(this,{top:pt,left:0},Bt||"page").top,di(this.doc,pt+this.display.viewOffset)},heightAtLine:function(pt,Bt,Jt){var Se=!1,je;if(typeof pt=="number"){var De=this.doc.first+this.doc.size-1;pt<this.doc.first?pt=this.doc.first:pt>De&&(pt=De,Se=!0),je=Cn(this.doc,pt)}else je=pt;return jl(this,je,{top:0,left:0},Bt||"page",Jt||Se).top+(Se?this.doc.height-zs(je):0)},defaultTextHeight:function(){return Wu(this.display)},defaultCharWidth:function(){return Ph(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pt,Bt,Jt,Se,je){var De=this.display;pt=ll(this,or(this.doc,pt));var an=pt.bottom,si=pt.left;if(Bt.style.position="absolute",Bt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Bt),De.sizer.appendChild(Bt),Se=="over")an=pt.top;else if(Se=="above"||Se=="near"){var fn=Math.max(De.wrapper.clientHeight,this.doc.height),Ti=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(Se=="above"||pt.bottom+Bt.offsetHeight>fn)&&pt.top>Bt.offsetHeight?an=pt.top-Bt.offsetHeight:pt.bottom+Bt.offsetHeight<=fn&&(an=pt.bottom),si+Bt.offsetWidth>Ti&&(si=Ti-Bt.offsetWidth)}Bt.style.top=an+"px",Bt.style.left=Bt.style.right="",je=="right"?(si=De.sizer.clientWidth-Bt.offsetWidth,Bt.style.right="0px"):(je=="left"?si=0:je=="middle"&&(si=(De.sizer.clientWidth-Bt.offsetWidth)/2),Bt.style.left=si+"px"),Jt&&we(this,{left:si,top:an,right:si+Bt.offsetWidth,bottom:an+Bt.offsetHeight})},triggerOnKeyDown:Un(od),triggerOnKeyPress:Un(Pc),triggerOnKeyUp:uA,triggerOnMouseDown:Un(Dh),execCommand:function(pt){if(Mu.hasOwnProperty(pt))return Mu[pt].call(null,this)},triggerElectric:Un(function(pt){lc(this,pt)}),findPosH:function(pt,Bt,Jt,Se){var je=1;Bt<0&&(je=-1,Bt=-Bt);for(var De=or(this.doc,pt),an=0;an<Bt&&(De=Fd(this.doc,De,je,Jt,Se),!De.hitSide);++an);return De},moveH:Un(function(pt,Bt){var Jt=this;this.extendSelectionsBy(function(Se){return Jt.display.shift||Jt.doc.extend||Se.empty()?Fd(Jt.doc,Se.head,pt,Bt,Jt.options.rtlMoveVisually):pt<0?Se.from():Se.to()},Zn)}),deleteH:Un(function(pt,Bt){var Jt=this.doc.sel,Se=this.doc;Jt.somethingSelected()?Se.replaceSelection("",null,"+delete"):vu(this,function(je){var De=Fd(Se,je.head,pt,Bt,!1);return pt<0?{from:De,to:je.head}:{from:je.head,to:De}})}),findPosV:function(pt,Bt,Jt,Se){var je=1,De=Se;Bt<0&&(je=-1,Bt=-Bt);for(var an=or(this.doc,pt),si=0;si<Bt;++si){var fn=ll(this,an,"div");if(De==null?De=fn.left:fn.left=De,an=Gc(this,fn,je,Jt),an.hitSide)break}return an},moveV:Un(function(pt,Bt){var Jt=this,Se=this.doc,je=[],De=!this.display.shift&&!Se.extend&&Se.sel.somethingSelected();if(Se.extendSelectionsBy(function(si){if(De)return pt<0?si.from():si.to();var fn=ll(Jt,si.head,"div");si.goalColumn!=null&&(fn.left=si.goalColumn),je.push(fn.left);var Ti=Gc(Jt,fn,pt,Bt);return Bt=="page"&&si==Se.sel.primary()&&Xe(Jt,dh(Jt,Ti,"div").top-fn.top),Ti},Zn),je.length)for(var an=0;an<Se.sel.ranges.length;an++)Se.sel.ranges[an].goalColumn=je[an]}),findWordAt:function(pt){var Bt=this.doc,Jt=Cn(Bt,pt.line).text,Se=pt.ch,je=pt.ch;if(Jt){var De=this.getHelper(pt,"wordChars");(pt.sticky=="before"||je==Jt.length)&&Se?--Se:++je;for(var an=Jt.charAt(Se),si=ft(an,De)?function(fn){return ft(fn,De)}:/\s/.test(an)?function(fn){return/\s/.test(fn)}:function(fn){return!/\s/.test(fn)&&!ft(fn)};Se>0&&si(Jt.charAt(Se-1));)--Se;for(;je<Jt.length&&si(Jt.charAt(je));)++je}return new _r(kn(pt.line,Se),kn(pt.line,je))},toggleOverwrite:function(pt){pt!=null&&pt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ke(this.display.cursorDiv,"CodeMirror-overwrite"):_t(this.display.cursorDiv,"CodeMirror-overwrite"),On(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Wt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Un(function(pt,Bt){An(this,pt,Bt)}),getScrollInfo:function(){var pt=this.display.scroller;return{left:pt.scrollLeft,top:pt.scrollTop,height:pt.scrollHeight-fu(this)-this.display.barHeight,width:pt.scrollWidth-fu(this)-this.display.barWidth,clientHeight:zo(this),clientWidth:nu(this)}},scrollIntoView:Un(function(pt,Bt){pt==null?(pt={from:this.doc.sel.primary().head,to:null},Bt==null&&(Bt=this.options.cursorScrollMargin)):typeof pt=="number"?pt={from:kn(pt,0),to:null}:pt.from==null&&(pt={from:pt,to:null}),pt.to||(pt.to=pt.from),pt.margin=Bt||0,pt.from.line!=null?Pn(this,pt):mi(this,pt.from,pt.to,pt.margin)}),setSize:Un(function(pt,Bt){var Jt=this,Se=function(De){return typeof De=="number"||/^\d+$/.test(String(De))?De+"px":De};pt!=null&&(this.display.wrapper.style.width=Se(pt)),Bt!=null&&(this.display.wrapper.style.height=Se(Bt)),this.options.lineWrapping&&Ya(this);var je=this.display.viewFrom;this.doc.iter(je,this.display.viewTo,function(De){if(De.widgets){for(var an=0;an<De.widgets.length;an++)if(De.widgets[an].noHScroll){oa(Jt,je,"widget");break}}++je}),this.curOp.forceUpdate=!0,On(this,"refresh",this)}),operation:function(pt){return en(this,pt)},startOperation:function(){return Or(this)},endOperation:function(){return Jn(this)},refresh:Un(function(){var pt=this.display.cachedTextHeight;El(this),this.curOp.forceUpdate=!0,rl(this),An(this,this.doc.scrollLeft,this.doc.scrollTop),Ar(this.display),(pt==null||Math.abs(pt-Wu(this.display))>.5||this.options.lineWrapping)&&ys(this),On(this,"refresh",this)}),swapDoc:Un(function(pt){var Bt=this.doc;return Bt.cm=null,this.state.selectingText&&this.state.selectingText(),Ko(this,pt),rl(this),this.display.input.reset(),An(this,pt.scrollLeft,pt.scrollTop),this.curOp.forceScroll=!0,Gr(this,"swapDoc",this,Bt),Bt}),phrase:function(pt){var Bt=this.options.phrases;return Bt&&Object.prototype.hasOwnProperty.call(Bt,pt)?Bt[pt]:pt},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Mr(it),it.registerHelper=function(pt,Bt,Jt){mt.hasOwnProperty(pt)||(mt[pt]=it[pt]={_global:[]}),mt[pt][Bt]=Jt},it.registerGlobalHelper=function(pt,Bt,Jt,Se){it.registerHelper(pt,Bt,Se),mt[pt]._global.push({pred:Jt,val:Se})}}function Fd(it,st,mt,pt,Bt){var Jt=st,Se=mt,je=Cn(it,st.line),De=Bt&&it.direction=="rtl"?-mt:mt;function an(){var Xo=st.line+De;return Xo<it.first||Xo>=it.first+it.size?!1:(st=new kn(Xo,st.ch,st.sticky),je=Cn(it,Xo))}function si(Xo){var No;if(pt=="codepoint"){var as=je.text.charCodeAt(st.ch+(pt>0?0:-1));isNaN(as)?No=null:No=new kn(st.line,Math.max(0,Math.min(je.text.length,st.ch+mt*(as>=55296&&as<56320?2:1))),-mt)}else Bt?No=Za(it.cm,je,st,mt):No=_l(je,st,mt);if(No==null)if(!Xo&&an())st=ka(Bt,it.cm,je,st.line,De);else return!1;else st=No;return!0}if(pt=="char"||pt=="codepoint")si();else if(pt=="column")si(!0);else if(pt=="word"||pt=="group")for(var fn=null,Ti=pt=="group",bi=it.cm&&it.cm.getHelper(st,"wordChars"),Sr=!0;!(mt<0&&!si(!Sr));Sr=!1){var Dr=je.text.charAt(st.ch)||`
`,Jr=ft(Dr,bi)?"w":Ti&&Dr==`
`?"n":!Ti||/\s/.test(Dr)?null:"p";if(Ti&&!Sr&&!Jr&&(Jr="s"),fn&&fn!=Jr){mt<0&&(mt=1,si(),st.sticky="after");break}if(Jr&&(fn=Jr),mt>0&&!si(!Sr))break}var vo=Ah(it,st,Jt,Se,!0);return Br(Jt,vo)&&(vo.hitSide=!0),vo}function Gc(it,st,mt,pt){var Bt=it.doc,Jt=st.left,Se;if(pt=="page"){var je=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(je-.5*Wu(it.display),3);Se=(mt>0?st.bottom:st.top)+mt*De}else pt=="line"&&(Se=mt>0?st.bottom+3:st.top-3);for(var an;an=Bh(it,Jt,Se),!!an.outside;){if(mt<0?Se<=0:Se>=Bt.height){an.hitSide=!0;break}Se+=mt*5}return an}var fl=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ne,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};fl.prototype.init=function(it){var st=this,mt=this,pt=mt.cm,Bt=mt.div=it.lineDiv;dA(Bt,pt.options.spellcheck,pt.options.autocorrect,pt.options.autocapitalize);function Jt(je){for(var De=je.target;De;De=De.parentNode){if(De==Bt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}ln(Bt,"paste",function(je){!Jt(je)||Di(pt,je)||Fh(je,pt)||Vt<=11&&setTimeout(Tn(pt,function(){return st.updateFromDOM()}),20)}),ln(Bt,"compositionstart",function(je){st.composing={data:je.data,done:!1}}),ln(Bt,"compositionupdate",function(je){st.composing||(st.composing={data:je.data,done:!1})}),ln(Bt,"compositionend",function(je){st.composing&&(je.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),ln(Bt,"touchstart",function(){return mt.forceCompositionEnd()}),ln(Bt,"input",function(){st.composing||st.readFromDOMSoon()});function Se(je){if(!(!Jt(je)||Di(pt,je))){if(pt.somethingSelected())Nu({lineWise:!1,text:pt.getSelections()}),je.type=="cut"&&pt.replaceSelection("",null,"cut");else if(pt.options.lineWiseCopyCut){var De=LA(pt);Nu({lineWise:!0,text:De.text}),je.type=="cut"&&pt.operation(function(){pt.setSelections(De.ranges,0,Ve),pt.replaceSelection("",null,"cut")})}else return;if(je.clipboardData){je.clipboardData.clearData();var an=Kl.text.join(`
`);if(je.clipboardData.setData("Text",an),je.clipboardData.getData("Text")==an){je.preventDefault();return}}var si=MA(),fn=si.firstChild;pt.display.lineSpace.insertBefore(si,pt.display.lineSpace.firstChild),fn.value=Kl.text.join(`
`);var Ti=document.activeElement;Ne(fn),setTimeout(function(){pt.display.lineSpace.removeChild(si),Ti.focus(),Ti==Bt&&mt.showPrimarySelection()},50)}}ln(Bt,"copy",Se),ln(Bt,"cut",Se)},fl.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},fl.prototype.prepareSelection=function(){var it=wd(this.cm,!1);return it.focus=document.activeElement==this.div,it},fl.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},fl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},fl.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,mt=st.doc.sel.primary(),pt=mt.from(),Bt=mt.to();if(st.display.viewTo==st.display.viewFrom||pt.line>=st.display.viewTo||Bt.line<st.display.viewFrom){it.removeAllRanges();return}var Jt=mc(st,it.anchorNode,it.anchorOffset),Se=mc(st,it.focusNode,it.focusOffset);if(!(Jt&&!Jt.bad&&Se&&!Se.bad&&yi(cr(Jt,Se),pt)==0&&yi(zr(Jt,Se),Bt)==0)){var je=st.display.view,De=pt.line>=st.display.viewFrom&&Iu(st,pt)||{node:je[0].measure.map[2],offset:0},an=Bt.line<st.display.viewTo&&Iu(st,Bt);if(!an){var si=je[je.length-1].measure,fn=si.maps?si.maps[si.maps.length-1]:si.map;an={node:fn[fn.length-1],offset:fn[fn.length-2]-fn[fn.length-3]}}if(!De||!an){it.removeAllRanges();return}var Ti=it.rangeCount&&it.getRangeAt(0),bi;try{bi=te(De.node,De.offset,an.offset,an.node)}catch(Sr){}bi&&(!Lt&&st.state.focused?(it.collapse(De.node,De.offset),bi.collapsed||(it.removeAllRanges(),it.addRange(bi))):(it.removeAllRanges(),it.addRange(bi)),Ti&&it.anchorNode==null?it.addRange(Ti):Lt&&this.startGracePeriod()),this.rememberSelection()}},fl.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},fl.prototype.showMultipleSelections=function(it){he(this.cm.display.cursorDiv,it.cursors),he(this.cm.display.selectionDiv,it.selection)},fl.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},fl.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return He(this.div,st)},fl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},fl.prototype.blur=function(){this.div.blur()},fl.prototype.getField=function(){return this.div},fl.prototype.supportsTouch=function(){return!0},fl.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():en(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function st(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,st))}this.polling.set(this.cm.options.pollInterval,st)},fl.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},fl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&qt&&this.cm.display.gutterSpecs.length&&Yd(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var mt=mc(st,it.anchorNode,it.anchorOffset),pt=mc(st,it.focusNode,it.focusOffset);mt&&pt&&en(st,function(){Ia(st.doc,us(mt,pt),Ve),(mt.bad||pt.bad)&&(st.curOp.selectionChanged=!0)})}}},fl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,st=it.display,mt=it.doc.sel.primary(),pt=mt.from(),Bt=mt.to();if(pt.ch==0&&pt.line>it.firstLine()&&(pt=kn(pt.line-1,Cn(it.doc,pt.line-1).length)),Bt.ch==Cn(it.doc,Bt.line).text.length&&Bt.line<it.lastLine()&&(Bt=kn(Bt.line+1,0)),pt.line<st.viewFrom||Bt.line>st.viewTo-1)return!1;var Jt,Se,je;pt.line==st.viewFrom||(Jt=Xu(it,pt.line))==0?(Se=gn(st.view[0].line),je=st.view[0].node):(Se=gn(st.view[Jt].line),je=st.view[Jt-1].node.nextSibling);var De=Xu(it,Bt.line),an,si;if(De==st.view.length-1?(an=st.viewTo-1,si=st.lineDiv.lastChild):(an=gn(st.view[De+1].line)-1,si=st.view[De+1].node.previousSibling),!je)return!1;for(var fn=it.doc.splitLines(jh(it,je,si,Se,an)),Ti=Gn(it.doc,kn(Se,0),kn(an,Cn(it.doc,an).text.length));fn.length>1&&Ti.length>1;)if(tn(fn)==tn(Ti))fn.pop(),Ti.pop(),an--;else if(fn[0]==Ti[0])fn.shift(),Ti.shift(),Se++;else break;for(var bi=0,Sr=0,Dr=fn[0],Jr=Ti[0],vo=Math.min(Dr.length,Jr.length);bi<vo&&Dr.charCodeAt(bi)==Jr.charCodeAt(bi);)++bi;for(var Xo=tn(fn),No=tn(Ti),as=Math.min(Xo.length-(fn.length==1?bi:0),No.length-(Ti.length==1?bi:0));Sr<as&&Xo.charCodeAt(Xo.length-Sr-1)==No.charCodeAt(No.length-Sr-1);)++Sr;if(fn.length==1&&Ti.length==1&&Se==pt.line)for(;bi&&bi>pt.ch&&Xo.charCodeAt(Xo.length-Sr-1)==No.charCodeAt(No.length-Sr-1);)bi--,Sr++;fn[fn.length-1]=Xo.slice(0,Xo.length-Sr).replace(/^\u200b+/,""),fn[0]=fn[0].slice(bi).replace(/\u200b+$/,"");var Ms=kn(Se,bi),Io=kn(an,Ti.length?tn(Ti).length-Sr:0);if(fn.length>1||fn[0]||yi(Ms,Io))return oc(it.doc,fn,Ms,Io,"+input"),!0},fl.prototype.ensurePolled=function(){this.forceCompositionEnd()},fl.prototype.reset=function(){this.forceCompositionEnd()},fl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},fl.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},fl.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&en(this.cm,function(){return El(it.cm)})},fl.prototype.setUneditable=function(it){it.contentEditable="false"},fl.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Tn(this.cm,ac)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},fl.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},fl.prototype.onContextMenu=function(){},fl.prototype.resetPosition=function(){},fl.prototype.needsContentAttribute=!0;function Iu(it,st){var mt=nc(it,st.line);if(!mt||mt.hidden)return null;var pt=Cn(it.doc,st.line),Bt=Eu(mt,pt,st.line),Jt=Wn(pt,it.doc.direction),Se="left";if(Jt){var je=Me(Jt,st.ch);Se=je%2?"right":"left"}var De=Oc(Bt.map,st.ch,Se);return De.offset=De.collapse=="right"?De.end:De.start,De}function Yd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Wl(it,st){return st&&(it.bad=!0),it}function jh(it,st,mt,pt,Bt){var Jt="",Se=!1,je=it.doc.lineSeparator(),De=!1;function an(bi){return function(Sr){return Sr.id==bi}}function si(){Se&&(Jt+=je,De&&(Jt+=je),Se=De=!1)}function fn(bi){bi&&(si(),Jt+=bi)}function Ti(bi){if(bi.nodeType==1){var Sr=bi.getAttribute("cm-text");if(Sr){fn(Sr);return}var Dr=bi.getAttribute("cm-marker"),Jr;if(Dr){var vo=it.findMarks(kn(pt,0),kn(Bt+1,0),an(+Dr));vo.length&&(Jr=vo[0].find(0))&&fn(Gn(it.doc,Jr.from,Jr.to).join(je));return}if(bi.getAttribute("contenteditable")=="false")return;var Xo=/^(pre|div|p|li|table|br)$/i.test(bi.nodeName);if(!/^br$/i.test(bi.nodeName)&&bi.textContent.length==0)return;Xo&&si();for(var No=0;No<bi.childNodes.length;No++)Ti(bi.childNodes[No]);/^(pre|p)$/i.test(bi.nodeName)&&(De=!0),Xo&&(Se=!0)}else bi.nodeType==3&&fn(bi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ti(st),st!=mt;)st=st.nextSibling,De=!1;return Jt}function mc(it,st,mt){var pt;if(st==it.display.lineDiv){if(pt=it.display.lineDiv.childNodes[mt],!pt)return Wl(it.clipPos(kn(it.display.viewTo-1)),!0);st=null,mt=0}else for(pt=st;;pt=pt.parentNode){if(!pt||pt==it.display.lineDiv)return null;if(pt.parentNode&&pt.parentNode==it.display.lineDiv)break}for(var Bt=0;Bt<it.display.view.length;Bt++){var Jt=it.display.view[Bt];if(Jt.node==pt)return th(Jt,st,mt)}}function th(it,st,mt){var pt=it.text.firstChild,Bt=!1;if(!st||!He(pt,st))return Wl(kn(gn(it.line),0),!0);if(st==pt&&(Bt=!0,st=pt.childNodes[mt],mt=0,!st)){var Jt=it.rest?tn(it.rest):it.line;return Wl(kn(gn(Jt),Jt.text.length),Bt)}var Se=st.nodeType==3?st:null,je=st;for(!Se&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(Se=st.firstChild,mt&&(mt=Se.nodeValue.length));je.parentNode!=pt;)je=je.parentNode;var De=it.measure,an=De.maps;function si(Jr,vo,Xo){for(var No=-1;No<(an?an.length:0);No++)for(var as=No<0?De.map:an[No],Ms=0;Ms<as.length;Ms+=3){var Io=as[Ms+2];if(Io==Jr||Io==vo){var na=gn(No<0?it.line:it.rest[No]),Cl=as[Ms]+Xo;return(Xo<0||Io!=Jr)&&(Cl=as[Ms+(Xo?1:0)]),kn(na,Cl)}}}var fn=si(Se,je,mt);if(fn)return Wl(fn,Bt);for(var Ti=je.nextSibling,bi=Se?Se.nodeValue.length-mt:0;Ti;Ti=Ti.nextSibling){if(fn=si(Ti,Ti.firstChild,0),fn)return Wl(kn(fn.line,fn.ch-bi),Bt);bi+=Ti.textContent.length}for(var Sr=je.previousSibling,Dr=mt;Sr;Sr=Sr.previousSibling){if(fn=si(Sr,Sr.firstChild,-1),fn)return Wl(kn(fn.line,fn.ch+Dr),Bt);Dr+=Sr.textContent.length}}var Vl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};Vl.prototype.init=function(it){var st=this,mt=this,pt=this.cm;this.createField(it);var Bt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Ct&&(Bt.style.width="0px"),ln(Bt,"input",function(){ee&&Vt>=9&&st.hasSelection&&(st.hasSelection=null),mt.poll()}),ln(Bt,"paste",function(Se){Di(pt,Se)||Fh(Se,pt)||(pt.state.pasteIncoming=+new Date,mt.fastPoll())});function Jt(Se){if(!Di(pt,Se)){if(pt.somethingSelected())Nu({lineWise:!1,text:pt.getSelections()});else if(pt.options.lineWiseCopyCut){var je=LA(pt);Nu({lineWise:!0,text:je.text}),Se.type=="cut"?pt.setSelections(je.ranges,null,Ve):(mt.prevInput="",Bt.value=je.text.join(`
`),Ne(Bt))}else return;Se.type=="cut"&&(pt.state.cutIncoming=+new Date)}}ln(Bt,"cut",Jt),ln(Bt,"copy",Jt),ln(it.scroller,"paste",function(Se){if(!(lu(it,Se)||Di(pt,Se))){if(!Bt.dispatchEvent){pt.state.pasteIncoming=+new Date,mt.focus();return}var je=new Event("paste");je.clipboardData=Se.clipboardData,Bt.dispatchEvent(je)}}),ln(it.lineSpace,"selectstart",function(Se){lu(it,Se)||br(Se)}),ln(Bt,"compositionstart",function(){var Se=pt.getCursor("from");mt.composing&&mt.composing.range.clear(),mt.composing={start:Se,range:pt.markText(Se,pt.getCursor("to"),{className:"CodeMirror-composing"})}}),ln(Bt,"compositionend",function(){mt.composing&&(mt.poll(),mt.composing.range.clear(),mt.composing=null)})},Vl.prototype.createField=function(it){this.wrapper=MA(),this.textarea=this.wrapper.firstChild},Vl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Vl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,mt=it.doc,pt=wd(it);if(it.options.moveInputWithCursor){var Bt=ll(it,mt.sel.primary().head,"div"),Jt=st.wrapper.getBoundingClientRect(),Se=st.lineDiv.getBoundingClientRect();pt.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,Bt.top+Se.top-Jt.top)),pt.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,Bt.left+Se.left-Jt.left))}return pt},Vl.prototype.showSelection=function(it){var st=this.cm,mt=st.display;he(mt.cursorDiv,it.cursors),he(mt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Vl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var mt=st.getSelection();this.textarea.value=mt,st.state.focused&&Ne(this.textarea),ee&&Vt>=9&&(this.hasSelection=mt)}else it||(this.prevInput=this.textarea.value="",ee&&Vt>=9&&(this.hasSelection=null))}},Vl.prototype.getField=function(){return this.textarea},Vl.prototype.supportsTouch=function(){return!1},Vl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Wt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Vl.prototype.blur=function(){this.textarea.blur()},Vl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vl.prototype.receivedFocus=function(){this.slowPoll()},Vl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Vl.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function mt(){var pt=st.poll();!pt&&!it?(it=!0,st.polling.set(60,mt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,mt)},Vl.prototype.poll=function(){var it=this,st=this.cm,mt=this.textarea,pt=this.prevInput;if(this.contextMenuPending||!st.state.focused||$t(mt)&&!pt&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var Bt=mt.value;if(Bt==pt&&!st.somethingSelected())return!1;if(ee&&Vt>=9&&this.hasSelection===Bt||lt&&/[\uf700-\uf7ff]/.test(Bt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var Jt=Bt.charCodeAt(0);if(Jt==8203&&!pt&&(pt="\u200B"),Jt==8666)return this.reset(),this.cm.execCommand("undo")}for(var Se=0,je=Math.min(pt.length,Bt.length);Se<je&&pt.charCodeAt(Se)==Bt.charCodeAt(Se);)++Se;return en(st,function(){ac(st,Bt.slice(Se),pt.length-Se,null,it.composing?"*compose":null),Bt.length>1e3||Bt.indexOf(`
`)>-1?mt.value=it.prevInput="":it.prevInput=Bt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vl.prototype.onKeyPress=function(){ee&&Vt>=9&&(this.hasSelection=null),this.fastPoll()},Vl.prototype.onContextMenu=function(it){var st=this,mt=st.cm,pt=mt.display,Bt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Jt=oh(mt,it),Se=pt.scroller.scrollTop;if(!Jt||bt)return;var je=mt.options.resetSelectionOnContextMenu;je&&mt.doc.sel.contains(Jt)==-1&&Tn(mt,Ia)(mt.doc,us(Jt),Ve);var De=Bt.style.cssText,an=st.wrapper.style.cssText,si=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",Bt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-si.top-5)+"px; left: "+(it.clientX-si.left-5)+`px;
z-index: 1000; background: `+(ee?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var fn;Mt&&(fn=window.scrollY),pt.input.focus(),Mt&&window.scrollTo(null,fn),pt.input.reset(),mt.somethingSelected()||(Bt.value=st.prevInput=" "),st.contextMenuPending=bi,pt.selForContextMenu=mt.doc.sel,clearTimeout(pt.detectingSelectAll);function Ti(){if(Bt.selectionStart!=null){var Dr=mt.somethingSelected(),Jr="\u200B"+(Dr?Bt.value:"");Bt.value="\u21DA",Bt.value=Jr,st.prevInput=Dr?"":"\u200B",Bt.selectionStart=1,Bt.selectionEnd=Jr.length,pt.selForContextMenu=mt.doc.sel}}function bi(){if(st.contextMenuPending==bi&&(st.contextMenuPending=!1,st.wrapper.style.cssText=an,Bt.style.cssText=De,ee&&Vt<9&&pt.scrollbars.setScrollTop(pt.scroller.scrollTop=Se),Bt.selectionStart!=null)){(!ee||ee&&Vt<9)&&Ti();var Dr=0,Jr=function(){pt.selForContextMenu==mt.doc.sel&&Bt.selectionStart==0&&Bt.selectionEnd>0&&st.prevInput=="\u200B"?Tn(mt,Ua)(mt):Dr++<10?pt.detectingSelectAll=setTimeout(Jr,500):(pt.selForContextMenu=null,pt.input.reset())};pt.detectingSelectAll=setTimeout(Jr,200)}}if(ee&&Vt>=9&&Ti(),Nt){qr(it);var Sr=function(){li(window,"mouseup",Sr),setTimeout(bi,20)};ln(window,"mouseup",Sr)}else setTimeout(bi,50)},Vl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Vl.prototype.setUneditable=function(){},Vl.prototype.needsContentAttribute=!1;function Ld(it,st){if(st=st?Ue(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var mt=Wt();st.autofocus=mt==it||it.getAttribute("autofocus")!=null&&mt==document.body}function pt(){it.value=je.getValue()}var Bt;if(it.form&&(ln(it.form,"submit",pt),!st.leaveSubmitMethodAlone)){var Jt=it.form;Bt=Jt.submit;try{var Se=Jt.submit=function(){pt(),Jt.submit=Bt,Jt.submit(),Jt.submit=Se}}catch(De){}}st.finishInit=function(De){De.save=pt,De.getTextArea=function(){return it},De.toTextArea=function(){De.toTextArea=isNaN,pt(),it.parentNode.removeChild(De.getWrapperElement()),it.style.display="",it.form&&(li(it.form,"submit",pt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=Bt))}},it.style.display="none";var je=vs(function(De){return it.parentNode.insertBefore(De,it.nextSibling)},st);return je}function Uh(it){it.off=li,it.on=ln,it.wheelEventPixels=Vr,it.Doc=Lu,it.splitLines=xo,it.countColumn=ve,it.findColumn=gi,it.isWordChar=gt,it.Pass=Ln,it.signal=On,it.Line=Qo,it.changeEnd=Yo,it.scrollbarModel=mr,it.Pos=kn,it.cmpPos=yi,it.modes=Gs,it.mimeModes=ha,it.resolveMode=Xn,it.getMode=Hn,it.modeExtensions=Mn,it.extendMode=qe,it.copyState=pi,it.startState=wn,it.innerMode=xi,it.commands=Mu,it.keyMap=mu,it.keyName=Vd,it.isModifierKey=Rc,it.lookupKey=qu,it.normalizeKeyMap=Wd,it.StringStream=Ee,it.SharedTextMarker=Oh,it.TextMarker=_n,it.LineWidget=hu,it.e_preventDefault=br,it.e_stopPropagation=eo,it.e_stop=qr,it.addClass=Ke,it.contains=He,it.rmClass=_t,it.keyNames=Gh}Js(vs),pc(vs);var lh="iter insert remove copy getEditor constructor".split(" ");for(var sd in Lu.prototype)Lu.prototype.hasOwnProperty(sd)&&Ce(lh,sd)<0&&(vs.prototype[sd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Lu.prototype[sd]));return Mr(Lu),vs.inputStyles={textarea:Vl,contenteditable:fl},vs.defineMode=function(it){!vs.defaults.mode&&it!="null"&&(vs.defaults.mode=it),Ws.apply(this,arguments)},vs.defineMIME=Hr,vs.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),vs.defineMIME("text/plain","null"),vs.defineExtension=function(it,st){vs.prototype[it]=st},vs.defineDocExtension=function(it,st){Lu.prototype[it]=st},vs.fromTextArea=Ld,Uh(vs),vs.version="5.58.2",vs})},25419:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780),Ft(15525),Ft(98101))})(function(Lt){"use strict";Lt.defineMode("markdown",function(ce,re){var Ie=Lt.getMode(ce,"text/html"),ee=Ie.name=="null";function Vt(ve){if(Lt.findModeByName){var ne=Lt.findModeByName(ve);ne&&(ve=ne.mime||ne.mimes[0])}var Ce=Lt.getMode(ce,ve);return Ce.name=="null"?null:Ce}re.highlightFormatting===void 0&&(re.highlightFormatting=!1),re.maxBlockquoteDepth===void 0&&(re.maxBlockquoteDepth=0),re.taskLists===void 0&&(re.taskLists=!1),re.strikethrough===void 0&&(re.strikethrough=!1),re.emoji===void 0&&(re.emoji=!1),re.fencedCodeBlockHighlighting===void 0&&(re.fencedCodeBlockHighlighting=!0),re.fencedCodeBlockDefaultMode===void 0&&(re.fencedCodeBlockDefaultMode="text/plain"),re.xml===void 0&&(re.xml=!0),re.tokenTypeOverrides===void 0&&(re.tokenTypeOverrides={});var Mt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var jt in Mt)Mt.hasOwnProperty(jt)&&re.tokenTypeOverrides[jt]&&(Mt[jt]=re.tokenTypeOverrides[jt]);var qt=/^([*\-_])(?:\s*\1){2,}\s*$/,bt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,se=/^\[(x| )\](?=\s)/i,Gt=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Xt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ct=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,lt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,rt=" ";function ht(ve,ne,Ce){return ne.f=ne.inline=Ce,Ce(ve,ne)}function dt(ve,ne,Ce){return ne.f=ne.block=Ce,Ce(ve,ne)}function xt(ve){return!ve||!/\S/.test(ve.string)}function Nt(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==_t){var ne=ee;if(!ne){var Ce=Lt.innerMode(Ie,ve.htmlState);ne=Ce.mode.name=="xml"&&Ce.state.tagStart===null&&!Ce.state.context&&Ce.state.tokenize.isInText}ne&&(ve.f=Le,ve.block=Ut,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function Ut(ve,ne){var Ce=ve.column()===ne.indentation,bn=xt(ne.prevLine.stream),Ln=ne.indentedCode,Ve=ne.prevLine.hr,Nn=ne.list!==!1,Zn=(ne.listStack[ne.listStack.length-1]||0)+3;ne.indentedCode=!1;var gi=ne.indentation;if(ne.indentationDiff===null&&(ne.indentationDiff=ne.indentation,Nn)){for(ne.list=null;gi<ne.listStack[ne.listStack.length-1];)ne.listStack.pop(),ne.listStack.length?ne.indentation=ne.listStack[ne.listStack.length-1]:ne.list=!1;ne.list!==!1&&(ne.indentationDiff=gi-ne.listStack[ne.listStack.length-1])}var Kn=!bn&&!Ve&&!ne.prevLine.header&&(!Nn||!Ln)&&!ne.prevLine.fencedCodeEnd,Pi=(ne.list===!1||Ve||bn)&&ne.indentation<=Zn&&ve.match(qt),tn=null;if(ne.indentationDiff>=4&&(Ln||ne.prevLine.fencedCodeEnd||ne.prevLine.header||bn))return ve.skipToEnd(),ne.indentedCode=!0,Mt.code;if(ve.eatSpace())return null;if(Ce&&ne.indentation<=Zn&&(tn=ve.match(Gt))&&tn[1].length<=6)return ne.quote=0,ne.header=tn[1].length,ne.thisLine.header=!0,re.highlightFormatting&&(ne.formatting="header"),ne.f=ne.inline,he(ne);if(ne.indentation<=Zn&&ve.eat(">"))return ne.quote=Ce?1:ne.quote+1,re.highlightFormatting&&(ne.formatting="quote"),ve.eatSpace(),he(ne);if(!Pi&&!ne.setext&&Ce&&ne.indentation<=Zn&&(tn=ve.match(bt))){var Li=tn[1]?"ol":"ul";return ne.indentation=gi+ve.current().length,ne.list=!0,ne.quote=0,ne.listStack.push(ne.indentation),ne.em=!1,ne.strong=!1,ne.code=!1,ne.strikethrough=!1,re.taskLists&&ve.match(se,!1)&&(ne.taskList=!0),ne.f=ne.inline,re.highlightFormatting&&(ne.formatting=["list","list-"+Li]),he(ne)}else{if(Ce&&ne.indentation<=Zn&&(tn=ve.match(et,!0)))return ne.quote=0,ne.fencedEndRE=new RegExp(tn[1]+"+ *$"),ne.localMode=re.fencedCodeBlockHighlighting&&Vt(tn[2]||re.fencedCodeBlockDefaultMode),ne.localMode&&(ne.localState=Lt.startState(ne.localMode)),ne.f=ne.block=oe,re.highlightFormatting&&(ne.formatting="code-block"),ne.code=-1,he(ne);if(ne.setext||(!Kn||!Nn)&&!ne.quote&&ne.list===!1&&!ne.code&&!Pi&&!tt.test(ve.string)&&(tn=ve.lookAhead(1))&&(tn=tn.match(Xt)))return ne.setext?(ne.header=ne.setext,ne.setext=0,ve.skipToEnd(),re.highlightFormatting&&(ne.formatting="header")):(ne.header=tn[0].charAt(0)=="="?1:2,ne.setext=ne.header),ne.thisLine.header=!0,ne.f=ne.inline,he(ne);if(Pi)return ve.skipToEnd(),ne.hr=!0,ne.thisLine.hr=!0,Mt.hr;if(ve.peek()==="[")return ht(ve,ne,_e)}return ht(ve,ne,ne.inline)}function _t(ve,ne){var Ce=Ie.token(ve,ne.htmlState);if(!ee){var bn=Lt.innerMode(Ie,ne.htmlState);(bn.mode.name=="xml"&&bn.state.tagStart===null&&!bn.state.context&&bn.state.tokenize.isInText||ne.md_inside&&ve.current().indexOf(">")>-1)&&(ne.f=Le,ne.block=Ut,ne.htmlState=null)}return Ce}function oe(ve,ne){var Ce=ne.listStack[ne.listStack.length-1]||0,bn=ne.indentation<Ce,Ln=Ce+3;if(ne.fencedEndRE&&ne.indentation<=Ln&&(bn||ve.match(ne.fencedEndRE))){re.highlightFormatting&&(ne.formatting="code-block");var Ve;return bn||(Ve=he(ne)),ne.localMode=ne.localState=null,ne.block=Ut,ne.f=Le,ne.fencedEndRE=null,ne.code=0,ne.thisLine.fencedCodeEnd=!0,bn?dt(ve,ne,ne.block):Ve}else return ne.localMode?ne.localMode.token(ve,ne.localState):(ve.skipToEnd(),Mt.code)}function he(ve){var ne=[];if(ve.formatting){ne.push(Mt.formatting),typeof ve.formatting=="string"&&(ve.formatting=[ve.formatting]);for(var Ce=0;Ce<ve.formatting.length;Ce++)ne.push(Mt.formatting+"-"+ve.formatting[Ce]),ve.formatting[Ce]==="header"&&ne.push(Mt.formatting+"-"+ve.formatting[Ce]+"-"+ve.header),ve.formatting[Ce]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ve.quote?ne.push(Mt.formatting+"-"+ve.formatting[Ce]+"-"+ve.quote):ne.push("error"))}if(ve.taskOpen)return ne.push("meta"),ne.length?ne.join(" "):null;if(ve.taskClosed)return ne.push("property"),ne.length?ne.join(" "):null;if(ve.linkHref?ne.push(Mt.linkHref,"url"):(ve.strong&&ne.push(Mt.strong),ve.em&&ne.push(Mt.em),ve.strikethrough&&ne.push(Mt.strikethrough),ve.emoji&&ne.push(Mt.emoji),ve.linkText&&ne.push(Mt.linkText),ve.code&&ne.push(Mt.code),ve.image&&ne.push(Mt.image),ve.imageAltText&&ne.push(Mt.imageAltText,"link"),ve.imageMarker&&ne.push(Mt.imageMarker)),ve.header&&ne.push(Mt.header,Mt.header+"-"+ve.header),ve.quote&&(ne.push(Mt.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ve.quote?ne.push(Mt.quote+"-"+ve.quote):ne.push(Mt.quote+"-"+re.maxBlockquoteDepth)),ve.list!==!1){var bn=(ve.listStack.length-1)%3;bn?bn===1?ne.push(Mt.list2):ne.push(Mt.list3):ne.push(Mt.list1)}return ve.trailingSpaceNewLine?ne.push("trailing-space-new-line"):ve.trailingSpace&&ne.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),ne.length?ne.join(" "):null}function fe(ve,ne){if(ve.match(Ct,!0))return he(ne)}function Le(ve,ne){var Ce=ne.text(ve,ne);if(typeof Ce!="undefined")return Ce;if(ne.list)return ne.list=null,he(ne);if(ne.taskList){var bn=ve.match(se,!0)[1]===" ";return bn?ne.taskOpen=!0:ne.taskClosed=!0,re.highlightFormatting&&(ne.formatting="task"),ne.taskList=!1,he(ne)}if(ne.taskOpen=!1,ne.taskClosed=!1,ne.header&&ve.match(/^#+$/,!0))return re.highlightFormatting&&(ne.formatting="header"),he(ne);var Ln=ve.next();if(ne.linkTitle){ne.linkTitle=!1;var Ve=Ln;Ln==="("&&(Ve=")"),Ve=(Ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Nn="^\\s*(?:[^"+Ve+"\\\\]+|\\\\\\\\|\\\\.)"+Ve;if(ve.match(new RegExp(Nn),!0))return Mt.linkHref}if(Ln==="`"){var Zn=ne.formatting;re.highlightFormatting&&(ne.formatting="code"),ve.eatWhile("`");var gi=ve.current().length;if(ne.code==0&&(!ne.quote||gi==1))return ne.code=gi,he(ne);if(gi==ne.code){var Kn=he(ne);return ne.code=0,Kn}else return ne.formatting=Zn,he(ne)}else if(ne.code)return he(ne);if(Ln==="\\"&&(ve.next(),re.highlightFormatting)){var Pi=he(ne),tn=Mt.formatting+"-escape";return Pi?Pi+" "+tn:tn}if(Ln==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ne.imageMarker=!0,ne.image=!0,re.highlightFormatting&&(ne.formatting="image"),he(ne);if(Ln==="["&&ne.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ne.imageMarker=!1,ne.imageAltText=!0,re.highlightFormatting&&(ne.formatting="image"),he(ne);if(Ln==="]"&&ne.imageAltText){re.highlightFormatting&&(ne.formatting="image");var Pi=he(ne);return ne.imageAltText=!1,ne.image=!1,ne.inline=ne.f=He,Pi}if(Ln==="["&&!ne.image)return ne.linkText&&ve.match(/^.*?\]/)||(ne.linkText=!0,re.highlightFormatting&&(ne.formatting="link")),he(ne);if(Ln==="]"&&ne.linkText){re.highlightFormatting&&(ne.formatting="link");var Pi=he(ne);return ne.linkText=!1,ne.inline=ne.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?He:Le,Pi}if(Ln==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=te,re.highlightFormatting&&(ne.formatting="link");var Pi=he(ne);return Pi?Pi+=" ":Pi="",Pi+Mt.linkInline}if(Ln==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=te,re.highlightFormatting&&(ne.formatting="link");var Pi=he(ne);return Pi?Pi+=" ":Pi="",Pi+Mt.linkEmail}if(re.xml&&Ln==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Li=ve.string.indexOf(">",ve.pos);if(Li!=-1){var ji=ve.string.substring(ve.start,Li);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ji)&&(ne.md_inside=!0)}return ve.backUp(1),ne.htmlState=Lt.startState(Ie),dt(ve,ne,_t)}if(re.xml&&Ln==="<"&&ve.match(/^\/\w*?>/))return ne.md_inside=!1,"tag";if(Ln==="*"||Ln==="_"){for(var Ot=1,Tt=ve.pos==1?" ":ve.string.charAt(ve.pos-2);Ot<3&&ve.eat(Ln);)Ot++;var vt=ve.peek()||" ",gt=!/\s/.test(vt)&&(!lt.test(vt)||/\s/.test(Tt)||lt.test(Tt)),ft=!/\s/.test(Tt)&&(!lt.test(Tt)||/\s/.test(vt)||lt.test(vt)),At=null,le=null;if(Ot%2&&(!ne.em&&gt&&(Ln==="*"||!ft||lt.test(Tt))?At=!0:ne.em==Ln&&ft&&(Ln==="*"||!gt||lt.test(vt))&&(At=!1)),Ot>1&&(!ne.strong&&gt&&(Ln==="*"||!ft||lt.test(Tt))?le=!0:ne.strong==Ln&&ft&&(Ln==="*"||!gt||lt.test(vt))&&(le=!1)),le!=null||At!=null){re.highlightFormatting&&(ne.formatting=At==null?"strong":le==null?"em":"strong em"),At===!0&&(ne.em=Ln),le===!0&&(ne.strong=Ln);var Kn=he(ne);return At===!1&&(ne.em=!1),le===!1&&(ne.strong=!1),Kn}}else if(Ln===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return he(ne);ve.backUp(1)}if(re.strikethrough){if(Ln==="~"&&ve.eatWhile(Ln)){if(ne.strikethrough){re.highlightFormatting&&(ne.formatting="strikethrough");var Kn=he(ne);return ne.strikethrough=!1,Kn}else if(ve.match(/^[^\s]/,!1))return ne.strikethrough=!0,re.highlightFormatting&&(ne.formatting="strikethrough"),he(ne)}else if(Ln===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return he(ne);ve.backUp(2)}}if(re.emoji&&Ln===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ne.emoji=!0,re.highlightFormatting&&(ne.formatting="emoji");var xe=he(ne);return ne.emoji=!1,xe}return Ln===" "&&(ve.match(/^ +$/,!1)?ne.trailingSpace++:ne.trailingSpace&&(ne.trailingSpaceNewLine=!0)),he(ne)}function te(ve,ne){var Ce=ve.next();if(Ce===">"){ne.f=ne.inline=Le,re.highlightFormatting&&(ne.formatting="link");var bn=he(ne);return bn?bn+=" ":bn="",bn+Mt.linkInline}return ve.match(/^[^>]+/,!0),Mt.linkInline}function He(ve,ne){if(ve.eatSpace())return null;var Ce=ve.next();return Ce==="("||Ce==="["?(ne.f=ne.inline=Ke(Ce==="("?")":"]"),re.highlightFormatting&&(ne.formatting="link-string"),ne.linkHref=!0,he(ne)):"error"}var Wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ke(ve){return function(ne,Ce){var bn=ne.next();if(bn===ve){Ce.f=Ce.inline=Le,re.highlightFormatting&&(Ce.formatting="link-string");var Ln=he(Ce);return Ce.linkHref=!1,Ln}return ne.match(Wt[ve]),Ce.linkHref=!0,he(Ce)}}function _e(ve,ne){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ne.f=Ne,ve.next(),re.highlightFormatting&&(ne.formatting="link"),ne.linkText=!0,he(ne)):ht(ve,ne,Le)}function Ne(ve,ne){if(ve.match(/^\]:/,!0)){ne.f=ne.inline=Ge,re.highlightFormatting&&(ne.formatting="link");var Ce=he(ne);return ne.linkText=!1,Ce}return ve.match(/^([^\]\\]|\\.)+/,!0),Mt.linkText}function Ge(ve,ne){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?ne.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ne.f=ne.inline=Le,Mt.linkHref+" url")}var Ue={startState:function(){return{f:Ut,prevLine:{stream:null},thisLine:{stream:null},block:Ut,htmlState:null,indentation:0,inline:Le,text:fe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&Lt.copyState(Ie,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?Lt.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,ne){if(ne.formatting=!1,ve!=ne.thisLine.stream){if(ne.header=0,ne.hr=!1,ve.match(/^\s*$/,!0))return Nt(ne),null;if(ne.prevLine=ne.thisLine,ne.thisLine={stream:ve},ne.taskList=!1,ne.trailingSpace=0,ne.trailingSpaceNewLine=!1,!ne.localState&&(ne.f=ne.block,ne.f!=_t)){var Ce=ve.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ne.indentation=Ce,ne.indentationDiff=null,Ce>0)return null}}return ne.f(ve,ne)},innerMode:function(ve){return ve.block==_t?{state:ve.htmlState,mode:Ie}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Ue}},indent:function(ve,ne,Ce){return ve.block==_t&&Ie.indent?Ie.indent(ve.htmlState,ne,Ce):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ne,Ce):Lt.Pass},blankLine:Nt,getType:he,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ue},"xml"),Lt.defineMIME("text/markdown","markdown"),Lt.defineMIME("text/x-markdown","markdown")})},98101:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){"use strict";Lt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ce=0;ce<Lt.modeInfo.length;ce++){var re=Lt.modeInfo[ce];re.mimes&&(re.mime=re.mimes[0])}Lt.findModeByMIME=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.mime==Ie)return Vt;if(Vt.mimes){for(var Mt=0;Mt<Vt.mimes.length;Mt++)if(Vt.mimes[Mt]==Ie)return Vt}}if(/\+xml$/.test(Ie))return Lt.findModeByMIME("application/xml");if(/\+json$/.test(Ie))return Lt.findModeByMIME("application/json")},Lt.findModeByExtension=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.ext){for(var Mt=0;Mt<Vt.ext.length;Mt++)if(Vt.ext[Mt]==Ie)return Vt}}},Lt.findModeByFileName=function(Ie){for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.file&&Vt.file.test(Ie))return Vt}var Mt=Ie.lastIndexOf("."),jt=Mt>-1&&Ie.substring(Mt+1,Ie.length);if(jt)return Lt.findModeByExtension(jt)},Lt.findModeByName=function(Ie){Ie=Ie.toLowerCase();for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.name.toLowerCase()==Ie)return Vt;if(Vt.alias){for(var Mt=0;Mt<Vt.alias.length;Mt++)if(Vt.alias[Mt].toLowerCase()==Ie)return Vt}}}})},67549:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){"use strict";Lt.defineMode("stex",function(ce,re){"use strict";function Ie(Ct,et){Ct.cmdState.push(et)}function ee(Ct){return Ct.cmdState.length>0?Ct.cmdState[Ct.cmdState.length-1]:null}function Vt(Ct){var et=Ct.cmdState.pop();et&&et.closeBracket()}function Mt(Ct){for(var et=Ct.cmdState,tt=et.length-1;tt>=0;tt--){var lt=et[tt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function jt(Ct,et,tt){return function(){this.name=Ct,this.bracketNo=0,this.style=et,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var qt={};qt.importmodule=jt("importmodule","tag",["string","builtin"]),qt.documentclass=jt("documentclass","tag",["","atom"]),qt.usepackage=jt("usepackage","tag",["atom"]),qt.begin=jt("begin","tag",["atom"]),qt.end=jt("end","tag",["atom"]),qt.label=jt("label","tag",["atom"]),qt.ref=jt("ref","tag",["atom"]),qt.eqref=jt("eqref","tag",["atom"]),qt.cite=jt("cite","tag",["atom"]),qt.bibitem=jt("bibitem","tag",["atom"]),qt.Bibitem=jt("Bibitem","tag",["atom"]),qt.RBibitem=jt("RBibitem","tag",["atom"]),qt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function bt(Ct,et){Ct.f=et}function se(Ct,et){var tt;if(Ct.match(/^\\[a-zA-Z@]+/)){var lt=Ct.current().slice(1);return tt=qt.hasOwnProperty(lt)?qt[lt]:qt.DEFAULT,tt=new tt,Ie(et,tt),bt(et,Xt),tt.style}if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/\\]/))return"tag";if(Ct.match("\\["))return bt(et,function(ht,dt){return Gt(ht,dt,"\\]")}),"keyword";if(Ct.match("\\("))return bt(et,function(ht,dt){return Gt(ht,dt,"\\)")}),"keyword";if(Ct.match("$$"))return bt(et,function(ht,dt){return Gt(ht,dt,"$$")}),"keyword";if(Ct.match("$"))return bt(et,function(ht,dt){return Gt(ht,dt,"$")}),"keyword";var rt=Ct.next();if(rt=="%")return Ct.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=ee(et),tt)tt.closeBracket(rt),bt(et,Xt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=qt.DEFAULT,tt=new tt,Ie(et,tt),"bracket"):/\d/.test(rt)?(Ct.eatWhile(/[\w.%]/),"atom"):(Ct.eatWhile(/[\w\-_]/),tt=Mt(et),tt.name=="begin"&&(tt.argument=Ct.current()),tt.styleIdentifier())}function Gt(Ct,et,tt){if(Ct.eatSpace())return null;if(tt&&Ct.match(tt))return bt(et,se),"keyword";if(Ct.match(/^\\[a-zA-Z@]+/))return"tag";if(Ct.match(/^[a-zA-Z]+/))return"variable-2";if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/]/)||Ct.match(/^[\^_&]/))return"tag";if(Ct.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ct.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=Ct.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(Ct.skipToEnd(),"comment"):"error"}function Xt(Ct,et){var tt=Ct.peek(),lt;return tt=="{"||tt=="["?(lt=ee(et),lt.openBracket(tt),Ct.eat(tt),bt(et,se),"bracket"):/[ \t\r]/.test(tt)?(Ct.eat(tt),null):(bt(et,se),Vt(et),se(Ct,et))}return{startState:function(){var Ct=re.inMathMode?function(et,tt){return Gt(et,tt)}:se;return{cmdState:[],f:Ct}},copyState:function(Ct){return{cmdState:Ct.cmdState.slice(),f:Ct.f}},token:function(Ct,et){return et.f(Ct,et)},blankLine:function(Ct){Ct.f=se,Ct.cmdState.length=0},lineComment:"%"}}),Lt.defineMIME("text/x-stex","stex"),Lt.defineMIME("text/x-latex","stex")})},15525:function(hi,Sn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){"use strict";var ce={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Lt.defineMode("xml",function(Ie,ee){var Vt=Ie.indentUnit,Mt={},jt=ee.htmlMode?ce:re;for(var qt in jt)Mt[qt]=jt[qt];for(var qt in ee)Mt[qt]=ee[qt];var bt,se;function Gt(te,He){function Wt(Ne){return He.tokenize=Ne,Ne(te,He)}var Ke=te.next();if(Ke=="<")return te.eat("!")?te.eat("[")?te.match("CDATA[")?Wt(et("atom","]]>")):null:te.match("--")?Wt(et("comment","-->")):te.match("DOCTYPE",!0,!0)?(te.eatWhile(/[\w\._\-]/),Wt(tt(1))):null:te.eat("?")?(te.eatWhile(/[\w\._\-]/),He.tokenize=et("meta","?>"),"meta"):(bt=te.eat("/")?"closeTag":"openTag",He.tokenize=Xt,"tag bracket");if(Ke=="&"){var _e;return te.eat("#")?te.eat("x")?_e=te.eatWhile(/[a-fA-F\d]/)&&te.eat(";"):_e=te.eatWhile(/[\d]/)&&te.eat(";"):_e=te.eatWhile(/[\w\.\-:]/)&&te.eat(";"),_e?"atom":"error"}else return te.eatWhile(/[^&<]/),null}Gt.isInText=!0;function Xt(te,He){var Wt=te.next();if(Wt==">"||Wt=="/"&&te.eat(">"))return He.tokenize=Gt,bt=Wt==">"?"endTag":"selfcloseTag","tag bracket";if(Wt=="=")return bt="equals",null;if(Wt=="<"){He.tokenize=Gt,He.state=dt,He.tagName=He.tagStart=null;var Ke=He.tokenize(te,He);return Ke?Ke+" tag error":"tag error"}else return/[\'\"]/.test(Wt)?(He.tokenize=Ct(Wt),He.stringStartCol=te.column(),He.tokenize(te,He)):(te.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ct(te){var He=function(Wt,Ke){for(;!Wt.eol();)if(Wt.next()==te){Ke.tokenize=Xt;break}return"string"};return He.isInAttribute=!0,He}function et(te,He){return function(Wt,Ke){for(;!Wt.eol();){if(Wt.match(He)){Ke.tokenize=Gt;break}Wt.next()}return te}}function tt(te){return function(He,Wt){for(var Ke;(Ke=He.next())!=null;){if(Ke=="<")return Wt.tokenize=tt(te+1),Wt.tokenize(He,Wt);if(Ke==">")if(te==1){Wt.tokenize=Gt;break}else return Wt.tokenize=tt(te-1),Wt.tokenize(He,Wt)}return"meta"}}function lt(te,He,Wt){this.prev=te.context,this.tagName=He,this.indent=te.indented,this.startOfLine=Wt,(Mt.doNotIndent.hasOwnProperty(He)||te.context&&te.context.noIndent)&&(this.noIndent=!0)}function rt(te){te.context&&(te.context=te.context.prev)}function ht(te,He){for(var Wt;;){if(!te.context||(Wt=te.context.tagName,!Mt.contextGrabbers.hasOwnProperty(Wt)||!Mt.contextGrabbers[Wt].hasOwnProperty(He)))return;rt(te)}}function dt(te,He,Wt){return te=="openTag"?(Wt.tagStart=He.column(),xt):te=="closeTag"?Nt:dt}function xt(te,He,Wt){return te=="word"?(Wt.tagName=He.current(),se="tag",oe):Mt.allowMissingTagName&&te=="endTag"?(se="tag bracket",oe(te,He,Wt)):(se="error",xt)}function Nt(te,He,Wt){if(te=="word"){var Ke=He.current();return Wt.context&&Wt.context.tagName!=Ke&&Mt.implicitlyClosed.hasOwnProperty(Wt.context.tagName)&&rt(Wt),Wt.context&&Wt.context.tagName==Ke||Mt.matchClosing===!1?(se="tag",Ut):(se="tag error",_t)}else return Mt.allowMissingTagName&&te=="endTag"?(se="tag bracket",Ut(te,He,Wt)):(se="error",_t)}function Ut(te,He,Wt){return te!="endTag"?(se="error",Ut):(rt(Wt),dt)}function _t(te,He,Wt){return se="error",Ut(te,He,Wt)}function oe(te,He,Wt){if(te=="word")return se="attribute",he;if(te=="endTag"||te=="selfcloseTag"){var Ke=Wt.tagName,_e=Wt.tagStart;return Wt.tagName=Wt.tagStart=null,te=="selfcloseTag"||Mt.autoSelfClosers.hasOwnProperty(Ke)?ht(Wt,Ke):(ht(Wt,Ke),Wt.context=new lt(Wt,Ke,_e==Wt.indented)),dt}return se="error",oe}function he(te,He,Wt){return te=="equals"?fe:(Mt.allowMissing||(se="error"),oe(te,He,Wt))}function fe(te,He,Wt){return te=="string"?Le:te=="word"&&Mt.allowUnquoted?(se="string",oe):(se="error",oe(te,He,Wt))}function Le(te,He,Wt){return te=="string"?Le:oe(te,He,Wt)}return{startState:function(te){var He={tokenize:Gt,state:dt,indented:te||0,tagName:null,tagStart:null,context:null};return te!=null&&(He.baseIndent=te),He},token:function(te,He){if(!He.tagName&&te.sol()&&(He.indented=te.indentation()),te.eatSpace())return null;bt=null;var Wt=He.tokenize(te,He);return(Wt||bt)&&Wt!="comment"&&(se=null,He.state=He.state(bt||Wt,te,He),se&&(Wt=se=="error"?Wt+" error":se)),Wt},indent:function(te,He,Wt){var Ke=te.context;if(te.tokenize.isInAttribute)return te.tagStart==te.indented?te.stringStartCol+1:te.indented+Vt;if(Ke&&Ke.noIndent)return Lt.Pass;if(te.tokenize!=Xt&&te.tokenize!=Gt)return Wt?Wt.match(/^(\s*)/)[0].length:0;if(te.tagName)return Mt.multilineTagIndentPastTag!==!1?te.tagStart+te.tagName.length+2:te.tagStart+Vt*(Mt.multilineTagIndentFactor||1);if(Mt.alignCDATA&&/<!\[CDATA\[/.test(He))return 0;var _e=He&&/^<(\/)?([\w_:\.-]*)/.exec(He);if(_e&&_e[1])for(;Ke;)if(Ke.tagName==_e[2]){Ke=Ke.prev;break}else if(Mt.implicitlyClosed.hasOwnProperty(Ke.tagName))Ke=Ke.prev;else break;else if(_e)for(;Ke;){var Ne=Mt.contextGrabbers[Ke.tagName];if(Ne&&Ne.hasOwnProperty(_e[2]))Ke=Ke.prev;else break}for(;Ke&&Ke.prev&&!Ke.startOfLine;)Ke=Ke.prev;return Ke?Ke.indent+Vt:te.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Mt.htmlMode?"html":"xml",helperType:Mt.htmlMode?"html":"xml",skipAttribute:function(te){te.state==fe&&(te.state=oe)},xmlCurrentTag:function(te){return te.tagName?{name:te.tagName,close:te.type=="closeTag"}:null},xmlCurrentContext:function(te){for(var He=[],Wt=te.context;Wt;Wt=Wt.prev)Wt.tagName&&He.push(Wt.tagName);return He.reverse()}}}),Lt.defineMIME("text/xml","xml"),Lt.defineMIME("application/xml","xml"),Lt.mimeModes.hasOwnProperty("text/html")||Lt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var Lt=Object.assign||function(tt){for(var lt=1;lt<arguments.length;lt++){var rt=arguments[lt];for(var ht in rt)Object.prototype.hasOwnProperty.call(rt,ht)&&(tt[ht]=rt[ht])}return tt},ce=function(){function tt(lt,rt){for(var ht=0;ht<rt.length;ht++){var dt=rt[ht];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(lt,dt.key,dt)}}return function(lt,rt,ht){return rt&&tt(lt.prototype,rt),ht&&tt(lt,ht),lt}}(),re=Ft(59301),Ie=se(re),ee=Ft(12708),Vt=se(ee),Mt=Ft(53291),jt=se(Mt),qt=Ft(47242),bt=Ft(65429);function se(tt){return tt&&tt.__esModule?tt:{default:tt}}function Gt(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}function Xt(tt,lt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:tt}function Ct(tt,lt){if(typeof lt!="function"&&lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);tt.prototype=Object.create(lt&&lt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,lt):tt.__proto__=lt)}var et=function(tt){Ct(lt,tt);function lt(rt){Gt(this,lt);var ht=Xt(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,rt));return ht.getEchartsInstance=function(){return ht.echartsLib.getInstanceByDom(ht.echartsElement)||ht.echartsLib.init(ht.echartsElement,ht.props.theme,ht.props.opts)},ht.dispose=function(){if(ht.echartsElement){try{(0,qt.clear)(ht.echartsElement)}catch(dt){console.warn(dt)}ht.echartsLib.dispose(ht.echartsElement)}},ht.rerender=function(){var dt=ht.props,xt=dt.onEvents,Nt=dt.onChartReady,Ut=ht.renderEchartDom();ht.bindEvents(Ut,xt||{}),typeof Nt=="function"&&ht.props.onChartReady(Ut),ht.echartsElement&&(0,qt.bind)(ht.echartsElement,function(){try{Ut.resize()}catch(_t){console.warn(_t)}})},ht.bindEvents=function(dt,xt){var Nt=function(oe,he){typeof oe=="string"&&typeof he=="function"&&dt.on(oe,function(fe){he(fe,dt)})};for(var Ut in xt)Object.prototype.hasOwnProperty.call(xt,Ut)&&Nt(Ut,xt[Ut])},ht.renderEchartDom=function(){var dt=ht.getEchartsInstance();return dt.setOption(ht.props.option,ht.props.notMerge||!1,ht.props.lazyUpdate||!1),ht.props.showLoading?dt.showLoading(ht.props.loadingOption||null):dt.hideLoading(),dt},ht.echartsLib=rt.echarts,ht.echartsElement=null,ht}return ce(lt,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ht){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ht,this.props))){if(!(0,jt.default)(ht.theme,this.props.theme)||!(0,jt.default)(ht.opts,this.props.opts)||!(0,jt.default)(ht.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var dt=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,jt.default)((0,bt.pick)(this.props,dt),(0,bt.pick)(ht,dt))){var xt=this.renderEchartDom();if(!(0,jt.default)(ht.style,this.props.style)||!(0,jt.default)(ht.className,this.props.className))try{xt.resize()}catch(Nt){console.warn(Nt)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ht=this,dt=this.props,xt=dt.style,Nt=dt.className,Ut=Lt({height:300},xt);return Ie.default.createElement("div",{ref:function(oe){ht.echartsElement=oe},style:Ut,className:"echarts-for-react "+Nt})}}]),lt}(re.Component);Sn.default=et,et.propTypes={option:Vt.default.object.isRequired,echarts:Vt.default.object,notMerge:Vt.default.bool,lazyUpdate:Vt.default.bool,style:Vt.default.object,className:Vt.default.string,theme:Vt.default.oneOfType([Vt.default.string,Vt.default.object]),onChartReady:Vt.default.func,showLoading:Vt.default.bool,loadingOption:Vt.default.object,onEvents:Vt.default.object,opts:Vt.default.shape({devicePixelRatio:Vt.default.number,renderer:Vt.default.oneOf(["canvas","svg"]),width:Vt.default.oneOfType([Vt.default.number,Vt.default.oneOf([null,void 0,"auto"])]),height:Vt.default.oneOfType([Vt.default.number,Vt.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Vt.default.func},et.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(hi,Sn,Ft){"use strict";var Lt;Lt={value:!0},Sn.Z=void 0;var ce=Ft(76411),re=Vt(ce),Ie=Ft(97774),ee=Vt(Ie);function Vt(se){return se&&se.__esModule?se:{default:se}}function Mt(se,Gt){if(!(se instanceof Gt))throw new TypeError("Cannot call a class as a function")}function jt(se,Gt){if(!se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Gt&&(typeof Gt=="object"||typeof Gt=="function")?Gt:se}function qt(se,Gt){if(typeof Gt!="function"&&Gt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Gt);se.prototype=Object.create(Gt&&Gt.prototype,{constructor:{value:se,enumerable:!1,writable:!0,configurable:!0}}),Gt&&(Object.setPrototypeOf?Object.setPrototypeOf(se,Gt):se.__proto__=Gt)}var bt=function(se){qt(Gt,se);function Gt(Xt){Mt(this,Gt);var Ct=jt(this,(Gt.__proto__||Object.getPrototypeOf(Gt)).call(this,Xt));return Ct.echartsLib=re.default,Ct}return Gt}(ee.default);Sn.Z=bt},65429:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});var Ft=Sn.pick=function(ce,re){var Ie={};return re.forEach(function(ee){Ie[ee]=ce[ee]}),Ie}},53291:function(hi){"use strict";var Sn=Array.isArray,Ft=Object.keys,Lt=Object.prototype.hasOwnProperty;hi.exports=function ce(re,Ie){if(re===Ie)return!0;if(re&&Ie&&typeof re=="object"&&typeof Ie=="object"){var ee=Sn(re),Vt=Sn(Ie),Mt,jt,qt;if(ee&&Vt){if(jt=re.length,jt!=Ie.length)return!1;for(Mt=jt;Mt--!==0;)if(!ce(re[Mt],Ie[Mt]))return!1;return!0}if(ee!=Vt)return!1;var bt=re instanceof Date,se=Ie instanceof Date;if(bt!=se)return!1;if(bt&&se)return re.getTime()==Ie.getTime();var Gt=re instanceof RegExp,Xt=Ie instanceof RegExp;if(Gt!=Xt)return!1;if(Gt&&Xt)return re.toString()==Ie.toString();var Ct=Ft(re);if(jt=Ct.length,jt!==Ft(Ie).length)return!1;for(Mt=jt;Mt--!==0;)if(!Lt.call(Ie,Ct[Mt]))return!1;for(Mt=jt;Mt--!==0;)if(qt=Ct[Mt],!ce(re[qt],Ie[qt]))return!1;return!0}return re!==re&&Ie!==Ie}},12378:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{$u:function(){return qt},BD:function(){return Ot},E9:function(){return jt},FF:function(){return jo},FJ:function(){return dt},Hn:function(){return ht},KX:function(){return Nt},NB:function(){return Oe},S0:function(){return tn},UL:function(){return bt},Vk:function(){return rt},Vm:function(){return Me},YI:function(){return Li},ZA:function(){return re},Zt:function(){return se},al:function(){return At},bn:function(){return ft},bx:function(){return Tt},g2:function(){return ji},h1:function(){return fe},hD:function(){return Mr},l4:function(){return Vt},rU:function(){return Te},s_:function(){return vt},uz:function(){return ye},z6:function(){return Gt}}),hi=Ft.hmd(hi),function(){var $t;function ni(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function gs(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ni(a)}}function ua(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Gs=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},ha;if(typeof Object.setPrototypeOf=="function")ha=Object.setPrototypeOf;else{var Ws;t:{var Hr={a:!0},Xn={};try{Xn.__proto__=Hr,Ws=Xn.a;break t}catch(a){}Ws=!1}ha=Ws?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Hn=ha;function Mn(a,y){if(a.prototype=Gs(y.prototype),a.prototype.constructor=a,Hn)Hn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var qe=typeof Ft.g!="undefined"&&Ft.g!=null?Ft.g:self,pi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},xi=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function wn(a,y){if(y){var x=qe;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&xi(x,a,{writable:!0,value:y})}}wn("Object.assign",function(a){return a||pi}),wn("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Ee=typeof globalThis=="object"&&globalThis||typeof Ft.g=="object"&&Ft.g.global===Ft.g&&Ft.g||typeof self=="object"&&self.self===self&&self||{};Ee.requestAnimationFrame===void 0&&(Ee.setImmediate===void 0?Ee.requestAnimationFrame=function(a){Ee.setTimeout(a,0)}:Ee.requestAnimationFrame=Ee.setImmediate);function Cn(){}function Gn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ee.clearTimeout(x),x=Ei(function(){x=-1,a.apply(b,E)},y)}}function Ei(a,y){return Ee.setTimeout(a,y)}function ei(a){return Ee.document.createElement(a)}function gn(a){throw Error(a)}function di(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),gn(a)}function Ni(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),gn(x+" is not in the range "+y+": "+a)}function $i(a){Ee.console&&Ee.console.log(a)}function kn(a){return typeof a=="object"&&a!==null}function yi(a){return Array.isArray(a)||Ee.NodeList&&a instanceof Ee.NodeList||Ee.HTMLCollection&&a instanceof Ee.HTMLCollection}function Br(a){return Array.prototype.slice.call(a)}function dr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):gn("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function zr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):gn("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function cr(){var a=_o.pop();return a===void 0?[]:a}function wr(a){a.length=0,_o.push(a)}function or(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(kn(a)&&a.constructor)return or(a.constructor);return typeof a}function xr(a){var y=a;return kn(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function so(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Yi(a,y,x){Object.defineProperty(ie.prototype,a,{get:y,set:x})}function pr(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var yo=Ee.navigator!==void 0&&0<Ee.navigator.userAgent.indexOf("Trident/7"),Ss=Ee.navigator!==void 0&&Ee.navigator.platform!==void 0&&Ee.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,_o=[];Object.freeze([]),Cn.className="Util",Cn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Cn.adym="gojs.net",Cn.vfo="28e645fdb266",Cn.className="Util";function Dn(a,y,x){Zo(this),this.j=a,this.xa=y,this.o=x}Dn.prototype.toString=function(){return"EnumValue."+this.xa};function Tr(a,y){return y==null||y===""?null:a[y]}qe.Object.defineProperties(Dn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Dn.className="EnumValue";function ao(){this.ew=[]}ao.prototype.toString=function(){return this.ew.join("")},ao.prototype.add=function(a){a!==""&&this.ew.push(a)},ao.className="StringBuilder";function Kr(){}Kr.className="PropertyCollection";var qo={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ee.console&&Ee.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(nt,ot){return function(){throw Error("Property "+nt.Zl[ot.Tj]+" of "+nt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Oo(){}Oo.prototype.reset=function(){},Oo.prototype.next=function(){return!1},Oo.prototype.Ad=function(){return!1},Oo.prototype.first=function(){return null},Oo.prototype.any=function(){return!1},Oo.prototype.all=function(){return!0},Oo.prototype.each=function(){return this},Oo.prototype.map=function(){return this},Oo.prototype.filter=function(){return this},Oo.prototype.de=function(){},Oo.prototype.toString=function(){return"EmptyIterator"},qe.Object.defineProperties(Oo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Oo.prototype.first=Oo.prototype.first,Oo.prototype.hasNext=Oo.prototype.Ad,Oo.prototype.next=Oo.prototype.next,Oo.prototype.reset=Oo.prototype.reset;var wi=null;Oo.className="EmptyIterator",wi=new Oo;function Po(a){this.key=-1,this.value=a}Po.prototype.reset=function(){this.key=-1},Po.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Po.prototype.Ad=function(){return this.next()},Po.prototype.first=function(){return this.key=0,this.value},Po.prototype.any=function(a){return this.key=-1,a(this.value)},Po.prototype.all=function(a){return this.key=-1,a(this.value)},Po.prototype.each=function(a){return this.key=-1,a(this.value),this},Po.prototype.map=function(a){return new Po(a(this.value))},Po.prototype.filter=function(a){return a(this.value)?new Po(this.value):wi},Po.prototype.de=function(){this.value=null},Po.prototype.toString=function(){return"SingletonIterator("+this.value+")"},qe.Object.defineProperties(Po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Po.prototype.first=Po.prototype.first,Po.prototype.hasNext=Po.prototype.Ad,Po.prototype.next=Po.prototype.next,Po.prototype.reset=Po.prototype.reset,Po.className="SingletonIterator";function Rr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Rr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Rr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Rr.prototype.Ad=function(){return this.next()},Rr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Rr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Rr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Rr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Rr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&x.push(a(nt))}return a=new Ci,a.s=x,a.xb(),a.iterator},Rr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&a(nt)&&x.push(nt)}return a=new Ci,a.s=x,a.xb(),a.iterator},Rr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Rr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},qe.Object.defineProperties(Rr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Rr.prototype.first=Rr.prototype.first,Rr.prototype.hasNext=Rr.prototype.Ad,Rr.prototype.next=Rr.prototype.next,Rr.prototype.reset=Rr.prototype.reset,Rr.className="ListIterator";function kr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}kr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},kr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},kr.prototype.Ad=function(){return this.next()},kr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},kr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},kr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},kr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},kr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Ci,a.s=x,a.xb(),a.iterator},kr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Ci,a.s=x,a.xb(),a.iterator},kr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},kr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},qe.Object.defineProperties(kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),kr.prototype.first=kr.prototype.first,kr.prototype.hasNext=kr.prototype.Ad,kr.prototype.next=kr.prototype.next,kr.prototype.reset=kr.prototype.reset,kr.className="ListIteratorBackwards";function Ci(a){Zo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&gn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}$t=Ci.prototype,$t.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.toString=function(){return"List()#"+fs(this)},$t.add=function(a){return a===null?this:(this._isFrozen&&di(this,a),this.s.push(a),this.xb(),this)},$t.push=function(a){this.add(a)},$t.addAll=function(a){if(a===null)return this;this._isFrozen&&di(this);var y=this.s;if(yi(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},$t.clear=function(){this._isFrozen&&di(this),this.s.length=0,this.xb()},$t.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},$t.has=function(a){return this.contains(a)},$t.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},$t.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Ni(a,"0 <= i < length",Ci,"elt:i"),y[a]},$t.get=function(a){return this.M(a)},$t.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Ni(a,"0 <= i < length",Ci,"setElt:i"),this._isFrozen&&di(this,a),x[a]=y},$t.set=function(a,y){this.cd(a,y)},$t.first=function(){var a=this.s;return a.length===0?null:a[0]},$t.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},$t.pop=function(){this._isFrozen&&di(this);var a=this.s;return 0<a.length?a.pop():null},Ci.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Ci.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Ci.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Ci.prototype.map=function(a){for(var y=new Ci,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Ci.prototype.filter=function(a){for(var y=new Ci,x=[],b=this.s,E=b.length,z=0;z<E;z++){var nt=b[z];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},$t=Ci.prototype,$t.Gb=function(a,y){0>a&&Ni(a,">= 0",Ci,"insertAt:i"),this._isFrozen&&di(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},$t.remove=function(a){if(a===null)return!1;this._isFrozen&&di(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},$t.delete=function(a){return this.remove(a)},$t.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Ni(a,"0 <= i < length",Ci,"removeAt:i"),this._isFrozen&&di(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},$t.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&di(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Ci.prototype.copy=function(){var a=new Ci,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},$t=Ci.prototype,$t.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},$t.Iv=function(){for(var a=new Bi,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},$t.sort=function(a){return this._isFrozen&&di(this),this.s.sort(a),this.xb(),this},$t.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&di(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Ni(y,"0 <= from < length",Ci,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},$t.reverse=function(){return this._isFrozen&&di(this),this.s.reverse(),this.xb(),this},qe.Object.defineProperties(Ci.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return wi;var a=this.Sa;return a!==null?(a.reset(),a):new Rr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return wi;var a=this.Hg;return a!==null?(a.reset(),a):new kr(this)}}}),Ci.prototype.reverse=Ci.prototype.reverse,Ci.prototype.sortRange=Ci.prototype.zi,Ci.prototype.sort=Ci.prototype.sort,Ci.prototype.toSet=Ci.prototype.Iv,Ci.prototype.toArray=Ci.prototype.Fa,Ci.prototype.removeRange=Ci.prototype.removeRange,Ci.prototype.removeAt=Ci.prototype.mb,Ci.prototype.delete=Ci.prototype.delete,Ci.prototype.remove=Ci.prototype.remove,Ci.prototype.insertAt=Ci.prototype.Gb,Ci.prototype.pop=Ci.prototype.pop,Ci.prototype.last=Ci.prototype.jc,Ci.prototype.first=Ci.prototype.first,Ci.prototype.set=Ci.prototype.set,Ci.prototype.setElt=Ci.prototype.cd,Ci.prototype.get=Ci.prototype.get,Ci.prototype.elt=Ci.prototype.M,Ci.prototype.indexOf=Ci.prototype.indexOf,Ci.prototype.has=Ci.prototype.has,Ci.prototype.contains=Ci.prototype.contains,Ci.prototype.clear=Ci.prototype.clear,Ci.prototype.addAll=Ci.prototype.addAll,Ci.prototype.push=Ci.prototype.push,Ci.prototype.add=Ci.prototype.add,Ci.prototype.thaw=Ci.prototype.ka,Ci.prototype.freeze=Ci.prototype.freeze,Ci.className="List";function Lo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Lo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Lo.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Lo.prototype.Ad=function(){return this.next()},Lo.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Lo.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Lo.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Lo.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Lo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Lo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Lo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Lo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},qe.Object.defineProperties(Lo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Lo.prototype.first=Lo.prototype.first,Lo.prototype.hasNext=Lo.prototype.Ad,Lo.prototype.next=Lo.prototype.next,Lo.prototype.reset=Lo.prototype.reset,Lo.className="SetIterator";function Bi(a){Zo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&gn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}$t=Bi.prototype,$t.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.toString=function(){return"Set()#"+fs(this)},$t.add=function(a){if(a===null)return this;this._isFrozen&&di(this,a);var y=a;return kn(a)&&(y=ra(a)),this.Tb[y]===void 0&&(this.Sb++,a=new ps(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},$t.addAll=function(a){if(a===null)return this;if(this._isFrozen&&di(this),yi(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},$t.contains=function(a){if(a===null)return!1;var y=a;return kn(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},$t.has=function(a){return this.contains(a)},$t.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},$t.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},$t.first=function(){var a=this.ea;return a===null?null:a.value},Bi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Bi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Bi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Bi.prototype.map=function(a){for(var y=new Bi,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Bi.prototype.filter=function(a){for(var y=new Bi,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},$t=Bi.prototype,$t.remove=function(a){if(a===null)return!1;this._isFrozen&&di(this,a);var y=a;if(kn(a)&&(y=fs(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},$t.delete=function(a){return this.remove(a)},$t.hp=function(a){if(a===null)return this;if(this._isFrozen&&di(this),yi(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},$t.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&di(this);var y=new Bi;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},$t.clear=function(){this._isFrozen&&di(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Bi.prototype.copy=function(){var a=new Bi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Bi.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Bi.prototype.Hv=function(){var a=new Ci,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Zo(a){a.__gohashid=ba++}function ra(a){var y=a.__gohashid;return y===void 0&&(y=ba++,a.__gohashid=y),y}function fs(a){return a.__gohashid}qe.Object.defineProperties(Bi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return wi;var a=this.Sa;return a!==null?(a.reset(),a):new Lo(this)}}}),Bi.prototype.toList=Bi.prototype.Hv,Bi.prototype.toArray=Bi.prototype.Fa,Bi.prototype.clear=Bi.prototype.clear,Bi.prototype.retainAll=Bi.prototype.pA,Bi.prototype.removeAll=Bi.prototype.hp,Bi.prototype.delete=Bi.prototype.delete,Bi.prototype.remove=Bi.prototype.remove,Bi.prototype.first=Bi.prototype.first,Bi.prototype.containsAny=Bi.prototype.Ty,Bi.prototype.containsAll=Bi.prototype.Sy,Bi.prototype.has=Bi.prototype.has,Bi.prototype.contains=Bi.prototype.contains,Bi.prototype.addAll=Bi.prototype.addAll,Bi.prototype.add=Bi.prototype.add,Bi.prototype.thaw=Bi.prototype.ka,Bi.prototype.freeze=Bi.prototype.freeze;var ba=1;Bi.className="Set",Bi.uniqueHash=Zo,Bi.hashIdUnique=ra,Bi.hashId=fs;function Vs(a){this.ma=a,this.qa=a.Ja,this.sa=null}Vs.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Vs.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Vs.prototype.Ad=function(){return this.next()},Vs.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Vs.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Vs.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Vs.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Vs.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Vs.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ci;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Vs.prototype.de=function(){this.value=this.key=null,this.qa=-1},Vs.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},qe.Object.defineProperties(Vs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Vs.prototype.first=Vs.prototype.first,Vs.prototype.hasNext=Vs.prototype.Ad,Vs.prototype.next=Vs.prototype.next,Vs.prototype.reset=Vs.prototype.reset,Vs.className="MapKeySetIterator";function Mo(a){Bi.call(this),Zo(this),this._isFrozen=!0,this.ma=a}Mn(Mo,Bi),$t=Mo.prototype,$t.freeze=function(){return this},$t.ka=function(){return this},$t.toString=function(){return"MapKeySet("+this.ma.toString()+")"},$t.add=function(){gn("This Set is read-only: "+this.toString())},$t.contains=function(a){return this.ma.contains(a)},$t.has=function(a){return this.contains(a)},$t.remove=function(){gn("This Set is read-only: "+this.toString())},$t.delete=function(a){return this.remove(a)},$t.clear=function(){gn("This Set is read-only: "+this.toString())},$t.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Mo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Mo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Mo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Mo.prototype.map=function(a){for(var y=new Bi,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Mo.prototype.filter=function(a){for(var y=new Bi,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Mo.prototype.copy=function(){return new Mo(this.ma)},Mo.prototype.Iv=function(){var a=new Bi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Mo.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},Mo.prototype.Hv=function(){var a=new Ci,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},qe.Object.defineProperties(Mo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?wi:new Vs(this.ma)}}}),Mo.prototype.toList=Mo.prototype.Hv,Mo.prototype.toArray=Mo.prototype.Fa,Mo.prototype.toSet=Mo.prototype.Iv,Mo.prototype.first=Mo.prototype.first,Mo.prototype.clear=Mo.prototype.clear,Mo.prototype.delete=Mo.prototype.delete,Mo.prototype.remove=Mo.prototype.remove,Mo.prototype.has=Mo.prototype.has,Mo.prototype.contains=Mo.prototype.contains,Mo.prototype.add=Mo.prototype.add,Mo.prototype.thaw=Mo.prototype.ka,Mo.prototype.freeze=Mo.prototype.freeze,Mo.className="MapKeySet";function Ho(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Ho.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Ho.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Ho.prototype.Ad=function(){return this.next()},Ho.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Ho.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ho.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ho.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Ho.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ho.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ci;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ho.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},qe.Object.defineProperties(Ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ho.prototype.first=Ho.prototype.first,Ho.prototype.hasNext=Ho.prototype.Ad,Ho.prototype.next=Ho.prototype.next,Ho.prototype.reset=Ho.prototype.reset,Ho.className="MapValueSetIterator";function ps(a,y){this.key=a,this.value=y,this.ll=this.va=null}ps.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ps.className="KeyValuePair";function ss(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ss.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ss.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},ss.prototype.Ad=function(){return this.next()},ss.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},ss.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},ss.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},ss.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},ss.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ss.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ci;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ss.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ss.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},qe.Object.defineProperties(ss.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ss.prototype.first=ss.prototype.first,ss.prototype.hasNext=ss.prototype.Ad,ss.prototype.next=ss.prototype.next,ss.prototype.reset=ss.prototype.reset,ss.className="MapIterator";function gr(a){Zo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&gn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}$t=gr.prototype,$t.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.toString=function(){return"Map()#"+fs(this)},$t.add=function(a,y){this._isFrozen&&di(this,a);var x=a;kn(a)&&(x=ra(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new ps(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},$t.set=function(a,y){return this.add(a,y)},$t.addAll=function(a){if(a===null)return this;if(yi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof gr)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},$t.first=function(){return this.ea},gr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},gr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},gr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},gr.prototype.map=function(a){for(var y=new gr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},gr.prototype.filter=function(a){for(var y=new gr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},$t=gr.prototype,$t.contains=function(a){var y=a;return kn(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},$t.has=function(a){return this.contains(a)},$t.I=function(a){var y=a;return kn(a)&&(y=fs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},$t.get=function(a){return this.I(a)},$t.remove=function(a){if(a===null)return!1;this._isFrozen&&di(this,a);var y=a;if(kn(a)&&(y=fs(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},$t.delete=function(a){return this.remove(a)},$t.clear=function(){this._isFrozen&&di(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},gr.prototype.copy=function(){var a=new gr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},gr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new ps(E.key,E.value),x++}return y},gr.prototype.Lf=function(){return new Mo(this)},qe.Object.defineProperties(gr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return wi;var a=this.Sa;return a!==null?(a.reset(),a):new ss(this)}},iteratorKeys:{get:function(){return 0>=this.count?wi:new Vs(this)}},iteratorValues:{get:function(){if(0>=this.count)return wi;var a=this.jf;return a!==null?(a.reset(),a):new Ho(this)}}}),gr.prototype.toKeySet=gr.prototype.Lf,gr.prototype.toArray=gr.prototype.Fa,gr.prototype.clear=gr.prototype.clear,gr.prototype.delete=gr.prototype.delete,gr.prototype.remove=gr.prototype.remove,gr.prototype.get=gr.prototype.get,gr.prototype.getValue=gr.prototype.I,gr.prototype.has=gr.prototype.has,gr.prototype.contains=gr.prototype.contains,gr.prototype.first=gr.prototype.first,gr.prototype.addAll=gr.prototype.addAll,gr.prototype.set=gr.prototype.set,gr.prototype.add=gr.prototype.add,gr.prototype.thaw=gr.prototype.ka,gr.prototype.freeze=gr.prototype.freeze,gr.className="Map";function ke(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):gn("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ts,Sa,sl,Ll,ml;ke.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},ke.prototype.h=function(a,y){return this.x=a,this.y=y,this},ke.prototype.sg=function(a,y){return this.x=a,this.y=y,this},ke.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},ke.prototype.copy=function(){var a=new ke;return a.x=this.x,a.y=this.y,a},$t=ke.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ol(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new ke(x,E)}return new ke}function is(a){return a.x.toString()+" "+a.y.toString()}$t.toString=function(){return"Point("+this.x+","+this.y+")"},$t.D=function(a){return a instanceof ke?this.x===a.x&&this.y===a.y:!1},$t.hi=function(a,y){return this.x===a&&this.y===y},$t.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)},$t.add=function(a){return this.x+=a.x,this.y+=a.y,this},$t.re=function(a){return this.x-=a.x,this.y-=a.y,this},$t.offset=function(a,y){return this.x+=a,this.y+=y,this},ke.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},$t=ke.prototype,$t.scale=function(a,y){return this.x*=a,this.y*=y,this},$t.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},$t.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},$t.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},$t.ab=function(a){return $o(a.x-this.x,a.y-this.y)},$t.direction=function(a,y){return $o(a-this.x,y-this.y)};function $o(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}$t.Ry=function(a,y){return En.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},$t.fA=function(a,y,x,b){return En.qh(a,y,x,b,this.x,this.y,this),this},$t.gA=function(a,y){return En.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},$t.uA=function(a,y,x,b){return En.No(this.x,this.y,a,y,x,b,this),this},$t.vA=function(a,y){return En.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},$t.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},$t.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},$t.transform=function(a){return a.Ga(this),this};function wo(a,y){return y.Cd(a),a}function ks(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ut=-x*nt-b*ot;return 0>=ut||ut>=at?(nt=E-a,ot=z-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function co(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function to(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}$t.w=function(){return isFinite(this.x)&&isFinite(this.y)},ke.alloc=function(){var a=Uo.pop();return a===void 0?new ke:a},ke.allocAt=function(a,y){var x=Uo.pop();return x===void 0?new ke(a,y):(x.x=a,x.y=y,x)},ke.free=function(a){Uo.push(a)},ke.prototype.isReal=ke.prototype.w,ke.prototype.setSpot=ke.prototype.yi,ke.prototype.setRectSpot=ke.prototype.xi,ke.prototype.snapToGridPoint=ke.prototype.vA,ke.prototype.snapToGrid=ke.prototype.uA,ke.prototype.projectOntoLineSegmentPoint=ke.prototype.gA,ke.prototype.projectOntoLineSegment=ke.prototype.fA,ke.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return En.Rl(a,y,x,b,E,z,nt,ot)},ke.prototype.compareWithLineSegmentPoint=ke.prototype.Ry,ke.compareWithLineSegment=function(a,y,x,b,E,z){return En.Fl(a,y,x,b,E,z)},ke.prototype.direction=ke.prototype.direction,ke.prototype.directionPoint=ke.prototype.ab,ke.prototype.normalize=ke.prototype.normalize,ke.prototype.distanceSquared=ke.prototype.zd,ke.prototype.distanceSquaredPoint=ke.prototype.Bf,ke.prototype.scale=ke.prototype.scale,ke.prototype.rotate=ke.prototype.rotate,ke.prototype.offset=ke.prototype.offset,ke.prototype.subtract=ke.prototype.re,ke.prototype.add=ke.prototype.add,ke.prototype.equalsApprox=ke.prototype.Xa,ke.prototype.equalTo=ke.prototype.hi,ke.prototype.equals=ke.prototype.D,ke.prototype.set=ke.prototype.set,ke.prototype.setTo=ke.prototype.sg;var Uo=[];ke.className="Point",ke.parse=Ol,ke.stringify=is,ke.distanceLineSegmentSquared=ks,ke.distanceSquared=co,ke.direction=to,ke.Origin=ts=new ke(0,0).ja(),ke.InfiniteTopLeft=Sa=new ke(-1/0,-1/0).ja(),ke.InfiniteBottomRight=sl=new ke(1/0,1/0).ja(),ke.SixPoint=Ll=new ke(6,6).ja(),ke.NoPoint=ml=new ke(NaN,NaN).ja(),ke.parse=Ol,ke.stringify=is,ke.distanceLineSegmentSquared=ks,ke.distanceSquared=co,ke.direction=to;function Ki(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):gn("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ts,zs,Aa,qs,Qo,Zs,vl;Ki.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Ki.prototype.h=function(a,y){return this.width=a,this.height=y,this},Ki.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Ki.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Ki.prototype.copy=function(){var a=new Ki;return a.width=this.width,a.height=this.height,a},$t=Ki.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this};function yl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Ki(x,E)}return new Ki}function Dl(a){return a.width.toString()+" "+a.height.toString()}$t.toString=function(){return"Size("+this.width+","+this.height+")"},$t.D=function(a){return a instanceof Ki?this.width===a.width&&this.height===a.height:!1},$t.hi=function(a,y){return this.width===a&&this.height===y},$t.Xa=function(a){return En.B(this.width,a.width)&&En.B(this.height,a.height)},$t.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},$t.w=function(){return isFinite(this.width)&&isFinite(this.height)},Ki.alloc=function(){var a=Bs.pop();return a===void 0?new Ki:a},Ki.free=function(a){Bs.push(a)},Ki.prototype.isReal=Ki.prototype.w,Ki.prototype.inflate=Ki.prototype.Bc,Ki.prototype.equalsApprox=Ki.prototype.Xa,Ki.prototype.equalTo=Ki.prototype.hi,Ki.prototype.equals=Ki.prototype.D,Ki.prototype.set=Ki.prototype.set,Ki.prototype.setTo=Ki.prototype.sg;var Bs=[];Ki.className="Size",Ki.parse=yl,Ki.stringify=Dl,Ki.ZeroSize=Ts=new Ki(0,0).ja(),Ki.OneSize=zs=new Ki(1,1).ja(),Ki.SixSize=Aa=new Ki(6,6).ja(),Ki.EightSize=qs=new Ki(8,8).ja(),Ki.TenSize=Qo=new Ki(10,10).ja(),Ki.InfiniteSize=Zs=new Ki(1/0,1/0).ja(),Ki.NoSize=vl=new Ki(NaN,NaN).ja(),Ki.parse=yl,Ki.stringify=Dl;function ai(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof ke?(x=a.x,a=a.y,y instanceof ke?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Ki?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):gn("Incorrect second argument supplied to Rect constructor "+y)):gn("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}$t=ai.prototype,$t.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},$t.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Ga(a,y,x){a.width=y,a.height=x}$t.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},$t.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},$t.dd=function(a){return this.x=a.x,this.y=a.y,this},$t.tA=function(a){return this.width=a.width,this.height=a.height,this},ai.prototype.copy=function(){var a=new ai;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},$t=ai.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this};function mh(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new ai(x,E,z,nt)}return new ai}function ju(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}$t.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},$t.D=function(a){return a instanceof ai?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},$t.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},$t.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)&&En.B(this.width,a.width)&&En.B(this.height,a.height)};function su(a,y){return En.$(a.x,y.x)&&En.$(a.y,y.y)&&En.$(a.width,y.width)&&En.$(a.height,y.height)}$t.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},$t.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},$t.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},$t.offset=function(a,y){return this.x+=a,this.y+=y,this},$t.Bc=function(a,y){return Ao(this,y,a,y,a)},$t.Co=function(a){return Ao(this,a.top,a.right,a.bottom,a.left)},$t.Fv=function(a){return Ao(this,-a.top,-a.right,-a.bottom,-a.left)},$t.Hz=function(a,y,x,b){return Ao(this,a,y,x,b)};function Ao(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}$t.Ex=function(a){return Ks(this,a.x,a.y,a.width,a.height)},$t.Uu=function(a,y,x,b){return Ks(this,a,y,x,b)};function Ks(a,y,x,b,E){var z=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}$t.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},$t.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Ls(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}$t.Ye=function(a){return bs(this,a.x,a.y,0,0)},$t.ed=function(a){return bs(this,a.x,a.y,a.width,a.height)},$t.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),bs(this,a,y,x,b)};function bs(a,y,x,b,E){var z=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=y-z,a.height=x-nt,a}$t.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Hs(a,y,x,b,E,z,nt,ot){return nt===void 0&&(nt=0),ot===void 0&&(ot=0),a<=E&&E+nt<=a+x&&y<=z&&z+ot<=y+b}function Ml(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}$t.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$t.Mz=function(){return this.width===0&&this.height===0},ai.alloc=function(){var a=xs.pop();return a===void 0?new ai:a},ai.allocAt=function(a,y,x,b){var E=xs.pop();return E===void 0?new ai(a,y,x,b):E.h(a,y,x,b)},ai.free=function(a){xs.push(a)},qe.Object.defineProperties(ai.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new ke(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Ki(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new ke(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ai.prototype.isEmpty=ai.prototype.Mz,ai.prototype.isReal=ai.prototype.w,ai.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return En.Fx(a,y,x,b,E,z,nt,ot)},ai.prototype.setSpot=ai.prototype.yi,ai.prototype.union=ai.prototype.Kv,ai.prototype.unionRect=ai.prototype.ed,ai.prototype.unionPoint=ai.prototype.Ye,ai.prototype.intersects=ai.prototype.Vu,ai.prototype.intersectsRect=ai.prototype.Yc,ai.prototype.intersect=ai.prototype.Uu,ai.prototype.intersectRect=ai.prototype.Ex,ai.prototype.grow=ai.prototype.Hz,ai.prototype.subtractMargin=ai.prototype.Fv,ai.prototype.addMargin=ai.prototype.Co,ai.prototype.inflate=ai.prototype.Bc,ai.prototype.offset=ai.prototype.offset,ai.prototype.contains=ai.prototype.contains,ai.prototype.containsRect=ai.prototype.Re,ai.prototype.containsPoint=ai.prototype.ca,ai.prototype.equalsApprox=ai.prototype.Xa,ai.prototype.equalTo=ai.prototype.hi,ai.prototype.equals=ai.prototype.D,ai.prototype.setSize=ai.prototype.tA,ai.prototype.setPoint=ai.prototype.dd,ai.prototype.set=ai.prototype.set,ai.prototype.setTo=ai.prototype.sg;var cs=null,Qs=null,xs=[];ai.className="Rect",ai.parse=mh,ai.stringify=ju,ai.contains=Hs,ai.intersects=Ml,ai.ZeroRect=cs=new ai(0,0,0,0).ja(),ai.NoRect=Qs=new ai(NaN,NaN,NaN,NaN).ja(),ai.parse=mh,ai.stringify=ju,ai.contains=Hs,ai.intersects=Ml;function Gr(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):gn("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Gr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Gr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Gr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Gr.prototype.copy=function(){var a=new Gr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},$t=Gr.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this};function al(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Gr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Gr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Gr(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Gr(x,E):new Gr(x,E,z,nt)}return new Gr}function Ds(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}$t.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},$t.D=function(a){return a instanceof Gr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},$t.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},$t.Xa=function(a){return En.B(this.top,a.top)&&En.B(this.right,a.right)&&En.B(this.bottom,a.bottom)&&En.B(this.left,a.left)},$t.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Gr.alloc=function(){var a=$l.pop();return a===void 0?new Gr:a},Gr.free=function(a){$l.push(a)},Gr.prototype.isReal=Gr.prototype.w,Gr.prototype.equalsApprox=Gr.prototype.Xa,Gr.prototype.equalTo=Gr.prototype.hi,Gr.prototype.equals=Gr.prototype.D,Gr.prototype.set=Gr.prototype.set,Gr.prototype.setTo=Gr.prototype.sg;var Su=null,Ku=null,$l=[];Gr.className="Margin",Gr.parse=al,Gr.stringify=Ds,Gr.ZeroMargin=Su=new Gr(0,0,0,0).ja(),Gr.TwoMargin=Ku=new Gr(2,2,2,2).ja(),Gr.parse=al,Gr.stringify=Ds;function fr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Wa,nl,bl,au,Xa,Eo,Oa,$a,lu,Yl,Pu,bu,fu,nu,zo,Hd,Eu,yd,kh,nc,il,Ch,Qd,Oc,Dc,Es,ma,Uu,Ya,rl,Ha,da,Ja,jl,fc,dh;fr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},fr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.copy=function(){var a=new fr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},$t=fr.prototype,$t.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},$t.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this};function ll(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function zd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Wa;if(a==="TopLeft")return nl;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return bl;if(a==="TopRight")return au;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Xa;if(a==="Center")return Eo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Oa;if(a==="BottomLeft")return $a;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return lu;if(a==="BottomRight")return Yl;if(a==="TopSide")return Pu;if(a==="LeftSide")return bu;if(a==="RightSide")return fu;if(a==="BottomSide")return nu;if(a==="TopBottomSides")return zo;if(a==="LeftRightSides")return Hd;if(a==="TopLeftSides")return Eu;if(a==="TopRightSides")return yd;if(a==="BottomLeftSides")return kh;if(a==="BottomRightSides")return nc;if(a==="NotTopSide")return il;if(a==="NotLeftSide")return Ch;if(a==="NotRightSide")return Qd;if(a==="NotBottomSide")return Oc;if(a==="AllSides")return Dc;if(a==="Default")return Es;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new fr(x,E,z,nt)}return new fr}function td(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}$t.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Wa)?"None":this.D(nl)?"TopLeft":this.D(bl)?"Top":this.D(au)?"TopRight":this.D(Xa)?"Left":this.D(Eo)?"Center":this.D(Oa)?"Right":this.D($a)?"BottomLeft":this.D(lu)?"Bottom":this.D(Yl)?"BottomRight":this.D(Pu)?"TopSide":this.D(bu)?"LeftSide":this.D(fu)?"RightSide":this.D(nu)?"BottomSide":this.D(zo)?"TopBottomSides":this.D(Hd)?"LeftRightSides":this.D(Eu)?"TopLeftSides":this.D(yd)?"TopRightSides":this.D(kh)?"BottomLeftSides":this.D(nc)?"BottomRightSides":this.D(il)?"NotTopSide":this.D(Ch)?"NotLeftSide":this.D(Qd)?"NotRightSide":this.D(Oc)?"NotBottomSide":this.D(Dc)?"AllSides":this.D(Es)?"Default":"None"},$t.D=function(a){return a instanceof fr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},$t.gv=function(){return new fr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},$t.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ma))a=bu;else if(a.D(Uu))a=fu;else if(a.D(Ya))a=Pu;else if(a.D(rl))a=nu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},$t.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},$t.Mc=function(){return isNaN(this.x)||isNaN(this.y)},$t.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},$t.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},$t.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fr.alloc=function(){var a=Bh.pop();return a===void 0?new fr:a},fr.free=function(a){Bh.push(a)},fr.prototype.isDefault=fr.prototype.Xb,fr.prototype.isNone=fr.prototype.ys,fr.prototype.isSide=fr.prototype.$c,fr.prototype.isNoSpot=fr.prototype.Mc,fr.prototype.isSpot=fr.prototype.sb,fr.prototype.includesSide=fr.prototype.Hf,fr.prototype.opposite=fr.prototype.gv,fr.prototype.equals=fr.prototype.D,fr.prototype.set=fr.prototype.set,fr.prototype.setTo=fr.prototype.sg;var Bh=[];fr.className="Spot",fr.parse=zd,fr.stringify=td,fr.None=Wa=ll(new fr(0,0,0,0),0).ja(),fr.Default=Es=ll(new fr(0,0,-1,0),-1).ja(),fr.TopLeft=nl=new fr(0,0,0,0).ja(),fr.TopCenter=bl=new fr(.5,0,0,0).ja(),fr.TopRight=au=new fr(1,0,0,0).ja(),fr.LeftCenter=Xa=new fr(0,.5,0,0).ja(),fr.Center=Eo=new fr(.5,.5,0,0).ja(),fr.RightCenter=Oa=new fr(1,.5,0,0).ja(),fr.BottomLeft=$a=new fr(0,1,0,0).ja(),fr.BottomCenter=lu=new fr(.5,1,0,0).ja(),fr.BottomRight=Yl=new fr(1,1,0,0).ja(),fr.MiddleTop=Ha=bl,fr.MiddleLeft=da=Xa,fr.MiddleRight=Ja=Oa,fr.MiddleBottom=jl=lu,fr.Top=Ya=bl,fr.Left=ma=Xa,fr.Right=Uu=Oa,fr.Bottom=rl=lu,fr.TopSide=Pu=ll(new fr(0,0,1,1),1).ja(),fr.LeftSide=bu=ll(new fr(0,0,1,2),1).ja(),fr.RightSide=fu=ll(new fr(0,0,1,4),1).ja(),fr.BottomSide=nu=ll(new fr(0,0,1,8),1).ja(),fr.TopBottomSides=zo=ll(new fr(0,0,1,9),1).ja(),fr.LeftRightSides=Hd=ll(new fr(0,0,1,6),1).ja(),fr.TopLeftSides=Eu=ll(new fr(0,0,1,3),1).ja(),fr.TopRightSides=yd=ll(new fr(0,0,1,5),1).ja(),fr.BottomLeftSides=kh=ll(new fr(0,0,1,10),1).ja(),fr.BottomRightSides=nc=ll(new fr(0,0,1,12),1).ja(),fr.NotTopSide=il=ll(new fr(0,0,1,14),1).ja(),fr.NotLeftSide=Ch=ll(new fr(0,0,1,13),1).ja(),fr.NotRightSide=Qd=ll(new fr(0,0,1,11),1).ja(),fr.NotBottomSide=Oc=ll(new fr(0,0,1,7),1).ja(),fr.AllSides=Dc=ll(new fr(0,0,1,15),1).ja(),fc=new fr(.156,.156).ja(),dh=new fr(.844,.844).ja(),fr.parse=zd,fr.stringify=td;function Ro(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ro.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Ro.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Ro.prototype.copy=function(){var a=new Ro;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Ro.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ro.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Ro.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ro.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ro.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Ro.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,nt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*nt+this.m21*a+this.dx,this.dy=this.m12*nt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Ro.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Ro.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=nt,this.translate(-y,-x),this},$t=Ro.prototype,$t.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},$t.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},$t.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},$t.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},$t.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},$t.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ut=this.dx,ct=this.dy,yt=y*z+x*ot+ut,It=y*nt+x*at+ct,Kt=b*z+x*ot+ut,Zt=b*nt+x*at+ct;return x=y*z+E*ot+ut,y=y*nt+E*at+ct,z=b*z+E*ot+ut,b=b*nt+E*at+ct,E=Math.min(yt,Kt),yt=Math.max(yt,Kt),Kt=Math.min(It,Zt),It=Math.max(It,Zt),E=Math.min(E,x),yt=Math.max(yt,x),Kt=Math.min(Kt,y),It=Math.max(It,y),E=Math.min(E,z),yt=Math.max(yt,z),Kt=Math.min(Kt,b),It=Math.max(It,b),a.h(E,Kt,yt-E,It-Kt),a},Ro.alloc=function(){var a=sA.pop();return a===void 0?new Ro:a},Ro.free=function(a){sA.push(a)},Ro.prototype.transformRect=Ro.prototype.pp,Ro.prototype.transformPoint=Ro.prototype.Ga,Ro.prototype.scale=Ro.prototype.scale,Ro.prototype.translate=Ro.prototype.translate,Ro.prototype.rotate=Ro.prototype.rotate,Ro.prototype.invert=Ro.prototype.Vj,Ro.prototype.multiplyInverted=Ro.prototype.bv,Ro.prototype.multiply=Ro.prototype.multiply,Ro.prototype.reset=Ro.prototype.reset,Ro.prototype.isIdentity=Ro.prototype.ws,Ro.prototype.equals=Ro.prototype.D,Ro.prototype.setTransform=Ro.prototype.setTransform,Ro.prototype.set=Ro.prototype.set;var sA=[];Ro.className="Transform",Ro.xF="54a702f3e53909c447824c6706603faf4c";var En={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=En.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);En.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,nt){if(0>=E&&(E=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ut=y,ct=b;else ut=b,ct=y;if(a===x)return ut<=nt&&nt<=ct&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=at&&y-E<=nt&&nt<=y+E;if(at+=E,ot-=E,ot<=z&&z<=at&&(ct+=E,ut-=E,ut<=nt&&nt<=ct))if(at-ot>ct-ut)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt){if(En.Yb(a,y,nt,ot,yt,x,b)&&En.Yb(a,y,nt,ot,yt,E,z))return En.Yb(a,y,nt,ot,yt,ut,ct);var It=(a+x)/2,Kt=(y+b)/2,Zt=(x+E)/2,ue=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(It+Zt)/2,x=(Kt+ue)/2,Zt=(Zt+E)/2,ue=(ue+z)/2;var Re=(b+Zt)/2,Fe=(x+ue)/2;return En.cs(a,y,It,Kt,b,x,Re,Fe,at,ut,ct,yt)||En.cs(Re,Fe,Zt,ue,E,z,nt,ot,at,ut,ct,yt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ut=(x+E)/2,ct=(b+z)/2;return at.h((((a+x)/2+ut)/2+(ut+(E+nt)/2)/2)/2,(((y+b)/2+ct)/2+(ct+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ut=(b+z)/2;return to(((a+x)/2+at)/2,((y+b)/2+ut)/2,(at+(E+nt)/2)/2,(ut+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,nt,ot,at,x,b)&&En.Yb(a,y,nt,ot,at,E,z))bs(ut,a,y,0,0),bs(ut,nt,ot,0,0);else{var ct=(a+x)/2,yt=(y+b)/2,It=(x+E)/2,Kt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+It)/2,x=(yt+Kt)/2,It=(It+E)/2,Kt=(Kt+z)/2;var Zt=(b+It)/2,ue=(x+Kt)/2;En.Dl(a,y,ct,yt,b,x,Zt,ue,at,ut),En.Dl(Zt,ue,It,Kt,E,z,nt,ot,at,ut)}return ut},Qe:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,nt,ot,at,x,b)&&En.Yb(a,y,nt,ot,at,E,z))ut.length===0&&(ut.push(a),ut.push(y)),ut.push(nt),ut.push(ot);else{var ct=(a+x)/2,yt=(y+b)/2,It=(x+E)/2,Kt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+It)/2,x=(yt+Kt)/2,It=(It+E)/2,Kt=(Kt+z)/2;var Zt=(b+It)/2,ue=(x+Kt)/2;En.Qe(a,y,ct,yt,b,x,Zt,ue,at,ut),En.Qe(Zt,ue,It,Kt,E,z,nt,ot,at,ut)}return ut},jv:function(a,y,x,b,E,z,nt,ot,at,ut){if(En.Yb(a,y,E,z,ut,x,b))return En.Yb(a,y,E,z,ut,ot,at);var ct=(a+x)/2,yt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var It=(ct+x)/2,Kt=(yt+b)/2;return En.jv(a,y,ct,yt,It,Kt,nt,ot,at,ut)||En.jv(It,Kt,x,b,E,z,nt,ot,at,ut)},OA:function(a,y,x,b,E,z,nt){return nt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),nt},iv:function(a,y,x,b,E,z,nt,ot){if(En.Yb(a,y,E,z,nt,x,b))bs(ot,a,y,0,0),bs(ot,E,z,0,0);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,yt=(ut+b)/2;En.iv(a,y,at,ut,ct,yt,nt,ot),En.iv(ct,yt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(En.Yb(a,y,E,z,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,yt=(ut+b)/2;En.ep(a,y,at,ut,ct,yt,nt,ot),En.ep(ct,yt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,It,Kt){if(En.Yb(a,y,nt,ot,It,x,b)&&En.Yb(a,y,nt,ot,It,E,z))return!En.Rl(a,y,nt,ot,at,ut,ct,yt)||(It=(a-nt)*(ut-yt)-(y-ot)*(at-ct),It===0)?!1:(Kt.h(((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/It,((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/It),!0);var Zt=(a+x)/2,ue=(y+b)/2,Re=(x+E)/2,Fe=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Zt+Re)/2,x=(ue+Fe)/2,Re=(Re+E)/2,Fe=(Fe+z)/2;var We=(b+Re)/2,Je=(x+Fe)/2,nn=1/0,xn=!1,Vn=0,ir=0;return En.Eo(a,y,Zt,ue,b,x,We,Je,at,ut,ct,yt,It,Kt)&&(a=(Kt.x-at)*(Kt.x-at)+(Kt.y-ut)*(Kt.y-ut),a<nn&&(nn=a,xn=!0,Vn=Kt.x,ir=Kt.y)),En.Eo(We,Je,Re,Fe,E,z,nt,ot,at,ut,ct,yt,It,Kt)&&(Kt.x-at)*(Kt.x-at)+(Kt.y-ut)*(Kt.y-ut)<nn&&(xn=!0,Vn=Kt.x,ir=Kt.y),xn&&(Kt.x=Vn,Kt.y=ir),xn},Fo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,It){var Kt=0;if(En.Yb(a,y,nt,ot,It,x,b)&&En.Yb(a,y,nt,ot,It,E,z)){if(It=(a-nt)*(ut-yt)-(y-ot)*(at-ct),It===0)return Kt;var Zt=((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/It,ue=((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/It;if(Zt>=ct)return Kt;if((at>ct?at-ct:ct-at)<(ut>yt?ut-yt:yt-ut)){if(y<ot?(at=y,a=ot):(at=ot,a=y),ue<at||ue>a)return Kt}else if(a<nt?(at=a,a=nt):at=nt,Zt<at||Zt>a)return Kt;0<It?Kt++:0>It&&Kt--}else{Zt=(a+x)/2,ue=(y+b)/2;var Re=(x+E)/2,Fe=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Zt+Re)/2,x=(ue+Fe)/2,Re=(Re+E)/2,Fe=(Fe+z)/2;var We=(b+Re)/2,Je=(x+Fe)/2;Kt+=En.Fo(a,y,Zt,ue,b,x,We,Je,at,ut,ct,yt,It),Kt+=En.Fo(We,Je,Re,Fe,E,z,nt,ot,at,ut,ct,yt,It)}return Kt},qh:function(a,y,x,b,E,z,nt){return En.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(nt.h(a,x),!1):z>y?(nt.h(a,y),!1):(nt.h(a,z),!0)):En.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(nt.h(b,y),!1):E>a?(nt.h(a,y),!1):(nt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(nt.h(a,y),!1):1.000005<E?(nt.h(x,b),!1):(nt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,nt,ot,at){return En.B(a,x)&&En.B(y,b)?(at.h(a,y),!1):En.$(E,nt)?En.$(a,x)?(En.qh(a,y,x,b,E,z,at),!1):En.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),En.$(a,x)?(x=ot*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(at.h(a,E),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(nt=(b-y)/(x-a),En.$(ot,nt)?(En.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),En.$(nt,0)?(a<x?(b=a,a=x):b=x,E<b?(at.h(b,y),!1):E>a?(at.h(a,y),!1):(at.h(E,y),!0)):En.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return En.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,nt,ot,at,ut){function ct(Re,Fe){var We=(Re-a)*(Re-a)+(Fe-y)*(Fe-y);We<yt&&(yt=We,at.h(Re,Fe))}var yt=1/0;ct(at.x,at.y);var It=0,Kt=0,Zt=0,ue=0;if(E<nt?(It=E,Kt=nt):(It=nt,Kt=E),z<ot?(Zt=E,ue=nt):(Zt=nt,ue=E),It=(Kt-It)/2+ut,ut=(ue-Zt)/2+ut,E=(E+nt)/2,z=(z+ot)/2,It===0||ut===0)return at;if(.5>(x>a?x-a:a-x)){if(It=1-(x-E)*(x-E)/(It*It),0>It)return at;It=Math.sqrt(It),b=-ut*It+z,ct(x,ut*It+z),ct(x,b)}else{if(x=(b-y)/(x-a),b=1/(It*It)+x*x/(ut*ut),ot=2*x*(y-x*a)/(ut*ut)-2*x*z/(ut*ut)-2*E/(It*It),It=ot*ot-4*b*(2*x*a*z/(ut*ut)-2*y*z/(ut*ut)+z*z/(ut*ut)+E*E/(It*It)-1+(y-x*a)*(y-x*a)/(ut*ut)),0>It)return at;It=Math.sqrt(It),ut=(-ot+It)/(2*b),ct(ut,x*ut-x*a+y),It=(-ot-It)/(2*b),ct(It,x*It-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ut=1e21,ct=a,yt=y;if(En.Ve(a,y,a,b,E,z,nt,ot,at)){var It=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);It<ut&&(ut=It,ct=at.x,yt=at.y)}return En.Ve(x,y,x,b,E,z,nt,ot,at)&&(It=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),It<ut&&(ut=It,ct=at.x,yt=at.y)),En.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ut&&(ut=y,ct=at.x,yt=at.y)),En.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ut&&(ut=a,ct=at.x,yt=at.y)),at.h(ct,yt),1e21>ut},us:function(a,y,x){return En.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,nt,ot){var at=a+x,ut=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ut&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ut&&ot<=at&&E>=a):!!(Hs(a,y,x,b,E,z)||Hs(a,y,x,b,nt,ot)||En.Rl(a,y,at,y,E,z,nt,ot)||En.Rl(at,y,at,ut,E,z,nt,ot)||En.Rl(at,ut,a,ut,E,z,nt,ot)||En.Rl(a,ut,a,y,E,z,nt,ot))},Rl:function(a,y,x,b,E,z,nt,ot){return a===x&&y===b&&E===nt&&z===ot?a===E&&y===z:0>=En.Fl(a,y,x,b,E,z)*En.Fl(a,y,x,b,nt,ot)&&0>=En.Fl(E,z,nt,ot,a,y)*En.Fl(E,z,nt,ot,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var nt=Math.PI;z||(b*=nt/180,E*=nt/180);var ot=b>E?-1:1;z=[];var at=nt/2,ut=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ut+ot*Math.min(b,at),ot=a+x*Math.cos(ut),ut=y+x*Math.sin(ut),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ut+y)/2,z.push([ot,ut,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ut+ot*Math.min(b,at),z.push(En.Vy(x,ut,E,a,y)),b-=Math.abs(E-ut),ut=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),ot=a*Math.sin(z),at=-ot,ut=nt*nt+at*at,ct=ut+nt*nt+at*ot;return ut=4/3*(Math.sqrt(2*ut*ct)-ct)/(nt*ot-at*nt),ot=nt-ut*at,nt=at+ut*nt,at=-nt,ut=z+y,z=Math.cos(ut),ut=Math.sin(ut),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ut,E+ot*ut+nt*z,b+ot*z-at*ut,E+ot*ut+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(ot,a),nt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var nt=1,ot=0;else nt=0,ot=1;var at=nt===0?a:y,ut=nt===0?x:b;return(nt===0?E:z)&&(ut=-ut),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),En.az(at,nt===0?a:y,ut,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var nt=y*b,ot=-z+nt,at=-z+Math.sqrt(a*a+nt*nt);y=ot;for(var ut=0;9999999999>ut&&(y=.5*(ot+at),!(y===ot||y===at));++ut){var ct=a/(y+E),yt=nt/(y+z);if(ct=ct*ct+yt*yt-1,0<ct)ot=y;else if(0>ct)at=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Kr,um:new Kr,Mf:new Kr,Nf:0,vm:100};En.za=En.AA;function Vi(a){Zo(this),this.l=2,a===void 0&&(a=Vi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Vi.o?this.ee=new Ci:(Vi.V===null&&(Vi.V=new Ci().freeze()),this.ee=Vi.V),this.aq=this.ee.Ja,this.Ip=new ai().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=nl,this.gg=Yl,this.Rk=this.Sk=NaN,this.Uf=Ti}Vi.prototype.copy=function(){var a=new Vi;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Vi.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Vi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Vi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Vi.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Vi.prototype.ka=function(){if(Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Vi.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Vi.prototype.Xa=function(a){if(!(a instanceof Vi))return!1;if(this.type!==a.type)return this.type===Vi.j&&a.type===Vi.o?aA(this,a):a.type===Vi.j&&this.type===Vi.o?aA(a,this):!1;if(this.type===Vi.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return En.B(this.startX,a.startX)&&En.B(this.startY,a.startY)&&En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)};function aA(a,y){return a.type!==Vi.j||y.type!==Vi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&En.B(a.startX,y.startX)&&En.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===oa&&En.B(a.endX,y.endX)&&En.B(a.endY,y.endY))))}Vi.ia=function(a){return a.toString()},Vi.prototype.qb=function(a){a.classType===Vi&&(this.type=a)},Vi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Vi.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Vi.u:var y=new ai(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Vi.F:if(y=new ai(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Vi.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Vi.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Vi.parse=function(a,y){function x(){return ue>=nn-1?!0:ut[ue+1].match(xn)!==null}function b(){return ue++,ut[ue]}function E(Fo){var mo=parseFloat(b()),Ns=parseFloat(b());Re===Re.toLowerCase()&&(mo=Je.x+mo,Ns=Je.y+Ns),Fo.h(mo,Ns)}function z(){return E(Je),Je}function nt(){return E(We),We}function ot(){var Fo=Fe.toLowerCase();return Fo!=="c"&&Fo!=="s"&&Fo!=="q"&&Fo!=="t"?Je:new ke(2*Je.x-We.x,2*Je.y-We.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ut=a.split(" ");for(a=0;a<ut.length;a++){var ct=ut[a];if(ct.match(/(\.[0-9]*)(\.)/gm)!==null){at=cr();for(var yt="",It=!1,Kt=0;Kt<ct.length;Kt++){var Zt=ct[Kt];Zt!=="."||It?Zt==="."?(at.push(yt),yt="."):yt+=Zt:(It=!0,yt+=Zt)}for(at.push(yt),ut.splice(a,1),ct=0;ct<at.length;ct++)ut.splice(a+ct,0,at[ct]);a+=at.length-1,wr(at)}}var ue=-1,Re="",Fe="";at=new ke(0,0);var We=new ke(0,0),Je=new ke(0,0),nn=ut.length;a=jy(null),It=yt=ct=!1,Kt=!0,Zt=null;for(var xn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ue>=nn-1);)if(Fe=Re,Re=b(),Re!=="")switch(Re.toUpperCase()){case"X":Kt=!0,yt=ct=!1;break;case"M":for(Zt=z(),a.mc===null||Kt===!0?(Op(a,Zt.x,Zt.y,ct,!yt,It),Kt=!1):a.moveTo(Zt.x,Zt.y),at.assign(Je);!x();)Zt=z(),a.lineTo(Zt.x,Zt.y);break;case"L":for(;!x();)Zt=z(),a.lineTo(Zt.x,Zt.y);break;case"H":for(;!x();)Je=new ke((Re===Re.toLowerCase()?Je.x:0)+parseFloat(b()),Je.y),a.lineTo(Je.x,Je.y);break;case"V":for(;!x();)Je=new ke(Je.x,(Re===Re.toLowerCase()?Je.y:0)+parseFloat(b())),a.lineTo(Je.x,Je.y);break;case"C":for(;!x();){Zt=new ke,E(Zt);var Vn=nt(),ir=z();Pf(a,Zt.x,Zt.y,Vn.x,Vn.y,ir.x,ir.y)}break;case"S":for(;!x();)Zt=ot(),Vn=nt(),ir=z(),Pf(a,Zt.x,Zt.y,Vn.x,Vn.y,ir.x,ir.y);break;case"Q":for(;!x();)Zt=nt(),Vn=z(),r0(a,Zt.x,Zt.y,Vn.x,Vn.y);break;case"T":for(;!x();)We=Zt=ot(),Vn=z(),r0(a,Zt.x,Zt.y,Vn.x,Vn.y);break;case"B":for(;!x();){Zt=parseFloat(b()),Vn=parseFloat(b()),ir=parseFloat(b());var Lr=parseFloat(b()),yr=parseFloat(b()),Gi=yr,Mi=!1;x()||(Gi=parseFloat(b()),x()||(Mi=parseFloat(b())!==0)),Re===Re.toLowerCase()&&(ir+=Je.x,Lr+=Je.y),a.arcTo(Zt,Vn,ir,Lr,yr,Gi,Mi)}break;case"A":for(;!x();)Zt=Math.abs(parseFloat(b())),Vn=Math.abs(parseFloat(b())),ir=parseFloat(b()),yr=Lr=!1,Mi=Gi=0,Gi=b(),Gi.length===1?(Lr=!!parseFloat(Gi),yr=!!parseFloat(b()),Gi=parseFloat(b())):Gi.length===2?(Lr=!!parseFloat(Gi[0]),yr=!!parseFloat(Gi[1]),Gi=parseFloat(b())):(Lr=!!parseFloat(Gi[0]),yr=!!parseFloat(Gi[1]),Gi=parseFloat(Gi.slice(2))),Mi=parseFloat(b()),Re===Re.toLowerCase()&&(Gi=Je.x+Gi,Mi=Je.y+Mi),Je.h(Gi,Mi),Lw(a,Zt,Vn,ir,Lr,yr,Gi,Mi);break;case"Z":Fw(a),Je.assign(at);break;case"F":for(Zt="",Vn=1;ut[ue+Vn];)if(ut[ue+Vn]==="0")It=!0,Vn++;else if(ut[ue+Vn].match(/[Uu]/)!==null)Vn++;else if(ut[ue+Vn].match(xn)===null)Vn++;else{Zt=ut[ue+Vn];break}Zt.match(/[Mm]/)?ct=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Zt="",Vn=1;ut[ue+Vn];)if(ut[ue+Vn].match(/[Ff]/)!==null)Vn++;else if(ut[ue+Vn].match(xn)===null)Vn++;else{Zt=ut[ue+Vn];break}Zt.match(/[Mm]/)?yt=!0:a.mc.isShadowed=!1}if(at=a.os,o0=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},Vi.Ha=function(a,y){for(var x=a.length,b=ke.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}ke.free(b)},Vi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Vi.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Vi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Vi.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var nt=b[z];nt._isInvalidBounds=!1,nt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),ic(this,a,!1),bs(a,0,0,0,0),a.freeze()},Vi.prototype.ix=function(){var a=new ai;return ic(this,a,!0),a};function ic(a,y,x){switch(a.type){case Vi.j:case Vi.u:case Vi.F:x?y.h(a.od,a.pd,0,0):bs(y,a.od,a.pd,0,0),bs(y,a.Dc,a.Ec,0,0);break;case Vi.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):bs(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ut=z.startY,ct=0;ct<ot;ct++){var yt=nt[ct];switch(yt.type){case oa:case El:at=yt.endX,ut=yt.endY,bs(y,at,ut,0,0);break;case gu:En.Dl(at,ut,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,y),at=yt.endX,ut=yt.endY;break;case bh:En.iv(at,ut,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,y),at=yt.endX,ut=yt.endY;break;case wl:case zh:var It=yt.type===wl?oh(yt,z):Xu(yt,z,at,ut),Kt=It.length;if(Kt===0){at=yt.type===wl?yt.centerX:yt.endX,ut=yt.type===wl?yt.centerY:yt.endY,bs(y,at,ut,0,0);break}yt=null;for(var Zt=0;Zt<Kt;Zt++)yt=It[Zt],En.Dl(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,y);yt!==null&&(at=yt[6],ut=yt[7]);break;default:gn("Unknown Segment type: "+yt.type)}}}break;default:gn("Unknown Geometry type: "+a.type)}}Vi.prototype.normalize=function(){this._isFrozen&&di(this);var a=this.ix();return this.offset(-a.x,-a.y),new ke(-a.x,-a.y)},Vi.prototype.offset=function(a,y){return this._isFrozen&&di(this),this.transform(1,0,0,1,a,y),this},Vi.prototype.scale=function(a,y){return this._isFrozen&&di(this),this.transform(a,0,0,y,0,0),this},Vi.prototype.rotate=function(a,y,x){this._isFrozen&&di(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Ro.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ro.free(b),this},$t=Vi.prototype,$t.transform=function(a,y,x,b,E,z){switch(this.type){case Vi.j:case Vi.u:case Vi.F:var nt=this.od,ot=this.pd;this.od=nt*a+ot*x+E,this.pd=nt*y+ot*b+z,nt=this.Dc,ot=this.Ec,this.Dc=nt*a+ot*x+E,this.Ec=nt*y+ot*b+z;break;case Vi.o:for(var at=this.figures.s,ut=at.length,ct=0;ct<ut;ct++){var yt=at[ct];nt=yt.startX,ot=yt.startY,yt.startX=nt*a+ot*x+E,yt.startY=nt*y+ot*b+z,yt=yt.segments.s;for(var It=yt.length,Kt=0;Kt<It;Kt++){var Zt=yt[Kt];switch(Zt.type){case oa:case El:nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z;break;case gu:nt=Zt.point1X,ot=Zt.point1Y,Zt.point1X=nt*a+ot*x+E,Zt.point1Y=nt*y+ot*b+z,nt=Zt.point2X,ot=Zt.point2Y,Zt.point2X=nt*a+ot*x+E,Zt.point2Y=nt*y+ot*b+z,nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z;break;case bh:nt=Zt.point1X,ot=Zt.point1Y,Zt.point1X=nt*a+ot*x+E,Zt.point1Y=nt*y+ot*b+z,nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z;break;case wl:nt=Zt.centerX,ot=Zt.centerY,Zt.centerX=nt*a+ot*x+E,Zt.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.startAngle+=nt),0>a&&(Zt.startAngle=180-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),0>b&&(Zt.startAngle=-Zt.startAngle,Zt.sweepAngle=-Zt.sweepAngle),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY!==void 0&&(Zt.radiusY*=Math.sqrt(y*y+b*b));break;case zh:if(nt=Zt.endX,ot=Zt.endY,Zt.endX=nt*a+ot*x+E,Zt.endY=nt*y+ot*b+z,Zt.radiusX===0||Zt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Zt.xAxisRotation+=nt),0>a&&(Zt.xAxisRotation=180-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),0>b&&(Zt.xAxisRotation=-Zt.xAxisRotation,Zt.isClockwiseArc=!Zt.isClockwiseArc),Zt.radiusX*=Math.sqrt(a*a+x*x),Zt.radiusY*=Math.sqrt(y*y+b*b);break;default:gn("Unknown Segment type: "+Zt.type)}}}}return this._isInvalidBounds=!0,this},$t.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case Vi.j:return En.Yb(x,b,E,z,y,a.x,a.y);case Vi.u:var nt=ai.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=nt.ca(a),ai.free(nt),a;case Vi.F:nt=Math.min(x,E)-y;var ot=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ot=a.y-(ot+y),1>=nt*nt/(x*x)+ot*ot/(y*y));case Vi.o:return Gu(this,a,y,!0,!1);default:return!1}};function Gu(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ut,ct,yt,It=a.figures.s,Kt=It.length,Zt=0;Zt<Kt;Zt++){var ue=It[Zt],Re=!ue.isEvenOdd;if(ue.isFilled){if(b&&ue.ca(z,y,x))return!0;var Fe=ue.segments;at=ue.startX,ut=ue.startY;for(var We=at,Je=ut,nn=Fe.s,xn=0;xn<=Fe.length;xn++){var Vn=void 0;if(xn!==Fe.length){Vn=nn[xn];var ir=Vn.type;a=Vn.endX,yt=Vn.endY}else ir=oa,a=We,yt=Je;switch(ir){case El:if(We=Wu(z,y,nt,y,at,ut,We,Je),isNaN(We))return!0;ot+=We,We=a,Je=yt;break;case oa:if(at=Wu(z,y,nt,y,at,ut,a,yt),isNaN(at))return!0;ot+=at;break;case gu:ct=En.Fo(at,ut,Vn.point1X,Vn.point1Y,Vn.point2X,Vn.point2Y,a,yt,nt,y,z,y,.5),ot+=ct;break;case bh:ct=En.Fo(at,ut,(at+2*Vn.point1X)/3,(ut+2*Vn.point1Y)/3,(2*Vn.point1X+a)/3,(2*Vn.point1Y+yt)/3,a,yt,nt,y,z,y,.5),ot+=ct;break;case wl:case zh:ir=Vn.type===wl?oh(Vn,ue):Xu(Vn,ue,at,ut);var Lr=ir.length;if(Lr===0){if(at=Wu(z,y,nt,y,at,ut,Vn.type===wl?Vn.centerX:Vn.endX,Vn.type===wl?Vn.centerY:Vn.endY),isNaN(at))return!0;ot+=at;break}Vn=null;for(var yr=0;yr<Lr;yr++){if(Vn=ir[yr],yr===0){if(ct=Wu(z,y,nt,y,at,ut,Vn[0],Vn[1]),isNaN(ct))return!0;ot+=ct}ct=En.Fo(Vn[0],Vn[1],Vn[2],Vn[3],Vn[4],Vn[5],Vn[6],Vn[7],nt,y,z,y,.5),ot+=ct}Vn!==null&&(a=Vn[6],yt=Vn[7]);break;default:gn("Unknown Segment type: "+Vn.type)}at=a,ut=yt}if(Re){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(ue.ca(z,y,E?x:x+2))return!0}return!1}function Wu(a,y,x,b,E,z,nt,ot){if(En.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ut=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ut>=a)return 0;if((E>nt?E-nt:nt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<nt){if(ut<E||ut>nt)return 0}else if(ut<nt||ut>E)return 0;return 0<at?1:-1}function Ph(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}$t.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new ke),this.type===Vi.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;nt+=ct}}return y},$t.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Vi.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ut=ot[a];if(z+ut>=E)return E=y[nt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=ut}}return NaN},$t.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Vi.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,ct=x[ot],x=ct[2*a],ot=ct[2*a+1],E=ct[2*a+2],a=ct[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;nt+=ct}}return y},$t.xx=function(a){if(this.type===Vi.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var nt=x;b=E}else nt=E,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===E)return y<b?nt=y:(nt=b,b=y),z<=nt?nt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-nt);nt=(b-y)*(b-y)+(E-x)*(E-x);var ot=ke.alloc();return En.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,ke.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Vi.u){nt=this.startX,ot=this.startY;var at=this.endX;if(E=this.endY,nt!==at||ot!==E){y=at-nt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),at),a=Math.min(Math.max(a,ot),E),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),E=Math.abs(a-E);var ut=Math.min(nt,at,ot,E);if(ut===ot)return b/z;if(ut===at)return(y+a)/z;if(ut===E)return(2*y+x-b)/z;if(ut===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=ke.alloc(),E=1/0,ot=nt=0,at=y.length;for(var ct=ut=0,yt=0;yt<at;yt++)for(var It=y[yt],Kt=x[yt],Zt=It.length,ue=0;ue<Zt;ue+=2){var Re=It[ue],Fe=It[ue+1];if(ue!==0){En.qh(ut,ct,Re,Fe,a.x,a.y,b);var We=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);We<E&&(E=We,nt=ot,nt+=Math.sqrt((b.x-ut)*(b.x-ut)+(b.y-ct)*(b.y-ct))),ot+=Kt[(ue-2)/2]}ut=Re,ct=Fe}return ke.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function zA(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Vi.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Vi.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Vi.F){var z=new qa;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new ys(wl);if(nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(a.startX+a.endX)/2,nt.centerY=(a.startY+a.endY)/2,nt.radiusX=Math.abs(a.startX-a.endX)/2,nt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(nt),a=oh(nt,z),E=a.length,E===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=z.startX,z=z.startY;for(var ot=0;ot<E;ot++){var at=a[ot];En.Qe(nt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],z=at[7]}}y.push(b),x.push(ed(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,ot=nt,at=z;for(var ut=E.segments.s,ct=ut.length,yt=0;yt<ct;yt++){var It=ut[yt];switch(It.type){case El:4<=b.length&&(y.push(b),x.push(ed(b))),b=[],b.push(It.endX),b.push(It.endY),nt=It.endX,z=It.endY,ot=nt,at=z;break;case oa:b.push(It.endX),b.push(It.endY),nt=It.endX,z=It.endY;break;case gu:En.Qe(nt,z,It.point1X,It.point1Y,It.point2X,It.point2Y,It.endX,It.endY,.5,b),nt=It.endX,z=It.endY;break;case bh:En.ep(nt,z,It.point1X,It.point1Y,It.endX,It.endY,.5,b),nt=It.endX,z=It.endY;break;case wl:var Kt=oh(It,E),Zt=Kt.length;if(Zt===0){b.push(It.centerX),b.push(It.centerY),nt=It.centerX,z=It.centerY;break}for(var ue=0;ue<Zt;ue++){var Re=Kt[ue];En.Qe(nt,z,Re[2],Re[3],Re[4],Re[5],Re[6],Re[7],.5,b),nt=Re[6],z=Re[7]}break;case zh:if(Kt=Xu(It,E,nt,z),Zt=Kt.length,ue=It.endX,Re=It.endY,Zt===0){b.push(ue),b.push(Re),nt=ue,z=Re;break}for(ue=0;ue<Zt;ue++)Re=Kt[ue],En.Qe(nt,z,Re[2],Re[3],Re[4],Re[5],Re[6],Re[7],.5,b),nt=Re[6],z=Re[7];break;default:gn("Segment not of valid type: "+It.type)}It.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(ed(b)))}}}function ed(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(co(x,b,nt,ot))),x=nt,b=ot}return y}$t.add=function(a){return this.ee.add(a),this},$t.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&di(this),this.fg=new fr(a,y,E,z).freeze(),this.gg=new fr(x,b,nt,ot).freeze(),this},qe.Object.defineProperties(Vi.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return zA(this),this.tk}},flattenedLengths:{get:function(){return zA(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Vi.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Vi.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,nt=0;nt<z;nt++)a+=E[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&di(this,a),this.na=a,a===Vi.o?this.ee=new Ci:(Vi.V===null&&(Vi.V=new Ci().freeze()),this.ee=Vi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&di(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&di(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&di(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&di(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&di(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&di(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&di(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&di(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Vi.prototype.setSpots=Vi.prototype.pm,Vi.prototype.add=Vi.prototype.add,Vi.prototype.getFractionForPoint=Vi.prototype.xx,Vi.prototype.getPointAndAngleAlongPath=Vi.prototype.Qu,Vi.prototype.getAngleAlongPath=Vi.prototype.wx,Vi.prototype.getPointAlongPath=Vi.prototype.Pu,Vi.prototype.containsPoint=Vi.prototype.ca,Vi.prototype.transform=Vi.prototype.transform,Vi.prototype.rotate=Vi.prototype.rotate,Vi.prototype.scale=Vi.prototype.scale,Vi.prototype.offset=Vi.prototype.offset,Vi.prototype.normalize=Vi.prototype.normalize,Vi.prototype.computeBoundsWithoutOrigin=Vi.prototype.ix,Vi.prototype.equalsApprox=Vi.prototype.Xa,Vi.className="Geometry",Vi.j=new Dn(Vi,"Line",0),Vi.u=new Dn(Vi,"Rectangle",1),Vi.F=new Dn(Vi,"Ellipse",2),Vi.o=new Dn(Vi,"Path",3),Vi.V=null,Vi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Vi.className="Geometry",Vi.stringify=Vi.ia,Vi.fillPath=Vi.nb,Vi.parse=Vi.parse,Vi.Line=Vi.j,Vi.Rectangle=Vi.u,Vi.Ellipse=Vi.F,Vi.Path=Vi.o;function qa(a,y,x,b,E){Zo(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Ci,this.sr=this.pl.Ja,this.fw=null}qa.prototype.copy=function(){var a=new qa;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},$t=qa.prototype,$t.Xa=function(a){if(!(a instanceof qa&&En.B(this.startX,a.startX)&&En.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},$t.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},$t.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},$t.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},$t.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},$t.add=function(a){return this.pl.add(a),this},$t.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ut=0;ut<at;ut++){var ct=ot[ut];switch(ct.type){case El:z=ct.endX,nt=ct.endY,b=ct.endX,E=ct.endY;break;case oa:if(En.Yb(b,E,ct.endX,ct.endY,x,a,y))return!0;b=ct.endX,E=ct.endY;break;case gu:if(En.cs(b,E,ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case bh:if(En.jv(b,E,ct.point1X,ct.point1Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case wl:case zh:var yt=ct.type===wl?oh(ct,this):Xu(ct,this,b,E),It=yt.length,Kt=ct.type===wl?ct.centerX:ct.endX,Zt=ct.type===wl?ct.centerY:ct.endY;if(It===0){if(En.Yb(b,E,Kt,Zt,x,a,y))return!0;b=Kt,E=Zt;break}for(Kt=null,Zt=0;Zt<It;Zt++)if(Kt=yt[Zt],Zt===0&&En.Yb(b,E,Kt[0],Kt[1],x,a,y)||En.cs(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],.5,a,y,x))return!0;Kt!==null&&(b=Kt[6],E=Kt[7]);break;default:gn("Unknown Segment type: "+ct.type)}if(ct.isClosed&&(b!==z||E!==nt)&&En.Yb(b,E,z,nt,x,a,y))return!0}return!1},qe.Object.defineProperties(qa.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&di(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&di(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&di(this,a),this.pl=a,this._isInvalidBounds=!0}}}),qa.prototype.add=qa.prototype.add,qa.prototype.equalsApprox=qa.prototype.Xa,qa.className="PathFigure";function ys(a,y,x,b,E,z,nt,ot){Zo(this),a===void 0&&(a=oa),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),nt===void 0&&(nt=0),a===zh?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===wl&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===wl&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}ys.prototype.copy=function(){var a=new ys;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},$t=ys.prototype,$t.Xa=function(a){if(!(a instanceof ys)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case El:case oa:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY);case gu:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.point1X,a.point1X)&&En.B(this.point1Y,a.point1Y)&&En.B(this.point2X,a.point2X)&&En.B(this.point2Y,a.point2Y);case bh:return En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.point1X,a.point1X)&&En.B(this.point1Y,a.point1Y);case wl:return En.B(this.startAngle,a.startAngle)&&En.B(this.sweepAngle,a.sweepAngle)&&En.B(this.centerX,a.centerX)&&En.B(this.centerY,a.centerY)&&En.B(this.radiusX,a.radiusX)&&En.B(this.radiusY,a.radiusY);case zh:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&En.B(this.xAxisRotation,a.xAxisRotation)&&En.B(this.endX,a.endX)&&En.B(this.endY,a.endY)&&En.B(this.radiusX,a.radiusX)&&En.B(this.radiusY,a.radiusY);default:return!1}},$t.qb=function(a){a.classType===ys&&(this.type=a)},$t.toString=function(a){switch(a===void 0&&(a=-1),this.type){case El:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case oa:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case gu:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case bh:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case wl:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case zh:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.close=function(){return this.isClosed=!0,this};function oh(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=En.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Ro.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),Vi.Ha(z,nt),Ro.free(nt)}for(x=z.length,b=0;b<x;b++)nt=z[b],nt[0]+=y,nt[1]+=E,nt[2]+=y,nt[3]+=E,nt[4]+=y,nt[5]+=E,nt[6]+=y,nt[7]+=E;return a.ae=z,a.ae}function Xu(a,y,x,b){function E(ue,Re,Fe,We){return(ue*We<Re*Fe?-1:1)*Math.acos((ue*Fe+Re*We)/(Math.sqrt(ue*ue+Re*Re)*Math.sqrt(Fe*Fe+We*We)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ut=a.Dc,ct=a.Ec,yt=Math.cos(nt),It=Math.sin(nt),Kt=yt*(x-ut)/2+It*(b-ct)/2;nt=-It*(x-ut)/2+yt*(b-ct)/2;var Zt=Kt*Kt/(y*y)+nt*nt/(z*z);return 1<Zt&&(y*=Math.sqrt(Zt),z*=Math.sqrt(Zt)),Zt=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*Kt*Kt)/(y*y*nt*nt+z*z*Kt*Kt)),isNaN(Zt)&&(Zt=0),ot=Zt*y*nt/z,Zt=Zt*-z*Kt/y,isNaN(ot)&&(ot=0),isNaN(Zt)&&(Zt=0),x=(x+ut)/2+yt*ot-It*Zt,b=(b+ct)/2+It*ot+yt*Zt,ct=E(1,0,(Kt-ot)/y,(nt-Zt)/z),yt=(Kt-ot)/y,ut=(nt-Zt)/z,Kt=(-Kt-ot)/y,ot=(-nt-Zt)/z,nt=E(yt,ut,Kt,ot),Kt=(yt*Kt+ut*ot)/(Math.sqrt(yt*yt+ut*ut)*Math.sqrt(Kt*Kt+ot*ot)),-1>=Kt?nt=Math.PI:1<=Kt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,Kt=y>z?z/y:1,y=En.jx(0,0,y>z?y:z,ct,ct+nt,!0),z=Ro.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,Kt),Vi.Ha(y,z),Ro.free(z),a.ae=y,a.ae}qe.Object.defineProperties(ys.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&di(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&di(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&di(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&di(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&di(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&di(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&di(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&di(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&di(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Ni(a,">= zero",ys,"radiusX"),this._isFrozen&&di(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Ni(a,">= zero",ys,"radiusY"),this._isFrozen&&di(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&di(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&di(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&di(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ys.prototype.equalsApprox=ys.prototype.Xa;var El=new Dn(ys,"Move",0),oa=new Dn(ys,"Line",1),gu=new Dn(ys,"Bezier",2),bh=new Dn(ys,"QuadraticBezier",3),wl=new Dn(ys,"Arc",4),zh=new Dn(ys,"SvgArc",4);ys.className="PathSegment",ys.Move=El,ys.Line=oa,ys.Bezier=gu,ys.QuadraticBezier=bh,ys.Arc=wl,ys.SvgArc=zh;function Cu(){this.H=null,this.xu=new ke(0,0).freeze(),this.mt=new ke(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Cu.prototype.copy=function(){var a=new Cu;return this.clone(a)},Cu.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Cu.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Cu.prototype.So=function(a,y){var x=this.diagram;return x===null||Bd(x,a,y),y},Cu.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Bd(x,a,y),y.assign(x.Ps(y))),y},qe.Object.defineProperties(Cu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Cu.prototype.getMultiTouchDocumentPoint=Cu.prototype.Bz,Cu.prototype.getMultiTouchViewPoint=Cu.prototype.So,Cu.className="InputEvent";function wd(){this.H=null,this.xa="",this.ar=this.Lr=null}wd.prototype.copy=function(){var a=new wd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},wd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},qe.Object.defineProperties(wd.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),wd.className="DiagramEvent";function Ea(){this.Fm=Fa,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ea.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ea.prototype.copy=function(){var a=new Ea;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=kn(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=kn(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=kn(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=kn(y)&&typeof y.J=="function"?y.J():y,a},Ea.prototype.qb=function(a){a.classType===Ea&&(this.change=a)},Ea.prototype.toString=function(){var a="";return a=this.change===sh?a+"* ":this.change===Fa?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===sh?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=xr(this.object)),this.oldValue!==null&&(a+=" old: "+xr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+xr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ea.prototype.I=function(a){return a?this.oldValue:this.newValue},Ea.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ea.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ea.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ea.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ea.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},qe.Object.defineProperties(Ea.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===sh&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Ea.prototype.redo=Ea.prototype.redo,Ea.prototype.canRedo=Ea.prototype.canRedo,Ea.prototype.undo=Ea.prototype.undo,Ea.prototype.canUndo=Ea.prototype.canUndo,Ea.prototype.getParam=Ea.prototype.Dz,Ea.prototype.getValue=Ea.prototype.I,Ea.prototype.clear=Ea.prototype.clear;var sh=new Dn(Ea,"Transaction",-1),Fa=new Dn(Ea,"Property",0),dl=new Dn(Ea,"Insert",1),Ql=new Dn(Ea,"Remove",2);Ea.className="ChangedEvent",Ea.Transaction=sh,Ea.Property=Fa,Ea.Insert=dl,Ea.Remove=Ql;function Jl(){this.o=new Ci().freeze(),this.xa="",this.j=!1}Jl.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
`+b.toString())}}return y},Jl.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Jl.prototype.canUndo=function(){return this.isComplete},Jl.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Jl.prototype.canRedo=function(){return this.isComplete},Jl.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Jl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new gr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Fa&&b.object){var E=y.get(b.object);E||(E=new gr,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},qe.Object.defineProperties(Jl.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Jl.prototype.optimize=Jl.prototype.ak,Jl.prototype.redo=Jl.prototype.redo,Jl.prototype.canRedo=Jl.prototype.canRedo,Jl.prototype.undo=Jl.prototype.undo,Jl.prototype.canUndo=Jl.prototype.canUndo,Jl.prototype.clear=Jl.prototype.clear,Jl.className="Transaction";function Et(){this.Pt=new Bi,this.Jd=!1,this.u=new Ci().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ci().freeze(),this.hl=new Ci,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Et.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
`+this.history.M(b).toString(a-1);return y},Et.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Et.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},$t=Et.prototype,$t.Xw=function(a){this.Pt.add(a)},$t.Rx=function(a){this.Pt.remove(a)},$t.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},$t.eb=function(a){return a===void 0&&(a=""),wt(this,!0,a)},$t.Kf=function(){return wt(this,!1,"")};function wt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&$i("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var nt=a.Ie.count;0<nt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(nt-1),a.Ie.freeze()),nt=a.hl.count,0<nt&&(z=a.hl.M(nt-1),a.hl.mb(nt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}$t.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Et.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Et.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){$i("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Et.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Et.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){$i("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Et.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Ea;for(b.change=sh,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Et.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Jl);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||$i("Change not within a transaction: "+x.toString()))}},Et.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},qe.Object.defineProperties(Et.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Et.prototype.handleChanged=Et.prototype.Tu,Et.prototype.redo=Et.prototype.redo,Et.prototype.undo=Et.prototype.undo,Et.prototype.canUndo=Et.prototype.canUndo,Et.prototype.discardHistoryAfterIndex=Et.prototype.lx,Et.prototype.rollbackTransaction=Et.prototype.Kf,Et.prototype.commitTransaction=Et.prototype.eb,Et.prototype.startTransaction=Et.prototype.Ea,Et.prototype.removeModel=Et.prototype.Rx,Et.prototype.addModel=Et.prototype.Xw,Et.prototype.clear=Et.prototype.clear,Et.className="UndoManager";function Pt(){Zo(this),this.H=Oh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Cu,this.Zr=-1}Pt.prototype.toString=function(){return this.name!==""?this.name+" Tool":or(this.constructor)},Pt.prototype.updateAdornments=function(){},Pt.prototype.canStart=function(){return this.isEnabled},Pt.prototype.doStart=function(){},Pt.prototype.doActivate=function(){this.isActive=!0},Pt.prototype.doDeactivate=function(){this.isActive=!1},Pt.prototype.doStop=function(){},Pt.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Pt.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Pt.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Pt.prototype.doMouseMove=function(){},Pt.prototype.doMouseUp=function(){this.stopTool()},Pt.prototype.doMouseWheel=function(){},Pt.prototype.canStartMultiTouch=function(){return!0},Pt.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,ke.allocAt(NaN,NaN)),b=y.So(1,ke.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}ke.free(x),ke.free(b)},Pt.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,ke.allocAt(NaN,NaN)),b=y.So(1,ke.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new ke((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var nt=a.commandHandler;if(z!==a.scale&&nt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=E,nt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}ke.free(x),ke.free(b)},Pt.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Pt.prototype.doKeyUp=function(){},Pt.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Pt.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Pt.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Ss?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Ss?y.meta:y.control)||y.shift||a.clearSelection()}},Pt.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,Qt(a,b,x),b.handled};function Qt(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}Pt.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,nt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(b===z||b!==null&&b.rg(z)||(ot(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(z===b||z!==null&&z.rg(b)||(nt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,nt="";z!==null&&(nt=z.cursor,nt==="");)z=z.panel;for(a.currentCursor=nt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Pt.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Pt.prototype.doCurrentObjectChanged=function(){},Pt.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===we&&!y.shift||E===ge&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===we&&y.shift||E===ge&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var nt=z.deltaX;z=z.deltaY;var ot="pixel";if(nt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<nt?"right":"left",Math.abs(nt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Pt.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Pt.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Ei(function(){x.doWaitAfter(b)},a)},Pt.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ee.clearTimeout(this.Zr),this.Zr=-1},Pt.prototype.doWaitAfter=function(){},Pt.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Fs);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Pt.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},qe.Object.defineProperties(Pt.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof _n&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),Pt.prototype.startTransaction=Pt.prototype.Ea,Pt.className="Tool";function ie(){Pt.call(this),this.name="ToolManager",this.hb=new Ci,this.ob=new Ci,this.Hb=new Ci,this.F=this.V=850,this.o=new Ki(2,2).ja(),this.Ha=5e3,this.ia=ge,this.u=Xe,this.Mp=this.j=null,this.zj=-1}Mn(ie,Pt),ie.prototype.initializeStandardTools=function(){},ie.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Fs&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ie.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===dn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===An){y.bubbles=!0;return}if(this.gestureBehavior===dn)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===ge?this.mouseWheelBehavior=we:this.mouseWheelBehavior===we&&(this.mouseWheelBehavior=ge)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ie.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===An){y.bubbles=!0;return}if(this.gestureBehavior===dn)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}Yt(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Yt(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}ie.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Fs&&(y===a||y.rg(a))||this.hideToolTip()},ie.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},ie.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},ie.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Fs)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},ie.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Fs){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof vr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ee.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Ei(function(){E.hideToolTip()},a)}},ie.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},ie.prototype.hideToolTip=function(){this.zj!==-1&&(Ee.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Fs?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof vr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ie.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},ie.prototype.doMouseWheel=function(){this.standardMouseWheel()},ie.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ie.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ie.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},ie.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},ie.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},qe.Object.defineProperties(ie.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Fs?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),ie.prototype.replaceStandardTool=ie.prototype.gb;var ge=new Dn(ie,"WheelScroll",0),we=new Dn(ie,"WheelZoom",1),Pe=new Dn(ie,"WheelNone",2),Xe=new Dn(ie,"GestureZoom",3),dn=new Dn(ie,"GestureCancel",4),An=new Dn(ie,"GestureNone",5);ie.className="ToolManager",ie.WheelScroll=ge,ie.WheelZoom=we,ie.WheelNone=Pe,ie.GestureZoom=Xe,ie.GestureCancel=dn,ie.GestureNone=An;function Pn(){Pt.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new ke(NaN,NaN),this.Fr=new ke,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Bi().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var ze;Mn(Pn,Pt),Pn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Pn.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Pn.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Ss?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Pn.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Ye=null,this.isActive=!0,this.tl.set(a.position),mi(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Lu(a),sc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ye=this,mn=this.diagram,this.doSimulatedDragOut()))};function mi(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Wi?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new ri,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Pn.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Pn.prototype.Pd=function(a){return a===void 0?new lh(ts):this.isGridSnapEnabled?new lh(new ke(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new lh(a.copy())},Pn.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ti(this),Qc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<ze.count){for(var y=ze,x=y.length,b=0;b<x;b++){var E=y.M(b);Qi(E),Ai(E),ti(E),E.diagram.ug()}y.clear()}Qi(this),this.tl.h(NaN,NaN),mn!==null&&(mn.currentCursor=""),Ye=mn=null,Ai(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),jc(a,!0)},Pn.prototype.stopTransaction=function(){var a=this.diagram,y=Pt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ti(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,mr(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function vi(){var a=Ye;Ai(a),Fr(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Pn.prototype.doCancel=function(){Ai(this),Fr(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Pn.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Pn.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Rn(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Fr(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new gr,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Wi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,mi(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ff(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Ai(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Wi&&(x.value.point=new ke(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Qi(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function rr(a,y,x){var b=a.diagram,E=a.startPoint,z=ke.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),ke.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Lu(b),b.hk())}Pn.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&xh(b,a,y,this.dragOptions,x)};function Fr(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Wi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Ff(b,-E.x,-E.y)}y.bd()}}function lo(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Or(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=mr(a,E,b),!a.isActive&&Ye===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof To)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&Ye===null||(a.doDragOver(y,b),!a.isActive&&Ye===null))return}finally{x.skipsUndoManager=z,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Pn.prototype.findDragOverObject=function(a){var y=this;return Gh(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Fs||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Pn.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function mr(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var nt=0;nt<E;nt++){var ot=a.Cg[nt],at=ot.mouseDragLeave;if(at!==null&&(at(y,ot,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ye===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Oi(E);for(E=a.Cg.length,x=0;x<E&&(nt=a.Cg[x],ot=nt.mouseDragEnter,ot===null||(ot(y,nt,z),b=!0,!y.handled));x++);return b}function Oi(a){var y=a.panel;return y!==null?y:a instanceof Zr&&!(a instanceof To)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Cr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ut){return b.findValidLinkablePort(ut,x)});a=ke.alloc();var z=1/0,nt=null;for(E=E.iterator;E.next();){var ot=E.value;if(ot.part!==null){var at=ot.ga(Eo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return ke.free(a),nt}function Or(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,nt=null;x.fromNode===null&&(z=Cr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Cr(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),E.isValidLink(nt,z,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Fi(E,nt,z,at,ot):Fi(E,null,null,null,null)}}}}Pn.prototype.doDragOver=function(){};function Jn(a,y){var x=a.diagram;a.dragsLink&&Or(a,!0),ti(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var nt=z.mouseDrop;if(nt!==null&&(nt(E,z),E.handled))break;oi(a,E,z),z=Oi(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ye!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof hr&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ye!==null){for(a=ai.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof hr&&pe(x,b,a);ai.free(a)}}}function oi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof To||(x=a.mouseDrop,x!==null&&x(y))}function pe(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Wi},!0,function(E){return E instanceof Wi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Pn.prototype.doDropOnto=function(){},Pn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Rn(this,!1),sc(a,this.copiedParts),rr(this,this.copiedParts,!1),Qc(a,this.copiedParts)):this.mayMove()?(Ai(this),rr(this,this.draggedParts,!0)):this.mayDragOut()?(Rn(this,!1),rr(this,this.copiedParts,!1)):Ai(this),lo(this,a.lastInput.documentPoint))}},Pn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(Ai(this),Rn(this,!0),sc(a,this.copiedParts),rr(this,this.copiedParts,!1),Qc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,Ai(this),this.mayMove()&&(rr(this,this.draggedParts,!0),lo(this,a.lastInput.documentPoint))),this.Ym=!0,Jn(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&me(this),a.Ya(),Qc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Pn.prototype.simulatedMouseMove=function(a,y,x){if(Ye===null)return!1;var b=Ye.diagram;x instanceof _n||(x=null);var E=mn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ye.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),mn=x,x!==null&&x!==b&&(vi(),E=x.toolManager.findTool("Dragging"),E!==null&&(ze.contains(E)||ze.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},Pn.prototype.simulatedMouseUp=function(a,y,x){if(Ye===null)return!1;var b=mn,E=Ye.diagram;if(x===null)return Ye.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ye.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;mn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(vi(),ze.contains(b)||ze.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new ke),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Ye,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function me(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof hr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Pn.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Ss?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Pn.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Pn.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Pn.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Pn.prototype.Az=function(){return Ye},Pn.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ye;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Pn.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),vu(a),a.animationManager.Cc(),a=Ye,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Pn.prototype.doSimulatedDragLeave=function(){var a=Ye;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Pn.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ye;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ze(this,y.draggedParts.Lf(),!1,a.firstInput),rr(this,this.copiedParts,!1),lo(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Pn.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ye;if(y!==null){var x=y.diagram;if(y.Ym=!0,Ai(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Ze(this,y.draggedParts.Lf(),!0,a.lastInput),rr(this,this.copiedParts,!1);var b=new Bi;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Jn(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Ze(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=ai.alloc();E=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ut=at.value;if(ut.isVisible()){var ct=ut.location;ut=ct.x,ct=ct.y,isNaN(ut)||isNaN(ct)||(ut<b&&(b=ut),ct<E&&(E=ct),ut>nt&&(nt=ut),ct>ot&&(ot=ct))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,ai.free(z),z=a.Fr,nt=new gr,ot=ke.alloc(),at=y.iterator;at.next();)ut=at.value,ut instanceof Wi&&ut.canCopy()&&(ct=x.I(ut),ct!==null&&(ct.points=ut.points,Ff(ct,z.x-b,z.y-E),ct.suspendsRouting=!0,nt.add(ct,a.Pd())));for(y=y.iterator;y.next();)ut=y.value,ut.Zc()&&ut.canCopy()&&(at=x.I(ut),at!==null&&(ut=ut.location,ot.h(z.x-(b-ut.x),z.y-(E-ut.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));ke.free(ot),a.copiedParts=nt,mi(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ff(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Pn.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Pn.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new ke},qe.Object.defineProperties(Pn.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Pn.prototype.getDraggingSource=Pn.prototype.Az;var Ye=null,mn=null;Pn.className="DraggingTool",ze=new Ci,Yi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ie.prototype.doCancel=function(){Ye!==null&&Ye.doCancel(),Pt.prototype.doCancel.call(this)};function en(){Pt.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Wi,y=new ko;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ko,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new hr,y=new ko,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new hr,y=new ko,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=zs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new gr,this.Of=this.gj=this.Pf=null}Mn(en,Pt),en.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},en.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Ki.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Ki.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Eo,z=ke.alloc(),x.location=y.ga(Eo,z),ke.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},en.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=zs,y.fromSpot=Wa,y.toSpot=Wa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},en.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},en.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof hr){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},en.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof hr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof hr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},en.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(yt){return E.findValidLinkablePort(yt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof hr){var at=nt.ga(Eo,ke.alloc()),ut=x.x-at.x,ct=x.y-at.y;ke.free(at),at=ut*ut+ct*ct,at<b&&(ut=this.validPortsCache.I(nt),ut!==null?ut&&(y=nt,b=at):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,nt)||!a&&this.isValidLink(ot,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=at):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof hr&&(x.layer===null||x.layer.allowLink))?y:null},en.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},en.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},en.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},en.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof hr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof hr))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},en.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},en.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Bi;return b.add(a),Tn(this,x,y,b)};function Tn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Tn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Tn(a,y.labeledLink,x,b))))}en.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==ac){if(b===dA){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Un(this,a,y,x,!0)}if(b===MA){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Un(this,a,y,x,!0)}if(b===Fh)return a===y?a=!0:(b=new Bi,b.add(y),a=qn(this,b,a,y,x)),!a;if(b===lc)return!Un(this,a,y,x,!1);if(b===LA)return a===y?a=!0:(b=new Bi,b.add(y),a=Qe(this,b,a,y,x)),!a}return!0};function Un(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var nt=z.value;if(nt!==b&&(!E||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&Un(a,nt,x,b,E)))return!0}return!1}function qn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&qn(a,y,nt,b,E)))return!0}return!1}function Qe(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E){var ot=nt.fromNode;if(nt=nt.toNode,ot=ot===x?nt:ot,ot!==x&&Qe(a,y,ot,b,E))return!0}}return!1}qe.Object.defineProperties(en.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),en.className="LinkingBaseTool";function un(){en.call(this),this.name="Linking",this.V={},this.F=null,this.K=pn,this.Xd=null}Mn(un,en),un.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},un.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof hr)))return null;var x=this.direction;if(x===pn||x===Qn){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===pn||x===$n)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},un.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof hr&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof hr&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},un.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},un.prototype.doStop=function(){en.prototype.doStop.call(this),this.startObject=null},un.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof hr&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=nt):(y=ot,x=nt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(nt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},un.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Wi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},un.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},un.prototype.doNoLink=function(){},qe.Object.defineProperties(un.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var pn=new Dn(un,"Either",0),Qn=new Dn(un,"ForwardsOnly",0),$n=new Dn(un,"BackwardsOnly",0);un.className="LinkingTool",un.Either=pn,un.ForwardsOnly=Qn,un.BackwardsOnly=$n;function ri(){en.call(this),this.name="Relinking";var a=new ko;a.figure="Diamond",a.desiredSize=qs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ko,a.figure="Diamond",a.desiredSize=qs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ai}Mn(ri,en),ri.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Wi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ri.prototype.makeAdornment=function(a,y){var x=new Fs;return x.type=ci.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ri.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ri.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Fs&&x.adornedPart instanceof Wi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Ts),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ts),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},ri.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Up||x===Lf)&&(x=Xh),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},ri.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ri.prototype.doStop=function(){en.prototype.doStop.call(this),this.handle=null},ri.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof hr&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ri.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},ri.prototype.doNoRelink=function(){};function Fi(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}qe.Object.defineProperties(ri.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Fs))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ri.className="RelinkingTool",Yi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Yi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ui(){Pt.call(this),this.name="LinkReshaping";var a=new ko;a.figure="Rectangle",a.desiredSize=Aa,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new ko,a.figure="Diamond",a.desiredSize=qs,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new ke,this.Yq=new Ci}Mn(ui,Pt),ui.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Zi},ui.prototype.om=function(a,y){a.reshapingBehavior=y},ui.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Wi){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},ui.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Fs,E.type=ci.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Yc)for(var ot=x+nt;ot<z-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}for(nt=x+1;nt<z;nt++)if(ot=this.makeHandle(a,nt),ot!==null){if(ot.segmentIndex=nt,nt!==x)if(nt===x+1&&b){at=y.i(x);var ut=y.i(x+1);En.B(at.x,ut.x)&&En.B(at.y,ut.y)&&(ut=y.i(x-1)),En.B(at.x,ut.x)?(this.om(ot,Er),ot.cursor="n-resize"):En.B(at.y,ut.y)&&(this.om(ot,Ar),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ut=y.i(z),En.B(at.x,ut.x)&&En.B(at.y,ut.y)&&(at=y.i(z+1)),En.B(at.x,ut.x)?(this.om(ot,Er),ot.cursor="n-resize"):En.B(at.y,ut.y)&&(this.om(ot,Ar),ot.cursor="w-resize")):nt!==z&&(this.om(ot,io),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},ui.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ui.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ui.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ui.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Wi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},ui.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ui.prototype.stopTransaction=function(){var a=this.diagram,y=Pt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ui.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ui.prototype.getResegmentingPoint=function(){return this.handle.ga(Eo)},ui.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ui.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var nt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Ji(this,nt,b,E,z,!0)||Ji(this,nt,b,E,z,!1))){var ot=y.points.copy();Ji(this,nt,b,E,z,!0)?(ot.cd(x-2,new ke(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new ke(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new ke((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new ke((z.x+nt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else nt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Ji(this,b,E,z,nt,!0)||Ji(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Ji(this,b,E,z,nt,!0)?(ot.cd(x-1,new ke(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new ke(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new ke((b.x+nt.x)/2,b.y)),ot.cd(x+2,new ke((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=ke.alloc(),En.qh(b.x,b.y,z.x,z.y,E.x,E.y,nt)&&nt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),ke.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ji(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}ui.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Er?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Ar&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Er?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Ar&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),nt=y.i(b+1);En.B(z.x,E.x)&&En.B(E.y,nt.y)?(En.B(z.x,y.i(b-2).x)&&!En.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),En.B(nt.y,y.i(b+2).y)&&!En.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):En.B(z.y,E.y)&&En.B(E.x,nt.x)?(En.B(z.y,y.i(b-2).y)&&!En.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),En.B(nt.x,y.i(b+2).x)&&!En.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):En.B(z.x,E.x)&&En.B(E.x,nt.x)?(En.B(z.x,y.i(b-2).x)&&!En.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),En.B(nt.x,y.i(b+2).x)&&!En.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):En.B(z.y,E.y)&&En.B(E.y,nt.y)&&(En.B(z.y,y.i(b-2).y)&&!En.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),En.B(nt.y,y.i(b+2).y)&&!En.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(Eo,ke.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,ke.alloc()),y.L(0,b.x,b.y),ke.free(z),ke.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Eo,ke.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,ke.alloc()),y.L(y.pointsCount-1,a.x,a.y),ke.free(x),ke.free(a));y.zf()},ui.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case io:return a;case Er:return new ke(y.i(x).x,a.y);case Ar:return new ke(a.x,y.i(x).y);default:case Zi:return y.i(x)}},qe.Object.defineProperties(ui.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Fs))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),ui.prototype.setReshapingBehavior=ui.prototype.om,ui.prototype.getReshapingBehavior=ui.prototype.Ru;var Zi=new Dn(ui,"None",0),Ar=new Dn(ui,"Horizontal",1),Er=new Dn(ui,"Vertical",2),io=new Dn(ui,"All",3);ui.className="LinkReshapingTool",ui.None=Zi,ui.Horizontal=Ar,ui.Vertical=Er,ui.All=io,Yi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ki(){Pt.call(this),this.name="Resizing",this.o=new Ki(1,1).freeze(),this.j=new Ki(9999,9999).freeze(),this.yg=new Ki(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new ko;a.alignmentFocus=Eo,a.figure="Rectangle",a.desiredSize=Aa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new ke,this.Dw=new Ki,this.Tn=new ke,this.rt=new Ki(0,0),this.qt=new Ki(1/0,1/0),this.pt=new Ki(1,1)}Mn(ki,Pt),ki.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Wi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),eg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ki.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Fs,y.type=ci.Spot,y.locationSpot=Eo;var x=new Zh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,nl)),y.add(this.makeHandle(a,au)),y.add(this.makeHandle(a,Yl)),y.add(this.makeHandle(a,$a)),y.add(this.makeHandle(a,Ha)),y.add(this.makeHandle(a,Ja)),y.add(this.makeHandle(a,jl)),y.add(this.makeHandle(a,da))}else if(ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ki.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ki.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=Eo),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ci)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ki.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ki.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},ki.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ki.prototype.stopTransaction=function(){var a=this.diagram,y=Pt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ki.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ki.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,ke.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),ke.free(E)}},ki.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,ke.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),ke.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ki.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof To){var b=new Ci;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new st;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},ki.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Eo);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width,ct=nt.y+nt.height,yt=1;if(!z){yt=nt.width;var It=nt.height;0>=yt&&(yt=1),0>=It&&(It=1),yt=It/yt}return It=ke.alloc(),En.No(a.x,a.y,ot,at,E.width,E.height,It),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(It.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.y=Math.max(It.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ut-a.width,a.y=ct-a.height)):1<=y.y?(a.x=Math.max(It.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.height=Math.max(Math.min(It.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ut-a.width)):(a.x=Math.max(It.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=ut-a.x,z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(ct-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(It.x-ot,b.width),x.width),a.y=Math.max(It.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.y=ct-a.height)):1<=y.y?(a.width=Math.max(Math.min(It.x-ot,b.width),x.width),a.height=Math.max(Math.min(It.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width))):(a.width=Math.max(Math.min(It.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(ct-at-a.height))):0>=y.y?(a.y=Math.max(It.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=ct-a.y,z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ut-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(It.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ut-ot-a.width))),ke.free(It),a},ki.prototype.computeReshape=function(){var a=bi;return this.adornedObject instanceof ko&&(a=Jg(this.adornedObject)),!(a===Sr||this.diagram.lastInput.shift)},ki.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},ki.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},ki.prototype.computeCellSize=function(){var a=new Ki(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},qe.Object.defineProperties(ki.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Fs))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Fs)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),ki.className="ResizingTool",Yi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Yn(){Pt.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new ke,this.ue=null;var a=new ko;a.figure="Ellipse",a.desiredSize=qs,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new ke(NaN,NaN),this.u=0,this.F=50}Mn(Yn,Pt),Yn.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Yn.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Fs,y.type=ci.Position,y.locationSpot=Eo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Yn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Yn.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},Yn.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Eo)},Yn.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Yn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new ke(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Yn.prototype.stopTransaction=function(){var a=this.diagram,y=Pt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Yn.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Yn.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Yn.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Yn.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Yn.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},qe.Object.defineProperties(Yn.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Fs))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Fs)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Yn.className="RotatingTool",Yi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Bo(){Pt.call(this),this.name="ClickSelecting"}Mn(Bo,Pt),Bo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Bo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Bo.className="ClickSelectingTool";function Pr(){Pt.call(this),this.name="Action",this.pk=null}Mn(Pr,Pt),Pr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Pr.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Pr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Pr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Pr.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Pr.prototype.doStop=function(){this.pk=null},Pr.className="ActionTool";function sr(){Pt.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new ke(0,0)}Mn(sr,Pt),sr.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},sr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},sr.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof Zr)x.Zc()&&(ou(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);kn(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=ke.allocAt(a.x,a.y);this.isGridSnapEnabled&&Hc(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),ke.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},qe.Object.defineProperties(sr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),sr.className="ClickCreatingTool";function ar(){Pt.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Zr;a.layerName="Tool",a.selectable=!1;var y=new ko;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Mn(ar,Pt),ar.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},ar.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},ar.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},ar.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Ki.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Ki.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},ar.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},ar.prototype.computeBoxBounds=function(){var a=this.diagram;return new ai(a.firstInput.documentPoint,a.lastInput.documentPoint)},ar.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Ss?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new Ci,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},qe.Object.defineProperties(ar.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),ar.className="DragSelectingTool";function er(){Pt.call(this),this.name="Panning",this.Xt=new ke,this.xy=new ke,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ee.document,"scroll",a.Kw,!1),a.stopTool()}}Mn(er,Pt),er.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},er.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ee.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},er.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},er.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},er.prototype.doMouseMove=function(){this.move()},er.prototype.doMouseUp=function(){this.move(),this.stopTool()},er.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},qe.Object.defineProperties(er.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),er.className="PanningTool",Yi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Yi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Yi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Yi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Yi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function vr(){this.F=this.u=this.j=this.o=null}qe.Object.defineProperties(vr.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),vr.className="HTMLInfo";function Vr(a,y,x){this.text=a,this.hx=y,this.visible=x}Vr.className="ContextMenuButtonInfo";function ho(){Pt.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new ke,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Mn(ho,Pt);function po(a){var y=new vr;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ns=y,a.tu=function(){a.stopTool()},y=ei("div");var x=ei("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=ei("style");Ee.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",_r,!1),b.addEventListener(y,"selectstart",_r,!1),b.addEventListener(x,"contextmenu",_r,!1)),y.className="goCXforeground",x.className="goCXbackground",Ee.document.body&&(Ee.document.body.appendChild(y),Ee.document.body.appendChild(x)),Vo=y,va=x,So=!0}function _r(a){return a.preventDefault(),!1}ho.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},ho.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},ho.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},ho.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof _n||(a instanceof fn?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},ho.prototype.doActivate=function(){},ho.prototype.doMouseDown=function(){if(Pt.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Fs){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Do(this)},ho.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Fs){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Do(this)};function Do(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof vr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(us(a,!0),a.isActive||a.stopTool())}ho.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function us(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=ns,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof fn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Fs&&!a.currentContextMenu.visible&&a.stopTool()}}ho.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},ho.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Fs){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof vr&&a.show(y,x,this);this.currentContextMenu=a},ho.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},ho.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Fs?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof vr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Yo(a){var y=new Ci;return y.add(new Vr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Vr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Vr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Vr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Vr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Vr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Vr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Vr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Vr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Vr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Vr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Vr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Vr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}ho.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Yo(this)),Vo.innerHTML="",va.addEventListener("pointerdown",this.tu,!1);var y=this,x=ei("ul");x.className="goCXul",Vo.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=ei("li"),z.className="goCXli";var nt=ei("a");nt.className="goCXa",nt.href="#",nt.ky=E.hx,nt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),nt.textContent=E.text,z.appendChild(nt),x.appendChild(z)}}Vo.style.display="block",va.style.display="block"},ho.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ns){Vo.style.display="none",va.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(va,"pointerdown",this.tu,!1),this.currentContextMenu=null}},qe.Object.defineProperties(ho.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Fs?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return So===!1&&ns===null&&vs&&po(this),ns},set:function(a){a===null&&(So=!0),ns=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ns=null,So=!1,va=null,Vo=null;ho.className="ContextMenuTool",Yi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function rs(){Pt.call(this),this.name="TextEditing",this.Zh=new sa,this.ia=null,this.V=es,this.vj=null,this.qa=ro,this.u=1,this.F=!0,this.o=null,this.j=new vr,this.kt=null,Cs(this,this.j)}Mn(rs,Pt);function Cs(a,y){if(vs){var x=ei("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(Go)):E==="Tab"?(a.acceptText(Ko),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==ro){var b=a.kt;a.qa===Wo&&(a.qa=aa),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==ro){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof sa&&z instanceof rs)if(z.state===zl)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Eo),ot=E.position,at=E.scale,ut=b.Df()*at;ut<z.minimumEditorScale&&(ut=z.minimumEditorScale);var ct=b.naturalBounds.width*ut+6,yt=b.naturalBounds.height*ut+2,It=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ut,yt=ot.y*yt-ot.y*at+ot.offsetY-(.5*yt-.5*at)-at/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ut+"%",x.style.lineHeight="normal",x.style.width=ct+"px",x.style.left=(It-ct/2|0)-1+"px",x.style.top=(nt+yt|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ut,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}rs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Ps&&Ps!==this&&(Ps.acceptText(Ys),Ps&&Ps!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof sa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===es&&!y.isSelected||this.starting===Os&&2>a.lastInput.clickCount)):!1},rs.prototype.doStart=function(){Ps=this,this.textBlock!==null&&this.doActivate()},rs.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof sa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Wo;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ai(this.textBlock.ga(nl),this.textBlock.ga(Yl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},rs.prototype.doCancel=function(){this.stopTool()},rs.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},rs.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ys)},rs.prototype.acceptText=function(a){switch(a){case Ys:this.qa===Fl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Wo||this.qa===zl||this.qa===aa)&&(this.qa=Us,ta(this));break;case Da:case Go:case Ko:(Go!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Wo||this.qa===zl||this.qa===aa)&&(this.qa=Us,ta(this))}};function ta(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=Fl,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=zl,a.doError(E,z))}}rs.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},rs.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},rs.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=ro,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},rs.prototype.doStop=function(){Ps=null},rs.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},rs.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},qe.Object.defineProperties(rs.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),rs.prototype.measureTemporaryTextBlock=rs.prototype.Lx;var Da=new Dn(rs,"LostFocus",0),Ys=new Dn(rs,"MouseDown",1),Ko=new Dn(rs,"Tab",2),Go=new Dn(rs,"Enter",3),As=new Dn(rs,"SingleClick",0),es=new Dn(rs,"SingleClickSelected",1),Os=new Dn(rs,"DoubleClick",2),ro=new Dn(rs,"StateNone",0),Wo=new Dn(rs,"StateActive",1),aa=new Dn(rs,"StateEditing",2),Us=new Dn(rs,"StateValidating",3),zl=new Dn(rs,"StateInvalid",4),Fl=new Dn(rs,"StateValidated",5),Ps=null;rs.className="TextEditingTool",rs.LostFocus=Da,rs.MouseDown=Ys,rs.Tab=Ko,rs.Enter=Go,rs.SingleClick=As,rs.SingleClickSelected=es,rs.DoubleClick=Os,rs.StateNone=ro,rs.StateActive=Wo,rs.StateEditing=aa,rs.StateValidating=Us,rs.StateInvalid=zl,rs.StateValidated=Fl,Yi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ca(a){Ru||(pu(),Ru=!0),this.H=Oh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=$u,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Bi,this.ce=new Ua,this.ce.Yd=this,this.Ei=new Bi,this.pu=new Bi,this.Sr=new Bi,this.pr=new Bi,a&&Object.assign(this,a)}ca.prototype.Xe=function(a){this.H=a},ca.prototype.canStart=function(){return!0};function Ul(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),_l(a.H),a.zb=!0)}function fo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===$u?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===Yu&&y.vc.clear(),a.Qw=!!(a.Pk===Ah&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Bu(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Qa&&b!==null&&(delete b.start.scale,delete b.end.scale),Ee.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Lu(x),Kd(x),a.zb=!1,y.start(),y.bc&&(Na(a),x.Ya(),Cc(y,0),vu(x,!0),Va(a),x.R("AnimationStarting",a)))}))}}function ja(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Gl(a,y,x,b){a.isTicking||ja(a)||y instanceof Wi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}$t=ca.prototype,$t.fv=function(a){return this.ce.fv(a)},$t.Xu=function(a){return this.ce.Xu(a)};function ea(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ot=!0;else{for(ot=nt.vc.iterator;ot.next();){var at=ot.key;if(at instanceof fn&&at.diagram!==null||at instanceof _n){ot=!0;break t}}ot=!1}ot?vh(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Na(E),vu(E.H),Va(E)),Ee.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ee.requestAnimationFrame(function(){x()}))}function la(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Na(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Va(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}$t.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Bu(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Bu(y,this.H)},$t.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},$t.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ia(this,a))},$t.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Rl(this.ce,y,"position",y.position,y.position),Ia(this,a))};function ol(a,y,x){!a.zb||y.D(x)||ja(a)||(a.H.pi||(y=x.copy()),Rl(a.ce,a.H,"position",y,x))}function Rs(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ia(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function xl(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ut=y[1],ct=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ut):(ct===0||ct===100)&&(at=z,ut=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ut-nt,b),ot=E(x,ot,ct-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function pu(){function a(x,b,E,z,nt,ot){x.position=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new gr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("location",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!0):x.location=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:placeholder",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new ke(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,ot){var at=x.actualBounds,ut=E.actualBounds;E=ut.x+ut.width/2-at.width/2,at=ut.y+ut.height/2-at.height/2,nt<ot?x.mm(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot),!1):x.position=new ke(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot))}),y.add("desiredSize",function(x,b,E,z,nt,ot){x.desiredSize=new ai(z(nt,b.width,E.width-b.width,ot),z(nt,b.height,E.height-b.height,ot))}),y.add("width",function(x,b,E,z,nt,ot){x.width=z(nt,b,E-b,ot)}),y.add("height",function(x,b,E,z,nt,ot){x.height=z(nt,b,E-b,ot)}),y.add("fill",function(x,b,E,z,nt,ot){x.fill=xl(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=xl(b,E,nt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,nt,ot){x.strokeWidth=z(nt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,nt,ot){x.strokeDashOffset=z(nt,b,E-b,ot)}),y.add("background",function(x,b,E,z,nt,ot){x.background=xl(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=xl(b,E,nt,ot,z)}),y.add("opacity",function(x,b,E,z,nt,ot){x.opacity=z(nt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,nt,ot){x.scale=z(nt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,nt,ot){x.angle=z(nt,b,E-b,ot)}),uu=y}qe.Object.defineProperties(ca.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Ni(a,">= 1",ca,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),ca.prototype.stopAnimation=ca.prototype.Cc;var uu=null,Ru=!1,$u=new Dn(ca,"Default",1),Ah=new Dn(ca,"AnimateLocations",2),Yu=new Dn(ca,"None",3);ca.className="AnimationManager",ca.defineAnimationEffect=function(a,y){Ru||(pu(),Ru=!0),uu.add(a,y)},ca.Default=$u,ca.AnimateLocations=Ah,ca.None=Yu;function Ua(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=yh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ts,this.vc=new gr,this.Tt=new gr,this.yl=new Bi,this.Ut=new Bi,this.dw=pc,a&&Object.assign(this,a)}Ua.prototype.suspend=function(){this.Xk=!0},Ua.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,vh(this,!0),Na(this.Yd),vu(this.H),Va(this.Yd),this.H.redraw()};function Bu(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}$t=Ua.prototype,$t.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof _n?a=x:x instanceof fn&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===$u&&this===y.defaultAnimation&&(this.Lp=rc,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fd),Na(y),this.yl.each(function(b){b.data=null,a.add(b)}),Va(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ea(y,this),this)},$t.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},$t.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof _n?this.H=a:a instanceof fn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Zr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Rl(this,a,y,x,b,E),this};function Rl(a,y,x,b,E,z){var nt=a.vc;if(y instanceof _n&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Fc(b),Vf(),b=[Ri.j,Ri.u,Ri.o,Ri.F],Fc(E),Vf(),E=[Ri.j,Ri.u,Ri.o,Ri.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ut=ot.end;at[x]===void 0&&(at[x]=tl(b)),ut[x]=tl(E)}else at={},ut={},at[x]=tl(b),ut[x]=tl(E),ot=at.position,y instanceof fn&&ot instanceof ke&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ut.position),ot=new oc(at,ut,z),nt.add(y,ot);nt=at[x],nt instanceof ke&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Zr?ot.Ku.location=tl(y.location):z&&(ot.Ku[x]=tl(b))}function tl(a){return a instanceof ke||a instanceof Ki?a.copy():a}$t.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},$t.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function vh(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),Na(x),Cc(a,E),vu(a.H,!0),Va(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Cc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof fn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=uu,ut;for(ut in nt)ut==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ut)===null||at.get(ut)(z,ot[ut],nt[ut],a.Lp,y,x,a)}}}$t.stop=function(){return this.bc?(this.Ml(!0),this):this},$t.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,Na(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=uu;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ut=E?ot.start:ot.end,ct=ot.Ku,yt;for(yt in ut)if(z.get(yt)!==null){var It=yt;!ot.Hu||It!=="position:nodeCollapse"&&It!=="position:placeholder"||(It="position"),z.get(It)(nt,at[yt],ct[yt]!==void 0?ct[yt]:ot.Hu?at[yt]:ut[yt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ct.location!==void 0&&nt instanceof Zr&&(nt.location=ct.location),ot.nv&&nt instanceof Zr&&nt.Zb(!1)}if(y.As.clear(),jc(y,!1),y.Ya(),y.N(),vu(y,!0),x.defaultAnimation===this){for(yt=x.pr.iterator;yt.next();)E=yt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}vu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Va(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Bu(this,null),x.Ml(this),y.$b())}},$t.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof To&&(b=y.placeholder),b!==null?(x=b.ga(nl),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new ke(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof To)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Cj(b,y)},$t.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof To&&(x=y.placeholder),x!==null){var b=x.ga(nl);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof To)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Aj(b,y)}},$t.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},qe.Object.defineProperties(Ua.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Ni(a,">= 1",Ua,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:gn("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Ua.prototype.getTemporaryState=Ua.prototype.Ez,Ua.prototype.stop=Ua.prototype.stop,Ua.prototype.add=Ua.prototype.add,Ua.prototype.addTemporaryPart=Ua.prototype.Iy;function yh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function rc(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Ua.className="Animation",Ua.EaseLinear=function(a,y,x,b){return x*a/b+y},Ua.EaseInOutQuad=yh,Ua.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Ua.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Ua.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Ua.EaseOutExpo=rc;function oc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}oc.className="AnimationState";function wh(a,y,x){this.xd=null,this.rf=a,this.so=x||Sl,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ca))}wh.prototype.copy=function(){var a=new wh(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function fa(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}qe.Object.defineProperties(wh.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Sl=new Dn(wh,"Default",1),Ca=new Dn(wh,"Immediate",2),Al=new Dn(wh,"Bundled",3);wh.className="AnimationTrigger",wh.Default=Sl,wh.Immediate=Ca,wh.Bundled=Al;function ga(a){Zo(this),this.H=null,this.Pa=new Ci,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}$t=ga.prototype,$t.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,bo(x)}a.clear(),this.Zq.length=0},$t.Xe=function(a){this.H=a},$t.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,nt=0,ot=this.Pa.iterator;ot.next();){var at=ot.value;at instanceof To?E++:at instanceof hr?b++:at instanceof Wi?z++:at instanceof Fs?nt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<E&&(ot+=E+" Groups "),0<z&&(ot+=z+" Links "),0<nt&&(ot+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
`+x.toString(),b=x.data,b!==null&&fs(b)&&(ot+=" #"+fs(b)),x instanceof hr?ot+=" "+xr(b):x instanceof Wi&&(ot+=" "+xr(x.fromNode)+" "+xr(x.toNode));return y+" "+this.Pa.count+": "+ot},$t.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=ke.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||eg(ot)!==!1)&&ot.isVisible()&&(E.assign(a),wo(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return ke.free(E),ot}return ke.free(E),null},$t.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ci||b instanceof Bi||(b=new Bi),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=ke.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||eg(at)!==!1)&&at.isVisible()){z.assign(a),wo(z,at.oe);var ut=at;at.ji(z,y,x,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return ke.free(z),b},$t.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ci||E instanceof Bi||(E=new Bi),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((z!==!0||eg(at)!==!1)&&at.isVisible()){var ut=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},$t.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,at=ot.length;at--;){var ut=ot[at];if((nt!==!0||eg(ut)!==!1)&&z(ut)&&ut.isVisible()){var ct=ut;ut.Cf(a,y,x,b,E)&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||E.add(ct))}}return E},$t.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ci||E instanceof Bi)&&(z=E),E=!0),z instanceof Ci||z instanceof Bi||(z=new Bi),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=ke.alloc(),at=ke.alloc(),ut=this.Pa.s,ct=ut.length;ct--;){var yt=ut[ct];if((nt!==!0||eg(yt)!==!1)&&yt.isVisible()){ot.assign(a),wo(ot,yt.oe),at.h(a.x+y,a.y),wo(at,yt.oe);var It=yt;yt.og(ot,at,x,b,E,z)&&(x!==null&&(It=x(It)),It===null||b!==null&&!b(It)||z.add(It))}}return ke.free(ot),ke.free(at),z},$t.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=cr();for(var E=cr(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Wi){if(nt.fd===!1)continue}else if(nt instanceof Fs&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Ls(ot,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&E.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],wv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)wv(E[y]);wr(a),wr(E)}}};function hu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}$t.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=hu(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,ot=ai.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(ai.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Fu(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var nt=hu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ut=ai.alloc(),ct=0;ct<z;ct++){var yt=E[ct];b.contains(yt)&&a.Oj(y,yt,x,ot,at,ut,!1)}ai.free(ut),y.globalAlpha=nt}}}$t.Oj=function(a,y,x,b,E,z,nt){if(nt&&!eg(y))a.Hs(y);else{if(b!==null&&y instanceof Wi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(nt=!0,z.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}b=!z.Re(ot)}b&&(a.save(),a instanceof nh?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*E>x.Oq||ot.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(xa(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(xa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),xa(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},$t.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Fa,a,this,y,x,b,E)},$t.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&bo(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Kh(this,a,y),a},$t.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,bo(y),a};function Kh(a,y,x){if(y=Th(a,y,x),x instanceof To&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];if(ot===x&&(y=nt,0<=b)||0>b&&ot.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Kh(a,-1,y)}x.svg!==null&&x.svg.remove()}function Th(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,nt=NaN;0<=z&&(nt=a.M(z).zOrder,!!isNaN(nt));)z--;for(var ot=y+1,at=NaN;ot<E&&(at=a.M(ot).zOrder,!!isNaN(at));)ot++;if(!isNaN(nt)&&nt>b)for(;;){if(z===-1||nt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(nt=NaN;0<=--z&&(nt=a.M(z).zOrder,isNaN(nt)););}else if(!isNaN(at)&&at<b)for(;;){if(ot===E||at>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(at=NaN;++ot<E&&(at=a.M(ot).zOrder,isNaN(at)););}return y}qe.Object.defineProperties(ga.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&gn("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&gn("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ni(a,"0 <= value <= 1",ga,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),ga.prototype.findObjectsNear=ga.prototype.og,ga.prototype.findObjectsIn=ga.prototype.Cf,ga.prototype.findObjectsAt=ga.prototype.ji,ga.prototype.findObjectAt=ga.prototype.ic,ga.className="Layer";function _n(a,y){if(th||(Vl(),th=!0),Zo(this),Oh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,vs){var x=this,b=function(){x.removeEventListener(Ee.document,"DOMContentLoaded",b,!1),x.setRTL()};Ee.document.body!==null?this.setRTL():x.addEventListener(Ee.document,"DOMContentLoaded",b,!1)}this.ol=null,Ba.add("Model",Xs);var E=this;return this.Hb=function(z){var nt=E.partManager;if(z.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===Fa&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,lA(this),this.model=Xv(),this.Wg=!0,id(this),this.layout=new Ka,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new Ld,a!==void 0&&(typeof a=="string"||Ee.Element&&a instanceof Element?xd(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var _u,Oh;function lA(a){a.Yd=new ca,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ci,a.pj=new gr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new ke(NaN,NaN).freeze(),a.du=new ke(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new ke(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ro,a.zu=new ke(NaN,NaN).freeze(),a.ut=new ai(NaN,NaN,NaN,NaN).freeze(),a.rj=new Gr(0,0,0,0).freeze(),a.sj=pc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Qa,a.zk=Es,a.Fg=Qa,a.pq=Es,a.yt=nl,a.Bt=nl,a.Fc=!0,a.pn=!1,a.De=new Bi,a.Eh=new gr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Gr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Cu,a.bq.diagram=a,a.Qg=new Cu,a.Qg.diagram=a,a.cj=new Cu,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,$d(a),a.ai=new Bi,a.Ht=!0,a.uu=Gc,a.pw=!1,a.wu=ac,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new gr,a.Xn=new Ci,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Gr(5).freeze(),a.Hw=new Bi().freeze(),a.Nt=999999999,a.nw=new Bi().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Bi,a.ow=new Bi,a.Xh=null,a.aw=new Ki(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new ke,bounds:new ai,Py:new Ki,bA:new Ki,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ai(NaN,NaN,NaN,NaN).freeze(),a.wo=new Ki(NaN,NaN).freeze(),a.Sp=new ai(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new gr;var y=new hr,x=new sa;x.bind(new ql("text","",xr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new hr,x=new sa,x.stroke="brown",x.bind(new ql("text","",xr)),y.add(x),a.Lg.add("Comment",y),y=new hr,y.selectable=!1,y.avoidable=!1,x=new ko,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Ki(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new gr,y=new To,y.selectionObjectName="GROUPPANEL",y.type=ci.Vertical,x=new sa,x.font="bold 12pt sans-serif",x.bind(new ql("text","",xr)),y.add(x),x=new ci(ci.Auto),x.name="GROUPPANEL";var b=new ko;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Zh,b.padding=new Gr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new gr,y=new Wi,x=new ko,x.isPanelMain=!0,y.add(x),x=new ko,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Wi,x=new ko,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Fs,y.type=ci.Auto,x=new ko,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Zh,x.margin=new Gr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Fs,y.type=ci.Link,x=new ko,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Xs,a.toolManager=new ie,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new st,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=gc(),a.eq=null,a.fq=ml,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new ke,a.zy=500,a.wp=new ke,a.wq=!1}_n.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),iu=null,ru="",nd(this,!1),this.Xn.clear(),kp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function nd(a,y){a.animationManager.Cc(!0),a.Hw=new Bi().freeze(),a.nw=new Bi().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var at=ot.value;at!==E&&at.data===null&&z.push(at)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),kp(),a.Og.clear(),_o=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function gc(){return null}_n.prototype.reset=function(){this.clear(),this.vb=!0,lA(this),Dh(this),this.Wg=!0,id(this),this.layout=new Ka,this.Wg=!1,this.model=Xv(),this.model.undoManager=new Et,this.vb=this.rn=!1,this.N()},_n.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ee.document.body);var y=ei("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},_n.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ee.document.body);var y=0;if(vs){var x=Pa;y=_u,x===null&&(x=Pa=ei("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=_u=ei("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||Ss||(y=11)}this.Db=y,this.Gw=!0},_n.prototype.qb=function(a){a.classType===_n&&(this.autoScale=a)},_n.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function xd(a,y){if(vs){if(y!=null||gn("Diagram setup requires an argument DIV."),a.Ka!==null&&gn("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ee.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:gn("No DIV or DIV id supplied: "+y),a.Ka===null&&gn("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&gn("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ee.ResizeObserver){var x=Gn(function(){a.$b()},250);a.ol=new Ee.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ee.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ee.go;var E=new Tu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ee.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Zd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Tu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,vs){E=ei("div");var z=ei("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Uc,E.addEventListener("pointerdown",Sd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Gn(function(){a.Yh=null,a.N()},300),a.Ov=Gn(function(){Kd(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=mu(a,nt,!0);ot.bubbles=!0;var at=0,ut=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ut=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ut):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ut=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ut):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),qu(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,mu(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[nt.pointerId]===void 0&&(ot[nt.pointerId]=nt),ot=a.oj;var at=!1;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType)if(ot[1]!==null&&ot[1].pointerId===nt.pointerId)ot[1]=nt,at=!0;else if(ot[0]===null)ot[0]=nt;else if(ot[1]===null)ot[1]=nt,at=!0;else{nt.preventDefault();return}else ot[0]=nt;(ot=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ut=at;at=Wd(a,nt,!0,!1,!0,ut),Rc(a,nt,at),at.targetDiagram=Gd(nt,nt.target),at.targetObject=null,ut||at.clone(a.bq),ut=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ut.x-nt.screenX)>ot||Math.abs(ut.y-nt.screenY)>ot)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():qu(at,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType){if(ot[1]!==null&&ot[1].pointerId===nt.pointerId){ot[1]=nt;return}if(ot[0]===null)ot[0]=nt;else return}else ot[0]=nt;if(ot[0].pointerId===nt.pointerId){ot=Wd(a,nt,!1,!1,!1,ot[1]!==null);var at=Ee.document.elementFromPoint(nt.clientX,nt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ut=a,ct=nt;at&&at.H&&(ct=nt,ut=at.H),ot.targetDiagram=ut,Rc(a,ct,ot),ot.targetObject=null,a.doMouseMove(),qu(ot,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=nt.pointerType==="touch"||nt.pointerType==="pen",at=a.Yt;if(ot&&a.qu)delete at[nt.pointerId],nt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==nt.pointerId&&at[0].pointerType===nt.pointerType)at[1]!==null&&at[1].pointerId===nt.pointerId&&(at[1]=null);else{at[0]=null,at=Wd(a,nt,!1,!0,!0,!1);var ut=Ee.document.elementFromPoint(nt.clientX,nt.clientY)||null;ut!==null&&ut.shadowRoot!==void 0&&ut.shadowRoot!==null&&(ut=ut.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ut!==null&&ut.H instanceof _n&&ut.H!==a&&Rc(ut.H,nt,at),ut===null&&(ut=nt.target),Rc(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Gd(nt,ut),at.targetObject=null,a.doMouseUp(),qu(at,nt),ot&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[nt.pointerId]&&delete ot[nt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===nt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===nt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+sd[1]+sd[2]+"wI"+jh.slice(1,5)]["b"+Rw.slice(1,y)](b.Z,mc,y,y),b.Vc(!0),SA(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}_n.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},_n.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function SA(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ee,"resize",a.Ov,!1)}function Lu(a){30<a.Sq&&(a.Yh=1)}function jc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),qo&&qo.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}_n.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ee.devicePixelRatio||1},_n.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},_n.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},_n.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},_n.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},_n.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},_n.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},_n.prototype.doFocus=function(){this.focus()},_n.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ee.scrollX||Ee.pageXOffset,y=Ee.scrollY||Ee.pageYOffset;this.ta.focus(),Ee.scrollTo(a,y)}},_n.prototype.Oy=function(){this.H.R("GainedFocus")},_n.prototype.Ny=function(){this.H.R("LostFocus")};function Kd(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Qa&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function id(a){var y=new ga;y.name="Background",a.Al(y),y=new ga,y.name="",a.Al(y),y=new ga,y.name="Foreground",a.Al(y),y=new ga,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ga,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ga,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function CA(a){var y=new ci(ci.Grid);y.name="GRID";var x=new ko;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ko,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ko,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ko,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ko,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ko,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Zr,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Uc(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Bc(this.H)}function Sd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Bc(this.H)}_n.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,nt=b.x-z.left,ot=b.y-z.top,at=b.width+z.left+z.right,ut=b.height+z.top+z.bottom,ct=b.right+z.right;z=b.bottom+z.bottom;var yt=E.x;b=E.y;var It=E.width,Kt=E.height,Zt=E.right,ue=E.bottom;E=this.scale;var Re=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Re=Re+a.scrollWidth-a.clientWidth;break;case"reverse":Re=a.scrollWidth-Re-a.clientWidth}var Fe=Re;It<at||Kt<ut?(Re=ke.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Fe&&(Re.x=Fe/E+nt,this.ju=Fe),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Re.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=Re,ke.free(Re),this.Ee=this.qr=!1):(Re=ke.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<yt&&(this.position=Re.h(Fe+nt,this.position.y)),ct>Zt&&(this.position=Re.h(-(y.scrollWidth-this.Aa)+Fe-this.Aa/E+ct,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=Re.h(this.position.x,a.scrollTop+ot)),z>ue&&(this.position=Re.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),ke.free(Re),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ct=b.right,Zt=E.right,z=b.bottom,ue=E.bottom,nt=b.x,yt=E.x,ot=b.y,b=E.y,It>=at&&nt>=yt&&ct<=Zt&&(x.style.width="1px"),Kt>=ut&&ot>=b&&z<=ue&&(x.style.height="1px"))}},_n.prototype.computeBounds=function(a){return a===void 0&&(a=new ai),_l(this),Ju(this,a)};function Ju(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ot=nt.length,at=0;at<ot;at++){var ut=nt[at];ut.isInDocumentBounds&&ut.isVisible()&&(ut=ut.actualBounds,ut.w()&&(x?(x=!1,y.assign(ut)):y.ed(ut)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}_n.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(yi(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Wi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Wi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ai(NaN,NaN,0,0):x};function ah(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=ke.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ai.allocAt(0,0,b.width,b.height);var E=ke.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ai.free(b),ke.free(E),ke.free(x)}x=a.yh,y&&a.Fg!==Qa&&(x=a.Fg);var z=x!==Qa?Vu(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var nt=a.ya/z,ot=a.zk,at=a.pq;y&&!ot.sb()&&(at.sb()||at.Xb())&&(ot=at.Xb()?Eo:at),BA(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,En.B(z.x,x)&&En.B(z.y,b)&&En.B(z.width,E)&&En.B(z.height,nt)||a.onViewportBoundsChanged(new ai(x,b,E,nt),z,y,!1)}}function Vu(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),ot=z/E,at=nt/b;return y===Kl?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Nu?(y=at>ot?(nt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}_n.prototype.zoomToFit=function(){var a=this.sj;this.sj=pc,this.scale=Vu(this,Kl),a!==pc&&(ah(this,!1),BA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},$t=_n.prototype,$t.BA=function(a,y){y===void 0&&(y=Kl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Kl||y===Nu)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Nu?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new ke(a.x,a.y)}},$t.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new ke(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},$t.zz=function(a){if(a instanceof fn){this.eq=a;var y=ke.alloc();this.fq=this.op(a.ga(nl,y)),ke.free(y)}else this.eq=null,this.fq=ml};function BA(a,y,x,b,E,z){var nt=ke.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ut=ke.alloc();ut=a.eq.ga(nl,ut),ot=ut.x-a.fq.x/a.scale,at=ut.y-a.fq.y/a.scale,E=Wa,ke.free(ut)}(z||a.scrollMode===pc)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),nt.x=isFinite(ot)?ot:-a.yb.left,nt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),ol(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Dh(a),ke.free(nt)}$t.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Gh(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Zr)return a}else if(a=Gh(this,a,function(x){return x.part}),a instanceof Zr)return a;return null},$t.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),_l(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Gh(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),_l(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}$t.lz=function(a,y,x){return y===void 0&&(y=!0),ia(this,a,function(b){return b.part},y?function(b){return b instanceof Zr&&b.canSelect()}:null,x)};function ia(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Ci||E instanceof Bi||(E=new Bi),_l(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}$t.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ci||b instanceof Bi||(b=new Bi),_l(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},$t.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Cd(this,a,function(E){return E instanceof Zr&&(!x||E.canSelect())},y,b)},$t.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ci||E instanceof Bi||(E=new Bi),_l(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},$t.Nu=function(a,y,x,b,E,z){var nt=new Bi;_l(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,E,z)}return nt};function Cd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ci||E instanceof Bi||(E=new Bi),_l(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}$t.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),rd(this,a,y,function(z){return z instanceof Zr&&(!b||z.canSelect())},x,E)},$t.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ci||E instanceof Bi)&&(z=E),E=!0),z instanceof Ci||z instanceof Bi||(z=new Bi),_l(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function rd(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Ci||E instanceof Bi)&&(z=E),E=!0),z instanceof Ci||z instanceof Bi||(z=new Bi),_l(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,nt,b,E,z)}return z}_n.prototype.acceptEvent=function(a){return mu(this,a,a instanceof MouseEvent)};function mu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Rc(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),Ss&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Gd(y,y.target),b.targetObject=null,b}function Gd(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Wd(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,Ss&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=E,nt.isMultiTouch=z,nt}function qu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}_n.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=mu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),qu(x,a)},_n.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),qu(x,a)},_n.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),qu(x,a)},_n.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),qu(x,a)},_n.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new ke(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?wo(new ke(y,a),this.Ab):new ke(y,a)};function Rc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=ke.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),ke.free(y)):x.documentPoint.h(nt,ot)}function Bd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}_n.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Vd(a){a.ld||_l(a),a.Va()}_n.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},$t=_n.prototype,$t.Pz=function(){return this.kg},$t.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,vu(this),this.hf=!1,this.du=new ke(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Ei(function(){b.ld=!1,Ul(y,"Model"),a(b)},1)},$t.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ee.requestAnimationFrame(function(){y.kg&&y.bd()})}},$t.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),vu(this))};function cu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Bc(a)||(y&&_l(a),x&&ah(a,!1))}function vu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];kl(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Kd(a),cu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),_l(a),z=!1,(!a.hf||a.xh)&&(a.hf?Xd(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Xd(a,!1)),z=!0),a.Jk=!1,_l(a),a.ou||Vd(a),cu(a,!0,!1),nt=!1,z?(x=ai.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,_c(a)),a.R("LayoutCompleted"),cu(a,!0,!1),ai.free(x)):x.Ok&&x.Qw&&(a.Fg!==Qa?a.scale=Vu(a,a.Fg):a.yh!==Qa?a.scale=Vu(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),ah(a,!0)),z&&nt&&a.eb("Initial Layout"),_l(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function _c(a){if(a.Fg!==Qa)a.scale=Vu(a,a.Fg);else if(a.yh!==Qa)a.scale=Vu(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}ah(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Pc(a)}function _l(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Bi,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof To&&b.U&65536&&(b.U=b.U^65536)})}}$t.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof To||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof To&&x.isVisible()&&ka(this,x);for(a.reset();a.next();)x=a.value,x instanceof Wi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Fs&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ka(a,y){for(var x=cr(),b=cr(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof To?(Sh(z)||eh(z)||tg(z))&&ka(a,z):z instanceof Wi?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(wr(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();wr(b)}$t.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},$t.gc=function(a){if(this.Ka!==null){if(this.ta===null&&gn("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Eh(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,nt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-nt),a.ti=null,Gf(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Mu(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Uh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ro.prototype.Cd=Ro.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Eh(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ut=Math.round(ot.x*at)/at,ct=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ut,-ct),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Mu(this,a),ot=0;ot<E;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Uh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ro.prototype.Cd=Ro.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=qo&&qo.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Za(a,y,x,b,E,z,nt,ot,at,ut){if(a.Ka!==null){a.ta===null&&gn("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ut===void 0&&(ut=!1),Eh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ct=a.Ca;a.Ca=E;var yt=a.Wa.s,It=yt.length;try{var Kt=new ai(z.x,z.y,b.width/E,b.height/E),Zt=Kt.copy();Zt.Co(x),Pc(a,Zt),_l(a),a.Fd(yt,It,a,Kt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var ue=a.Mb;y.scale(ue,ue);var Re=Ro.alloc();Re.reset(),Re.translate(x.left,x.top),Re.scale(E),z.x===0&&z.y===0||Re.translate(-z.x,-z.y),y.setTransform(Re.m11,Re.m12,Re.m21,Re.m22,Re.dx,Re.dy),y.yc(),y instanceof nh&&Gf(y,Re.m11,Re.m12,Re.m21,Re.m22,Re.dx,Re.dy),Ro.free(Re),Mu(a,y),y.globalAlpha=a.pb;var Fe=a.Qj("Grid");if(nt){var We=new Bi,Je=nt.iterator;for(Je.reset();Je.next();){var nn=Je.value;nn instanceof Zr&&(ut||nn.layer!==Fe)&&(nn.Gj(),We.add(nn))}for(ut=0;ut<It;ut++)Fu(yt[ut],y,a,We,at);We.each(function(Vn){return Vn.Gj()})}else for(We=0;We<It;We++){var xn=yt[We];xn===Fe?ut&&xn.gc(y,a,!0):xn.gc(y,a,at)}a.$i=!1,a.Yf&&Uh(a.Yf,a)&&a.Vp()}finally{a.Ca=ct,a.ib.Vc(!0),a.vd=!0,a.Fd(yt,It,a,a.viewportBounds),Pc(a),a.ib instanceof nh&&(a.ib.Nj.PA(),a.redraw())}}}$t.Gf=function(a){return this.Rg[a]},$t.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},$t.Tx=function(){this.Rg=new Kr,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Ss||yo),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Mu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}$t.Ql=function(a){return this.on[a]},$t.sA=function(a,y){this.on[a]=y},$t.Sx=function(){this.on=new Kr,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},$t.set=function(a){return Object.assign(this,a),this},$t.Du=function(a){return this.nm(a)},$t.nm=function(a){return fh(this,a),this};function fh(a,y){var x=a instanceof ci,b=a instanceof _n,E;for(E in y){E===""&&gn("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var at=E.substring(0,ot);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),kn(z)?nt=E.substr(ot+1):gn("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!so(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&so(a.toolManager,nt))z=a.toolManager;else if(b&&FA(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof jr&&nt==="Changed"){a.Pe(y[nt]);continue}else gn('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof fn&&z.Vw(nt)}}$t.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new gr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},$t.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},_n.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=ai.alloc(),bA(this,this.computeBounds(b)),ai.free(b)),b=this.ta,b===null||b instanceof Hu)))){var nt=this.Mb;E=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==ot&&(at.height=ot),a.clearRect(0,0,E,ot),at=190*nt;var ut=70*nt,ct=Math.max(z,0),yt=Math.max(y,0),It=Math.floor(E-ct),Kt=Math.floor(ot-yt);a.drawImage(b.Oa,ct,yt,It,Kt,0,0,It,Kt),Uh(this.Yf,this)&&a.clearRect(0,0,at,ut),b=cr(),a=cr(),Kt=Math.abs(z),It=Math.abs(y);var Zt=ct===0?0:E-Kt;ct=ke.allocAt(Zt,0),Kt=ke.allocAt(Kt+Zt,ot),a.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y)));var ue=this.Ab;if(ue.reset(),ue.scale(nt,nt),this.Ca!==1&&ue.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&ue.translate(-nt.x,-nt.y),wo(ct,ue),wo(Kt,ue),b.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),Zt=yt===0?0:ot-It,ct.h(0,Zt),Kt.h(E,It+Zt),a.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),wo(ct,ue),wo(Kt,ue),b.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),Uh(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ct.h(E,ot),Kt.h(at+E,ut+ot),a.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y))),wo(ct,ue),wo(Kt,ue),b.push(new ai(Math.min(ct.x,Kt.x),Math.min(ct.y,Kt.y),Math.abs(ct.x-Kt.x),Math.abs(ct.y-Kt.y)))),ke.free(ct),ke.free(Kt),cu(this,!1,!0),this.Ka===null&&gn("No div specified"),this.ta===null&&gn("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Eh(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,at=Math.round(z.x*nt)/nt,ut=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-at,-ut),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)at=a[nt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(ot,0,0,ot,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Mu(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ut=hu(nt,E),yt=nt.Zq,yt.length=0,ct=this.scale,It=ai.alloc(),Kt=nt.Pa.s,ue=Kt.length,Zt=at.length;for(var Re=0;Re<ue;Re++){var Fe=Kt[Re],We=Ng(Fe,Fe.actualBounds);t:{for(var Je=2/ct,nn=4/ct,xn=0;xn<Zt;xn++){var Vn=at[xn];if(Vn.width!==0&&Vn.height!==0&&We.Vu(Vn.x-Je,Vn.y-Je,Vn.width+nn,Vn.height+nn)){We=!0;break t}}We=!1}We&&nt.Oj(E,Fe,this,yt,ct,It,!0)}ai.free(It),E.globalAlpha=ut}E.restore(),E.Vc(!0),this.Yf&&Uh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}wr(b),wr(a),this.ld=!1}}else this.bd();x&&(Lu(this),this.bd(),jc(this,!0))}else x?(Lu(this),this.bd(),jc(this,!0)):this.bd()}};function Eh(a){a.pn!==!1&&(a.pn=!1,Zd(a,a.Aa,a.ya))}function Zd(a,y,x){Dh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Bc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=E.clientWidth||x+nt,ut=E.clientHeight||b+ot,ct=a.viewportBounds;E=ct.x;var yt=ct.y,It=ct.width,Kt=ct.height;if((at!==x+nt||ut!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ut,z=a.pn=!0,Dh(a)),!a.hf||!a.viewportBounds.w())return!0;var Zt=a.ku,ue=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Re=a.documentBounds,Fe=0,We=0,Je=0,nn=0,xn=ct.width,Vn=ct.height,ir=a.rj;a.contentAlignment.sb()?(Re.width>xn&&(Fe=ir.left,We=ir.right),Re.height>Vn&&(Je=ir.top,nn=ir.bottom)):(Fe=ir.left,We=ir.right,Je=ir.top,nn=ir.bottom);var Lr=Re.width+Fe+We,yr=Re.height+Je+nn;ir=a.scale;var Gi=Lr>at/ir,Mi=yr>ut/ir;if(!(z||a.gf||a.Be||Gi||Mi))return!0;Fe=Re.x-Fe,at=ct.x,We=Re.right+We,ut=ct.right+nt,Je=Re.y-Je;var Fo=ct.y;Re=Re.bottom+nn,ct=ct.bottom+ot;var mo="1px";if(nn="1px",a.scrollMode===pc&&(Gi||Mi)&&(Gi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Gi=1,Fe+1<at&&(Gi=Math.max((at-Fe)*ir+a.Aa,Gi)),We>ut+1&&(Gi=Math.max((We-ut)*ir+a.Aa,Gi)),xn+nt+1<Lr&&(Gi=Math.max((Lr-xn)*ir+a.Aa,Gi)),mo=Gi.toString()+"px"),Mi&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gi=1,Je+1<Fo&&(Gi=Math.max((Fo-Je)*ir+a.ya,Gi)),Re>ct+1&&(Gi=Math.max((Re-ct)*ir+a.ya,Gi)),Vn+ot+1<yr&&(Gi=Math.max((yr-Vn)*ir+a.ya,Gi)),nn=Gi.toString()+"px")),Gi=mo!=="1px",Mi=nn!=="1px",Gi&&Mi||!Gi&&!Mi||(Mi&&(ut-=a.Db),Gi&&(ct-=a.Db),Lr<xn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Fe+1<at&&(nt=Math.max((at-Fe)*ir+a.Aa,nt)),We>ut+1&&(nt=Math.max((We-ut)*ir+a.Aa,nt)),xn+1<Lr&&(nt=Math.max((Lr-xn)*ir+a.Aa,nt)),mo=nt.toString()+"px"),Gi=mo!=="1px",nt=a.ya,Gi!==a.Be&&(nt=Gi?a.ya-a.Db:a.ya+a.Db),yr<Vn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,Je+1<Fo&&(ot=Math.max((Fo-Je)*ir+nt,ot)),Re>ct+1&&(ot=Math.max((Re-ct)*ir+nt,ot)),Vn+1<yr&&(ot=Math.max((yr-Vn)*ir+nt,ot)),nn=ot.toString()+"px"),Mi=nn!=="1px"),a.qr&&Gi===a.Be&&Mi===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Gi!==a.Be&&(mo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Gi,ue.style.width=mo,Mi!==a.gf&&(nn==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=ke.alloc(),Mi?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),ke.free(ot))),z&&Dh(a),a.gf=Mi,ue.style.height=nn,a.gu=!0,z&&(a.pn=!0),y=Zt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(xn+1<Lr?y=(a.position.x-Fe)*ir:Fe+1<at?y=Zt.scrollWidth-Zt.clientWidth:We>ut+1&&(y=a.position.x*ir)),a.tn)switch(a.bu){case"negative":y=-(Zt.scrollWidth-y-Zt.clientWidth);break;case"reverse":y=Zt.scrollWidth-y-Zt.clientWidth}return Zt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Vn+1<yr?Zt.scrollTop=(a.position.y-Je)*ir:Je+1<Fo?Zt.scrollTop=Zt.scrollHeight-Zt.clientHeight:Re>ct+1&&(Zt.scrollTop=a.position.y*ir)),at=a.Aa,ut=a.ya,Zt.style.width=at+(a.gf?a.Db:0)+"px",Zt.style.height=ut+(a.Be?a.Db:0)+"px",x!==at||b!==ut||a.animationManager.zb?(x=ai.allocAt(E,yt,It,Kt),a.onViewportBoundsChanged(x,a.viewportBounds,ir,z),ai.free(x),!1):!0}$t=_n.prototype,$t.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&gn("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&gn('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(dl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},$t.oi=function(a){this.partManager.oi(a);var y=this;hl(a,function(x){zc(y,x)}),(a instanceof Fs||a instanceof To&&a.placeholder!==null)&&a.v(),a.data!==null&&hl(a,function(x){Wv(y.partManager,x)}),eh(a)!==!0&&tg(a)!==!0||this.De.add(a),Ky(a,!0,this),Wy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},$t.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&hl(a,function(x){Vv(y.partManager,x,y)}),this.De.remove(a),Wy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},$t.remove=function(a){Pd(this,a,!0)};function Pd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Ql,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}$t.Is=function(a,y){if(y===void 0&&(y=!1),yi(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Bi,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},$t.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},_n.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=PA(this)),this.toolManager!==null){var E=new gr;if(a!==null)if(yi(a))for(var z=0;z<a.length;z++)Zu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Zu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Zu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Zu(this,E,a.value,x,b);for(a=this.links;a.next();)Zu(this,E,a.value,x,b)}xh(this,E,y,b,x)}};function Zu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=PA(a)),x instanceof hr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof To&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Zu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var nt=z.value;if(!y.contains(nt)){var ot=nt.fromNode,at=nt.toNode;ot!==null&&y.contains(ot)&&at!==null&&y.contains(at)&&Zu(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Zu(a,y,x.value,b,E)}else if(x instanceof Wi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Zu(a,y,x.value,b,E);else x instanceof Fs||y.add(x,a.Pd(E,x,x.location))}function xh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=ke.alloc(),nt=ke.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||sc(a,y);for(var ot=cr(),at=cr(),ut=y.iterator,ct=ke.alloc();ut.next();){var yt=ut.key,It=ut.value;if(yt.Zc()){var Kt=od(a,yt,y);Kt!==null?ot.push(new it(yt,It,Kt)):(!E||yt.canMove())&&(Kt=It.point,z.assign(Kt),a.computeMove(yt,z.add(nt),b,ct),yt.location=ct,It.shifted===void 0&&(It.shifted=new ke),It.shifted.assign(ct.re(Kt)))}else ut.key instanceof Wi&&at.push(ut.sa)}for(ke.free(ct),E=ot.length,ut=0;ut<E;ut++)yt=ot[ut],z.assign(yt.info.point),yt.Su.shifted===void 0&&(yt.Su.shifted=new ke),yt.node.location=z.add(yt.Su.shifted);for(E=ke.alloc(),ut=ke.alloc(),yt=at.length,It=0;It<yt;It++){var Zt=at[It];if(Kt=Zt.key,Kt instanceof Wi)if(Kt.suspendsRouting){Kt.Tg=null,ct=Kt.fromNode;var ue=Kt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ue=Zt.value.point,Kt.dragComputation===null)y.add(Kt,a.Pd(b,Kt,nt)),Ff(Kt,nt.x-ue.x,nt.y-ue.y);else{Zt=ke.allocAt(0,0),(ct=Kt.i(0))&&ct.w()&&Zt.assign(ct);var Re=ct=ke.alloc().assign(Zt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Re=ke.alloc(),Hc(a,Kt,ct,Re,b)),ct.assign(Kt.dragComputation(Kt,ct,Re)).re(Zt),y.add(Kt,a.Pd(b,Kt,ct)),Ff(Kt,ct.x-ue.x,ct.y-ue.y),ke.free(Zt),ke.free(ct),Re!==ct&&ke.free(Re)}else ct!==null&&(E.assign(ct.location),Re=y.I(ct),Re!==null&&E.re(Re.point)),ue!==null&&(ut.assign(ue.location),Re=y.I(ue),Re!==null&&ut.re(Re.point)),ct!==null&&ue!==null?E.Xa(ut)?(ct=Zt.value.point,ue=z,ue.assign(E),ue.re(ct),y.add(Kt,a.Pd(b,Kt,E)),Ff(Kt,ue.x,ue.y)):(Kt.suspendsRouting=!1,Kt.bb()):(Zt=Zt.value.point,ct=ct!==null?E:ue!==null?ut:nt,y.add(Kt,a.Pd(b,Kt,ct)),Ff(Kt,ct.x-Zt.x,ct.y-Zt.y))}else(Kt.fromNode===null||Kt.toNode===null)&&(ct=Zt.value.point,y.add(Kt,a.Pd(b,Kt,nt)),Ff(Kt,nt.x-ct.x,nt.y-ct.y))}ke.free(z),ke.free(nt),ke.free(E),ke.free(ut),wr(ot),wr(at),x||(_l(a),Qc(a,y))}}_n.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new ke),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=ke.alloc(),Hc(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ut=at.x;return isNaN(ut)&&(ut=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,ut)),Math.max(nt,Math.min(x.y,at))),E!==y&&ke.free(E),b};function PA(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Hc(a,y,x,b,E){if(E===void 0&&(E=PA(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,ot=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(nt)&&(nt=z.y)}z=ke.allocAt(0,0),z.yi(0,0,a,y,E),En.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),ke.free(z)}}function sc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Wi&&(y.suspendsRouting=!0)}function Qc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Wi&&(x.suspendsRouting=!1,Iv(x)&&x.bb())}a.Mr=!1}}function od(a,y,x){return y=y.containingGroup,y!==null&&(a=od(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}$t=_n.prototype,$t.Pd=function(a,y,x){if(x===void 0)return new lh(ts);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new lh(new ke(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new lh(x.copy())};function lf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&gn("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&gn("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&gn("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&gn("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&gn("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}$t.Al=function(a){lf(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(dl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},$t.Ww=function(a,y){lf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ql,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(dl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},$t.Cy=function(a,y){lf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ql,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(dl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},$t.kA=function(a){if(a.diagram!==this&&gn("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Ql,"layers",this,a,null,x,null),this.N(),this.Ya()}}},$t.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},$t.Yw=function(a){return this.pf===null&&(this.pf=new Ci),this.pf.add(a),this.model.Pe(a),this},$t.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},$t.Pe=function(a){return this.zg===null&&(this.zg=new Ci),this.zg.add(a),this},$t.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},$t.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==sh&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},$t.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Ea;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=z,ot.newValue=E,ot.newParam=nt,this.ds(ot)},$t.g=function(a,y,x,b,E){this.cb(Fa,a,this,y,x,b,E)},_n.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Fa){var E=a.object;if(_a(E,a.propertyName,a.I(y)),E instanceof fn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===dl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof ci)if(typeof ot=="number"&&at instanceof fn){y?nt.pc(ot):nt.Gb(ot,at);var ut=nt.part;ut!==null&&ut.Wb()}else typeof ot=="number"&&at instanceof Zl&&(at.isRow?Vc(nt,ot,y?void 0:at):qd(nt,ot,y?void 0:at));else if(nt instanceof ga){var ct=a.oldParam===!0;typeof ot=="number"&&at instanceof Zr&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ct?ot:-1,at,ct)):nt.oi(ot,at,ct))}else nt instanceof _n?typeof ot=="number"&&at instanceof ga&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):gn("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Ql){var yt=a.object,It=a.oldParam,Kt=a.oldValue;if(yt instanceof ci)typeof It=="number"&&Kt instanceof fn?y?yt.Gb(It,Kt):yt.pc(It):typeof It=="number"&&Kt instanceof Zl&&(Kt.isRow?Vc(yt,It,y?Kt:void 0):qd(yt,It,y?Kt:void 0));else if(yt instanceof ga){var Zt=a.newParam===!0;typeof It=="number"&&Kt instanceof Zr&&(y?0>yt.Pa.indexOf(Kt)&&yt.oi(It,Kt,Zt):(Kt.isSelected=!1,Kt.isHighlighted=!1,Kt.Wb(),yt.pc(Zt?It:-1,Kt,Zt)))}else yt instanceof _n?typeof It=="number"&&Kt instanceof ga&&(y?(Kt.Xe(this),this.Wa.Gb(It,Kt)):this.Wa.mb(It)):gn("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==sh&&gn("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},_n.prototype.Ea=function(a){return this.undoManager.Ea(a)},_n.prototype.eb=function(a){return this.undoManager.eb(a)},_n.prototype.Kf=function(){return this.undoManager.Kf()},_n.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},_n.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},_n.prototype.rp=function(){this.partManager.rp()};function uA(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Dh(a),a.N(),a.Ee=!0,b.zb&&(ja(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Dh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ut=a.contentAlignment;isNaN(ot)&&(ut.$c()?ut.Hf(bu)?ot=0:ut.Hf(fu)&&(ot=z-1):ot=ut.sb()?ut.x*(z-1):z/2),isNaN(at)&&(ut.$c()?ut.Hf(Pu)?at=0:ut.Hf(nu)&&(at=nt-1):at=ut.sb()?ut.y*(nt-1):nt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=ke.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,ke.free(z),a.Ca=x,Dh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),ah(a,!1),b.zb&&(ja(b)||b.ce.add(b.H,"scale",y,a.Ca))}}_n.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Qa||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof ie&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Yt(E,this)),this.vb||this.invalidateViewport(a,y),Pc(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Ki.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at],ct=Math.abs(ut.interval);2>ct||(za(ut.figure)?z=z*ct/En.vx(z,ct):E=E*ct/En.vx(E,ct))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=ai.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ai.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,ai.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=ke.alloc(),En.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Ki.free(b),x.part.location=y,ke.free(y)}}_n.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},_n.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},_n.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),yi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Zr||gn("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof Zr||gn("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},_n.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},$t=_n.prototype,$t.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},$t.Jz=function(a){a=new Bi().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Zr||gn("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},$t.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=ke.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),ke.free(z);return}gn("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):gn("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),ke.free(z)},$t.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},$t.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},$t.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},$t.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ut=y.m22,ct=y.dx,yt=y.dy,It=x*nt+b*at+ct;y=x*ot+b*ut+yt;var Kt=E*nt+b*at+ct;return a=E*ot+b*ut+yt,b=x*nt+z*at+ct,x=x*ot+z*ut+yt,nt=E*nt+z*at+ct,E=E*ot+z*ut+yt,z=Math.min(It,Kt),It=Math.max(It,Kt),Kt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),It=Math.max(It,b),Kt=Math.min(Kt,x),y=Math.max(y,x),z=Math.min(z,nt),It=Math.max(It,nt),Kt=Math.min(Kt,E),y=Math.max(y,E),new ai(z,Kt,It-z,y-Kt)},$t.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),wo(a.copy(),this.Ab)};function KA(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function bd(a){return a=Ba.get(a),a!==null?new a:new Xs}_n.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===sh&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=E}),a.mouseMoveTools.each(function(at){return at.diagram=E}),a.mouseUpTools.each(function(at){return at.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===sh){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),_l(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||fo(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var nt=a.isTransactionFinished;if(nt&&(KA(this),this.As.clear(),la(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Ei(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function zc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Kc(a,y[b])}function Kc(a,y){if(y instanceof cc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Bi&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function hA(a,y){if(y instanceof cc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Bi&&x.Bg.remove(a),kp(b));break}}}}}_n.prototype.Wd=function(){this.partManager.Wd()},_n.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},_n.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},_n.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},_n.prototype.Vb=function(a){return this.partManager.Vb(a)},_n.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},$t=_n.prototype,$t.Lc=function(a){return this.partManager.Lc(a)},$t.ii=function(a){return this.partManager.ii(a)},$t.Kc=function(a){return this.partManager.Kc(a)},$t.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:ua(gs(y)))},$t.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:ua(gs(y)))};function Dh(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function bA(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),ah(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}$t.Va=function(){if(this.Zi){var a=ai.alloc();bA(this,this.computeBounds(a)),ai.free(a)}},$t.rz=function(){for(var a=new Bi,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},$t.qz=function(){return this.ai.iterator},$t.Uz=function(a){_l(this),a&&EA(this,!0),this.ld?Xd(this,!1):(this.Jk=!0,vu(this))};function EA(a,y){for(var x=a.ai.iterator;x.next();)cA(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function cA(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)cA(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Xd(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ul(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Ed(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),_l(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||fo(z),a.aa=x}}}function Ed(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Ed(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),ka(a,y),E.isValidLayout=!0):a.xh=!0)}}$t.yz=function(){for(var a=new Ci,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function $d(a){function y(E){var z=E.toLowerCase(),nt=new Ci;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new gr,b=new gr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function FA(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Ae(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;gn("Unknown DiagramEvent name: "+y)}$t.Bj=function(a,y){return a=Ae(this,a),a!==null&&a.add(y),this},$t.am=function(a,y){a=Ae(this,a),a!==null&&a.remove(y)},$t.R=function(a,y,x){var b=Ae(this,a),E=new wd;if(E.diagram=this,a=FA(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function vn(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}$t.Yj=function(a,y){return Si(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},_n.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Ju(this,a):a.assign(this.documentBounds)};function Si(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new bm(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=_i(a,x)),x===null){y=ai.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var nt=z.value,ot=nt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&ur(a,nt,b,y)}ai.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=ai.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof hr&&ur(a,nt,b,y);ai.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function _i(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?_i(a,y.containingGroup):null}function ur(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Rp(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Mf,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=Mf}else if(y instanceof To)for(y=y.memberParts;y.next();)E=y.value,E instanceof hr&&ur(a,E,x,b)}}function Ur(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}_n.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Co(this)};function Co(a){a.vk===-1&&(a.vk=Ei(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=ai.alloc(),a.computeBounds(y),y.ed(a.documentBounds),bA(a,y),ai.free(y),a.Fc=!0,a.bd(),Co(a))}},a.vp))}_n.prototype.ug=function(){this.vk!==-1&&(Ee.clearTimeout(this.vk),this.vk=-1)},_n.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=ai.allocAt(0,0,b.width*E,b.height*E);var z=ke.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var nt=Math.max(this.scrollHorizontalLineChange,1);nt|=0,z.x-=nt,a.x<b.x+x.left/2&&(z.x-=nt),a.x<b.x+x.left/4&&(z.x-=4*nt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,z.x+=nt,a.x>b.x+b.width-x.right/2&&(z.x+=nt),a.x>b.x+b.width-x.right/4&&(z.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y-=nt,a.y<b.y+x.top/2&&(z.y-=nt),a.y<b.y+x.top/4&&(z.y-=4*nt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y+=nt,a.y>b.y+b.height-x.bottom/2&&(z.y+=nt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*nt)),z.Xa(ts)||(y=new ke(y.x+z.x/E,y.y+z.y/E)),ai.free(b),ke.free(z),y},$t=_n.prototype,$t.Cs=function(){return null},$t.av=function(){return null},$t.bs=function(a,y){this.pj.add(a,y)},$t.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof To&&(y.$p=null)})};function ms(a,y,x){function b(){var ct=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||ct-ut>at?y(x,E,ot):Ee.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,at=x.callbackTimeout||300,ut=+new Date;return Ee.requestAnimationFrame(function(){b()}),null}$t.Wz=function(a){return vs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},$t.Jx=function(a){return a===void 0&&(a={}),ms(this,this.Xz,a)},$t.Xz=function(a,y,x){var b=Js(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case jh+"data":E=b.getImageData(0,0,x.width,x.height);break;case jh:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&gn('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function Js(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&gn("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new Ki(1/0,1/0):new Ki(2e3,2e3));var ot=y.position||null,at=y.parts||null,ut=y.padding===void 0?1:y.padding,ct=y.background||null,yt=y.omitTemporary;yt===void 0&&(yt=!0);var It=y.document||document,Kt=y.elementFinished||null,Zt=y.showTemporary;Zt===void 0&&(Zt=!yt),y=y.showGrid,y===void 0&&(y=Zt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ut=="number"?ut=new Gr(ut):ut instanceof Gr||gn("MakeImage padding must be a Margin or a number."),ut.left=Math.max(ut.left,0),ut.right=Math.max(ut.right,0),ut.top=Math.max(ut.top,0),ut.bottom=Math.max(ut.bottom,0),a.ib.Vc(!0),yt=new Tu(null,It,void 0,!0);var ue=yt.context;if(!(E||z||at||ot))return yt.width=a.Aa+Math.ceil(ut.left+ut.right),yt.height=a.ya+Math.ceil(ut.top+ut.bottom),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=It,b.hs=Kt,Za(a,b.context,ut,new Ki(yt.width,yt.height),a.Ca,a.pa,at,ct,Zt,y),b.context):(a.Xm=!1,Za(a,ue,ut,new Ki(yt.width,yt.height),a.Ca,a.pa,at,ct,Zt,y),a.Xm=!0,yt.context);var Re=a.Pp,Fe=a.documentBounds.copy();if(Fe.Fv(a.yb),Zt)for(var We=a.Wa.s,Je=We.length,nn=0;nn<Je;nn++){var xn=We[nn];if(xn.visible&&xn.isTemporary){xn=xn.Pa.s;for(var Vn=xn.length,ir=0;ir<Vn;ir++){var Lr=xn[ir];Lr.isInDocumentBounds&&Lr.isVisible()&&(Lr=Lr.actualBounds,Lr.w()&&Fe.ed(Lr))}}}if(We=new ke(Fe.x,Fe.y),at!==null){for(Je=new ai(0,0,0,0),nn=!0,xn=at.iterator,xn.reset();xn.next();)Vn=xn.value,Vn instanceof Zr&&(ir=Vn.layer,ir!==null&&!ir.visible||ir!==null&&!Zt&&ir.isTemporary||!Vn.isVisible()||(Vn=Vn.actualBounds,Vn.w()&&(nn?(nn=!1,Je.assign(Vn)):Je.ed(Vn))));Fe.width=Je.width,Fe.height=Je.height,We.x=Je.x,We.y=Je.y}return ot!==null&&ot.w()&&(We=ot,z||(z=Re)),Je=ot=0,ut!==null&&(ot=ut.left+ut.right,Je=ut.top+ut.bottom),nn=xn=0,E!==null&&(xn=E.width,nn=E.height,isFinite(xn)&&(xn=Math.max(0,xn-ot)),isFinite(nn)&&(nn=Math.max(0,nn-Je))),E!==null&&z!==null?(z==="NaN"&&(z=Re),E.w()?(E=xn,Fe=nn):isNaN(nn)?(E=xn,Fe=Fe.height*z):(E=Fe.width*z,Fe=nn)):E!==null?E.w()?(z=Math.min(xn/Fe.width,nn/Fe.height),E=xn,Fe=nn):isNaN(nn)?(z=xn/Fe.width,E=xn,Fe=Fe.height*z):(z=nn/Fe.height,E=Fe.width*z,Fe=nn):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/Fe.width,(nt.height-Je)/Fe.height),z>Re?(z=Re,E=Fe.width,Fe=Fe.height):(E=nt.width,Fe=nt.height)):(E=Fe.width*z,Fe=Fe.height*z):(z=Re,E=Fe.width,Fe=Fe.height),ut!==null?(E+=ot,Fe+=Je):ut=new Gr(0),nt!==null&&(Re=nt.width,nt=nt.height,isNaN(Re)&&(Re=2e3),isNaN(nt)&&(nt=2e3),isFinite(Re)&&(E=Math.min(E,Re)),isFinite(nt)&&(Fe=Math.min(Fe,nt))),yt.width=Math.ceil(E),yt.height=Math.ceil(Fe),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=It,b.hs=Kt,Za(a,b.context,ut,new Ki(Math.ceil(E),Math.ceil(Fe)),z,We,at,ct,Zt,y),b.context):(a.Xm=!1,Za(a,ue,ut,new Ki(Math.ceil(E),Math.ceil(Fe)),z,We,at,ct,Zt,y),a.Xm=!0,yt.context)}qe.Object.defineProperties(_n.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Bt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Hu(this,Ee.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Hu(this,Ee.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ee,"resize",this.Ov,!1),this.removeEventListener(Ee,"wheel",this.$j,!0),Oh===this&&(Oh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),xd(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ni(a,"0 <= value <= 1",_n,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),ah(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),ah(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),ah(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),ah(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Ni(a,">= 0",_n,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Ni(a,">= 0",_n,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Ni(a,">= 0",_n,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||KA(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&gn("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=nd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ul(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=bd(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Ee,"pointermove",this.dk,!0),this.addEventListener(Ee,"pointerdown",this.ui,!0),this.addEventListener(Ee,"pointerup",this.fk,!0),this.addEventListener(Ee,"pointerout",this.ek,!0),this.addEventListener(Ee,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ee,"wheel",this.$j,!0),this.addEventListener(Ee,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ee,"pointermove",this.dk,!0),this.removeEventListener(Ee,"pointerdown",this.ui,!0),this.removeEventListener(Ee,"pointerup",this.fk,!0),this.removeEventListener(Ee,"pointerout",this.ek,!0),this.removeEventListener(Ee,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Ee,"wheel",this.$j,!0),this.removeEventListener(Ee,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=ke.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ol(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Dh(this):(this.vb=!0,a=this.scale,BA(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}ke.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=CA(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=CA(this)),a.type!==ci.Grid&&gn("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Pc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Dh(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||gn("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===pc&&ah(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,ah(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,uA(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&uA(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Qa&&ah(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||gn("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||gn("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Ni(a,"> 0",_n,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Ni(a,"> 0",_n,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),ah(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&gn("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)pm(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Gc&&a!==fl&&a!==Iu&&gn("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Ki(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),qe.Object.defineProperties(_n,{licenseKey:{get:function(){return Yd.jc()},set:function(a){Yd.add(a.replace(/\s/g,""))}},version:{get:function(){return Wl}}}),_n.prototype.makeImageData=_n.prototype.Jx,_n.prototype.makeImage=_n.prototype.Wz,_n.prototype.cacheGroupExternalLinks=_n.prototype.Fu,_n.prototype.addRenderer=_n.prototype.bs,_n.prototype.makeSVG=_n.prototype.av,_n.prototype.makeSvg=_n.prototype.Cs,_n.prototype.stopAutoScroll=_n.prototype.ug,_n.prototype.doAutoScroll=_n.prototype.gs,_n.prototype.isUnoccupied=_n.prototype.Yj,_n.prototype.raiseDiagramEvent=_n.prototype.R,_n.prototype.removeDiagramListener=_n.prototype.am,_n.prototype.addDiagramListener=_n.prototype.Bj,_n.prototype.findTreeRoots=_n.prototype.yz,_n.prototype.layoutDiagram=_n.prototype.Uz,_n.prototype.findTopLevelGroups=_n.prototype.qz,_n.prototype.findTopLevelNodesAndLinks=_n.prototype.rz,_n.prototype.ensureBounds=_n.prototype.Va,_n.prototype.findLinksByExample=_n.prototype.ls,_n.prototype.findNodesByExample=_n.prototype.ms,_n.prototype.findLinkForData=_n.prototype.Kc,_n.prototype.findNodeForData=_n.prototype.ii,_n.prototype.findPartForData=_n.prototype.Lc,_n.prototype.findLinkForKey=_n.prototype.findLinkForKey,_n.prototype.findNodeForKey=_n.prototype.Vb,_n.prototype.findPartForKey=_n.prototype.findPartForKey,_n.prototype.rebuildParts=_n.prototype.Wd,_n.prototype.transformViewToDoc=_n.prototype.Ps,_n.prototype.transformRectDocToView=_n.prototype.zA,_n.prototype.transformDocToView=_n.prototype.op,_n.prototype.centerRect=_n.prototype.es,_n.prototype.scrollToRect=_n.prototype.tv,_n.prototype.scroll=_n.prototype.scroll,_n.prototype.highlightCollection=_n.prototype.Jz,_n.prototype.highlight=_n.prototype.Iz,_n.prototype.selectCollection=_n.prototype.rA,_n.prototype.select=_n.prototype.select,_n.prototype.updateAllRelationshipsFromData=_n.prototype.rp,_n.prototype.updateAllTargetBindings=_n.prototype.updateAllTargetBindings,_n.prototype.commit=_n.prototype.commit,_n.prototype.rollbackTransaction=_n.prototype.Kf,_n.prototype.commitTransaction=_n.prototype.eb,_n.prototype.startTransaction=_n.prototype.Ea,_n.prototype.raiseChanged=_n.prototype.g,_n.prototype.raiseChangedEvent=_n.prototype.cb,_n.prototype.removeChangedListener=_n.prototype.ik,_n.prototype.addChangedListener=_n.prototype.Pe,_n.prototype.removeModelChangedListener=_n.prototype.mA,_n.prototype.addModelChangedListener=_n.prototype.Yw,_n.prototype.findLayer=_n.prototype.Qj,_n.prototype.removeLayer=_n.prototype.kA,_n.prototype.addLayerAfter=_n.prototype.Cy,_n.prototype.addLayerBefore=_n.prototype.Ww,_n.prototype.addLayer=_n.prototype.Al,_n.prototype.moveParts=_n.prototype.moveParts,_n.prototype.copyParts=_n.prototype.Kj,_n.prototype.removeParts=_n.prototype.Is,_n.prototype.remove=_n.prototype.remove,_n.prototype.add=_n.prototype.add,_n.prototype.clearDelayedGeometries=_n.prototype.bx,_n.prototype.setProperties=_n.prototype.nm,_n.prototype.attach=_n.prototype.Du,_n.prototype.set=_n.prototype.set,_n.prototype.resetInputOptions=_n.prototype.Sx,_n.prototype.setInputOption=_n.prototype.sA,_n.prototype.getInputOption=_n.prototype.Ql,_n.prototype.resetRenderingHints=_n.prototype.Tx,_n.prototype.setRenderingHint=_n.prototype.Xx,_n.prototype.getRenderingHint=_n.prototype.Gf,_n.prototype.maybeUpdate=_n.prototype.bd,_n.prototype.requestUpdate=_n.prototype.$b,_n.prototype.delayInitialization=_n.prototype.Xy,_n.prototype.isUpdateRequested=_n.prototype.Pz,_n.prototype.invalidateDocumentBounds=_n.prototype.Ya,_n.prototype.findObjectsNear=_n.prototype.og,_n.prototype.findPartsNear=_n.prototype.mz,_n.prototype.findObjectsIn=_n.prototype.Cf,_n.prototype.findPartsIn=_n.prototype.ux,_n.prototype.findObjectsAt=_n.prototype.ji,_n.prototype.findPartsAt=_n.prototype.lz,_n.prototype.findObjectAt=_n.prototype.ic,_n.prototype.findPartAt=_n.prototype.Ol,_n.prototype.focusObject=_n.prototype.zz,_n.prototype.alignDocument=_n.prototype.Jy,_n.prototype.zoomToRect=_n.prototype.BA,_n.prototype.zoomToFit=_n.prototype.zoomToFit,_n.prototype.diagramScroll=_n.prototype.kx,_n.prototype.focus=_n.prototype.focus;var Ba=new gr,Pa=null,vs=Ee.document!==void 0,iu=null,ru="",Qa=new Dn(_n,"None",0),Kl=new Dn(_n,"Uniform",1),Nu=new Dn(_n,"UniformToFill",2),ac=new Dn(_n,"CycleAll",10),Fh=new Dn(_n,"CycleNotDirected",11),lc=new Dn(_n,"CycleNotDirectedFast",12),LA=new Dn(_n,"CycleNotUndirected",13),dA=new Dn(_n,"CycleDestinationTree",14),MA=new Dn(_n,"CycleSourceTree",15),pc=new Dn(_n,"DocumentScroll",1),Fd=new Dn(_n,"InfiniteScroll",2),Gc=new Dn(_n,"TreeParentCollapsed",21),fl=new Dn(_n,"AllParentsCollapsed",22),Iu=new Dn(_n,"AnyParentsCollapsed",23),Yd=new Ci,Wl="2.3.10",jh="image",mc=null,th=!1;function Vl(){if(vs){var a=Ee.document.createElement("canvas"),y=a.getContext("2d"),x=pr("7ca11abfd022028846");y[x]=pr("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Cn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ro.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",En.za],E=1;5>E;E++)y[pr("7ca11abfd7330390")](pr(b[E-1]),10,15*E);for(y[x]=pr("39f046ebb36e4b"),x=1;5>x;x++)y[pr("7ca11abfd7330390")](pr(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Ro.prototype.Cd=Ro.prototype.Eu),mc=a}}_n.className="Diagram",_n.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ee.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof _n?y.H:null},_n.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},_n.useDOM=function(a){vs=a?Ee.document!==void 0:!1},_n.isUsingDOM=function(){return vs},_n.None=Qa,_n.Uniform=Kl,_n.UniformToFill=Nu,_n.CycleAll=ac,_n.CycleNotDirected=Fh,_n.CycleNotDirectedFast=lc,_n.CycleNotUndirected=LA,_n.CycleDestinationTree=dA,_n.CycleSourceTree=MA,_n.DocumentScroll=pc,_n.InfiniteScroll=Fd,_n.TreeParentCollapsed=Gc,_n.AllParentsCollapsed=fl,_n.AnyParentsCollapsed=Iu;function Ld(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Uh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ee[pr("76a715b2f73f148a")][pr("72ba13b5")]||"";if(a.Rc=!0,vs){var b=_n[pr("76a115b6ed251eaf4692")];if(b)for(var E=Yd.iterator;E.next()&&(b=E.value,b=pr(b).split(pr("39e9")),!(6>b.length));){var z=pr(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=pr(Cn[pr("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Ee[pr("74a900bae4370f8b51")][pr("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[pr("73a612b6fb191d")](pr("3aad1ab6e022098b4dc4")),z=pr(b[2]),-1<nt&&(ot=ot[pr("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[pr("76ad18b4f73e")],ot=x[pr("73a612b6fb191d")](pr("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[pr("73a612b6fb191d")](z),0>nt&&z!==pr("7da71ca0ad381e90")&&(nt=y[pr("73a612b6fb191d")](pr("76a715b2ef3e149757"))),0>nt&&(nt=y[pr("73a612b6fb191d")](pr("76a715b2ef3e149757"))),0>nt&&(nt=y[pr("73a612b6fb191d")](pr("2bfa41fdb3784bca12"))),0>nt&&(nt=x[pr("73a612b6fb191d")](pr("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[pr("73a612b6fb191d")](pr("35"))||y[pr("73a612b6fb191d")](pr("35"))===-1),!a.Rc||x[pr("73a612b6fb191d")](pr("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[pr("73a612b6fb191d")](z)),!a.Rc)||(nt=Ee[pr("76a715b2f73f148a")][pr("69ad17a1e03e")],ot=nt[pr("73a612b6fb191d")](pr("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[pr("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Ee.document.createElement("div");for(var at=b[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(ot=at,at=at.substr(at.length-4),b="",b+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],nt[pr("79a417a0f0181a8946")]=b,Ee.document[pr("78a712aa")]){Ee.document[pr("78a712aa")][pr("7bb806b6ed32388c4a875b")](nt),at=Ee.getComputedStyle(nt).getPropertyValue(pr("78a704b7e62456904c9b12701b6532a8"));var ut=Ee.getComputedStyle(nt).getPropertyValue(pr("75b817b0ea2202"));if(Ee.document[pr("78a712aa")][pr("68ad1bbcf533388c4a875b")](nt),at){if(nt=Ee[pr("77a902b0eb1b1e804a8a")],ut==="0."+parseInt(ot,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(pr("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ct in nt)if(b===nt[ct].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ct=x[pr("76ad18b4f73e")],E=x[pr("73a612b6fb191d")](pr("35e7"))+2;E<ct;E++)y+=x[E];x=y[pr("73a612b6fb191d")](pr("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[pr("73a612b6fb191d")](pr("35")))}}}return 0<a.Rc&&a!==a.wy}Ld.className="DiagramHelper";function lh(a){this.j=a===void 0?new ke:a,this.o=new ke}qe.Object.defineProperties(lh.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var sd="DraggingInfo";lh.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function st(){this.reset()}st.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Ki(NaN,NaN).freeze(),this.gridSnapCellSpot=nl,this.gridSnapOrigin=new ke(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function mt(a,y){if(typeof a=="string"||Ee.Element&&a instanceof Element)var x=_n.call(this,a)||this;else x=_n.call(this)||this,y=a;return pt(x),y&&x.nm(y),x}Mn(mt,_n);function pt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=bl,a.layout=new ih}mt.prototype.reset=function(){_n.prototype.reset.call(this),pt(this)},mt.className="Palette";function Bt(a,y){if(typeof a=="string"||Ee.Element&&a instanceof Element)var x=_n.call(this,a)||this;else x=_n.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new Zr;var E=new ko;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Gr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new je,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new ke(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),Se(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Se(b)},x.autoScale=Kl,x.vb=!1,y&&Object.assign(x,y),x}Mn(Bt,_n),Bt.prototype.computePixelRatio=function(){return 1},Bt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Eh(this),this.ql===null){var x=new Tu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Jt(this)}finally{this.ta=a,this.ib=y}}}_n.prototype.redraw.call(this)},Bt.prototype.gc=function(){if(this.Ka===null&&gn("No div specified"),this.ta===null&&gn("No canvas specified"),!(this.ta instanceof Hu)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Eh(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Jt(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function Jt(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=ai.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pc(y,E),ai.free(E),_l(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var nt=0;nt<z;nt++){var ot=y[nt],at=a;if(ot.visible&&ot.opacity!==0){var ut=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ut.layer===ot&&(ot=hu(ot,E),ut.gc(E,at),E.globalAlpha=ot);else{for(var ct=hu(ot,E),yt=at.scale,It=ai.alloc(),Kt=ot.Pa.s,Zt=Kt.length,ue=0;ue<Zt;ue++){var Re=Kt[ue];(b||Re!==ut)&&ot.Oj(E,Re,at,null,yt,It,!1)}ai.free(It),E.globalAlpha=ct}}}}}function Se(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Ki.alloc();E.h(x.width,x.height),b.desiredSize=E,Ki.free(E),a=2/a.scale,b instanceof ko&&(b.strokeWidth=a),y.location=new ke(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Bt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return cs;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Bt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Bt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Se(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},qe.Object.defineProperties(Bt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Bt&&gn("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Se(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Se(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),Bt.className="Overview";function je(){Pn.call(this),this.j=null}Mn(je,Pn),je.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new ke(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new ke(a.x-this.j.x,a.y-this.j.y)),!0)},je.prototype.doActivate=function(){this.j=null,Pn.prototype.doActivate.call(this)},je.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},je.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new ke(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new ke(a.x-this.j.x,a.y-this.j.y)}}},je.className="OverviewDraggingTool";function De(){Zo(this),this.H=Oh,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=cs,this.hb=!0,this.cg=null,this.ob=200}De.prototype.toString=function(){return"CommandHandler"},De.prototype.Xe=function(a){this.H=a},De.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Ss?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},De.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},De.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ie&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},De.prototype.canStopCommand=function(){return!0},De.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},De.prototype.canSelectAll=function(){return this.diagram.allowSelect},De.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Bi,x=a.selection.iterator;x.next();)ng(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},De.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},De.prototype.copySelection=function(){var a=this.diagram,y=new Bi;for(a=a.selection.iterator;a.next();)ng(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},De.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},De.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},De.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},De.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)iu=null,ru="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Ci,x.addAll(z),iu=x,ru=y.model.dataFormat}}y.R("ClipboardChanged",x)},De.prototype.pasteFromClipboard=function(){var a=new Bi,y=iu;if(y===null)return a;var x=this.diagram;if(ru!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,nt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=nt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},De.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);xh(y,z,new ke(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},De.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||iu===null||iu.count===0||ru!==a.model.dataFormat)},De.prototype.undo=function(){this.diagram.undoManager.undo()},De.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},De.prototype.redo=function(){this.diagram.undoManager.redo()},De.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},De.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Qa&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},De.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Qa?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},De.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Qa&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},De.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Qa?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},De.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},De.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},De.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ul(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=cs):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),fo(y)},De.prototype.canZoomToFit=function(){return this.diagram.allowZoom},De.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(at){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Ul(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=an(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=E.pop();0<E.length&&at instanceof hr&&at.isTreeExpanded&&(!(at instanceof To)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Zr&&y.tv(at.actualBounds),at instanceof hr&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof To&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Zr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Ei(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function an(a,y,x){if(y.isVisible())return x;if(y instanceof Fs)an(a,y.adornedPart,x);else if(y instanceof Wi){var b=y.fromNode;b!==null&&an(a,b,x),y=y.toNode,y!==null&&an(a,y,x)}else y instanceof hr&&(b=y.labeledLink,b!==null&&an(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),an(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),an(a,y,x));return x}De.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Zr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},De.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ul(y.animationManager,"Collapse Tree");var x=new Ci;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof hr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},De.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof hr&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof hr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},De.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ul(y.animationManager,"Expand Tree");var x=new Ci;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof hr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},De.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof hr)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof hr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},De.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Ci,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Ci,at=E.iterator;at.next();){var ut=at.value;z=!1;for(var ct=E.iterator;ct.next();)if(ut.Td(ct.value)){z=!0;break}z||ot.add(ut)}if(0<ot.count){var yt=ot.first().containingGroup;if(yt!==null)for(;yt!==null;){E=!1;for(var It=ot.iterator;It.next();)if(!It.value.Td(yt)){E=!0;break}if(E)yt=yt.containingGroup;else break}if(x instanceof To)ou(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Kt=y.copyNodeData(x);kn(Kt)&&(y.xf(Kt),b=a.ii(Kt))}if(b!==null){yt!==null&&this.isValidMember(yt,b)&&(b.containingGroup=yt);for(var Zt=ot.iterator;Zt.next();){var ue=Zt.value;this.isValidMember(b,ue)&&(ue.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},De.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function si(a){var y=cr();for(a=a.iterator;a.next();){var x=a.value;x instanceof Wi||y.push(x)}a=new Bi,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,nt=0;nt<x;nt++)if(E.Td(y[nt])){z=!1;break}z&&a.add(E)}return wr(y),a}De.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Wi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},De.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Ci;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof To&&z.canUngroup()&&b.add(z)}var nt=new Ci;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ut=at.containingGroup,ct=ut!==null&&ut.data!==null?x.wa(ut.data):void 0;nt.addAll(at.memberParts);for(var yt=nt.iterator;yt.next();){var It=yt.value;if(It.isSelected=!0,!(It instanceof Wi)){var Kt=It.data;Kt!==null?x.mp(Kt,ct):It.containingGroup=ut}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},De.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof To))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof To&&y.canUngroup())return!0;return!1},De.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=si(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},De.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ul(y.animationManager,"Collapse SubGraph");var x=new Ci;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof To&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},De.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof To&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof To&&y.isSubGraphExpanded)return!0;return!1},De.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ul(y.animationManager,"Expand SubGraph");var x=new Ci;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof To&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},De.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof To&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof To&&!y.isSubGraphExpanded)return!0;return!1},De.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof sa&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},De.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof sa))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof sa&&x.editable}),a!==null))return!0;return!1},De.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof fn?E=a.ga(Eo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new ke(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,us(x,!1,a)}},De.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},De.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new gr,a===null)return b;for(var z=a.iterator;z.next();)Zu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Wi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},qe.Object.defineProperties(De.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||gn("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),De.className="CommandHandler",gc=function(){return new De};function fn(){Zo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new ke(NaN,NaN).freeze(),this.jd=vl,this.Ab=new Ro,this.wh=new Ro,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Su,this.uc=new ai(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ai(NaN,NaN,NaN,NaN).freeze(),this.dc=new ai(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Es,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Ti,bi,Sr,Dr,Jr,vo,Xo,No,as,Ms;fn.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Br(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},fn.prototype.Vw=function(a){var y=this.Dh;if(yi(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},fn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},fn.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},fn.prototype.copy=function(){return this.clone()},$t=fn.prototype,$t.qb=function(a){a.classType===Wi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:gn("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===fn&&(this.stretch=a)},$t.toString=function(){return or(this.constructor)+"#"+fs(this)},$t.th=function(){this.A!==null&&(this.A.nc=!0)};function Io(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}$t.Xc=function(){if(this.ba===null){var a=new Kf;a.Xi=Wa,a.yj=Wa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},$t.cb=function(a,y,x,b,E,z,nt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,E,z,nt),x===this&&a===Fa&&du(this)&&na(this,ot,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new gr),nt=z.undoManager.transactionLevel===0,a.startCondition===Ca?nt=!0:a.startCondition===Al&&(nt=!1),nt?(z=new Ua,fa(a,z),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Ul(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof ci&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)ot=x[E],ot instanceof ci&&hl(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function na(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=k1(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,ot,x,b)}nt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,nt,x))}}$t.ks=function(a){return this.bindingId===a?this:null},$t.g=function(a,y,x){this.cb(Fa,a,this,y,x)},$t.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Ro);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Cl(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}$t.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?ks(a.x,a.y,0,0,0,b.height)<=y||ks(a.x,a.y,0,b.height,b.width,b.height)<=y||ks(a.x,a.y,b.width,b.height,b.width,0)<=y||ks(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},$t.se=function(){return!0},$t.ca=function(a){var y=ke.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return ke.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),nt=z/2,ot=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(ot.width*b<E&&ot.height*b<E)return a=Hs(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),ke.free(y),a}return E=!1,(this instanceof Fs||this instanceof ko?Hs(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),ke.free(y),E},$t.gh=function(a){var y=this.naturalBounds;return Hs(0,0,y.width,y.height,a.x,a.y)},$t.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ai.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=ke.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),ke.free(E),ai.free(y),b},$t.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=ke.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),ke.free(E),b},$t.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=ke.allocAt(0,0),E=ke.allocAt(0,x.height),z=ke.allocAt(x.width,x.height),nt=ke.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(nt)))ot=!0;else{x=ai.allocAt(0,0,x.width,x.height);var at=ke.allocAt(a.x,a.y);x.ca(y.Cd(at))?ot=!0:(at.h(a.x,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.y),x.ca(y.Cd(at))&&(ot=!0)))),ke.free(at),ai.free(x),!ot&&(En.us(a,b,E)||En.us(a,E,z)||En.us(a,z,nt)||En.us(a,nt,b))&&(ot=!0)}return ke.free(b),ke.free(E),ke.free(z),ke.free(nt),ot},$t.ga=function(a,y){if(y===void 0&&(y=new ke),a instanceof fr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},$t.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe,b=ke.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),bs(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),bs(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),bs(a,b.x,b.y,0,0),ke.free(b),a},$t.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},$t.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},$t.qs=function(a,y){return y===void 0&&(y=new ke),y.assign(a),this.oe.Cd(y),y},$t.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},$t.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ut=-z.m21*nt,ct=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),It=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,En.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ut+yt,a=a*at+y*ct+It,y=x*ot+b*ut+yt,x=x*at+b*ct+It,E.h(0,0),b=this.naturalBounds,x=En.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},fn.prototype.measure=function(a,y,x,b){if(Sh(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var nt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+nt:a,y=isFinite(E.width)?E.width+nt:y):(a=isFinite(E.width)?E.width+nt:a,y=isFinite(E.height)?E.height+nt:y),E=x||0,nt=b||0;var ot=this instanceof ci;switch(uh(this,!0)){case bi:nt=E=0,ot&&(y=a=1/0);break;case Ti:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case Dr:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case Jr:isFinite(y)&&y>b&&(nt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var at=this.minSize;E>ot.width&&at.width<ot.width&&(E=ot.width),nt>ot.height&&at.height<ot.height&&(nt=ot.height),x=Math.max(E,at.width),b=Math.max(nt,at.height),ot.width<x&&(x=Math.min(at.width,x)),ot.height<b&&(b=Math.min(at.height,b)),a=Math.min(ot.width,a),y=Math.min(ot.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||gn("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),kl(this,!1)}},fn.prototype.Wl=function(){},fn.prototype.Dd=function(){return!1},fn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ai.alloc();z.assign(this.Ib),this.Ib.ka(),eh(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Tl(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof sa&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||gn("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Wc(this,!1),ai.free(z)},$t=fn.prototype,$t.eh=function(){};function ku(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=uh(a,!0),x===b&&z===E&&(y=bi),y){case bi:(x>b||z>E)&&(kl(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Ti:kl(a,!0),a.measure(b,E,0,0);break;case Dr:kl(a,!0),a.measure(b,z,0,0);break;case Jr:kl(a,!0),a.measure(x,E,0,0)}}}$t.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Cv(x,!0),this.N(),su(a,y)||(x.oh(),this.Pn(x)))},$t.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof hr&&$y(a,this))},$t.gc=function(a,y){if(!gl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof ci&&Tl(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ut=this.areaBackground,ct=this.Ma;ut===null&&ct===null||a.yc(),ut!==null&&(xa(this,a,ut,!0,!0,at,ot),ut instanceof js&&ut.type===be?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ct!==null&&(xa(this,a,ct,!0,!1,at,ot),ct instanceof js&&ct.type===be?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ct)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,ot=this.panel,this.l&4096&&Nl(this),ut=this.part,at=!1;var yt=0;ut&&y.Gf("drawShadows")&&(at=ut.isShadowed)&&(ct=ut.shadowOffset,yt=Math.max(ct.y,ct.x)*y.scale*y.Mb),ct=this.Dd();var It;if(!(It=y.$i||!ct)){var Kt=this.naturalBounds;It=this.wh;var Zt=It.m11,ue=It.m21,Re=It.dx,Fe=It.m12,We=It.m22,Je=It.dy,nn,xn=nn=0;It=nn*Zt+xn*ue+Re;var Vn=nn*Fe+xn*We+Je;nn=Kt.width+yt,xn=0;var ir=nn*Zt+xn*ue+Re;nn=nn*Fe+xn*We+Je,xn=Math.min(It,ir);var Lr=Math.min(Vn,nn),yr=Math.max(It+0,ir)-xn,Gi=Math.max(Vn+0,nn)-Lr;It=xn,Vn=Lr,nn=Kt.width+yt,xn=Kt.height+yt,ir=nn*Zt+xn*ue+Re,nn=nn*Fe+xn*We+Je,xn=Math.min(It,ir),Lr=Math.min(Vn,nn),yr=Math.max(It+yr,ir)-xn,Gi=Math.max(Vn+Gi,nn)-Lr,It=xn,Vn=Lr,nn=0,xn=Kt.height+yt,ir=nn*Zt+xn*ue+Re,nn=nn*Fe+xn*We+Je,xn=Math.min(It,ir),Lr=Math.min(Vn,nn),yr=Math.max(It+yr,ir)-xn,Gi=Math.max(Vn+Gi,nn)-Lr,It=xn,Vn=Lr,yt=y.viewportBounds,Kt=yt.x,Zt=yt.y,It=!(It>yt.width+Kt||Kt>yr+It||Vn>yt.height+Zt||Zt>Gi+Vn)}if(It){if(It=(this.l&256)!==0,a.clipInsteadOfFill&&(It=!1),this instanceof sa&&(a.font=this.font),It){if(Vn=ot.se()?ot.naturalBounds:ot.actualBounds,yr=Math.max(nt.x,Vn.x),Gi=Math.max(nt.y,Vn.y),yt=Math.min(nt.right,Vn.right)-yr,Kt=Math.min(nt.bottom,Vn.bottom)-Gi,Zt=this.tb,Zt!==null&&(yr=Zt.x,Gi=Zt.y,yt=Zt.width,Kt=Zt.height),yr>nt.width+nt.x||nt.x>Vn.width+Vn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(yr,Gi,yt,Kt),a.clip()}if(ct){if(!ut.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Vn=ut.shadowOffset,a.Ev(Vn.x*y.scale*this.scale*y.Mb,Vn.y*y.scale*this.scale*y.Mb,ut.shadowBlur),kd(a),a.shadowColor=ut.shadowColor)}at&&this.shadowVisible===!0?kd(a):at&&this.shadowVisible===!1&&ld(a),ut=this.naturalBounds,this.areaBackground!==null&&(a.yc(),yu(this,a,ut,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&ul(this,ot)&&this.shadowVisible===null&&ld(a),this.Ma!==null&&(a.yc(),La(this,a,ut,nt)),at&&(this.Ma!==null||this.areaBackground!==null||ul(this,ot))?(wu(this,!0),this.shadowVisible===null&&ld(a)):wu(this,!1),this.hh(a,y),at&&this.l&512&&kd(a),ct&&at&&ld(a),It&&(a.restore(),a.Vc(this instanceof ci)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function ul(a,y){return y===null?!1:(Tl(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ci.Auto||y.type===ci.Spot)&&y.Pb()!==a)}$t.Dv=function(){};function yu(a,y,x,b){xa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof js&&a.areaBackground.type===be?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function La(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,ot=x.width+E,at=x.height+E;xa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof js&&a.Ma.type===be?(y.beginPath(),y.rect(z-E/2,nt-E/2,ot,at),y.ng(a.Ma)):y.fillRect(z-E/2,nt-E/2,ot,at)}function wa(a,y,x){for(var b=y.O.s,E=b.length,z=-1,nt=0;nt<E;nt++)if(b[nt]===a){z=nt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===ci.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function gl(a,y,x){if(!(y instanceof nh))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&wa(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),kd(y),y.shadowColor=a.shadowColor}a instanceof sa&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof ci;var ot=a instanceof ci?Tl(a):!1;a.l&4096&&Nl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Ec(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ec(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Ec(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ut=nt.copy().Vj();y.rb.ha=[ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy],yu(a,y,E,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),La(a,y,E,at),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],La(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&kd(y),ot&&a.shadowVisible===!0?kd(y):ot&&a.shadowVisible===!1&&ld(y),E=a.panel,ot&&ul(a,E)&&a.shadowVisible===null&&ld(y),y.Il&&(ut=x.computePixelRatio(),ut="drop-shadow("+y.shadowOffsetX/ut+"px "+y.shadowOffsetY/ut+"px "+y.shadowBlur/ut/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ut),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ut)),ot&&(a.Ma!==null||a.areaBackground!==null||ul(a,E))?(wu(a,!0),a.shadowVisible===null&&ld(y)):wu(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=z?a.svg:y.yd,ut=a.svg,!z&&ut!==null&&ot!==ut&&ut.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),pl(y,ut),!0):(a.svg=ot,nt!==null&&ot===null&&(Id(y),y.nh.pop()),ot===null||(a.$o(y,b,at,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&kd(y),a.Dd()&&ld(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&wa(a,b,ot),nt!==null&&nt(a,ot)),!0)}$t.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var nt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,nt=z.width,x=z.height),z=b.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+ba++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof ci&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),pl(a,b)};function pl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function bo(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=gs(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}$t.hh=function(){},$t.lv=function(){this.Uc=!0},$t.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof ci?Tl(this):!1;if(!(this instanceof ci&&E))if(this instanceof cc){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Sp(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",zg(a)):y.setAttributeNS(null,"transform",zg(a))}else if(!x||this instanceof ci)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof ko){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],yu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&Td(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Td(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof ci))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),La(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Td(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&Td(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},$t.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function xa(a,y,x,b,E,z,nt){if(x!==null){var ot=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===zt)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ut=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ut,at+=ut),(z=y instanceof XA)&&x.xe&&(x.type===rn||x.yk===ot&&x.ft===at))var ct=x.xe;else{var yt=0,It=0,Kt=0,Zt=0,ue=0,Re=0;if(Re=ue=0,E?(ue=nt.x,Re=nt.y):b||(ue-=ut/2,Re-=ut/2),yt=x.start.x*ot+x.start.offsetX,It=x.start.y*at+x.start.offsetY,Kt=x.end.x*ot+x.end.offsetX,Zt=x.end.y*at+x.end.offsetY,yt+=ue,Kt+=ue,It+=Re,Zt+=Re,x.type===de)ct=y.createLinearGradient(yt,It,Kt,Zt);else if(x.type===be)Re=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(ue=0,Re=Math.max(ot,at)/2):ue=x.startRadius,ct=y.createRadialGradient(yt,It,ue,Kt,Zt,Re);else if(x.type===rn)try{ct=y.createPattern(x.pattern,"repeat")}catch(We){ct=null}if(x.type!==rn&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ct.addColorStop(E.key,E.value);if(z&&(x.xe=ct,ct!==null&&(x.yk=ot,x.ft=at),ct===null&&x.type===rn&&x.yk!==-1)){x.yk=-1;var Fe=a.diagram;Fe!==null&&x.yk===-1&&Ei(function(){Fe.redraw()},600)}}b?y.fillStyle=ct:y.strokeStyle=ct}}}$t.rg=function(a){if(a instanceof ci)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},$t.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},$t.If=function(){for(var a=this instanceof ci?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Nl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){uc(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}uc(a,!1),hh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,hh(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,hh(a,!1)))}$t.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ke.alloc();z.yi(y,x,b,E,Eo),a.rotate(this.Kb,z.x,z.y),ke.free(z)}},$t.v=function(a){if(!Sh(this)){a===void 0&&(a=!1),kl(this,!0),Wc(this,!0);var y=this.panel;y===null||a||y.v()}},$t.Uj=function(){Sh(this)||(kl(this,!0),Wc(this,!0))};function Il(a){if(!eh(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof hr&&a.Bd(),y.$b())),Wc(a,!0)}}$t.Uk=function(){!(this.l&2048)&&(uc(this,!0),hh(this,!0))},$t.Wu=function(){hh(this,!0)},$t.N=function(){var a=this.part;a!==null&&a.N()};function uh(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===ci.Table?Ta(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===ci.Auto&&b.Pb()===a?_s(a,Ti,y):x===vo?b!==null?b.type===ci.Spot&&b.Pb()===a?_s(a,Ti,y):(x=b.defaultStretch,x===vo?_s(a,bi,y):_s(a,x,y)):_s(a,bi,y):_s(a,x,y)}function Ta(a,y,x,b){var E=a.stretch;if(E!==vo)return _s(a,E,b);var z=E=null;switch(y.stretch){case Jr:z=!0;break;case Ti:z=!0}switch(x.stretch){case Dr:E=!0;break;case Ti:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Dr||y===Ti),z===null&&(z=y===Jr||y===Ti),E===!0&&z===!0?_s(a,Ti,b):E===!0?_s(a,Dr,b):z===!0?_s(a,Jr,b):_s(a,bi,b)}function _s(a,y,x){if(x)return y;if(y===bi||(x=a.desiredSize,x.w()))return bi;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Dr)return bi;if(y===Ti)return Jr}else{if(y===Jr)return bi;if(y===Ti)return Dr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Jr)return bi;if(y===Ti)return Dr}else{if(y===Dr)return bi;if(y===Ti)return Jr}return y}function wu(a,y){a.l=y?a.l|512:a.l&-513}function du(a){return(a.l&1024)!==0}function ad(a,y){a.l=y?a.l|1024:a.l&-1025}function uc(a,y){a.l=y?a.l|2048:a.l&-2049}function hh(a,y){a.l=y?a.l|4096:a.l&-4097}function Sh(a){return(a.l&8192)!==0}function kl(a,y){a.l=y?a.l|8192:a.l&-8193}function eh(a){return(a.l&16384)!==0}function Wc(a,y){a.l=y?a.l|16384:a.l&-16385}$t.Gj=function(){this.svg=null},$t.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},$t.Av=function(){},$t.zv=function(a){return this.pa=a,Il(this),!0},$t.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},$t.kq=function(){return 0};function Jd(a){var y=a.part;if(y instanceof hr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||$y(y,a)}}function zf(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ci?a instanceof hr?a.Bd():a.qm(a,function(x){Jd(x)}):Jd(a))}$t.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ql(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&TA(a)&&gn("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Ci),this.localBindings.add(E),this},$t.set=function(a){return Object.assign(this,a),this},$t.Du=function(a){return Sg(this,a),this},$t.apply=function(a){return a(this),this},$t.nm=function(a){return fh(this,a),this},$t.pz=function(){return this.ih()},$t.ih=function(){for(var a=this instanceof ci?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},$t.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new gr),this.animationTriggers.add(a.propertyName,a),this};function Lh(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=wf.I(a);typeof z=="function"?(x=Br(arguments),b=z(x),kn(b)||gn('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ee.go[a]}if(b===null&&(E!=null&&E.constructor||gn("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof _n&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(xd(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?gn("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Sg(b,z);return b}function Sg(a,y){if(typeof y=="string")if(a instanceof sa)a.text=y;else if(a instanceof ko)a.figure=y;else if(a instanceof cc)a.source=y;else if(a instanceof ci)y=ch.I(y),y!==null&&(a.type=y);else if(a instanceof js){var x=Tr(js,y);x!==null?a.type=x:gn("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Vi?(y=Tr(Vi,y),y!==null&&(a.type=y)):a instanceof ys&&(y=Tr(ys,y),y!==null&&(a.type=y));else if(y instanceof fn)a instanceof ci||gn("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Zl){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Zl?Xf(b,y):gn("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Dn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof yn)a.type=y;else if(y instanceof ql)a instanceof fn||a instanceof Zl?a.bind(y):gn("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof wh)a instanceof fn?a.Jv(y):gn("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof qa)a instanceof Vi&&a.type===Vi.o?a.figures.add(y):gn("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ys)a instanceof qa?a.segments.add(y):gn("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ka)a instanceof _n||a instanceof To?a.layout=y:gn("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)Sg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof js){x=new Kr;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);fh(a,x)}else if(a instanceof Zl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&gn("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&gn("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Kr;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);fh(a,E)}else fh(a,y);else gn('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Md(a,y){wf.add(a,y)}function yf(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}qe.Object.defineProperties(fn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new GA),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new GA),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new GA),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Io(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Io(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Xh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Xh&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ts},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new NA),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:vo},set:function(a){var y=this.stretch;y!==a&&(Io(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Io(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Ni(a,"0 <= value <= 1",fn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),zf(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Ht(a,"GraphObject.areaBackground"),a instanceof js&&a.freeze(),Io(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ht(a,"GraphObject.background"),a instanceof js&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof Zr)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new ke(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&gn("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,zf(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof ko&&this.qc(),this.g("desiredSize",b,a),du(this)&&(a=this.part,a!==null&&(na(this,a,"width"),na(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Ki(a,this.jd.height).freeze(),this.v(),this instanceof ko&&this.qc(),this.g("desiredSize",y,a),du(this)&&(a=this.part,a!==null&&na(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Ki(this.jd.width,a).freeze(),this.v(),this instanceof ko&&this.qc(),this.g("desiredSize",y,a),du(this)&&(a=this.part,a!==null&&na(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ts},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Io(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Zs},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Io(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Nl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Nl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Io(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:bi},set:function(a){this.reshapingBehavior!==a&&(Io(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&gn("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Il(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Ni(a,">= 0",fn,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Ni(a,">= 1",fn,"columnSpan"),Io(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Ni(a,">= 0",fn,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Ni(a,">= 1",fn,"rowSpan"),Io(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Io(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof hr||gn("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Ev(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,qy(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Wa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Jd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ni(a,">= 0",fn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Jd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Jd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Ni(a,">= 0",fn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Wa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Jd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ni(a,">= 0",fn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Jd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Jd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Ni(a,">= 0",fn,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Io(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Io(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Io(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Io(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Io(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Io(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Io(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Io(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Io(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Io(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Io(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Io(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Io(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Io(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Io(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Io(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Io(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Io(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),fn.prototype.trigger=fn.prototype.Jv,fn.prototype.findBindingPanel=fn.prototype.ih,fn.prototype.findTemplateBinder=fn.prototype.pz,fn.prototype.setProperties=fn.prototype.nm,fn.prototype.apply=fn.prototype.apply,fn.prototype.attach=fn.prototype.Du,fn.prototype.set=fn.prototype.set,fn.prototype.isEnabledObject=fn.prototype.If,fn.prototype.isVisibleObject=fn.prototype.Ed,fn.prototype.isContainedBy=fn.prototype.rg,fn.prototype.getNearestIntersectionPoint=fn.prototype.rs,fn.prototype.getLocalPoint=fn.prototype.qs,fn.prototype.getDocumentScale=fn.prototype.Df,fn.prototype.getDocumentAngle=fn.prototype.li,fn.prototype.getDocumentBounds=fn.prototype.mi,fn.prototype.getDocumentPoint=fn.prototype.ga,fn.prototype.intersectsRect=fn.prototype.Yc,fn.prototype.containedInRect=fn.prototype.fh,fn.prototype.containsRect=fn.prototype.Re,fn.prototype.containsPoint=fn.prototype.ca,fn.prototype.raiseChanged=fn.prototype.g,fn.prototype.raiseChangedEvent=fn.prototype.cb,fn.prototype.addCopyProperty=fn.prototype.Vw;var wf=null;fn.className="GraphObject",wf=new gr,Md("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Lh(ci,ci.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof ci){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Lh(ko,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new fr(0,0,2.76142374915397,2.761423749153969),spot2:new fr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof ci&&(x=b.fb("ButtonBorder"),x instanceof ko)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof ci&&(x=b.fb("ButtonBorder"),x instanceof ko&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof ci&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ko){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=nt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof ci&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ko){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof ci&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof ko){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof ci&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof ko))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),Md("TreeExpanderButton",function(){var a=Lh("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Lh(ko,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:qs},new ql("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ql("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Fs&&(x=x.adornedPart),x instanceof hr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Md("SubGraphExpanderButton",function(){var a=Lh("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Lh(ko,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:qs},new ql("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Fs&&(x=x.adornedPart),x instanceof To){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Md("ToolTip",function(){return Lh(Fs,ci.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ke(0,3),shadowBlur:5},Lh(ko,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new fr(0,0,4,6),spot2:new fr(1,1,-4,-4)}))}),Md("ContextMenu",function(){return Lh(Fs,ci.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ke(0,3),shadowBlur:5},new ql("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Md("ContextMenuButton",function(){var a=Lh("Button");a.stretch=Dr;var y=a.fb("ButtonBorder");return y instanceof ko&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new fr(0,0,2,3),y.spot2=new fr(1,1,-2,-2)),a}),Md("PanelExpanderButton",function(a){var y=yf(a,"COLLAPSIBLE"),x=Lh("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Lh(ko,{name:"ButtonIcon",strokeWidth:2},new ql("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof ko&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Md("CheckBoxButton",function(a){var y=yf(a);return a=Lh("Button",{desiredSize:new Ki(14,14)},Lh(ko,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Ti,geometryStretch:Sr,visible:!1},y!==""?new ql("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof ci){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Md("CheckBox",function(a){a=yf(a),a=Lh("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Gr(0,1,0,0)});var y=Lh(ci,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Gr(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),fn.None=bi=new Dn(fn,"None",0),fn.Default=vo=new Dn(fn,"Default",0),fn.Vertical=Jr=new Dn(fn,"Vertical",4),fn.Horizontal=Dr=new Dn(fn,"Horizontal",5),fn.Fill=Ti=new Dn(fn,"Fill",3),fn.Uniform=Sr=new Dn(fn,"Uniform",1),fn.UniformToFill=Xo=new Dn(fn,"UniformToFill",2),fn.FlipVertical=No=new Dn(fn,"FlipVertical",1),fn.FlipHorizontal=as=new Dn(fn,"FlipHorizontal",2),fn.FlipBoth=Ms=new Dn(fn,"FlipBoth",3),fn.make=Lh,fn.getBuilders=function(){var a=new gr,y;for(y in wf)if(y!==y.toLowerCase()){var x=wf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},fn.defineBuilder=Md,fn.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=wf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof fn))return y&&b.set(y),b;gn('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},fn.takeBuilderArgument=yf;function GA(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Ts,this.o=Zs,this.hg=vo,this.ob=this.Bi=1,this.Pf=bi,this.Pc=this.Ci=this.gd=null,this.Oc="category"}GA.prototype.copy=function(){var a=new GA;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function NA(){this.u=-1/0,this.o=0,this.F=ts,this.rr=Xh,this.j=this.V="None"}NA.prototype.copy=function(){var a=new NA;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},NA.className="LinkElementSettings";function Kf(){this.yj=this.Xi=Es,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Kf.prototype.copy=function(){var a=new Kf;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Kf.className="LinkSettings";function WA(){this.ha=[1,0,0,1,0,0]}WA.prototype.copy=function(){var a=new WA;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},WA.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},WA.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},WA.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=nt,this.translate(-y,-x)}},WA.className="STransform";function Nd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Nd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Nd.className="SGradient";function Hu(a,y,x){this.ownerDocument=a=y===void 0?Ee.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new nh(this,x)}Hu.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},Hu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),kn(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},Hu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Hu.prototype.focus=function(){this.Oa.focus()},Hu.prototype.mx=function(){this.ownerDocument=null},qe.Object.defineProperties(Hu.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Hu.className="SVGSurface";function nh(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new WA,this.j=Id(this),this.Nj=Id(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ba++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Gf(a,y,x,b,E,z,nt){a.Nj===void 0?Ec(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}$t=nh.prototype,$t.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ut=at-1e-6,ct=x*Math.cos(b),yt=x*Math.sin(b),It=a+ct,Kt=y+yt,Zt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-It)||1e-6<Math.abs(ot-Kt))&&this.path.push(["L",It,+Kt]),0>b&&(b=b%at+at),b>ut?(this.path.push(["A",x,x,0,1,Zt,a-ct,y-yt]),this.path.push(["A",x,x,0,1,Zt,It,Kt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Zt,a+x*Math.cos(E),y+x*Math.sin(E)])},$t.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},$t.Se=function(a){this.addPath(this.path,this.rb,a||0)},$t.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},$t.clearRect=function(){},$t.clip=function(){this.Yl.clipPath=!0},$t.closePath=function(){this.path.push(["z"])},$t.createLinearGradient=function(a,y,x,b){var E=new Nd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},$t.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+ba++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(jh,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},$t.createRadialGradient=function(a,y,x,b,E,z){var nt=new Nd("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Sp(a,y,x,b,E,z,nt,ot,at){b=ot/b,E=at/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}$t.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ut="";a instanceof HTMLCanvasElement&&(ut=a.toDataURL()),a instanceof HTMLImageElement&&(ut=a.getAttribute("src"));var ct=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=ct,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Sp(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:ct||b,height:a||E,href:ut},En.$(b,ot)&&En.$(E,at)?ut.toLowerCase().indexOf(".svg")===-1&&ut.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ct||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),VA(this,jh,z,this.rb),this.addElement(jh,z)},$t.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ZA(this,this.Yl)},$t.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},$t.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},VA(this,"fill",a,this.rb),this.addElement("rect",a)},$t.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},VA(this,"fill",a,this.rb),ZA(this,a),this.svg.prepend(this.Ud("rect",a))},$t.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},VA(this,"fill",y,this.rb),this.addElement("text",y,a[0])},$t.lineTo=function(a,y){this.path.push(["L",a,y])},$t.moveTo=function(a,y){this.path.push(["M",a,y])},$t.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},$t.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},$t.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},$t.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},$t.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Ec(this,a,y,x,b,E,z)};function zg(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}$t.scale=function(a,y){this.rb.scale(a,y)},$t.translate=function(a,y){this.rb.translate(a,y)},$t.transform=function(){},$t.yc=function(){},$t.stroke=function(){Cp(this,this.Yl)},$t.jk=function(){this.clipInsteadOfFill||this.stroke()},$t.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},$t.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function VA(a,y,x,b){y==="fill"?ZA(a,x):y==="stroke"&&Cp(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ZA(a,y){a.fillStyle instanceof Nd?y.fill=bc(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Wf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Nd?y.setAttributeNS(null,"fill",bc(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function Cp(a,y){if(a.strokeStyle instanceof Nd)y.stroke=bc(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function bc(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+ba++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],nt=0;nt<y;nt++){var ot=E[nt],at=ot.color;ot={offset:ot.offset,"stop-color":at},/^rgba\(/.test(at)&&(at=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(at),ot["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",ot["stop-opacity"]=at[4]),z.push(ot)}for(z.sort(function(ut,ct){return ut.offset>ct.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}$t.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Br(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,VA(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var at in a)at!=="transform"&&ot[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function Ec(a,y,x,b,E,z,nt){var ot=new WA;ot.ha=[y,x,b,E,z,nt],y={},VA(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function Id(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}$t.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function ld(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function kd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}$t.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},$t.fs=function(){this.Ct=!1},$t.Vc=function(){},$t.Wx=function(){},nh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},nh.prototype.getImageData=function(){return null},nh.prototype.measureText=function(){return null};function Td(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}nh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},nh.className="SVGContext",_n.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Hu(this,Ee.document));var y=new Hu(this,Ee.document,!0);a===void 0&&(a=new Kr);var x=this;return ms(this,function(b,E){return b=Js(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},_n.prototype.makeSvg=_n.prototype.Cs,_n.prototype.av=function(a){return this.Cs(a)},_n.prototype.makeSVG=_n.prototype.av;function Tu(a,y,x,b){this.ownerDocument=y=y===void 0?Ee.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new XA(y,x,b),y.H=a}Tu.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Tu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Tu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Tu.prototype.focus=function(){this.Oa.focus()},Tu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},qe.Object.defineProperties(Tu.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Tu.className="CanvasSurface";function XA(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&gn("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Ro,this.isTemporary=!!x}$t=XA.prototype,$t.Wx=function(a){this.Z.imageSmoothingEnabled=a},$t.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},$t.beginPath=function(){this.Z.beginPath()},$t.Se=function(){},$t.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},$t.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},$t.clip=function(){this.Z.clip()},$t.closePath=function(){this.Z.closePath()},$t.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},$t.createPattern=function(a,y){return this.Z.createPattern(a,y)},$t.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},$t.drawImage=function(a,y,x,b,E,z,nt,ot,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,nt,ot,at)},$t.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},$t.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},$t.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},$t.fillText=function(a,y,x){this.Z.fillText(a,y,x)},$t.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},$t.lineTo=function(a,y){this.Z.lineTo(a,y)},$t.measureText=function(a){return this.Z.measureText(a)},$t.moveTo=function(a,y){this.Z.moveTo(a,y)},$t.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},$t.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},$t.restore=function(){this.Z.restore()},$t.save=function(){this.yc(),this.Z.save()},XA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},$t=XA.prototype,$t.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},$t.scale=function(a,y){this.El.scale(a,y)},$t.translate=function(a,y){this.El.translate(a,y)},$t.stroke=function(){this.Z.stroke()},$t.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var nt=this.El,ot=nt.m11*a+nt.m21*y;a=nt.m12*a+nt.m22*y,y=nt.m11*x+nt.m21*b,x=nt.m12*x+nt.m22*b,nt.dx=nt.m11*E+nt.m21*z+nt.dx,nt.dy=nt.m12*E+nt.m22*z+nt.dy,nt.m11=ot,nt.m12=a,nt.m21=y,nt.m22=x}},$t.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},$t.ng=function(a,y){if(a instanceof js&&a.type===be){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},$t.jk=function(){this.Hm||this.stroke()},$t.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},$t.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},$t.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(lm),a.lineDashOffset=0)},$t.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},$t.Hs=function(){},qe.Object.defineProperties(XA.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var lm=Object.freeze([]);XA.className="CanvasSurfaceContext";function xf(){this.F=this.o=this.u=this.j=0}xf.className="ColorNumbers";function js(a,y){St||(Rt(),St=!0),Zo(this),this._isFrozen=!1,a===void 0?(this.na=zt,this.xk="black"):typeof a=="string"?(this.na=zt,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===de?(this.Qd=bl,this.Lk=lu):this.Lk=a===be?this.Qd=Eo:this.Qd=Wa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}js.prototype.copy=function(){var a=new js;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},$t=js.prototype,$t.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},$t.ka=function(){return Object.isFrozen(this)&&gn("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},$t.qb=function(a){a.classType===js&&(this.type=a)},$t.toString=function(){var a="Brush(";if(this.type===zt)a+=this.color;else if(a=this.type===de?a+"Linear ":this.type===be?a+"Radial ":this.type===rn?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},$t.addColorStop=function(a,y){return this._isFrozen&&di(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Ni(a,"0 <= loc <= 1",js,"addColorStop:loc"),this.we===null&&(this.we=new gr),this.we.add(a,y),this.na===zt&&(this.type=de),this.xe=null,this},$t.Vz=function(a,y){if(this._isFrozen&&di(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?hn:y,this.type===zt)Fc(this.color),this.color=kA(a,y);else if((this.type===de||this.type===be)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Fc(x.value),this.addColorStop(x.key,kA(a,y));return this};function Kg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?hn:x,Fc(a),kA(y,x)}$t.Wy=function(a,y){if(this._isFrozen&&di(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?hn:y,this.type===zt)Fc(this.color),this.color=kA(-a,y);else if((this.type===de||this.type===be)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Fc(x.value),this.addColorStop(x.key,kA(-a,y));return this};function Gg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?hn:x,Fc(a),kA(-y,x)}function Wg(a,y,x){Fc(a),a=jn.j;var b=jn.u,E=jn.o,z=jn.F;return Fc(y),x===void 0&&(x=.5),"rgba("+Math.round((jn.j-a)*x+a)+", "+Math.round((jn.u-b)*x+b)+", "+Math.round((jn.o-E)*x+E)+", "+Math.round((jn.F-z)*x+z)+")"}$t.Gx=function(){if(this.type===zt)return IA(this.color);if((this.type===de||this.type===be)&&this.colorStops!==null){var a=this.colorStops;if(this.type===be)return IA(a.first().value);if(a.get(.5)!==null)return IA(a.get(.5));if(a.count===2)return a=a.Fa(),IA(Wg(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=nt,E=ot):z>=E&&ot<z&&(b=nt,z=ot)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,IA(Wg(a.get(x),a.get(b),1-z/E))}return!1};function IA(a){return a?a instanceof js?a.Gx():(Fc(a),128>(299*jn.j+587*jn.u+114*jn.o)/1e3):!1}function kA(a,y){switch(y){case hn:y=100*Cg(jn.j);var x=100*Cg(jn.u),b=100*Cg(jn.o);return zi.j=.4124564*y+.3575761*x+.1804375*b,zi.u=.2126729*y+.7151522*x+.072175*b,zi.o=.0193339*y+.119192*x+.9503041*b,zi.F=jn.F,y=Dt(zi.j/Fn[0]),x=Dt(zi.u/Fn[1]),b=Dt(zi.o/Fn[2]),lr.j=116*x-16,lr.u=500*(y-x),lr.o=200*(x-b),lr.F=zi.F,lr.j=Math.min(100,Math.max(0,lr.j+100*a)),a=(lr.j+16)/116,y=a-lr.o/200,zi.j=Fn[0]*kt(lr.u/500+a),zi.u=Fn[1]*(lr.j>$e*Be?Math.pow(a,3):lr.j/$e),zi.o=Fn[2]*kt(y),zi.F=lr.F,a=-.969266*zi.j+1.8760108*zi.u+.041556*zi.o,y=.0556434*zi.j+-.2040259*zi.u+1.0572252*zi.o,jn.j=255*Vg((3.2404542*zi.j+-1.5371385*zi.u+-.4985314*zi.o)/100),jn.u=255*Vg(a/100),jn.o=255*Vg(y/100),jn.F=zi.F,jn.j=Math.round(jn.j),255<jn.j?jn.j=255:0>jn.j&&(jn.j=0),jn.u=Math.round(jn.u),255<jn.u?jn.u=255:0>jn.u&&(jn.u=0),jn.o=Math.round(jn.o),255<jn.o?jn.o=255:0>jn.o&&(jn.o=0),"rgba("+jn.j+", "+jn.u+", "+jn.o+", "+jn.F+")";case cn:return Vf(),Ri.o=Math.min(100,Math.max(0,Ri.o+100*a)),"hsla("+Ri.j+", "+Ri.u+"%, "+Ri.o+"%, "+Ri.F+")";default:gn("Unknown color space: "+y)}}function Fc(a){St||(Rt(),St=!0);var y=ii;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,jn.j=a[0],jn.u=a[1],jn.o=a[2],jn.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,jn.j=0,jn.u=0,jn.o=0,jn.F=1)}}function Vf(){var a=jn.j/255,y=jn.u/255,x=jn.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/z%6;break;case y:nt=(x-a)/z+2;break;case x:nt=(a-y)/z+4}nt*=60,0>nt&&(nt+=360),a=z/(1-Math.abs(2*E-1))}Ri.j=Math.round(nt),Ri.u=Math.round(100*a),Ri.o=Math.round(100*E),Ri.F=jn.F}function Cg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Vg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Dt(a){return a>Be?Math.pow(a,1/3):($e*a+16)/116}function kt(a){var y=a*a*a;return y>Be?y:(116*a-16)/$e}function Ht(a,y){typeof a!="string"&&(a instanceof js||gn("Value for "+y+" must be a color string or a Brush, not "+a))}function Rt(){ii=vs?new Tu(null,void 0,{willReadFrequently:!0}).context:null}qe.Object.defineProperties(js.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&di(this,a),this.na=a,this.start.Mc()&&(a===de?this.start=bl:a===be&&(this.start=Eo)),this.end.Mc()&&(a===de?this.end=lu:a===be&&(this.end=Eo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&di(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&di(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&di(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&di(this,a),0>a&&Ni(a,">= zero",js,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&di(this,a),0>a&&Ni(a,">= zero",js,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&di(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&di(this,a),this.cr=a,this.xe=null}}}),js.prototype.isDark=js.prototype.Gx,js.prototype.darkenBy=js.prototype.Wy,js.prototype.lightenBy=js.prototype.Vz,js.prototype.addColorStop=js.prototype.addColorStop;var Be=216/24389,$e=24389/27,Fn=[95.047,100,108.883],ii=null,jn=new xf,Ri=new xf,zi=new xf,lr=new xf,St=!1;js.className="Brush";var zt;js.Solid=zt=new Dn(js,"Solid",0);var de;js.Linear=de=new Dn(js,"Linear",1);var be;js.Radial=be=new Dn(js,"Radial",2);var rn;js.Pattern=rn=new Dn(js,"Pattern",4);var hn;js.Lab=hn=new Dn(js,"Lab",5);var cn;js.HSL=cn=new Dn(js,"HSL",6),js.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},js.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;St||(Rt(),St=!0);var y=ii;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},js.lighten=function(a){return Kg(a)},js.lightenBy=Kg,js.darken=function(a){return Gg(a)},js.darkenBy=Gg,js.mix=Wg,js.isDark=IA;function yn(){this.xa="Base"}yn.prototype.measure=function(){},yn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},yn.prototype.arrange=function(){},yn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},yn.prototype.iA=function(a){a.Uj()},yn.prototype.gc=function(){},qe.Object.defineProperties(yn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ci}}}),yn.prototype.remeasureObject=yn.prototype.iA,yn.prototype.arrangeElement=yn.prototype.Ly,yn.prototype.measureElement=yn.prototype.Yz,yn.className="PanelLayout";function In(){this.xa="Base"}Mn(In,yn),In.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=Ra(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===a){var ct=ut.margin,yt=ct.right+ct.left;ct=ct.top+ct.bottom,ut.measure(y,x,z,nt);var It=ut.measuredBounds;yt=Math.max(It.width+yt,0),ct=Math.max(It.height+ct,0),It=ut.position.x;var Kt=ut.position.y;isFinite(It)||(It=0),isFinite(Kt)||(Kt=0),ut instanceof ko&&ut.isGeometryPositioned&&(ut=ut.strokeWidth/2,It-=ut,Kt-=ut),bs(E,It,Kt,yt,ct)}}},In.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],nt=z.measuredBounds,ot=z.margin,at=z.position.x,ut=z.position.y;if(at=isNaN(at)?-a:at-a,ut=isNaN(ut)?-x:ut-x,z instanceof ko&&z.isGeometryPositioned){var ct=z.strokeWidth/2;at-=ct,ut-=ct}z.visible&&z.arrange(at+ot.left,ut+ot.top,nt.width,nt.height)}};function zn(){this.xa="Base"}Mn(zn,yn),zn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=cr(),z=Ra(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===z){var ct=uh(ut,!1);if(ct!==bi&&ct!==Dr)y.push(ut);else{ut.measure(1/0,x,0,nt),ct=ut.margin,ut=ut.measuredBounds;var yt=Math.max(ut.height+ct.top+ct.bottom,0);E.width+=Math.max(ut.width+ct.right+ct.left,0),E.height=Math.max(E.height,yt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)at=y[a],(at.visible||at===z)&&(ct=at.margin,ot=ct.right+ct.left,ct=ct.top+ct.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,ct=Math.max(at.height+ct,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,ct));wr(y)},zn.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,ot=nt?x.width:E.left,at=0;at<b;at++){var ut=z,ct=y[at];if(ct.visible){var yt=ct.measuredBounds,It=ct.margin,Kt=It.top+It.bottom,Zt=z+E.bottom,ue=yt.height,Re=uh(ct,!1);(isNaN(ct.desiredSize.height)&&Re===Ti||Re===Jr)&&(ue=Math.max(x.height-Kt-Zt,0)),Kt=ue+Kt+Zt,Zt=ct.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=Eo),nt&&(ot-=yt.width+It.left+It.right),ct.arrange(ot+Zt.offsetX+It.left,ut+Zt.offsetY+It.top+(x.height*Zt.y-Kt*Zt.y),yt.width,ue),nt||(ot+=yt.width+It.left+It.right)}}};function fi(){this.xa="Base"}Mn(fi,yn),fi.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=cr();for(var ot=Ra(a),at=0;at<nt;at++){var ut=b[at];if(ut.visible||ut===ot){var ct=uh(ut,!1);if(ct!==bi&&ct!==Jr)x.push(ut);else{var yt=ut.margin;ct=yt.right+yt.left,yt=yt.top+yt.bottom,ut.measure(y,1/0,z,0),ut=ut.measuredBounds,Ga(E,Math.max(E.width,Math.max(ut.width+ct,0)),E.height+Math.max(ut.height+yt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)at=x[a],(at.visible||at===ot)&&(ut=at.margin,nt=ut.right+ut.left,ut=ut.top+ut.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ut=Math.max(at.height+ut,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ut);wr(x)}},fi.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,ot=nt?x.height:E.top,at=0;at<b;at++){var ut=z,ct=y[at];if(ct.visible){var yt=ct.measuredBounds,It=ct.margin,Kt=It.left+It.right,Zt=z+E.right,ue=yt.width,Re=uh(ct,!1);(isNaN(ct.desiredSize.width)&&Re===Ti||Re===Dr)&&(ue=Math.max(x.width-Kt-Zt,0)),Kt=ue+Kt+Zt,Zt=ct.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=Eo),nt&&(ot-=yt.height+It.bottom+It.top),ct.arrange(ut+Zt.offsetX+It.left+(x.width*Zt.x-Kt*Zt.x),ot+Zt.offsetY+It.top,ue,yt.height),nt||(ot+=yt.height+It.bottom+It.top)}}};function qi(){this.xa="Base"}Mn(qi,yn),qi.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=ut.right+ut.left,yt=ut.top+ut.bottom;at.measure(y,x,z,nt);var It=at.measuredBounds;z=It.width,nt=It.height;var Kt=Math.max(z+ct,0),Zt=Math.max(nt+yt,0),ue=a.isClipping,Re=ai.allocAt(-ut.left,-ut.top,Kt,Zt),Fe=ai.allocAt(0,0,z,nt);tr(at,Fe,!0),z=Fe.width,nt=Fe.height;for(var We=!0,Je=Ra(a),nn=0;nn<ot;nn++){var xn=b[nn];It=y;var Vn=x;if(xn!==at&&(xn.visible||xn===Je)){ut=xn.margin;var ir=ut.left,Lr=ut.top;switch(Kt=ut.right+ut.left,Zt=ut.top+ut.bottom,ut=uh(xn,!1),ut){case Ti:It=z,Vn=nt,Lr=ir=Zt=Kt=0;break;case Dr:It=z,ir=Kt=0;break;case Jr:Vn=nt,Lr=Zt=0}xn.measure(It,Vn,0,0),It=xn.measuredBounds,Kt=Math.max(It.width+Kt,0),Zt=Math.max(It.height+Zt,0),ut=xn.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Eo);var yr=xn.alignmentFocus;if(yr.Xb()&&(yr=Eo),Vn=null,xn instanceof ci&&xn.$e!==""&&(Vn=xn.fb(xn.$e),Vn===xn&&(Vn=null)),ir=Fe.x-ir,Lr=Fe.y-Lr,Vn!==null){for(xn.arrange(0,0,It.width,It.height),It=Vn.actualBounds,It=ke.allocAt(It.x+(yr.x*It.width-yr.offsetX),It.y+(yr.y*It.height-yr.offsetY)),Vn=Vn.panel;Vn!==xn;)Vn.transform.Ga(It),Vn=Vn.panel;ir+=ut.x*z+ut.offsetX-It.x,Lr+=ut.y*nt+ut.offsetY-It.y,ke.free(It)}else ir+=ut.x*z+ut.offsetX-(yr.x*It.width+yr.offsetX),Lr+=ut.y*nt+ut.offsetY-(yr.y*It.height+yr.offsetY);We?(We=!1,E.h(ir,Lr,Kt,Zt)):bs(E,ir,Lr,Kt,Zt)}}switch(We?E.assign(Re):ue?E.Uu(Fe.x,Fe.y,Fe.width,Fe.height):bs(E,Re.x,Re.y,Re.width,Re.height),ai.free(Re),ai.free(Fe),ut=at.stretch,ut===vo&&(ut=uh(at,!1)),ut){case bi:return;case Ti:if(!isFinite(y)&&!isFinite(x))return;break;case Dr:if(!isFinite(y))return;break;case Jr:if(!isFinite(x))return}for(It=at.measuredBounds,z=It.width,nt=It.height,Kt=Math.max(z+ct,0),Zt=Math.max(nt+yt,0),ut=at.margin,Fe=ai.allocAt(-ut.left,-ut.top,Kt,Zt),tr(at,Fe,!0),z=Fe.width,nt=Fe.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==Je||(ut=x.margin,Kt=ut.right+ut.left,Zt=ut.top+ut.bottom,It=x.measuredBounds,Kt=Math.max(It.width+Kt,0),Zt=Math.max(It.height+Zt,0),ct=x.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Eo),x=x.alignmentFocus,x.Xb()&&(x=Eo),We?(We=!1,E.h(ct.x*z+ct.offsetX-(x.x*It.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*It.height+x.offsetY)-ut.top,Kt,Zt)):bs(E,ct.x*z+ct.offsetX-(x.x*It.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*It.height+x.offsetY)-ut.top,Kt,Zt));We?E.assign(Re):ue?E.Uu(Fe.x,Fe.y,Fe.width,Fe.height):bs(E,Re.x,Re.y,Re.width,Re.height),ai.free(Fe)},qi.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,ot=z.height,at=a.padding;z=at.left,at=at.top;var ut=z-x.x,ct=at-x.y;for(E.arrange(ut,ct,nt,ot),nt=ai.allocAt(0,0,nt,ot),tr(E,nt,!1),ot=0;ot<b;ot++){var yt=y[ot];if(yt!==E){ut=yt.measuredBounds;var It=ut.width,Kt=ut.height;ct=yt.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Eo);var Zt=yt.alignmentFocus;if(Zt.Xb()&&(Zt=Eo),ut=null,yt instanceof ci&&yt.$e!==""&&(ut=yt.fb(yt.$e),ut===yt&&(ut=null)),ut!==null){var ue=ut.actualBounds;for(Zt=ke.allocAt(ue.x+(Zt.x*ue.width-Zt.offsetX),ue.y+(Zt.y*ue.height-Zt.offsetY)),ut=ut.panel;ut!==yt;)ut.transform.Ga(Zt),ut=ut.panel;ut=ct.x*nt.width+ct.offsetX-Zt.x,ct=ct.y*nt.height+ct.offsetY-Zt.y,ke.free(Zt)}else ut=ct.x*nt.width+ct.offsetX-(Zt.x*It+Zt.offsetX),ct=ct.y*nt.height+ct.offsetY-(Zt.y*Kt+Zt.offsetY);ut+=nt.x-x.x,ct+=nt.y-x.y,yt.visible&&yt.arrange(z+ut,at+ct,It,Kt)}}ai.free(nt)};function tr(a,y,x){var b=null;if(a instanceof ci&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function Ii(){this.xa="Base"}Mn(Ii,yn),Ii.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=y,yt=x,It=ut.right+ut.left,Kt=ut.top+ut.bottom;at.measure(y,x,z,nt),ut=at.measuredBounds;var Zt=0,ue=null;at instanceof ko&&(ue=at,Zt=ue.strokeWidth*ue.scale);var Re=Math.max(ut.width+It,0);ut=Math.max(ut.height+Kt,0);var Fe=dd(at),We=Fe.x*Re+Fe.offsetX;Fe=Fe.y*ut+Fe.offsetY;var Je=Vh(at),nn=Je.x*Re+Je.offsetX;for(Je=Je.y*ut+Je.offsetY,isFinite(y)&&(ct=Math.max(Math.abs(We-nn)-Zt,0)),isFinite(x)&&(yt=Math.max(Math.abs(Fe-Je)-Zt,0)),Zt=Ki.alloc(),Zt.h(0,0),a=Ra(a),Je=0;Je<ot;Je++)Fe=b[Je],Fe===at||!Fe.visible&&Fe!==a||(ut=Fe.margin,Re=ut.right+ut.left,We=ut.top+ut.bottom,Fe.measure(ct,yt,0,0),ut=Fe.measuredBounds,Re=Math.max(ut.width+Re,0),ut=Math.max(ut.height+We,0),Zt.h(Math.max(Re,Zt.width),Math.max(ut,Zt.height)));if(ot===1)E.width=Re,E.height=ut,Ki.free(Zt);else{switch(Fe=dd(at),Je=Vh(at),ot=b=0,Je.x!==Fe.x&&Je.y!==Fe.y&&(b=Zt.width/Math.abs(Je.x-Fe.x),ot=Zt.height/Math.abs(Je.y-Fe.y)),Ki.free(Zt),Zt=0,ue!==null&&(Zt=ue.strokeWidth*ue.scale,Jg(ue)===Sr&&(b=ot=Math.max(b,ot))),b+=Math.abs(Fe.offsetX)+Math.abs(Je.offsetX)+Zt,ot+=Math.abs(Fe.offsetY)+Math.abs(Je.offsetY)+Zt,ue=at.stretch,ue===vo&&(ue=uh(at,!1)),ue){case bi:nt=z=0;break;case Ti:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case Dr:isFinite(y)&&(b=y),nt=0;break;case Jr:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+It,E.height=at.measuredBounds.height+Kt}},Ii.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=ai.alloc();z.h(0,0,1,1);var nt=b.margin,ot=nt.left;nt=nt.top;var at=a.padding,ut=at.left;at=at.top,b.arrange(ut+ot,at+nt,E.width,E.height);var ct=dd(b),yt=Vh(b),It=ct.y*E.height+ct.offsetY,Kt=yt.x*E.width+yt.offsetX;for(yt=yt.y*E.height+yt.offsetY,z.x=ct.x*E.width+ct.offsetX,z.y=It,bs(z,Kt,yt,0,0),z.x+=ot+ut,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ut=ot.measuredBounds,nt=ot.margin,at=Math.max(ut.width+nt.right+nt.left,0),ct=Math.max(ut.height+nt.top+nt.bottom,0),It=ot.alignment,It.Xb()&&(It=a.defaultAlignment),It.sb()||(It=Eo),at=z.width*It.x+It.offsetX-at*It.x+nt.left+z.x,nt=z.height*It.y+It.offsetY-ct*It.y+nt.top+z.y,ot.visible&&(Hs(z.x,z.y,z.width,z.height,at,nt,ut.width,ut.height)?ot.arrange(at,nt,ut.width,ut.height):ot.arrange(at,nt,ut.width,ut.height,new ai(z.x,z.y,z.width,z.height))));ai.free(z)};function Wr(){this.xa="Base",this.name="Table"}Mn(Wr,yn),Wr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=cr(),ot=cr(),at=0;at<z;at++){var ut=b[at],ct=ut instanceof ci?ut:null;if(ct!==null&&Tl(ct)&&ut.visible){ot.push(ct);for(var yt=ct.O.s,It=yt.length,Kt=0;Kt<It;Kt++){var Zt=yt[Kt];ct.type===ci.TableRow?Zt.row=ut.row:ct.type===ci.TableColumn&&(Zt.column=ut.column),nt.push(Zt)}}else nt.push(ut)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var ue=[],Re=0;Re<z;Re++){var Fe=nt[Re];Fe.visible&&(kl(Fe,!0),Wc(Fe,!0),ue[Fe.row]||(ue[Fe.row]=[]),ue[Fe.row][Fe.column]||(ue[Fe.row][Fe.column]=[]),ue[Fe.row][Fe.column].push(Fe))}wr(nt);var We=cr(),Je=cr(),nn=cr(),xn={count:0},Vn={count:0},ir=y,Lr=x,yr=a.rowDefs,Gi=a.colDefs,Mi=null;z=yr.length;for(var Fo=0;Fo<z;Fo++)Mi=yr[Fo],Mi!==void 0&&(Mi.actual=0);z=Gi.length;for(var mo=0;mo<z;mo++)Mi=Gi[mo],Mi!==void 0&&(Mi.actual=0);for(var Ns=ue.length,pa=0,Ou=0;Ou<Ns;Ou++)ue[Ou]&&(pa=Math.max(pa,ue[Ou].length));var zu=Math.min(a.topIndex,Ns-1),_h=Math.min(a.leftIndex,pa-1),Du=0;Ns=ue.length;for(var Tf=Ra(a),tu=0;tu<Ns;tu++)if(ue[tu]){pa=ue[tu].length;var mA=a.Fb(tu);mA.actual=0;for(var Hh=mA.oc=0;Hh<pa;Hh++)if(ue[tu][Hh]){var Of=a.Eb(Hh);We[Hh]===void 0&&(Of.actual=0,Of.oc=0,We[Hh]=!0);for(var qc=ue[tu][Hh],Ud=qc.length,Nc=0;Nc<Ud;Nc++){var yc=qc[Nc];if(yc.visible||yc===Tf){var Ag=1<yc.rowSpan||1<yc.columnSpan;Ag&&(tu<zu||Hh<_h||Je.push(yc));var vA=yc.margin,Jp=vA.right+vA.left,Ic=vA.top+vA.bottom,Qh=Ta(yc,mA,Of,!1),Zm=yc.desiredSize,fp=!isNaN(Zm.height),RA=!isNaN(Zm.width)&&fp;if(Ag||Qh===bi||RA||tu<zu||Hh<_h||(xn[Hh]!==void 0||Qh!==Ti&&Qh!==Dr||(xn[Hh]=-1,xn.count++),Vn[tu]!==void 0||Qh!==Ti&&Qh!==Jr||(Vn[tu]=-1,Vn.count++),nn.push(yc)),yc.measure(1/0,1/0,0,0),!(tu<zu||Hh<_h)){var wc=yc.measuredBounds,Dg=Math.max(wc.width+Jp,0),kc=Math.max(wc.height+Ic,0);if(yc.rowSpan===1&&(Qh===bi||Qh===Dr)){Mi=a.Fb(tu);var fg=Mi.Wc();Du=Math.max(kc-Mi.actual,0),Du+fg>Lr&&(Du=Math.max(Lr-fg,0));var av=Mi.oa===0;Mi.oc=Mi.oc+Du,Mi.actual=Mi.oa+Du,Lr=Math.max(Lr-(Du+(av?fg:0)),0)}if(yc.columnSpan===1&&(Qh===bi||Qh===Jr)){Mi=a.Eb(Hh);var Xm=Mi.Wc();Du=Math.max(Dg-Mi.actual,0),Du+Xm>ir&&(Du=Math.max(ir-Xm,0));var Py=Mi.oa===0;Mi.oc=Mi.oc+Du,Mi.actual=Mi.oa+Du,ir=Math.max(ir-(Du+(Py?Xm:0)),0)}Ag&&yc.Uj()}}}}}wr(We);var of=0,Af=0;z=a.columnCount;for(var gp=0;gp<z;gp++){var gg=Gi[gp];gg!==void 0&&(of+=isNaN(gg.Hc)?gg.oc:gg.Hc,gg.oc!==0&&(of+=gg.Wc()))}z=a.rowCount;for(var qp=0;qp<z;qp++){var pg=yr[qp];pg!==void 0&&(Af+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(Af+=pg.Wc()))}ir=Math.max(y-of,0);var sf=Lr=Math.max(x-Af,0),Df=ir;z=nn.length;for(var xc=0;xc<z;xc++){var _A=nn[xc],lv=a.Fb(_A.row),ff=a.Eb(_A.column),tm=_A.measuredBounds,yA=_A.margin,jg=yA.right+yA.left,HA=yA.top+yA.bottom;xn[_A.column]=ff.oc===0&&xn[_A.column]!==void 0?Math.max(tm.width+jg,xn[_A.column]):null,Vn[_A.row]=lv.oc===0&&Vn[_A.row]!==void 0?Math.max(tm.height+HA,Vn[_A.row]):null}var pp=0,em=0,rA;for(rA in Vn)rA!=="count"&&(pp+=Vn[rA]);for(rA in xn)rA!=="count"&&(em+=xn[rA]);for(var rh=Ki.alloc(),$m=0;$m<z;$m++){var tc=nn[$m];if(tc.visible||tc===Tf){var eu=a.Fb(tc.row),ec=a.Eb(tc.column),gf=0;isFinite(ec.width)?gf=ec.width:(isFinite(ir)&&xn[tc.column]!==null?em===0?gf=ec.actual+ir:gf=xn[tc.column]/em*Df:xn[tc.column]!==null?gf=ir:gf=ec.actual||ir,gf=Math.max(0,gf-ec.Wc()));var jf=0;switch(isFinite(eu.height)?jf=eu.height:(isFinite(Lr)&&Vn[tc.row]!==null?pp===0?jf=eu.actual+Lr:jf=Vn[tc.row]/pp*sf:Vn[tc.row]!==null?jf=Lr:jf=eu.actual||Lr,jf=Math.max(0,jf-eu.Wc())),rh.h(Math.max(ec.minimum,Math.min(gf,ec.maximum)),Math.max(eu.minimum,Math.min(jf,eu.maximum))),Qh=Ta(tc,eu,ec,!1),Qh){case Dr:rh.height=Math.max(rh.height,eu.actual+Lr);break;case Jr:rh.width=Math.max(rh.width,ec.actual+ir)}var Ug=tc.margin,by=Ug.right+Ug.left,uv=Ug.top+Ug.bottom;tc.Uj(),tc.measure(rh.width,rh.height,ec.minimum,eu.minimum);var nm=tc.measuredBounds,Rg=Math.max(nm.width+by,0),mp=Math.max(nm.height+uv,0);isFinite(ir)&&(Rg=Math.min(Rg,rh.width)),isFinite(Lr)&&(mp=Math.min(mp,rh.height));var Sc=0;Sc=eu.actual,eu.actual=Math.max(eu.actual,mp),eu.oc=Math.max(eu.oc,mp),Du=eu.actual-Sc,Lr=Math.max(Lr-Du,0),Vn[tc.row]===null&&(sf=Math.max(sf-Du,0)),Sc=ec.actual,ec.actual=Math.max(ec.actual,Rg),ec.oc=Math.max(ec.oc,Rg),Du=ec.actual-Sc,ir=Math.max(ir-Du,0),xn[tc.column]===null&&(Df=Math.max(Df-Du,0))}}wr(nn);var pf=Ki.alloc(),wA=cr(),vd=cr();if(z=Je.length,z!==0){for(var mg=0;mg<Ns;mg++)if(ue[mg]){pa=ue[mg].length;var im=a.Fb(mg);wA[mg]=im.actual;for(var vg=0;vg<pa;vg++)if(ue[mg][vg]){var hv=a.Eb(vg);vd[vg]=hv.actual}}}for(var rm=0;rm<z;rm++){var Hl=Je[rm];if(Hl.visible||Hl===Tf){var oA=a.Fb(Hl.row),Rd=a.Eb(Hl.column);switch(rh.h(Math.max(Rd.minimum,Math.min(y,Rd.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),Qh=Ta(Hl,oA,Rd,!1),Qh){case Ti:vd[Rd.index]!==0&&(rh.width=Math.min(rh.width,vd[Rd.index])),wA[oA.index]!==0&&(rh.height=Math.min(rh.height,wA[oA.index]));break;case Dr:vd[Rd.index]!==0&&(rh.width=Math.min(rh.width,vd[Rd.index]));break;case Jr:wA[oA.index]!==0&&(rh.height=Math.min(rh.height,wA[oA.index]))}isFinite(Rd.width)&&(rh.width=Rd.width),isFinite(oA.height)&&(rh.height=oA.height),pf.h(0,0);for(var cv=Rd.minimum,Tc=oA.minimum,Uf=1;Uf<Hl.rowSpan&&!(Hl.row+Uf>=a.rowCount);Uf++)Mi=a.Fb(Hl.row+Uf),Du=0,Du=Qh===Ti||Qh===Jr?Math.max(Mi.minimum,wA[Hl.row+Uf]===0?Mi.maximum:Math.min(wA[Hl.row+Uf],Mi.maximum)):Math.max(Mi.minimum,isNaN(Mi.Hc)?Mi.maximum:Math.min(Mi.Hc,Mi.maximum)),pf.height+=Du,Tc+=Mi.minimum;for(var _d=1;_d<Hl.columnSpan&&!(Hl.column+_d>=a.columnCount);_d++)Mi=a.Eb(Hl.column+_d),Du=0,Du=Qh===Ti||Qh===Dr?Math.max(Mi.minimum,vd[Hl.column+_d]===0?Mi.maximum:Math.min(vd[Hl.column+_d],Mi.maximum)):Math.max(Mi.minimum,isNaN(Mi.Hc)?Mi.maximum:Math.min(Mi.Hc,Mi.maximum)),pf.width+=Du,cv+=Mi.minimum;rh.width+=pf.width,rh.height+=pf.height;var om=Hl.margin,yg=om.right+om.left,Ym=om.top+om.bottom;Hl.measure(rh.width,rh.height,cv,Tc);for(var sm=Hl.measuredBounds,QA=Math.max(sm.width+yg,0),_g=Math.max(sm.height+Ym,0),wg=0,am=0;am<Hl.rowSpan&&!(Hl.row+am>=a.rowCount);am++)Mi=a.Fb(Hl.row+am),wg+=Mi.total||0;if(wg<_g){var Rf=_g-wg,af=_g-wg;if(Hl.spanAllocation!==null)for(var _f=Hl.spanAllocation,mf=0;mf<Hl.rowSpan&&!(0>=Rf)&&!(Hl.row+mf>=a.rowCount);mf++){Mi=a.Fb(Hl.row+mf);var Hf=Mi.oa||0,Hg=_f(Hl,Mi,af);Mi.actual=Math.min(Mi.maximum,Hf+Hg),Mi.oa!==Hf&&(Rf-=Mi.oa-Hf)}for(;0<Rf;){var xA=Mi.oa||0;if(isNaN(Mi.height)&&Mi.maximum>xA&&(Mi.actual=Math.min(Mi.maximum,xA+Rf),Mi.oa!==xA&&(Rf-=Mi.oa-xA)),Mi.index===0)break;Mi=a.Fb(Mi.index-1)}}for(var vp=0,Qf=0;Qf<Hl.columnSpan&&!(Hl.column+Qf>=a.columnCount);Qf++)Mi=a.Eb(Hl.column+Qf),vp+=Mi.total||0;if(vp<QA){var yp=QA-vp,Ey=QA-vp;if(Hl.spanAllocation!==null)for(var vf=Hl.spanAllocation,Qg=0;Qg<Hl.columnSpan&&!(0>=yp)&&!(Hl.column+Qg>=a.columnCount);Qg++){Mi=a.Eb(Hl.column+Qg);var Jm=Mi.oa||0,Fy=vf(Hl,Mi,Ey);Mi.actual=Math.min(Mi.maximum,Jm+Fy),Mi.oa!==Jm&&(yp-=Mi.oa-Jm)}for(;0<yp;){var dv=Mi.oa||0;if(isNaN(Mi.width)&&Mi.maximum>dv&&(Mi.actual=Math.min(Mi.maximum,dv+yp),Mi.oa!==dv&&(yp-=Mi.oa-dv)),Mi.index===0)break;Mi=a.Eb(Mi.index-1)}}}}wr(Je),Ki.free(pf),Ki.free(rh),wA!==void 0&&wr(wA),vd!==void 0&&wr(vd);var wp=0,xp=0,Av=a.desiredSize,xw=a.maxSize;Qh=uh(a,!0);var qm=Af=of=0,t0=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Gi[fv]!==void 0&&(Mi=a.Eb(fv),isFinite(Mi.width)?(qm+=Mi.width,qm+=Mi.Wc()):Yg(Mi)===$f?(qm+=Mi.oa,qm+=Mi.Wc()):Mi.oa!==0&&(of+=Mi.oa,of+=Mi.Wc()));isFinite(Av.width)?wp=Math.min(Av.width,xw.width):wp=Qh!==bi&&isFinite(y)?y:of,wp=Math.max(wp,a.minSize.width),wp=Math.max(wp-qm,0);for(var rx=of===0?1:Math.max(wp/of,1),gv=0;gv<z;gv++)Gi[gv]!==void 0&&(Mi=a.Eb(gv),isFinite(Mi.width)||Yg(Mi)===$f||(Mi.actual=Mi.oa*rx),Mi.position=E.width,Mi.oa!==0&&(E.width+=Mi.oa,E.width+=Mi.Wc()));z=a.rowCount;for(var pv=0;pv<z;pv++)yr[pv]!==void 0&&(Mi=a.Fb(pv),isFinite(Mi.height)?(t0+=Mi.height,t0+=Mi.Wc()):Yg(Mi)===$f?(t0+=Mi.oa,t0+=Mi.Wc()):Mi.oa!==0&&(Af+=Mi.oa,Af+=Mi.Wc()));isFinite(Av.height)?xp=Math.min(Av.height,xw.height):xp=Qh!==bi&&isFinite(x)?x:Af,xp=Math.max(xp,a.minSize.height),xp=Math.max(xp-t0,0);for(var ox=Af===0?1:Math.max(xp/Af,1),mv=0;mv<z;mv++)yr[mv]!==void 0&&(Mi=a.Fb(mv),isFinite(Mi.height)||Yg(Mi)===$f||(Mi.actual=Mi.oa*ox),Mi.position=E.height,Mi.oa!==0&&(E.height+=Mi.oa,E.height+=Mi.Wc()));z=ot.length;for(var Ly=0;Ly<z;Ly++){var e0=ot[Ly],My=0,Ny=0;e0.type===ci.TableRow?(My=E.width,Mi=a.Fb(e0.row),Ny=Mi.actual):(Mi=a.Eb(e0.column),My=Mi.actual,Ny=E.height),e0.measuredBounds.h(0,0,My,Ny),kl(e0,!1)}wr(ot),a.inRowsCols=ue},Wr.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ut=nt.length,ct=0,yt=0;yt<ut;yt++)nt[yt]&&(ct=Math.max(ct,nt[yt].length));at=a.rowDefs,ot=a.colDefs;var It=yt=0,Kt=Math.min(a.topIndex,ut-1);if(0<at.length){for(;Kt!==ut&&(at[Kt]===void 0||at[Kt].oa===0);)Kt++;Kt=Math.max(Math.min(Kt,ut-1),0),yt=-at[Kt].position}var Zt=Math.min(a.leftIndex,ct-1);if(0<ot.length){for(;Zt!==ct&&(ot[Zt]===void 0||ot[Zt].oa===0);)Zt++;Zt=Math.max(Math.min(Zt,ct-1),0),It=-ot[Zt].position}for(var ue=0,Re=0;ue!==ut&&at[ue]===void 0;)ue++;for(;Re!==ut&&ot[Re]===void 0;)Re++;ct=a.part,a.Fb(ue),a.Eb(Re);for(var Fe=0;Fe<y.length;Fe++){var We=y[Fe];if(We instanceof ci&&We.visible&&Tl(We)){if(We.type===ci.TableRow){ot=a.Fb(We.row);var Je=a.Eb(Re)}else ot=a.Fb(ue),Je=a.Eb(We.column);at=ot.position+yt+E,ot.oa!==0&&(at+=ot.Io(Math.max(ue,Kt))),ot=Je.position+It+z,Je.oa!==0&&(ot+=Je.Io(Math.max(Re,Zt))),Je=We.measuredBounds,We.Uk(),We.actualBounds.ka();var nn=We.actualBounds,xn=ai.allocAt(nn.x,nn.y,nn.width,nn.height);nn.x=We.type===ci.TableRow?z:ot,nn.y=We.type===ci.TableColumn?E:at,nn.width=Je.width,nn.height=Je.height,We.actualBounds.freeze(),Wc(We,!1),su(xn,nn)||ct===null||(ct.oh(),We.Pn(ct)),ai.free(xn)}}for(Fe=Ki.alloc(),We=0;We<ut;We++)if(nt[We]){for(ct=nt[We].length,Je=a.Fb(We),at=Je.position+yt+E,Je.oa!==0&&(at+=Je.Io(Math.max(ue,Kt))),nn=0;nn<ct;nn++)if(nt[We][nn]){xn=a.Eb(nn),ot=xn.position+It+z,xn.oa!==0&&(ot+=xn.Io(Math.max(Re,Zt)));for(var Vn=nt[We][nn],ir=Vn.length,Lr=0;Lr<ir;Lr++){var yr=Vn[Lr],Gi=yr.measuredBounds;Fe.h(0,0);for(var Mi=1;Mi<yr.rowSpan&&!(We+Mi>=a.rowCount);Mi++){var Fo=a.Fb(We+Mi);Fo.oa!==0&&(Fe.height+=Fo.total)}for(Mi=1;Mi<yr.columnSpan&&!(nn+Mi>=a.columnCount);Mi++)Fo=a.Eb(nn+Mi),Fo.oa!==0&&(Fe.width+=Fo.total);var mo=xn.oa+Fe.width,Ns=Je.oa+Fe.height;Mi=ot,Fo=at;var pa=mo,Ou=Ns,zu=ot,_h=at,Du=mo,Tf=Ns;ot+mo>x.width&&(Du=Math.max(x.width-ot,0)),at+Ns>x.height&&(Tf=Math.max(x.height-at,0));var tu=yr.alignment;if(tu.Xb()){tu=a.defaultAlignment,tu.sb()||(tu=Eo);var mA=tu.x,Hh=tu.y,Of=tu.offsetX;tu=tu.offsetY;var qc=xn.alignment,Ud=Je.alignment;qc.sb()&&(mA=qc.x,Of=qc.offsetX),Ud.sb()&&(Hh=Ud.y,tu=Ud.offsetY)}else mA=tu.x,Hh=tu.y,Of=tu.offsetX,tu=tu.offsetY;(isNaN(mA)||isNaN(Hh))&&(Hh=mA=.5,tu=Of=0),qc=Gi.width,Ud=Gi.height;var Nc=yr.margin,yc=Nc.left+Nc.right,Ag=Nc.top+Nc.bottom,vA=Ta(yr,Je,xn,!1);!isNaN(yr.desiredSize.width)||vA!==Ti&&vA!==Dr||(qc=Math.max(mo-yc,0)),!isNaN(yr.desiredSize.height)||vA!==Ti&&vA!==Jr||(Ud=Math.max(Ns-Ag,0)),mo=yr.maxSize,Ns=yr.minSize,qc=Math.min(mo.width,qc),Ud=Math.min(mo.height,Ud),qc=Math.max(Ns.width,qc),Ud=Math.max(Ns.height,Ud),mo=Ud+Ag,Mi+=pa*mA-(qc+yc)*mA+Of+Nc.left,Fo+=Ou*Hh-mo*Hh+tu+Nc.top,yr.visible&&(Hs(zu,_h,Du,Tf,Mi,Fo,Gi.width,Gi.height)?yr.arrange(Mi,Fo,qc,Ud):yr.arrange(Mi,Fo,qc,Ud,new ai(zu,_h,Du,Tf)))}}}for(Ki.free(Fe),a=0;a<b;a++)x=y[a],z=x instanceof ci?x:null,z!==null&&Tl(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Nr(){this.xa="Base"}Mn(Nr,yn),Nr.prototype.measure=function(){},Nr.prototype.arrange=function(){};function Hi(){this.xa="Base"}Mn(Hi,yn),Hi.prototype.measure=function(){},Hi.prototype.arrange=function(){};function Ui(){this.xa="Base"}Mn(Ui,yn),Ui.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&gn("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var ot=b.measuredBounds,at=b.margin,ut=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ct=b.scale,yt=ot.width;ot=ot.height;var It=Math.max(y-ut,0),Kt=Math.max(x-at,0),Zt=1;a.viewboxStretch===Sr?yt!==0&&ot!==0&&(Zt=Math.min(It/yt,Kt/ot)):yt!==0&&ot!==0&&(Zt=Math.max(It/yt,Kt/ot)),Zt===0&&(Zt=1e-4),b.Ca*=Zt,ct!==b.scale&&(kl(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ut,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},Ui.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Eo),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function Qr(){this.xa="Base"}Mn(Qr,yn),Qr.prototype.measure=function(){},Qr.prototype.arrange=function(){},Qr.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,nt=a.actualBounds,ot=z.width,at=z.height,ut=Math.ceil(ot/E),ct=Math.ceil(at/b),yt=a.gridOrigin,It=yt.x;yt=yt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var Kt=[],Zt=a.O.s,ue=Zt.length,Re=0;Re<ue;Re++){var Fe=Zt[Re],We=[];if(Kt.push(We),Fe.visible){var Je=Fe.interval;if(!(0>Je)){Fe=za(Fe.figure);for(var nn=0;nn<ue;nn++)if(nn!==Re){var xn=Zt[nn];xn.visible&&za(xn.figure)===Fe&&(xn=xn.interval,xn>Je&&We.push(xn))}}}}for(Zt=a.O.s,ue=Zt.length,Re=0;Re<ue;Re++){var Vn=Zt[Re];if(Vn.visible&&(We=Vn.interval||1,Fe=Math.abs(We),!(2>E*Fe*x))){if(Je=Vn.segmentIndex,(!isFinite(Je)||isNaN(Je))&&(Je=0),0>Je&&(Je=Fe-Math.min(-Je,Fe)),Je=Math.round(Je%Fe),Fe=Vn.opacity,nn=1,Fe!==1){if(Fe===0)continue;nn=y.globalAlpha,y.globalAlpha=nn*Fe}xn=Kt[Re];var ir=!1,Lr=Vn.strokeDashArray;if(Lr!==null&&(ir=!0,y.js(Lr,Vn.strokeDashOffset)),Vn.figure==="LineV"&&Vn.stroke!==null&&0<Vn.strokeWidth){for(y.lineWidth=Vn.strokeWidth,xa(a,y,Vn.stroke,!1,!1,z,nt),y.beginPath(),Lr=Vn=Math.floor((It-E)/E);Lr<=Vn+ut;Lr++){var yr=Lr*E+It;0<=yr&&yr<=ot&&uo(Lr,We,Je,xn)&&(y.moveTo(yr,0),y.lineTo(yr,at))}y.stroke(),y.Se()}else if(Vn.figure==="LineH"&&Vn.stroke!==null&&0<Vn.strokeWidth){for(y.lineWidth=Vn.strokeWidth,xa(a,y,Vn.stroke,!1,!1,z,nt),y.beginPath(),Lr=Vn=Math.floor((yt-b)/b);Lr<=Vn+ct;Lr++)yr=Lr*b+yt,0<=yr&&yr<=at&&uo(Lr,We,Je,xn)&&(y.moveTo(0,yr),y.lineTo(ot,yr));y.stroke(),y.Se()}else if(Vn.figure==="BarV"&&Vn.fill!==null)for(xa(a,y,Vn.fill,!0,!1,z,nt),Vn=Vn.width,isNaN(Vn)&&(Vn=E),yr=Lr=Math.floor((It-E)/E);yr<=Lr+ut;yr++){var Gi=yr*E+It;0<=Gi+Vn&&Gi<=ot&&uo(yr,We,Je,xn)&&y.fillRect(Gi,0,Vn,at)}else if(Vn.figure==="BarH"&&Vn.fill!==null)for(xa(a,y,Vn.fill,!0,!1,z,nt),Vn=Vn.height,isNaN(Vn)&&(Vn=b),yr=Lr=Math.floor((yt-b)/b);yr<=Lr+ct;yr++)Gi=yr*b+yt,0<=Gi+Vn&&Gi<=at&&uo(yr,We,Je,xn)&&y.fillRect(0,Gi,ot,Vn);ir&&y.fs(),Fe!==1&&(y.globalAlpha=nn)}}y.restore(),y.Vc(!1)};function uo(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function $r(){this.xa="Base"}Mn($r,yn),$r.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Fs||a instanceof Wi){var nt=null,ot=null;if(a instanceof Wi&&(nt=a),a instanceof Fs&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Wi){var at=nt;if(z===0)Ga(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ut=a instanceof Fs?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ct=at.points,yt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var It=y.height,Kt=a.j;if(Kt.length=0,ut!==null){ls(a,ot,It,ut);var Zt=ut.measuredBounds;x.ed(Zt),Kt.push(Zt)}Zt=Ro.alloc();for(var ue=ke.alloc(),Re=ke.alloc(),Fe=0;Fe<z;Fe++){var We=b[Fe];if(We!==ut)if(We.isPanelMain&&We instanceof ko){ls(a,ot,It,We);var Je=We.measuredBounds;x.ed(Je),Kt.push(Je)}else if(2>yt)We.measure(1/0,1/0,0,0),Je=We.measuredBounds,x.ed(Je),Kt.push(Je);else{var nn=We.segmentIndex,xn=We.segmentFraction,Vn=We.alignmentFocus;Vn.Mc()&&(Vn=Eo);var ir=We.segmentOrientation,Lr=We.segmentOffset;if(isNaN(nn)){var yr=at.ua;Je=cr(),yr.Qu(xn,Je);var Gi=ke.allocAt(Je[0],Je[1]);if(Gi.add(at.i(0)),yr.type===Vi.j?Gi.offset(-yr.startX,-yr.startY):(yr=yr.figures.first(),yr!==null&&Gi.offset(-yr.startX,-yr.startY)),yr=Je[2],ir!==Xh){var Mi=at.computeAngle(We,ir,yr);We.Kb=Mi}Mi=Gi.x-y.x;var Fo=Gi.y-y.y;ke.free(Gi),wr(Je)}else if(nn<-yt||nn>=yt)Je=ke.alloc(),at.vg(),at.computeMidPoint(Je),yr=at.midAngle,ir!==Xh&&(Mi=at.computeAngle(We,ir,yr),We.Kb=Mi),Mi=Je.x-y.x,Fo=Je.y-y.y,ke.free(Je);else{if(Mi=0,0<=nn?(Fo=ct.M(nn),Je=nn<yt-1?ct.M(nn+1):Fo):(Mi=yt+nn,Fo=ct.M(Mi),Je=0<Mi?ct.M(Mi-1):Fo),Fo.Xa(Je)){0<=nn?(yr=0<nn?ct.M(nn-1):Fo,Mi=nn<yt-2?ct.M(nn+2):Je):(yr=Mi<yt-1?ct.M(Mi+1):Fo,Mi=1<Mi?ct.M(Mi-2):Je),Gi=yr.Bf(Fo);var mo=Je.Bf(Mi);yr=Gi>mo+10?0<=nn?yr.ab(Fo):Fo.ab(yr):mo>Gi+10?0<=nn?Je.ab(Mi):Mi.ab(Je):0<=nn?yr.ab(Mi):Mi.ab(yr)}else yr=0<=nn?Fo.ab(Je):Je.ab(Fo);ir!==Xh&&(Mi=at.computeAngle(We,ir,yr),We.Kb=Mi),Mi=Fo.x+(Je.x-Fo.x)*xn-y.x,Fo=Fo.y+(Je.y-Fo.y)*xn-y.y}We.measure(1/0,1/0,0,0),Je=We.measuredBounds,Gi=We.naturalBounds;var Ns=0;We instanceof ko&&(Ns=We.strokeWidth),mo=Gi.width+Ns;var pa=Gi.height+Ns;Zt.reset(),Zt.translate(-Je.x,-Je.y),Zt.scale(We.scale,We.scale),Zt.rotate(ir===Xh?We.angle:yr,mo/2,pa/2),ir!==xm&&ir!==Cm||Zt.rotate(90,mo/2,pa/2),ir!==Sm&&ir!==Bm||Zt.rotate(-90,mo/2,pa/2),ir===y0&&(45<yr&&135>yr||225<yr&&315>yr)&&Zt.rotate(-yr,mo/2,pa/2),Gi=new ai(0,0,mo,pa),ue.xi(Gi,Vn),Zt.Ga(ue),Vn=-ue.x+Ns/2*We.scale,We=-ue.y+Ns/2*We.scale,Re.assign(Lr),Ns=isNaN(Lr.x);var Ou=isNaN(Lr.y);if(Ns||Ou){mo=mo/2+3,pa=pa/2+3;var zu=45<=yr&&135>=yr,_h=225<=yr&&315>=yr;ir===Xh&&(zu||_h)?(Re.x=Ou?mo:Lr.y,Re.y=Ns?pa:Lr.x,zu?0<=nn||isNaN(nn)&&.5>xn||!Ns||(Re.y=-pa):_h&&((0<=nn||isNaN(nn)&&.5>xn)&&Ns&&(Re.y=-pa),Ou&&(Re.x=-mo))):(Ns&&(Re.x=0<=nn||isNaN(nn)&&.5>xn?mo:-mo),Ou&&(Re.y=-pa),Re.rotate(yr))}else Re.rotate(yr);Mi+=Re.x,Fo+=Re.y,Gi.set(Je),Gi.h(Mi+Vn,Fo+We,Je.width,Je.height),Kt.push(Gi),x.ed(Gi)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Ga(E,x.width||0,x.height||0),Ro.free(Zt),ke.free(ue),ke.free(Re)}}}},$r.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Fs||a instanceof Wi){var b=a,E=null;a instanceof Fs&&(E=a,b=E.adornedPart);var z=a instanceof Fs?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(z!==null&&ot<nt.length){var at=nt[ot];ot++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var ut=y[at];if(ut!==z&&ot<nt.length){var ct=nt[ot];ot++,ut.arrange(ct.x-a.jg.x,ct.y-a.jg.y,ct.width,ct.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Wi)for(z=a.labelNodes;z.next();){var yt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var It=nt.alignmentFocus;if(ut=nt.segmentOrientation,ct=nt.segmentOffset,isNaN(ot)){var Kt=yt.ua,Zt=cr();Kt.Qu(at,Zt);var ue=ke.allocAt(Zt[0],Zt[1]);ue.add(yt.i(0)),Kt.type===Vi.j||(Kt=Kt.figures.first()),ue.offset(-Kt.startX,-Kt.startY),Kt=Zt[2],ut!==Xh&&(yt=yt.computeAngle(nt,ut,Kt),nt.angle=yt),yt=ue.x;var Re=ue.y;ke.free(ue),wr(Zt)}else if(ot<-x||ot>=x)Zt=ke.alloc(),Kt=yt,Re=Zt,Kt.vg(),Kt.computeMidPoint(Re),Kt=yt.midAngle,ut!==Xh&&(yt=yt.computeAngle(nt,ut,Kt),nt.angle=yt),yt=Zt.x,Re=Zt.y,ke.free(Zt);else{if(ue=0,0<=ot?(Zt=y.s[ot],Re=ot<x-1?y.s[ot+1]:Zt):(ue=x+ot,Zt=y.s[ue],Re=0<ue?y.s[ue-1]:Zt),Zt.Xa(Re)){0<=ot?(Kt=0<ot?y.s[ot-1]:Zt,ue=ot<x-2?y.s[ot+2]:Re):(Kt=ue<x-1?y.s[ue+1]:Zt,ue=1<ue?y.s[ue-2]:Re);var Fe=Kt.Bf(Zt),We=Re.Bf(ue);Kt=Fe>We+10?0<=ot?Kt.ab(Zt):Zt.ab(Kt):We>Fe+10?0<=ot?Re.ab(ue):ue.ab(Re):0<=ot?Kt.ab(ue):ue.ab(Kt)}else Kt=0<=ot?Zt.ab(Re):Re.ab(Zt);ut!==Xh&&(yt=yt.computeAngle(nt,ut,Kt),nt.angle=yt),yt=Zt.x+(Re.x-Zt.x)*at,Re=Zt.y+(Re.y-Zt.y)*at}if(It.ys())nt.location=new ke(yt,Re);else{It.Mc()&&(It=Eo),Zt=Ro.alloc(),Zt.reset(),Zt.scale(nt.scale,nt.scale),Zt.rotate(nt.angle,0,0);var Je=nt.naturalBounds;ue=ai.allocAt(0,0,Je.width,Je.height),Fe=ke.alloc(),Fe.xi(ue,It),Zt.Ga(Fe),It=-Fe.x,We=-Fe.y;var nn=Je.width,xn=Je.height;Je=ke.alloc(),Je.assign(ct);var Vn=isNaN(ct.x),ir=isNaN(ct.y);if(Vn||ir){nn=nn/2+3,xn=xn/2+3;var Lr=45<=Kt&&135>=Kt,yr=225<=Kt&&315>=Kt;ut===Xh&&(Lr||yr)?(Je.x=ir?nn:ct.y,Je.y=Vn?xn:ct.x,Lr?0<=ot||isNaN(ot)&&.5>at||!Vn||(Je.y=-xn):yr&&((0<=ot||isNaN(ot)&&.5>at)&&Vn&&(Je.y=-xn),ir&&(Je.x=-nn))):(Vn&&(Je.x=0<=ot||isNaN(ot)&&.5>at?nn:-nn),ir&&(Je.y=-xn),Je.rotate(Kt))}else Je.rotate(Kt);yt+=Je.x,Re+=Je.y,Zt.pp(ue),It+=ue.x,We+=ue.y,ot=ke.allocAt(yt+It,Re+We),nt.move(ot),ke.free(ot),ke.free(Je),ke.free(Fe),ai.free(ue),Ro.free(Zt)}}E!==null?E.Ul(!1):b.Ul(!1),b=Ry(a),a.location.h(a.position.x+b.x,a.position.y+b.y),ke.free(b)}};function ls(a,y,x,b){if(Sh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Fs&&a.type===ci.Link&&a.adornedObject instanceof ko&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Wi&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Fs&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),kl(b,!1)}}function Jo(){this.xa="Base"}Mn(Jo,yn),Jo.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ut=at.right+at.left,ct=at.top+at.bottom;ot.measure(y,x,z,nt);var yt=ot.measuredBounds,It=new ai(-at.left,-at.top,Math.max(yt.width+ut,0),Math.max(yt.height+ct,0));a.graduatedBounds.push(It),E.assign(It);for(var Kt=ot.geometry,Zt=ot.strokeWidth,ue=Kt.flattenedSegments,Re=Kt.flattenedLengths,Fe=Kt.flattenedTotalLength,We=ue.length,Je=0,nn=0,xn=cr(),Vn=0;Vn<We;Vn++){var ir=ue[Vn],Lr=[];nn=Je=0;for(var yr=ir.length,Gi=0;Gi<yr;Gi+=2){var Mi=ir[Gi],Fo=ir[Gi+1];if(Gi!==0){var mo=180*Math.atan2(Fo-nn,Mi-Je)/Math.PI;0>mo&&(mo+=360),Lr.push(mo)}Je=Mi,nn=Fo}xn.push(Lr)}if(a.graduatedIntervals===null){for(var Ns=[],pa=a.O.s,Ou=pa.length,zu=0;zu<Ou;zu++){var _h=pa[zu],Du=[];if(Ns.push(Du),_h.visible){var Tf=_h.interval;if(!(0>Tf)){for(var tu=0;tu<Ou;tu++)if(tu!==zu){var mA=pa[tu];if(mA.visible&&_h.constructor===mA.constructor){var Hh=mA.interval;Hh>Tf&&Du.push(Hh)}}}}}a.graduatedIntervals=Ns}var Of=a.graduatedIntervals,qc=a.O.s,Ud=qc.length,Nc=0,yc=0,Ag=Fe;a.graduatedMarks=[];for(var vA,Jp=0;Jp<Ud;Jp++){var Ic=qc[Jp];if(vA=[],Ic.visible&&Ic!==ot){var Qh=Math.abs(Ic.interval),Zm=a.graduatedTickUnit;if(!(2>Zm*Qh*Fe/a.graduatedRange&&Ic.graduatedSkip===null)){var fp=Re[0][0],RA=0,wc=0;yc=Fe*Ic.graduatedStart-1e-4,Ag=Fe*Ic.graduatedEnd+1e-4;var Dg=Zm*Qh,kc=a.graduatedTickBase;if(kc<a.graduatedMin){var fg=(a.graduatedMin-kc)/Dg;fg=fg%1===0?fg:Math.floor(fg+1),kc+=fg*Dg}else kc>a.graduatedMin+Dg&&(kc-=Math.floor((kc-a.graduatedMin)/Dg)*Dg);for(var av=Of[Jp],Xm=kc,Py=1e-6*a.graduatedMax,of=1;kc<=a.graduatedMax+Py;of++){t:{for(var Af=av.length,gp=0;gp<Af;gp++){var gg=(kc-a.graduatedTickBase)%(av[gp]*a.graduatedTickUnit),qp=1e-6*a.graduatedTickUnit;if(gg<qp&&gg>-qp){var pg=!1;break t}}pg=!0}if(pg&&(kc>a.graduatedMax&&(kc=a.graduatedMax),Ic.graduatedSkip===null||Ic instanceof sa&&!Ic.graduatedSkip(kc,Ic)||Ic instanceof ko&&!Ic.graduatedSkip(kc,Ic))&&(Nc=(kc-a.graduatedMin)*Fe/a.graduatedRange,Nc>Fe&&(Nc=Fe),yc<=Nc&&Nc<=Ag)){for(var sf=xn[RA][wc],Df=Re[RA][wc];RA<Re.length;){for(;Nc>fp&&wc<Re[RA].length-1;)wc++,sf=xn[RA][wc],Df=Re[RA][wc],fp+=Df;if(Nc<=fp)break;RA++,wc=0,sf=xn[RA][wc],Df=Re[RA][wc],fp+=Df}var xc=ue[RA],_A=xc[2*wc],lv=xc[2*wc+1],ff=(Nc-(fp-Df))/Df,tm=new ke(_A+(xc[2*wc+2]-_A)*ff+Zt/2-Kt.bounds.x,lv+(xc[2*wc+3]-lv)*ff+Zt/2-Kt.bounds.y);tm.scale(ot.scale,ot.scale);t:{var yA=sf,jg=xn[RA];if(!(.5005>ff&&.4995<ff)){var HA=yA;if(.5>ff?0<wc?HA=jg[wc-1]:En.$(xc[0],xc[xc.length-2])&&En.$(xc[1],xc[xc.length-1])&&(HA=jg[jg.length-1]):.5<ff&&(wc+1<jg.length?HA=jg[wc+1]:En.$(xc[0],xc[xc.length-2])&&En.$(xc[1],xc[xc.length-1])&&(HA=jg[0])),yA!==HA){var pp=Math.abs(yA-HA);if(180<pp&&(yA<HA?yA+=360:HA+=360,pp=Math.abs(yA-HA)),5e-4>ff||.9995<ff){sf=(yA+HA)/2%360;break t}if(10>pp){var em=1-Math.abs(.5-ff);sf=(yA*em+HA*(1-em))%360;break t}}}sf=yA}if(Ic instanceof sa){var rA="";Ic.graduatedFunction!==null?(rA=Ic.graduatedFunction(kc,Ic),rA=rA!=null?rA.toString():""):rA=(+kc.toFixed(2)).toString(),rA!==""&&vA.push({$l:tm,angle:sf,text:rA})}else vA.push({$l:tm,angle:sf})}kc=Xm+of*Dg}}}a.graduatedMarks.push(vA)}wr(xn);var rh=a.graduatedMarks;if(rh!==null)for(var $m=b.length,tc=0;tc<$m;tc++){var eu=b[tc],ec=rh[tc];if(eu.visible&&eu!==ot&&ec.length!==0){if(eu instanceof ko){var gf=a,jf=E,Ug=eu.alignmentFocus;Ug.Mc()&&(Ug=bl);var by=eu.angle;eu.Kb=0,eu.measure(1/0,1/0,0,0),eu.Kb=by;var uv=eu.measuredBounds,nm=uv.width,Rg=uv.height,mp=ai.allocAt(0,0,nm,Rg),Sc=ke.alloc();Sc.xi(mp,Ug),ai.free(mp);for(var pf=-Sc.x,wA=-Sc.y,vd=new ai,mg=ec.length,im=0;im<mg;im++)for(var vg=ec[im],hv=vg.$l.x,rm=vg.$l.y,Hl=vg.angle,oA=0;4>oA;oA++){switch(oA){case 0:Sc.h(pf,wA);break;case 1:Sc.h(pf+nm,wA);break;case 2:Sc.h(pf,wA+Rg);break;case 3:Sc.h(pf+nm,wA+Rg)}Sc.rotate(Hl+eu.angle),Sc.offset(hv,rm),im===0&&oA===0?vd.h(Sc.x,Sc.y,0,0):vd.Ye(Sc),Sc.offset(-hv,-rm),Sc.rotate(-Hl-eu.angle)}ke.free(Sc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(vd),bs(jf,vd.x,vd.y,vd.width,vd.height)}else if(eu instanceof sa){var Rd=a,cv=E;Rd.temporaryTextBlock===null&&(Rd.temporaryTextBlock=new sa);var Tc=Rd.temporaryTextBlock;Eg(Tc,eu);var Uf=eu.alignmentFocus;Uf.Mc()&&(Uf=bl);for(var _d=eu.segmentOrientation,om=eu.segmentOffset,yg=new ai,Ym=0,sm=0,QA=0,_g=0,wg=0,am=ec.length,Rf=0;Rf<am;Rf++){var af=ec[Rf];Ym=af.$l.x,sm=af.$l.y,QA=af.angle,wg=_g=eu.angle,_d!==Xh&&(wg=_d===wm||_d===v0?QA+eu.angle:QA,_g=Wi.computeAngle(_d,wg)),Tc.Kb=_g,Tc.text=af.text||"",Tc.measure(1/0,1/0,0,0);var _f=Tc.measuredBounds,mf=Tc.naturalBounds,Hf=mf.width,Hg=mf.height,xA=Ro.alloc();xA.reset(),xA.translate(-_f.x,-_f.y),xA.scale(Tc.scale,Tc.scale),xA.rotate(wg,Hf/2,Hg/2),_d!==xm&&_d!==Cm||xA.rotate(90,Hf/2,Hg/2),_d!==Sm&&_d!==Bm||xA.rotate(-90,Hf/2,Hg/2),_d===y0&&(45<QA&&135>QA||225<QA&&315>QA)&&xA.rotate(-QA,Hf/2,Hg/2);var vp=ai.allocAt(0,0,Hf,Hg),Qf=ke.alloc();Qf.xi(vp,Uf),xA.Ga(Qf);var yp=-Qf.x,Ey=-Qf.y,vf=ke.alloc();vf.assign(om),isNaN(vf.x)&&(vf.x=Hf/2+3),isNaN(vf.y)&&(vf.y=-(Hg/2+3)),vf.rotate(QA),Ym+=vf.x+yp,sm+=vf.y+Ey;var Qg=new ai(Ym,sm,_f.width,_f.height),Jm=new ai(_f.x,_f.y,_f.width,_f.height),Fy=new ai(mf.x,mf.y,mf.width,mf.height);af.Sz=_g,af.lineCount=Tc.lineCount,af.lines=[Tc.Cb,Tc.Ih,Tc.df,Tc.Le,Tc.Qc,Tc.Qb,Tc.ze],af.actualBounds=Qg,af.measuredBounds=Jm,af.naturalBounds=Fy,Rf===0?yg.assign(Qg):yg.ed(Qg),ke.free(vf),ke.free(Qf),ai.free(vp),Ro.free(xA)}Rd.graduatedBounds!==null&&Rd.graduatedBounds.push(yg),bs(cv,yg.x,yg.y,yg.width,yg.height)}kl(eu,!1)}}},Jo.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,ot=z[nt];nt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var at=y.length,ut=0;ut<at;ut++){var ct=y[ut];ot=E[ut],ct.visible&&ct!==b&&ot.length!==0&&(ot=z[nt],nt++,ct.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},Jo.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,nt=E.height;E=y instanceof nh,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=z.actualBounds,at=a.O.s,ut=a.graduatedMarks,ct=at.length,yt=0;yt<ct;yt++){var It=at[yt],Kt=ut[yt],Zt=Kt.length;if(It.visible&&It!==z&&Kt.length!==0){if(It instanceof ko){if(!(2>a.graduatedTickUnit*It.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&It.graduatedSkip===null)){var ue=It.measuredBounds,Re=It.strokeWidth*It.scale,Fe=It.alignmentFocus;Fe.Mc()&&(Fe=bl);for(var We=0;We<Zt;We++){var Je=Kt[We].$l,nn=Kt[We].angle,xn=Fe,Vn=It.Ab;Vn.reset(),Vn.translate(Je.x+ot.x,Je.y+ot.y),Vn.rotate(nn+It.angle,0,0),Vn.translate(-ue.width*xn.x+xn.offsetX+Re/2,-ue.height*xn.y+xn.offsetY+Re/2),Vn.scale(It.scale,It.scale),uc(It,!1),It.wh.set(It.Ab),It.Kk=It.scale,hh(It,!1),It.gc(y,x),E&&(a.svg.appendChild(It.svg),It.svg=null),It.Ab.reset()}}}else if(It instanceof sa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new sa),ue=a.temporaryTextBlock,Eg(ue,It),Re=0;Re<Zt;Re++)Fe=Kt[Re],Fe.actualBounds&&Fe.measuredBounds&&Fe.naturalBounds&&(ue.ec=Fe.text||"",ue.Kb=Fe.Sz||0,ue.Gc=Fe.lineCount||0,We=Fe.lines,We!==void 0&&(ue.Cb=We[0],ue.Ih=We[1],ue.df=We[2],ue.Le=We[3],ue.Qc=We[4],ue.Qb=We[5],ue.ze=We[6]),Fe.naturalBounds&&(ue.dc=Fe.naturalBounds),Fe.actualBounds&&(We=Fe.actualBounds,ue.arrange(We.x,We.y,We.width,We.height)),We=Fe.actualBounds,ue.arrange(We.x,We.y,We.width,We.height),Je=Fe.measuredBounds,Fe=Fe.naturalBounds,nn=ue.Ab,nn.reset(),nn.translate(We.x+ot.x,We.y+ot.y),nn.translate(-Je.x,-Je.y),ue.no(nn,Fe.x,Fe.y,Fe.width,Fe.height),uc(ue,!1),ue.wh.set(ue.Ab),ue.Kk=ue.scale,hh(ue,!1),ue.Ng=It.part,ue.Me=It.panel,ue.gc(y,x),ue.Me=null,ue.Ng=null,E&&(a.svg.appendChild(ue.svg),ue.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function ci(a,y){if(fn.call(this),this.na=null,a===void 0)this.na=ci.Position;else if(typeof a=="string"){var x=ch.I(a);x!==null&&(this.na=x)}else a instanceof yn?this.na=a:a&&(this.na=ci.Position,y=a);this.na===null&&gn("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ci.Grid?1048576:0),this.O=new Ci,this.yb=Su,this.Tm=Es,this.Uf=vo,this.$g=null,this.$e="",this.jg=new ai(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Sr,this.jn=Qo,this.kn=ts,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Mn(ci,fn),ci.prototype.cloneProtected=function(a){fn.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},ci.prototype.Af=function(a){fn.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},ci.prototype.copy=function(){var a=fn.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof hr&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(dl,"elements",a,null,E,null,nt)}}return a}return null},$t=ci.prototype,$t.toString=function(){return"Panel("+this.type.name+")#"+fs(this)},$t.Pn=function(a){fn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},$t.hh=function(a,y){if(this.na===ci.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ci.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ci.Table)if(a.yc(),a instanceof nh){var x=a.yd;a.yd=Id(a,"gojs-ts"),os(this,a),a.nh.pop(),a.yd=x}else os(this,a);(x=this.isClipping&&this.na===ci.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function os(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Pl(a,y,!0,x,!0),b!==null&&Pl(a,y,!1,b,!0),x!==null&&Bl(a,y,!0,x),b!==null&&Bl(a,y,!1,b),x!==null&&Pl(a,y,!0,x,!1),b!==null&&Pl(a,y,!1,b,!1)}function Bl(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ut=b[at];if(ut!==void 0&&ut.actual!==0)if(ot)ot=!1;else{if(x){if(ut.position>nt.height)continue}else if(ut.position>nt.width)continue;var ct=ut.separatorStrokeWidth;isNaN(ct)&&(ct=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var yt=ut.separatorStroke;if(yt===null&&(yt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ct!==0&&yt!==null){xa(a,y,yt,!1,!1,nt,z),yt=!1;var It=ut.separatorDashArray;It===null&&(It=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),It!==null&&(yt=!0,y.js(It,0)),y.beginPath(),It=ut.position+ct,x?It>nt.height&&(ct-=It-nt.height):It>nt.width&&(ct-=It-nt.width),ut=ut.position+ct/2,y.lineWidth=ct,ct=a.yb,x?(ut+=ct.top,It=nt.width-ct.right,y.moveTo(ct.left,ut),y.lineTo(It,ut)):(ut+=ct.left,It=nt.height-ct.bottom,y.moveTo(ut,ct.top),y.lineTo(ut,It)),y.stroke(),y.Se(),yt&&y.fs()}}}}function Pl(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=el(a,!0),ut=el(a,!1),ct=0;ct<z;ct++){var yt=b[ct];if(yt!==void 0&&yt.background!==null&&yt.coversSeparators!==E&&yt.actual!==0){var It=x?nt.height:nt.width;if(!(yt.position>It)){var Kt=yt.Wc(),Zt=yt.separatorStrokeWidth;isNaN(Zt)&&(Zt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ue=yt.separatorStroke;ue===null&&(ue=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ue===null||yt.index===(x?at:ut))&&(Zt=0),Kt-=Zt,Zt=yt.position+Zt,Kt+=yt.actual,Zt+Kt>It&&(Kt=It-Zt),0>=Kt||(It=a.yb,xa(a,y,yt.background,!0,!1,ot,nt),x?y.fillRect(It.left,Zt+It.top,nt.width-(It.left+It.right),Kt):y.fillRect(Zt+It.left,It.top,Kt,nt.height-(It.top+It.bottom)))}}}}function el(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function za(a){return a==="LineV"||a==="BarV"}$t.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},$t.kk=function(a,y,x){if(!fn.prototype.kk.call(this,a,y,x))return!1;if(this.type===ci.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,os(this,a),a.yd=null;else if(this.na===ci.Grid||this.na===ci.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},$t.nk=function(){return!0},$t.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;E=nt===0?ot.x:Math.min(ot.x,E),z=nt===0?ot.y:Math.min(ot.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else fn.prototype.$o.call(this,a,y,x,b)},$t.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ut=-nt.m12*ot,ct=-nt.m21*ot,yt=nt.m11*ot,It=ot*(nt.m21*nt.dy-nt.m22*nt.dx),Kt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,En.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*ct+It,ot=a*ut+y*yt+Kt,a=x*at+b*ct+It,at=x*ut+b*yt+Kt,E.h(0,0),x=this.naturalBounds,z=En.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,ct=ut=0,yt=1,Kt=It=0),ot=a*at+y*ct+It,a=a*ut+y*yt+Kt,at=x*at+b*ct+It,x=x*ut+b*yt+Kt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ut=!1,yt=this.O.s,Kt=yt.length,ct=ke.alloc(),It=null,y=1/0;var Zt=null,ue=this.isClipping&&this.na===ci.Spot;ue&&(Zt=ke.alloc(),It=this.Pb(),(ut=It.Sj(ot,a,at,x,Zt))&&(y=(ot-Zt.x)*(ot-Zt.x)+(a-Zt.y)*(a-Zt.y)));for(var Re=0;Re<Kt;Re++){var Fe=yt[Re];Fe.visible&&Fe!==It&&Fe.Sj(ot,a,at,x,ct)&&(ut=!0,Fe=(ot-ct.x)*(ot-ct.x)+(a-ct.y)*(a-ct.y),Fe<b&&(b=Fe,E.set(ct)))}return ue&&(y>b&&E.set(Zt),ke.free(Zt)),ke.free(ct),z&&E.transform(nt),ut},$t.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();fn.prototype.Gj.call(this)},$t.v=function(a){if(!Sh(this)){fn.prototype.v.call(this,a),a=null,(this.na===ci.Auto||this.na===ci.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=uh(E,!1);(E instanceof Zh||E instanceof ci||E instanceof sa||z!==bi)&&E.v(!0)}}}},$t.Uj=function(){if(!Sh(this)){kl(this,!0),Wc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},$t.Uk=function(){if(!(this.l&2048)){uc(this,!0),hh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},$t.Wu=function(){hh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},$t.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var ut=this.O.s;ut.length!==0&&this.na.measure(this,a,y,ut,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(ot.width,a),at=Math.min(ot.height,at),a=Math.max(nt.width,a),at=Math.max(nt.height,at),a=Math.max(x,a),at=Math.max(b,at),Ga(E,a,at),Ga(this.naturalBounds,a,at),this.Ge(0,0,a,at)},$t.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function Ra(a){return a.part!==null?a.part.locationObject:null}$t.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=uh(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var nt=this.Kg,ot=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&z===b&&(a=bi),a){case bi:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Ti:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case Dr:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case Jr:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},$t.gh=function(a){var y=this.naturalBounds,x=Ra(this);if(Hs(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=ke.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(wo(E.set(a),z.transform),z.ca(E)))return ke.free(E),!0}return ke.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},$t.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},$t.qm=function(a,y){if(y(this,a),a instanceof ci){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function hl(a,y){Ma(a,a,y)}function Ma(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof ci&&Ma(a,z,x)}}function Wh(a,y){ud(a,a,y)}function ud(a,y,x){if(x(y),y instanceof ci){y=y.O.s;for(var b=y.length,E=0;E<b;E++)ud(a,y[E],x)}}$t.Nl=function(a){return Rh(this,this,a)};function Rh(a,y,x){if(x(y))return y;if(y instanceof ci){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=Rh(a,y[E],x);if(z!==null)return z}}return null}$t.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=OA(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof ci){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function hd(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof ci?x=Math.max(x,hd(E)):E instanceof ko&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}$t.se=function(){return!(this.type===ci.TableRow||this.type===ci.TableColumn)};function Tl(a){return a.type===ci.TableRow||a.type===ci.TableColumn}$t.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),eh(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:wo(ke.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ut=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ut=at/2),Hs(-(ut*E),-(ut*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var ct=E.length;if(ot=ke.alloc(),ut=(at=this.isClipping&&this.na===ci.Spot)?this.Pb():null,at&&(ut.se()?wo(ot.set(a),ut.transform):ot.set(a),!ut.ca(ot)))return ke.free(ot),z||ke.free(nt),null;for(var yt=Ra(this);ct--;){var It=E[ct];if((It.visible||It===yt)&&(It.se()?wo(ot.set(a),It.transform):ot.set(a),!at||It!==ut)){var Kt=null;if(It instanceof ci?Kt=It.ic(ot,y,x):It.pickable===!0&&It.ca(ot)&&(Kt=It),Kt!==null&&(y!==null&&(Kt=y(Kt)),Kt!==null&&(x===null||x(Kt))))return ke.free(ot),z||ke.free(nt),Kt}}ke.free(ot)}return this.background===null&&this.areaBackground===null?(z||ke.free(nt),null):(a=Hs(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||ke.free(nt),a)}return z||ke.free(nt),null},$t.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),nt=z?a:wo(ke.allocAt(a.x,a.y),this.transform);if(E=Hs(0,0,E.width,E.height,nt.x,nt.y),Tl(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ut=ke.alloc(),ct=Ra(this);at--;){var yt=ot[at];if(yt.visible||yt===ct){yt.se()?wo(ut.set(a),yt.transform):ut.set(a);var It=yt;yt=yt instanceof ci?yt:null,(yt!==null?yt.ji(ut,y,x,b):It.ca(ut))&&It.pickable!==!1&&(y!==null&&(It=y(It)),It===null||x!==null&&!x(It)||b.add(It))}}ke.free(ut)}return z||ke.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||ke.free(nt),!1},$t.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=Ro.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Ro.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=Ra(this),at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===ot){var yt=ct.actualBounds,It=this.naturalBounds;yt.x>It.width||yt.y>It.height||0>yt.x+yt.width||0>yt.y+yt.height||(yt=ct,ct=ct instanceof ci?ct:null,It=Ro.alloc(),It.set(nt),(ct!==null?ct.Cf(a,y,x,b,E,It):Cl(yt,a,b,It))&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||E.add(yt)),Ro.free(It))}}return z===void 0&&Ro.free(nt),b}return z===void 0&&Ro.free(nt),!1};function cd(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var ot=nt.actualBounds,at=a.naturalBounds;ot.x>at.width||ot.y>at.height||0>ot.x+ot.width||0>ot.y+ot.height||(nt instanceof ci&&cd(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}$t.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ot=this.se(),at=ot?a:wo(ke.allocAt(a.x,a.y),this.transform),ut=ot?y:wo(ke.allocAt(y.x,y.y),this.transform),ct=at.Bf(ut),yt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||ks(at.x,at.y,0,0,0,nt.height)<=ct||ks(at.x,at.y,0,nt.height,nt.width,nt.height)<=ct||ks(at.x,at.y,nt.width,nt.height,nt.width,0)<=ct||ks(at.x,at.y,nt.width,0,0,0)<=ct;if(nt=at.zd(0,0)<=ct&&at.zd(0,nt.height)<=ct&&at.zd(nt.width,0)<=ct&&at.zd(nt.width,nt.height)<=ct,ot||(ke.free(at),ke.free(ut)),yt){if(!this.isAtomic){at=ke.alloc(),ut=ke.alloc(),ct=Ra(this);for(var It=this.O.s,Kt=It.length;Kt--;){var Zt=It[Kt];if(Zt.visible||Zt===ct){var ue=Zt.actualBounds,Re=this.naturalBounds;(!ot||!(ue.x>Re.width||ue.y>Re.height||0>ue.x+ue.width||0>ue.y+ue.height))&&(Zt.se()?(ue=Zt.transform,wo(at.set(a),ue),wo(ut.set(y),ue)):(at.set(a),ut.set(y)),ue=Zt,Zt=Zt instanceof ci?Zt:null,(Zt!==null?Zt.og(at,ut,x,b,E,z):ue.tx(at,ut,E))&&(x!==null&&(ue=x(ue)),ue===null||b!==null&&!b(ue)||z.add(ue)))}}ke.free(at),ke.free(ut)}return E?yt:nt}return!1};function dd(a){var y=null;return a instanceof ko&&(y=a.spot1,y===Es&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=nl),y}function Vh(a){var y=null;return a instanceof ko&&(y=a.spot2,y===Es&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Yl),y}$t.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},$t.M=function(a){return this.O.M(a)},$t.Gb=function(a,y){y instanceof Zr&&gn("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&gn("Cannot make a Panel contain itself: "+this.toString()),gn("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&gn("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==ci.Grid||y instanceof ko||gn("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ci.Graduated||y instanceof ko||y instanceof sa||gn("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new gr),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,nt=this.O.s,ot=nt.length,at=0;at<ot;at++)if(nt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else gn("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Sh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ci&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Xg(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof hr&&(x.Te=!0),x.Te&&x instanceof hr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ql,"elements",this,y,null,b,null),x.cb(dl,"elements",this,null,y,null,a)))};function hc(a,y){a.l=y?a.l|16777216:a.l&-16777217}$t.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},$t.mb=function(a){0<=a&&this.pc(a,!0)},$t.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),kl(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof hr&&(b instanceof ci?b.qm(b,function(nt,ot){Ev(z,ot,y)}):Ev(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ql,"elements",this,b,null,a,null))},$t.Fb=function(a){0>a&&Ni(a,">= 0",ci,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Zl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(dl,"rowdefs",this,null,x,null,a)}return y[a]},$t.oA=function(a){if(0>a&&Ni(a,">= 0",ci,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Ql,"rowdefs",this,x,null,a,null),this.v()}}};function Vc(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Zl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}$t.Eb=function(a){0>a&&Ni(a,">= 0",ci,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Zl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(dl,"coldefs",this,null,x,null,a)}return y[a]},$t.jA=function(a){if(0>a&&Ni(a,">= 0",ci,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Ql,"coldefs",this,x,null,a,null),this.v()}}};function qd(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Zl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}$t.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Xf(y,a),this},$t.Hy=function(a,y){return(a=this.Fb(a))&&Xf(a,new Zl(y)),this},$t.By=function(a,y){return(a=this.Eb(a))&&Xf(a,new Zl(y)),this},$t.nz=function(a){if(0>a||this.type!==ci.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},$t.fz=function(a){if(0>a||this.type!==ci.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},$t.Fz=function(a,y){if(y===void 0&&(y=new ke(NaN,NaN)),this.type!==ci.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},$t.Gz=function(a){if(this.type!==ci.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function TA(a){return a=a.allBindings,a!==null&&a._isFrozen}function ou(a){var y=a.allBindings;if(y===null)a.data!==null&&gn("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ci;else if(y._isFrozen)return;var x=new Ci;hc(a,!1),a.qm(a,function(ut,ct){ct.th();var yt=ct.localBindings;if(yt!==null)for(ad(ct,!1),yt=yt.iterator;yt.next();){var It=yt.value;It.mode===Im&&ad(ct,!0);var Kt=It.sourceName;Kt!==null&&(Kt==="/"&&hc(ut,!0),Kt=k1(It,ut,ct),Kt!==null&&(x.add(Kt),Kt.srcBindings===null&&(Kt.srcBindings=new Ci),Kt.srcBindings.add(It))),y.add(It)}if(ct instanceof ci&&ct.type===ci.Table){if(0<ct.rowCount){for(ut=ct.rowDefs,yt=ut.length,It=0;It<yt;It++)if(Kt=ut[It],Kt!==void 0&&Kt.be!==null)for(var Zt=Kt.be.iterator;Zt.next();){var ue=Zt.value;ue.xd=Kt,ue.to=2,ue.wl=Kt.index,y.add(ue)}}if(0<ct.columnCount){for(ct=ct.colDefs,ut=ct.length,yt=0;yt<ut;yt++)if(It=ct[yt],It!==void 0&&It.be!==null)for(Kt=It.be.iterator;Kt.next();)Zt=Kt.value,Zt.xd=It,Zt.to=1,Zt.wl=It.index,y.add(Zt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){ad(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new Ci),E.localBindings.add(nt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var ot=E.targetProperty,at=ot.indexOf(".");0<at&&z instanceof ci&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):$i('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Zl?(nt=fs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof fn?(nt=fs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):gn("Unknown type of binding target: "+z)}y.freeze(),a instanceof Zr&&a.Zc()&&a.Va()}$t.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Wh(y,function(x){x instanceof ci&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&ou(y),y},$t.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,nt=x.Ai;if(nt!==-1){if(z=this.ks(nt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof ci))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},$t.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function uf(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof ci&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var nt=0;E<x&&nt<b;){if(z=a[E],!(z instanceof ci)||z.data!==y[nt])return!0;E++,nt++}return!1}function OA(a){if(a.type===ci.Spot||a.type===ci.Auto)return Math.min(a.O.length,1);if(a.type===ci.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof ko&&b.isPanelMain))break}return x}return a.type===ci.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ci&&Tl(a))?1:0}$t.mv=function(){for(var a=OA(this);this.O.length>a;)this.pc(this.O.length-1,!1);Zf(this,this.itemArray)};function Zf(a,y){var x=OA(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)DA(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof ci){if(nt.data!==z){var ot=Zg(a,nt.data),at=Zg(a,z),ut=at!==ot;ut||(ot=Bp(a,ot),ut=Bp(a,at)!==ot),ut?(a.pc(b,!1),DA(a,z,E,!1)):nt.data=z}}else DA(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,gh(a,x,0),Sh(a)||a.v(),a.graduatedIntervals=null,a.If()||Xg(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof hr&&(y.Te=!0),y.Te&&y instanceof hr&&(y.wc=null))}}function DA(a,y,x,b){if(!(y==null||0>x)){var E=Zg(a,y);if(E=Bp(a,E),E!==null){if(ou(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&hc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new gr),a.ge.add(y,E)),z=x+OA(a),a.Gb(z,E),b&&(E.ub=y,gh(a,z,x),E.ub=null),E.data=y}}}function gh(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof ci){var E=y,z=x;b.type===ci.TableRow?b.row=E:b.type===ci.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Zg(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Xl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;gn("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Bp(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(Bg||(Bg=!0,$i('No item template Panel found for category "'+y+'" on '+a),$i(" Using default item template."),a=new ci,y=new sa,y.bind(new ql("text","",xr)),a.add(y),$g=a),b=$g)),b}function Xg(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof ci){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof ci&&!z.isEnabled||Xg(a,z,x)}}}function Zc(a,y){y.name=a,ch.add(a,y)}qe.Object.defineProperties(ci.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ci.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Ni(a,">= 0",ci,"padding"),a=new Gr(a)):(0>a.left&&Ni(a.left,">= 0",ci,"padding:value.left"),0>a.right&&Ni(a.right,">= 0",ci,"padding:value.right"),0>a.top&&Ni(a.top,">= 0",ci,"padding:value.top"),0>a.bottom&&Ni(a.bottom,">= 0",ci,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Su},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Mh),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof js)&&(a instanceof js&&a.freeze(),this.T===null&&(this.T=new Mh),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Mh),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||gn("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Mh),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof js)&&(a instanceof js&&a.freeze(),this.T===null&&(this.T=new Mh),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Mh),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||gn("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Mh),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Mh),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||gn("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pc(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||gn("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pc(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),du(this)&&(a=this.part,a!==null&&na(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),du(this)&&(a=this.part,a!==null&&na(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Xc),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Xc,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Xc,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Xc,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Xc,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Mh),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Mh),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Yf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Mh),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Yf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Mh),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&gn("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Mh),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&gn("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Mh),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof Zr&&!(this instanceof Fs);ou(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Wi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Zr&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new GA),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&uf(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Vv(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&Wv(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||Zf(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new gr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Zr||a.isPanelMain)&&gn("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Io(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Io(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof To&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Xg(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),qe.Object.defineProperties(ci,{Position:{get:function(){return ch.I("Position")}},Horizontal:{get:function(){return ch.I("Horizontal")}},Vertical:{get:function(){return ch.I("Vertical")}},Spot:{get:function(){return ch.I("Spot")}},Auto:{get:function(){return ch.I("Auto")}},Table:{get:function(){return ch.I("Table")}},Viewbox:{get:function(){return ch.I("Viewbox")}},TableRow:{get:function(){return ch.I("TableRow")}},TableColumn:{get:function(){return ch.I("TableColumn")}},Link:{get:function(){return ch.I("Link")}},Grid:{get:function(){return ch.I("Grid")}},Graduated:{get:function(){return ch.I("Graduated")}}}),ci.prototype.rebuildItemElements=ci.prototype.mv,ci.prototype.findItemPanelForData=ci.prototype.sx,ci.prototype.updateTargetBindings=ci.prototype.La,ci.prototype.copyTemplate=ci.prototype.Uy,ci.prototype.graduatedValueForPoint=ci.prototype.Gz,ci.prototype.graduatedPointForValue=ci.prototype.Fz,ci.prototype.findColumnForLocalX=ci.prototype.fz,ci.prototype.findRowForLocalY=ci.prototype.nz,ci.prototype.addColumnDefinition=ci.prototype.By,ci.prototype.addRowDefinition=ci.prototype.Hy,ci.prototype.addRowColumnDefinition=ci.prototype.Gy,ci.prototype.removeColumnDefinition=ci.prototype.jA,ci.prototype.getColumnDefinition=ci.prototype.Eb,ci.prototype.removeRowDefinition=ci.prototype.oA,ci.prototype.getRowDefinition=ci.prototype.Fb,ci.prototype.removeAt=ci.prototype.mb,ci.prototype.remove=ci.prototype.remove,ci.prototype.insertAt=ci.prototype.Gb,ci.prototype.elt=ci.prototype.M,ci.prototype.add=ci.prototype.add,ci.prototype.findObject=ci.prototype.fb,ci.prototype.findInVisualTree=ci.prototype.Nl,ci.prototype.walkVisualTreeFrom=ci.prototype.qm,ci.prototype.findMainElement=ci.prototype.Pb;var Bg=!1,$g=null,ch=new gr;ci.className="Panel",ci.definePanelLayout=Zc,Zc("Position",new In),Zc("Vertical",new fi),Zc("Auto",new Ii),Zc("Link",new $r);function Xc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Xc.prototype.copy=function(){var a=new Xc;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Xc.className="GradPanelSettings";function Mh(){this.Pc=[],this.Oc=[],this.j=this.ob=Yf,this.hb=this.Hb=0,this.Qp=Su,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Mh.prototype.copy=function(a){for(var y=new Mh,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var nt=x[z].copy();nt.wi(a),E[z]=nt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(nt=x[z].copy(),nt.wi(a),E[z]=nt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Mh.className="TablePanelSettings";function Zl(a){Zo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Es,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Pg,this.hg=vo,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Zl.prototype.copy=function(){var a=new Zl;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Br(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Xf(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Br(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}$t=Zl.prototype,$t.qb=function(a){a.classType===Zl&&(this.sizing=a)},$t.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+fs(this)},$t.wi=function(a){this.Me=a},$t.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},$t.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===ci.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var nt=b?y.rowDefs[z]:y.colDefs[z];if(nt!==void 0&&nt.oa!==0){x=nt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},$t.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Fa,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Yg(a){if(a.sizing===Pg){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}$t.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ql(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&TA(y)&&gn("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Ci),this.be.add(E),this},qe.Object.defineProperties(Zl.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Ni(a,">= 0",Zl,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Ni(a,">= 0",Zl,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Ni(a,">= 0",Zl,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Ni(a,">= 0",Zl,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Ht(a,"RowColumnDefinition.separatorStroke"),a instanceof js&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||gn("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ht(a,"RowColumnDefinition.background"),a instanceof js&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Zl.prototype.computeEffectiveSpacing=Zl.prototype.Wc,Zl.prototype.computeEffectiveSpacingTop=Zl.prototype.Io;var Pg=new Dn(Zl,"Default",0),$f=new Dn(Zl,"None",1),Yf=new Dn(Zl,"ProportionalExtra",2);Zl.className="RowColumnDefinition",Zl.Default=Pg,Zl.None=$f,Zl.ProportionalExtra=Yf;function ko(a,y){fn.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}Mn(ko,fn),ko.prototype.cloneProtected=function(a){fn.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Br(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Sf(a){a.Na===null?a.Na=new Ep:a.Na.nc&&(a.Na=a.Na.copy())}$t=ko.prototype,$t.th=function(){fn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},$t.qb=function(a){a===bi||a===Sr||a===Xo||a===vo?this.geometryStretch=a:fn.prototype.qb.call(this,a)},$t.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+fs(this)};function bg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var ot=x[0],at=x[1],ut,ct,yt,It,Kt,Zt,ue=0,Re=cr(),Fe=2;Fe<E;Fe+=2)ut=x[Fe],ct=x[Fe+1],yt=ut-ot,ot=ct-at,yt===0&&(yt=.001),It=ot/yt,Kt=Math.atan2(ot,yt),Zt=Math.sqrt(yt*yt+ot*ot),Re.push([yt,Kt,It,Zt]),ue+=Zt,ot=ut,at=ct;ot=x[0],at=x[1],yt=b.measuredBounds.width,b instanceof ko&&(yt-=b.strokeWidth),1>yt&&(yt=1),E=x=yt,ut=nt/2,ct=ut!==0,Fe=0,Zt=Re[Fe],yt=Zt[0],Kt=Zt[1],It=Zt[2],Zt=Zt[3];for(var We=0;.1<=ue;){if(We===0&&(ct?(E=x,E-=ut,ue-=ut,ct=!1):E=x,E===0&&(E=1)),E>ue){wr(Re);return}E>Zt?(We=E-Zt,E=Zt):We=0;var Je=Math.sqrt(E*E/(1+It*It));if(0>yt&&(Je=-Je),ot+=Je,at+=It*Je,a.translate(ot,at),a.rotate(Kt),a.translate(-(nt/2),-(z/2)),We===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-Kt),a.translate(-ot,-at),ue-=E,Zt-=E,We!==0){if(Fe++,Fe===Re.length){wr(Re);return}Zt=Re[Fe],yt=Zt[0],Kt=Zt[1],It=Zt[2],Zt=Zt[3],E=We}}wr(Re)}}$t.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,nt=this.naturalBounds;b!==null&&xa(this,a,b,!0,!1,nt,z);var ot=this.part,at=this.ig;if(x===null||at!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(at=ot.type===ci.Link&&ot instanceof Fs&&ot.category==="Selection"&&ot.adornedObject instanceof ko&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(xa(this,a,x,!1,!1,nt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),nt=!1,at=this.strokeDashArray,at!==null&&(nt=!0,a.js(at,this.strokeDashOffset)),E.type===Vi.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Vi.u){var ut=E.startX;at=E.startY;var ct=E.endX,yt=E.endY;E=Math.min(ut,ct);var It=Math.min(at,yt);ut=Math.abs(ct-ut),at=Math.abs(yt-at),a.beginPath(),a.rect(E,It,ut,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&ld(a),a.jk(),ot&&z&&kd(a)),a.Se()}else if(E.type===Vi.F)ut=E.startX,at=E.startY,ct=E.endX,yt=E.endY,E=Math.abs(ct-ut)/2,It=Math.abs(yt-at)/2,ut=Math.min(ut,ct)+E,at=Math.min(at,yt)+It,a.beginPath(),a.moveTo(ut,at-It),a.bezierCurveTo(ut+En.wg*E,at-It,ut+E,at-En.wg*It,ut+E,at),a.bezierCurveTo(ut+E,at+En.wg*It,ut+En.wg*E,at+It,ut,at+It),a.bezierCurveTo(ut-En.wg*E,at+It,ut-E,at+En.wg*It,ut-E,at),a.bezierCurveTo(ut-E,at-En.wg*It,ut-En.wg*E,at-It,ut,at-It),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&ld(a),a.jk(),ot&&z&&kd(a)),a.Se();else if(E.type===Vi.o)for(E=E.figures,at=E.length,It=0;It<at;It++){ut=E.s[It],a.beginPath(),a.moveTo(ut.startX,ut.startY),ct=ut.segments.s,yt=ct.length;for(var Kt=null,Zt=0;Zt<yt;Zt++){var ue=ct[Zt];switch(ue.type){case El:a.moveTo(ue.endX,ue.endY);break;case oa:a.lineTo(ue.endX,ue.endY);break;case gu:a.bezierCurveTo(ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY);break;case bh:a.quadraticCurveTo(ue.point1X,ue.point1Y,ue.endX,ue.endY);break;case wl:if(ue.radiusX===ue.radiusY){var Re=Math.PI/180;a.arc(ue.point1X,ue.point1Y,ue.radiusX,ue.startAngle*Re,(ue.startAngle+ue.sweepAngle)*Re,0>ue.sweepAngle,Kt!==null?Kt.endX:ut.startX,Kt!==null?Kt.endY:ut.startY)}else if(Kt=oh(ue,ut),Re=Kt.length,Re===0)a.lineTo(ue.centerX,ue.centerY);else for(var Fe=0;Fe<Re;Fe++){var We=Kt[Fe];Fe===0&&a.lineTo(We[0],We[1]),a.bezierCurveTo(We[2],We[3],We[4],We[5],We[6],We[7])}break;case zh:if(Fe=Re=0,Kt!==null&&Kt.type===wl){if(Kt=oh(Kt,ut),We=Kt.length,We===0){a.lineTo(ue.endX,ue.endY);break}Kt=Kt[We-1]||null,Kt!==null&&(Re=Kt[6],Fe=Kt[7])}else Re=Kt!==null?Kt.endX:ut.startX,Fe=Kt!==null?Kt.endY:ut.startY;if(Kt=Xu(ue,ut,Re,Fe),Re=Kt.length,Re===0){a.lineTo(ue.endX,ue.endY);break}for(Fe=0;Fe<Re;Fe++)We=Kt[Fe],a.bezierCurveTo(We[2],We[3],We[4],We[5],We[6],We[7]);break;default:gn("Segment not of valid type: "+ue.type)}ue.isClosed&&a.closePath(),Kt=ue}ct=ut.isFilled,z?ut.isShadowed?(ct===!0&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&(ct&&ot&&ld(a),a.jk(),ct&&ot&&kd(a))):(ld(a),ct&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk(),kd(a)):(ct&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk()),a.Se(It)}if(nt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=cr(),z.type===Vi.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),bg(a,y,b,x);else if(z.type===Vi.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,b.length=0,b.push(ot.startX),b.push(ot.startY),nt=ot.startX,E=ot.startY,at=nt,It=E,ut=ot.segments.s,ct=ut.length,yt=0;yt<ct;yt++){switch(Zt=ut[yt],Zt.type){case El:bg(a,y,b,x),b.length=0,b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY,at=nt,It=E;break;case oa:b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY;break;case gu:En.Qe(nt,E,Zt.point1X,Zt.point1Y,Zt.point2X,Zt.point2Y,Zt.endX,Zt.endY,.5,b),nt=Zt.endX,E=Zt.endY;break;case bh:En.ep(nt,E,Zt.point1X,Zt.point1Y,Zt.endX,Zt.endY,.5,b),nt=Zt.endX,E=Zt.endY;break;case wl:if(ue=oh(Zt,ot),Kt=ue.length,Kt===0){b.push(Zt.centerX),b.push(Zt.centerY),nt=Zt.centerX,E=Zt.centerY;break}for(Re=0;Re<Kt;Re++)Fe=ue[Re],En.Qe(nt,E,Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,b),nt=Fe[6],E=Fe[7];break;case zh:if(ue=Xu(Zt,ot,nt,E),Kt=ue.length,Kt===0){b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY;break}for(Re=0;Re<Kt;Re++)Fe=ue[Re],En.Qe(nt,E,Fe[2],Fe[3],Fe[4],Fe[5],Fe[6],Fe[7],.5,b),nt=Fe[6],E=Fe[7];break;default:gn("Segment not of valid type: "+Zt.type)}Zt.isClosed&&(b.push(at),b.push(It),bg(a,y,b,x))}bg(a,y,b,x)}else if(z.type===Vi.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),bg(a,y,b,x);else if(z.type===Vi.F){if(E=new qa,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new ys(wl),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(z.startX+z.endX)/2,nt.centerY=(z.startY+z.endY)/2,nt.radiusX=Math.abs(z.startX-z.endX)/2,nt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(nt),z=oh(nt,E),ot=z.length,ot===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=E.startX,E=E.startY,at=0;at<ot;at++)It=z[at],En.Qe(nt,E,It[2],It[3],It[4],It[5],It[6],It[7],.5,b),nt=It[6],E=It[7];bg(a,y,b,x)}wr(b),a.restore(),a.Vc(!1)}}}},$t.kk=function(a,y,x){return!fn.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},$t.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:fn.prototype.nk.call(this,a)},$t.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},$t.ga=function(a,y){if(y===void 0&&(y=new ke),a instanceof fr){a.Mc()&&gn("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},$t.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe;y=ai.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=ke.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),bs(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),bs(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),bs(a,b.x,b.y,0,0),ai.free(y),ke.free(b),a},$t.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Vi.j||y||(E+=2);var z=ai.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return ai.free(z),!1;if(b=E+1e-4,x.type===Vi.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(ai.free(z),En.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Vi.u){y=x.startX;var nt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(nt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-nt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return ai.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),ai.free(z),a}if(x.type===Vi.F){nt=x.startX,E=x.startY,ot=x.endX;var at=x.endY;if(x=Math.min(nt,ot),y=Math.min(E,at),nt=Math.abs(ot-nt)/2,E=Math.abs(at-E)/2,x=a.x-(x+nt),y=a.y-(y+E),this.fill===null){if(nt-=b,E-=b,0>=nt||0>=E||1>=x*x/(nt*nt)+y*y/(E*E))return ai.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),ai.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===Vi.o)return ai.free(z),this.fill===null?Ph(x,a.x,a.y,E):Gu(x,a,E,1<this.strokeWidth,y);gn("Unknown Geometry type: "+x.type)},$t.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var ot=this.figure,at=bp[ot];if(at===void 0){var ut=En.Ze[ot];typeof ut=="string"&&(ut=En.Ze[ut]),typeof ut=="function"?(at=ut(null,100,100),bp[ot]=at):gn("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ut=nt.width;var ct=nt.height;switch(uh(this,!0)){case bi:b=x=0;break;case Ti:ut=Math.max(a-z,0),ct=Math.max(y-z,0);break;case Dr:ut=Math.max(a-z,0),b=0;break;case Jr:x=0,ct=Math.max(y-z,0)}isFinite(E.width)&&(ut=E.width),isFinite(E.height)&&(ct=E.height);var yt=this.maxSize,It=this.minSize;switch(x=Math.max(x-z,It.width),b=Math.max(b-z,It.height),ut=Math.min(yt.width,ut),ct=Math.min(yt.height,ct),ut=isFinite(ut)?Math.max(x,ut):Math.max(ot,x),ct=isFinite(ct)?Math.max(b,ct):Math.max(at,b),x=Jg(this),x){case bi:break;case Ti:ot=ut,at=ct;break;case Sr:x=Math.min(ut/ot,ct/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:gn(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),at===0&&(at=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=ot/nt.width,nt=at/nt.height,isFinite(b)||(b=1),isFinite(nt)||(nt=1),this.ua=b===1&&nt===1?x:x.copy().scale(b,nt)):this.ua!==null&&En.$(this.ua.Sk,a-z)&&En.$(this.ua.Rk,y-z)||(this.ua=ko.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&ot===0?0:nt.width+z,y===0&&at===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ut+z,ct+z),E.w()?(ut=E.width,ct=E.height,ut=Math.min(yt.width,ut),ct=Math.min(yt.height,ct),ut=Math.max(It.width,ut),ct=Math.max(It.height,ct),this.dc.h(0,0,ut,ct)):this.dc.assign(nt)};function Jg(a){var y=a.geometryStretch;return a.Rd!==null?y===vo?Ti:y:y===vo?bp[a.figure].defaultStretch:y}$t.eh=function(a,y,x,b){ku(this,a,y,x,b)},$t.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},$t.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ut=-z.m21*nt,ct=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),It=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ut+yt,nt=a*at+y*ct+It,ot=x*ot+b*ut+yt,at=x*at+b*ct+It,yt=this.ig/2,ut=this.ua,ut===null&&(this.measure(1/0,1/0),ut=this.ua);var Kt=ut.bounds;if(ct=!1,ut.type===Vi.j)if(1.5>=this.strokeWidth)ct=En.Ve(ut.startX,ut.startY,ut.endX,ut.endY,z,nt,ot,at,E);else{if(ut.startX===ut.endX?(b=yt,ct=0):(y=(ut.endY-ut.startY)/(ut.endX-ut.startX),ct=yt/Math.sqrt(1+y*y),b=ct*y),y=cr(),a=new ke,En.Ve(ut.startX+b,ut.startY+ct,ut.endX+b,ut.endY+ct,z,nt,ot,at,a)&&y.push(a),a=new ke,En.Ve(ut.startX-b,ut.startY-ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),a=new ke,En.Ve(ut.startX+b,ut.startY+ct,ut.startX-b,ut.startY-ct,z,nt,ot,at,a)&&y.push(a),a=new ke,En.Ve(ut.endX+b,ut.endY+ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return wr(y),!1;for(ct=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<at&&(at=x,E.x=a.x,E.y=a.y);wr(y)}else if(ut.type===Vi.u)ct=En.Ff(Kt.x-yt,Kt.y-yt,Kt.x+Kt.width+yt,Kt.y+Kt.height+yt,z,nt,ot,at,E);else if(ut.type===Vi.F){y=ai.allocAt(Kt.x,Kt.y,Kt.width,Kt.height).Bc(yt,yt);t:if(y.width===0)ct=En.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)ct=En.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ut=y.height/2,b=y.x+a,ct=y.y+ut,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-ct-x*(z-b),0>a*a*x*x+ut*ut-at*at){E.x=NaN,E.y=NaN,ct=!1;break t}yt=Math.sqrt(a*a*x*x+ut*ut-at*at),ot=(-(a*a*x*at)+a*ut*yt)/(ut*ut+a*a*x*x)+b,a=(-(a*a*x*at)-a*ut*yt)/(ut*ut+a*a*x*x)+b,ut=x*(ot-b)+at+ct,at=x*(a-b)+at+ct,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ut)*(nt-ut))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ut):(E.x=a,E.y=at)}else{if(ot=ut*ut,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,ct=!1;break t}at=Math.sqrt(ot),ot=ct+at,at=ct-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}ct=!0}ai.free(y)}else if(ut.type===Vi.o){It=ke.alloc();var Zt=ot-z,ue=at-nt,Re=Zt*Zt+ue*ue,Fe=z,We=nt;if(0<Re&&Kt.contains(Fe,We)&&(It.x=Fe,It.y=We,this.ca(It)))for(Zt!==0&&.5>Math.abs(Zt)?(ue*=.5/Zt,Zt=.5):ue!==0&&.5>Math.abs(ue)&&(Zt*=.5/ue,ue=.5),Fe-=Zt,We-=ue;Kt.contains(Fe,We);)Fe-=Zt,We-=ue;for(E.x=ot,E.y=at,ue=0;ue<ut.figures.count;ue++){var Je=ut.figures.s[ue],nn=Je.isFilled?Fe:z,xn=Je.isFilled?We:nt,Vn=Je.segments;Kt=Je.startX,Zt=Je.startY;for(var ir=Kt,Lr=Zt,yr=0;yr<Vn.count;yr++){var Gi=Vn.s[yr],Mi=Gi.type,Fo=Gi.endX,mo=Gi.endY,Ns=!1;switch(Mi){case El:ir=Fo,Lr=mo;break;case oa:Ns=Pp(Kt,Zt,Fo,mo,nn,xn,ot,at,It);break;case gu:Ns=En.Eo(Kt,Zt,Gi.point1X,Gi.point1Y,Gi.point2X,Gi.point2Y,Fo,mo,nn,xn,ot,at,.6,It);break;case bh:Ns=En.Eo(Kt,Zt,Kt+2/3*(Gi.point1X-Kt),Zt+2/3*(Gi.point1Y-Zt),Fo+2/3*(Gi.point1X-Fo),mo+2/3*(Gi.point1Y-mo),Fo,mo,nn,xn,ot,at,.6,It);break;case wl:case zh:Mi=Gi.type===wl?oh(Gi,Je):Xu(Gi,Je,Kt,Zt);var pa=Mi.length;if(pa===0){Ns=Pp(Kt,Zt,Gi.type===wl?Gi.centerX:Gi.endX,Gi.type===wl?Gi.centerY:Gi.endY,nn,xn,ot,at,It);break}for(mo=null,Fo=0;Fo<pa;Fo++){if(mo=Mi[Fo],Fo===0&&Pp(Kt,Zt,mo[0],mo[1],nn,xn,ot,at,It)){var Ou=jA(nn,xn,It,Re,E);Ou<Re&&(Re=Ou,ct=!0)}En.Eo(mo[0],mo[1],mo[2],mo[3],mo[4],mo[5],mo[6],mo[7],nn,xn,ot,at,.6,It)&&(Ou=jA(nn,xn,It,Re,E),Ou<Re&&(Re=Ou,ct=!0))}Fo=mo[6],mo=mo[7];break;default:gn("Unknown Segment type: "+Mi)}Kt=Fo,Zt=mo,Ns&&(Ns=jA(nn,xn,It,Re,E),Ns<Re&&(Re=Ns,ct=!0)),Gi.isClosed&&(Fo=ir,mo=Lr,Pp(Kt,Zt,Fo,mo,nn,xn,ot,at,It)&&(Gi=jA(nn,xn,It,Re,E),Gi<Re&&(Re=Gi,ct=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*yt,E.y-=nt*yt,ke.free(It)}else gn("Unknown Geometry type: "+ut.type);return ct?(this.transform.Ga(E),!0):!1};function jA(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Pp(a,y,x,b,E,z,nt,ot,at){if(En.$(a,x)&&En.$(y,b)||En.$(E,nt)&&En.$(z,ot))return!1;var ut=!1,ct=(E-nt)*(y-b)-(z-ot)*(a-x);return ct===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/ct,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/ct,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||En.$(at.y,a))&&(at.y<y||En.$(at.y,y))&&(ut=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||En.$(at.x,y))&&(at.x<a||En.$(at.x,a))&&(ut=!0)),ut)}$t.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=ke.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),ke.free(z),E},$t.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ro.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=ke.alloc();if(nt.h(b,z),x.Ga(nt),this.gh(nt,!0)||(nt.h(E,z),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(E,a),x.Ga(nt),this.gh(nt,!0)))return ke.free(nt),!0;var ot=ke.alloc(),at=ke.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,Cf(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),Cf(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),Cf(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),Cf(this,nt,ot,at)&&(y=!0)))),ke.free(nt),Ro.free(x),ke.free(ot),ke.free(at),y};function Cf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}$t.tx=function(a,y,x){function b(Re,Fe){for(var We=Re.length,Je=0;Je<We;Je+=2)if(Fe.zd(Re[Je],Re[Je+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var nt=y.bounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width;if(nt=nt.y+nt.height,co(a.x,a.y,ot,at)<=E&&co(a.x,a.y,ut,at)<=E&&co(a.x,a.y,ot,nt)<=E&&co(a.x,a.y,ut,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ut=y.endX,nt=y.endY,y.type===Vi.j){if(x=(ot-ut)*(a.x-ut)+(at-nt)*(a.y-nt),ks(a.x,a.y,ot,at,ut,nt)<=(0<=(ut-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===Vi.u)return y=!1,x&&(y=ks(a.x,a.y,ot,at,ot,nt)<=E||ks(a.x,a.y,ot,at,ut,at)<=E||ks(a.x,a.y,ut,at,ut,nt)<=E||ks(a.x,a.y,ot,nt,ut,nt)<=E),y;if(y.type===Vi.F){y=a.x-(ot+ut)/2,z=a.y-(at+nt)/2;var ct=Math.abs(ut-ot)/2,yt=Math.abs(nt-at)/2;if(ct===0||yt===0)return ks(a.x,a.y,ot,at,ut,nt)<=E;if(x){if(a=En.$y(ct,yt,y,z),a*a<=E)return!0}else return!(co(y,z,-ct,0)>=E||co(y,z,0,-yt)>=E||co(y,z,0,yt)>=E||co(y,z,ct,0)>=E)}else if(y.type===Vi.o){if(ut=y.bounds,z=ut.x,ot=ut.y,at=ut.x+ut.width,ut=ut.y+ut.height,a.x>at&&a.x<z&&a.y>ut&&a.y<ot&&ks(a.x,a.y,z,ot,z,ut)>E&&ks(a.x,a.y,z,ot,at,ot)>E&&ks(a.x,a.y,at,ut,z,ut)>E&&ks(a.x,a.y,at,ut,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Ph(y,a.x,a.y,z):Gu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,ct=z.startY,a.zd(nt,ct)>E)return!1;for(ot=z.segments.s,at=ot.length,ut=0;ut<at;ut++)switch(yt=ot[ut],yt.type){case El:case oa:if(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E)return!1;break;case gu:var It=cr();if(En.Qe(nt,ct,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.8,It),nt=b(It,a),wr(It),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case bh:if(It=cr(),En.ep(nt,ct,yt.point1X,yt.point1Y,yt.endX,yt.endY,.8,It),nt=b(It,a),wr(It),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case wl:case zh:It=yt.type===wl?oh(yt,z):Xu(yt,z,nt,ct);var Kt=It.length;if(Kt===0){if(nt=yt.type===wl?yt.centerX:yt.endX,ct=yt.type===wl?yt.centerY:yt.endY,a.zd(nt,ct)>E)return!1;break}yt=null;for(var Zt=cr(),ue=0;ue<Kt;ue++)if(yt=It[ue],Zt.length=0,En.Qe(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.8,Zt),b(Zt,a))return wr(Zt),!1;wr(Zt),yt!==null&&(nt=yt[6],ct=yt[7]);break;default:gn("Unknown Segment type: "+yt.type)}}return!0}}}return!1},$t.qc=function(){this.ua=null},$t.kq=function(){return this.ig};function n0(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=wm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ja):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fr(1-Ja.x,Ja.y)))}ko.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Ad[a.toArrow];else a.fromArrow!=="None"?b=Ad[a.fromArrow]:(b=En.Ze[a.figure],typeof b=="string"&&(b=En.Ze[b]),b===void 0&&gn("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=En.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function um(a){var y=Ad[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Ad[x],y===void 0){var b=null,E;for(E in En.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Vi.parse(En.um[b],!1),Ad[b]=a,x!==b&&(Ad[x]=b),b}}return typeof y=="string"?y:y instanceof Vi?a:null}qe.Object.defineProperties(ko.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),du(this)&&(a=this.part,a!==null&&na(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Vi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=ke.allocAt(-y.x,-y.y),ke.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Ht(a,"Shape.fill"),a instanceof js&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ht(a,"Shape.stroke"),a instanceof js&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Ni(a,"value >= 0",ko,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Ni(a,'"butt", "round", or "square"',ko,"strokeCap"):(Sf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Ni(a,'"miter", "bevel", or "round"',ko,"strokeJoin"):(Sf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Sf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||gn("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Sf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=En.Ze[a];typeof x=="function"?x=a:(x=En.Ze[a.toLowerCase()])||gn("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=um(a);x===null?gn("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new NA),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),n0(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=um(a);x===null?gn("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new NA),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),n0(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Es},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Sf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Es},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Sf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Sf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:vo},set:function(a){var y=this.geometryStretch;y!==a&&(Sf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Od),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Pc(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),ko.prototype.intersectsRect=ko.prototype.Yc,ko.prototype.containedInRect=ko.prototype.fh,ko.prototype.getNearestIntersectionPoint=ko.prototype.rs,ko.prototype.getDocumentBounds=ko.prototype.mi,ko.prototype.getDocumentPoint=ko.prototype.ga;var Ad=new Kr,bp=new Kr;ko.className="Shape",ko.getFigureGenerators=function(){var a=new gr,y;for(y in En.Ze)y!==y.toLowerCase()&&a.add(y,En.Ze[y]);return a.freeze(),a},ko.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a},ko.getArrowheadGeometries=function(){var a=new gr;for(b in En.um)if(Ad[b]===void 0){var y=Vi.parse(En.um[b],!1);Ad[b]=y,y=b.toLowerCase(),y!==b&&(Ad[y]=b)}for(var x in Ad)if(x!==x.toLowerCase()){var b=Ad[x];b instanceof Vi&&a.add(x,b)}return a.freeze(),a},ko.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Vi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||gn("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Ad;b[a]=x,b[y]=a};function Ep(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=vo,this.gg=this.fg=Es}Ep.prototype.copy=function(){var a=new Ep;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function sa(a,y){return fn.call(this),Np||(Nh=vs?new Tu(null).context:null,Np=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}Mn(sa,fn),sa.prototype.cloneProtected=function(a){fn.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function fd(a){a.da===null?a.da=new np:a.da.nc&&(a.da=a.da.copy())}$t=sa.prototype,$t.th=function(){fn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Eg(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}$t.qb=function(a){a.classType===sa?this.wrap=a:fn.prototype.qb.call(this,a)},$t.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},$t.v=function(){fn.prototype.v.call(this)},$t.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,nt=Jf(this),ot=a.textAlign=this.textAlign,at=y.tn;ot==="start"?ot=at?"right":"left":ot==="end"&&(ot=at?"left":"right"),at=this.isUnderline;var ut=this.isStrikethrough;xa(this,a,this.xc,!0,!1,x,b),(at||ut)&&xa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ct=this.oe,yt=ct.dx-(nt*ct.m21+ct.dx);ct=ct.dy-(nt*ct.m22+ct.dy);var It=y.scale;switch(8>(yt*yt+ct*ct)*It*It&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof nh&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,yt=this.spacingBelow,this.flip){case as:a.translate(E,0),a.scale(-1,1);break;case No:a.translate(0,z),a.scale(1,-1);break;case Ms:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ct=this.Gc,It=(y+nt+yt)*ct,z>It&&(b=this.verticalAlignment,b=b.y*z-b.y*It+b.offsetY),ct===1&&this.ze!==null)yt=this.Cb,yt>E&&(yt=E),this.Oj(this.ze,a,0,b+y,E,nt,yt,x,ot,at,ut);else if(this.Qc!==null&&this.Qb!==null)for(It=0;It<ct;It++){var Kt=this.Qc[It];Kt>E&&(Kt=E),b+=y,this.Oj(this.Qb[It],a,0,b,E,nt,Kt,x,ot,at,ut),b+=nt+yt}switch(this.flip){case as:a.scale(-1,1),a.translate(-E,0);break;case No:a.scale(1,-1),a.translate(0,-z);break;case Ms:a.scale(-1,-1),a.translate(-E,-z)}}},$t.Oj=function(a,y,x,b,E,z,nt,ot,at,ut,ct){var yt=0;if(ot)at==="left"?yt=0:at==="right"?yt=E-nt:at==="center"&&(yt=(E-nt)/2),y.fillRect(x+yt,b+.25*z,nt,1);else{if(at==="left"?yt=0:at==="right"?yt=E:at==="center"&&(yt=E/2),E=qg!==null?qg(this,z):.75*z,y.fillText(a,x+yt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?yt-=nt:at==="center"&&(yt-=nt/2),ut){ot=Fp!==null?Fp(this,z):.8*z,at=x+yt,ut=b+ot,E=x+yt+nt,ot=b+ot;var It=a;y.beginPath(),y.lineWidth=It,y.moveTo(at,ut),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof nh&&y.ad.classList.add("gojs-td")}ct&&(ct=b+z-z/2.2|0,a%2!==0&&(ct+=.5),b=x+yt,z=ct,x=x+yt+nt,nt=ct,yt=a,y.beginPath(),y.lineWidth=yt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof nh&&y.ad.classList.add("gojs-td"))}},$t.kk=function(a,y,x){if(!fn.prototype.kk.call(this,a,y,x))return!1;if(xa(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Wf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Wf(a,y,!0);return!0},$t.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:fn.prototype.nk.call(this,a)},$t.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},$t.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Nh!==null&&Mp!==z&&(Mp=Nh.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var ot=nt=0,at=!1;!at;){var ut=z.indexOf(`
`,ot);ut===-1&&(ut=z.length,at=!0),ot=z.substr(ot,ut-ot),this.formatting===ep&&(ot=ot.trim()),nt=Math.max(nt,$c(ot)),ot=ut+1}z=nt}else nt=z.indexOf(`
`,0),0<=nt&&(z=z.substr(0,nt)),z=$c(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),nt=cm(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,at=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===tp&&(y=this.Ae,y=this.overflow===tp?cf(y):0,ut=this.spacingAbove+this.spacingBelow,ut=Math.max(0,Jf(this)+ut),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ut+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ut=this.Qb[at],y=Math.max(1,a-y);$c(ut)>y&&1<ut.length;)ut=ut.substr(0,ut.length-1);ut+=Bf,y=$c(ut),this.Qb[at]=ut,this.Qb=this.Qb.slice(0,at+1),this.Qc[at]=y,this.Qc=this.Qc.slice(0,at+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===qf||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),Ga(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},$t.eh=function(a,y,x,b){ku(this,a,y,x,b)};function Fg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function hm(a,y,x,b){var E=a.formatting===ep;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Jf(a)+ot);var at=a.overflow===tp?cf(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Lp){a.Le=1;var ut=$c(y);if(at===0||ut<=x)a.Cb=Math.max(a.Cb,ut),Fg(a,y,a.Cb),b!==null&&b.h(ut,ot);else{for(z=hf(a,nt),nt=nt.substr(z.length),y=hf(a,nt),ut=$c(z+y);0<y.length&&ut<=x;)z+=y,nt=nt.substr(y.length),y=hf(a,nt),ut=z+y,E&&(ut=ut.trim()),ut=$c(ut);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);$c(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Bf;var ct=$c(z);a.Cb=ct,Fg(a,z,ct),b!==null&&b.h(ct,ot)}}else{for(at=0,nt.length===0&&(at=1,Fg(a,nt,0));0<nt.length;){for(y=hf(a,nt),nt=nt.substr(y.length);$c(y)>x;){var yt=1;for(ut=$c(y.substr(0,yt)),ct=0;ut<=x;)yt++,ct=ut,ut=$c(y.substr(0,yt));if(yt===1){var It=ut;z=Math.max(z,ut)}else It=ct,z=Math.max(z,ct);if(yt--,1>yt&&(yt=1),Fg(a,y.substr(0,yt),It),at++,y=y.substr(yt),a.Gc+at>a.maxLines)break}for(ct=hf(a,nt),ut=$c(y+ct);0<ct.length&&ut<=x;)y+=ct,nt=nt.substr(ct.length),ct=hf(a,nt),ut=y+ct,E&&(ut=ut.trim()),ut=$c(ut);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ct.length===0?(yt=ut,z=Math.max(z,ut)):(yt=ct=$c(y),z=Math.max(z,ct)),Fg(a,y,yt),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*a.Le)}}function hf(a,y){if(a.wrap===Am)return y.substr(0,1);for(var x=y.length,b=0,E=gm;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Lg&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function $c(a){return Nh===null?8*a.length:Nh.measureText(a).width}function Jf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Nh===null){var x=16;return a.df=x}return Mg[y]!==void 0&&5e3>$A?x=Mg[y]:(x=1.3*Nh.measureText("M").width,Mg[y]=x,$A++),a.df=x}function cf(a){if(Nh===null)return 6;if(UA[a]!==void 0&&5e3>YA)var y=UA[a];else y=Nh.measureText(Bf).width,UA[a]=y,YA++;return y}function cm(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Jf(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,nt,ot=!1;!ot;){if(nt=x.indexOf(`
`,z),nt===-1&&(nt=x.length,ot=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Lp){a.Le=0;var at=Ki.alloc();hm(a,z,y,at),E+=at.height,Ki.free(at),a.Gc+=a.Le}else hm(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}qe.Object.defineProperties(sa.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(fd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:bi},set:function(a){var y=this.flip;y!==a&&(fd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ya},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),fd(this),this.da.Yr=a,Il(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Ki.alloc();hm(this,this.ec,999999,a);var y=a.width;Ki.free(a),a=cm(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ga(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:dm},set:function(a){var y=this.wrap;y!==a&&(fd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:fm},set:function(a){var y=this.overflow;y!==a&&(fd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ht(a,"TextBlock.stroke"),a instanceof js&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Jf(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(fd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(fd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Od),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(fd(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(fd(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(fd(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(fd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:ep},set:function(a){var y=this.formatting;y!==a&&(fd(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Ni(a,"> 0",sa,"maxLines"),fd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var qg=null,Fp=null,Lp=new Dn(sa,"None",0),qf=new Dn(sa,"WrapFit",1),dm=new Dn(sa,"WrapDesiredSize",2),Am=new Dn(sa,"WrapBreakAll",3),fm=new Dn(sa,"OverflowClip",0),tp=new Dn(sa,"OverflowEllipsis",1),ep=new Dn(sa,"FormatTrim",0),Lg=new Dn(sa,"FormatNone",0),gm=/[ \u200b\u00ad]/,Mg=new Kr,$A=0,UA=new Kr,YA=0,Bf="...",Mp="",Nh=null,Np=!1;sa.className="TextBlock";function np(){this.nc=!1,this.Hd=null,this.Xf=bi,this.gq=ep,this.Jq=1/0,this.$q=fm,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ya,this.$r=dm}np.prototype.copy=function(){var a=new np;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},sa.getEllipsis=function(){return Bf},sa.setEllipsis=function(a){Bf=a,UA=new Kr,YA=0},sa.getBaseline=function(){return qg},sa.setBaseline=function(a){qg=a},sa.getUnderline=function(){return Fp},sa.setUnderline=function(a){Fp=a},sa.isValidFont=function(a){if(Np||(Nh=vs?new Tu(null).context:null,Np=!0),Nh===null)return!0;var y=Nh.font;if(a===y||a==="10px sans-serif")return!0;Nh.font="10px sans-serif",Nh.font=a;var x=Nh.font;if(x!=="10px sans-serif")return Nh.font=y,!0;Nh.font="19px serif";var b=Nh.font;return Nh.font=a,x=Nh.font,Nh.font=y,x!==b},sa.FormatNone=Lg,sa.FormatTrim=ep,sa.None=Lp,sa.OverflowClip=fm,sa.OverflowEllipsis=tp,sa.WrapBreakAll=Am,sa.WrapDesiredSize=dm,sa.WrapFit=qf;function Od(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Od.prototype.copy=function(){var a=new Od;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Od.className="GradElementSettings";function cc(a,y){fn.call(this),this.Eg=null,this.qo="",this.Xg=Qs,this.Nk=Ti,this.Zg=this.Hd=null,this.Mk=Eo,this.Xf=bi,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Ip;Mn(cc,fn),cc.prototype.cloneProtected=function(a){fn.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},cc.prototype.qb=function(a){a===bi||a===Sr||a===Xo?this.imageStretch=a:fn.prototype.qb.call(this,a)},cc.prototype.toString=function(){return"Picture("+this.source+")#"+fs(this)};function kp(a){a===void 0&&(a=""),a!==""?Ip[a]&&(delete Ip[a],i0--):(Ip=new Kr,i0=0)}function ky(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)z=nt[at],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(kl(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null){E=nt.length,z=cr();for(var ot=0;ot<E;ot++)z.push(nt[ot]);if(y.hn)for(ot=0;ot<E;ot++)nt=z[ot],nt.Hd!==null&&nt.Hd(nt,x);wr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}cc.prototype.hA=function(){if(this.source!==""){kp(this.source);var a=this.source;this.source="",this.source=a}},cc.prototype.redraw=function(){this.N(),this.Uc=!0},cc.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof XA)){var E=a instanceof nh;b=this.naturalBounds;var z=0,nt=0,ot=this.qn,at=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),at=at||b.width,ot=ot||b.height,at!==0&&ot!==0){var ut=at,ct=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var yt=at,It=ot,Kt=this.Nk,Zt=this.Mk;switch(Kt){case bi:if(this.sourceRect.w())break;yt>=b.width&&(z=z+Zt.offsetX+(yt*Zt.x-b.width*Zt.x)),It>=b.height&&(nt=nt+Zt.offsetY+(It*Zt.y-b.height*Zt.y)),at=Math.min(b.width,yt),ot=Math.min(b.height,It);break;case Ti:yt=b.width,It=b.height;break;case Sr:case Xo:Kt===Sr?(Kt=Math.min(b.height/It,b.width/yt),yt*=Kt,It*=Kt):Kt===Xo&&(Kt=Math.max(b.height/It,b.width/yt),yt*=Kt,It*=Kt,yt>=b.width&&(z=(z+Zt.offsetX+(yt*Zt.x-b.width*Zt.x)/yt)*at),It>=b.height&&(nt=(nt+Zt.offsetY+(It*Zt.y-b.height*Zt.y)/It)*ot),at*=1/(yt/b.width),ot*=1/(It/b.height),yt=b.width,It=b.height)}Kt=this.Df()*y.scale;var ue=yt*Kt*It*Kt,Re=at*ot/ue,Fe=x.__goCache;Kt=null;var We=Ew;if(!E){if(x.sq&&Fe!==void 0&&4<ue&&Re>We*We)for(Fe.gi===null&&(Oy(Fe,4,ut,ct,x),Oy(Fe,16,ut,ct,x)),E=Fe.gi,ut=E.length,ct=0;ct<ut&&E[ct].ratio*E[ct].ratio<Re;ct++)Kt=E[ct];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Tu(null).context;try{E.drawImage(this.Eg,0,0)}catch(Je){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Je){this.vl=!0}}if(this.vl)return}}switch(E=yt<b.width?Zt.offsetX+(b.width*Zt.x-yt*Zt.x):0,Zt=It<b.height?Zt.offsetY+(b.height*Zt.y-It*Zt.y):0,this.flip){case as:a.translate(Math.min(b.width,yt),0),a.scale(-1,1);break;case No:a.translate(0,Math.min(b.height,It)),a.scale(1,-1);break;case Ms:a.translate(Math.min(b.width,yt),Math.min(b.height,It)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Fe!==void 0&&Kt!==null&&Kt.ratio!==1){a.save(),y=Kt.ratio;try{a.drawImage(Kt.source,z/y,nt/y,Math.min(Kt.source.width,at/y),Math.min(Kt.source.height,ot/y),E,Zt,Math.min(b.width,yt),Math.min(b.height,It)),a instanceof nh&&(this.bt=[z/y,nt/y,Math.min(Kt.source.width,at/y),Math.min(Kt.source.height,ot/y),E,Zt,Math.min(b.width,yt),Math.min(b.height,It)])}catch(Je){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,Zt,Math.min(b.width,yt),Math.min(b.height,It)),a instanceof nh&&(this.bt=[z,nt,at,ot,E,Zt,Math.min(b.width,yt),Math.min(b.height,It)])}catch(Je){this.en=!1}switch(this.flip){case as:a.scale(-1,1),a.translate(-Math.min(b.width,yt),0);break;case No:a.scale(1,-1),a.translate(0,-Math.min(b.height,It));break;case Ms:a.scale(-1,-1),a.translate(-Math.min(b.width,yt),-Math.min(b.height,It))}}}}},cc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=uh(this,!0),nt=this.Eg,ot=this.qn,at=0,ut=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ut=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===Ti||z===Dr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=at)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:at),isFinite(E.height)||z===Ti||z===Jr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ut)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ut),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Ga(this.dc,a,y),this.Ge(0,0,a,y)},cc.prototype.eh=function(a,y,x,b){ku(this,a,y,x,b)},qe.Object.defineProperties(cc.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||gn("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&hA(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Bi),b!==null&&x&&Kc(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(kl(this,!1),this.v())):x&&ky(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Ip;if(vs){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<i0&&(kp(),x=Ip),b=ei("img"),b.hn=!0,ky(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,i0++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new Ty),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),cc.prototype.redraw=cc.prototype.redraw,cc.prototype.reloadSource=cc.prototype.hA;var i0=0,Ew=4;cc.className="Picture",Ip=new Kr,cc.clearCache=kp;function Ty(){this.gi=null}function Oy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Tu(null),nt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new Dy(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}Ty.className="PictureCacheArray";function Dy(a,y){this.source=a,this.ratio=y}Dy.className="PictureCacheInstance";function Tp(){this.os=new Vi,this.mc=null}Tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Vi,this.mc=null};function Op(a,y,x,b,E,z){a.mc=new qa,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Fw(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Tp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new ys(El);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Tp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new ys(oa);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Pf(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new ys(gu);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function r0(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new ys(bh);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}Tp.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new ys(wl);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=E,ot.radiusY=z!==0?z:E,nt&&ot.close(),this.mc.segments.add(ot)};function Lw(a,y,x,b,E,z,nt,ot){var at;at===void 0&&(at=!1),y=new ys(zh,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function jy(a){var y=o0;return y!==null?(o0=null,y.reset(a),y):(y=new Tp,y.reset(a),y)}var o0=null;Tp.className="StreamGeometryContext";function Ih(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a}Ih("Rectangle",function(a,y,x){a="r"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.u),b.endX=y,b.endY=x,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ih("Square",function(a,y,x){a="s"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.u),b.endX=y,b.endY=x,b.defaultStretch=Sr,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ih("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=En.Mf[b];if(E!==void 0)return E;var z=a*En.wg;return E=new Vi().add(new qa(a,0,!0).add(new ys(oa,y-a,0)).add(new ys(gu,y,a,y-z,0,y,z)).add(new ys(oa,y,x-a)).add(new ys(gu,y-a,x,y,x-z,y-z,x)).add(new ys(oa,a,x)).add(new ys(gu,0,x-a,z,x,0,x-z)).add(new ys(oa,0,a)).add(new ys(gu,a,0,0,z,z,0).close())),1<z&&(E.spot1=new fr(0,0,z,z),E.spot2=new fr(1,1,-z,-z)),En.Nf<En.vm&&(En.Mf[b]=E,En.Nf++),E}),Ih("Border","RoundedRectangle"),Ih("Ellipse",function(a,y,x){a="e"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=dh,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ih("Circle",function(a,y,x){a="c"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Vi(Vi.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=dh,b.defaultStretch=Sr,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Ih("TriangleRight",function(a,y,x){return new Vi().add(new qa(0,0).add(new ys(oa,y,.5*x)).add(new ys(oa,0,x).close())).pm(0,.25,.5,.75)}),Ih("TriangleDown",function(a,y,x){return new Vi().add(new qa(0,0).add(new ys(oa,y,0)).add(new ys(oa,.5*y,x).close())).pm(.25,0,.75,.5)}),Ih("TriangleLeft",function(a,y,x){return new Vi().add(new qa(y,x).add(new ys(oa,0,.5*x)).add(new ys(oa,y,0).close())).pm(.5,.25,1,.75)}),Ih("TriangleUp",function(a,y,x){return new Vi().add(new qa(y,x).add(new ys(oa,0,x)).add(new ys(oa,.5*y,0).close())).pm(.25,.5,.75,1)}),Ih("Triangle","TriangleUp"),Ih("Diamond",function(a,y,x){return new Vi().add(new qa(.5*y,0).add(new ys(oa,0,.5*x)).add(new ys(oa,.5*y,x)).add(new ys(oa,y,.5*x).close())).pm(.25,.25,.75,.75)}),Ih("LineH",function(a,y,x){return a=new Vi(Vi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Ih("LineV",function(a,y,x){return a=new Vi(Vi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Ih("None","Rectangle"),Ih("BarH","Rectangle"),Ih("BarV","Rectangle"),Ih("MinusLine","LineH"),Ih("PlusLine",function(a,y,x){return new Vi().add(new qa(0,x/2,!1).add(new ys(oa,y,x/2)).add(new ys(El,y/2,0)).add(new ys(oa,y/2,x)))}),Ih("XLine",function(a,y,x){return new Vi().add(new qa(0,x,!1).add(new ys(oa,y,0)).add(new ys(El,0,0)).add(new ys(oa,y,x)))}),Ih("LineRight",function(a,y,x){return new Vi().add(new qa(.25*y,0,!1).add(new ys(oa,.75*y,.5*x)).add(new ys(oa,.25*y,x)))}),Ih("LineDown",function(a,y,x){return new Vi().add(new qa(0,.25*x,!1).add(new ys(oa,.5*y,.75*x)).add(new ys(oa,y,.25*x)))}),Ih("LineLeft",function(a,y,x){return new Vi().add(new qa(.75*y,0,!1).add(new ys(oa,.25*y,.5*x)).add(new ys(oa,.75*y,x)))}),Ih("LineUp",function(a,y,x){return new Vi().add(new qa(0,.75*x,!1).add(new ys(oa,.5*y,.25*x)).add(new ys(oa,y,.75*x)))}),En.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function yv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=vl,this.ir=null,this.jr="",this.lr=Es,this.Gq="",this.Hq=nl,this.Pq=Sa,this.Kq=sl,this.Up=null,this.Cq=127,this.zr=Ll,this.yr="gray",this.Vg=4}yv.prototype.copy=function(){var a=new yv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function Zr(a,y){a===void 0||a instanceof yn||typeof a=="string"?ci.call(this,a):(ci.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new ke(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ai,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Mn(Zr,ci),Zr.prototype.cloneProtected=function(a){ci.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},$t=Zr.prototype,$t.Af=function(a){ci.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},$t.toString=function(){var a=or(this.constructor)+"#"+fs(this);return this.data!==null&&(a+="("+xr(this.data)+")"),a};function dc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}$t.th=function(){ci.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},$t.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===dl&&y==="elements"?E instanceof ci?hl(E,function(at){Wv(ot.partManager,at),zc(ot,at)}):Kc(ot,E):a===Ql&&y==="elements"&&(E instanceof ci?hl(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},$t.La=function(a){if(ci.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof ci&&hl(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Zr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Zr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Zr.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new gr),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},Zr.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},Zr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=cr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);wr(y)}},Zr.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof To?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Fs))break t;ou(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ci.Link),x.adornedObject=y)}if(x!==null){x.type===ci.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Mw(this,a),y=this.adornments;y.next();)y.value.La()}},Zr.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function wv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Mw(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function s0(a){if(tg(a)===!1){Sv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function Uy(a){if(a.G|=2097152,tg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||Hy(a,y,x),x=a.Ib;var b=ai.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),ai.free(b),Sv(a,!1)}}Zr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Ro);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Zr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Eo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=ke.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(nt),nt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else nt.yi(y,x,b,E,z);a.rotate(this.Kb,nt.x,nt.y),ke.free(nt)}},Zr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Zr.prototype.moveTo=function(a,y,x){a=ke.allocAt(a,y),this.move(a,x),ke.free(a)},Zr.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},Zr.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},Zr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new gr),y.I(a)!==null)return y.I(a);var x=ci.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function bf(a,y,x,b){b===void 0&&(b=new ke),x=x.Mc()?Eo:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}Zr.prototype.mi=function(a){return a===void 0&&(a=new ai),a.assign(this.actualBounds)},Zr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=ke.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof ko?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ng(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=hd(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Zr.prototype.arrange=function(){if(eh(this)===!1)Uy(this);else{Wc(this,!1);var a=this.Ib,y=ai.alloc();y.assign(a);var x=eg(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;Hy(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||En.B(y.width,a.width)&&En.B(y.height,a.height)||0<=this.vw&&this.C(16),ai.free(y),Sv(this,!1)}},$t=Zr.prototype,$t.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=ai.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),ai.free(E)}!(this.G&65536)&&a.D(y)||Ky(this,b,x),x.N(),!a.w()&&!y.w()||su(a,y)||(this instanceof hr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},$t.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&_y(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new ke(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),tg(this)===!1&&eh(this)===!1&&(s0(this),Uy(this)),!0};function _y(a,y,x,b,E){y===null||a instanceof Fs||(y=y.animationManager,y.zb&&Gl(y,a,new ke(b,E),x))}$t.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;tg(this)||eh(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}s0(this)},$t.Av=function(){this.G&=-2097153,s0(this)};function Hy(a,y,x){var b=Ry(a),E=a.diagram,z=x.w(),nt=y.w();z&&nt?a.G&2097152?Qy(a,y,x,E,b):zy(a,y,x,E,b):z?Qy(a,y,x,E,b):nt&&zy(a,y,x,E,b),a.G|=2097152,ke.free(b),a.Uk()}function Qy(a,y,x,b,E){var z=y.x,nt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Fs||Gl(x,a,new ke(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new ke(z,nt),y.copy()))}function zy(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function Ky(a,y,x){Cv(a,!1),a instanceof hr&&Ur(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?eg(a)?(Ls(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}$t.si=function(){return!0},$t.Zc=function(){return!0},$t.ph=function(){return!1},$t.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,$i('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),$i(" Old class: "+or(a.constructor)+", new class: "+or(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ut=!1;a instanceof hr&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ut=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof hr&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ut?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Zr.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},Zr.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},Zr.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},Zr.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},Zr.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},Zr.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},Zr.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},Zr.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},Zr.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function tg(a){return(a.G&32768)!==0}function Sv(a,y){a.G=y?a.G|32768:a.G&-32769}function Cv(a,y){a.G=y?a.G|65536:a.G&-65537}function eg(a){return(a.G&131072)!==0}$t=Zr.prototype,$t.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function a0(a,y){a.G=y?a.G|1048576:a.G&-1048577}$t.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},$t.N=function(){var a=this.diagram;a!==null&&!eh(this)&&!tg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ng(this,this.Ib))},$t.v=function(){ci.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof hr&&this.labeledLink!==null&&Il(this.labeledLink),a.$b(!0))},$t.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},$t.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},$t.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},$t.oz=function(){return Bv(this,this)};function Bv(a,y){var x=y.containingGroup;return x!==null?1+Bv(a,x):y instanceof hr&&(y=y.labeledLink,y!==null)?Bv(a,y):0}$t.sz=function(){return Gy(this,this)};function Gy(a,y){var x=y.containingGroup;return x!==null||y instanceof hr&&(x=y.labeledLink,x!==null)?Gy(a,x):y}$t.Td=function(a){return a instanceof To?Pv(this,this,a):!1};function Pv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Pv(a,b,x)?y instanceof hr&&(y=y.labeledLink,y!==null)?Pv(a,y,x):!1:!0}$t.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof To&&a0(y,!0),y instanceof hr){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof To&&a0(y,!1),y instanceof hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Zr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof hr&&this.isLinkLabel)},Zr.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof hr&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Wy(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ng(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Fs)){if(a.add(y),y instanceof hr){if(x&&y instanceof To)for(var nt=y.memberParts;nt.next();)ng(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var ot=nt.value;if(!a.contains(ot)){var at=ot.fromNode,ut=ot.toNode;at=at===null||a.contains(at),ut=ut===null||a.contains(ut),(E?at&&ut:at||ut)&&ng(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ng(a,y.value,x,b-1,E,z)}else if(y instanceof Wi)for(y=y.labelNodes;y.next();)ng(a,y.value,x,b,E,z)}}qe.Object.defineProperties(Zr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?wi:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Ql,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(dl,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(dc(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&Kh(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Fs?this.type!==ci.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Sa},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),dc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:sl},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),dc(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(dc(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:nl},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),dc(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,eh(this)===!1&&(s0(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),_y(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Fs)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Fs?this instanceof Fs&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(ou(x),x=x.copy(),x!==null&&xv(this,x,y,a))):(z!==null&&z.jm(b,a),x=v1(x.partManager,b,a),x!==null&&(ou(x),x=x.copy(),x===null||x instanceof Wi||(b=this.location.copy(),xv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){xv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(dc(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(dc(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(dc(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Wi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(dc(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(dc(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(dc(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:vl},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),dc(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(dc(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(dc(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Es},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),dc(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&gn("Cannot make a Group a member of itself: "+this.toString()),gn("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Mv(y,this):this instanceof To&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof To&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof To){for(x=new Bi,ng(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof hr)for(b=b.linksConnected;b.next();)Dp(b.value)}if(this instanceof hr){for(x=this.linksConnected;x.next();)Dp(x.value);x=this.labeledLink,x!==null&&Dp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Kh(y,-1,a))}}else gn("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(dc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof hr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(dc(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(dc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Ll},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),dc(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(dc(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(dc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Zr.prototype.invalidateLayout=Zr.prototype.C,Zr.prototype.findCommonContainingGroup=Zr.prototype.px,Zr.prototype.isMemberOf=Zr.prototype.Td,Zr.prototype.findTopLevelPart=Zr.prototype.sz,Zr.prototype.findSubGraphLevel=Zr.prototype.oz,Zr.prototype.ensureBounds=Zr.prototype.Va,Zr.prototype.getDocumentBounds=Zr.prototype.mi,Zr.prototype.findObject=Zr.prototype.fb,Zr.prototype.moveTo=Zr.prototype.moveTo,Zr.prototype.invalidateAdornments=Zr.prototype.Wb,Zr.prototype.clearAdornments=Zr.prototype.Ej,Zr.prototype.removeAdornment=Zr.prototype.Jf,Zr.prototype.addAdornment=Zr.prototype.bh,Zr.prototype.findAdornment=Zr.prototype.Pj,Zr.prototype.updateTargetBindings=Zr.prototype.La;var Vy=!1;Zr.className="Part",Zr.LayoutNone=0,Zr.LayoutAdded=1,Zr.LayoutRemoved=2,Zr.LayoutShown=4,Zr.LayoutHidden=8,Zr.LayoutNodeSized=16,Zr.LayoutGroupLayout=32,Zr.LayoutNodeReplaced=64,Zr.LayoutStandard=127,Zr.LayoutAll=16777215;function Fs(a,y){a===void 0||a instanceof yn||typeof a=="string"?Zr.call(this,a):(Zr.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}Mn(Fs,Zr),Fs.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Fs.prototype.updateRelationshipsFromData=function(){},Fs.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Wi&&y instanceof ko){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof ko&&(E.ua=a)}}},Fs.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!eh(a))},Fs.prototype.Zc=function(){return!1},Fs.prototype.gk=function(a,y,x,b,E,z,nt){if(a===dl&&y==="elements"){if(E instanceof Zh)this.$a===null&&(this.$a=E);else if(E instanceof ci){var ot=E.Nl(function(at){return at instanceof Zh});ot instanceof Zh&&this.$a===null&&(this.$a=ot)}}else a===Ql&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ci&&this.$a.rg(b)&&(this.$a=null));Zr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Fs.prototype.updateAdornments=function(){},Fs.prototype.Lj=function(){},qe.Object.defineProperties(Fs.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Fs.className="Adornment";function bv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ku,this.er=h0,this.Kr=this.ij=this.Nq=this.Mq=null}bv.prototype.copy=function(){var a=new bv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function hr(a,y){a===void 0||a instanceof yn||typeof a=="string"?Zr.call(this,a):(Zr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Ci,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Mn(hr,Zr),hr.prototype.cloneProtected=function(a){Zr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},$t=hr.prototype,$t.Af=function(a){Zr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ef(a){a.Ba===null?a.Ba=new bv:a.Ba.nc&&(a.Ba=a.Ba.copy())}$t.th=function(){Zr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Zy(a,y){y!==null&&(a.af===null&&(a.af=new Bi),a.af.add(y))}function Xy(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}$t.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Xy(this,a,y,x),a!==null&&a.Sl()},$t.gk=function(a,y,x,b,E,z,nt){a===dl&&y==="elements"?this.wc=null:a===Ql&&y==="elements"&&(this.wc=null),Zr.prototype.gk.call(this,a,y,x,b,E,z,nt)},$t.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Lc(x.fromPort),Lc(x.toPort),x.bb())}};function $y(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Lc(x.fromPort),Lc(x.toPort),x.bb())}}function Lc(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Lc(y.port)}}$t.si=function(){return!0},hr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},hr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},hr.prototype.isVisible=function(){if(!Zr.prototype.isVisible.call(this))return!1;var a=!0,y=Gc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Gc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===fl){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Iu&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},hr.prototype.Zb=function(a){Zr.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},hr.prototype.qx=function(){var a=new Bi,y=new Bi;return Yy(this,this,a,y),y.iterator};function Yy(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&Yy(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}hr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Rr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},$t=hr.prototype,$t.Mo=function(a){a===void 0&&(a=null);var y=new Rr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},$t.Sd=function(a){a===void 0&&(a=null);var y=new Rr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},$t.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bi,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Po(x):wi},$t.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Po(x):wi},$t.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Bi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Po(x):wi},$t.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Rr(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},$t.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Rr(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function l0(a,y,x){Lc(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function u0(a,y,x){Lc(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):pm(y)))}function pm(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}hr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},$t=hr.prototype,$t.Vo=function(a){Zr.prototype.Vo.call(this,a),a||(pm(this),a=this.Yk,a!==null&&s1(a,this))},$t.Wo=function(a){Zr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},$t.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,Zr.prototype.Lj.call(this)},$t.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Jy(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Jy(a){a.wc===null?a.wc=new gr:a.wc.clear(),a.qm(a,function(y,x){qy(y,x)}),a.wc.count===0&&a.wc.add("",a)}function qy(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Ev(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=cr()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);wr(x)}}}$t.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},$t.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},$t.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)a0(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)a0(y,!1),y=y.pg();return x},$t.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},$t.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof hr)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},$t.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Bi;return a(this,y),y},$t.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}$t.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Rr(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},$t.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ci,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Ci,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Po(x):wi},$t.wz=function(a){a===void 0&&(a=1/0);var y=new Bi;return ng(y,this,!1,a,!0),y},hr.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Bi;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gc),y.Ue=!1}};function e1(a,y,x,b,E,z,nt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var at=ot.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),e1(at,y,x,b-1,E,z,nt)))}else n1(a,y,x,E,z,nt)}function n1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(ut=ut.To(a),ut!==null&&ut!==a)){var ct=y.contains(ut);if(ct||y.add(ut),nt){var yt=x?ut.Oo():ut.Po();at.uv=a,yt.all(function(It){return function(Kt){return Kt===It.uv||!Kt.isTreeExpanded}}(at))&&b.Aj(ut,E),ut.oh(),ut.Zb(!1)}ut.isTreeExpanded&&(ut.wasTreeExpanded=ut.isTreeExpanded,ct||n1(ut,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}hr.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Bi;x.add(this),i1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gc),y.Ue=!1}};function i1(a,y,x,b,E,z,nt){for(var ot=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ut={};at.next();){var ct=at.value;if(ct.isTreeLink&&(ot||ct.fd||ct.bb(),ct=ct.To(a),ct!==null&&ct!==a&&!y.contains(ct))){if(y.add(ct),!ot){ct.Zb(!0),ct.oh();var yt=x?ct.Oo():ct.Po();ut.vv=a,yt.all(function(It){return function(Kt){return Kt===It.vv||!Kt.isTreeExpanded}}(ut))&&E.Cj(ct,z)}(2<b||ct.wasTreeExpanded)&&(ct.wasTreeExpanded=!1,i1(ct,y,x,b-1,E,z,nt))}ut={vv:ut.vv}}a.isTreeExpanded=!0}qe.Object.defineProperties(hr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:h0},set:function(a){var y=this.portSpreading;y!==a&&(Ef(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Ur(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ku},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ef(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Ur(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Ef(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Ef(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Ef(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(s1(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),Il(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Jy(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Ef(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),hr.prototype.expandTree=hr.prototype.expandTree,hr.prototype.collapseTree=hr.prototype.collapseTree,hr.prototype.findTreeParts=hr.prototype.wz,hr.prototype.findTreeChildrenNodes=hr.prototype.Ou,hr.prototype.findTreeChildrenLinks=hr.prototype.Qo,hr.prototype.findTreeLevel=hr.prototype.uz,hr.prototype.findTreeParentChain=hr.prototype.vz,hr.prototype.findTreeParentNode=hr.prototype.pg,hr.prototype.findTreeParentLink=hr.prototype.kh,hr.prototype.findCommonTreeParent=hr.prototype.gz,hr.prototype.findTreeRoot=hr.prototype.xz,hr.prototype.isInTreeOf=hr.prototype.Nz,hr.prototype.findPort=hr.prototype.ns,hr.prototype.findLinksTo=hr.prototype.kz,hr.prototype.findLinksBetween=hr.prototype.jz,hr.prototype.findNodesInto=hr.prototype.Oo,hr.prototype.findNodesOutOf=hr.prototype.Po,hr.prototype.findNodesConnected=hr.prototype.Mu,hr.prototype.findLinksInto=hr.prototype.Sd,hr.prototype.findLinksOutOf=hr.prototype.Mo,hr.prototype.findExternalTreeLinksConnected=hr.prototype.qx,hr.prototype.invalidateConnectedLinks=hr.prototype.Bd,hr.prototype.invalidateLinkBundle=hr.prototype.Lz;var Nw=new Dn(hr,"SpreadingNone",10),h0=new Dn(hr,"SpreadingEvenly",11),Fv=new Dn(hr,"SpreadingPacked",12);hr.className="Node",hr.SpreadingNone=Nw,hr.SpreadingEvenly=h0,hr.SpreadingPacked=Fv;function To(a,y){a===void 0||a instanceof yn||typeof a=="string"?hr.call(this,a):(hr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Bi,this.$a=null,this.Sc=new Ka,this.Sc.group=this,this.gl=new Bi,this.tb=this.$p=null,y&&Object.assign(this,y)}Mn(To,hr),To.prototype.cloneProtected=function(a){hr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Zh});y instanceof Zh?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},$t=To.prototype,$t.Af=function(a){hr.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof hr)x.Bd(y);else if(x instanceof Wi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},$t.gk=function(a,y,x,b,E,z,nt){if(a===dl&&y==="elements"){if(E instanceof Zh)this.$a===null?this.$a=E:this.$a!==E&&gn("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof ci){var ot=E.Nl(function(at){return at instanceof Zh});ot instanceof Zh&&(this.$a===null?this.$a=ot:this.$a!==ot&&gn("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ql&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ci&&this.$a.rg(b)&&(this.$a=null));hr.prototype.gk.call(this,a,y,x,b,E,z,nt)},$t.Xl=function(a,y){hr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ci.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ci&&(a=a.Pb()),this.tb===null&&(this.tb=new ai),a.mi(this.tb),a instanceof ko&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},$t.eh=function(a,y,x,b){this.nf=this.$a,hr.prototype.eh.call(this,a,y,x,b)},$t.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Wi||y.Va()}),hr.prototype.Va.call(this)},$t.si=function(){if(!hr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof hr){if(y.isVisible()&&eh(y))return!1}else if(y instanceof Wi&&y.isVisible()&&eh(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof To&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Wi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof To&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Wi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}$t.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}hr.prototype.Lj.call(this)},To.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=si(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},To.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=si(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},To.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},$t=To.prototype,$t.Bd=function(a){var y=(this.U&65536)!==0;if(hr.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Lc(x.fromPort),Lc(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Lc(x.fromPort),Lc(x.toPort),x.bb()))}}},$t.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Bi,b=y.iterator;b.next();){var E=b.value;if(E instanceof hr)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},$t.iz=function(){var a=this.Rj();a.add(this);for(var y=new Bi,x=a.iterator;x.next();){var b=x.value;if(b instanceof hr)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},$t.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Bi;return a(this,y),y},$t.Rj=function(){var a=new Bi;return ng(a,this,!0,0,!0),a.remove(this),a},$t.Zb=function(a){hr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},To.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();r1(this,y,a,this),a.Ue=!1}};function r1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof To&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,r1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Aj(z,b);else if(z instanceof Wi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}To.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();o1(this,y,a,this),a.Ue=!1}};function o1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof To&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Cj(z,b);else if(z instanceof Wi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}To.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=ke.alloc(),hr.prototype.move.call(this,a,y),a=new Bi,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Wi&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof hr&&E.isLinkLabel)){var nt=E.position,ot=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Wi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(nt=E.position,z.x=nt.x+b,z.y=nt.y+x,z.w()?E.move(z):E.bb(),Iv(E)&&E.bb());ke.free(z)}},qe.Object.defineProperties(To.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&gn("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Ef(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Ef(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Ef(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Ef(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),To.prototype.expandSubGraph=To.prototype.expandSubGraph,To.prototype.collapseSubGraph=To.prototype.collapseSubGraph,To.prototype.findSubGraphParts=To.prototype.Rj,To.prototype.findContainingGroupChain=To.prototype.hz,To.prototype.findExternalNodesConnected=To.prototype.iz,To.prototype.findExternalLinksConnected=To.prototype.Lu,To.prototype.ensureBounds=To.prototype.Va,To.className="Group";function Zh(a){fn.call(this),this.yb=Su,this.ko=new ai(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Mn(Zh,fn),Zh.prototype.cloneProtected=function(a){fn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Zh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Hs(0,0,y.width,y.height,a.x,a.y)},Zh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof To||a instanceof Fs)||gn("Placeholder is not inside a Group or Adornment."),a instanceof To){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Ga(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=ke.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),ke.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var nt=0;z instanceof ko&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ut=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==ci.Link&&(ot=z.ga(a.category==="Selection"?nl:a.locationSpot,ke.alloc()),a.location=ot,ke.free(ot)),isNaN(ut)||isNaN(nt)?(a=z.ga(nl,ke.alloc()),ut=ai.allocAt(a.x,a.y,0,0),ut.Ye(z.ga(Yl,a)),ut.Ye(z.ga(au,a)),ut.Ye(z.ga($a,a)),Ga(y,ut.width+b||0,ut.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),ke.free(a),ai.free(ut)):(Ga(y,ut+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Zh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Zh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof To&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=ai.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof To&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),ai.free(x),b&&y instanceof To&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Zh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof To))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,nt=y.memberParts;nt.next();){var ot=nt.value;if(ot.isVisible()){if(ot instanceof Wi&&(!y.computesBoundsIncludingLinks||Sh(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<b&&(b=ot.top),ot.right>E&&(E=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},qe.Object.defineProperties(Zh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Zh.className="Placeholder";function Wi(a){Zr.call(this,ci.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Xh,this.Om=0,this.Qm=Xh,this.Rm=NaN,this.qj=Ov,this.po=.5,this.wd=null,this.Nb=new Ci().freeze(),this.Tg=this.Mg=null,this.ml=new ai,this.ua=new Vi,this.u=this.o=this.Sf=this.Wf=null,this.su=new ke,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Mn(Wi,Zr),Wi.prototype.cloneProtected=function(a){Zr.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},$t=Wi.prototype,$t.Af=function(a){Zr.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Lc(y),a=a.toPort,a!==null&&Lc(a)},$t.qb=function(a){a.classType===Wi?(a.value&2)===2?this.routing=a:a===Yc||a===Lf||a===Up?this.curve=a:a===ym||a===p0||a===m0?this.adjusting=a:a!==Ov&&a!==Xh&&gn("Unknown Link enum value for a Link property: "+a):Zr.prototype.qb.call(this,a)},$t.Xc=function(){this.ba===null&&(this.ba=new Kf)},$t.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),eh(a)||tg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),eh(a)||tg(a)))},$t.zv=function(){return!1},$t.Av=function(){},$t.Zc=function(){return!1},Wi.prototype.computeAngle=function(a,y,x){return Wi.computeAngle(y,x)},Wi.computeAngle=function(a,y){switch(a){default:case Xh:a=0;break;case wm:a=y;break;case xm:a=y+90;break;case Sm:a=y-90;break;case Dv:a=y+180;break;case v0:a=En.bp(y),90<a&&270>a&&(a-=180);break;case Cm:a=En.bp(y+90),90<a&&270>a&&(a-=180);break;case Bm:a=En.bp(y-90),90<a&&270>a&&(a-=180);break;case y0:if(a=En.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return En.bp(a)};function Dp(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Mv(x,a),a.Ah=y,y!==null&&Lv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}$t=Wi.prototype,$t.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Zr.prototype.oh.call(this)},$t.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},$t.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function s1(a,y){a.wd===null&&(a.wd=new Bi),a.wd.add(y),a.v()}$t.Vo=function(a){if(Zr.prototype.Vo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,l0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||l0(x,this,b)}mm(this)}},$t.Wo=function(a){if(Zr.prototype.Wo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,u0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||u0(x,this,b)}vm(this)}},$t.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Wi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Wi.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?Zr.prototype.move.call(this,a,!1):(a=ke.allocAt(x.x+b,x.y+E),Zr.prototype.move.call(this,a,!1),ke.free(a)),Ff(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Wi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Wi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Wi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ml),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Yc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return En.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),En.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=nt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Wi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.wx(.5);if(this.computeCurve()===Yc&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),En.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},$t=Wi.prototype,$t.i=function(a){return this.Nb.s[a]},$t.dd=function(a,y){this.Nb.cd(a,y)},$t.L=function(a,y,x){this.Nb.cd(a,new ke(y,x))},$t.Kz=function(a,y){this.Nb.Gb(a,y)},$t.m=function(a,y,x){this.Nb.Gb(a,new ke(y,x))},$t.ne=function(a){this.Nb.add(a)},$t.yf=function(a,y){this.Nb.add(new ke(a,y))},$t.pv=function(a){this.Nb.mb(a)},$t.Fj=function(){this.Nb.clear()};function Ff(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Ci,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new ke(nt.x+y,nt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Il(a)),b?c0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Rs(nt.animationManager,a,E),a.g("points",z,E)}}$t.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},$t.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=nt=1/0;for(var at=y.s,ut=at.length,ct=0;ct<ut;ct++){var yt=at[ct];nt=Math.min(yt.x,nt),ot=Math.min(yt.y,ot),yt.freeze()}if(y.freeze(),ut===z){for(z=0;z<ut;z++)if(ct=E[z],yt=at[z],ct.x-x!==yt.x-nt||ct.y-b!==yt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Rs(x.animationManager,this,y),c0(this),this.g("points",a,y)}},$t.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function c0(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),g0(a,!1))}$t.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},$t.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Wi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(op||(op=new hr,op.desiredSize=Ts,op.Va()),this.defaultFromPoint&&(op.location=this.defaultFromPoint,op.Va(),y=a=op)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(sp||(sp=new hr,sp.desiredSize=Ts,sp.Va()),this.defaultToPoint&&(sp.location=this.defaultToPoint,sp.Va(),E=b=sp)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=jp(nt),at=jp(x),ut=y===E&&y!==null,ct=this.isOrthogonal,yt=this.curve===Yc;this.Wf=ut&&!ct?yt=!0:!1;var It=this.computeAdjusting()===Xh||ut;if(!ct&&!ut&&ot&&at){if(ot=!1,!It&&3<=z&&(It=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,It,z-1,at))&&(It=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,It,z-1,at)),!ot)if(this.Fj(),yt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),It=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=It.x-z.x,at=It.y-z.y,ut=this.computeCurviness(),yt=ct=0;var Kt=z.x+ot/3,Zt=z.y+at/3,ue=Kt,Re=Zt;En.B(at,0)?Re=0<ot?Re-ut:Re+ut:(ct=-ot/at,yt=Math.sqrt(ut*ut/(ct*ct+1)),0>ut&&(yt=-yt),ue=(0>at?-1:1)*yt+Kt,Re=ct*(ue-Kt)+Zt),Kt=z.x+2*ot/3,Zt=z.y+2*at/3;var Fe=Kt,We=Zt;En.B(at,0)?We=0<ot?We-ut:We+ut:(Fe=(0>at?-1:1)*yt+Kt,We=ct*(Fe-Kt)+Zt),this.Fj(),this.ne(z),this.yf(ue,Re),this.yf(Fe,We),this.ne(It),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,It=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,It),E=this.getLinkPoint(z,It,x,!1,!1,a,y),this.hasCurviness()?(It=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+It/2,y=b.y+x/2,z=a,ot=y,En.B(x,0)?ot=0<It?ot-nt:ot+nt:(It=-It/x,z=Math.sqrt(nt*nt/(It*It+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=It*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=ai.alloc(),y.mi(ot),at=ot.ca(E),It.mi(ot),ut=ot.ca(b),(at||ut)&&(nt=y.ga(A0(nt),new ke),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=It.ga(A0(x),new ke),this.dd(1,this.getLinkPointFromPoint(z,It,x,b,!1,x))),ai.free(ot))}else{yt=this.isAvoiding,It&&(ct&&yt||ut)&&this.Fj();var Je=ut?this.computeCurviness():0;yt=this.getLinkPoint(a,y,nt,!0,ct,b,E),Kt=ue=Zt=0,(ct||!ot||ut)&&(Re=this.computeEndSegmentLength(a,y,nt,!0),Kt=this.getLinkDirection(a,y,yt,nt,!0,ct,b,E),ut&&(ot||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(Kt-=ct?90:30,0>Je&&(Kt-=180)),0>Kt?Kt+=360:360<=Kt&&(Kt-=360),ut&&(Re+=Math.abs(Je)*(ct?1:2)),Kt===0?Zt=Re:Kt===90?ue=Re:Kt===180?Zt=-Re:Kt===270?ue=-Re:(Zt=Re*Math.cos(Kt*Math.PI/180),ue=Re*Math.sin(Kt*Math.PI/180)),nt.Mc()&&ut&&(Re=y.ga(Eo,ke.alloc()),Fe=ke.allocAt(Re.x+1e3*Zt,Re.y+1e3*ue),this.getLinkPointFromPoint(a,y,Re,Fe,!0,yt),ke.free(Re),ke.free(Fe))),Re=this.getLinkPoint(b,E,x,!1,ct,a,y);var nn=We=Fe=0;if(ct||!at||ut){var xn=this.computeEndSegmentLength(b,E,x,!1);nn=this.getLinkDirection(b,E,Re,x,!1,ct,a,y),ut&&(at||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(nn+=ct?0:30,0>Je&&(nn+=180)),0>nn?nn+=360:360<=nn&&(nn-=360),ut&&(xn+=Math.abs(Je)*(ct?1:2)),nn===0?Fe=xn:nn===90?We=xn:nn===180?Fe=-xn:nn===270?We=-xn:(Fe=xn*Math.cos(nn*Math.PI/180),We=xn*Math.sin(nn*Math.PI/180)),x.Mc()&&ut&&(x=E.ga(Eo,ke.alloc()),nt=ke.allocAt(x.x+1e3*Fe,x.y+1e3*We),this.getLinkPointFromPoint(b,E,x,nt,!1,Re),ke.free(x),ke.free(nt))}x=yt,(ct||!ot||ut)&&(x=new ke(yt.x+Zt,yt.y+ue)),nt=Re,(ct||!at||ut)&&(nt=new ke(Re.x+Fe,Re.y+We)),!It&&!ct&&ot&&3<z&&this.adjustPoints(0,yt,z-2,nt)?this.dd(z-1,Re):!It&&!ct&&at&&3<z&&this.adjustPoints(1,x,z-1,Re)?this.dd(0,yt):!It&&(ct?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,yt),this.dd(z-1,Re)):(this.Fj(),this.ne(yt),(ct||!ot||ut)&&this.ne(x),ct&&this.addOrthoPoints(x,Kt,nt,nn,a,b),(ct||!at||ut)&&this.ne(nt),this.ne(Re))}return!0};function Nv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Wi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new ke),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var ot=-a.m12*E,at=-a.m21*E,ut=a.m11*E,ct=E*(a.m21*a.dy-a.m22*a.dx),yt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+ct,b=b.x*ot+b.y*ut+yt,nt=x.x*nt+x.y*at+ct,x=x.x*ot+x.y*ut+yt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function d0(a,y){var x=y.Zn;return x===null&&(x=new ap,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}Wi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new ke),x.sb()&&!jp(x))return y.ga(x,ot),ot;if(x.$c()){var at=d0(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===l1){var ut=d0(this,nt);if(ut!==null&&at.Gl<ut.Gl){at=ke.alloc(),ut=ke.alloc();var ct=new ai(y.ga(nl,at),y.ga(Yl,ut)),yt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,yt,!b,E,a,y,ut),(x.Hf(bu)||x.Hf(fu))&&a.y>=ct.y&&a.y<=ct.y+ct.height?ot.y=a.y:(x.Hf(Pu)||x.Hf(nu))&&a.x>=ct.x&&a.x<=ct.x+ct.width&&(ot.x=a.x),ke.free(at),ke.free(ut)}}return ot}}return x=y.ga(A0(x),ke.alloc()),this.pointsCount>(E?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),E&&(nt=Nv(x,nt.copy()))):(at=this.computeSpot(!b,nt),z=ke.alloc(),nt=nt.ga(A0(at),z),E&&(nt=Nv(x,nt)),ke.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),ke.free(x),ot},Wi.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,ot){t:if(b.sb())var at=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(at=d0(this,y),at!==null))switch(at.Nc){case 1:at=270;break t;case 2:at=180;break t;default:case 4:at=0;break t;case 8:at=90;break t}at=y.ga(Eo,ke.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=ke.alloc(),ot=ot.ga(Eo,x),ke.free(x)),x=Math.abs(ot.x-at.x)>Math.abs(ot.y-at.y)?ot.x>=at.x?0:180:ot.y>=at.y?90:270,ke.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),jp(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Wi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=d0(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Wi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Eo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Es?Wa:y)):(a=y||this.toPort,a===null?a=Eo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Es?Wa:y)),a};function jp(a){return a===Wa||a.x===.5&&a.y===.5}function A0(a){return a.x===.5&&a.y===.5?a:Eo}Wi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Xh&&4<this.pointsCount?this.computeMidPoint(new ke):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Eo))},Wi.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Wi.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=Ro.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Ro.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===this.locationObject){var yt=ct.actualBounds,It=this.naturalBounds;if(!(yt.x>It.width||yt.y>It.height||0>yt.x+yt.width||0>yt.y+yt.height)){if(yt=Ro.alloc(),yt.set(nt),ct instanceof ci)ot=ct.Cf(a,y,x,b,E,yt);else if(this.path===ct){if(ct instanceof ko)if(ot=a,It=b,ct.pickable===!1)ot=!1;else if(yt.multiply(ct.transform),It)t:{var Kt=ot,Zt=yt;if(ct.fh(Kt,Zt))ot=!0;else{if(Zt===void 0&&(Zt=ct.transform,Kt.Re(ct.actualBounds))){ot=!0;break t}ot=Kt.left,It=Kt.right;var ue=Kt.top;Kt=Kt.bottom;var Re=ke.alloc(),Fe=ke.alloc(),We=ke.alloc(),Je=Ro.alloc();Je.set(Zt),Je.bv(ct.transform),Je.Vj(),Fe.x=It,Fe.y=ue,Fe.transform(Je),Re.x=ot,Re.y=ue,Re.transform(Je),Zt=!1,Cf(ct,Re,Fe,We)?Zt=!0:(Re.x=It,Re.y=Kt,Re.transform(Je),Cf(ct,Re,Fe,We)?Zt=!0:(Fe.x=ot,Fe.y=Kt,Fe.transform(Je),Cf(ct,Re,Fe,We)?Zt=!0:(Re.x=ot,Re.y=ue,Re.transform(Je),Cf(ct,Re,Fe,We)&&(Zt=!0)))),Ro.free(Je),ke.free(Re),ke.free(Fe),ke.free(We),ot=Zt}}else ot=ct.fh(ot,yt)}else ot=Cl(ct,a,b,yt);ot&&(It=ct,y!==null&&(It=y(ct)),It&&(x===null||x(It))&&E.add(It)),Ro.free(yt)}}}return z===void 0&&Ro.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Ro.free(nt),!1},Wi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Yc:this.curve},Wi.prototype.computeCorner=function(){if(this.curve===Yc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Wi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Wi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=h1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,nt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===wm||b===v0||b===Dv?a=Math.max(a,E):b===Sm||b===Bm||b===xm||b===Cm?a=Math.max(a,nt):(y=y.ga(Eo).ab(x.ga(Eo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===Yc&&(a*=1.333)}}return a},Wi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Xh&&x.bb()}},Wi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=cr(),b=0,E=y.links,z=0;z<E.length;z++){var nt=E[z].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),wr(x)}}return a},Wi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Wi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Wi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===p0)return!1;E===m0&&(E=ym)}switch(E){case p0:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var ot=nt.x-E,at=nt.y-z,ut=Math.sqrt(ot*ot+at*at);if(!En.$(ut,0)){if(En.$(ot,0))var ct=0>at?-Math.PI/2:Math.PI/2;else ct=Math.atan(at/Math.abs(ot)),0>ot&&(ct=Math.PI-ct);nt=y.x;var yt=y.y;ot=b.x-nt;var It=b.y-yt;for(at=Math.sqrt(ot*ot+It*It),En.$(ot,0)?It=0>It?-Math.PI/2:Math.PI/2:(It=Math.atan(It/Math.abs(ot)),0>ot&&(It=Math.PI-It)),ut=at/ut,ct=It-ct,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,at=y.y-z,y=Math.sqrt(ot*ot+at*at),En.$(y,0)||(En.$(ot,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(ot)),0>ot&&(at=Math.PI-at)),ot=at+ct,y*=ut,this.L(a,nt+y*Math.cos(ot),yt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case m0:if(z=this.i(a),yt=this.i(x),!z.Xa(y)||!yt.Xa(b)){E=z.x,z=z.y,nt=yt.x,yt=yt.y,ut=(nt-E)*(nt-E)+(yt-z)*(yt-z),ot=y.x,ct=y.y,at=b.x,It=b.y;var Kt=1;if(at-ot!==0){var Zt=(It-ct)/(at-ot);Kt=Math.sqrt(1+1/(Zt*Zt))}else Zt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ue=y.x,Re=y.y,Fe=.5;ut!==0&&(Fe=((E-ue)*(E-nt)+(z-Re)*(z-yt))/ut);var We=E+Fe*(nt-E),Je=z+Fe*(yt-z);y=Math.sqrt((ue-We)*(ue-We)+(Re-Je)*(Re-Je)),Re<Zt*(ue-We)+Je&&(y=-y),0<Zt&&(y=-y),ue=ot+Fe*(at-ot),Fe=ct+Fe*(It-ct),Zt!==0?(y=ue+y/Kt,this.L(a,y,Fe-(y-ue)/Zt)):this.L(a,ue,Fe+y)}this.dd(x,b)}return!0;case ym:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,ct=z.y,yt=ot,ut=ct,En.B(E.y,z.y)?En.B(z.x,nt.x)?ct=y.y:En.B(z.y,nt.y)&&(ot=y.x):En.B(E.x,z.x)&&(En.B(z.y,nt.y)?ot=y.x:En.B(z.x,nt.x)&&(ct=y.y)),this.L(a+1,ot,ct),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,ct=z.y,at=ot,It=ct,En.B(E.y,z.y)?En.B(z.x,nt.x)?ct=b.y:En.B(z.y,nt.y)&&(ot=b.x):En.B(E.x,z.x)&&(En.B(z.y,nt.y)?ot=b.x:En.B(z.x,nt.x)&&(ct=b.y)),this.L(x-1,ot,ct),Iv(this))){this.L(a+1,yt,ut),this.L(x-1,at,It),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Wi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ot=E.actualBounds.copy(),at=z.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(Pm,Pm),at.Bc(Pm,Pm),ot.Ye(a),at.Ye(x);var ut=ke.alloc(),ct=ke.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===180?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ct.x=ut.x,ct.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(at.ca(a)||ot.ca(x))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ut.h(Math.max((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ut.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===0?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ct.x=ut.x,ct.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(at.ca(a)||ot.ca(x))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ut.h(Math.min((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ut.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===270?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ut.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ct.x=x.x,ct.y=ut.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(at.ca(a)||ot.ca(x))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ut.h(a.x,Math.max((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,at.right)),ct.x=ut.x,ct.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===90?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ut.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ct.x=x.x,ct.y=ut.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(at.ca(a)||ot.ca(x))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ut.h(a.x,Math.min((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,at.right)),ct.x=ut.x,ct.y=x.y)));var yt=x;if(this.isAvoiding){var It=this.diagram;if(It===null||E===z||this.layer.isTemporary||!vn(It)||ot.ca(yt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var Kt=Si(It,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Kt.Yj(Math.min(a.x,ut.x),Math.min(a.y,ut.y),Math.abs(a.x-ut.x),Math.abs(a.y-ut.y))&&Kt.Yj(Math.min(ut.x,ct.x),Math.min(ut.y,ct.y),Math.abs(ut.x-ct.x),Math.abs(ut.y-ct.y))&&Kt.Yj(Math.min(ct.x,yt.x),Math.min(ct.y,yt.y),Math.abs(ct.x-yt.x),Math.abs(ct.y-yt.y)))y=!1;else{E=a,z=yt;var Zt=x=null;if(It.isVirtualized){It=Kt.bounds.copy(),It.Bc(-Kt.Ho,-Kt.Go);var ue=ke.alloc();Rp(Kt,a.x,a.y)||(En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,a.x,a.y,ut.x,ut.y,ue)?(x=a=ue.copy(),y=ue.ab(ut)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ut.x,ut.y,ct.x,ct.y,ue)?(x=a=ue.copy(),y=ue.ab(ct)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ct.x,ct.y,yt.x,yt.y,ue)&&(x=a=ue.copy(),y=ue.ab(yt))),Rp(Kt,yt.x,yt.y)||(En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,yt.x,yt.y,ct.x,ct.y,ue)?(Zt=yt=ue.copy(),b=ct.ab(ue)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ct.x,ct.y,ut.x,ut.y,ue)?(Zt=yt=ue.copy(),b=ut.ab(ue)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ut.x,ut.y,a.x,a.y,ue)&&(Zt=yt=ue.copy(),b=a.ab(ue))),ke.free(ue)}ot=ot.copy().ed(at),ot.Bc(Kt.Ho*Kt.Os,Kt.Go*Kt.Os),d1(Kt,a,y,yt,b,ot,!0),at=JA(Kt,yt.x,yt.y),!Kt.abort&&at>=_p&&(c1(Kt),ot.Bc(Kt.Ho*Kt.Hx,Kt.Go*Kt.Ix),d1(Kt,a,y,yt,b,ot,!1),at=JA(Kt,yt.x,yt.y)),!Kt.abort&&at<_p&&JA(Kt,yt.x,yt.y)!==Mf?(kv(this,Kt,yt.x,yt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=yt.y):(ot.x=yt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(nt=this.i(3),y===0||y===180?En.B(ot.x,nt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,nt.y)):En.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=Kt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(En.B(ot.y,nt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,nt.x,ot)):En.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=Kt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Zt!==null&&(b===0||b===180?this.yf(z.x,Zt.y):this.yf(Zt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ut.copy()),this.ne(ct.copy())),ke.free(ut),ke.free(ct)}},Wi.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Iv(a){if(a.diagram===null||!a.isAvoiding||!vn(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Si(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function kv(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ut=JA(y,x,b),ct=x,yt=b;for(E===0?ct+=ot:E===90?yt+=at:E===180?ct-=ot:yt-=at,E!==nt&&ut>kg&&JA(y,ct,yt)!==ut-1&&(JA(y,x-ot,b)===ut-1?(E=180,ct=x-ot,yt=b):JA(y,x+ot,b)===ut-1?(E=0,ct=x+ot,yt=b):JA(y,x,b-at)===ut-1?(E=270,ct=x,yt=b-at):JA(y,x,b+at)===ut-1&&(E=90,ct=x,yt=b+at));ut>kg&&JA(y,ct,yt)===ut-1;)x=ct,b=yt,E===0?ct+=ot:E===90?yt+=at:E===180?ct-=ot:yt-=at,--ut;z?ut>kg&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/at)*at+at/2),ut>kg&&(z=E,nt=x,ct=b,E===0?(z=90,ct+=at):E===90?(z=180,nt-=ot):E===180?(z=270,ct-=at):E===270&&(z=0,nt+=ot),JA(y,nt,ct)===ut-1?kv(a,y,nt,ct,z,!1,z):(nt=x,ct=b,E===0?(z=270,ct-=at):E===90?(z=0,nt+=ot):E===180?(z=90,ct+=at):E===270&&(z=180,nt-=ot),JA(y,nt,ct)===ut-1&&kv(a,y,nt,ct,z,!1,z))),a.yf(x,b)}Wi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=ks(y,a,x.x,x.y,b.x,b.y),z=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ot=ks(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Wi.prototype.qc=function(){this.lk=!1,this.v()},Wi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof ko&&(E.ua=this.ua)}}},Wi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ig(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===Yc&&3<=y&&!En.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var at=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),at=Math.min(at,ot.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||Ig(this)){if(a.type=Vi.o,ot=jy(a),this.computeShortLength(!0)!==0&&(E=ip(this,E,!0,z)),Op(ot,E.x,E.y,!1),nt===Yc&&3<=y&&!En.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=ip(this,E,!1,z)),Pf(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=ke.allocAt(b,at),x=ke.alloc(),x.assign(this.i(1)),z=ke.allocAt(b,at),E=ke.allocAt(b,at),nt=this.i(0);for(var ut,ct=this.smoothness/3,yt=1;yt<this.pointsCount-1;yt++){ut=this.i(yt);var It=nt,Kt=ut,Zt=this.i(Tv(this,ut,yt,!1));if((!En.$(It.x,Kt.x)||!En.$(Kt.x,Zt.x))&&(!En.$(It.y,Kt.y)||!En.$(Kt.y,Zt.y))){var ue=ct;isNaN(ue)&&(ue=this.smoothness/3);var Re=It.x;It=It.y;var Fe=Kt.x;Kt=Kt.y;var We=Zt.x;Zt=Zt.y;var Je=ue*f0(Re,It,Fe,Kt);ue*=f0(Fe,Kt,We,Zt),En.$(It,Kt)&&En.$(Fe,We)&&(Fe>Re?Zt>Kt?(z.x=Fe-Je,z.y=Kt-Je,E.x=Fe+ue,E.y=Kt+ue):(z.x=Fe-Je,z.y=Kt+Je,E.x=Fe+ue,E.y=Kt-ue):Zt>Kt?(z.x=Fe+Je,z.y=Kt-Je,E.x=Fe-ue,E.y=Kt+ue):(z.x=Fe+Je,z.y=Kt+Je,E.x=Fe-ue,E.y=Kt-ue)),En.$(Re,Fe)&&En.$(Kt,Zt)&&(Kt>It?(We>Fe?(z.x=Fe-Je,z.y=Kt-Je,E.x=Fe+ue):(z.x=Fe+Je,z.y=Kt-Je,E.x=Fe-ue),E.y=Kt+ue):(We>Fe?(z.x=Fe-Je,z.y=Kt+Je,E.x=Fe+ue):(z.x=Fe+Je,z.y=Kt+Je,E.x=Fe-ue),E.y=Kt-ue)),(En.$(Re,Fe)&&En.$(Fe,We)||En.$(It,Kt)&&En.$(Kt,Zt))&&(Re=.5*(Re+We),It=.5*(It+Zt),z.x=Re,z.y=It,E.x=Re,E.y=It),(yt===1||yt===2&&En.$(nt.x,this.i(0).x)&&En.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ut.x),x.y=.5*(nt.y+ut.y)),Pf(ot,x.x-b,x.y-at,z.x-b,z.y-at,ut.x-b,ut.y-at),y.set(z),x.set(E),nt=ut}}ut=nt.x,nt=nt.y,ct=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ct=ip(this,ct.copy(),!1,ts)),ut=.5*(ut+ct.x),nt=.5*(nt+ct.y),Pf(ot,E.x-b,E.y-at,ut-b,nt-at,ct.x-b,ct.y-at),ke.free(y),ke.free(x),ke.free(z),ke.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=ip(this,nt.copy(),!1,ts)),Pf(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=ke.alloc(),z.assign(this.i(0)),E=ke.alloc(),E.assign(z),nt=this.computeCorner(),yt=1,ut=0;yt<y;){if(yt=Tv(this,z,yt,1<yt),ct=this.i(yt),yt>=y-1){if(!z.D(ct))this.computeShortLength(!1)!==0&&(ct=ip(this,ct.copy(),!1,ts)),rp(this,ot,-b,-at,z,ct,x);else if(ut===0)for(yt=1;yt<y;)E.assign(z),ct=this.i(yt++),rp(this,ot,-b,-at,z,ct,x),z.assign(ct);break}if(ut=Tv(this,ct,yt+1,yt<y-3),yt=-b,Re=-at,It=ct,Fe=this.i(ut),ue=x,En.B(z.y,It.y)&&En.B(It.x,Fe.x))if(Zt=Math.min(nt,Math.abs(It.x-E.x)/2),Zt=Je=Math.min(Zt,Math.abs(Fe.y-It.y)/2),En.B(Zt,0))rp(this,ot,yt,Re,z,It,ue),z.assign(It);else{var nn=It.x,xn=It.y;Kt=nn,We=xn,It.x>z.x?nn=It.x-Zt:nn=It.x+Zt,Fe.y>It.y?We=It.y+Je:We=It.y-Je,Fe=ke.allocAt(nn,xn),rp(this,ot,yt,Re,z,Fe,ue),ke.free(Fe),r0(ot,It.x+yt,It.y+Re,Kt+yt,We+Re),z.h(Kt,We)}else En.B(z.x,It.x)&&En.B(It.y,Fe.y)?(Zt=Math.min(nt,Math.abs(It.y-E.y)/2),Zt=Je=Math.min(Zt,Math.abs(Fe.x-It.x)/2),En.B(Je,0)?(rp(this,ot,yt,Re,z,It,ue),z.assign(It)):(nn=It.x,xn=It.y,Kt=nn,We=xn,It.y>z.y?xn=It.y-Zt:xn=It.y+Zt,Fe.x>It.x?Kt=It.x+Je:Kt=It.x-Je,Fe=ke.allocAt(nn,xn),rp(this,ot,yt,Re,z,Fe,ue),ke.free(Fe),r0(ot,It.x+yt,It.y+Re,Kt+yt,We+Re),z.h(Kt,We))):(rp(this,ot,yt,Re,z,It,ue),z.assign(It));E.assign(ct),yt=ut}ke.free(z)}o0=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=ip(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=ip(this,ot,!1,z)),a.type=Vi.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function f0(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),En.$(a,0)?y:En.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ip(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=f0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=f0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Tv(a,y,x,b){for(var E=a.pointsCount,z=y;En.$(y.x,z.x)&&En.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!En.$(y.x,z.x)&&!En.$(y.y,z.y))return x-1;for(var nt=z;En.$(y.x,z.x)&&En.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||En.$(y.y,z.y)&&En.$(z.y,nt.y)&&(!b||(y.x>=z.x?z.x>=nt.x:z.x<=nt.x));){if(x>=E)return E-1;nt=a.i(x++)}return x-2}Wi.prototype.computeJumpLength=function(){return 10};function rp(a,y,x,b,E,z,nt){if(!nt&&Ig(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ut=0;if(a.isVisible()&&(ut=Iw(a,E,z,at)),0<ut){if(En.B(E.y,z.y))if(E.x<z.x)for(var ct=0;ct<ut;){var yt=Math.max(E.x,Math.min(at[ct++]-ot,z.x-nt));y.lineTo(yt+x,z.y+b);for(var It=yt+x,Kt=Math.min(yt+nt,z.x);ct<ut&&(yt=at[ct],yt<Kt+nt);)ct++,Kt=Math.min(yt+ot,z.x);yt=z.y-nt+b,Kt+=x;var Zt=z.y+b;a.curve===Lf?Op(y,Kt,Zt,!1):Pf(y,It,yt,Kt,yt,Kt,Zt)}else for(--ut;0<=ut;){for(ct=Math.min(E.x,Math.max(at[ut--]+ot,z.x+nt)),y.lineTo(ct+x,z.y+b),It=ct+x,yt=Math.max(ct-nt,z.x);0<=ut&&(ct=at[ut],ct>yt-nt);)ut--,yt=Math.max(ct-ot,z.x);ct=z.y-nt+b,yt+=x,Kt=z.y+b,a.curve===Lf?Op(y,yt,Kt,!1):Pf(y,It,ct,yt,ct,yt,Kt)}else if(En.B(E.x,z.x))if(E.y<z.y)for(ct=0;ct<ut;){for(yt=Math.max(E.y,Math.min(at[ct++]-ot,z.y-nt)),y.lineTo(z.x+x,yt+b),It=yt+b,yt=Math.min(yt+nt,z.y);ct<ut&&(Kt=at[ct],Kt<yt+nt);)ct++,yt=Math.min(Kt+ot,z.y);Kt=z.x-nt+x,Zt=z.x+x,yt+=b,a.curve===Lf?Op(y,Zt,yt,!1):Pf(y,Kt,It,Kt,yt,Zt,yt)}else for(--ut;0<=ut;){for(ct=Math.min(E.y,Math.max(at[ut--]+ot,z.y+nt)),y.lineTo(z.x+x,ct+b),It=ct+b,ct=Math.max(ct-nt,z.y);0<=ut&&(yt=at[ut],yt>ct-nt);)ut--,ct=Math.max(yt-ot,z.y);yt=z.x-nt+x,Kt=z.x+x,ct+=b,a.curve===Lf?Op(y,Kt,ct,!1):Pf(y,yt,It,yt,ct,Kt,ct)}}}y.lineTo(z.x+x,z.y+b)}function Iw(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];if(at instanceof Wi){if(at===a)return 0<b.length&&b.sort(function(ct,yt){return ct-yt}),b.length;if(at.isVisible()&&Ig(at)){var ut=at.routeBounds;ut.w()&&a.routeBounds.Yc(ut)&&!a.usesSamePort(at)&&(ut=at.path,ut!==null&&ut.Ed()&&kw(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ct,yt){return ct-yt}),b.length}function kw(a,y,x,b){for(var E=En.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=ke.alloc(),at=1;at<z;at++){var ut=b.i(at);if(at<z-1){var ct=b.i(at+1);if(nt.y===ut.y&&ut.y===ct.y){if(ut.x>nt.x&&ct.x>=ut.x||ut.x<nt.x&&ct.x<=ut.x)continue}else if(nt.x===ut.x&&ut.x===ct.x&&(ut.y>nt.y&&ct.y>=ut.y||ut.y<nt.y&&ct.y<=ut.y))continue}t:{ct=a.x;var yt=a.y,It=y.x,Kt=y.y,Zt=nt.x;nt=nt.y;var ue=ut.x,Re=ut.y;if(En.B(ct,It)){if(!En.B(yt,Kt)&&En.B(nt,Re)&&Math.min(yt,Kt)<nt&&Math.max(yt,Kt)>nt&&Math.min(Zt,ue)<ct&&Math.max(Zt,ue)>ct&&!En.B(Zt,ue)){ot.x=ct,ot.y=nt,ct=!0;break t}}else if(En.B(yt,Kt)&&En.B(Zt,ue)&&Math.min(ct,It)<Zt&&Math.max(ct,It)>Zt&&Math.min(nt,Re)<yt&&Math.max(nt,Re)>yt&&!En.B(nt,Re)){ot.x=Zt,ot.y=yt,ct=!0;break t}ot.x=0,ot.y=0,ct=!1}ct&&(E?x.push(ot.x):x.push(ot.y)),nt=ut}ke.free(ot)}function Ig(a){return a=a.curve,a===Up||a===Lf}function g0(a,y){(y||Ig(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Wi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];at instanceof Wi&&(at===this?z=!0:z&&a1(this,at,a))}}else if(b)for(z=E.Pa.s,E=z.length,nt=0;nt<E;nt++)ot=z[nt],ot instanceof Wi&&a1(this,ot,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ig(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Wi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Wi.prototype.isVisible=function(){if(!Zr.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Wi.prototype.Zb=function(a){if(Zr.prototype.Zb.call(this,a),a&&g0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Wi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?ym:this.qk};function mm(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,nt=y.jb.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at];(ut.ef===y&&ut.ff===b&&ut.uf===x&&ut.vf===E||ut.ef===x&&ut.ff===E&&ut.uf===y&&ut.vf===b)&&(z===null?z=ut:(a===null&&(a=[],a.push(z)),a.push(ut)))}if(a!==null){for(z=Xy(y,x,b,E),z===null&&(z=new w0(y,b,x,E),Zy(y,z),Zy(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function vm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(zr(y.links,a),y.Sl()))}Wi.prototype.ph=function(){return!0},qe.Object.defineProperties(Wi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&u0(y,this,x),vm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&l0(a,this,E),mm(this),this.C(1)),this.g("fromNode",y,a),Dp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Lc(x),vm(this),this.ff=a;var b=this.fromPort;b!==null&&Lc(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),mm(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&u0(y,this,x),vm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&l0(a,this,E),mm(this),this.C(1)),this.g("toNode",y,a),Dp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Lc(x),vm(this),this.vf=a;var b=this.toPort;b!==null&&Lc(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),mm(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Es},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Lc(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Ni(a,">= 0",Wi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Es},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Lc(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Ni(a,">= 0",Wi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?wi:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&pm(this.fromNode),this.toNode!==null&&pm(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof ko?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===Yc&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),En.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var nt=this.i(z-2);z+3>=b&&(z=b-1);var ot=this.i(z-1),at=this.i(z);En.Dl(E.x,E.y,nt.x,nt.y,ot.x,ot.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),E=at}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new ke)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||c0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);En.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):En.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Ci,b=0;b<a.length/2;b++)E=new ke(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!kn(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Ci,b=0;b<a.length;b++)E=a[b],x.add(new ke(E.x,E.y).freeze())}}else if(a instanceof Ci)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else gn("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),c0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Rs(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!jp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!jp(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),g0(this,y===Lf||y===Up||a===Lf||a===Up),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),g0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Wi.prototype.invalidateOtherJumpOvers=Wi.prototype.Xo,Wi.prototype.findClosestSegment=Wi.prototype.ez,Wi.prototype.updateRoute=Wi.prototype.vg,Wi.prototype.invalidateRoute=Wi.prototype.bb,Wi.prototype.rollbackRoute=Wi.prototype.rv,Wi.prototype.commitRoute=Wi.prototype.zf,Wi.prototype.startRoute=Wi.prototype.uh,Wi.prototype.clearPoints=Wi.prototype.Fj,Wi.prototype.removePoint=Wi.prototype.pv,Wi.prototype.addPointAt=Wi.prototype.yf,Wi.prototype.addPoint=Wi.prototype.ne,Wi.prototype.insertPointAt=Wi.prototype.m,Wi.prototype.insertPoint=Wi.prototype.Kz,Wi.prototype.setPointAt=Wi.prototype.L,Wi.prototype.setPoint=Wi.prototype.dd,Wi.prototype.getPoint=Wi.prototype.i,Wi.prototype.getOtherPort=Wi.prototype.Cz,Wi.prototype.getOtherNode=Wi.prototype.To;var op=null,sp=null,Ov=new Dn(Wi,"Normal",1),Tw=new Dn(Wi,"Orthogonal",2),Ow=new Dn(Wi,"AvoidsNodes",6),l1=new Dn(Wi,"AvoidsNodesStraight",7),Xh=new Dn(Wi,"None",0),Yc=new Dn(Wi,"Bezier",9),Lf=new Dn(Wi,"JumpGap",10),Up=new Dn(Wi,"JumpOver",11),ym=new Dn(Wi,"End",17),p0=new Dn(Wi,"Scale",18),m0=new Dn(Wi,"Stretch",19),wm=new Dn(Wi,"OrientAlong",21),xm=new Dn(Wi,"OrientPlus90",22),Sm=new Dn(Wi,"OrientMinus90",23),Dv=new Dn(Wi,"OrientOpposite",24),v0=new Dn(Wi,"OrientUpright",25),Cm=new Dn(Wi,"OrientPlus90Upright",26),Bm=new Dn(Wi,"OrientMinus90Upright",27),y0=new Dn(Wi,"OrientUpright45",28),u1=16,h1=14,Pm=8;Wi.className="Link",Wi.Normal=Ov,Wi.Orthogonal=Tw,Wi.AvoidsNodes=Ow,Wi.AvoidsNodesStraight=l1,Wi.None=Xh,Wi.Bezier=Yc,Wi.JumpGap=Lf,Wi.JumpOver=Up,Wi.End=ym,Wi.Scale=p0,Wi.Stretch=m0,Wi.OrientAlong=wm,Wi.OrientPlus90=xm,Wi.OrientMinus90=Sm,Wi.OrientOpposite=Dv,Wi.OrientUpright=v0,Wi.OrientPlus90Upright=Cm,Wi.OrientMinus90Upright=Bm,Wi.OrientUpright45=y0,Wi.EndSegmentStep=8,Wi.CurvinessStart=u1,Wi.SpacingMin=h1,Wi.OrthoShortCut=Pm;function w0(a,y,x,b){Zo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}w0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},w0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},w0.className="LinkBundle";function bm(a){Zo(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}bm.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=jv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Rp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function JA(a,y,x){return Rp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):jv}function c1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=kg&&(x[b]=jv)}bm.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Mf)return!1}return!0};function qA(a,y,x,b,E,z,nt,ot,at){if(!(y<z||y>nt||x<ot||x>at)){var ut=y|0,ct=x|0,yt=a.ac[ut][ct];if(yt>=kg&&yt<_p)for(E?ct+=b:ut+=b,yt+=1;z<=ut&&ut<=nt&&ot<=ct&&ct<=at&&!(yt>=a.ac[ut][ct]);)a.ac[ut][ct]=yt,yt+=1,E?ct+=b:ut+=b;if(ut=E?ct:ut,E)if(0<b)for(x+=b;x<ut;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(x+=b;x>ut;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else if(0<b)for(y+=b;y<ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(y+=b;y>ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at)}}function x0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=Mf,ct=kg;for(a.ac[y][x]=ct;ut===Mf&&y>z&&y<nt&&x>ot&&x<at;)ct+=1,a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function S0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=Mf,ct=_p;for(a.ac[y][x]=ct;ut===Mf&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function d1(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Rp(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ut=b.x,ct=b.y;if(Rp(a,ut,ct))if(ut-=a.Nd,ut/=a.rc,ct-=a.Od,ct/=a.sc,1>=Math.abs(ot-ut)&&1>=Math.abs(at-ct))a.abort=!0;else{var yt=z.x;b=z.y,y=z.x+z.width;var It=z.y+z.height;yt-=a.Nd,yt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,It-=a.Od,It/=a.sc,z=Math.max(0,Math.min(a.di,yt|0)),y=Math.min(a.di,Math.max(0,y|0)),yt=Math.max(0,Math.min(a.ei,b|0)),It=Math.min(a.ei,Math.max(0,It|0)),b=a.ac,ot|=0,at|=0,ut|=0,ct|=0;var Kt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===Mf?(x0(a,ot,at,Kt,x,z,y,yt,It),x0(a,ot,at,1,!x,z,y,yt,It),x0(a,ot,at,-1,!x,z,y,yt,It)):x0(a,ot,at,Kt,x,ot,at,ot,at),b[ut][ct]===Mf?(S0(a,ut,ct,E===0||E===90?1:-1,E===90||E===270,z,y,yt,It),S0(a,ut,ct,1,!(E===90||E===270),z,y,yt,It),S0(a,ut,ct,-1,!(E===90||E===270),z,y,yt,It)):S0(a,ut,ct,Kt,x,ut,ct,ut,ct),x=cr(),nt&&A1(a,ut,ct,E,ot,at,x))for((x[0]!==ut||x[1]!==ct)&&(x.unshift(ct),x.unshift(ut)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=kg,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ut=x[z+1];y>E?E++:y<E?E--:ut>nt?nt++:ut<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ut;);else qA(a,ot,at,1,!1,z,y,yt,It),qA(a,ot,at,-1,!1,z,y,yt,It),qA(a,ot,at,1,!0,z,y,yt,It),qA(a,ot,at,-1,!0,z,y,yt,It);wr(x)}}}}function A1(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ut=x;;){if(at===E&&ut===z)return!0;var ct=at,yt=ut;if(b===0)if(ct<E)ct++;else break;else if(b===90)if(yt<z)yt++;else break;else if(b===180)if(ct>E)ct--;else break;else if(yt>z)yt--;else break;var It=ot[ct][yt];if(It===0||It===Uv)break;at=ct,ut=yt}for(;;){if(ct=b,yt=at,It=ut,b===0?It<z?(ct=90,It++):It>z&&(ct=270,It--):b===90?yt<E?(ct=0,yt++):yt>E&&(ct=180,yt--):b===180?It<z?(ct=90,It++):It>z&&(ct=270,It--):yt<E?(ct=0,yt++):yt>E&&(ct=180,yt--),yt=ot[yt][It],ct!==b&&yt!==0&&yt!==Uv){if(nt.push(at),nt.push(ut),A1(a,at,ut,ct,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ut]=Uv,b===0){if(at===y)return!1;at--}else if(b===90){if(ut===x)return!1;ut--}else if(b===180){if(at===y)return!1;at++}else{if(ut===x)return!1;ut++}}}qe.Object.defineProperties(bm.prototype,{bounds:{get:function(){return new ai(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Mf=0,kg=1,_p=999999,jv=_p+1,Uv=_p+2;bm.className="PositionArray";function ap(){Zo(this),this.port=this.node=null,this.pe=[],this.ap=!1}ap.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
`+b.toString())}return y};function Dw(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}ap.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof To?E:null;if(z===null||z.isSubGraphExpanded)var nt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,nt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(nl,ke.alloc()),at=a.port.ga(Yl,ke.alloc());for(E=ai.allocAt(ot.x,ot.y,0,0),E.Ye(at),ke.free(ot),ke.free(at),ot=ke.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ut=nt.value;if(ut.isVisible()&&ut.fromPort!==ut.toPort){var ct=ut.fromPort===a.port||ut.fromNode!==null&&ut.fromNode.Td(b),yt=ut.computeSpot(ct,a.port);if(yt.$c()&&(ct=ct?ut.toPort:ut.fromPort,ct!==null)){var It=ct.part;if(It!==null){var Kt=It.findVisibleNode();Kt!==null&&Kt!==It&&(It=Kt,ct=It.port),ct=ut.computeOtherPoint(It,ct),It=ot.ab(ct),It-=at,0>It?It+=360:360<=It&&(It-=360),yt=Dw(E,yt,It,ut.isOrthogonal),yt===0?(yt=4,180<It&&(It-=360)):yt===90?(yt=8,270<It&&(It-=360)):yt===180?yt=2:(yt=1,90>It&&(It+=360)),Kt=a.pe[z],Kt===void 0?(Kt=new Rv(ut,It,yt),a.pe[z]=Kt):(Kt.link=ut,Kt.angle=It,Kt.Nc=yt),Kt.hv.set(ct),z++}}}}for(ke.free(ot),a.pe.sort(ap.prototype.j),at=a.pe.length,b=-1,z=ot=0;z<at;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(z=a.pe,yt=a.port,b=a.node.portSpreading,ot=ke.alloc(),at=ke.alloc(),nt=ke.alloc(),ut=ke.alloc(),yt.ga(nl,ot),yt.ga(au,at),yt.ga(Yl,nt),yt.ga($a,ut),Kt=It=ct=yt=0,b===Fv)for(var Zt=0;Zt<z.length;Zt++){var ue=z[Zt];if(ue!==null){var Re=ue.link.computeThickness();switch(ue.Nc){case 8:It+=Re;break;case 2:Kt+=Re;break;case 1:yt+=Re;break;default:case 4:ct+=Re}}}var Fe=Zt=0,We=1,Je=ue=0;for(Re=0;Re<z.length;Re++){var nn=z[Re];if(nn!==null){if(Zt!==nn.Nc){switch(Zt=nn.Nc,Zt){case 8:var xn=nt;Fe=ut;break;case 2:xn=ut,Fe=ot;break;case 1:xn=ot,Fe=at;break;default:case 4:xn=at,Fe=nt}switch(ue=Fe.x-xn.x,Je=Fe.y-xn.y,Zt){case 8:It>Math.abs(ue)?(We=Math.abs(ue)/It,It=Math.abs(ue)):We=1;break;case 2:Kt>Math.abs(Je)?(We=Math.abs(Je)/Kt,Kt=Math.abs(Je)):We=1;break;case 1:yt>Math.abs(ue)?(We=Math.abs(ue)/yt,yt=Math.abs(ue)):We=1;break;default:case 4:ct>Math.abs(Je)?(We=Math.abs(Je)/ct,ct=Math.abs(Je)):We=1}Fe=0}var Vn=nn.Zo;if(b===Fv){switch(nn=nn.link.computeThickness(),nn*=We,Vn.set(xn),Zt){case 8:Vn.x=xn.x+ue/2+It/2-Fe-nn/2;break;case 2:Vn.y=xn.y+Je/2+Kt/2-Fe-nn/2;break;case 1:Vn.x=xn.x+ue/2-yt/2+Fe+nn/2;break;default:case 4:Vn.y=xn.y+Je/2-ct/2+Fe+nn/2}Fe+=nn}else{var ir=.5;b===h0&&(ir=(nn.Uo+1)/(nn.Gl+1)),Vn.x=xn.x+ue*ir,Vn.y=xn.y+Je*ir}}}for(ke.free(ot),ke.free(at),ke.free(nt),ke.free(ut),xn=a.pe,z=0;z<xn.length;z++)b=xn[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,ai.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}ap.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},ap.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Wa,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},ap.className="Knot";function Rv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new ke,this.Gl=this.Uo=0,this.Zo=new ke,this.Ju=0}Rv.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},Rv.className="LinkInfo";function Ka(a){Zo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new ke(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ka.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Ka.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ka.prototype.qb=function(){},Ka.prototype.toString=function(){var a=or(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ka.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Ka.prototype.createNetwork=function(){return new ya(this)},Ka.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof _n?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof To?y.lg(a.memberParts):y.lg(a.iterator),y},Ka.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Ka.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Ka.prototype.doLayout=function(a){var y=new Bi;a instanceof _n?(ig(this,y,a.nodes,!0,this.rh,!0,!1,!0),ig(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof To?ig(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Ka.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,nt=0;for(a=a.iterator;a.next();){var ot=a.value;Em(ot);var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(b,E),ot instanceof To&&(ot.rh=!1),b+=Math.max(ut,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Ka.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value.node;if(!(ot===null||ot instanceof Wi)&&(Em(ot),this.rh(ot))){var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(x,b),ot instanceof To&&(ot.rh=!1),x+=Math.max(ut,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Ka.prototype.rh=function(a){return!!(!a.location.w()||a instanceof To&&a.rh)};function ig(a,y,x,b,E,z,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof hr?at.isLinkLabel||(at instanceof To&&at.layout===null?ig(a,y,at.memberParts,!1,E,z,nt,ot):(Em(at),y.add(at))):nt&&at instanceof Wi?y.add(at):!ot||!at.Zc()||at instanceof hr||(Em(at),y.add(at)))}}function Em(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ka.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ai),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ka.prototype.ex=function(a){var y=new Bi;return a instanceof _n?(ig(this,y,a.nodes,!0,null,!0,!0,!0),ig(this,y,a.links,!0,null,!0,!0,!0),ig(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof To?ig(this,y,a.memberParts,!1,null,!0,!0,!0):ig(this,y,a.iterator,!1,null,!0,!0,!0),y},Ka.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(nl),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},qe.Object.defineProperties(Ka.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Ka.prototype.collectParts=Ka.prototype.ex,Ka.prototype.getLayoutBounds=Ka.prototype.ni,Ka.prototype.invalidateLayout=Ka.prototype.C,Ka.className="Layout";function ya(a){Zo(this),this.Sc=a,this.wf=new Bi,this.ye=new Bi,this.Es=new gr,this.zs=new gr}ya.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Bi,this.ye=new Bi,this.Es=new gr,this.zs=new gr},ya.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
`+x.value.toString(a-1)}return y},ya.prototype.createVertex=function(){return new xu(this)},ya.prototype.createEdge=function(){return new Mc(this)},ya.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof hr)return!nt.isLinkLabel;if(nt instanceof Wi){var ot=nt.fromNode;return ot===null||ot.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof hr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof To&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Wi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},ya.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},$t=ya.prototype,$t.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},$t.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},$t.Iu=function(a){if(a!==null&&g1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function g1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}$t.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},$t.ki=function(a){return a===null?null:this.Es.I(a)},$t.Bo=function(a){if(a!==null){_v(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function _v(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}$t.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},$t.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),Hv(this,a)}};function Hv(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}$t.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},$t.Lo=function(a){return a===null?null:this.zs.I(a)},$t.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},$t.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},$t.Ko=function(){for(var a=cr(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);wr(a)},ya.prototype.deleteArtificialVertexes=function(){for(var a=cr(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=cr(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);wr(a),wr(y)};function jw(a){for(var y=cr(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);wr(y)}ya.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jw(this),this.Ko()),a=new Ci;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),Qv(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function Qv(a,y,x){if(x!==null&&x.network!==y){g1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(Hv(a,E),_v(y,E),Qv(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(Hv(a,x),_v(y,x),Qv(a,y,x.toVertex))}}ya.prototype.dz=function(){for(var a=new Bi,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},qe.Object.defineProperties(ya.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),ya.prototype.findAllParts=ya.prototype.dz,ya.prototype.splitIntoSubNetworks=ya.prototype.Zx,ya.prototype.deleteSelfEdges=ya.prototype.Ko,ya.prototype.reverseEdge=ya.prototype.gm,ya.prototype.linkVertexes=ya.prototype.Zj,ya.prototype.findEdge=ya.prototype.Lo,ya.prototype.deleteLink=ya.prototype.Yy,ya.prototype.deleteEdge=ya.prototype.Mj,ya.prototype.addLink=ya.prototype.Dy,ya.prototype.addEdge=ya.prototype.Bo,ya.prototype.findVertex=ya.prototype.ki,ya.prototype.deleteNode=ya.prototype.Zy,ya.prototype.deleteVertex=ya.prototype.Iu,ya.prototype.addNode=ya.prototype.Bl,ya.prototype.addVertex=ya.prototype.dh,ya.prototype.addParts=ya.prototype.lg,ya.className="LayoutNetwork";function xu(a){Zo(this),this.ob=a,this.j=new ai(0,0,10,10).freeze(),this.o=new ke(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ci,this.mg=new Ci}xu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ci,this.mg=new Ci},xu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+fs(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},xu.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;kn(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof To)){x=ai.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Eo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),ai.free(x);return}ai.free(x)}a.moveTo(y.x,y.y)}},xu.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},xu.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},xu.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},xu.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function zv(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}qe.Object.defineProperties(xu.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ai.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),ai.free(x),!(a instanceof To)&&(a=a.locationObject.ga(Eo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Bi,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Bi,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Bi,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Ci,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),xu.prototype.deleteDestinationEdge=xu.prototype.Jl,xu.prototype.addDestinationEdge=xu.prototype.zl,xu.prototype.deleteSourceEdge=xu.prototype.Kl,xu.prototype.addSourceEdge=xu.prototype.Cl,xu.className="LayoutVertex",xu.standardComparer=zv,xu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Mc(a){Zo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Mc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Mc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+fs(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Mc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Mc.prototype.commit=function(){},Mc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},qe.Object.defineProperties(Mc.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Mc.prototype.getOtherVertex=Mc.prototype.Ax,Mc.className="LayoutEdge";function ih(a){Ka.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Ki(NaN,NaN).freeze(),this.tf=new Ki(10,10).freeze(),this.Jb=Fm,this.Rb=B0,this.nd=Lm,this.hd=p1,a&&Object.assign(this,a)}Mn(ih,Ka),ih.prototype.cloneProtected=function(a){Ka.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ih.prototype.qb=function(a){a.classType===ih?a===Lm||a===b0||a===Kv||a===P0?this.sorting=a:a===B0||a===AA?this.arrangement=a:a===Fm||a===C0?this.alignment=a:gn("Unknown enum value: "+a):Ka.prototype.qb.call(this,a)},ih.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof To)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case P0:E.reverse();break;case Lm:E.sort(this.comparer);break;case b0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case C0:var ot=y,at=x,ut=ai.alloc(),ct=Math.max(this.cellSize.width,1);if(!isFinite(ct))for(var yt=ct=0;yt<E.length;yt++){var It=this.ni(E[yt],ut);ct=Math.max(ct,It.width)}if(ct=Math.max(ct+ot,1),yt=Math.max(this.cellSize.height,1),!isFinite(yt))for(It=yt=0;It<E.length;It++){var Kt=this.ni(E[It],ut);yt=Math.max(yt,Kt.height)}yt=Math.max(yt+at,1),It=this.arrangement;for(var Zt=Kt=this.arrangementOrigin.x,ue=this.arrangementOrigin.y,Re=0,Fe=0,We=0;We<E.length;We++){var Je=E[We],nn=this.ni(Je,ut),xn=Math.ceil((nn.width+ot)/ct)*ct,Vn=Math.ceil((nn.height+at)/yt)*yt;switch(It){case AA:var ir=Math.abs(Zt-nn.width);break;default:ir=Zt+nn.width}switch((0<z&&Re>z-1||0<nt&&0<Re&&ir-Kt>nt)&&(b.push(new ai(0,ue,nt+ot,Fe)),Re=0,Zt=Kt,ue+=Fe,Fe=0),Fe=Math.max(Fe,Vn),It){case AA:nn=-nn.width;break;default:nn=0}switch(Je.moveTo(Zt+nn,ue),It){case AA:Zt-=xn;break;default:Zt+=xn}Re++}b.push(new ai(0,ue,nt+ot,Fe)),ai.free(ut);break;case Fm:for(at=nt,ct=z,yt=y,It=x,nt=ai.alloc(),Kt=Math.max(this.cellSize.width,1),z=ue=ut=0,ot=ke.alloc(),Zt=0;Zt<E.length;Zt++)Fe=E[Zt],Re=this.ni(Fe,nt),Fe=bf(Fe,Fe.locationObject,Fe.locationSpot,ot),ut=Math.max(ut,Fe.x),ue=Math.max(ue,Re.width-Fe.x),z=Math.max(z,Fe.y);switch(Zt=this.arrangement,Zt){case AA:ut+=yt;break;default:ue+=yt}Kt=isFinite(Kt)?Math.max(Kt+yt,1):Math.max(ut+ue,1);var Lr=Fe=this.arrangementOrigin.x;for(We=this.arrangementOrigin.y,ue=0,at>=ut&&(at-=ut),ut=Je=0,xn=Math.max(this.cellSize.height,1),nn=z=0,Vn=!0,Re=ke.alloc(),ir=0;ir<E.length;ir++){var yr=E[ir],Gi=this.ni(yr,nt),Mi=bf(yr,yr.locationObject,yr.locationSpot,ot);if(0<ue)switch(Zt){case AA:Lr=(Lr-Fe-(Gi.width-Mi.x))/Kt,Lr=En.$(Math.round(Lr),Lr)?Math.round(Lr):Math.floor(Lr),Lr=Lr*Kt+Fe;break;default:Lr=(Lr-Fe+Mi.x)/Kt,Lr=En.$(Math.round(Lr),Lr)?Math.round(Lr):Math.ceil(Lr),Lr=Lr*Kt+Fe}else switch(Zt){case AA:Je=Lr+Mi.x+Gi.width;break;default:Je=Lr-Mi.x}switch(Zt){case AA:var Fo=-(Lr+Mi.x)+Je;break;default:Fo=Lr+Gi.width-Mi.x-Je}if(0<ct&&ue>ct-1||0<at&&0<ue&&Fo>at){for(b.push(new ai(0,Vn?We-z:We,at+yt,nn+z+It)),Lr=0;Lr<ue&&ir!==ue;Lr++){Fo=E[ir-ue+Lr];var mo=bf(Fo,Fo.locationObject,Fo.locationSpot,Re);Fo.moveTo(Fo.position.x,Fo.position.y+z-mo.y)}nn+=It,We=Vn?We+nn:We+(nn+z),ue=nn=z=0,Lr=Fe,Vn=!1}switch(Lr===Fe&&(ut=Zt===AA?Math.max(ut,Gi.width-Mi.x):Math.min(ut,-Mi.x)),z=Math.max(z,Mi.y),nn=Math.max(nn,Gi.height-Mi.y),isFinite(xn)&&(nn=Math.max(nn,Math.max(Gi.height,xn)-Mi.y)),Vn?yr.moveTo(Lr-Mi.x,We-Mi.y):yr.moveTo(Lr-Mi.x,We),Zt){case AA:Lr-=Mi.x+yt;break;default:Lr+=Gi.width-Mi.x+yt}ue++}if(b.push(new ai(0,We,at+yt,(Vn?nn:nn+z)+It)),E.length!==ue)for(at=0;at<ue;at++)ct=E[E.length-ue+at],yt=bf(ct,ct.locationObject,ct.locationSpot,ot),ct.moveTo(ct.position.x,ct.position.y+z-yt.y);if(ke.free(ot),ke.free(Re),Zt===AA)for(E=0;E<b.length;E++)z=b[E],z.width+=ut,z.x-=ut;else for(E=0;E<b.length;E++)z=b[E],z.x>ut&&(z.width+=z.x-ut,z.x=ut);ai.free(nt)}for(ot=z=nt=E=0;ot<b.length;ot++)at=b[ot],E=Math.min(E,at.x),nt=Math.min(nt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===AA?this.commitLayers(b,new ke(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new ke(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ih.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}qe.Object.defineProperties(ih.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Fm&&a!==C0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==B0&&a!==AA||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Kv&&a!==P0&&a!==Lm&&a!==b0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var C0=new Dn(ih,"Position",0),Fm=new Dn(ih,"Location",1),B0=new Dn(ih,"LeftToRight",2),AA=new Dn(ih,"RightToLeft",3),Kv=new Dn(ih,"Forward",4),P0=new Dn(ih,"Reverse",5),Lm=new Dn(ih,"Ascending",6),b0=new Dn(ih,"Descending",7);ih.className="GridLayout",ih.standardComparer=p1,ih.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},ih.Position=C0,ih.Location=Fm,ih.LeftToRight=B0,ih.RightToLeft=AA,ih.Forward=Kv,ih.Reverse=P0,ih.Ascending=Lm,ih.Descending=b0;function Xs(){this.On=new Bi,this.Dn=new Bi,this.Pa=new Bi,this.cf=new gr,this.bf=new gr,this.aj=new gr,this.H=null,this.tp=!1}$t=Xs.prototype,$t.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},$t.Xe=function(a){this.H=a},$t.oi=function(a){if(a instanceof hr){if(this.On.add(a),a instanceof To){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Wi?this.Dn.add(a):a instanceof Fs||this.Pa.add(a);y=a.data,y===null||a instanceof Fs||(a instanceof Wi?this.bf.add(y,a):this.cf.add(y,a))},$t.pc=function(a){if(a.Ej(),a instanceof hr){if(this.On.remove(a),a instanceof To){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Wi?this.Dn.remove(a):a instanceof Fs||this.Pa.remove(a);y=a.data,y===null||a instanceof Fs||(a instanceof Wi?this.bf.remove(y):this.cf.remove(y))},$t.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof To)&&gn('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof To||gn('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Wi||gn('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=cr(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=cr(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=cr(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);wr(y),wr(x),wr(a)}},Xs.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Xs.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&m1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&EA(this.diagram,!1)};function m1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=v1(a,y,b);if(E!==null&&(ou(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Xs.prototype.insertLink=function(){return null},Xs.prototype.resolveReferencesForData=function(){},Xs.prototype.Ro=function(a){return this.H.model.Ro(a)};function v1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(x1||(x1=!0,$i('No Group template found for category "'+x+'"'),$i(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,$i('No Node template found for category "'+x+'"'),$i(" Using default node template")),y=a.ny))),y}Xs.prototype.getLinkCategoryForData=function(){return""},Xs.prototype.setLinkCategoryForData=function(){},Xs.prototype.setFromNodeForLink=function(){},Xs.prototype.setToNodeForLink=function(){},Xs.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(S1||(S1=!0,$i('No Link template found for category "'+a+'"'),$i(" Using default link template")),x=y.my)),x},Xs.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Xs.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Xs.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Pd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Xs.prototype.unresolveReferencesForPart=function(){},Xs.prototype.removeDataForLink=function(){},Xs.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Xs.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof hr?a:null)},Xs.prototype.findLinkForKey=function(){return null},$t=Xs.prototype,$t.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},$t.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof hr?a:null)},$t.Kc=function(a){return a===null?null:this.bf.I(a)},$t.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Bi;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(kn(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator},$t.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Bi;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(kn(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator};function Gv(a,y,x){for(var b in x){var E=y[b],z=x[b];if(yi(z)){if(!yi(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var ot=z[nt];if(ot!==void 0&&!y1(a,E[nt],ot))return!1}}else if(!y1(a,E,z))return!1}return!0}function y1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(kn(y)&&kn(x)){if(!Gv(a,y,x))return!1}else if(y!==x)return!1;return!0}Xs.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Fa){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===dl){var nt=a.newValue;b==="nodeDataArray"&&kn(nt)&&m1(this,nt),y.isModified=!0}else if(x===Ql){var ot=a.oldValue;b==="nodeDataArray"&&kn(ot)&&this.ip(ot),y.isModified=!0}else x===sh&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Fa){var at=a.propertyName,ut=a.object;ut===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ut,at),y.isModified=!0}else if(x===dl||x===Ql){var ct=a.change===dl,yt=ct?a.newParam:a.oldParam,It=ct?a.newValue:a.oldValue,Kt=this.aj.I(a.object);if(Array.isArray(Kt))for(a=0;a<Kt.length;a++){var Zt=Kt[a];if(ct)DA(Zt,It,yt,!0);else if(!(0>yt)){var ue=yt+OA(Zt);Zt.pc(ue,!0),gh(Zt,ue,yt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Xs.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Xs.prototype.rp=function(){for(var a=this.H.model,y=new Bi,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),E.forEach(function(nt){N1(a,nt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&M1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Xs.prototype.refreshDataBoundLinks=function(){},Xs.prototype.updateRelationshipsFromData=function(){},Xs.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var nt=E[z].sx(a);nt!==null&&(x===null&&(x=cr()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);wr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(yi(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function Vv(a,y,x){hl(y,function(nt){nt=nt.O.s;for(var ot=nt.length,at=0;at<ot;at++)hA(x,nt[at])});var b=y.Hh;if(yi(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Xs.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new gr;if(yi(a))for(var E=0;E<a.length;E++)E0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)E0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Bi;for(var z=new gr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Wi)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof hr&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ut=ot.pg();ut!==null&&(ut=b.I(ut),ut!==null?(x.qe(at.data,x.wa(ut.data)),at=y.Kc(at.data),ot=ot.kh(),ot!==null&&at!==null&&z.add(ot,at)):x.qe(at.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ct=new gr;b.each(function(yt){yt.key.data!==null&&ct.add(yt.key.data,yt.value.data)}),x(ct,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function E0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof Zr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof hr){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof To&&z instanceof To)for(y=y.memberParts;y.next();)nt=E0(a,y.value,x,b,E),nt instanceof Wi||nt===null||(nt.containingGroup=z)}else if(y instanceof Wi&&z instanceof Wi)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=E0(a,y.value,x,b,E),nt!==null&&nt instanceof hr&&(nt.labeledLink=z);return z}Xs.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Wi||(b=E.copyNodeData(b),kn(b)&&(E.xf(b),x=y.Lc(b)))}else ou(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Wi||(E=y.copyNodeData(b)),kn(E)&&(x.data=E)));return x},qe.Object.defineProperties(Xs.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Xs.prototype.updateAllRelationshipsFromData=Xs.prototype.rp,Xs.prototype.findLinksByExample=Xs.prototype.ls,Xs.prototype.findNodesByExample=Xs.prototype.ms,Xs.prototype.findLinkForData=Xs.prototype.Kc,Xs.prototype.findNodeForData=Xs.prototype.ii,Xs.prototype.findPartForData=Xs.prototype.Lc,Xs.prototype.findNodeForKey=Xs.prototype.Vb,Xs.prototype.removeModeledPart=Xs.prototype.ip,Xs.prototype.removeModeledParts=Xs.prototype.Gs,Xs.prototype.rebuildParts=Xs.prototype.Wd;var w1=!1,x1=!1,S1=!1;Xs.className="PartManager";function Qu(a){Xs.apply(this,arguments)}Mn(Qu,Xs),Qu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Qu.prototype.addModeledParts=function(a){for(Xs.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Dp(a.value);EA(this.diagram,!1)};function C1(a,y){y.forEach(function(x){B1(a,x)}),EA(a.diagram,!1)}function B1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){ou(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=N0(x,y,!0);z!==""&&(E.fromPortId=z),z=Jc(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof hr&&(E.fromNode=z)),z=N0(x,y,!1),z!==""&&(E.toPortId=z),z=Jc(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof hr&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Qu.prototype.removeAllModeledParts=function(){var a=this.diagram.model;P1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function P1(a,y){y.forEach(function(x){a.ip(x)})}Qu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Qu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Qu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Qu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Qu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Qu.prototype.findPartForKey=function(a){var y=Xs.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Qu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Qu.prototype.doModelChanged=function(a){var y=this;if(Xs.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Fa){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(E==="linkFromPortId"){var ut=this.Kc(a.object);if(ut!==null){var ct=a.newValue;typeof ct=="string"&&(ut.fromPortId=ct)}}else if(E==="linkToPortId"){var yt=this.Kc(a.object);if(yt!==null){var It=a.newValue;typeof It=="string"&&(yt.toPortId=It)}}else if(E==="nodeGroupKey"){var Kt=this.Lc(a.object);if(Kt!==null){var Zt=a.newValue;if(Zt!==void 0){var ue=this.Vb(Zt);ue instanceof To?Kt.containingGroup=ue:Kt.containingGroup=null}else Kt.containingGroup=null}}else if(E==="linkLabelKeys"){var Re=this.Kc(a.object);if(Re!==null){var Fe=a.oldValue,We=a.newValue;Array.isArray(Fe)&&Fe.forEach(function(Mi){0<=We.indexOf(Mi)||(Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=null))}),Array.isArray(We)&&We.forEach(function(Mi){Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=Re)})}}else if(E==="linkCategory"){var Je=this.Kc(a.object),nn=a.newValue;Je!==null&&typeof nn=="string"&&(Je.category=nn)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===dl){var xn=a.newValue;if(E==="linkDataArray"&&typeof xn=="object"&&xn!==null)B1(this,xn);else if(E==="linkLabelKeys"&&og(xn)){var Vn=this.Kc(a.object),ir=this.Vb(xn);Vn!==null&&ir!==null&&(ir.labeledLink=Vn)}x.isModified=!0}else if(b===Ql){var Lr=a.oldValue;if(E==="linkDataArray"&&typeof Lr=="object"&&Lr!==null)this.ip(Lr);else if(E==="linkLabelKeys"&&og(Lr)){var yr=this.Vb(Lr);yr!==null&&(yr.labeledLink=null)}x.isModified=!0}}else if(b===Fa){var Gi=a.propertyName;a.object!==x.model||Gi!=="linkFromKeyProperty"&&Gi!=="linkToKeyProperty"&&Gi!=="linkFromPortIdProperty"&&Gi!=="linkToPortIdProperty"&&Gi!=="linkLabelKeysProperty"&&Gi!=="nodeIsGroupProperty"&&Gi!=="nodeGroupKeyProperty"&&Gi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Qu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Bi,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){j1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&D1(y,z,!1)})},Qu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Wi){var E=Jc(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Jc(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Bi().addAll(y);var nt=new Bi;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&nt.add(ot))}),y=nt.copy(),y.hp(E),E=E.copy(),E.hp(nt),(0<y.count||0<E.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),E.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof Fs)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof To)&&(a.containingGroup=y)}}},Qu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Mm(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof To&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof hr&&(Jc(y,nt,!0)===x&&(z.link.fromNode=E),Jc(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}gA(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof To&&(E.containingGroup=a))}},Qu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof hr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)fA(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&fA(y,x,b.data)),a instanceof To)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&fA(y,x,b)}}},Qu.prototype.copyPartData=function(a,y){var x=Xs.prototype.copyPartData.call(this,a,y);if(a instanceof Wi)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Qu.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,nt=E.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof Wi){if(ou(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof hr&&(ou(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Qp(z,b,z.wa(a.data),!0),zp(z,b,ot,!0),x!==null&&Qp(z,b,z.wa(x.data),!1),zp(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof hr||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},Qu.prototype.findLinkForKey=Qu.prototype.findLinkForKey,Qu.prototype.findPartForKey=Qu.prototype.findPartForKey,Qu.prototype.removeAllModeledParts=Qu.prototype.removeAllModeledParts,Qu.prototype.addModeledParts=Qu.prototype.addModeledParts,Qu.prototype.addAllModeledParts=Qu.prototype.addAllModeledParts,Qu.className="GraphLinksPartManager";function gd(){Xs.apply(this,arguments),this.Sg=null}Mn(gd,Xs);function F0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Un(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(ou(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}gd.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},gd.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},gd.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},gd.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},gd.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},gd.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},gd.prototype.doModelChanged=function(a){if(Xs.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Fa){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var ot=nt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:F0(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ut=a.newValue;if(at!==null&&typeof ut=="string"){var ct=at.kh();ct!==null&&(ct.category=ut)}}y.isModified=!0}}else if(x===Fa){var yt=a.propertyName;a.object===y.model&&yt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},gd.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof hr&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:F0(this,y,a):b!==null&&Pd(x,b,!1)))}}},gd.prototype.updateDataBindings=function(a,y){Xs.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},gd.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Mm(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof hr&&y.mh(z)===x&&F0(this,E,this.ii(z))}gA(y,x)}a=y.mh(a),a!==void 0&&E instanceof hr&&(a=this.Vb(a),F0(this,a,E))}},gd.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof hr){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(Ql,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&fA(y,x,E)}},gd.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},gd.prototype.findLinkForKey=gd.prototype.findLinkForKey,gd.className="TreePartManager";function jr(a,y){this.kl=new Bi,this.il=new Bi,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Zo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new gr,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new gr,this.Lt=new Ci,this.Wg=!1,this.o=null,this.undoManager=new Et,a!==void 0&&(yi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}jr.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},jr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},jr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},jr.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+xr(E)}}return y},jr.prototype.xA=function(a){a.change!==sh&&gn("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Jl?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},jr.prototype.Qv=function(a,y){var x=this,b=!1,E=new Bi,z=new Bi,nt=new Bi,ot=this.vh;a.changes.each(function(yt){yt.model===x&&(yt.modelChange==="nodeDataArray"?yt.change===dl?E.add(yt.newValue):yt.change===Ql&&nt.add(yt.oldValue):x.lb(yt.object)?z.add(yt.object):yt.change!==Fa||x.modelData!==yt.object&&yt.propertyName!=="modelData"?yt.object!==null&&(ot&&ot.contains(yt.object)?ot.get(yt.object).each(function(It){x.lb(It)&&z.add(It)}):yt.object instanceof jr||x.ri()&&x.Jc(yt.object)||F1(x,yt.object).each(function(It){z.add(It)})):b=!0)});var at=this.il;at.clear(),E.each(function(yt){at.add(x.wa(yt)),y||z.add(yt)});var ut=this.kl;ut.clear(),nt.each(function(yt){ut.add(x.wa(yt)),y&&z.add(yt)}),a=x.cloneDeep(z.Fa());var ct=null;return b&&(ct===null&&(ct={}),ct.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ct===null&&(ct={}),y?ct.removedNodeKeys=at.Fa():ct.insertedNodeKeys=at.Fa()),0<a.length&&(ct===null&&(ct={}),ct.modifiedNodeData=a),0<ut.count&&(ct===null&&(ct={}),y?ct.insertedNodeKeys=ut.Fa():ct.removedNodeKeys=ut.Fa()),ut.clear(),at.clear(),ct},jr.prototype.cloneDeep=function(a){return Hp(this,a,!0)};function Hp(a,y,x,b,E,z){function nt(yt,It){ot?(yt.__gohashid===void 0&&z.push(yt),b.set(yt,It)):(yt=ba++,b.set(yt,It),E.set(yt,y))}if(!kn(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new gr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new gr),at=E.iterator;at.next();){var ut=at.key;if(at.value===y&&(ut=b.get(ut)))return ut}if(Array.isArray(y)){at=[],nt(y,at);for(var ct=0;ct<y.length;ct++)at.push(Hp(a,y[ct],!1,b,E,z))}else if(y instanceof ke||y instanceof Ki||y instanceof ai||y instanceof Gr||y instanceof fr)at=y.copy(),nt(y,at);else{if(y instanceof js||y instanceof Vi||y instanceof Dn)return y;if(y instanceof Ci)at=new Ci().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Bi)at=new Bi().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof gr)at=new gr().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),nt(y,at);else if(y instanceof RegExp)at=new RegExp(y),nt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),nt(y,at);else for(ct in at={},nt(y,at),y)ct!=="__gohashid"&&(at[ct]=Hp(a,y[ct],!1,b,E,z))}return x&&z.forEach(function(yt){delete yt.__gohashid}),at}$t=jr.prototype,$t.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},$t.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},$t.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function b1(a,y){y=y.modelData,kn(y)&&(a.dm(y),a.modelData=y)}$t.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!L1(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+Zv(this,this.modelData)),a+`,
"nodeDataArray": `+rg(this,this.nodeDataArray,!0)},$t.kv=function(a){b1(this,a),a=a.nodeDataArray,yi(a)&&(this.dm(a),this.nodeDataArray=a)};function E1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var nt=b.get(E);nt===null?(nt=new Bi,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new gr,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Fa?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===dl||z===Ql)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function F1(a,y){for(var x=new Bi,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];L0(a,y,E,E,x)}return x}function L0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}else if(kn(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}return!1}$t.Pv=function(a,y){var x=this,b=!1,E=new Bi,z=new Bi,nt=new Bi,ot=this.vh;a.changes.each(function(ct){ct.model===x&&(ct.modelChange==="nodeDataArray"?ct.change===dl?E.add(ct.newValue):ct.change===Ql&&nt.add(ct.oldValue):x.lb(ct.object)?z.add(ct.object):ct.change!==Fa||x.modelData!==ct.object&&ct.propertyName!=="modelData"?ct.object!==null&&(ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){x.lb(yt)&&z.add(yt)}):ct.object instanceof jr||x.ri()&&x.Jc(ct.object)||F1(x,ct.object).each(function(yt){z.add(yt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ct){at.add(x.wa(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(x.wa(ct)),y&&z.add(ct)}),a="",b&&(a+=`,
"modelData": `+Zv(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+rg(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+rg(this,z.Fa(),!0)),0<ut.count&&(a+=(y?this.Wv:this.Yv)+rg(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},$t.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&gn("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new gr;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],nt=this.wa(z);nt!=null&&b.set(nt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){nt=y[z];var ot=this.hc(nt);ot===null&&(ot=(ot=b.get(nt))?ot:this.copyNodeData({}),this.km(ot,nt),this.xf(ot))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var at in E)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,E[at]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,at=0;at<x;at++)y=this.hc(a[at]),y!==null&&this.cm(y)},$t.$x=function(a,y){a.change!==sh&&gn("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Jl?(y===void 0&&(y=Nm(this,this)),E1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},$t.yA=function(a,y){return this.$x(a,y)},$t.np=function(a){return a===void 0&&(a=Nm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},$t.toJSON=function(a){return this.np(a)},$t.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ee.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:gn("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&gn("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},$t.Ky=function(a){return this.Zw(a)},jr.constructGraphLinksModel=function(){return new jr},$t=jr.prototype,$t.dm=function(a){if(yi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(kn(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:gn("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(kn(a)){for(y in a)if(x=a[y],kn(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Ci,b=0;b<x.length/2;b++)E.add(new ke(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},$t.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):yi(a)?rg(this,a):kn(a)?Zv(this,a):typeof a=="function"?"null":a.toString()};function rg(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new ao;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var nt=y[z];nt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(nt)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function L1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function $h(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof ke)y={class:"go.Point",x:$h(x.x),y:$h(x.y)};else if(x instanceof Ki)y={class:"go.Size",width:$h(x.width),height:$h(x.height)};else if(x instanceof ai)y={class:"go.Rect",x:$h(x.x),y:$h(x.y),width:$h(x.width),height:$h(x.height)};else if(x instanceof Gr)y={class:"go.Margin",top:$h(x.top),right:$h(x.right),bottom:$h(x.bottom),left:$h(x.left)};else if(x instanceof fr)x.sb()?y={class:"go.Spot",x:$h(x.x),y:$h(x.y),offsetX:$h(x.offsetX),offsetY:$h(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof js){if(y={class:"go.Brush",type:x.type.name},x.type===zt?y.color=x.color:(x.type===de||x.type===be)&&(y.start=x.start,y.end=x.end,x.type===be&&(x.startRadius!==0&&(y.startRadius=$h(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=$h(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Vi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=$h(x.startX)),x.startY!==0&&(y.startY=$h(x.startY)),x.endX!==0&&(y.endX=$h(x.endX)),x.endY!==0&&(y.endY=$h(x.endY)),x.spot1.D(nl)||(y.spot1=x.spot1),x.spot2.D(Yl)||(y.spot2=x.spot2),x.type===Vi.o&&(y.path=Vi.ia(x))):x instanceof Dn&&(y={class:"go.EnumValue",classType:Nm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Xl(y,E);if(!L1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Ci){var nt="[";for(z=z.iterator;z.next();){var ot=z.value;1<nt.length&&(nt+=","),nt+=a.sm(ot.x),nt+=",",nt+=a.sm(ot.y)}nt+="]",b+=nt}else b+=a.sm(z)}return b+"}"}function Yh(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Uw(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new ke(Yh(a.x),Yh(a.y));else if(y==="Size")x=new Ki(Yh(a.width),Yh(a.height));else if(y==="Rect")x=new ai(Yh(a.x),Yh(a.y),Yh(a.width),Yh(a.height));else if(y==="Margin")x=new Gr(Yh(a.top),Yh(a.right),Yh(a.bottom),Yh(a.left));else if(y==="Spot")typeof a.enum=="string"?x=zd(a.enum):x=new fr(Yh(a.x),Yh(a.y),Yh(a.offsetX),Yh(a.offsetY));else if(y==="Brush"){if(x=new js,x.type=Tr(js,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof fr&&(x.start=a.start),a.end instanceof fr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Yh(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Yh(a.endRadius)),a=a.colorStops,kn(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Vi.parse(a.path):x=new Vi,x.type=Tr(Vi,a.type),typeof a.startX=="number"&&(x.startX=Yh(a.startX)),typeof a.startY=="number"&&(x.startY=Yh(a.startY)),typeof a.endX=="number"&&(x.endX=Yh(a.endX)),typeof a.endY=="number"&&(x.endY=Yh(a.endY)),a.spot1 instanceof fr&&(x.spot1=a.spot1),a.spot2 instanceof fr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=$v(b),typeof b=="function"&&(x=Tr(b,a.name)));return x}$t.Pe=function(a){return this.Lt.add(a),this},$t.ik=function(a){this.Lt.remove(a)},$t.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},$t.cb=function(a,y,x,b,E,z,nt){Au(this,"",a,y,x,b,E,z,nt)},$t.g=function(a,y,x,b,E){Au(this,"",Fa,a,this,y,x,b,E)},$t.Fs=function(a,y,x,b,E,z){Au(this,"",Fa,y,a,x,b,E,z)};function Au(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ut=new Ea;ut.model=a,ut.change=x,ut.modelChange=y,ut.propertyName=b,ut.object=E,ut.oldValue=z,ut.oldParam=ot,ut.newValue=nt,ut.newParam=at,a.ds(ut)}jr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Fa){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),_a(x,b,E)}else a.change===dl?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,kn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&zr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&dr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!yi(b)&&a.propertyName&&(b=Xl(a.object,a.propertyName)),yi(b)&&typeof x=="number"&&(a=a.newValue,y?zr(b,x):dr(b,x,a))):gn("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ql?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,kn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&dr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&zr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!yi(b)&&a.propertyName&&(b=Xl(a.object,a.propertyName)),yi(b)&&typeof x=="number"&&(a=a.oldValue,y?dr(b,x,a):zr(b,x))):gn("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==sh&&gn("unknown ChangedEvent: "+a.toString())},jr.prototype.Ea=function(a){return this.undoManager.Ea(a)},jr.prototype.eb=function(a){return this.undoManager.eb(a)},jr.prototype.Kf=function(){return this.undoManager.Kf()},jr.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},$t=jr.prototype,$t.La=function(a,y){y===void 0&&(y=""),Au(this,"SourceChanged",sh,y,a,null,null)},$t.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;gn("Key value for node data "+a+" is not a number or a string: "+y)}}},$t.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b!==y&&this.hc(y)===null&&(_a(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Au(this,"nodeKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else _a(a,x,y)}};function og(a){return typeof a=="number"||typeof a=="string"}$t.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},$t.hc=function(a){return a===null&&gn("Model.findNodeDataForKey:key must not be null"),a!==void 0&&og(a)?this.kb.I(a):null},$t.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){_a(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;_a(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;_a(a,y,x)}}}}},$t.xf=function(a){a!==null&&(ra(a),this.lb(a)||M1(this,a,!0))};function M1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&gn("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,dr(a.Tc,b,y)),Au(a,"nodeDataArray",dl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}$t.Fy=function(a){if(yi(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},$t.cm=function(a){a!==null&&N1(this,a,!0)};function N1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;zr(a.Tc,b)}Au(a,"nodeDataArray",Ql,"nodeDataArray",a,y,null,b,null),a.qp(y)}$t.nA=function(a){if(yi(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},$t.$z=function(a){if(a!==this.nodeDataArray&&yi(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.wa(z);if(nt!==void 0){x.add(nt);var ot=this.hc(nt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,nt),this.xf(z)))}else nt=this.cloneDeep(z),this.xf(nt),x.add(this.wa(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},$t.jp=function(a,y){y!==void 0&&(a=Mm(this,a),a instanceof Bi&&this.Vf.add(y,a))},$t.Lv=function(){},$t.fm=function(){},$t.em=function(){},$t.qp=function(){};function fA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Bi,a.Vf.add(y,b)),b.add(x)}}function gA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Bi&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Mm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Bi?a:null)}$t.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},jr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):M0(this,a,!0),kn(a)&&Zo(a),a};function M0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=M0(a,y[x],a.copiesArrayObjects);b.push(E)}return Zo(b),b}if(x&&kn(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=Xl(y,b),nt=Nm(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof jr||z instanceof Et||z instanceof Jl||z instanceof Ea||(z=M0(a,z,!1)),_a(x,b,z)}return Zo(x),x}return y instanceof ke||y instanceof Ki||y instanceof ai||y instanceof fr||y instanceof Gr?y.copy():y}jr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!I1&&a instanceof fn&&(I1=!0,$i('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),$i(" Is that really your intent?"));var b=Xl(a,y);b!==x&&(_a(a,y,x),this.Fs(a,y,b,x))},$t=jr.prototype,$t.set=function(a,y,x){this.setDataProperty(a,y,x)},$t.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},$t.Ay=function(a,y){this.ts(a,-1,y)},$t.ts=function(a,y,x){0>y&&(y=a.length),dr(a,y,x),Au(this,"",dl,"",a,null,x,null,y)},$t.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&gn("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];zr(a,y),Au(this,"",Ql,"",a,x,null,y,null)},$t.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Xl(a,y),y===void 0))return"";if(typeof y=="string")return y;gn("getCategoryForNodeData found a non-string category for "+a+": "+y)},$t.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b===void 0&&(b=""),b!==y&&(_a(a,x,y),Au(this,"nodeCategory",Fa,x,a,b,y))}else _a(a,x,y)}},$t.lm=function(a,y){this.jm(y,this.Ro(a))},$t.Tl=function(){return!1},$t.Wj=function(){return!1},$t.ri=function(){return!1},$t.xs=function(){return!1},$t.Xj=function(){return!1};function Xv(){return new jr}function Nm(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Nm(a,y.constructor);return typeof y}function $v(a){return tA[a]?tA[a]:Ee.go!==void 0&&Ee.go[a]?Ee.go[a]:null}function Xl(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function _a(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}qe.Object.defineProperties(jr.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&gn("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&gn("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];kn(E)||gn("Model.nodeDataArray must only contain Objects, not: "+E),ra(E)}for(this.Tc=a,b=new Ci,E=0;E<x;E++){var z=a[E],nt=this.wa(z);nt===void 0||this.kb.I(nt)!==null?b.add(z):this.kb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Au(this,"nodeDataArray",Fa,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),jr.prototype.setCategoryForNodeData=jr.prototype.jm,jr.prototype.getCategoryForNodeData=jr.prototype.Ro,jr.prototype.removeArrayItem=jr.prototype.ov,jr.prototype.insertArrayItem=jr.prototype.ts,jr.prototype.addArrayItem=jr.prototype.Ay,jr.prototype.assignAllDataProperties=jr.prototype.Do,jr.prototype.set=jr.prototype.set,jr.prototype.clearUnresolvedReferences=jr.prototype.Qy,jr.prototype.mergeNodeDataArray=jr.prototype.$z,jr.prototype.removeNodeDataCollection=jr.prototype.nA,jr.prototype.removeNodeData=jr.prototype.cm,jr.prototype.addNodeDataCollection=jr.prototype.Fy,jr.prototype.addNodeData=jr.prototype.xf,jr.prototype.makeNodeDataKeyUnique=jr.prototype.$u,jr.prototype.findNodeDataForKey=jr.prototype.hc,jr.prototype.containsNodeData=jr.prototype.lb,jr.prototype.setKeyForNodeData=jr.prototype.km,jr.prototype.getKeyForNodeData=jr.prototype.wa,jr.prototype.updateTargetBindings=jr.prototype.La,jr.prototype.commit=jr.prototype.commit,jr.prototype.rollbackTransaction=jr.prototype.Kf,jr.prototype.commitTransaction=jr.prototype.eb,jr.prototype.startTransaction=jr.prototype.Ea,jr.prototype.raiseDataChanged=jr.prototype.Fs,jr.prototype.raiseChanged=jr.prototype.g,jr.prototype.raiseChangedEvent=jr.prototype.cb,jr.prototype.removeChangedListener=jr.prototype.ik,jr.prototype.addChangedListener=jr.prototype.Pe,jr.prototype.writeJsonValue=jr.prototype.sm,jr.prototype.replaceJsonObjects=jr.prototype.dm,jr.prototype.applyIncrementalJSON=jr.prototype.Ky,jr.prototype.applyIncrementalJson=jr.prototype.Zw,jr.prototype.toJSON=jr.prototype.toJSON,jr.prototype.toJson=jr.prototype.np,jr.prototype.toIncrementalJSON=jr.prototype.yA,jr.prototype.toIncrementalJson=jr.prototype.$x,jr.prototype.toIncrementalData=jr.prototype.xA,jr.prototype.clear=jr.prototype.clear;var I1=!1,tA={};jr.className="Model",jr.fromJSON=jr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ee.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:gn("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=$v(b)):(E=$v(b),E===null&&(E=Ee[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof jr?y=a:gn("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=jr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},jr.safePropertyValue=Xl,jr.safePropertySet=_a,tA.Brush=js,tA.ChangedEvent=Ea,tA.Geometry=Vi,tA.Margin=Gr,tA.Panel=ci,tA.Point=ke,tA.Rect=ai,tA.Size=Ki,tA.Spot=fr,tA.Transaction=Jl,tA.UndoManager=Et;function ql(a,y,x,b){Zo(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=T1,this.wk=null):(this.el=Im,this.wk=b),this.st=new Bi}ql.prototype.copy=function(){var a=new ql;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},$t=ql.prototype,$t.qb=function(a){a.classType===ql&&(this.mode=a)},$t.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},$t.freeze=function(){return this._isFrozen=!0,this},$t.ka=function(){return this._isFrozen=!1,this},$t.Kx=function(a){return a===void 0&&(a=null),this.mode=Im,this.backConverter=a,this},$t.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},$t.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function k1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}$t.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")$i("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Xl(y,b)),z!==void 0)if(E===null)x!==""&&_a(a,x,z);else try{if(x!==""){var nt=E(z,a);_a(a,x,nt)}else E(z,a)}catch(ot){}}}},$t.sp=function(a,y,x,b){if(this.el===Im){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=Xl(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,at=ot!==null?ot.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):_a(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ut=b.itemIndex,ct=b.panel.itemArray;at.ov(ct,ut),at.ts(ct,ut,nt)}}else try{if(x!==""){var yt=z(nt,y,at);at!==null?at.setDataProperty(y,x,yt):_a(y,x,yt)}else{var It=z(nt,y,at);if(It!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Kt=b.itemIndex,Zt=b.panel.itemArray;at.ov(Zt,Kt),at.ts(Zt,Kt,It)}}}catch(ue){}}finally{this.st.remove(a)}}}},qe.Object.defineProperties(ql.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&di(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&di(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&di(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&di(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&di(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&di(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&di(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&di(this),this.el=a}}}),ql.prototype.updateSource=ql.prototype.sp,ql.prototype.updateTarget=ql.prototype.Mv,ql.prototype.ofModel=ql.prototype.dA,ql.prototype.ofObject=ql.prototype.cp,ql.prototype.makeTwoWay=ql.prototype.Kx;var Rw="Binding",T1=new Dn(ql,"OneWay",1),Im=new Dn(ql,"TwoWay",2);ql.className="Binding",ql.parseEnum=function(a,y){return function(x){return x=Tr(a,x),x===null?y:x}},ql.toString=xr,ql.OneWay=T1,ql.TwoWay=Im;function ws(a,y,x){jr.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Bi,this.wb=new gr,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(yi(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Mn(ws,jr),ws.constructGraphLinksModel=jr.constructGraphLinksModel,ws.prototype.cloneProtected=function(a){jr.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},$t=ws.prototype,$t.clear=function(){jr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},$t.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+xr(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Jc(this,E,!0)+"-->"+Jc(this,E,!1)}return y},$t.Qv=function(a,y){this.linkKeyProperty===""&&gn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=jr.prototype.Qv.call(this,a,y),b=this,E=new Bi,z=new Bi,nt=new Bi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===dl?E.add(ct.newValue):ct.change===Ql&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):ct.object instanceof jr||b.lb(ct.object)||O1(b,ct.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(b.Ac(ct)),y&&z.add(ct)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ut.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ut.Fa():x.removedLinkKeys=ut.Fa()),ut.clear(),at.clear(),x},$t.rm=function(){var a=jr.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},$t.gp=function(a){jr.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},$t.Rv=function(){var a=jr.prototype.Rv.call(this),y=`,
"linkDataArray": `+rg(this,this.linkDataArray,!0);return a+y},$t.kv=function(a){jr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var x=new Bi,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];L0(a,y,E,E,x)}return x}$t.Pv=function(a,y){this.linkKeyProperty===""&&gn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=jr.prototype.Pv.call(this,a,y),b=this,E=new Bi,z=new Bi,nt=new Bi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===dl?E.add(ct.newValue):ct.change===Ql&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):ct.object instanceof jr||b.lb(ct.object)||O1(b,ct.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(b.Ac(ct)),y&&z.add(ct)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+rg(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+rg(this,z.Fa(),!0)),0<ut.count&&(a+=(y?this.Vv:this.Xv)+rg(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},$t.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&gn("applyIncrementalJson cannot change Model properties"),jr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var nt in E)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(z,nt,E[nt]);U1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(nt=a.length,y=0;y<nt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ws.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Fa){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),_a(x,b,E);return}}else if(a.change===dl){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,kn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Ql){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,kn(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}jr.prototype.changeState.call(this,a,y)}},$t=ws.prototype,$t.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),_a(x,this.nodeKeyProperty,a),this.xf(x))}return a}},$t.yx=function(a){return Jc(this,a,!0)},$t.wv=function(a,y){Qp(this,a,y,!0)},$t.Bx=function(a){return Jc(this,a,!1)},$t.Bv=function(a,y){Qp(this,a,y,!1)};function Jc(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Xl(y,a),a!==void 0))){if(og(a))return a;gn((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Qp(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=Xl(y,E);z!==x&&(gA(a,z,y),_a(y,E,x),a.hc(x)===null&&fA(a,x,y),Au(a,b?"linkFromKey":"linkToKey",Fa,E,y,z,x),typeof E=="string"&&a.La(y,E))}else _a(y,E,x)}}$t.zx=function(a){return N0(this,a,!0)},$t.xv=function(a,y){zp(this,a,y,!0)},$t.Cx=function(a){return N0(this,a,!1)},$t.Cv=function(a,y){zp(this,a,y,!1)};function N0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Xl(y,a),y===void 0?"":y)}function zp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Xl(y,E);z===void 0&&(z=""),z!==x&&(_a(y,E,x),Au(a,b?"linkFromPortId":"linkToPortId",Fa,E,y,z,x),typeof E=="string"&&a.La(y,E))}else _a(y,E,x)}}$t.Ef=function(a){if(a===null)return I0;var y=this.je;return y===""?I0:(a=Xl(a,y),a===void 0?I0:a)},$t.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Xl(a,x);if(b===void 0&&(b=I0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)gA(this,b[z],a);for(_a(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&fA(this,nt,a)}Au(this,"linkLabelKeys",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else _a(a,x,y)}},$t.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Xl(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&fA(this,y,a),Au(this,"linkLabelKeys",dl,x,a,null,y,null,E)))}else gn(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},$t.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Xl(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(gA(this,y,a),Au(this,"linkLabelKeys",Ql,x,a,y,null,E,null)))}else b!==void 0&&gn(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},$t.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;gn("Key value for link data "+a+" is not a number or a string: "+y)}}},$t.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Xl(a,x);b!==y&&this.jh(y)===null&&(_a(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Au(this,"linkKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},$t.jh=function(a){return a===null&&gn("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&og(a)?this.wb.I(a):null},$t.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){_a(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;_a(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;_a(a,y,x)}}}}},$t.Jc=function(a){return a===null?!1:this.$f.contains(a)},$t.fi=function(a){a!==null&&(ra(a),this.Jc(a)||D1(this,a,!0))};function D1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&gn("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Au(a,"linkDataArray",dl,"linkDataArray",a,null,y,null,b),Yv(a,y)}$t.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},$t.bm=function(a){a!==null&&j1(this,a,!0)};function j1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Au(a,"linkDataArray",Ql,"linkDataArray",a,y,null,b,null),x=Jc(a,y,!0),gA(a,x,y),x=Jc(a,y,!1),gA(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],gA(a,x,y)}$t.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},$t.Zz=function(a){if(this.linkKeyProperty===""&&gn("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&yi(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==z&&(ot!==null?(this.Do(ot,z),U1(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function Yv(a,y){var x=Jc(a,y,!0);x=a.Vl(x),a.hc(x)===null&&fA(a,x,y),x=Jc(a,y,!1),x=a.Vl(x),a.hc(x)===null&&fA(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&fA(a,x,y)}$t.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):M0(this,a,!0),kn(a)&&(Zo(a),this.lf!==""&&_a(a,this.lf,void 0),this.mf!==""&&_a(a,this.mf,void 0),this.je!==""&&_a(a,this.je,[])),a},$t.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Xl(a,y)},$t.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;gn("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},$t.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b!==y&&(gA(this,b,a),_a(a,x,y),this.hc(y)===null&&fA(this,y,a),Au(this,"nodeGroupKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},ws.prototype.copyNodeData=function(a){return a===null?null:(a=jr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Xl(a,this.Je)===void 0||_a(a,this.Je,void 0),a)},ws.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Qp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Qp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){zp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){zp(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=Xl(a,y);b!==x&&(_a(a,y,x),this.Fs(a,y,b,x))},$t=ws.prototype,$t.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&Xl(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},$t.jp=function(a,y){jr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Jc(this,b,!0)===E){var nt=this.lf;_a(b,nt,z),Au(this,"linkFromKey",Fa,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Jc(this,b,!1)===E&&(nt=this.mf,_a(b,nt,z),Au(this,"linkToKey",Fa,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ot=nt.length,at=this.je,ut=0;ut<ot;ut++)nt[ut]===E&&(nt[ut]=z,Au(this,"linkLabelKeys",dl,at,b,E,z,ut,ut))}},$t.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;_a(a,b,x),Au(this,"nodeGroupKey",Fa,b,a,y,x),typeof b=="string"&&this.La(a,b)}},$t.Lv=function(){jr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Yv(this,a[x])},$t.fm=function(a){jr.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=cr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Au(this,"nodeGroupKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Jc(this,b,!0)===a&&(E=this.lf,Au(this,"linkFromKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Jc(this,b,!1)===a&&(E=this.mf,Au(this,"linkToKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,nt=this.je,ot=0;ot<z;ot++)E[ot]===a&&(Au(this,"linkLabelKeys",dl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)gA(this,a,x[y]);wr(x)}},$t.em=function(a){jr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&fA(this,y,a)},$t.qp=function(a){jr.prototype.qp.call(this,a);var y=this.lh(a);gA(this,y,a)},$t.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Xl(a,y),y===void 0))return"";if(typeof y=="string")return y;gn("getCategoryForLinkData found a non-string category for "+a+": "+y)},ws.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ws.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Xl(a,x);b===void 0&&(b=""),b!==y&&(_a(a,x,y),Au(this,"linkCategory",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},ws.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},$t=ws.prototype,$t.lm=function(a,y){jr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function U1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}$t.Wj=function(){return!0},$t.ri=function(){return!0},$t.xs=function(){return!0},$t.Xj=function(){return!0},qe.Object.defineProperties(ws.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];kn(E)||gn("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ra(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Ci,E=0;E<x;E++){var z=a[E],nt=this.Ac(z);nt===void 0||this.wb.I(nt)!==null?b.add(z):this.wb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Bi,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Au(this,"linkDataArray",Fa,"linkDataArray",this,y,a),y=0;y<x;y++)Yv(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),ws.prototype.setCategoryForLinkData=ws.prototype.lp,ws.prototype.getCategoryForLinkData=ws.prototype.ps,ws.prototype.assignAllDataProperties=ws.prototype.Do,ws.prototype.setGroupKeyForNodeData=ws.prototype.mp,ws.prototype.getGroupKeyForNodeData=ws.prototype.lh,ws.prototype.isGroupForNodeData=ws.prototype.Yu,ws.prototype.copyLinkData=ws.prototype.Jo,ws.prototype.mergeLinkDataArray=ws.prototype.Zz,ws.prototype.removeLinkDataCollection=ws.prototype.lA,ws.prototype.removeLinkData=ws.prototype.bm,ws.prototype.addLinkDataCollection=ws.prototype.Ey,ws.prototype.addLinkData=ws.prototype.fi,ws.prototype.containsLinkData=ws.prototype.Jc,ws.prototype.makeLinkDataKeyUnique=ws.prototype.Bs,ws.prototype.findLinkDataForKey=ws.prototype.jh,ws.prototype.setKeyForLinkData=ws.prototype.Ks,ws.prototype.getKeyForLinkData=ws.prototype.Ac,ws.prototype.removeLabelKeyForLinkData=ws.prototype.Qx,ws.prototype.addLabelKeyForLinkData=ws.prototype.Bu,ws.prototype.setLabelKeysForLinkData=ws.prototype.Ls,ws.prototype.getLabelKeysForLinkData=ws.prototype.Ef,ws.prototype.setToPortIdForLinkData=ws.prototype.Cv,ws.prototype.getToPortIdForLinkData=ws.prototype.Cx,ws.prototype.setFromPortIdForLinkData=ws.prototype.xv,ws.prototype.getFromPortIdForLinkData=ws.prototype.zx,ws.prototype.setToKeyForLinkData=ws.prototype.Bv,ws.prototype.getToKeyForLinkData=ws.prototype.Bx,ws.prototype.setFromKeyForLinkData=ws.prototype.wv,ws.prototype.getFromKeyForLinkData=ws.prototype.yx,ws.prototype.clear=ws.prototype.clear;var I0=Object.freeze([]);ws.className="GraphLinksModel",tA.GraphLinksModel=ws,jr.constructGraphLinksModel=jr.constructGraphLinksModel=function(){return new ws},jr.initDiagramModel=Xv=function(){return new ws};function Jh(a,y){jr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(yi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Mn(Jh,jr),Jh.constructGraphLinksModel=jr.constructGraphLinksModel,Jh.prototype.cloneProtected=function(a){jr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},$t=Jh.prototype,$t.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+xr(E)}}return y},$t.rm=function(){var a=jr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},$t.gp=function(a){jr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},$t.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&gn("applyIncrementalJson cannot change Model properties"),jr.prototype.fp.call(this,a)},$t.Vl=function(a){return a},$t.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;gn("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},$t.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=Xl(a,x);b!==y&&(gA(this,b,a),_a(a,x,y),this.hc(y)===null&&fA(this,y,a),Au(this,"nodeParentKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},$t.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Xl(a,y),y===void 0)?"":typeof y=="string"?y:(gn("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Jh.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Jh.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b===void 0&&(b=""),b!==y&&(_a(a,x,y),Au(this,"parentLinkCategory",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else _a(a,x,y)}},Jh.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Jh.prototype.copyNodeData=function(a){return a===null?null:(a=jr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Xl(a,this.Ke)===void 0||_a(a,this.Ke,void 0),a)},Jh.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=Xl(a,y);b!==x&&(_a(a,y,x),this.Fs(a,y,b,x))},$t=Jh.prototype,$t.jp=function(a,y){jr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},$t.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;_a(a,b,x),Au(this,"nodeParentKey",Fa,b,a,y,x),typeof b=="string"&&this.La(a,b)}},$t.fm=function(a){jr.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=cr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Au(this,"nodeParentKey",Fa,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)gA(this,a,x[y]);wr(x)}},$t.em=function(a){jr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&fA(this,y,a)},$t.qp=function(a){jr.prototype.qp.call(this,a);var y=this.mh(a);gA(this,y,a)},$t.lm=function(a,y){jr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},$t.Tl=function(){return!0},$t.xs=function(){return!0},qe.Object.defineProperties(Jh.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Jh.prototype.setParentLinkCategoryForNodeData=Jh.prototype.Ms,Jh.prototype.getParentLinkCategoryForNodeData=Jh.prototype.ss,Jh.prototype.setParentKeyForNodeData=Jh.prototype.qe,Jh.prototype.getParentKeyForNodeData=Jh.prototype.mh,Jh.className="TreeModel",tA.TreeModel=Jh;function cl(a){Ka.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new ke,this.Jp=this.me=0,this.Xr=new Dm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=eA,this.K=qh,this.nd=Gp,this.hd=zv,this.tf=6,this.Nn=R0,a&&Object.assign(this,a)}Mn(cl,Ka),cl.prototype.cloneProtected=function(a){Ka.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},cl.prototype.qb=function(a){a.classType===cl?a===j0||a===U0||a===O0||a===D0||a===Gp?this.sorting=a:a===Tg||a===Kp||a===qh||a===ag?this.direction=a:a===Nf||a===sg||a===eA||a===nA?this.arrangement=a:(a===lp||a===R0)&&(this.nodeDiameterFormula=a):Ka.prototype.qb.call(this,a)},cl.prototype.createNetwork=function(){return new Wp(this)},cl.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Ci;y.addAll(a.iterator),a=new Ci;var x=new Ci,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ut=this.radius;(!isFinite(ut)||0>=ut)&&(ut=NaN);var ct=this.aspectRatio;(!isFinite(ct)||0>=ct)&&(ct=1);var yt=this.startAngle;isFinite(yt)||(yt=0);var It=this.sweepAngle;if((!isFinite(It)||360<It||1>It)&&(It=360),y=this.spacing,isFinite(y)||(y=NaN),ot===nA&&at===lp?ot=eA:ot===nA&&at!==lp&&(ot=this.arrangement),(this.direction===Tg||this.direction===Kp)&&this.sorting!==Gp){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===Tg?(this.arrangement===nA&&a.reverse(),b=new Ci,b.addAll(a),b.addAll(x)):(this.arrangement===nA&&x.reverse(),b=new Ci,b.addAll(x),b.addAll(a))}at=b.length;for(var Kt=z=E=0;Kt<b.length;Kt++){var Zt=yt+It*z*(this.direction===qh?1:-1)/at,ue=b.M(Kt).diameter;isNaN(ue)&&(ue=lg(b.M(Kt),Zt)),360>It&&(Kt===0||Kt===b.length-1)&&(ue/=2),E+=ue,z++}if(isNaN(ut)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)Kt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(Kt.diameter)&&lg(Kt,0),isNaN(E.diameter)&&lg(E,0),z=Math.max(z,(Kt.diameter+E.diameter)/2);nt=z+y,ot===Nf?ut=(z+y)/(2*Math.PI/at):ut=k0(this,nt*(360<=It?at:at-1),ct,yt*Math.PI/180,It*Math.PI/180)}else ut=k0(this,E+(360<=It?at:at-1)*(ot!==nA?y:1.6*y),ct,yt*Math.PI/180,It*Math.PI/180);z=ut*ct}else if(z=ut*ct,Kt=Jv(this,ut,z,yt*Math.PI/180,It*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(Kt-E)/(360<=It?at:at-1));else if(ot===eA||ot===nA)Kt=(Kt-E)/(360<=It?at:at-1),Kt<y?(ut=k0(this,E+y*(360<=It?at:at-1),ct,yt*Math.PI/180,It*Math.PI/180),z=ut*ct):y=Kt;else{for(nt=-1/0,E=0;E<at;E++)Zt=b.M(E),ue=b.M(E===at-1?0:E+1),isNaN(Zt.diameter)&&lg(Zt,0),isNaN(ue.diameter)&&lg(ue,0),nt=Math.max(nt,(Zt.diameter+ue.diameter)/2);nt+=y,E=k0(this,nt*(360<=It?at:at-1),ct,yt*Math.PI/180,It*Math.PI/180),E>ut?(ut=E,z=ut*ct):nt=Kt/(360<=It?at:at-1)}if(this.kw=ot,this.lc=ut,this.Zm=ct,this.lw=yt,this.Wp=It,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ut=this.lw,ct=this.Wp,yt=this.Ti,It=this.me,at=this.Jp,this.direction!==Tg&&this.direction!==Kp||b!==nA)if(this.direction===Tg||this.direction===Kp){switch(nt=0,b){case sg:nt=180*T0(this,ot,It,ut,at)/Math.PI;break;case eA:at=y=0,nt=a.first(),nt!==null&&(y=lg(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=lg(nt,Math.PI/2)),nt=180*T0(this,ot,It,ut,yt+(y+at)/2)/Math.PI;break;case Nf:nt=ct/y.length}if(this.direction===Tg){switch(b){case sg:Om(this,a,ut,ag);break;case eA:Tm(this,a,ut,ag);break;case Nf:km(this,a,ct/2,ut,ag)}switch(b){case sg:Om(this,x,ut+nt,qh);break;case eA:Tm(this,x,ut+nt,qh);break;case Nf:km(this,x,ct/2,ut+nt,qh)}}else{switch(b){case sg:Om(this,x,ut,ag);break;case eA:Tm(this,x,ut,ag);break;case Nf:km(this,x,ct/2,ut,ag)}switch(b){case sg:Om(this,a,ut+nt,qh);break;case eA:Tm(this,a,ut+nt,qh);break;case Nf:km(this,a,ct/2,ut+nt,qh)}}}else switch(b){case sg:Om(this,y,ut,this.direction);break;case eA:Tm(this,y,ut,this.direction);break;case Nf:km(this,y,ct,ut,this.direction);break;case nA:R1(this,y,ct,ut,this.direction)}else R1(this,y,ct,ut-ct/2,qh)}this.updateParts(),this.network=null,this.isValidLayout=!0};function km(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=b+(E===qh?at*x/(360<=z?ot:ot-1):-(at*x)/ot),ct=y.M(at),yt=nt*Math.tan(ut)/a;yt=Math.sqrt((nt*nt+a*a*yt*yt)/(1+yt*yt)),ct.centerX=yt*Math.cos(ut),ct.centerY=yt*Math.sin(ut),ct.actualAngle=180*ut/Math.PI}}function Tm(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=y.M(at),ct=y.M(at===ot-1?0:at+1),yt=z*Math.sin(x);ut.centerX=E*Math.cos(x),ut.centerY=yt,ut.actualAngle=180*x/Math.PI,isNaN(ut.diameter)&&lg(ut,0),isNaN(ct.diameter)&&lg(ct,0),ut=T0(a,E,z,b===qh?x:-x,(ut.diameter+ct.diameter)/2+nt),x+=b===qh?ut:-ut}}function Om(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=y.M(at);ut.centerX=E*Math.cos(x),ut.centerY=z*Math.sin(x),ut.actualAngle=180*x/Math.PI,ut=T0(a,E,z,b===qh?x:-x,nt),x+=b===qh?ut:-ut}}function R1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Dm,360>x){for(z=b+(E===qh?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,H1(a,y,x,b,E)}else _1(a,y,x,b,E);a.Xr.commit(y)}function _1(a,y,x,b,E){var z=a.lc,nt=a.Ti,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ut=a.me*Math.sin(b*Math.PI/180),ct=y.Fa();if(ct.length===3)ct[0].centerX=z,ct[0].centerY=0,ct[1].centerX=ct[0].centerX-ct[0].width/2-ct[1].width/2-nt,ct[1].y=ct[0].y,ct[2].centerX=(ct[0].centerX+ct[1].centerX)/2,ct[2].y=ct[0].y-ct[2].height-nt;else if(ct.length===4)ct[0].centerX=z,ct[0].centerY=0,ct[2].centerX=-ct[0].centerX,ct[2].centerY=ct[0].centerY,ct[1].centerX=0,ct[1].y=Math.min(ct[0].y,ct[2].y)-ct[1].height-nt,ct[3].centerX=0,ct[3].y=Math.max(ct[0].y+ct[0].height+nt,ct[2].y+ct[2].height+nt);else{z=ke.alloc();for(var yt=0;yt<ct.length&&(ct[yt].centerX=at,ct[yt].centerY=ut,!(yt>=ct.length-1));yt++)Q1(a,at,ut,ct,yt,E,z)||z1(a,at,ut,ct,yt,E,z),at=z.x,ut=z.y;if(ke.free(z),a.mj++,!(23<a.mj)){at=ct[0].centerX,ut=ct[0].centerY,z=ct[ct.length-1].centerX,yt=ct[ct.length-1].centerY;var It=Math.abs(at-z)-((ct[0].width+ct[ct.length-1].width)/2+nt),Kt=Math.abs(ut-yt)-((ct[0].height+ct[ct.length-1].height)/2+nt);nt=0,1>Math.abs(Kt)?Math.abs(at-z)<(ct[0].width+ct[ct.length-1].width)/2&&(nt=0):nt=0<Kt?Kt:1>Math.abs(It)?0:It,at=Math.abs(z)>Math.abs(yt)?0<z!=ut>yt:0<yt!=at<z,(at=E===qh?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-ct[ct.length-1].width),nt=Math.min(nt,-ct[ct.length-1].height)),a.Xr.compare(nt,ct),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>ct.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,_1(a,y,x,b,E))}}}function H1(a,y,x,b,E){for(var z=a.lc,nt=a.me,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ut=nt*Math.sin(b*Math.PI/180),ct=ke.alloc(),yt=y.Fa(),It=0;It<yt.length&&(yt[It].centerX=at,yt[It].centerY=ut,!(It>=yt.length-1));It++)Q1(a,at,ut,yt,It,E,ct)||z1(a,at,ut,yt,It,E,ct),at=ct.x,ut=ct.y;if(ke.free(ct),a.mj++,!(23<a.mj)){if(at=Math.atan2(ut,at),at=E===qh?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,z=at*(z+nt)/2,nt=a.Xr,Math.abs(z)<Math.abs(nt.Pl))for(nt.Pl=z,nt.mk=[],nt.tm=[],at=0;at<yt.length;at++)nt.mk[at]=yt[at].bounds.x,nt.tm[at]=yt[at].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*ot,H1(a,y,x,b,E))}}function Q1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ut=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ct=!1;if(0<=x!=(z===qh)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ut,!1;ct=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ut,!1;ct=!0}return ut=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==ct&&(ut=-ut),Math.abs(x-ut)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ut,!1):(nt.x=z,nt.y=ut,!0)}function z1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ut=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===qh)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ut,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ut,nt.y=z;return}b=!0}ut=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ut=-ut),nt.x=ut,nt.y=z}cl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},cl.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new ke(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},cl.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Jv(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,ut=0;ut<=z;ut++){b!==void 0&&E!==void 0?at=b+ut*E/z:at=ut*Math.PI/(2*z);var ct=Math.sin(at);nt+=Math.sqrt(1-a*a*ct*ct)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function k0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Jv(a,1,x,b,E):Jv(a,1,x))}function T0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var at=Math.sin(b+ot*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,nt>=E)return ot*a}}cl.prototype.sort=function(a){switch(this.sorting){case O0:break;case D0:a.reverse();break;case j0:a.sort(this.comparer);break;case U0:a.sort(this.comparer),a.reverse();break;case Gp:return this.ak(_w(a));default:gn("Invalid sorting type.")}return a};function _w(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Ci;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ot=a.M(nt).edgesCount;ot>E&&(E=ot,z=nt)}else for(nt=0;nt<a.length;nt++)ot=y[nt],ot>E&&(E=ot,z=nt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),nt=z.sourceEdges;nt.next();)E=a.indexOf(nt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}cl.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var nt=[],ot=[];b=[],E=new Ci;for(var at=0,ut=0;ut<y.length;ut++){var ct=y[ut].length;if(ct===1)b.push(ut);else if(ct===0)E.add(a.M(ut));else{if(at===0)x.push(ut);else{for(var yt=ct=1/0,It=-1,Kt=[],Zt=0;Zt<x.length;Zt++)0>y[x[Zt]].indexOf(x[Zt===x.length-1?0:Zt+1])&&Kt.push(Zt===x.length-1?0:Zt+1);if(Kt.length===0)for(Zt=0;Zt<x.length;Zt++)Kt.push(Zt);for(Zt=0;Zt<Kt.length;Zt++){for(var ue=Kt[Zt],Re=y[ut],Fe=0,We=0;We<nt.length;We++){var Je=z[nt[We]],nn=z[ot[We]];if(Je<nn){var xn=Je;Je=nn}else xn=nn;if(xn<ue&&ue<=Je)for(nn=0;nn<Re.length;nn++){var Vn=Re[nn];0>x.indexOf(Vn)||xn<z[Vn]&&z[Vn]<Je||xn===z[Vn]||Je===z[Vn]||Fe++}else for(nn=0;nn<Re.length;nn++)Vn=Re[nn],0>x.indexOf(Vn)||xn<z[Vn]&&z[Vn]<Je&&xn!==z[Vn]&&Je!==z[Vn]&&Fe++}for(Re=Fe,We=Fe=0;We<y[ut].length;We++)xn=x.indexOf(y[ut][We]),0<=xn&&(xn=Math.abs(ue-(xn>=ue?xn+1:xn)),Fe+=xn<x.length+1-xn?xn:x.length+1-xn);for(We=0;We<nt.length;We++)xn=z[nt[We]],Je=z[ot[We]],xn>=ue&&xn++,Je>=ue&&Je++,xn>Je&&(nn=Je,Je=xn,xn=nn),Je-xn<(x.length+2)/2==(xn<ue&&ue<=Je)&&Fe++;(Re<ct||Re===ct&&Fe<yt)&&(ct=Re,yt=Fe,It=ue)}for(x.splice(It,0,ut),ct=0;ct<x.length;ct++)z[x[ct]]=ct;for(ct=0;ct<y[ut].length;ct++)yt=y[ut][ct],0<=x.indexOf(yt)&&(nt.push(ut),ot.push(yt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ut=y[at][0],ct=x.indexOf(ut),0<=ct){for(It=yt=0;It<y[ut].length;It++)Kt=x.indexOf(y[ut][It]),0>Kt||Kt===ct||(Zt=Kt>ct?Kt-ct:ct-Kt,yt+=Kt<ct!=Zt>nt-Zt?1:-1);x.splice(0>yt?ct:ct+1,0,at),b.splice(ot,1),ot--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},qe.Object.defineProperties(cl.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==nA&&a!==eA&&a!==sg&&a!==Nf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==qh&&a!==ag&&a!==Tg&&a!==Kp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==O0&&a!==D0&&a!==j0&&!U0&&a!==Gp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==R0&&a!==lp||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var eA=new Dn(cl,"ConstantSpacing",0),sg=new Dn(cl,"ConstantDistance",1),Nf=new Dn(cl,"ConstantAngle",2),nA=new Dn(cl,"Packed",3),qh=new Dn(cl,"Clockwise",4),ag=new Dn(cl,"Counterclockwise",5),Tg=new Dn(cl,"BidirectionalLeft",6),Kp=new Dn(cl,"BidirectionalRight",7),O0=new Dn(cl,"Forwards",8),D0=new Dn(cl,"Reverse",9),j0=new Dn(cl,"Ascending",10),U0=new Dn(cl,"Descending",11),Gp=new Dn(cl,"Optimized",12),R0=new Dn(cl,"Pythagorean",13),lp=new Dn(cl,"Circular",14);cl.className="CircularLayout",cl.ConstantSpacing=eA,cl.ConstantDistance=sg,cl.ConstantAngle=Nf,cl.Packed=nA,cl.Clockwise=qh,cl.Counterclockwise=ag,cl.BidirectionalLeft=Tg,cl.BidirectionalRight=Kp,cl.Forwards=O0,cl.Reverse=D0,cl.Ascending=j0,cl.Descending=U0,cl.Optimized=Gp,cl.Pythagorean=R0,cl.Circular=lp;function Dm(){this.Pl=-1/0,this.tm=this.mk=null}Dm.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Dm.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Dm.className="VertexArrangement";function Wp(a){ya.call(this,a)}Mn(Wp,ya),Wp.prototype.createVertex=function(){return new jm(this)},Wp.prototype.createEdge=function(){return new _0(this)},Wp.className="CircularNetwork";function jm(a){xu.call(this,a),this.u=this.Si=NaN}Mn(jm,xu);function lg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===nA)if(x.nodeDiameterFormula===lp)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===lp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}qe.Object.defineProperties(jm.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),jm.className="CircularVertex";function _0(a){Mc.call(this,a)}Mn(_0,Mc),_0.className="CircularEdge";function ph(a){Ka.call(this),this.ah=null,this.An=0,this.$d=new Ki(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Mn(ph,Ka),ph.prototype.cloneProtected=function(a){Ka.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},ph.prototype.createNetwork=function(){return new up(this)},ph.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}K1(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;z=E=0;for(var ut=cr(),ct=0;ct<ot+y.vertexes.count+2;ct++)ut[ct]=null;ot=0,nt.reset();for(var yt=ai.alloc();nt.next();)if(ct=nt.value,this.computeBounds(ct,yt),at)at=!1,E=yt.x+yt.width/2,z=yt.y+yt.height/2,ut[0]=new ke(yt.x+yt.width+b.width,yt.y),ut[1]=new ke(yt.x,yt.y+yt.height+b.height),ot=2;else{var It=G1(ut,ot,E,z,yt.width,yt.height,b),Kt=ut[It],Zt=new ke(Kt.x+yt.width+b.width,Kt.y),ue=new ke(Kt.x,Kt.y+yt.height+b.height);for(It+1<ot&&ut.splice(It+1,0,null),ut[It]=Zt,ut[It+1]=ue,ot++,It=Kt.x-yt.x,Kt=Kt.y-yt.y,ct=ct.vertexes.iterator;ct.next();)Zt=ct.value,Zt.centerX+=It,Zt.centerY+=Kt}for(ai.free(yt),ct=y.vertexes.iterator;ct.next();)nt=ct.value,It=nt.bounds,2>ot?(E=It.x+It.width/2,z=It.y+It.height/2,ut[0]=new ke(It.x+It.width+b.width,It.y),ut[1]=new ke(It.x,It.y+It.height+b.height),ot=2):(at=G1(ut,ot,E,z,It.width,It.height,b),yt=ut[at],Kt=new ke(yt.x+It.width+b.width,yt.y),It=new ke(yt.x,yt.y+It.height+b.height),at+1<ot&&ut.splice(at+1,0,null),ut[at]=Kt,ut[at+1]=It,ot++,nt.centerX=yt.x+nt.width/2,nt.centerY=yt.y+nt.height/2);for(wr(ut),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}V1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ph.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},ph.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function K1(a,y,x){if(Hw(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Qw(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,K1(a,y+1,x),V1(a,z),zw(a,E),y=E.vertexes.Fa(),y.sort(function(nt,ot){return nt===null||ot===null||nt===ot?0:ot.Vd-nt.Vd}),x=0;x<y.length;x++)Kw(a,y[x]);a.Zf=b}}function Hw(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Qw(a,y){for(var x=a.network,b=new up(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new Z1;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new Ci),z.We.add(nt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;E=ot.fromVertex,nt=ot.toVertex,E.network===b&&nt.network===b?b.Bo(ot):E.network===b?(ot=E.Hj,ot===null&&(ot=new Ci,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Ci,nt.Hj=ot),ot.add(E),nt.Vd--,nt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,En.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ut=ot=0,ct=at.count-nt;ct<at.count;ct++){var yt=at.M(ct),It=null;for(z=yt.edges.iterator;z.next();){var Kt=z.value;if(Kt.Ax(yt)===E){It=Kt;break}}It!==null&&(ut+=It.length,ot+=yt.width*yt.height)}z=E.centerX,at=E.centerY,ct=E.width,yt=E.height,It=E.focus,Kt=ct*yt,1>Kt&&(Kt=1),ot=En.sqrt((ot+Kt+ut*ut*4/(nt*nt))/Kt),nt=(ot-1)*ct/2,ot=(ot-1)*yt/2,E.bounds=new ai(z-It.x-nt,at-It.y-ot,ct+2*nt,yt+2*ot),E.focus=new ke(It.x+nt,It.y+ot)}}return a.network=b,x}function zw(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,nt=E.Tv;b.bounds=new ai(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new ke(z,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Kw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),z=nt.Ss,nt=nt.Qs),z=En.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ut=0,ct=y.vertexes.iterator;ct.next();){var yt=ct.value;1>=yt.Vd?at++:(ot=!0,ut++,nt+=Math.atan2(y.centerY-yt.centerY,y.centerX-yt.centerX))}if(at!==0){for(0<ut&&(nt/=ut),ut=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ut=y/2),1<x.count&&x.sort(function(Kt,Zt){return Kt===null||Zt===null||Kt===Zt?0:Zt.width*Zt.height-Kt.width*Kt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ct=null,yt=at.edges.iterator;yt.next();){ct=yt.value;break}yt=at.width;var It=at.height;yt=En.sqrt(yt*yt+It*It)/2,ct=z+ct.length+yt,yt=nt+(y*(ot/2>>1)+ut)*(ot%2===0?1:-1),at.centerX=b+ct*Math.cos(yt),at.centerY=E+ct*Math.sin(yt),ot++}}}}function G1(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ut=0;t:for(;ut<y;ut++){var ct=a[ut],yt=ct.x-x,It=ct.y-b;if(yt=yt*yt+It*It,yt<ot){for(It=ut-1;0<=It;It--)if(a[It].y>ct.y&&a[It].x-ct.x<E+nt.width)continue t;for(It=ut+1;It<y;It++)if(a[It].x>ct.x&&a[It].y-ct.y<z+nt.height)continue t;at=ut,ot=yt}}return at}ph.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ph.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function W1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,nt=z.x;y=z.y;var ot=z.width;return z=z.height,b+E<nt?a>y+z?(x=b+E-nt,a=a-y-z,En.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,En.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,En.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,En.sqrt(b*b+a*a)):b-(nt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function V1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Gw(a)););a.ah=null}function Gw(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,nt=1;nt<y.length;nt++){var ot=y[nt];ot.forceX=0,ot.forceY=0;var at=ot.centerX;ot=ot.centerY,b=Math.min(b,at),E=Math.max(E,at),x=Math.min(x,ot),z=Math.max(z,ot)}(E=E-b>z-x)?y.sort(function(ue,Re){return ue===null||Re===null||ue===Re?0:ue.centerX-Re.centerX}):y.sort(function(ue,Re){return ue===null||Re===null||ue===Re?0:ue.centerY-Re.centerY}),x=a.Zf;var ut=b=ot=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var ct=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,ct),ut=nt.charge*a.electricalFieldY(at,ct),b+=nt.mass*a.gravitationalFieldX(at,ct),ut+=nt.mass*a.gravitationalFieldY(at,ct),nt.forceX+=b,nt.forceY+=ut;for(var yt=z+1;yt<y.length;yt++){var It=y[yt];if(It!==nt){b=It.bounds,ot=It.focus,ut=b.x+ot.x;var Kt=b.y+ot.y;if(at-ut>x||ut-at>x){if(E)break}else if(ct-Kt>x||Kt-ct>x){if(!E)break}else{var Zt=W1(nt,It);1>Zt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new H0),Zt=b.random(),ot=b.random(),at>ut?(b=Math.abs(It.bounds.right-nt.bounds.x),b=(1+b)*Zt):at<ut?(b=Math.abs(It.bounds.x-nt.bounds.right),b=-(1+b)*Zt):(b=Math.max(It.width,nt.width),b=(1+b)*Zt-b/2),ct>Kt?(ut=Math.abs(It.bounds.bottom-nt.bounds.y),ut=(1+ut)*ot):at<ut?(ut=Math.abs(It.bounds.y-nt.bounds.bottom),ut=-(1+ut)*ot):(ut=Math.max(It.height,nt.height),ut=(1+ut)*ot-ut/2)):(ot=-(nt.charge*It.charge)/(Zt*Zt),b=(ut-at)/Zt*ot,ut=(Kt-ct)/Zt*ot),nt.forceX+=b,nt.forceY+=ut,It.forceX-=b,It.forceY-=ut}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,ct=z.bounds,yt=z.focus,at=ct.x+yt.x,ct=ct.y+yt.y,yt=W1(x,z),1>yt?(yt=a.randomNumberGenerator,yt===null&&(a.randomNumberGenerator=yt=new H0),ot=yt.random(),yt=yt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ut=(nt>ct?1:-1)*(1+(z.height>x.height?z.height:x.height))*yt):(ot=ot.stiffness*(yt-ot.length),b=(at-b)/yt*ot,ut=(ct-nt)/yt*ot),x.forceX+=b,x.forceY+=ut,z.forceX-=b,z.forceY-=ut;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}ph.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},ph.prototype.moveFixedVertex=function(){},ph.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ph.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Es,y.toSpot=Es)}},ph.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ai.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ai.free(x)}x=ai.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}ai.free(x)},ph.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ph.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ph.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ph.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ph.prototype.electricalFieldX=function(){return 0},ph.prototype.electricalFieldY=function(){return 0},ph.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ph.prototype.gravitationalFieldX=function(){return 0},ph.prototype.gravitationalFieldY=function(){return 0},ph.prototype.isFixed=function(a){return a.isFixed},qe.Object.defineProperties(ph.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&gn('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),ph.className="ForceDirectedLayout";function Z1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Z1.className="ForceDirectedSubnet";function up(a){ya.call(this,a)}Mn(up,ya),up.prototype.createVertex=function(){return new Um(this)},up.prototype.createEdge=function(){return new Rm(this)},up.className="ForceDirectedNetwork";function Um(a){xu.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}Mn(Um,xu),qe.Object.defineProperties(Um.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Um.className="ForceDirectedVertex";function Rm(a){Mc.call(this,a),this.j=this.o=NaN}Mn(Rm,Mc),qe.Object.defineProperties(Rm.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Rm.className="ForceDirectedEdge";function H0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}H0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},H0.className="RandomNumberGenerator";function $s(a){Ka.call(this),this.kc=this.ie=25,this.K=0,this.Dk=W0,this.Zk=V0,this.Qk=Z0,this.bj=4,this.rk=X0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new ke,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Mn($s,Ka),$s.prototype.cloneProtected=function(a){Ka.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},$s.prototype.qb=function(a){a.classType===$s?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:gn("Unknown enum value: "+a):Ka.prototype.qb.call(this,a)},$s.prototype.createNetwork=function(){return new Zp(this)},$s.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Hm&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Hm&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var nt=0,ot=0,at=0,ut=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var ct=E.node;if(nt=z.node,ct===null||nt===null)continue;var yt=ot.fromNode;at=ot.toNode;for(var It=ot.fromPort;It!==null&&!It.Ed();)It=It.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ut=yt;var Kt=It;yt=at,It=ot,at=ut,ot=Kt}var Zt=E.focus;ut=z.focus;var ue=b.rev?z.bounds:E.bounds;Kt=ke.alloc(),ct!==yt?ue.w()&&yt.isVisible()?yt.actualBounds.w()?(bf(yt,It,Eo,Kt),Kt.x+=yt.actualBounds.x-ue.x,Kt.y+=yt.actualBounds.y-ue.y):(bf(yt,It,Eo,Kt),Kt.w()||Kt.assign(Zt)):Kt.assign(Zt):ue.w()?(bf(yt,It,Eo,Kt),Kt.w()||Kt.assign(Zt)):Kt.assign(Zt),yt=b.rev?E.bounds:z.bounds,ct=ke.alloc(),nt!==at?yt.w()&&at.isVisible()?at.actualBounds.w()?(bf(at,ot,Eo,ct),ct.x+=at.actualBounds.x-yt.x,ct.y+=at.actualBounds.y-yt.y):(bf(at,ot,Eo,ct),ct.w()||ct.assign(ut)):ct.assign(ut):yt.w()?(bf(at,ot,Eo,ct),ct.w()||ct.assign(ut)):ct.assign(ut),this.K===90||this.K===270?(nt=Math.round((Kt.x-Zt.x)/this.kc),at=Kt.x,ot=Math.round((ct.x-ut.x)/this.kc),ut=ct.x):(nt=Math.round((Kt.y-Zt.y)/this.kc),at=Kt.y,ot=Math.round((ct.y-ut.y)/this.kc),ut=ct.y),ke.free(Kt),ke.free(ct),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ut}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Kt=E.layer,ct=z.layer,yt=0,ue=b.link,ue!==null){var Re=ue.fromPort,Fe=ue.toPort;if(Re!==null&&Fe!==null){var We=ue.fromNode;if(It=ue.toNode,We!==null&&It!==null){var Je=G0(this,!0),nn=G0(this,!1),xn=this.setsPortSpots?Je:ue.computeSpot(!0,Re);Zt=this.setsPortSpots?nn:ue.computeSpot(!1,Fe);var Vn=ue.isOrthogonal;xn.$c()&&xn.Hf(nn)&&Zt.$c()&&Zt.Hf(Je)?yt=0:(Je=ue.getLinkPoint(We,Re,xn,!0,Vn,It,Fe,ke.alloc()),nn=ue.getLinkDirection(We,Re,Je,xn,!0,Vn,It,Fe),ke.free(Je),xn.ys()||nn!==iw(this,b,!0)?this.setsPortSpots&&We!==null&&We.ports.count===1&&b.rev&&(yt+=1):yt+=1,xn=ue.getLinkPoint(It,Fe,Zt,!1,Vn,We,Re,ke.alloc()),ue=ue.getLinkDirection(It,Fe,xn,Zt,!1,Vn,We,Re),ke.free(xn),Zt.ys()||ue!==iw(this,b,!1)?this.setsPortSpots&&It!==null&&It.ports.count===1&&b.rev&&(yt+=2):yt+=2)}}}if(It=yt,yt=It===1||It===3,(It=It===2||It===3)&&(Zt=a.createVertex(),Zt.node=null,Zt.Dj=1,Zt.layer=Kt,Zt.near=E,a.dh(Zt),E=a.Zj(E,Zt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=Zt),ue=1,yt&&ue--,Kt-ct>ue&&0<Kt){for(b.valid=!1,Zt=a.createVertex(),Zt.node=null,Zt.Dj=2,Zt.layer=Kt-1,a.dh(Zt),E=a.Zj(E,Zt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=It?0:nt,E.portToColOffset=0,E.portFromPos=It?0:at,E.portToPos=0,E=Zt,Kt--;Kt-ct>ue&&0<Kt;)Zt=a.createVertex(),Zt.node=null,Zt.Dj=3,Zt.layer=Kt-1,a.dh(Zt),E=a.Zj(E,Zt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Zt,Kt--;E=a.Zj(Zt,z,b.link),E.valid=!yt,yt&&(Zt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ut}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=ug(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),hg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},$s.prototype.linkMinLength=function(){return 1};function qv(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}$s.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},$s.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Ac(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function pd(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function X1(a,y,x){var b=ug(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var ot=0,at=b[nt],ut=at.near;if(ut!==null&&ut.layer===at.layer)if(at=ut.index,at>nt)for(var ct=nt+1;ct<at;ct++){var yt=b[ct];yt.near===ut&&yt.Dj===ut.Dj||ot++}else for(ct=nt-1;ct>at;ct--)yt=b[ct],yt.near===ut&&yt.Dj===ut.Dj||ot++;var It;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ut=0;ut<at.length;ut++){var Kt=at[ut];if(Kt.valid&&Kt.fromVertex.layer!==y)for(yt=Kt.fromVertex.index,ct=Kt.portToPos,Kt=Kt.portFromPos,It=ut+1;It<at.length;It++){var Zt=at[It];if(Zt.valid&&Zt.fromVertex.layer!==y){var ue=Zt.fromVertex.index,Re=Zt.portToPos;Zt=Zt.portFromPos,ct<Re&&(yt>ue||yt===ue&&Kt>Zt)&&ot++,Re<ct&&(ue>yt||ue===yt&&Zt>Kt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ut=0;ut<at.length;ut++)if(Kt=at[ut],Kt.valid&&Kt.toVertex.layer!==y)for(yt=Kt.toVertex.index,ct=Kt.portToPos,Kt=Kt.portFromPos,It=ut+1;It<at.length;It++)Zt=at[It],Zt.valid&&Zt.toVertex.layer!==y&&(ue=Zt.toVertex.index,Re=Zt.portToPos,Zt=Zt.portFromPos,Kt<Zt&&(yt>ue||yt===ue&&ct>Re)&&ot++,Zt<Kt&&(ue>yt||ue===yt&&Re>ct)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var Fe=0,We=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var Je=b[at].sourceEdgesArrayAccess;for(ut=0;ut<ot.length;ut++)if(Kt=ot[ut],Kt.valid&&Kt.fromVertex.layer!==y)for(yt=Kt.fromVertex.index,Kt=Kt.portFromPos,It=0;It<Je.length;It++)Zt=Je[It],Zt.valid&&Zt.fromVertex.layer!==y&&(ue=Zt.fromVertex.index,Zt=Zt.portFromPos,(yt<ue||yt===ue&&Kt<Zt)&&We++,(ue<yt||ue===yt&&Zt<Kt)&&Fe++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,Je=b[at].destinationEdgesArrayAccess,ut=0;ut<ot.length;ut++)if(Kt=ot[ut],Kt.valid&&Kt.toVertex.layer!==y)for(yt=Kt.toVertex.index,ct=Kt.portToPos,It=0;It<Je.length;It++)Zt=Je[It],Zt.valid&&Zt.toVertex.layer!==y&&(ue=Zt.toVertex.index,Re=Zt.portToPos,(yt<ue||yt===ue&&ct<Re)&&We++,(ue<yt||ue===yt&&Re<ct)&&Fe++)}z[nt*E+at]=Fe,z[at*E+nt]=We}}return hg(a,y,b),z}$s.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=X1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function Q0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=ug(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ut=z[at].destinationEdgesArrayAccess;if(ut!==null)for(var ct=0;ct<ut.length;ct++){var yt=ut[ct];if(yt.valid&&yt.toVertex.layer!==E){var It=yt.fromVertex.column+yt.portFromColOffset,Kt=yt.toVertex.column+yt.portToColOffset;ot+=(Math.abs(It-Kt)+1)*qv(yt)}}}hg(b,E,z),y+=ot}return y}$s.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function ty(a,y,x){for(var b=ug(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,yt=0,It=ot.near;if(It!==null&&It.layer===ot.layer&&(ct+=It.column-1,yt++),at!==null)for(It=0;It<at.length;It++){ot=at[It];var Kt=ot.fromVertex;ot.valid&&!ot.rev&&Kt.layer!==y&&(ct+=Kt.column,yt++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],It=ot.toVertex,ot.valid&&!ot.rev&&It.layer!==y&&(ct+=It.column,yt++);z[nt]=yt===0?-1:ct/yt}return hg(a,y,b),z}function $1(a,y,x){for(var b=ug(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,yt=[],It=ot.near;if(It!==null&&It.layer===ot.layer&&(yt[ct]=It.column-1,ct++),ot=void 0,at!==null)for(It=0;It<at.length;It++){ot=at[It];var Kt=ot.fromVertex;ot.valid&&!ot.rev&&Kt.layer!==y&&(yt[ct]=Kt.column+ot.portFromColOffset,ct++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],It=ot.toVertex,ot.valid&&!ot.rev&&It.layer!==y&&(yt[ct]=It.column+ot.portToColOffset,ct++);ct===0?z[nt]=-1:(yt.sort(function(Zt,ue){return Zt-ue}),ut=ct>>1,z[nt]=ct&1?yt[ut]:yt[ut-1]+yt[ut]>>1)}return hg(a,y,b),z}function _m(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var ot=nt.value,at=ot.toVertex,ut=y.layer-at.layer;ot=a.linkMinLength(ot),ut===ot&&_m(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ut=at.layer-y.layer,ot=a.linkMinLength(ot),ut===ot&&_m(a,at,x,b,E,z)}}function ey(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();)ey(a,nt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)ey(a,y.value.fromVertex,x,b,E,z)}}$s.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case ry:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Ww(a)!==null;){for(E=Y1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Y1(a);for(E=J1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=J1(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value;if(ot.valid){for(var at=0,ut=ot.destinationEdges;ut.next();)ut.value.toVertex.valid&&at++;ut=0;for(var ct=ot.sourceEdges;ct.next();)ct.value.fromVertex.valid&&ut++;(E===null||z<at-ut)&&(E=ot,z=at-ut)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case W0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&ny(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&ny(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case Hm:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Ww(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Y1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function ny(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,ny(a,E))}y.finish=a.Kn,a.Kn++}$s.prototype.assignLayers=function(){switch(this.Zk){case oy:q1(this);break;case sy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ew(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case V0:for(q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&nw(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=tw(a,y.value);a.Ia=Math.max(x,a.Ia)}}function tw(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,tw(a,z)+E)}y.layer=x}else x=y.layer;return x}function ew(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,ew(a,z)+E)}y.layer=x}else x=y.layer;return x}function nw(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)nw(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var nt=b[z],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&_m(a,ot,0,-1,!0,!1)}for(_m(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ut=nt.value;if(ut.component===1){var ct=0,yt=!1,It=ut.sourceEdgesArrayAccess;E=It.length;for(var Kt=0;Kt<E;Kt++){var Zt=It[Kt],ue=Zt.fromVertex;ct+=1,ue.component!==1&&(z+=1,ue=ue.layer-ut.layer,Zt=a.linkMinLength(Zt),b=Math.min(b,ue-Zt))}for(It=ut.destinationEdgesArrayAccess,E=It.length,Kt=0;Kt<E;Kt++)Zt=It[Kt].toVertex,--ct,Zt.component!==1?--z:yt=!0;(at===null||ct<ot)&&!yt&&(at=ut,ot=ct)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(_m(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ut=0,ct=!1,It=nt.sourceEdgesArrayAccess,yt=It.length,Kt=0;Kt<yt;Kt++)Zt=It[Kt].fromVertex,ut+=1,Zt.component!==1?b+=1:ct=!0;for(It=nt.destinationEdgesArrayAccess,yt=It.length,Kt=0;Kt<yt;Kt++)Zt=It[Kt],ue=Zt.toVertex,--ut,ue.component!==1&&(--b,ue=nt.layer-ue.layer,Zt=a.linkMinLength(Zt),E=Math.min(E,ue-Zt));(ot===null||ut>z)&&!ct&&(ot=nt,z=ut)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function iw(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}$s.prototype.initializeIndices=function(){switch(this.Qk){default:case ly:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Z0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&rw(this,x);break;case ay:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ow(this,x)}};function rw(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&rw(a,b))}function ow(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&ow(a,b))}$s.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ac(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,1),Dd(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ac(this)),b=this.Ia;0<=b;b--)z0(this,b,-1),Dd(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ac(this))}for(pd(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,0),Dd(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ac(this)),b=this.Ia;0<=b;b--)z0(this,b,0),Dd(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ac(this))}pd(this,y);var z,nt,ot;switch(this.rk){case uy:break;case hy:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,-1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,0)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,0)||z;E>=a?pd(this,y):(a=E,y=Ac(this))}break;default:case X0:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,-1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,0)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,0)||z;E>=a?pd(this,y):(a=E,y=Ac(this))}}pd(this,y)};function z0(a,y,x){var b=ug(a,y),E=a.tc[y],z=$1(a,y,x),nt=ty(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(ot=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=nt[x],nt[x]=nt[x+1],nt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);hg(a,y,b)}function Dd(a,y,x){var b=ug(a,y),E=a.tc[y];x=X1(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,z=0;z<E-1;z++){var ct=x[b[z].index*E+b[z+1].index],yt=x[b[z+1].index*E+b[z].index],It=0,Kt=0,Zt=b[z].column,ue=b[z+1].column,Re=a.nodeMinColumnSpace(b[z],!0),Fe=a.nodeMinColumnSpace(b[z],!1),We=a.nodeMinColumnSpace(b[z+1],!0),Je=a.nodeMinColumnSpace(b[z+1],!1);Re=Zt-Re+We,Fe=ue-Fe+Je;var nn=b[z].sourceEdges.iterator;for(nn.reset();nn.next();)if(We=nn.value,Je=We.fromVertex,We.valid&&Je.layer===y){for(We=0;b[We]!==Je;)We++;We<z&&(It+=2*(z-We),Kt+=2*(z+1-We)),We===z+1&&(It+=1),We>z+1&&(It+=4*(We-z),Kt+=4*(We-(z+1)))}for(nn=b[z].destinationEdges.iterator,nn.reset();nn.next();)if(We=nn.value,Je=We.toVertex,We.valid&&Je.layer===y){for(We=0;b[We]!==Je;)We++;We===z+1&&(Kt+=1)}for(nn=b[z+1].sourceEdges.iterator,nn.reset();nn.next();)if(We=nn.value,Je=We.fromVertex,We.valid&&Je.layer===y){for(We=0;b[We]!==Je;)We++;We<z&&(It+=2*(z+1-We),Kt+=2*(z-We)),We===z&&(Kt+=1),We>z+1&&(It+=4*(We-(z+1)),Kt+=4*(We-z))}for(nn=b[z+1].destinationEdges.iterator,nn.reset();nn.next();)if(We=nn.value,Je=We.toVertex,We.valid&&Je.layer===y){for(We=0;b[We]!==Je;)We++;We===z&&(It+=1)}We=Je=0,nn=nt[b[z].index];var xn=ot[b[z].index],Vn=nt[b[z+1].index],ir=ot[b[z+1].index];nn!==-1&&(Je+=Math.abs(nn-Zt),We+=Math.abs(nn-Fe)),xn!==-1&&(Je+=Math.abs(xn-Zt),We+=Math.abs(xn-Fe)),Vn!==-1&&(Je+=Math.abs(Vn-ue),We+=Math.abs(Vn-Re)),ir!==-1&&(Je+=Math.abs(ir-ue),We+=Math.abs(ir-Re)),(Kt<It-.5||Kt===It&&yt<ct-.5||Kt===It&&yt===ct&&We<Je-.5)&&(ut=at=!0,b[z].column=Fe,b[z+1].column=Re,ct=b[z],b[z]=b[z+1],b[z+1]=ct)}for(z=0;z<E;z++)b[z].index=z;return hg(a,y,b),at}$s.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&tx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Vp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Vp(this,y,-1)||x;x=Vp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)iy(this,y,1);for(y=this.Md-1;0<=y;y--)iy(this,y,-1);iy(this,this.Md,0)}if(a&&(sw(this,-1),sw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Vp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Vp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Vp(this,y,0)||x}}else $w(this)};function Vp(a,y,x){for(var b=!1;Vw(a,y,x);)b=!0;return b}function Vw(a,y,x){var b,E=ug(a,y),z=a.tc[y],nt=ty(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var ot=ty(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,b=0;b<z;b++){var ct=E[b].column,yt=a.nodeMinColumnSpace(E[b],!0),It=a.nodeMinColumnSpace(E[b],!1),Kt=0;0>b-1||ct-E[b-1].column-1>yt+a.nodeMinColumnSpace(E[b-1],!1)?Kt=ct-1:Kt=ct,yt=b+1>=z||E[b+1].column-ct-1>It+a.nodeMinColumnSpace(E[b+1],!0)?ct+1:ct;var Zt=It=0,ue=0;if(0>=x)for(var Re=E[b].sourceEdges.iterator;Re.next();){var Fe=Re.value,We=Fe.fromVertex;if(Fe.valid&&We.layer!==y){var Je=qv(Fe),nn=Fe.portFromColOffset;Fe=Fe.portToColOffset,We=We.column,It+=(Math.abs(ct+Fe-(We+nn))+1)*Je,Zt+=(Math.abs(Kt+Fe-(We+nn))+1)*Je,ue+=(Math.abs(yt+Fe-(We+nn))+1)*Je}}if(0<=x)for(Re=E[b].destinationEdges.iterator;Re.next();)Fe=Re.value,We=Fe.toVertex,Fe.valid&&We.layer!==y&&(Je=qv(Fe),nn=Fe.portFromColOffset,Fe=Fe.portToColOffset,We=We.column,It+=(Math.abs(ct+nn-(We+Fe))+1)*Je,Zt+=(Math.abs(Kt+nn-(We+Fe))+1)*Je,ue+=(Math.abs(yt+nn-(We+Fe))+1)*Je);Fe=nn=Je=0,Re=nt[E[b].index],We=ot[E[b].index],Re!==-1&&(Je+=Math.abs(Re-ct),nn+=Math.abs(Re-Kt),Fe+=Math.abs(Re-yt)),We!==-1&&(Je+=Math.abs(We-ct),nn+=Math.abs(We-Kt),Fe+=Math.abs(We-yt)),Zt<It||Zt===It&&nn<Je?(ut=at=!0,E[b].column=Kt):(ue<It||ue===It&&Fe<Je)&&(ut=at=!0,E[b].column=yt)}return hg(a,y,E),a.normalize(),at}function iy(a,y,x){var b=ug(a,y),E=a.tc[y],z=$1(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ut=a.nodeMinColumnSpace(b[x],!1),ct=0;if(nt[x]===-1)if(x===0&&x===E-1)ct=ot;else if(x===0){var yt=b[x+1].column;yt-ot===ut+a.nodeMinColumnSpace(b[x+1],!0)?ct=ot-1:ct=ot}else x===E-1?(yt=b[x-1].column,ct=ot-yt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=(at+ut)/2|0);else x===0&&x===E-1?ct=nt[x]:x===0?(yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=Math.min(nt[x],ut)):x===E-1?(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ct=Math.max(nt[x],at)):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ut=yt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,at<nt[x]&&nt[x]<ut?ct=nt[x]:at>=nt[x]?ct=at:ut<=nt[x]&&(ct=ut));ct!==ot&&(z=!0,b[x].column=ct)}hg(a,y,b),a.normalize()}function Zw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Xw(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&at>=y&&(E[b.layer]=!0),ot<=x&&at>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function sw(a,y){for(var x=0;x<=a.Ra;x++)for(;Zw(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Xw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Ac(a),z=Q0(a);for(b=z+1;z<b;){b=z,aw(a,x,1);var nt=Q0(a);nt>z?pd(a,E):nt<z&&(z=nt,E=Ac(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ac(a),z=Q0(a),b=z+1;z<b;)b=z,aw(a,x,-1),nt=Q0(a),nt>z?pd(a,E):nt<z&&(z=nt,E=Ac(a));a.normalize()}function aw(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(ey(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var nt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=at;ot++)E[nt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(nt=0;nt<a.Ra;nt++)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt+1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt+1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt-1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt-1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(at=nt[nt.length-1],nt.pop(),E[at])for(E[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&nt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function $w(a){for(var y=cr(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Bi,Yw(y,x);var z=null,nt=null,ot=null,at=null,ut=(a.ve&1)!==0,ct=(a.ve&2)!==0,yt=(a.ve&4)!==0,It=(a.ve&8)!==0;for(ut&&(a.verticalAlignment(y,x,!0),z=K0(a,y,!0,!1)),y.reverse(),yt&&(a.verticalAlignment(y,x,!1),ot=K0(a,y,!1,!1)),b=gs(y),E=b.next();!E.done;E=b.next())E.value.reverse();It&&(a.verticalAlignment(y,x,!1),at=K0(a,y,!1,!0)),y.reverse(),ct&&(a.verticalAlignment(y,x,!0),nt=K0(a,y,!0,!0)),wr(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(Kt){var Zt=cr();ut&&Zt.push(z.get(Kt)),ct&&Zt.push(nt.get(Kt)),yt&&Zt.push(ot.get(Kt)),It&&Zt.push(at.get(Kt)),Zt.sort(function(Re,Fe){return Re-Fe});var ue=Zt.length;ue=(Zt[Math.floor((ue-1)/2)]+Zt[Math.ceil((ue-1)/2)])/2,wr(Zt),Kt.zc=ue})}function Yw(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],ot=a[b+1],at=0;z<ot.length;at++){var ut=ot[at];t:{if(ut.node===null){var ct=cy(ut);if(0<ct.length){ct=ct[0].node===null;break t}}ct=!1}var yt=ct;if(at===ot.length-1||yt){for(ct=nt.length-1,yt&&(ct=cy(ut)[0].index);z<=at;){if(ut=ot[z],!ut.bo){yt=[];for(var It=gs(ut.sourceEdgesArrayAccess),Kt=It.next();!Kt.done;Kt=It.next())Kt=Kt.value,Kt.valid&&yt.push(Kt);ut.bo=yt}for(ut=gs(ut.bo),yt=ut.next();!yt.done;yt=ut.next())yt=yt.value,It=yt.fromVertex.index,(It<E||It>ct)&&y.add(yt);z++}E=ct}}}$s.prototype.verticalAlignment=function(a,y,x){Jw(a),a=gs(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=gs(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?cy(z):ex(z),ot=nt.length;if(0<ot){nt.sort(function(yt,It){return yt.vi-It.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ut=nt[ot],ct=void 0;ct=x?$0(ut,z):$0(z,ut),!y.contains(ct)&&E<ut.vi&&(ut.align=z,z.root=ut.root,z.align=ut.root,E=ut.vi)}}}}};function Jw(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function K0(a,y,x,b){for(var E=a.K===90||a.K===270,z=gs(y),nt=z.next();!nt.done;nt=z.next()){var ot=gs(nt.value);for(nt=ot.next();!nt.done;nt=ot.next())nt=nt.value,nt.sd=nt,nt.shift=1/0,nt.zc=NaN,nt.qg=0}for(nt=a.K===90||a.K===270,z=gs(y),ot=z.next();!ot.done;ot=z.next()){ot=gs(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ut=0,ct=at;ct.align!==at;){var yt=ct.align,It=nt?ct.width:ct.height,Kt=nt?yt.width:yt.height;if(x){var Zt=$0(ct,yt),ue=Zt.portFromPos,Re=Zt.portToPos;Zt.link!==null&&(ct.node&&ct.node!==Zt.link.fromNode&&(ue=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Zt.link.toNode&&(Re=nt?yt.focusX:yt.focusY))}else Zt=$0(yt,ct),ue=Zt.portToPos,Re=Zt.portFromPos,Zt.link!==null&&(ct.node&&ct.node!==Zt.link.toNode&&(ue=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Zt.link.fromNode&&(Re=nt?yt.focusX:yt.focusY));It=b?ct.qg+(It-ue)-(Kt-Re):ct.qg+ue-Re,yt.qg=It,ut=Math.min(ut,It),ct=ct.align}ct=at;do ct.qg=ct.qg-ut,ct=ct.align;while(ct!==at)}}for(x=gs(y),nt=x.next();!nt.done;nt=x.next())for(z=gs(nt.value),nt=z.next();!nt.done;nt=z.next())nt=nt.value,nt.root===nt&&lw(a,nt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ot=0;do{for(z=y[nt][ot];z.align!==z.root;)z=z.align,nt++,0<z.vi&&(ot=uw(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(E?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(nt<y.length&&ot<y[nt].length&&z.sd===y[nt][ot].sd)}for(a=new gr,y=gs(y),nt=y.next();!nt.done;nt=y.next())for(x=gs(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,z=E?nt.width:nt.height,a.add(nt,b?-nt.zc-z:nt.zc);return a}function lw(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=uw(b,x),z=E.root;lw(a,z,x),y.sd===y&&(y.sd=z.sd);var nt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+nt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function uw(a,y){var x=a.Tz;return a=a.vi,1>a&&gn("Could not determine previous vertex in layer"),y[x][a-1]}$s.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=cr(),E=cr(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=qw(this,y[nt],b,E,nt);ot<z&&(x=nt,z=ot)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(at){return function(ut){ut.value+=at.delta}}(z)));wr(b),wr(E)};function qw(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,nt=-1/0;return y.each(function(ot){var at=ot.key;ot=ot.value,at=a.K===90||a.K===270?at.width:at.height,ot<z&&(z=ot),ot+at>nt&&(nt=ot+at)}),x[E]=z,b[E]=nt,nt-z}$s.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=G0(this,!0),y=G0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function G0(a,y){return a.K===270?y?Ha:jl:a.K===90?y?jl:Ha:a.K===180?y?da:Ja:y?Ja:da}$s.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,nt=E=1/0,ot=-1/0;a.next();){var at=a.value,ut=at.layer,ct=at.column|0;b?(nt=y.x+this.kc*ct,ut=this.Kd[ut]):(nt=this.Kd[ut],ut=y.y+this.kc*ct),at.centerX=nt,at.centerY=ut,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(nt=z,ot=Math.max(ot,at.bounds.right)):(nt=E,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,z=y.x-z,y=y.y-E,this.Rf=new ke(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},$s.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new ai(0,0,x,Math.abs(this.Ta[0]))):y.push(new ai(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new ai(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ai(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new ai(0,0,Math.abs(this.Ta[0]),x)):y.push(new ai(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new ai(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ai(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},$s.prototype.commitLayers=function(){},$s.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,nt=b.fromPort,ot=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,nt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,ot=at.port));var ut=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var ct=x.fromVertex,yt=x.toVertex;if(x.valid)y.curve===Yc&&y.pointsCount===4&&(ct.column===yt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ut,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,at,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,nt!==null&&ut===Wa&&(b=!0),ot!==null&&at===Wa&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Eo),y.i(3),!0),at.w()||at.set(E.actualBounds.center),y.L(0,at.x,at.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,ot,ot.ga(Eo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ct.layer===yt.layer)y.zf();else{var It=!1,Kt=!1,Zt=this.ie,ue=y.firstPickIndex+1;if(y.isOrthogonal){Kt=!0;var Re=y.pointsCount;4<Re&&y.points.removeRange(2,Re-3)}else if(y.curve===Yc)It=!0,Re=y.pointsCount,4<Re&&y.points.removeRange(2,Re-3),Re===4&&(ue=2);else{Re=y.pointsCount;var Fe=ut===Wa,We=at===Wa;2<Re&&Fe&&We?y.points.removeRange(1,Re-2):3<Re&&Fe&&!We?y.points.removeRange(1,Re-3):3<Re&&!Fe&&We?y.points.removeRange(2,Re-2):4<Re&&!Fe&&!We&&y.points.removeRange(2,Re-3)}if(x.rev){for(;yt!==null&&ct!==yt;){var Je=Re=null;for(Fe=yt.sourceEdges.iterator;Fe.next()&&(We=Fe.value,We.link!==x.link||(Re=We.fromVertex,Je=We.toVertex,Re.node!==null)););if(Re===null)break;if(Re!==ct){Fe=y.i(ue-1).x,We=y.i(ue-1).y;var nn=Re.centerX,xn=Re.centerY;if(Kt)this.K===180||this.K===0?ue===y.firstPickIndex+1?(y.m(ue++,Fe,We),y.m(ue++,Fe,xn)):(Je!==null?Je.centerY:We)!==xn&&(Je=this.Ta[Re.layer-1]+this.Rf.x,y.m(ue++,Je,We),y.m(ue++,Je,xn)):ue===y.firstPickIndex+1?(y.m(ue++,Fe,We),y.m(ue++,nn,We)):(Je!==null?Je.centerX:Fe)!==nn&&(Je=this.Ta[Re.layer-1]+this.Rf.y,y.m(ue++,Fe,Je),y.m(ue++,nn,Je));else if(ue===y.firstPickIndex+1){Je=Math.max(10,this.he[yt.layer]);var Vn=Math.max(10,this.Ld[yt.layer]);if(It)this.K===180?nn<=yt.bounds.x?(yt=yt.bounds.x,y.m(ue++,yt-Je,xn),y.m(ue++,yt,xn),y.m(ue++,yt+Vn,xn)):(y.m(ue++,nn-Je,xn),y.m(ue++,nn,xn),y.m(ue++,nn+Vn,xn)):this.K===90?xn>=yt.bounds.bottom?(yt=yt.bounds.y+yt.bounds.height,y.m(ue++,nn,yt+Vn),y.m(ue++,nn,yt),y.m(ue++,nn,yt-Je)):(y.m(ue++,nn,xn+Vn),y.m(ue++,nn,xn),y.m(ue++,nn,xn-Je)):this.K===270?xn<=yt.bounds.y?(yt=yt.bounds.y,y.m(ue++,nn,yt-Je),y.m(ue++,nn,yt),y.m(ue++,nn,yt+Vn)):(y.m(ue++,nn,xn-Je),y.m(ue++,nn,xn),y.m(ue++,nn,xn+Vn)):this.K===0&&(nn>=yt.bounds.right?(yt=yt.bounds.x+yt.bounds.width,y.m(ue++,yt+Vn,xn),y.m(ue++,yt,xn),y.m(ue++,yt-Je,xn)):(y.m(ue++,nn+Vn,xn),y.m(ue++,nn,xn),y.m(ue++,nn-Je,xn)));else{y.m(ue++,Fe,We);var ir=0;this.K===180||this.K===0?((this.K===180?nn>=yt.bounds.right:nn<=yt.bounds.x)&&(ir=(this.K===0?-Je:Vn)/2),y.m(ue++,Fe+ir,xn)):((this.K===270?xn>=yt.bounds.bottom:xn<=yt.bounds.y)&&(ir=(this.K===90?-Je:Vn)/2),y.m(ue++,nn,We+ir)),y.m(ue++,nn,xn)}}else Je=Math.max(10,this.he[Re.layer]),Vn=Math.max(10,this.Ld[Re.layer]),It?this.K===180?(y.m(ue++,nn-Je-Zt,xn),y.m(ue++,Math.min(nn-Je+Zt/2,nn),xn),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,Math.max(nn+Vn-Zt/2,nn),xn),y.m(ue++,nn+Vn+Zt,xn)):this.K===90?(y.m(ue++,nn,xn+Vn+Zt),y.m(ue++,nn,Math.max(xn+Vn-Zt/2,xn)),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,nn,Math.min(xn-Je+Zt/2,xn)),y.m(ue++,nn,xn-Je-Zt)):this.K===270?(y.m(ue++,nn,xn-Je-Zt),y.m(ue++,nn,Math.min(xn-Je+Zt/2,xn)),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,nn,Math.max(xn+Vn-Zt/2,xn)),y.m(ue++,nn,xn+Vn+Zt)):(y.m(ue++,nn+Vn+Zt,xn),y.m(ue++,Math.max(nn+Vn-Zt/2,nn),xn),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,Math.min(nn-Je+Zt/2,nn),xn),y.m(ue++,nn-Je-Zt,xn)):y.m(ue++,nn,xn)}yt=Re}(ot===null||ut!==Wa||Kt)&&(Fe=y.i(ue-1).x,We=y.i(ue-1).y,nn=y.i(ue).x,xn=y.i(ue).y,Kt?(Zt=this.Ld[ct.layer],this.K===180||this.K===0?(Kt=We,Kt>=ct.bounds.y&&Kt<=ct.bounds.bottom&&(this.K===180?nn>=ct.bounds.x:nn<=ct.bounds.right)&&(yt=ct.centerX+(this.K===180?-Zt:Zt),Kt<ct.bounds.y+ct.bounds.height/2?Kt=ct.bounds.y-this.kc/2:Kt=ct.bounds.bottom+this.kc/2,y.m(ue++,yt,We),y.m(ue++,yt,Kt)),y.m(ue++,nn,Kt)):(Kt=Fe,Kt>=ct.bounds.x&&Kt<=ct.bounds.right&&(this.K===270?xn>=ct.bounds.y:xn<=ct.bounds.bottom)&&(yt=ct.centerY+(this.K===270?-Zt:Zt),Kt<ct.bounds.x+ct.bounds.width/2?Kt=ct.bounds.x-this.kc/2:Kt=ct.bounds.right+this.kc/2,y.m(ue++,Fe,yt),y.m(ue++,Kt,yt)),y.m(ue++,Kt,xn)),y.m(ue++,nn,xn)):It?(Je=Math.max(10,this.he[ct.layer]),Vn=Math.max(10,this.Ld[ct.layer]),this.K===180&&nn>=ct.bounds.x?(yt=ct.bounds.x+ct.bounds.width,y.L(ue-2,yt,We),y.L(ue-1,yt+Vn,We)):this.K===90&&xn<=ct.bounds.bottom?(yt=ct.bounds.y,y.L(ue-2,Fe,yt),y.L(ue-1,Fe,yt-Je)):this.K===270&&xn>=ct.bounds.y?(yt=ct.bounds.y+ct.bounds.height,y.L(ue-2,Fe,yt),y.L(ue-1,Fe,yt+Vn)):this.K===0&&nn<=ct.bounds.right&&(yt=ct.bounds.x,y.L(ue-2,yt,We),y.L(ue-1,yt-Je,We))):(Je=Math.max(10,this.he[ct.layer]),Vn=Math.max(10,this.Ld[ct.layer]),Kt=0,this.K===180||this.K===0?((this.K===180?nn<=ct.bounds.x:nn>=ct.bounds.right)&&(Kt=(this.K===0?Vn:-Je)/2),y.m(ue++,nn+Kt,We)):((this.K===270?xn<=ct.bounds.y:xn>=ct.bounds.bottom)&&(Kt=(this.K===90?Vn:-Je)/2),y.m(ue++,Fe,xn+Kt)),y.m(ue++,nn,xn)))}else{for(;ct!==null&&ct!==yt;){for(Je=Re=null,ct=ct.destinationEdges.iterator;ct.next()&&(Fe=ct.value,Fe.link!==x.link||(Re=Fe.toVertex,Je=Fe.fromVertex,Je.node!==null&&(Je=null),Re.node!==null)););if(Re===null)break;Re!==yt&&(Fe=y.i(ue-1).x,We=y.i(ue-1).y,nn=Re.centerX,xn=Re.centerY,Kt?this.K===180||this.K===0?(Je!==null?Je.centerY:We)!==xn&&(Je=this.Ta[Re.layer]+this.Rf.x,ue===y.firstPickIndex+1&&(Je=this.K===0?Math.max(Je,Fe):Math.min(Je,Fe)),y.m(ue++,Je,We),y.m(ue++,Je,xn)):(Je!==null?Je.centerX:Fe)!==nn&&(Je=this.Ta[Re.layer]+this.Rf.y,ue===y.firstPickIndex+1&&(Je=this.K===90?Math.max(Je,We):Math.min(Je,We)),y.m(ue++,Fe,Je),y.m(ue++,nn,Je)):(Je=Math.max(10,this.he[Re.layer]),Vn=Math.max(10,this.Ld[Re.layer]),It?this.K===180?(y.m(ue++,nn+Vn+Zt,xn),y.m(ue++,Math.max(nn+Vn-Zt/2,nn),xn),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,Math.min(nn-Je+Zt/2,nn),xn),y.m(ue++,nn-Je-Zt,xn)):this.K===90?(y.m(ue++,nn,xn-Je-Zt),y.m(ue++,nn,Math.min(xn-Je+Zt/2,xn)),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,nn,Math.max(xn+Vn-Zt/2,xn)),y.m(ue++,nn,xn+Vn+Zt)):this.K===270?(y.m(ue++,nn,xn+Vn+Zt),y.m(ue++,nn,Math.max(xn+Vn-Zt/2,xn)),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,nn,Math.min(xn-Je+Zt/2,xn)),y.m(ue++,nn,xn-Je-Zt)):(y.m(ue++,nn-Je-Zt,xn),y.m(ue++,Math.min(nn-Je+Zt/2,nn),xn),y.m(ue++,nn,xn),y.m(ue++,nn,xn),y.m(ue++,Math.max(nn+Vn-Zt/2,nn),xn),y.m(ue++,nn+Vn+Zt,xn)):this.K===180?(y.m(ue++,nn+Vn,xn),y.m(ue++,nn-Je,xn)):this.K===90?(y.m(ue++,nn,xn-Je),y.m(ue++,nn,xn+Vn)):this.K===270?(y.m(ue++,nn,xn+Vn),y.m(ue++,nn,xn-Je)):(y.m(ue++,nn-Je,xn),y.m(ue++,nn+Vn,xn)))),ct=Re}Kt&&(Fe=y.i(ue-1).x,We=y.i(ue-1).y,nn=y.i(ue).x,xn=y.i(ue).y,this.K===180||this.K===0?We!==xn&&(Je=this.K===0?Math.min(Math.max((nn+Fe)/2,this.Ta[yt.layer]+this.Rf.x),nn):Math.max(Math.min((nn+Fe)/2,this.Ta[yt.layer]+this.Rf.x),nn),y.m(ue++,Je,We),y.m(ue++,Je,xn)):Fe!==nn&&(Je=this.K===90?Math.min(Math.max((xn+We)/2,this.Ta[yt.layer]+this.Rf.y),xn):Math.max(Math.min((xn+We)/2,this.Ta[yt.layer]+this.Rf.y),xn),y.m(ue++,Fe,Je),y.m(ue++,nn,Je)))}b!==null&&It&&4<=y.pointsCount&&(nt!==null&&(nt=ut===Wa?y.getLinkPointFromPoint(E,nt,nt.ga(Eo),y.i(3),!0):y.i(0),ut===Wa&&(ut=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ut.x)/2,ut.y),y.L(2,b.x,(ut.y+b.y)/2)):(y.L(1,ut.x,(nt.y+ut.y)/2),y.L(2,(ut.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===Wa?y.getLinkPointFromPoint(z,ot,ot.ga(Eo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Wa&&(ot=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,at.x,(ot.y+at.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+at.x)/2,at.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},$s.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ci,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var ot=new cg;ot.layer=Math.floor(z.y/2);var at=b.i(0),ut=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ut.x*ut.x+ut.y,ot.rd=Math.min(z.x,nt.x),ot.Ic=Math.max(z.x,nt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){at=b.i(E-1),ut=b.i(E+2);var ct=0;at.y<z.y?ct=ut.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(ct=ut.y>z.y?0:nt.x<z.x?2:1),ot.j=ct}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);this.zi(x,this.Ux,z,z+nt);var yt=1;for(ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(yt++,ot=ut.first);for(at=!0,ut=yt,ct<yt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,yt=z;yt<E;yt++){var It=x[yt];(at?It.first:It.jc)!==ot&&(ct++,ot=at?It.first:It.jc);var Kt=It.link;z=Kt.i(It.index),nt=Kt.i(It.index+1);var Zt=this.linkSpacing*(ct-(ut-1)/2);y++,Kt.uh(),Kt.L(It.index,z.x,z.y+Zt),Kt.L(It.index+1,nt.x,nt.y+Zt),Kt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(ot=new cg,ot.layer=Math.floor(z.x/2),at=b.i(0),ut=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ut.x+ut.y*ut.y,ot.rd=Math.min(z.y,nt.y),ot.Ic=Math.max(z.y,nt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(at=b.i(E-1),ut=b.i(E+2),ct=0,at.x<z.x?ct=ut.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(ct=ut.x>z.x?0:nt.y<z.y?2:1),ot.j=ct),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);for(this.zi(x,this.Ux,z,z+nt),yt=1,ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(yt++,ot=ut.first);for(at=!0,ut=yt,ct<yt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,yt=z;yt<E;yt++)It=x[yt],(at?It.first:It.jc)!==ot&&(ct++,ot=at?It.first:It.jc),Kt=It.link,z=Kt.i(It.index),nt=Kt.i(It.index+1),Zt=this.linkSpacing*(ct-(ut-1)/2),y++,Kt.uh(),Kt.L(It.index,z.x+Zt,z.y),Kt.L(It.index+1,nt.x+Zt,nt.y),Kt.zf()}z=E}a=b}}}},$t=$s.prototype,$t.Vx=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},$t.Ux=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},$t.Js=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},$t.B=function(a,y){return a-=y,-1<a&&1>a},$t.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&gn("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function ug(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function hg(a,y,x){a.He[a.tc[y]]=x}qe.Object.defineProperties($s.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):gn("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ry&&a!==W0&&a!==Hm||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==V0&&a!==oy&&a!==sy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Z0&&a!==ay&&a!==ly||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==uy&&a!==X0&&a!==hy||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var W0=new Dn($s,"CycleDepthFirst",0),ry=new Dn($s,"CycleGreedy",1),Hm=new Dn($s,"CycleFromLayers",2),V0=new Dn($s,"LayerOptimalLinkLength",0),oy=new Dn($s,"LayerLongestPathSink",1),sy=new Dn($s,"LayerLongestPathSource",2),Z0=new Dn($s,"InitDepthFirstOut",0),ay=new Dn($s,"InitDepthFirstIn",1),ly=new Dn($s,"InitNaive",2),uy=new Dn($s,"AggressiveNone",0),X0=new Dn($s,"AggressiveLess",1),hy=new Dn($s,"AggressiveMore",2),tx=8;$s.className="LayeredDigraphLayout",$s.CycleDepthFirst=W0,$s.CycleGreedy=ry,$s.CycleFromLayers=Hm,$s.LayerOptimalLinkLength=V0,$s.LayerLongestPathSink=oy,$s.LayerLongestPathSource=sy,$s.InitDepthFirstOut=Z0,$s.InitDepthFirstIn=ay,$s.InitNaive=ly,$s.AggressiveNone=uy,$s.AggressiveLess=X0,$s.AggressiveMore=hy,$s.PackNone=0,$s.PackExpand=1,$s.PackStraighten=2,$s.PackMedian=4,$s.PackAll=15,$s.AlignNone=0,$s.AlignUpperLeft=1,$s.AlignUpperRight=2,$s.AlignLowerLeft=4,$s.AlignLowerRight=8,$s.AlignAll=15;function cg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}cg.className="SegInfo";function Zp(a){ya.call(this,a)}Mn(Zp,ya),Zp.prototype.createVertex=function(){return new md(this)},Zp.prototype.createEdge=function(){return new Qm(this)},Zp.className="LayeredDigraphNetwork";function md(a){xu.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}Mn(md,xu);function hw(a,y){return a.index-y.index}function $0(a,y){if(!a.$n){for(var x=[],b=gs(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=gs(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;gn("Unable to find destination edge to given vertex")}function cy(a){if(!a.co){for(var y=[],x=gs(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(hw),a.co=y}return a.co}function ex(a){if(!a.ao){for(var y=[],x=gs(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(hw),a.ao=y}return a.ao}md.prototype.Cl=function(a){xu.prototype.Cl.call(this,a),this.bo=this.co=null},md.prototype.Kl=function(a){xu.prototype.Kl.call(this,a),this.bo=this.co=null},md.prototype.zl=function(a){xu.prototype.zl.call(this,a),this.$n=this.ao=null},md.prototype.Jl=function(a){xu.prototype.Jl.call(this,a),this.$n=this.ao=null},qe.Object.defineProperties(md.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),md.prototype.deleteDestinationEdge=md.prototype.Jl,md.prototype.addDestinationEdge=md.prototype.zl,md.prototype.deleteSourceEdge=md.prototype.Kl,md.prototype.addSourceEdge=md.prototype.Cl,md.className="LayeredDigraphVertex";function Qm(a){Mc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Mn(Qm,Mc),qe.Object.defineProperties(Qm.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Qm.className="LayeredDigraphEdge";function hs(a){Ka.call(this),this.Ub=new Bi,this.Wn=tv,this.ud=tf,this.vo=nv,this.Bq=Sy,this.$v=[],this.td=!0,this.Rb=iv,this.$d=new Ki(10,10).freeze();var y=new Ap(this);this.W=new jd(y),this.Y=new jd(y),this.ru=[],a&&Object.assign(this,a)}Mn(hs,Ka),hs.prototype.cloneProtected=function(a){Ka.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},hs.prototype.qb=function(a){a.classType===hs?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:gn("Unknown enum value: "+a):Ka.prototype.qb.call(this,a)},hs.prototype.createNetwork=function(){return new Ap(this)},hs.prototype.makeNetwork=function(a){function y(b){if(b instanceof hr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Wi){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof _n?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof To?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},hs.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==rv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof _n&&(y=a),this.path===tv&&y!==null?this.ud=y.isTreePathToChildren?tf:cp:this.ud=this.path===tv?tf:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Bi,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof hr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof jd&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,dy(this,y));for(y=this.network.vertexes,a=null;a=nx(y),0<a.count;)y=cw(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,dy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&fw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&gw(this,y);if(this.Cu(),this.layerStyle===ov){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Cy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Bi,this.isValidLayout=!0};function nx(a){var y=new Bi;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}hs.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case tf:x.sourceEdges.count===0&&this.Ub.add(x);break;case cp:x.destinationEdges.count===0&&this.Ub.add(x);break;default:gn("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cw(this,a),a!==null&&this.Ub.add(a))};function cw(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case tf:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case cp:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:gn("Unhandled path value "+a.ud.toString())}}return b}function dy(a,y){if(y!==null){switch(a.ud){case tf:if(0<y.destinationEdges.count){for(var x=new Ci,b=y.destinationVertexes;b.next();){var E=b.value;dw(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case cp:if(0<y.sourceEdges.count){for(x=new Ci,b=y.sourceVertexes;b.next();)E=b.value,dw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:gn("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)dy(a,x[y])}}function dw(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}hs.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function Aw(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===rf&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];Aw(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function ix(a,y){switch(a.vo){default:case nv:return y.parent!==null?y.parent:a.W;case wy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case yy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case vy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}hs.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ix(this,a)),a.parent!==null&&a.parent.alignment===rf){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function fw(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fw(a,y[b])}}hs.prototype.assignTreeVertexValues=function(){};function gw(a,y){if(y!==null){y.alignment!==rf&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gw(a,y[b])}}hs.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xp:break;case Km:a.children.reverse();break;case Gm:a.children.sort(a.comparer);break;case Wm:a.children.sort(a.comparer),a.children.reverse();break;default:gn("Unhandled sorting value "+a.sorting.toString())}},hs.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},hs.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dg(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ut=a.node.Mu();ut.next();){var ct=ut.value;ct.category==="Comment"&&ct.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ct),ct.Va(),ct=ct.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ct.width),nt+=ct.height+Math.abs(ot)):(z+=ct.width+Math.abs(ot),nt=Math.max(nt,ct.height)),ot=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=ai.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,ai.free(E))};function dg(a){return a===If||a===rf||a===kf||a===df}function zm(a){return a===If||a===rf}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dg(x)){if(zm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===kf)return!0}}return!1}hs.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=dg(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=Ay(a),at=0,ut=a.comments,ct=ut.length,yt=ke.alloc(),It=0;It<ct;It++){var Kt=ut[It],Zt=Kt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x-a.commentMargin-Zt.width,a.bounds.y+at),Kt.move(yt),Kt=Kt.Sd();Kt.next();){var ue=Kt.value;ue.fromSpot=da,ue.toSpot=Ja}else for(yt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=Ja,ue.toSpot=da;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=Ja,ue.toSpot=da;else for(yt.h(a.bounds.x+a.commentMargin-Zt.width,a.bounds.y+at),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=da,ue.toSpot=Ja;at=0<=a.commentSpacing?at+(Zt.height+a.commentSpacing):at+(a.commentSpacing-Zt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Zt.height),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=Ha,ue.toSpot=jl;else for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=jl,ue.toSpot=Ha;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=jl,ue.toSpot=Ha;else for(yt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Zt.height),Kt.move(yt),Kt=Kt.Sd();Kt.next();)ue=Kt.value,ue.fromSpot=Ha,ue.toSpot=jl;at=0<=a.commentSpacing?at+(Zt.width+a.commentSpacing):at+(a.commentSpacing-Zt.width)}}if(ke.free(yt),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===tf)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},hs.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case ev:pw(this,a);break;case Vm:if(a.alignment===rf)pw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dg(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=iA(a);y=E===90||E===270;var z=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===ef;var ut=at===nf,ct=dg(at),yt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var It=a.nodeSpacing,Kt=this.computeNodeIndent(a),Zt=a.rowSpacing,ue=0;(b||ut||a.hm||a.im&&a.maxGenerationCount===1)&&(ue=Math.max(0,a.rowIndent)),b=a.width;var Re=a.height,Fe=0,We=0,Je=0,nn=null,xn=null,Vn=0,ir=0,Lr=0,yr=0,Gi=0,Mi=0,Fo=0,mo=0;if(ct&&!zm(at)&&135<E&&nt.reverse(),zm(at))if(1<ot)for(var Ns=0;Ns<ot;Ns++)Ns%2===0&&Ns!==ot-1&&(mo=Math.max(mo,y?nt[Ns].Da.width:nt[Ns].Da.height));else ot===1&&(mo=y?nt[0].Da.width:nt[0].Da.height);if(ct){switch(at){case If:We=135>E?mw(this,a,nt,mo,Fe,We):vw(this,a,nt,mo,Fe,We),mo=We.x,Fe=We.width,We=We.height;break;case kf:for(nn=0;nn<ot;nn++)xn=nt[nn],yt=xn.Da,Je=Mi===0?0:Zt,y?(xn.S.h(z-yt.width,yr+Je),Fe=Math.max(Fe,yt.width),We=Math.max(We,yr+Je+yt.height),yr+=Je+yt.height):(xn.S.h(Lr+Je,z-yt.height),Fe=Math.max(Fe,Lr+Je+yt.width),We=Math.max(We,yt.height),Lr+=Je+yt.width),Mi++;break;case df:for(nn=0;nn<ot;nn++)xn=nt[nn],z=xn.Da,yt=Mi===0?0:Zt,y?(xn.S.h(It/2+a.focus.x,yr+yt),Fe=Math.max(Fe,z.width),We=Math.max(We,yr+yt+z.height),yr+=yt+z.height):(xn.S.h(Lr+yt,It/2+a.focus.y),Fe=Math.max(Fe,Lr+yt+z.width),We=Math.max(We,z.height),Lr+=yt+z.width),Mi++}nn=vc(this,2),xn=vc(this,2),y?(nn[0].h(0,0),nn[1].h(0,We),xn[0].h(Fe,0)):(nn[0].h(0,0),nn[1].h(Fe,0),xn[0].h(0,We)),xn[1].h(Fe,We)}else for(Ns=0;Ns<ot;Ns++){var pa=nt[Ns],Ou=pa.Da;if(y){0<yt&&0<Mi&&Lr+It+Ou.width>yt&&(Lr<z&&Og(a,at,z-Lr,0,Fo,Ns-1),Gi++,Mi=0,Fo=Ns,Je=We,Lr=0,yr=135<E?-We-Zt:We+Zt),J0(this,pa,0,yr);var zu=0;if(Mi===0)nn=pa.Yo,xn=pa.kp,Vn=Ou.width,ir=Ou.height,(nn===null||xn===null||E!==iA(pa))&&(nn=vc(this,2),xn=vc(this,2),nn[0].h(0,0),nn[1].h(0,ir),xn[0].h(Vn,0),xn[1].h(Vn,ir));else{var _h=cr();ir=yw(this,a,pa,nn,xn,Vn,ir,_h),zu=ir.x,nn=_h[0],xn=_h[1],Vn=ir.width,ir=ir.height,wr(_h),Lr<Ou.width&&0>zu&&(hp(a,-zu,0,Fo,Ns-1),q0(nn,-zu,0),q0(xn,-zu,0),zu=0)}pa.S.h(zu,yr),Fe=Math.max(Fe,Vn),We=Math.max(We,Je+(Gi===0?0:Zt)+Ou.height),Lr=Vn}else 0<yt&&0<Mi&&yr+It+Ou.height>yt&&(yr<z&&Og(a,at,0,z-yr,Fo,Ns-1),Gi++,Mi=0,Fo=Ns,Je=Fe,yr=0,Lr=135<E?-Fe-Zt:Fe+Zt),J0(this,pa,Lr,0),zu=0,Mi===0?(nn=pa.Yo,xn=pa.kp,Vn=Ou.width,ir=Ou.height,(nn===null||xn===null||E!==iA(pa))&&(nn=vc(this,2),xn=vc(this,2),nn[0].h(0,0),nn[1].h(Vn,0),xn[0].h(0,ir),xn[1].h(Vn,ir))):(_h=cr(),ir=yw(this,a,pa,nn,xn,Vn,ir,_h),zu=ir.x,nn=_h[0],xn=_h[1],Vn=ir.width,ir=ir.height,wr(_h),yr<Ou.height&&0>zu&&(hp(a,0,-zu,Fo,Ns-1),q0(nn,0,-zu),q0(xn,0,-zu),zu=0)),pa.S.h(Lr,zu),We=Math.max(We,ir),Fe=Math.max(Fe,Je+(Gi===0?0:Zt)+Ou.width),yr=ir;Mi++}switch(0<Gi&&(y?(We+=Math.max(0,x),Lr<Fe&&Og(a,at,Fe-Lr,0,Fo,ot-1),0<ue&&(ut||hp(a,ue,0,0,ot-1),Fe+=ue)):(Fe+=Math.max(0,x),yr<We&&Og(a,at,0,We-yr,Fo,ot-1),0<ue&&(ut||hp(a,0,ue,0,ot-1),We+=ue))),ue=ut=0,at){case $p:y?ut+=Fe/2-a.focus.x-Kt/2:ue+=We/2-a.focus.y-Kt/2;break;case dp:0<Gi?y?ut+=Fe/2-a.focus.x-Kt/2:ue+=We/2-a.focus.y-Kt/2:y?(mo=nt[0].S.x+nt[0].la.x,ut+=mo+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-mo)/2-a.focus.x-Kt/2):(mo=nt[0].S.y+nt[0].la.y,ue+=mo+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-mo)/2-a.focus.y-Kt/2);break;case ef:y?(ut-=Kt,Fe+=Kt):(ue-=Kt,We+=Kt);break;case nf:y?(ut+=Fe-a.width+Kt,Fe+=Kt):(ue+=We-a.height+Kt,We+=Kt);break;case If:y?1<ot?ut+=mo+It/2-a.focus.x:ut+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?ue+=mo+It/2-a.focus.y:ue+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case kf:y?ut+=Fe+It/2-a.focus.x:ue+=We+It/2-a.focus.y;break;case df:break;default:We=this.customAlignment(a,ut,ue,Fe,We),ut=We[0],ue=We[1],Fe=We[2],We=We[3]}for(Kt=0;Kt<ot;Kt++)mo=nt[Kt],y?mo.S.h(mo.S.x+mo.la.x-ut,mo.S.y+(135<E?(ct?-We:-mo.Da.height)+mo.la.y-x:Re+x+mo.la.y)):mo.S.h(mo.S.x+(135<E?(ct?-Fe:-mo.Da.width)+mo.la.x-x:b+x+mo.la.x),mo.S.y+mo.la.y-ue);if(ot=nt=0,ct?y?(Fe=fy(a,Fe,ut),0>ut&&(ut=0),135<E&&(ue+=We+x),We+=Re+x,at===df&&(nt+=It/2+a.focus.x),ot+=Re+x):(135<E&&(ut+=Fe+x),Fe+=b+x,We=gy(a,We,ue),0>ue&&(ue=0),at===df&&(ot+=It/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Fe&&(Fe=py(at,b-Fe,0),nt=Fe.x,ot=Fe.y,Fe=b,ut=0):Fe=fy(a,Fe,ut),0>ut&&(nt-=ut,ut=0),135<E&&(ue+=We+x),We=Math.max(Math.max(We,Re),We+Re+x),ot+=Re+x):(135<E&&(ut+=Fe+x),Fe=Math.max(Math.max(Fe,b),Fe+b+x),a.comments===null?Re>We&&(We=py(at,0,Re-We),nt=We.x,ot=We.y,We=Re,ue=0):We=gy(a,We,ue),0>ue&&(ot-=ue,ue=0),nt+=b+x),0<Gi)E=vc(this,4),Gi=vc(this,4),y?(E[2].h(0,Re+x),E[3].h(E[2].x,We),Gi[2].h(Fe,E[2].y),Gi[3].h(Gi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Fe,E[2].y),Gi[2].h(E[2].x,We),Gi[3].h(E[3].x,Gi[2].y));else{for(E=vc(this,nn.length+2),Gi=vc(this,xn.length+2),at=0;at<nn.length;at++)ct=nn[at],E[at+2].h(ct.x+nt,ct.y+ot);for(at=0;at<xn.length;at++)ct=xn[at],Gi[at+2].h(ct.x+nt,ct.y+ot)}y?(E[0].h(ut,0),E[1].h(E[0].x,Re),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Gi[0].h(ut+b,0),Gi[1].h(Gi[0].x,Re),Gi[2].y<Gi[1].y&&(Gi[2].x<Gi[0].x?Gi[2].assign(Gi[1]):Gi[1].assign(Gi[2])),Gi[3].y<Gi[2].y&&(Gi[3].x<Gi[0].x?Gi[3].assign(Gi[2]):Gi[2].assign(Gi[3])),E[2].y-=x/2,Gi[2].y-=x/2):(E[0].h(0,ue),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Gi[0].h(0,ue+Re),Gi[1].h(b,Gi[0].y),Gi[2].x<Gi[1].x&&(Gi[2].y<Gi[0].y?Gi[2].assign(Gi[1]):Gi[1].assign(Gi[2])),Gi[3].x<Gi[2].x&&(Gi[3].y<Gi[0].y?Gi[3].assign(Gi[2]):Gi[2].assign(Gi[3])),E[2].x-=x/2,Gi[2].x-=x/2),pA(this,nn),pA(this,xn),a.Yo=E,a.kp=Gi,a.la.h(ut,ue),a.Da.h(Fe,We)}break;default:gn("Unhandled compaction value "+a.compaction.toString())}}};function pw(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=dg(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=iA(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];z=Math.max(z,x?at.Da.width:at.Da.height)}var ut=y.alignment,ct=ut===ef,yt=ut===nf;ot=dg(ut);var It=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Kt=y.nodeSpacing,Zt=a.computeNodeIndent(y),ue=ct||yt?0:Zt/2,Re=y.rowSpacing,Fe=0;(ct||yt||y.hm||y.im&&y.maxGenerationCount===1)&&(Fe=Math.max(0,y.rowIndent)),ct=y.width;var We=y.height,Je=0,nn=0,xn=0,Vn=0,ir=0,Lr=0,yr=0,Gi=0,Mi=0,Fo=0;if(ot&&!zm(ut)&&135<b&&E.reverse(),zm(ut))if(1<nt)for(var mo=0;mo<nt;mo++){var Ns=E[mo],pa=Ns.Da;mo%2===0&&mo!==nt-1?Mi=Math.max(Mi,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ns)-Kt):mo%2!==0&&(Fo=Math.max(Fo,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ns)-Kt))}else nt===1&&(Mi=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ut){case If:case rf:nn=135>b?mw(a,y,E,Mi,Je,nn):vw(a,y,E,Mi,Je,nn),Mi=nn.x,Je=nn.width,nn=nn.height;break;case kf:for(It=0;It<nt;It++)ue=E[It],xn=ue.Da,Fo=yr===0?0:Re,x?(ue.S.h(z-xn.width,ir+Fo),Je=Math.max(Je,xn.width),nn=Math.max(nn,ir+Fo+xn.height),ir+=Fo+xn.height):(ue.S.h(Vn+Fo,z-xn.height),Je=Math.max(Je,Vn+Fo+xn.width),nn=Math.max(nn,xn.height),Vn+=Fo+xn.width),yr++;break;case df:for(z=0;z<nt;z++)It=E[z],ue=It.Da,xn=yr===0?0:Re,x?(It.S.h(Kt/2+y.focus.x,ir+xn),Je=Math.max(Je,ue.width),nn=Math.max(nn,ir+xn+ue.height),ir+=xn+ue.height):(It.S.h(Vn+xn,Kt/2+y.focus.y),Je=Math.max(Je,Vn+xn+ue.width),nn=Math.max(nn,ue.height),Vn+=xn+ue.width),yr++}else for(Fo=0;Fo<nt;Fo++)mo=E[Fo],Ns=mo.Da,x?(0<It&&0<yr&&Vn+Kt+Ns.width>It&&(Vn<z&&Og(y,ut,z-Vn,0,Gi,Fo-1),Lr++,yr=0,Gi=Fo,xn=nn,Vn=0,ir=135<b?-nn-Re:nn+Re),pa=yr===0?ue:Kt,J0(a,mo,0,ir),mo.S.h(Vn+pa,ir),Je=Math.max(Je,Vn+pa+Ns.width),nn=Math.max(nn,xn+(Lr===0?0:Re)+Ns.height),Vn+=pa+Ns.width):(0<It&&0<yr&&ir+Kt+Ns.height>It&&(ir<z&&Og(y,ut,0,z-ir,Gi,Fo-1),Lr++,yr=0,Gi=Fo,xn=Je,ir=0,Vn=135<b?-Je-Re:Je+Re),pa=yr===0?ue:Kt,J0(a,mo,Vn,0),mo.S.h(Vn,ir+pa),nn=Math.max(nn,ir+pa+Ns.height),Je=Math.max(Je,xn+(Lr===0?0:Re)+Ns.width),ir+=pa+Ns.height),yr++;switch(0<Lr&&(x?(nn+=Math.max(0,at),Vn<Je&&Og(y,ut,Je-Vn,0,Gi,nt-1),0<Fe&&(yt||hp(y,Fe,0,0,nt-1),Je+=Fe)):(Je+=Math.max(0,at),ir<nn&&Og(y,ut,0,nn-ir,Gi,nt-1),0<Fe&&(yt||hp(y,0,Fe,0,nt-1),nn+=Fe))),Fe=yt=0,ut){case $p:x?yt+=Je/2-y.focus.x-Zt/2:Fe+=nn/2-y.focus.y-Zt/2;break;case dp:0<Lr?x?yt+=Je/2-y.focus.x-Zt/2:Fe+=nn/2-y.focus.y-Zt/2:x?(a=E[0].S.x+E[0].la.x,yt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-Zt/2):(a=E[0].S.y+E[0].la.y,Fe+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-Zt/2);break;case ef:x?(yt-=Zt,Je+=Zt):(Fe-=Zt,nn+=Zt);break;case nf:x?(yt+=Je-y.width+Zt,Je+=Zt):(Fe+=nn-y.height+Zt,nn+=Zt);break;case If:case rf:x?1<nt?yt+=Mi+Kt/2-y.focus.x:yt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?Fe+=Mi+Kt/2-y.focus.y:Fe+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kf:x?yt+=Je+Kt/2-y.focus.x:Fe+=nn+Kt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,yt,Fe,Je,nn),yt=a[0],Fe=a[1],Je=a[2],nn=a[3]}for(a=0;a<nt;a++)Zt=E[a],x?Zt.S.h(Zt.S.x+Zt.la.x-yt,Zt.S.y+(135<b?(ot?-nn:-Zt.Da.height)+Zt.la.y-at:We+at+Zt.la.y)):Zt.S.h(Zt.S.x+(135<b?(ot?-Je:-Zt.Da.width)+Zt.la.x-at:ct+at+Zt.la.x),Zt.S.y+Zt.la.y-Fe);x?(Je=fy(y,Je,yt),0>yt&&(yt=0),135<b&&(Fe+=nn+at),nn=Math.max(Math.max(nn,We),nn+We+at)):(135<b&&(yt+=Je+at),Je=Math.max(Math.max(Je,ct),Je+ct+at),nn=gy(y,nn,Fe),0>Fe&&(Fe=0)),y.la.h(yt,Fe),y.Da.h(Je,nn)}}hs.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function mw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ai(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new ai(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=iA(y)===90,ct=0,yt=0,It=0,Kt=0;Kt<nt;Kt++)if(!(Kt%2!==0||1<nt&&Kt===nt-1)){var Zt=x[Kt],ue=Zt.Da,Re=ct===0?0:at;if(ut){var Fe=a.computeBusNodeSpacing(Zt)-ot;Zt.S.h(b-(ue.width+Fe),It+Re),E=Math.max(E,ue.width+Fe),z=Math.max(z,It+Re+ue.height),It+=Re+ue.height}else Fe=a.computeBusNodeSpacing(Zt)-ot,Zt.S.h(yt+Re,b-(ue.height+Fe)),z=Math.max(z,ue.height+Fe),E=Math.max(E,yt+Re+ue.width),yt+=Re+ue.width;ct++}for(ct=0,Zt=yt,Kt=It,ut?(yt=b+ot,It=0):(yt=0,It=b+ot),ue=0;ue<nt;ue++)if(ue%2!==0){Re=x[ue],Fe=Re.Da;var We=ct===0?0:at;if(ut){var Je=a.computeBusNodeSpacing(Re)-ot;Re.S.h(yt+Je,It+We),E=Math.max(E,yt+Fe.width+Je),z=Math.max(z,It+We+Fe.height),It+=We+Fe.height}else Je=a.computeBusNodeSpacing(Re)-ot,Re.S.h(yt+We,It+Je),E=Math.max(E,yt+We+Fe.width),z=Math.max(z,It+Fe.height+Je),yt+=We+Fe.width;ct++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ut?Math.max(Math.abs(Kt),Math.abs(It)):Math.max(Math.abs(Zt),Math.abs(yt))),ut?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ut=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ut+nt.width),0>ut&&(E-=ut),z=Math.max(z,Math.max(Kt,It)+a+nt.height),0>x.S.x&&(b=Y0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Zt,yt)+a+nt.width),It=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,It+nt.height),0>It&&(z-=It),0>x.S.y&&(b=Y0(y,x.S.y,!0,b,ot)))),new ai(b,0,E,z)}function vw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ai(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new ai(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=iA(y)===270,ct=0,yt=0,It=0,Kt=0;Kt<nt;Kt++)if(!(Kt%2!==0||1<nt&&Kt===nt-1)){var Zt=x[Kt],ue=Zt.Da,Re=ct===0?0:at;if(ut){var Fe=a.computeBusNodeSpacing(Zt)-ot;It-=Re+ue.height,Zt.S.h(b-(ue.width+Fe),It),E=Math.max(E,ue.width+Fe),z=Math.max(z,Math.abs(It))}else Fe=a.computeBusNodeSpacing(Zt)-ot,yt-=Re+ue.width,Zt.S.h(yt,b-(ue.height+Fe)),z=Math.max(z,ue.height+Fe),E=Math.max(E,Math.abs(yt));ct++}for(ct=0,Zt=yt,Kt=It,ut?(yt=b+ot,It=0):(yt=0,It=b+ot),ue=0;ue<nt;ue++)if(ue%2!==0){Re=x[ue],Fe=Re.Da;var We=ct===0?0:at;if(ut){var Je=a.computeBusNodeSpacing(Re)-ot;It-=We+Fe.height,Re.S.h(yt+Je,It),E=Math.max(E,yt+Fe.width+Je),z=Math.max(z,Math.abs(It))}else Je=a.computeBusNodeSpacing(Re)-ot,yt-=We+Fe.width,Re.S.h(yt,It+Je),z=Math.max(z,It+Fe.height+Je),E=Math.max(E,Math.abs(yt));ct++}for(1<nt&&nt%2===1&&(at=x[nt-1],ct=at.Da,a=a.computeBusLastRowSpacing(at,ut?Math.max(Math.abs(Kt),Math.abs(It)):Math.max(Math.abs(Zt),Math.abs(yt))),ut?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-ct.height-a),yt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,yt+ct.width),0>yt&&(E-=yt),z=Math.max(z,Math.abs(Math.min(Kt,It))+a+ct.height),0>at.S.x&&(b=Y0(y,at.S.x,!1,b,ot))):(at.S.h(-E-ct.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(Zt,yt))+a+ct.width),It=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,It+ct.height),0>It&&(z-=It),0>at.S.y&&(b=Y0(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ut?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new ai(b,0,E,z)}hs.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},hs.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Y0(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function fy(a,y,x){switch(a.alignment){case dp:case $p:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case ef:return a.width>y?a.width:y;case nf:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case If:case rf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case kf:return a.width-a.focus.x+a.nodeSpacing/2+y;case df:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function gy(a,y,x){switch(a.alignment){case dp:case $p:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ef:return a.height>y?a.height:y;case nf:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case If:case rf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case kf:return a.height-a.focus.y+a.nodeSpacing/2+y;case df:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function py(a,y,x){switch(a){case $p:y/=2,x/=2;break;case dp:y/=2,x/=2;break;case ef:x=y=0;break;case nf:break;default:gn("Unhandled alignment value "+a.toString())}return new ke(y,x)}function Og(a,y,x,b,E,z){y=py(y,x,b),hp(a,y.x,y.y,E,z)}function hp(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function J0(a,y,x,b){var E=y.parent;switch(a.ud){case tf:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case cp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:gn("Unhandled path value "+a.ud.toString())}}function q0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function yw(a,y,x,b,E,z,nt,ot){var at=iA(y),ut=at===90||at===270,ct=y.nodeSpacing;y=b;var yt=E;b=z;var It=nt,Kt=x.Yo,Zt=x.kp;nt=x.Da;var ue=ut?Math.max(It,nt.height):Math.max(b,nt.width);if((Kt===null||at!==iA(x))&&(Kt=vc(a,2),Zt=vc(a,2),ut?(Kt[0].h(0,0),Kt[1].h(0,nt.height),Zt[0].h(nt.width,0),Zt[1].h(Zt[0].x,Kt[1].y)):(Kt[0].h(0,0),Kt[1].h(nt.width,0),Zt[0].h(0,nt.height),Zt[1].h(Kt[1].x,Zt[0].y))),ut){if(It=9999999,!(yt===null||2>yt.length||Kt===null||2>Kt.length))for(E=x=0;x<yt.length&&E<Kt.length;){z=yt[x];var Re=Kt[E];at=Re.x,ut=Re.y,at+=b;var Fe=z;x+1<yt.length&&(Fe=yt[x+1]);var We=Re;Re=We.x,We=We.y,E+1<Kt.length&&(We=Kt[E+1],Re=We.x,We=We.y,Re+=b);var Je=It;z.y===ut?Je=at-z.x:z.y>ut&&z.y<We?Je=at+(z.y-ut)/(We-ut)*(Re-at)-z.x:ut>z.y&&ut<Fe.y&&(Je=at-(z.x+(ut-z.y)/(Fe.y-z.y)*(Fe.x-z.x))),Je<It&&(It=Je),Fe.y<=z.y?x++:We<=ut?E++:(Fe.y<=We&&x++,We<=Fe.y&&E++)}if(It=b-It,It+=ct,x=Kt,E=It,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=vc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(x=vc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);pA(a,ct),b=x}if(z=Zt,at=It,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(ct=vc(a,yt.length+z.length),E=ut=x=0;x<yt.length&&yt[x].y<z[0].y;)Fe=yt[x++],ct[E++].h(Fe.x,Fe.y);for(;ut<z.length;)Fe=z[ut++],ct[E++].h(Fe.x+at,Fe.y);for(z=z[z.length-1].y;x<yt.length&&yt[x].y<=z;)x++;for(;x<yt.length&&yt[x].y>z;)at=yt[x++],ct[E++].h(at.x,at.y);for(z=vc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);pA(a,ct),E=z}return z=Math.max(0,It)+nt.width,nt=ue,pA(a,y),pA(a,Kt),pA(a,yt),pA(a,Zt),ot[0]=b,ot[1]=E,new ai(It,0,z,nt)}if(b=9999999,!(yt===null||2>yt.length||Kt===null||2>Kt.length))for(E=x=0;x<yt.length&&E<Kt.length;)z=yt[x],Re=Kt[E],at=Re.x,ut=Re.y,ut+=It,Fe=z,x+1<yt.length&&(Fe=yt[x+1]),We=Re,Re=We.x,We=We.y,E+1<Kt.length&&(We=Kt[E+1],Re=We.x,We=We.y,We+=It),Je=b,z.x===at?Je=ut-z.y:z.x>at&&z.x<Re?Je=ut+(z.x-at)/(Re-at)*(We-ut)-z.y:at>z.x&&at<Fe.x&&(Je=ut-(z.y+(at-z.x)/(Fe.x-z.x)*(Fe.y-z.y))),Je<b&&(b=Je),Fe.x<=z.x?x++:Re<=at?E++:(Fe.x<=Re&&x++,Re<=Fe.x&&E++);if(It-=b,It+=ct,x=Kt,E=It,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=vc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(x=vc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);pA(a,ct),b=x}if(z=Zt,at=It,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(ct=vc(a,yt.length+z.length),E=ut=x=0;x<yt.length&&yt[x].x<z[0].x;)Fe=yt[x++],ct[E++].h(Fe.x,Fe.y);for(;ut<z.length;)Fe=z[ut++],ct[E++].h(Fe.x,Fe.y+at);for(z=z[z.length-1].x;x<yt.length&&yt[x].x<=z;)x++;for(;x<yt.length&&yt[x].x>z;)at=yt[x++],ct[E++].h(at.x,at.y);for(z=vc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);pA(a,ct),E=z}return z=ue,nt=Math.max(0,It)+nt.height,pA(a,y),pA(a,Kt),pA(a,yt),pA(a,Zt),ot[0]=b,ot[1]=E,new ai(It,0,z,nt)}function vc(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new ke;return a}function pA(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}hs.prototype.arrangeTrees=function(){if(this.Rb===rv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof jd){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),my(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof jd&&a.push(x);switch(this.sorting){case Xp:break;case Km:a.reverse();break;case Gm:a.sort(this.comparer);break;case Wm:a.sort(this.comparer),a.reverse();break;default:gn("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(my(this,E,y+E.la.x,x+E.la.y),this.Rb){case iv:x+=E.Da.height+this.$d.height;break;case xy:y+=E.Da.width+this.$d.width;break;default:gn("Unhandled arrangement value "+this.Rb.toString())}}}};function my(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var nt=y[z];my(a,nt,x+nt.S.x,b+nt.S.y)}}}hs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},hs.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},hs.prototype.Gu=function(){if(this.layerStyle===ov){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new ke(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new ke(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)z+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ot=a[nt]+y[nt];this.angle===270?(z-=ot,E.push(new ai(0,z,x,ot))):this.angle===90?(E.push(new ai(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new ai(z,0,ot,x))):(E.push(new ai(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},hs.prototype.commitLayers=function(){},hs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},hs.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof jd&&ww(this,y)}};function ww(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ww(a,y[b])}}hs.prototype.setPortSpots=function(a){var y=a.alignment;if(dg(y)){var x=this.ud===tf,b=iA(a);switch(b){case 0:var E=Ja;break;case 90:E=jl;break;case 180:E=da;break;default:E=Ha}var z=a.children,nt=z.length;switch(y){case If:case rf:for(y=0;y<nt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?da:Ha;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=da;break;case 90:at=Ha;break;case 180:at=Ja;break;default:at=jl}else y%2===0&&(at=b===90||b===270?Ja:jl);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case kf:for(b=b===90||b===270?Ja:jl,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)));break;case df:for(b=b===90||b===270?da:Ha,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)))}}else if(x=iA(a),this.ud===tf){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Ja;break;case 90:b.fromSpot=jl;break;case 180:b.fromSpot=da;break;default:b.fromSpot=Ha}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=da;break;case 90:b.toSpot=Ha;break;case 180:b.toSpot=Ja;break;default:b.toSpot=jl}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ja;break;case 90:b.toSpot=jl;break;case 180:b.toSpot=da;break;default:b.toSpot=Ha}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=da;break;case 90:b.fromSpot=Ha;break;case 180:b.fromSpot=Ja;break;default:b.fromSpot=jl}else b.fromSpot=a.childPortSpot}};function iA(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}hs.prototype.computeLayerSpacing=function(a){var y=iA(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},hs.prototype.computeNodeIndent=function(a){var y=iA(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},qe.Object.defineProperties(hs.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==nv&&a!==yy&&a!==vy&&a!==wy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Sy&&a!==Cy&&a!==ov||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==iv&&a!==xy&&a!==rv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Xp&&a!==Km&&a!==Gm&&!Wm||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):gn("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==ev&&a!==Vm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Xp&&a!==Km&&a!==Gm&&!Wm||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==ev&&a!==Vm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var tv=new Dn(hs,"PathDefault",-1),tf=new Dn(hs,"PathDestination",0),cp=new Dn(hs,"PathSource",1),Xp=new Dn(hs,"SortingForwards",10),Km=new Dn(hs,"SortingReverse",11),Gm=new Dn(hs,"SortingAscending",12),Wm=new Dn(hs,"SortingDescending",13),$p=new Dn(hs,"AlignmentCenterSubtrees",20),dp=new Dn(hs,"AlignmentCenterChildren",21),ef=new Dn(hs,"AlignmentStart",22),nf=new Dn(hs,"AlignmentEnd",23),If=new Dn(hs,"AlignmentBus",24),rf=new Dn(hs,"AlignmentBusBranching",25),kf=new Dn(hs,"AlignmentTopLeftBus",26),df=new Dn(hs,"AlignmentBottomRightBus",27),ev=new Dn(hs,"CompactionNone",30),Vm=new Dn(hs,"CompactionBlock",31),nv=new Dn(hs,"StyleLayered",40),vy=new Dn(hs,"StyleLastParents",41),yy=new Dn(hs,"StyleAlternating",42),wy=new Dn(hs,"StyleRootOnly",43),iv=new Dn(hs,"ArrangementVertical",50),xy=new Dn(hs,"ArrangementHorizontal",51),rv=new Dn(hs,"ArrangementFixedRoots",52),Sy=new Dn(hs,"LayerIndividual",60),Cy=new Dn(hs,"LayerSiblings",61),ov=new Dn(hs,"LayerUniform",62);hs.className="TreeLayout",hs.PathDefault=tv,hs.PathDestination=tf,hs.PathSource=cp,hs.SortingForwards=Xp,hs.SortingReverse=Km,hs.SortingAscending=Gm,hs.SortingDescending=Wm,hs.AlignmentCenterSubtrees=$p,hs.AlignmentCenterChildren=dp,hs.AlignmentStart=ef,hs.AlignmentEnd=nf,hs.AlignmentBus=If,hs.AlignmentBusBranching=rf,hs.AlignmentTopLeftBus=kf,hs.AlignmentBottomRightBus=df,hs.CompactionNone=ev,hs.CompactionBlock=Vm,hs.StyleLayered=nv,hs.StyleLastParents=vy,hs.StyleAlternating=yy,hs.StyleRootOnly=wy,hs.ArrangementVertical=iv,hs.ArrangementHorizontal=xy,hs.ArrangementFixedRoots=rv,hs.LayerIndividual=Sy,hs.LayerSiblings=Cy,hs.LayerUniform=ov;function Ap(a){ya.call(this,a)}Mn(Ap,ya),Ap.prototype.createVertex=function(){return new jd(this)},Ap.prototype.createEdge=function(){return new Yp(this)},Ap.className="TreeNetwork";function jd(a){xu.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new ke(0,0),this.Da=new Ki(0,0),this.la=new ke(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xp,this.hd=zv,this.Kb=0,this.Jb=dp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Vm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Es,this.wr=!0,this.Dp=Es}Mn(jd,xu),jd.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},qe.Object.defineProperties(jd.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),jd.className="TreeVertex";function Yp(a){Mc.call(this,a),this.$t=new ke(0,0)}Mn(Yp,Mc),Yp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case tf:x=this.fromVertex,b=this.toVertex;break;case cp:x=this.toVertex,b=this.fromVertex;break;default:gn("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=iA(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===Yc,ut=a.isOrthogonal,ct;if(a.uh(),ut||at){for(ct=2;4<a.pointsCount;)a.pv(2);var yt=a.i(1),It=a.i(2)}else{for(ct=1;3<a.pointsCount;)a.pv(1);yt=a.i(0),It=a.i(a.pointsCount-1)}var Kt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>Kt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&yt.y<Kt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ct,yt.x,z),ct++,a.m(ct,b.right+nt,z),ct++,a.m(ct,b.right+nt+(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+2*(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+(E.x-ot),z),ct++,a.m(ct,It.x,z)):(ut&&(a.m(ct,b.right+nt/2,yt.y),ct++),a.m(ct,b.right+nt/2,z),ct++,a.m(ct,b.right+nt+E.x-(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,It.y))):z===90?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>Kt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&yt.x<Kt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ct,z,yt.y),ct++,a.m(ct,z,b.bottom+nt),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+2*(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)),ct++,a.m(ct,z,It.y)):(ut&&(a.m(ct,yt.x,b.bottom+nt/2),ct++),a.m(ct,z,b.bottom+nt/2),ct++,a.m(ct,z,b.bottom+nt+E.y-(ut?ot/2:ot)),ct++,ut&&a.m(ct,It.x,a.i(ct-1).y))):z===180?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>Kt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&yt.y<Kt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ct,yt.x,z),ct++,a.m(ct,b.left-nt,z),ct++,a.m(ct,b.left-nt+(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+2*(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+(E.x+ot),z),ct++,a.m(ct,It.x,z)):(ut&&(a.m(ct,b.left-nt/2,yt.y),ct++),a.m(ct,b.left-nt/2,z),ct++,a.m(ct,b.left-nt+E.x+(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,It.y))):z===270?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>Kt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&yt.x<Kt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ct,z,yt.y),ct++,a.m(ct,z,b.top-nt),ct++,a.m(ct,z,b.top-nt+(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+2*(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+(E.y+ot)),ct++,a.m(ct,z,It.y)):(ut&&(a.m(ct,yt.x,b.top-nt/2),ct++),a.m(ct,z,b.top-nt/2),ct++,a.m(ct,z,b.top-nt+E.y+(ut?ot/2:ot)),ct++,ut&&a.m(ct,It.x,a.i(ct-1).y))):gn("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=iA(x),y!==iA(E)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<nt+1||y===90&&x.top-ot.bottom<nt+1||y===180&&ot.left-x.right<nt+1||y===270&&ot.top-x.bottom<nt+1||(a.vg(),x=a.curve===Yc,E=a.isOrthogonal,b=dg(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ot.bottom+nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ot.left-nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ot.top-nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},qe.Object.defineProperties(Yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Yp.className="TreeEdge",ie.prototype.initializeStandardTools=function(){this.gb("Action",new Pr,this.mouseDownTools),this.gb("Relinking",new ri,this.mouseDownTools),this.gb("LinkReshaping",new ui,this.mouseDownTools),this.gb("Rotating",new Yn,this.mouseDownTools),this.gb("Resizing",new ki,this.mouseDownTools),this.gb("Linking",new un,this.mouseMoveTools),this.gb("Dragging",new Pn,this.mouseMoveTools),this.gb("DragSelecting",new ar,this.mouseMoveTools),this.gb("Panning",new er,this.mouseMoveTools),this.gb("ContextMenu",new ho,this.mouseUpTools),this.gb("TextEditing",new rs,this.mouseUpTools),this.gb("ClickCreating",new sr,this.mouseUpTools),this.gb("ClickSelecting",new Bo,this.mouseUpTools)},Zc("Horizontal",new zn),Zc("Spot",new qi),Zc("Table",new Wr),Zc("Viewbox",new Ui),Zc("TableRow",new Nr),Zc("TableColumn",new Hi),Zc("Graduated",new Jo),Zc("Grid",new Qr),Ba.add("GraphLinksModel",Qu),Ba.add("TreeModel",gd);var sv=Ee.go,By={get licenseKey(){return _n.licenseKey},set licenseKey(a){_n.licenseKey=a},get version(){return _n.version},Group:To,EnumValue:Dn,List:Ci,Set:Bi,Map:gr,Point:ke,Size:Ki,Rect:ai,Margin:Gr,Spot:fr,Geometry:Vi,PathFigure:qa,PathSegment:ys,InputEvent:Cu,DiagramEvent:wd,ChangedEvent:Ea,Model:jr,GraphLinksModel:ws,TreeModel:Jh,Binding:ql,Transaction:Jl,UndoManager:Et,CommandHandler:De,Tool:Pt,DraggingTool:Pn,DraggingInfo:lh,DraggingOptions:st,LinkingBaseTool:en,LinkingTool:un,RelinkingTool:ri,LinkReshapingTool:ui,ResizingTool:ki,RotatingTool:Yn,ClickSelectingTool:Bo,ActionTool:Pr,ClickCreatingTool:sr,HTMLInfo:vr,ContextMenuTool:ho,DragSelectingTool:ar,PanningTool:er,TextEditingTool:rs,ToolManager:ie,Animation:Ua,AnimationManager:ca,AnimationTrigger:wh,Layer:ga,Diagram:_n,Palette:mt,Overview:Bt,Brush:js,GraphObject:fn,Panel:ci,RowColumnDefinition:Zl,Shape:ko,TextBlock:sa,Picture:cc,Part:Zr,Adornment:Fs,Node:hr,Link:Wi,Placeholder:Zh,Layout:Ka,LayoutNetwork:ya,LayoutVertex:xu,LayoutEdge:Mc,GridLayout:ih,PanelLayout:yn,CircularLayout:cl,CircularNetwork:Wp,CircularVertex:jm,CircularEdge:_0,ForceDirectedLayout:ph,ForceDirectedNetwork:up,ForceDirectedVertex:Um,ForceDirectedEdge:Rm,LayeredDigraphLayout:$s,LayeredDigraphNetwork:Zp,LayeredDigraphVertex:md,LayeredDigraphEdge:Qm,TreeLayout:hs,TreeNetwork:Ap,TreeVertex:jd,TreeEdge:Yp};typeof sv=="object"&&sv.version&&$i("WARNING: a `go` object on the root object is already defined. "+("Debug"in sv?"debug ":"")+"version: "+sv.version+", replaced with version: "+By.version),_n.prototype.go=By,Ee.go=By,typeof hi.exports=="object"&&(hi.exports=typeof Ft.g!="undefined"?Ft.g.go:self.go)}();var Lt=typeof Ft.g!="undefined"?Ft.g.go:self.go;const ce=typeof Ft.g!="undefined"?Ft.g.go:self.go,re=ce.Group,Ie=ce.EnumValue,ee=ce.List,Vt=ce.Set,Mt=ce.Map,jt=ce.Point,qt=ce.Size,bt=ce.Rect,se=ce.Margin,Gt=ce.Spot,Xt=ce.Geometry,Ct=ce.PathFigure,et=ce.PathSegment,tt=ce.InputEvent,lt=ce.DiagramEvent,rt=ce.ChangedEvent,ht=ce.Model,dt=ce.GraphLinksModel,xt=ce.TreeModel,Nt=ce.Binding,Ut=ce.Transaction,_t=ce.UndoManager,oe=ce.CommandHandler,he=ce.Tool,fe=ce.DraggingTool,Le=ce.DraggingInfo,te=ce.LinkingBaseTool,He=ce.LinkingTool,Wt=ce.RelinkingTool,Ke=ce.LinkReshapingTool,_e=ce.ResizingTool,Ne=ce.RotatingTool,Ge=ce.ClickSelectingTool,Ue=ce.ActionTool,ve=ce.ClickCreatingTool,ne=ce.HTMLInfo,Ce=ce.ContextMenuTool,bn=ce.DragSelectingTool,Ln=ce.PanningTool,Ve=ce.TextEditingTool,Nn=ce.ToolManager,Zn=ce.Animation,gi=ce.AnimationManager,Kn=ce.AnimationTrigger,Pi=ce.Layer,tn=ce.Diagram,Li=ce.Palette,ji=ce.Overview,Ot=ce.Brush,Tt=ce.GraphObject,vt=ce.Panel,gt=ce.RowColumnDefinition,ft=ce.Shape,At=ce.TextBlock,le=ce.TextBlockMetrics,xe=ce.Picture,ae=ce.Part,ye=ce.Adornment,Oe=ce.Node,Te=ce.Link,Me=ce.Placeholder,on=ce.Layout,Wn=ce.LayoutNetwork,sn=ce.LayoutVertex,ln=ce.LayoutEdge,Bn=ce.GridLayout,li=ce.PanelLayout,On=ce.CircularLayout,Di=ce.CircularNetwork,nr=ce.CircularVertex,Xi=ce.CircularEdge,Mr=ce.ForceDirectedLayout,br=ce.ForceDirectedNetwork,eo=ce.ForceDirectedVertex,Yr=ce.ForceDirectedEdge,qr=ce.LayeredDigraphLayout,Ir=ce.LayeredDigraphNetwork,Xr=ce.LayeredDigraphVertex,oo=ce.LayeredDigraphEdge,jo=ce.TreeLayout,ds=ce.TreeNetwork,no=ce.TreeVertex,Is=ce.TreeEdge,xo=ce.version},64270:function(hi){(function(Sn,Ft){hi.exports=Ft()})(this,function(){"use strict";var Sn=function(Dt,kt){return Sn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ht,Rt){Ht.__proto__=Rt}||function(Ht,Rt){for(var Be in Rt)Object.prototype.hasOwnProperty.call(Rt,Be)&&(Ht[Be]=Rt[Be])},Sn(Dt,kt)};function Ft(Dt,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Class extends value "+String(kt)+" is not a constructor or null");Sn(Dt,kt);function Ht(){this.constructor=Dt}Dt.prototype=kt===null?Object.create(kt):(Ht.prototype=kt.prototype,new Ht)}var Lt=function(){return Lt=Object.assign||function(kt){for(var Ht,Rt=1,Be=arguments.length;Rt<Be;Rt++){Ht=arguments[Rt];for(var $e in Ht)Object.prototype.hasOwnProperty.call(Ht,$e)&&(kt[$e]=Ht[$e])}return kt},Lt.apply(this,arguments)};function ce(Dt,kt,Ht,Rt){function Be($e){return $e instanceof Ht?$e:new Ht(function(Fn){Fn($e)})}return new(Ht||(Ht=Promise))(function($e,Fn){function ii(zi){try{Ri(Rt.next(zi))}catch(lr){Fn(lr)}}function jn(zi){try{Ri(Rt.throw(zi))}catch(lr){Fn(lr)}}function Ri(zi){zi.done?$e(zi.value):Be(zi.value).then(ii,jn)}Ri((Rt=Rt.apply(Dt,kt||[])).next())})}function re(Dt,kt){var Ht={label:0,sent:function(){if($e[0]&1)throw $e[1];return $e[1]},trys:[],ops:[]},Rt,Be,$e,Fn;return Fn={next:ii(0),throw:ii(1),return:ii(2)},typeof Symbol=="function"&&(Fn[Symbol.iterator]=function(){return this}),Fn;function ii(Ri){return function(zi){return jn([Ri,zi])}}function jn(Ri){if(Rt)throw new TypeError("Generator is already executing.");for(;Ht;)try{if(Rt=1,Be&&($e=Ri[0]&2?Be.return:Ri[0]?Be.throw||(($e=Be.return)&&$e.call(Be),0):Be.next)&&!($e=$e.call(Be,Ri[1])).done)return $e;switch(Be=0,$e&&(Ri=[Ri[0]&2,$e.value]),Ri[0]){case 0:case 1:$e=Ri;break;case 4:return Ht.label++,{value:Ri[1],done:!1};case 5:Ht.label++,Be=Ri[1],Ri=[0];continue;case 7:Ri=Ht.ops.pop(),Ht.trys.pop();continue;default:if($e=Ht.trys,!($e=$e.length>0&&$e[$e.length-1])&&(Ri[0]===6||Ri[0]===2)){Ht=0;continue}if(Ri[0]===3&&(!$e||Ri[1]>$e[0]&&Ri[1]<$e[3])){Ht.label=Ri[1];break}if(Ri[0]===6&&Ht.label<$e[1]){Ht.label=$e[1],$e=Ri;break}if($e&&Ht.label<$e[2]){Ht.label=$e[2],Ht.ops.push(Ri);break}$e[2]&&Ht.ops.pop(),Ht.trys.pop();continue}Ri=kt.call(Dt,Ht)}catch(zi){Ri=[6,zi],Be=0}finally{Rt=$e=0}if(Ri[0]&5)throw Ri[1];return{value:Ri[0]?Ri[1]:void 0,done:!0}}}function Ie(Dt,kt,Ht){if(Ht||arguments.length===2)for(var Rt=0,Be=kt.length,$e;Rt<Be;Rt++)($e||!(Rt in kt))&&($e||($e=Array.prototype.slice.call(kt,0,Rt)),$e[Rt]=kt[Rt]);return Dt.concat($e||kt)}for(var ee=function(){function Dt(kt,Ht,Rt,Be){this.left=kt,this.top=Ht,this.width=Rt,this.height=Be}return Dt.prototype.add=function(kt,Ht,Rt,Be){return new Dt(this.left+kt,this.top+Ht,this.width+Rt,this.height+Be)},Dt.fromClientRect=function(kt,Ht){return new Dt(Ht.left+kt.windowBounds.left,Ht.top+kt.windowBounds.top,Ht.width,Ht.height)},Dt.fromDOMRectList=function(kt,Ht){var Rt=Array.from(Ht).find(function(Be){return Be.width!==0});return Rt?new Dt(Rt.left+kt.windowBounds.left,Rt.top+kt.windowBounds.top,Rt.width,Rt.height):Dt.EMPTY},Dt.EMPTY=new Dt(0,0,0,0),Dt}(),Vt=function(Dt,kt){return ee.fromClientRect(Dt,kt.getBoundingClientRect())},Mt=function(Dt){var kt=Dt.body,Ht=Dt.documentElement;if(!kt||!Ht)throw new Error("Unable to get document size");var Rt=Math.max(Math.max(kt.scrollWidth,Ht.scrollWidth),Math.max(kt.offsetWidth,Ht.offsetWidth),Math.max(kt.clientWidth,Ht.clientWidth)),Be=Math.max(Math.max(kt.scrollHeight,Ht.scrollHeight),Math.max(kt.offsetHeight,Ht.offsetHeight),Math.max(kt.clientHeight,Ht.clientHeight));return new ee(0,0,Rt,Be)},jt=function(Dt){for(var kt=[],Ht=0,Rt=Dt.length;Ht<Rt;){var Be=Dt.charCodeAt(Ht++);if(Be>=55296&&Be<=56319&&Ht<Rt){var $e=Dt.charCodeAt(Ht++);($e&64512)===56320?kt.push(((Be&1023)<<10)+($e&1023)+65536):(kt.push(Be),Ht--)}else kt.push(Be)}return kt},qt=function(){for(var Dt=[],kt=0;kt<arguments.length;kt++)Dt[kt]=arguments[kt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var Ht=Dt.length;if(!Ht)return"";for(var Rt=[],Be=-1,$e="";++Be<Ht;){var Fn=Dt[Be];Fn<=65535?Rt.push(Fn):(Fn-=65536,Rt.push((Fn>>10)+55296,Fn%1024+56320)),(Be+1===Ht||Rt.length>16384)&&($e+=String.fromCharCode.apply(String,Rt),Rt.length=0)}return $e},bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Gt=0;Gt<bt.length;Gt++)se[bt.charCodeAt(Gt)]=Gt;for(var Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ct=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<Xt.length;et++)Ct[Xt.charCodeAt(et)]=et;for(var tt=function(Dt){var kt=Dt.length*.75,Ht=Dt.length,Rt,Be=0,$e,Fn,ii,jn;Dt[Dt.length-1]==="="&&(kt--,Dt[Dt.length-2]==="="&&kt--);var Ri=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(kt):new Array(kt),zi=Array.isArray(Ri)?Ri:new Uint8Array(Ri);for(Rt=0;Rt<Ht;Rt+=4)$e=Ct[Dt.charCodeAt(Rt)],Fn=Ct[Dt.charCodeAt(Rt+1)],ii=Ct[Dt.charCodeAt(Rt+2)],jn=Ct[Dt.charCodeAt(Rt+3)],zi[Be++]=$e<<2|Fn>>4,zi[Be++]=(Fn&15)<<4|ii>>2,zi[Be++]=(ii&3)<<6|jn&63;return Ri},lt=function(Dt){for(var kt=Dt.length,Ht=[],Rt=0;Rt<kt;Rt+=2)Ht.push(Dt[Rt+1]<<8|Dt[Rt]);return Ht},rt=function(Dt){for(var kt=Dt.length,Ht=[],Rt=0;Rt<kt;Rt+=4)Ht.push(Dt[Rt+3]<<24|Dt[Rt+2]<<16|Dt[Rt+1]<<8|Dt[Rt]);return Ht},ht=5,dt=11,xt=2,Nt=dt-ht,Ut=65536>>ht,_t=1<<ht,oe=_t-1,he=1024>>ht,fe=Ut+he,Le=fe,te=32,He=Le+te,Wt=65536>>dt,Ke=1<<Nt,_e=Ke-1,Ne=function(Dt,kt,Ht){return Dt.slice?Dt.slice(kt,Ht):new Uint16Array(Array.prototype.slice.call(Dt,kt,Ht))},Ge=function(Dt,kt,Ht){return Dt.slice?Dt.slice(kt,Ht):new Uint32Array(Array.prototype.slice.call(Dt,kt,Ht))},Ue=function(Dt,kt){var Ht=tt(Dt),Rt=Array.isArray(Ht)?rt(Ht):new Uint32Array(Ht),Be=Array.isArray(Ht)?lt(Ht):new Uint16Array(Ht),$e=24,Fn=Ne(Be,$e/2,Rt[4]/2),ii=Rt[5]===2?Ne(Be,($e+Rt[4])/2):Ge(Rt,Math.ceil(($e+Rt[4])/4));return new ve(Rt[0],Rt[1],Rt[2],Rt[3],Fn,ii)},ve=function(){function Dt(kt,Ht,Rt,Be,$e,Fn){this.initialValue=kt,this.errorValue=Ht,this.highStart=Rt,this.highValueIndex=Be,this.index=$e,this.data=Fn}return Dt.prototype.get=function(kt){var Ht;if(kt>=0){if(kt<55296||kt>56319&&kt<=65535)return Ht=this.index[kt>>ht],Ht=(Ht<<xt)+(kt&oe),this.data[Ht];if(kt<=65535)return Ht=this.index[Ut+(kt-55296>>ht)],Ht=(Ht<<xt)+(kt&oe),this.data[Ht];if(kt<this.highStart)return Ht=He-Wt+(kt>>dt),Ht=this.index[Ht],Ht+=kt>>ht&_e,Ht=this.index[Ht],Ht=(Ht<<xt)+(kt&oe),this.data[Ht];if(kt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ce=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),bn=0;bn<ne.length;bn++)Ce[ne.charCodeAt(bn)]=bn;var Ln="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ve=50,Nn=1,Zn=2,gi=3,Kn=4,Pi=5,tn=7,Li=8,ji=9,Ot=10,Tt=11,vt=12,gt=13,ft=14,At=15,le=16,xe=17,ae=18,ye=19,Oe=20,Te=21,Me=22,on=23,Wn=24,sn=25,ln=26,Bn=27,li=28,On=29,Di=30,nr=31,Xi=32,Mr=33,br=34,eo=35,Yr=36,qr=37,Ir=38,Xr=39,oo=40,jo=41,ds=42,no=43,Is=[9001,65288],xo="!",$t="\xD7",ni="\xF7",gs=Ue(Ln),ua=[Di,Yr],Gs=[Nn,Zn,gi,Pi],ha=[Ot,Li],Ws=[Bn,ln],Hr=Gs.concat(ha),Xn=[Ir,Xr,oo,br,eo],Hn=[At,gt],Mn=function(Dt,kt){kt===void 0&&(kt="strict");var Ht=[],Rt=[],Be=[];return Dt.forEach(function($e,Fn){var ii=gs.get($e);if(ii>Ve?(Be.push(!0),ii-=Ve):Be.push(!1),["normal","auto","loose"].indexOf(kt)!==-1&&[8208,8211,12316,12448].indexOf($e)!==-1)return Rt.push(Fn),Ht.push(le);if(ii===Kn||ii===Tt){if(Fn===0)return Rt.push(Fn),Ht.push(Di);var jn=Ht[Fn-1];return Hr.indexOf(jn)===-1?(Rt.push(Rt[Fn-1]),Ht.push(jn)):(Rt.push(Fn),Ht.push(Di))}if(Rt.push(Fn),ii===nr)return Ht.push(kt==="strict"?Te:qr);if(ii===ds||ii===On)return Ht.push(Di);if(ii===no)return $e>=131072&&$e<=196605||$e>=196608&&$e<=262141?Ht.push(qr):Ht.push(Di);Ht.push(ii)}),[Rt,Ht,Be]},qe=function(Dt,kt,Ht,Rt){var Be=Rt[Ht];if(Array.isArray(Dt)?Dt.indexOf(Be)!==-1:Dt===Be)for(var $e=Ht;$e<=Rt.length;){$e++;var Fn=Rt[$e];if(Fn===kt)return!0;if(Fn!==Ot)break}if(Be===Ot)for(var $e=Ht;$e>0;){$e--;var ii=Rt[$e];if(Array.isArray(Dt)?Dt.indexOf(ii)!==-1:Dt===ii)for(var jn=Ht;jn<=Rt.length;){jn++;var Fn=Rt[jn];if(Fn===kt)return!0;if(Fn!==Ot)break}if(ii!==Ot)break}return!1},pi=function(Dt,kt){for(var Ht=Dt;Ht>=0;){var Rt=kt[Ht];if(Rt===Ot)Ht--;else return Rt}return 0},xi=function(Dt,kt,Ht,Rt,Be){if(Ht[Rt]===0)return $t;var $e=Rt-1;if(Array.isArray(Be)&&Be[$e]===!0)return $t;var Fn=$e-1,ii=$e+1,jn=kt[$e],Ri=Fn>=0?kt[Fn]:0,zi=kt[ii];if(jn===Zn&&zi===gi)return $t;if(Gs.indexOf(jn)!==-1)return xo;if(Gs.indexOf(zi)!==-1||ha.indexOf(zi)!==-1)return $t;if(pi($e,kt)===Li)return ni;if(gs.get(Dt[$e])===Tt||(jn===Xi||jn===Mr)&&gs.get(Dt[ii])===Tt||jn===tn||zi===tn||jn===ji||[Ot,gt,At].indexOf(jn)===-1&&zi===ji||[xe,ae,ye,Wn,li].indexOf(zi)!==-1||pi($e,kt)===Me||qe(on,Me,$e,kt)||qe([xe,ae],Te,$e,kt)||qe(vt,vt,$e,kt))return $t;if(jn===Ot)return ni;if(jn===on||zi===on)return $t;if(zi===le||jn===le)return ni;if([gt,At,Te].indexOf(zi)!==-1||jn===ft||Ri===Yr&&Hn.indexOf(jn)!==-1||jn===li&&zi===Yr||zi===Oe||ua.indexOf(zi)!==-1&&jn===sn||ua.indexOf(jn)!==-1&&zi===sn||jn===Bn&&[qr,Xi,Mr].indexOf(zi)!==-1||[qr,Xi,Mr].indexOf(jn)!==-1&&zi===ln||ua.indexOf(jn)!==-1&&Ws.indexOf(zi)!==-1||Ws.indexOf(jn)!==-1&&ua.indexOf(zi)!==-1||[Bn,ln].indexOf(jn)!==-1&&(zi===sn||[Me,At].indexOf(zi)!==-1&&kt[ii+1]===sn)||[Me,At].indexOf(jn)!==-1&&zi===sn||jn===sn&&[sn,li,Wn].indexOf(zi)!==-1)return $t;if([sn,li,Wn,xe,ae].indexOf(zi)!==-1)for(var lr=$e;lr>=0;){var St=kt[lr];if(St===sn)return $t;if([li,Wn].indexOf(St)!==-1)lr--;else break}if([Bn,ln].indexOf(zi)!==-1)for(var lr=[xe,ae].indexOf(jn)!==-1?Fn:$e;lr>=0;){var St=kt[lr];if(St===sn)return $t;if([li,Wn].indexOf(St)!==-1)lr--;else break}if(Ir===jn&&[Ir,Xr,br,eo].indexOf(zi)!==-1||[Xr,br].indexOf(jn)!==-1&&[Xr,oo].indexOf(zi)!==-1||[oo,eo].indexOf(jn)!==-1&&zi===oo||Xn.indexOf(jn)!==-1&&[Oe,ln].indexOf(zi)!==-1||Xn.indexOf(zi)!==-1&&jn===Bn||ua.indexOf(jn)!==-1&&ua.indexOf(zi)!==-1||jn===Wn&&ua.indexOf(zi)!==-1||ua.concat(sn).indexOf(jn)!==-1&&zi===Me&&Is.indexOf(Dt[ii])===-1||ua.concat(sn).indexOf(zi)!==-1&&jn===ae)return $t;if(jn===jo&&zi===jo){for(var zt=Ht[$e],de=1;zt>0&&(zt--,kt[zt]===jo);)de++;if(de%2!==0)return $t}return jn===Xi&&zi===Mr?$t:ni},wn=function(Dt,kt){kt||(kt={lineBreak:"normal",wordBreak:"normal"});var Ht=Mn(Dt,kt.lineBreak),Rt=Ht[0],Be=Ht[1],$e=Ht[2];(kt.wordBreak==="break-all"||kt.wordBreak==="break-word")&&(Be=Be.map(function(ii){return[sn,Di,ds].indexOf(ii)!==-1?qr:ii}));var Fn=kt.wordBreak==="keep-all"?$e.map(function(ii,jn){return ii&&Dt[jn]>=19968&&Dt[jn]<=40959}):void 0;return[Rt,Be,Fn]},Ee=function(){function Dt(kt,Ht,Rt,Be){this.codePoints=kt,this.required=Ht===xo,this.start=Rt,this.end=Be}return Dt.prototype.slice=function(){return qt.apply(void 0,this.codePoints.slice(this.start,this.end))},Dt}(),Cn=function(Dt,kt){var Ht=jt(Dt),Rt=wn(Ht,kt),Be=Rt[0],$e=Rt[1],Fn=Rt[2],ii=Ht.length,jn=0,Ri=0;return{next:function(){if(Ri>=ii)return{done:!0,value:null};for(var zi=$t;Ri<ii&&(zi=xi(Ht,$e,Be,++Ri,Fn))===$t;);if(zi!==$t||Ri===ii){var lr=new Ee(Ht,zi,jn,Ri);return jn=Ri,{value:lr,done:!1}}return{done:!0,value:null}}}},Gn=1,Ei=2,ei=4,gn=8,di=10,Ni=47,$i=92,kn=9,yi=32,Br=34,dr=61,zr=35,cr=36,wr=37,or=39,xr=40,so=41,Yi=95,pr=45,yo=33,Ss=60,_o=62,Dn=64,Tr=91,ao=93,Kr=61,qo=123,Oo=63,wi=125,Po=124,Rr=126,kr=128,Ci=65533,Lo=42,Bi=43,Zo=44,ra=58,fs=59,ba=46,Vs=0,Mo=8,Ho=11,ps=14,ss=31,gr=127,ke=-1,ts=48,Sa=97,sl=101,Ll=102,ml=117,Ol=122,is=65,$o=69,wo=70,ks=85,co=90,to=function(Dt){return Dt>=ts&&Dt<=57},Uo=function(Dt){return Dt>=55296&&Dt<=57343},Ki=function(Dt){return to(Dt)||Dt>=is&&Dt<=wo||Dt>=Sa&&Dt<=Ll},Ts=function(Dt){return Dt>=Sa&&Dt<=Ol},zs=function(Dt){return Dt>=is&&Dt<=co},Aa=function(Dt){return Ts(Dt)||zs(Dt)},qs=function(Dt){return Dt>=kr},Qo=function(Dt){return Dt===di||Dt===kn||Dt===yi},Zs=function(Dt){return Aa(Dt)||qs(Dt)||Dt===Yi},vl=function(Dt){return Zs(Dt)||to(Dt)||Dt===pr},yl=function(Dt){return Dt>=Vs&&Dt<=Mo||Dt===Ho||Dt>=ps&&Dt<=ss||Dt===gr},Dl=function(Dt,kt){return Dt!==$i?!1:kt!==di},Bs=function(Dt,kt,Ht){return Dt===pr?Zs(kt)||Dl(kt,Ht):Zs(Dt)?!0:!!(Dt===$i&&Dl(Dt,kt))},ai=function(Dt,kt,Ht){return Dt===Bi||Dt===pr?to(kt)?!0:kt===ba&&to(Ht):to(Dt===ba?kt:Dt)},Ga=function(Dt){var kt=0,Ht=1;(Dt[kt]===Bi||Dt[kt]===pr)&&(Dt[kt]===pr&&(Ht=-1),kt++);for(var Rt=[];to(Dt[kt]);)Rt.push(Dt[kt++]);var Be=Rt.length?parseInt(qt.apply(void 0,Rt),10):0;Dt[kt]===ba&&kt++;for(var $e=[];to(Dt[kt]);)$e.push(Dt[kt++]);var Fn=$e.length,ii=Fn?parseInt(qt.apply(void 0,$e),10):0;(Dt[kt]===$o||Dt[kt]===sl)&&kt++;var jn=1;(Dt[kt]===Bi||Dt[kt]===pr)&&(Dt[kt]===pr&&(jn=-1),kt++);for(var Ri=[];to(Dt[kt]);)Ri.push(Dt[kt++]);var zi=Ri.length?parseInt(qt.apply(void 0,Ri),10):0;return Ht*(Be+ii*Math.pow(10,-Fn))*Math.pow(10,jn*zi)},mh={type:2},ju={type:3},su={type:4},Ao={type:13},Ks={type:8},Ls={type:21},bs={type:9},Hs={type:10},Ml={type:11},cs={type:12},Qs={type:14},xs={type:23},Gr={type:1},al={type:25},Ds={type:24},Su={type:26},Ku={type:27},$l={type:28},fr={type:29},Wa={type:31},nl={type:32},bl=function(){function Dt(){this._value=[]}return Dt.prototype.write=function(kt){this._value=this._value.concat(jt(kt))},Dt.prototype.read=function(){for(var kt=[],Ht=this.consumeToken();Ht!==nl;)kt.push(Ht),Ht=this.consumeToken();return kt},Dt.prototype.consumeToken=function(){var kt=this.consumeCodePoint();switch(kt){case Br:return this.consumeStringToken(Br);case zr:var Ht=this.peekCodePoint(0),Rt=this.peekCodePoint(1),Be=this.peekCodePoint(2);if(vl(Ht)||Dl(Rt,Be)){var $e=Bs(Ht,Rt,Be)?Ei:Gn,Fn=this.consumeName();return{type:5,value:Fn,flags:$e}}break;case cr:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Ao;break;case or:return this.consumeStringToken(or);case xr:return mh;case so:return ju;case Lo:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Qs;break;case Bi:if(ai(kt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(kt),this.consumeNumericToken();break;case Zo:return su;case pr:var ii=kt,jn=this.peekCodePoint(0),Ri=this.peekCodePoint(1);if(ai(ii,jn,Ri))return this.reconsumeCodePoint(kt),this.consumeNumericToken();if(Bs(ii,jn,Ri))return this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();if(jn===pr&&Ri===_o)return this.consumeCodePoint(),this.consumeCodePoint(),Ds;break;case ba:if(ai(kt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(kt),this.consumeNumericToken();break;case Ni:if(this.peekCodePoint(0)===Lo)for(this.consumeCodePoint();;){var zi=this.consumeCodePoint();if(zi===Lo&&(zi=this.consumeCodePoint(),zi===Ni))return this.consumeToken();if(zi===ke)return this.consumeToken()}break;case ra:return Su;case fs:return Ku;case Ss:if(this.peekCodePoint(0)===yo&&this.peekCodePoint(1)===pr&&this.peekCodePoint(2)===pr)return this.consumeCodePoint(),this.consumeCodePoint(),al;break;case Dn:var lr=this.peekCodePoint(0),St=this.peekCodePoint(1),zt=this.peekCodePoint(2);if(Bs(lr,St,zt)){var Fn=this.consumeName();return{type:7,value:Fn}}break;case Tr:return $l;case $i:if(Dl(kt,this.peekCodePoint(0)))return this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();break;case ao:return fr;case Kr:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Ks;break;case qo:return Ml;case wi:return cs;case ml:case ks:var de=this.peekCodePoint(0),be=this.peekCodePoint(1);return de===Bi&&(Ki(be)||be===Oo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();case Po:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),bs;if(this.peekCodePoint(0)===Po)return this.consumeCodePoint(),Ls;break;case Rr:if(this.peekCodePoint(0)===dr)return this.consumeCodePoint(),Hs;break;case ke:return nl}return Qo(kt)?(this.consumeWhiteSpace(),Wa):to(kt)?(this.reconsumeCodePoint(kt),this.consumeNumericToken()):Zs(kt)?(this.reconsumeCodePoint(kt),this.consumeIdentLikeToken()):{type:6,value:qt(kt)}},Dt.prototype.consumeCodePoint=function(){var kt=this._value.shift();return typeof kt=="undefined"?-1:kt},Dt.prototype.reconsumeCodePoint=function(kt){this._value.unshift(kt)},Dt.prototype.peekCodePoint=function(kt){return kt>=this._value.length?-1:this._value[kt]},Dt.prototype.consumeUnicodeRangeToken=function(){for(var kt=[],Ht=this.consumeCodePoint();Ki(Ht)&&kt.length<6;)kt.push(Ht),Ht=this.consumeCodePoint();for(var Rt=!1;Ht===Oo&&kt.length<6;)kt.push(Ht),Ht=this.consumeCodePoint(),Rt=!0;if(Rt){var Be=parseInt(qt.apply(void 0,kt.map(function(jn){return jn===Oo?ts:jn})),16),$e=parseInt(qt.apply(void 0,kt.map(function(jn){return jn===Oo?wo:jn})),16);return{type:30,start:Be,end:$e}}var Fn=parseInt(qt.apply(void 0,kt),16);if(this.peekCodePoint(0)===pr&&Ki(this.peekCodePoint(1))){this.consumeCodePoint(),Ht=this.consumeCodePoint();for(var ii=[];Ki(Ht)&&ii.length<6;)ii.push(Ht),Ht=this.consumeCodePoint();var $e=parseInt(qt.apply(void 0,ii),16);return{type:30,start:Fn,end:$e}}else return{type:30,start:Fn,end:Fn}},Dt.prototype.consumeIdentLikeToken=function(){var kt=this.consumeName();return kt.toLowerCase()==="url"&&this.peekCodePoint(0)===xr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===xr?(this.consumeCodePoint(),{type:19,value:kt}):{type:20,value:kt}},Dt.prototype.consumeUrlToken=function(){var kt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ke)return{type:22,value:""};var Ht=this.peekCodePoint(0);if(Ht===or||Ht===Br){var Rt=this.consumeStringToken(this.consumeCodePoint());return Rt.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ke||this.peekCodePoint(0)===so)?(this.consumeCodePoint(),{type:22,value:Rt.value}):(this.consumeBadUrlRemnants(),xs)}for(;;){var Be=this.consumeCodePoint();if(Be===ke||Be===so)return{type:22,value:qt.apply(void 0,kt)};if(Qo(Be))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ke||this.peekCodePoint(0)===so?(this.consumeCodePoint(),{type:22,value:qt.apply(void 0,kt)}):(this.consumeBadUrlRemnants(),xs);if(Be===Br||Be===or||Be===xr||yl(Be))return this.consumeBadUrlRemnants(),xs;if(Be===$i)if(Dl(Be,this.peekCodePoint(0)))kt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),xs;else kt.push(Be)}},Dt.prototype.consumeWhiteSpace=function(){for(;Qo(this.peekCodePoint(0));)this.consumeCodePoint()},Dt.prototype.consumeBadUrlRemnants=function(){for(;;){var kt=this.consumeCodePoint();if(kt===so||kt===ke)return;Dl(kt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Dt.prototype.consumeStringSlice=function(kt){for(var Ht=5e4,Rt="";kt>0;){var Be=Math.min(Ht,kt);Rt+=qt.apply(void 0,this._value.splice(0,Be)),kt-=Be}return this._value.shift(),Rt},Dt.prototype.consumeStringToken=function(kt){var Ht="",Rt=0;do{var Be=this._value[Rt];if(Be===ke||Be===void 0||Be===kt)return Ht+=this.consumeStringSlice(Rt),{type:0,value:Ht};if(Be===di)return this._value.splice(0,Rt),Gr;if(Be===$i){var $e=this._value[Rt+1];$e!==ke&&$e!==void 0&&($e===di?(Ht+=this.consumeStringSlice(Rt),Rt=-1,this._value.shift()):Dl(Be,$e)&&(Ht+=this.consumeStringSlice(Rt),Ht+=qt(this.consumeEscapedCodePoint()),Rt=-1))}Rt++}while(!0)},Dt.prototype.consumeNumber=function(){var kt=[],Ht=ei,Rt=this.peekCodePoint(0);for((Rt===Bi||Rt===pr)&&kt.push(this.consumeCodePoint());to(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());Rt=this.peekCodePoint(0);var Be=this.peekCodePoint(1);if(Rt===ba&&to(Be))for(kt.push(this.consumeCodePoint(),this.consumeCodePoint()),Ht=gn;to(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());Rt=this.peekCodePoint(0),Be=this.peekCodePoint(1);var $e=this.peekCodePoint(2);if((Rt===$o||Rt===sl)&&((Be===Bi||Be===pr)&&to($e)||to(Be)))for(kt.push(this.consumeCodePoint(),this.consumeCodePoint()),Ht=gn;to(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());return[Ga(kt),Ht]},Dt.prototype.consumeNumericToken=function(){var kt=this.consumeNumber(),Ht=kt[0],Rt=kt[1],Be=this.peekCodePoint(0),$e=this.peekCodePoint(1),Fn=this.peekCodePoint(2);if(Bs(Be,$e,Fn)){var ii=this.consumeName();return{type:15,number:Ht,flags:Rt,unit:ii}}return Be===wr?(this.consumeCodePoint(),{type:16,number:Ht,flags:Rt}):{type:17,number:Ht,flags:Rt}},Dt.prototype.consumeEscapedCodePoint=function(){var kt=this.consumeCodePoint();if(Ki(kt)){for(var Ht=qt(kt);Ki(this.peekCodePoint(0))&&Ht.length<6;)Ht+=qt(this.consumeCodePoint());Qo(this.peekCodePoint(0))&&this.consumeCodePoint();var Rt=parseInt(Ht,16);return Rt===0||Uo(Rt)||Rt>1114111?Ci:Rt}return kt===ke?Ci:kt},Dt.prototype.consumeName=function(){for(var kt="";;){var Ht=this.consumeCodePoint();if(vl(Ht))kt+=qt(Ht);else if(Dl(Ht,this.peekCodePoint(0)))kt+=qt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ht),kt}},Dt}(),au=function(){function Dt(kt){this._tokens=kt}return Dt.create=function(kt){var Ht=new bl;return Ht.write(kt),new Dt(Ht.read())},Dt.parseValue=function(kt){return Dt.create(kt).parseComponentValue()},Dt.parseValues=function(kt){return Dt.create(kt).parseComponentValues()},Dt.prototype.parseComponentValue=function(){for(var kt=this.consumeToken();kt.type===31;)kt=this.consumeToken();if(kt.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(kt);var Ht=this.consumeComponentValue();do kt=this.consumeToken();while(kt.type===31);if(kt.type===32)return Ht;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Dt.prototype.parseComponentValues=function(){for(var kt=[];;){var Ht=this.consumeComponentValue();if(Ht.type===32)return kt;kt.push(Ht),kt.push()}},Dt.prototype.consumeComponentValue=function(){var kt=this.consumeToken();switch(kt.type){case 11:case 28:case 2:return this.consumeSimpleBlock(kt.type);case 19:return this.consumeFunction(kt)}return kt},Dt.prototype.consumeSimpleBlock=function(kt){for(var Ht={type:kt,values:[]},Rt=this.consumeToken();;){if(Rt.type===32||fu(Rt,kt))return Ht;this.reconsumeToken(Rt),Ht.values.push(this.consumeComponentValue()),Rt=this.consumeToken()}},Dt.prototype.consumeFunction=function(kt){for(var Ht={name:kt.value,values:[],type:18};;){var Rt=this.consumeToken();if(Rt.type===32||Rt.type===3)return Ht;this.reconsumeToken(Rt),Ht.values.push(this.consumeComponentValue())}},Dt.prototype.consumeToken=function(){var kt=this._tokens.shift();return typeof kt=="undefined"?nl:kt},Dt.prototype.reconsumeToken=function(kt){this._tokens.unshift(kt)},Dt}(),Xa=function(Dt){return Dt.type===15},Eo=function(Dt){return Dt.type===17},Oa=function(Dt){return Dt.type===20},$a=function(Dt){return Dt.type===0},lu=function(Dt,kt){return Oa(Dt)&&Dt.value===kt},Yl=function(Dt){return Dt.type!==31},Pu=function(Dt){return Dt.type!==31&&Dt.type!==4},bu=function(Dt){var kt=[],Ht=[];return Dt.forEach(function(Rt){if(Rt.type===4){if(Ht.length===0)throw new Error("Error parsing function args, zero tokens for arg");kt.push(Ht),Ht=[];return}Rt.type!==31&&Ht.push(Rt)}),Ht.length&&kt.push(Ht),kt},fu=function(Dt,kt){return kt===11&&Dt.type===12||kt===28&&Dt.type===29?!0:kt===2&&Dt.type===3},nu=function(Dt){return Dt.type===17||Dt.type===15},zo=function(Dt){return Dt.type===16||nu(Dt)},Hd=function(Dt){return Dt.length>1?[Dt[0],Dt[1]]:[Dt[0]]},Eu={type:17,number:0,flags:ei},yd={type:16,number:50,flags:ei},kh={type:16,number:100,flags:ei},nc=function(Dt,kt,Ht){var Rt=Dt[0],Be=Dt[1];return[il(Rt,kt),il(typeof Be!="undefined"?Be:Rt,Ht)]},il=function(Dt,kt){if(Dt.type===16)return Dt.number/100*kt;if(Xa(Dt))switch(Dt.unit){case"rem":case"em":return 16*Dt.number;case"px":default:return Dt.number}return Dt.number},Ch="deg",Qd="grad",Oc="rad",Dc="turn",Es={name:"angle",parse:function(Dt,kt){if(kt.type===15)switch(kt.unit){case Ch:return Math.PI*kt.number/180;case Qd:return Math.PI/200*kt.number;case Oc:return kt.number;case Dc:return Math.PI*2*kt.number}throw new Error("Unsupported angle type")}},ma=function(Dt){return Dt.type===15&&(Dt.unit===Ch||Dt.unit===Qd||Dt.unit===Oc||Dt.unit===Dc)},Uu=function(Dt){var kt=Dt.filter(Oa).map(function(Ht){return Ht.value}).join(" ");switch(kt){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Eu,Eu];case"to top":case"bottom":return Ya(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Eu,kh];case"to right":case"left":return Ya(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[kh,kh];case"to bottom":case"top":return Ya(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[kh,Eu];case"to left":case"right":return Ya(270)}return 0},Ya=function(Dt){return Math.PI*Dt/180},rl={name:"color",parse:function(Dt,kt){if(kt.type===18){var Ht=zd[kt.name];if(typeof Ht=="undefined")throw new Error('Attempting to parse an unsupported color function "'+kt.name+'"');return Ht(Dt,kt.values)}if(kt.type===5){if(kt.value.length===3){var Rt=kt.value.substring(0,1),Be=kt.value.substring(1,2),$e=kt.value.substring(2,3);return Ja(parseInt(Rt+Rt,16),parseInt(Be+Be,16),parseInt($e+$e,16),1)}if(kt.value.length===4){var Rt=kt.value.substring(0,1),Be=kt.value.substring(1,2),$e=kt.value.substring(2,3),Fn=kt.value.substring(3,4);return Ja(parseInt(Rt+Rt,16),parseInt(Be+Be,16),parseInt($e+$e,16),parseInt(Fn+Fn,16)/255)}if(kt.value.length===6){var Rt=kt.value.substring(0,2),Be=kt.value.substring(2,4),$e=kt.value.substring(4,6);return Ja(parseInt(Rt,16),parseInt(Be,16),parseInt($e,16),1)}if(kt.value.length===8){var Rt=kt.value.substring(0,2),Be=kt.value.substring(2,4),$e=kt.value.substring(4,6),Fn=kt.value.substring(6,8);return Ja(parseInt(Rt,16),parseInt(Be,16),parseInt($e,16),parseInt(Fn,16)/255)}}if(kt.type===20){var ii=Bh[kt.value.toUpperCase()];if(typeof ii!="undefined")return ii}return Bh.TRANSPARENT}},Ha=function(Dt){return(255&Dt)===0},da=function(Dt){var kt=255&Dt,Ht=255&Dt>>8,Rt=255&Dt>>16,Be=255&Dt>>24;return kt<255?"rgba("+Be+","+Rt+","+Ht+","+kt/255+")":"rgb("+Be+","+Rt+","+Ht+")"},Ja=function(Dt,kt,Ht,Rt){return(Dt<<24|kt<<16|Ht<<8|Math.round(Rt*255)<<0)>>>0},jl=function(Dt,kt){if(Dt.type===17)return Dt.number;if(Dt.type===16){var Ht=kt===3?1:255;return kt===3?Dt.number/100*Ht:Math.round(Dt.number/100*Ht)}return 0},fc=function(Dt,kt){var Ht=kt.filter(Pu);if(Ht.length===3){var Rt=Ht.map(jl),Be=Rt[0],$e=Rt[1],Fn=Rt[2];return Ja(Be,$e,Fn,1)}if(Ht.length===4){var ii=Ht.map(jl),Be=ii[0],$e=ii[1],Fn=ii[2],jn=ii[3];return Ja(Be,$e,Fn,jn)}return 0};function dh(Dt,kt,Ht){return Ht<0&&(Ht+=1),Ht>=1&&(Ht-=1),Ht<1/6?(kt-Dt)*Ht*6+Dt:Ht<1/2?kt:Ht<2/3?(kt-Dt)*6*(2/3-Ht)+Dt:Dt}var ll=function(Dt,kt){var Ht=kt.filter(Pu),Rt=Ht[0],Be=Ht[1],$e=Ht[2],Fn=Ht[3],ii=(Rt.type===17?Ya(Rt.number):Es.parse(Dt,Rt))/(Math.PI*2),jn=zo(Be)?Be.number/100:0,Ri=zo($e)?$e.number/100:0,zi=typeof Fn!="undefined"&&zo(Fn)?il(Fn,1):1;if(jn===0)return Ja(Ri*255,Ri*255,Ri*255,1);var lr=Ri<=.5?Ri*(jn+1):Ri+jn-Ri*jn,St=Ri*2-lr,zt=dh(St,lr,ii+1/3),de=dh(St,lr,ii),be=dh(St,lr,ii-1/3);return Ja(zt*255,de*255,be*255,zi)},zd={hsl:ll,hsla:ll,rgb:fc,rgba:fc},td=function(Dt,kt){return rl.parse(Dt,au.create(kt).parseComponentValue())},Bh={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Ro={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,kt){return kt.map(function(Ht){if(Oa(Ht))switch(Ht.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},sA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},En=function(Dt,kt){var Ht=rl.parse(Dt,kt[0]),Rt=kt[1];return Rt&&zo(Rt)?{color:Ht,stop:Rt}:{color:Ht,stop:null}},Vi=function(Dt,kt){var Ht=Dt[0],Rt=Dt[Dt.length-1];Ht.stop===null&&(Ht.stop=Eu),Rt.stop===null&&(Rt.stop=kh);for(var Be=[],$e=0,Fn=0;Fn<Dt.length;Fn++){var ii=Dt[Fn].stop;if(ii!==null){var jn=il(ii,kt);jn>$e?Be.push(jn):Be.push($e),$e=jn}else Be.push(null)}for(var Ri=null,Fn=0;Fn<Be.length;Fn++){var zi=Be[Fn];if(zi===null)Ri===null&&(Ri=Fn);else if(Ri!==null){for(var lr=Fn-Ri,St=Be[Ri-1],zt=(zi-St)/(lr+1),de=1;de<=lr;de++)Be[Ri+de-1]=zt*de;Ri=null}}return Dt.map(function(be,rn){var hn=be.color;return{color:hn,stop:Math.max(Math.min(1,Be[rn]/kt),0)}})},aA=function(Dt,kt,Ht){var Rt=kt/2,Be=Ht/2,$e=il(Dt[0],kt)-Rt,Fn=Be-il(Dt[1],Ht);return(Math.atan2(Fn,$e)+Math.PI*2)%(Math.PI*2)},ic=function(Dt,kt,Ht){var Rt=typeof Dt=="number"?Dt:aA(Dt,kt,Ht),Be=Math.abs(kt*Math.sin(Rt))+Math.abs(Ht*Math.cos(Rt)),$e=kt/2,Fn=Ht/2,ii=Be/2,jn=Math.sin(Rt-Math.PI/2)*ii,Ri=Math.cos(Rt-Math.PI/2)*ii;return[Be,$e-Ri,$e+Ri,Fn-jn,Fn+jn]},Gu=function(Dt,kt){return Math.sqrt(Dt*Dt+kt*kt)},Wu=function(Dt,kt,Ht,Rt,Be){var $e=[[0,0],[0,kt],[Dt,0],[Dt,kt]];return $e.reduce(function(Fn,ii){var jn=ii[0],Ri=ii[1],zi=Gu(Ht-jn,Rt-Ri);return(Be?zi<Fn.optimumDistance:zi>Fn.optimumDistance)?{optimumCorner:ii,optimumDistance:zi}:Fn},{optimumDistance:Be?1/0:-1/0,optimumCorner:null}).optimumCorner},Ph=function(Dt,kt,Ht,Rt,Be){var $e=0,Fn=0;switch(Dt.size){case 0:Dt.shape===0?$e=Fn=Math.min(Math.abs(kt),Math.abs(kt-Rt),Math.abs(Ht),Math.abs(Ht-Be)):Dt.shape===1&&($e=Math.min(Math.abs(kt),Math.abs(kt-Rt)),Fn=Math.min(Math.abs(Ht),Math.abs(Ht-Be)));break;case 2:if(Dt.shape===0)$e=Fn=Math.min(Gu(kt,Ht),Gu(kt,Ht-Be),Gu(kt-Rt,Ht),Gu(kt-Rt,Ht-Be));else if(Dt.shape===1){var ii=Math.min(Math.abs(Ht),Math.abs(Ht-Be))/Math.min(Math.abs(kt),Math.abs(kt-Rt)),jn=Wu(Rt,Be,kt,Ht,!0),Ri=jn[0],zi=jn[1];$e=Gu(Ri-kt,(zi-Ht)/ii),Fn=ii*$e}break;case 1:Dt.shape===0?$e=Fn=Math.max(Math.abs(kt),Math.abs(kt-Rt),Math.abs(Ht),Math.abs(Ht-Be)):Dt.shape===1&&($e=Math.max(Math.abs(kt),Math.abs(kt-Rt)),Fn=Math.max(Math.abs(Ht),Math.abs(Ht-Be)));break;case 3:if(Dt.shape===0)$e=Fn=Math.max(Gu(kt,Ht),Gu(kt,Ht-Be),Gu(kt-Rt,Ht),Gu(kt-Rt,Ht-Be));else if(Dt.shape===1){var ii=Math.max(Math.abs(Ht),Math.abs(Ht-Be))/Math.max(Math.abs(kt),Math.abs(kt-Rt)),lr=Wu(Rt,Be,kt,Ht,!1),Ri=lr[0],zi=lr[1];$e=Gu(Ri-kt,(zi-Ht)/ii),Fn=ii*$e}break}return Array.isArray(Dt.size)&&($e=il(Dt.size[0],Rt),Fn=Dt.size.length===2?il(Dt.size[1],Be):$e),[$e,Fn]},zA=function(Dt,kt){var Ht=Ya(180),Rt=[];return bu(kt).forEach(function(Be,$e){if($e===0){var Fn=Be[0];if(Fn.type===20&&Fn.value==="to"){Ht=Uu(Be);return}else if(ma(Fn)){Ht=Es.parse(Dt,Fn);return}}var ii=En(Dt,Be);Rt.push(ii)}),{angle:Ht,stops:Rt,type:1}},ed=function(Dt,kt){var Ht=Ya(180),Rt=[];return bu(kt).forEach(function(Be,$e){if($e===0){var Fn=Be[0];if(Fn.type===20&&["top","left","right","bottom"].indexOf(Fn.value)!==-1){Ht=Uu(Be);return}else if(ma(Fn)){Ht=(Es.parse(Dt,Fn)+Ya(270))%Ya(360);return}}var ii=En(Dt,Be);Rt.push(ii)}),{angle:Ht,stops:Rt,type:1}},qa=function(Dt,kt){var Ht=Ya(180),Rt=[],Be=1,$e=0,Fn=3,ii=[];return bu(kt).forEach(function(jn,Ri){var zi=jn[0];if(Ri===0){if(Oa(zi)&&zi.value==="linear"){Be=1;return}else if(Oa(zi)&&zi.value==="radial"){Be=2;return}}if(zi.type===18){if(zi.name==="from"){var lr=rl.parse(Dt,zi.values[0]);Rt.push({stop:Eu,color:lr})}else if(zi.name==="to"){var lr=rl.parse(Dt,zi.values[0]);Rt.push({stop:kh,color:lr})}else if(zi.name==="color-stop"){var St=zi.values.filter(Pu);if(St.length===2){var lr=rl.parse(Dt,St[1]),zt=St[0];Eo(zt)&&Rt.push({stop:{type:16,number:zt.number*100,flags:zt.flags},color:lr})}}}}),Be===1?{angle:(Ht+Ya(180))%Ya(360),stops:Rt,type:Be}:{size:Fn,shape:$e,stops:Rt,position:ii,type:Be}},ys="closest-side",oh="farthest-side",Xu="closest-corner",El="farthest-corner",oa="circle",gu="ellipse",bh="cover",wl="contain",zh=function(Dt,kt){var Ht=0,Rt=3,Be=[],$e=[];return bu(kt).forEach(function(Fn,ii){var jn=!0;if(ii===0){var Ri=!1;jn=Fn.reduce(function(lr,St){if(Ri)if(Oa(St))switch(St.value){case"center":return $e.push(yd),lr;case"top":case"left":return $e.push(Eu),lr;case"right":case"bottom":return $e.push(kh),lr}else(zo(St)||nu(St))&&$e.push(St);else if(Oa(St))switch(St.value){case oa:return Ht=0,!1;case gu:return Ht=1,!1;case"at":return Ri=!0,!1;case ys:return Rt=0,!1;case bh:case oh:return Rt=1,!1;case wl:case Xu:return Rt=2,!1;case El:return Rt=3,!1}else if(nu(St)||zo(St))return Array.isArray(Rt)||(Rt=[]),Rt.push(St),!1;return lr},jn)}if(jn){var zi=En(Dt,Fn);Be.push(zi)}}),{size:Rt,shape:Ht,stops:Be,position:$e,type:2}},Cu=function(Dt,kt){var Ht=0,Rt=3,Be=[],$e=[];return bu(kt).forEach(function(Fn,ii){var jn=!0;if(ii===0?jn=Fn.reduce(function(zi,lr){if(Oa(lr))switch(lr.value){case"center":return $e.push(yd),!1;case"top":case"left":return $e.push(Eu),!1;case"right":case"bottom":return $e.push(kh),!1}else if(zo(lr)||nu(lr))return $e.push(lr),!1;return zi},jn):ii===1&&(jn=Fn.reduce(function(zi,lr){if(Oa(lr))switch(lr.value){case oa:return Ht=0,!1;case gu:return Ht=1,!1;case wl:case ys:return Rt=0,!1;case oh:return Rt=1,!1;case Xu:return Rt=2,!1;case bh:case El:return Rt=3,!1}else if(nu(lr)||zo(lr))return Array.isArray(Rt)||(Rt=[]),Rt.push(lr),!1;return zi},jn)),jn){var Ri=En(Dt,Fn);Be.push(Ri)}}),{size:Rt,shape:Ht,stops:Be,position:$e,type:2}},wd=function(Dt){return Dt.type===1},Ea=function(Dt){return Dt.type===2},sh={name:"image",parse:function(Dt,kt){if(kt.type===22){var Ht={url:kt.value,type:0};return Dt.cache.addImage(kt.value),Ht}if(kt.type===18){var Rt=dl[kt.name];if(typeof Rt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+kt.name+'"');return Rt(Dt,kt.values)}throw new Error("Unsupported image type "+kt.type)}};function Fa(Dt){return!(Dt.type===20&&Dt.value==="none")&&(Dt.type!==18||!!dl[Dt.name])}var dl={"linear-gradient":zA,"-moz-linear-gradient":ed,"-ms-linear-gradient":ed,"-o-linear-gradient":ed,"-webkit-linear-gradient":ed,"radial-gradient":zh,"-moz-radial-gradient":Cu,"-ms-radial-gradient":Cu,"-o-radial-gradient":Cu,"-webkit-radial-gradient":Cu,"-webkit-gradient":qa},Ql={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){if(kt.length===0)return[];var Ht=kt[0];return Ht.type===20&&Ht.value==="none"?[]:kt.filter(function(Rt){return Pu(Rt)&&Fa(Rt)}).map(function(Rt){return sh.parse(Dt,Rt)})}},Jl={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,kt){return kt.map(function(Ht){if(Oa(Ht))switch(Ht.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Et={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Dt,kt){return bu(kt).map(function(Ht){return Ht.filter(zo)}).map(Hd)}},wt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Dt,kt){return bu(kt).map(function(Ht){return Ht.filter(Oa).map(function(Rt){return Rt.value}).join(" ")}).map(Pt)}},Pt=function(Dt){switch(Dt){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Qt;(function(Dt){Dt.AUTO="auto",Dt.CONTAIN="contain",Dt.COVER="cover"})(Qt||(Qt={}));var ie={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Dt,kt){return bu(kt).map(function(Ht){return Ht.filter(Yt)})}},Yt=function(Dt){return Oa(Dt)||zo(Dt)},ge=function(Dt){return{name:"border-"+Dt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},we=ge("top"),Pe=ge("right"),Xe=ge("bottom"),dn=ge("left"),An=function(Dt){return{name:"border-radius-"+Dt,initialValue:"0 0",prefix:!1,type:1,parse:function(kt,Ht){return Hd(Ht.filter(zo))}}},Pn=An("top-left"),ze=An("top-right"),mi=An("bottom-right"),ti=An("bottom-left"),vi=function(Dt){return{name:"border-"+Dt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(kt,Ht){switch(Ht){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Rn=vi("top"),Ai=vi("right"),Qi=vi("bottom"),rr=vi("left"),Fr=function(Dt){return{name:"border-"+Dt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(kt,Ht){return Xa(Ht)?Ht.number:0}}},lo=Fr("top"),mr=Fr("right"),Oi=Fr("bottom"),Cr=Fr("left"),Or={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Jn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"rtl":return 1;case"ltr":default:return 0}}},oi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(Oa).reduce(function(Ht,Rt){return Ht|pe(Rt.value)},0)}},pe=function(Dt){switch(Dt){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},me={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ze={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Dt,kt){return kt.type===20&&kt.value==="normal"?0:kt.type===17||kt.type===15?kt.number:0}},Ye;(function(Dt){Dt.NORMAL="normal",Dt.STRICT="strict"})(Ye||(Ye={}));var mn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"strict":return Ye.STRICT;case"normal":default:return Ye.NORMAL}}},en={name:"line-height",initialValue:"normal",prefix:!1,type:4},Tn=function(Dt,kt){return Oa(Dt)&&Dt.value==="normal"?1.2*kt:Dt.type===17?kt*Dt.number:zo(Dt)?il(Dt,kt):kt},Un={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Dt,kt){return kt.type===20&&kt.value==="none"?null:sh.parse(Dt,kt)}},qn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"inside":return 0;case"outside":default:return 1}}},Qe={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},un=function(Dt){return{name:"margin-"+Dt,initialValue:"0",prefix:!1,type:4}},pn=un("top"),Qn=un("right"),$n=un("bottom"),ri=un("left"),Fi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(Oa).map(function(Ht){switch(Ht.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ui={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ji=function(Dt){return{name:"padding-"+Dt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Zi=Ji("top"),Ar=Ji("right"),Er=Ji("bottom"),io=Ji("left"),ki={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Yn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Bo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){return kt.length===1&&lu(kt[0],"none")?[]:bu(kt).map(function(Ht){for(var Rt={color:Bh.TRANSPARENT,offsetX:Eu,offsetY:Eu,blur:Eu},Be=0,$e=0;$e<Ht.length;$e++){var Fn=Ht[$e];nu(Fn)?(Be===0?Rt.offsetX=Fn:Be===1?Rt.offsetY=Fn:Rt.blur=Fn,Be++):Rt.color=rl.parse(Dt,Fn)}return Rt})}},Pr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},sr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Dt,kt){if(kt.type===20&&kt.value==="none")return null;if(kt.type===18){var Ht=vr[kt.name];if(typeof Ht=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+kt.name+'"');return Ht(kt.values)}return null}},ar=function(Dt){var kt=Dt.filter(function(Ht){return Ht.type===17}).map(function(Ht){return Ht.number});return kt.length===6?kt:null},er=function(Dt){var kt=Dt.filter(function(jn){return jn.type===17}).map(function(jn){return jn.number}),Ht=kt[0],Rt=kt[1];kt[2],kt[3];var Be=kt[4],$e=kt[5];kt[6],kt[7],kt[8],kt[9],kt[10],kt[11];var Fn=kt[12],ii=kt[13];return kt[14],kt[15],kt.length===16?[Ht,Rt,Be,$e,Fn,ii]:null},vr={matrix:ar,matrix3d:er},Vr={type:16,number:50,flags:ei},ho=[Vr,Vr],po={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Dt,kt){var Ht=kt.filter(zo);return Ht.length!==2?ho:[Ht[0],Ht[1]]}},_r={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Do;(function(Dt){Dt.NORMAL="normal",Dt.BREAK_ALL="break-all",Dt.KEEP_ALL="keep-all"})(Do||(Do={}));for(var us={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"break-all":return Do.BREAK_ALL;case"keep-all":return Do.KEEP_ALL;case"normal":default:return Do.NORMAL}}},Yo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Dt,kt){if(kt.type===20)return{auto:!0,order:0};if(Eo(kt))return{auto:!1,order:kt.number};throw new Error("Invalid z-index number parsed")}},ns={name:"time",parse:function(Dt,kt){if(kt.type===15)switch(kt.unit.toLowerCase()){case"s":return 1e3*kt.number;case"ms":return kt.number}throw new Error("Unsupported time type")}},So={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Dt,kt){return Eo(kt)?kt.number:1}},va={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Vo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(Oa).map(function(Ht){switch(Ht.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Ht){return Ht!==0})}},rs={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Dt,kt){var Ht=[],Rt=[];return kt.forEach(function(Be){switch(Be.type){case 20:case 0:Ht.push(Be.value);break;case 17:Ht.push(Be.number.toString());break;case 4:Rt.push(Ht.join(" ")),Ht.length=0;break}}),Ht.length&&Rt.push(Ht.join(" ")),Rt.map(function(Be){return Be.indexOf(" ")===-1?Be:"'"+Be+"'"})}},Cs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ta={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Dt,kt){if(Eo(kt))return kt.number;if(Oa(kt))switch(kt.value){case"bold":return 700;case"normal":default:return 400}return 400}},Da={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){return kt.filter(Oa).map(function(Ht){return Ht.value})}},Ys={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ko=function(Dt,kt){return(Dt&kt)!==0},Go={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){if(kt.length===0)return[];var Ht=kt[0];return Ht.type===20&&Ht.value==="none"?[]:kt}},As={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Dt,kt){if(kt.length===0)return null;var Ht=kt[0];if(Ht.type===20&&Ht.value==="none")return null;for(var Rt=[],Be=kt.filter(Yl),$e=0;$e<Be.length;$e++){var Fn=Be[$e],ii=Be[$e+1];if(Fn.type===20){var jn=ii&&Eo(ii)?ii.number:1;Rt.push({counter:Fn.value,increment:jn})}}return Rt}},es={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Dt,kt){if(kt.length===0)return[];for(var Ht=[],Rt=kt.filter(Yl),Be=0;Be<Rt.length;Be++){var $e=Rt[Be],Fn=Rt[Be+1];if(Oa($e)&&$e.value!=="none"){var ii=Fn&&Eo(Fn)?Fn.number:0;Ht.push({counter:$e.value,reset:ii})}}return Ht}},Os={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(Xa).map(function(Ht){return ns.parse(Dt,Ht)})}},ro={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Dt,kt){if(kt.length===0)return null;var Ht=kt[0];if(Ht.type===20&&Ht.value==="none")return null;var Rt=[],Be=kt.filter($a);if(Be.length%2!==0)return null;for(var $e=0;$e<Be.length;$e+=2){var Fn=Be[$e].value,ii=Be[$e+1].value;Rt.push({open:Fn,close:ii})}return Rt}},Wo=function(Dt,kt,Ht){if(!Dt)return"";var Rt=Dt[Math.min(kt,Dt.length-1)];return Rt?Ht?Rt.open:Rt.close:""},aa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){return kt.length===1&&lu(kt[0],"none")?[]:bu(kt).map(function(Ht){for(var Rt={color:255,offsetX:Eu,offsetY:Eu,blur:Eu,spread:Eu,inset:!1},Be=0,$e=0;$e<Ht.length;$e++){var Fn=Ht[$e];lu(Fn,"inset")?Rt.inset=!0:nu(Fn)?(Be===0?Rt.offsetX=Fn:Be===1?Rt.offsetY=Fn:Be===2?Rt.blur=Fn:Rt.spread=Fn,Be++):Rt.color=rl.parse(Dt,Fn)}return Rt})}},Us={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Dt,kt){var Ht=[0,1,2],Rt=[];return kt.filter(Oa).forEach(function(Be){switch(Be.value){case"stroke":Rt.push(1);break;case"fill":Rt.push(0);break;case"markers":Rt.push(2);break}}),Ht.forEach(function(Be){Rt.indexOf(Be)===-1&&Rt.push(Be)}),Rt}},zl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Fl={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Dt,kt){return Xa(kt)?kt.number:0}},Ps=function(){function Dt(kt,Ht){var Rt,Be;this.animationDuration=fo(kt,Os,Ht.animationDuration),this.backgroundClip=fo(kt,Ro,Ht.backgroundClip),this.backgroundColor=fo(kt,sA,Ht.backgroundColor),this.backgroundImage=fo(kt,Ql,Ht.backgroundImage),this.backgroundOrigin=fo(kt,Jl,Ht.backgroundOrigin),this.backgroundPosition=fo(kt,Et,Ht.backgroundPosition),this.backgroundRepeat=fo(kt,wt,Ht.backgroundRepeat),this.backgroundSize=fo(kt,ie,Ht.backgroundSize),this.borderTopColor=fo(kt,we,Ht.borderTopColor),this.borderRightColor=fo(kt,Pe,Ht.borderRightColor),this.borderBottomColor=fo(kt,Xe,Ht.borderBottomColor),this.borderLeftColor=fo(kt,dn,Ht.borderLeftColor),this.borderTopLeftRadius=fo(kt,Pn,Ht.borderTopLeftRadius),this.borderTopRightRadius=fo(kt,ze,Ht.borderTopRightRadius),this.borderBottomRightRadius=fo(kt,mi,Ht.borderBottomRightRadius),this.borderBottomLeftRadius=fo(kt,ti,Ht.borderBottomLeftRadius),this.borderTopStyle=fo(kt,Rn,Ht.borderTopStyle),this.borderRightStyle=fo(kt,Ai,Ht.borderRightStyle),this.borderBottomStyle=fo(kt,Qi,Ht.borderBottomStyle),this.borderLeftStyle=fo(kt,rr,Ht.borderLeftStyle),this.borderTopWidth=fo(kt,lo,Ht.borderTopWidth),this.borderRightWidth=fo(kt,mr,Ht.borderRightWidth),this.borderBottomWidth=fo(kt,Oi,Ht.borderBottomWidth),this.borderLeftWidth=fo(kt,Cr,Ht.borderLeftWidth),this.boxShadow=fo(kt,aa,Ht.boxShadow),this.color=fo(kt,Or,Ht.color),this.direction=fo(kt,Jn,Ht.direction),this.display=fo(kt,oi,Ht.display),this.float=fo(kt,me,Ht.cssFloat),this.fontFamily=fo(kt,rs,Ht.fontFamily),this.fontSize=fo(kt,Cs,Ht.fontSize),this.fontStyle=fo(kt,Ys,Ht.fontStyle),this.fontVariant=fo(kt,Da,Ht.fontVariant),this.fontWeight=fo(kt,ta,Ht.fontWeight),this.letterSpacing=fo(kt,Ze,Ht.letterSpacing),this.lineBreak=fo(kt,mn,Ht.lineBreak),this.lineHeight=fo(kt,en,Ht.lineHeight),this.listStyleImage=fo(kt,Un,Ht.listStyleImage),this.listStylePosition=fo(kt,qn,Ht.listStylePosition),this.listStyleType=fo(kt,Qe,Ht.listStyleType),this.marginTop=fo(kt,pn,Ht.marginTop),this.marginRight=fo(kt,Qn,Ht.marginRight),this.marginBottom=fo(kt,$n,Ht.marginBottom),this.marginLeft=fo(kt,ri,Ht.marginLeft),this.opacity=fo(kt,So,Ht.opacity);var $e=fo(kt,Fi,Ht.overflow);this.overflowX=$e[0],this.overflowY=$e[$e.length>1?1:0],this.overflowWrap=fo(kt,ui,Ht.overflowWrap),this.paddingTop=fo(kt,Zi,Ht.paddingTop),this.paddingRight=fo(kt,Ar,Ht.paddingRight),this.paddingBottom=fo(kt,Er,Ht.paddingBottom),this.paddingLeft=fo(kt,io,Ht.paddingLeft),this.paintOrder=fo(kt,Us,Ht.paintOrder),this.position=fo(kt,Yn,Ht.position),this.textAlign=fo(kt,ki,Ht.textAlign),this.textDecorationColor=fo(kt,va,(Rt=Ht.textDecorationColor)!==null&&Rt!==void 0?Rt:Ht.color),this.textDecorationLine=fo(kt,Vo,(Be=Ht.textDecorationLine)!==null&&Be!==void 0?Be:Ht.textDecoration),this.textShadow=fo(kt,Bo,Ht.textShadow),this.textTransform=fo(kt,Pr,Ht.textTransform),this.transform=fo(kt,sr,Ht.transform),this.transformOrigin=fo(kt,po,Ht.transformOrigin),this.visibility=fo(kt,_r,Ht.visibility),this.webkitTextStrokeColor=fo(kt,zl,Ht.webkitTextStrokeColor),this.webkitTextStrokeWidth=fo(kt,Fl,Ht.webkitTextStrokeWidth),this.wordBreak=fo(kt,us,Ht.wordBreak),this.zIndex=fo(kt,Yo,Ht.zIndex)}return Dt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Dt.prototype.isTransparent=function(){return Ha(this.backgroundColor)},Dt.prototype.isTransformed=function(){return this.transform!==null},Dt.prototype.isPositioned=function(){return this.position!==0},Dt.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Dt.prototype.isFloating=function(){return this.float!==0},Dt.prototype.isInlineLevel=function(){return Ko(this.display,4)||Ko(this.display,33554432)||Ko(this.display,268435456)||Ko(this.display,536870912)||Ko(this.display,67108864)||Ko(this.display,134217728)},Dt}(),ca=function(){function Dt(kt,Ht){this.content=fo(kt,Go,Ht.content),this.quotes=fo(kt,ro,Ht.quotes)}return Dt}(),Ul=function(){function Dt(kt,Ht){this.counterIncrement=fo(kt,As,Ht.counterIncrement),this.counterReset=fo(kt,es,Ht.counterReset)}return Dt}(),fo=function(Dt,kt,Ht){var Rt=new bl,Be=Ht!==null&&typeof Ht!="undefined"?Ht.toString():kt.initialValue;Rt.write(Be);var $e=new au(Rt.read());switch(kt.type){case 2:var Fn=$e.parseComponentValue();return kt.parse(Dt,Oa(Fn)?Fn.value:kt.initialValue);case 0:return kt.parse(Dt,$e.parseComponentValue());case 1:return kt.parse(Dt,$e.parseComponentValues());case 4:return $e.parseComponentValue();case 3:switch(kt.format){case"angle":return Es.parse(Dt,$e.parseComponentValue());case"color":return rl.parse(Dt,$e.parseComponentValue());case"image":return sh.parse(Dt,$e.parseComponentValue());case"length":var ii=$e.parseComponentValue();return nu(ii)?ii:Eu;case"length-percentage":var jn=$e.parseComponentValue();return zo(jn)?jn:Eu;case"time":return ns.parse(Dt,$e.parseComponentValue())}break}},ja="data-html2canvas-debug",Gl=function(Dt){var kt=Dt.getAttribute(ja);switch(kt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ea=function(Dt,kt){var Ht=Gl(Dt);return Ht===1||kt===Ht},la=function(){function Dt(kt,Ht){if(this.context=kt,this.textNodes=[],this.elements=[],this.flags=0,ea(Ht,3))debugger;this.styles=new Ps(kt,window.getComputedStyle(Ht,null)),ur(Ht)&&(this.styles.animationDuration.some(function(Rt){return Rt>0})&&(Ht.style.animationDuration="0s"),this.styles.transform!==null&&(Ht.style.transform="none")),this.bounds=Vt(this.context,Ht),ea(Ht,4)&&(this.flags|=16)}return Dt}(),Na="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Va="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ol=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Rs=0;Rs<Va.length;Rs++)ol[Va.charCodeAt(Rs)]=Rs;for(var Ia=function(Dt){var kt=Dt.length*.75,Ht=Dt.length,Rt,Be=0,$e,Fn,ii,jn;Dt[Dt.length-1]==="="&&(kt--,Dt[Dt.length-2]==="="&&kt--);var Ri=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(kt):new Array(kt),zi=Array.isArray(Ri)?Ri:new Uint8Array(Ri);for(Rt=0;Rt<Ht;Rt+=4)$e=ol[Dt.charCodeAt(Rt)],Fn=ol[Dt.charCodeAt(Rt+1)],ii=ol[Dt.charCodeAt(Rt+2)],jn=ol[Dt.charCodeAt(Rt+3)],zi[Be++]=$e<<2|Fn>>4,zi[Be++]=(Fn&15)<<4|ii>>2,zi[Be++]=(ii&3)<<6|jn&63;return Ri},xl=function(Dt){for(var kt=Dt.length,Ht=[],Rt=0;Rt<kt;Rt+=2)Ht.push(Dt[Rt+1]<<8|Dt[Rt]);return Ht},pu=function(Dt){for(var kt=Dt.length,Ht=[],Rt=0;Rt<kt;Rt+=4)Ht.push(Dt[Rt+3]<<24|Dt[Rt+2]<<16|Dt[Rt+1]<<8|Dt[Rt]);return Ht},uu=5,Ru=11,$u=2,Ah=Ru-uu,Yu=65536>>uu,Ua=1<<uu,Bu=Ua-1,Rl=1024>>uu,tl=Yu+Rl,vh=tl,Cc=32,yh=vh+Cc,rc=65536>>Ru,oc=1<<Ah,wh=oc-1,fa=function(Dt,kt,Ht){return Dt.slice?Dt.slice(kt,Ht):new Uint16Array(Array.prototype.slice.call(Dt,kt,Ht))},Sl=function(Dt,kt,Ht){return Dt.slice?Dt.slice(kt,Ht):new Uint32Array(Array.prototype.slice.call(Dt,kt,Ht))},Ca=function(Dt,kt){var Ht=Ia(Dt),Rt=Array.isArray(Ht)?pu(Ht):new Uint32Array(Ht),Be=Array.isArray(Ht)?xl(Ht):new Uint16Array(Ht),$e=24,Fn=fa(Be,$e/2,Rt[4]/2),ii=Rt[5]===2?fa(Be,($e+Rt[4])/2):Sl(Rt,Math.ceil(($e+Rt[4])/4));return new Al(Rt[0],Rt[1],Rt[2],Rt[3],Fn,ii)},Al=function(){function Dt(kt,Ht,Rt,Be,$e,Fn){this.initialValue=kt,this.errorValue=Ht,this.highStart=Rt,this.highValueIndex=Be,this.index=$e,this.data=Fn}return Dt.prototype.get=function(kt){var Ht;if(kt>=0){if(kt<55296||kt>56319&&kt<=65535)return Ht=this.index[kt>>uu],Ht=(Ht<<$u)+(kt&Bu),this.data[Ht];if(kt<=65535)return Ht=this.index[Yu+(kt-55296>>uu)],Ht=(Ht<<$u)+(kt&Bu),this.data[Ht];if(kt<this.highStart)return Ht=yh-rc+(kt>>Ru),Ht=this.index[Ht],Ht+=kt>>uu&wh,Ht=this.index[Ht],Ht=(Ht<<$u)+(kt&Bu),this.data[Ht];if(kt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Fu=0;Fu<ga.length;Fu++)hu[ga.charCodeAt(Fu)]=Fu;var Kh=1,Th=2,_n=3,_u=4,Oh=5,lA=7,nd=8,gc=9,xd=10,SA=11,Lu=12,jc=13,Kd=14,id=15,CA=function(Dt){for(var kt=[],Ht=0,Rt=Dt.length;Ht<Rt;){var Be=Dt.charCodeAt(Ht++);if(Be>=55296&&Be<=56319&&Ht<Rt){var $e=Dt.charCodeAt(Ht++);($e&64512)===56320?kt.push(((Be&1023)<<10)+($e&1023)+65536):(kt.push(Be),Ht--)}else kt.push(Be)}return kt},Uc=function(){for(var Dt=[],kt=0;kt<arguments.length;kt++)Dt[kt]=arguments[kt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var Ht=Dt.length;if(!Ht)return"";for(var Rt=[],Be=-1,$e="";++Be<Ht;){var Fn=Dt[Be];Fn<=65535?Rt.push(Fn):(Fn-=65536,Rt.push((Fn>>10)+55296,Fn%1024+56320)),(Be+1===Ht||Rt.length>16384)&&($e+=String.fromCharCode.apply(String,Rt),Rt.length=0)}return $e},Sd=Ca(Na),Ju="\xD7",ah="\xF7",Vu=function(Dt){return Sd.get(Dt)},BA=function(Dt,kt,Ht){var Rt=Ht-2,Be=kt[Rt],$e=kt[Ht-1],Fn=kt[Ht];if($e===Th&&Fn===_n)return Ju;if($e===Th||$e===_n||$e===_u||Fn===Th||Fn===_n||Fn===_u)return ah;if($e===nd&&[nd,gc,SA,Lu].indexOf(Fn)!==-1||($e===SA||$e===gc)&&(Fn===gc||Fn===xd)||($e===Lu||$e===xd)&&Fn===xd||Fn===jc||Fn===Oh||Fn===lA||$e===Kh)return Ju;if($e===jc&&Fn===Kd){for(;Be===Oh;)Be=kt[--Rt];if(Be===Kd)return Ju}if($e===id&&Fn===id){for(var ii=0;Be===id;)ii++,Be=kt[--Rt];if(ii%2===0)return Ju}return ah},Gh=function(Dt){var kt=CA(Dt),Ht=kt.length,Rt=0,Be=0,$e=kt.map(Vu);return{next:function(){if(Rt>=Ht)return{done:!0,value:null};for(var Fn=Ju;Rt<Ht&&(Fn=BA(kt,$e,++Rt))===Ju;);if(Fn!==Ju||Rt===Ht){var ii=Uc.apply(null,kt.slice(Be,Rt));return Be=Rt,{value:ii,done:!1}}return{done:!0,value:null}}}},ia=function(Dt){for(var kt=Gh(Dt),Ht=[],Rt;!(Rt=kt.next()).done;)Rt.value&&Ht.push(Rt.value.slice());return Ht},Cd=function(Dt){var kt=123;if(Dt.createRange){var Ht=Dt.createRange();if(Ht.getBoundingClientRect){var Rt=Dt.createElement("boundtest");Rt.style.height=kt+"px",Rt.style.display="block",Dt.body.appendChild(Rt),Ht.selectNode(Rt);var Be=Ht.getBoundingClientRect(),$e=Math.round(Be.height);if(Dt.body.removeChild(Rt),$e===kt)return!0}}return!1},rd=function(Dt){var kt=Dt.createElement("boundtest");kt.style.width="50px",kt.style.display="block",kt.style.fontSize="12px",kt.style.letterSpacing="0px",kt.style.wordSpacing="0px",Dt.body.appendChild(kt);var Ht=Dt.createRange();kt.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Rt=kt.firstChild,Be=jt(Rt.data).map(function(jn){return qt(jn)}),$e=0,Fn={},ii=Be.every(function(jn,Ri){Ht.setStart(Rt,$e),Ht.setEnd(Rt,$e+jn.length);var zi=Ht.getBoundingClientRect();$e+=jn.length;var lr=zi.x>Fn.x||zi.y>Fn.y;return Fn=zi,Ri===0?!0:lr});return Dt.body.removeChild(kt),ii},mu=function(){return typeof new Image().crossOrigin!="undefined"},Gd=function(){return typeof new XMLHttpRequest().responseType=="string"},Wd=function(Dt){var kt=new Image,Ht=Dt.createElement("canvas"),Rt=Ht.getContext("2d");if(!Rt)return!1;kt.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Rt.drawImage(kt,0,0),Ht.toDataURL()}catch(Be){return!1}return!0},qu=function(Dt){return Dt[0]===0&&Dt[1]===255&&Dt[2]===0&&Dt[3]===255},Rc=function(Dt){var kt=Dt.createElement("canvas"),Ht=100;kt.width=Ht,kt.height=Ht;var Rt=kt.getContext("2d");if(!Rt)return Promise.reject(!1);Rt.fillStyle="rgb(0, 255, 0)",Rt.fillRect(0,0,Ht,Ht);var Be=new Image,$e=kt.toDataURL();Be.src=$e;var Fn=Bd(Ht,Ht,0,0,Be);return Rt.fillStyle="red",Rt.fillRect(0,0,Ht,Ht),Vd(Fn).then(function(ii){Rt.drawImage(ii,0,0);var jn=Rt.getImageData(0,0,Ht,Ht).data;Rt.fillStyle="red",Rt.fillRect(0,0,Ht,Ht);var Ri=Dt.createElement("div");return Ri.style.backgroundImage="url("+$e+")",Ri.style.height=Ht+"px",qu(jn)?Vd(Bd(Ht,Ht,0,0,Ri)):Promise.reject(!1)}).then(function(ii){return Rt.drawImage(ii,0,0),qu(Rt.getImageData(0,0,Ht,Ht).data)}).catch(function(){return!1})},Bd=function(Dt,kt,Ht,Rt,Be){var $e="http://www.w3.org/2000/svg",Fn=document.createElementNS($e,"svg"),ii=document.createElementNS($e,"foreignObject");return Fn.setAttributeNS(null,"width",Dt.toString()),Fn.setAttributeNS(null,"height",kt.toString()),ii.setAttributeNS(null,"width","100%"),ii.setAttributeNS(null,"height","100%"),ii.setAttributeNS(null,"x",Ht.toString()),ii.setAttributeNS(null,"y",Rt.toString()),ii.setAttributeNS(null,"externalResourcesRequired","true"),Fn.appendChild(ii),ii.appendChild(Be),Fn},Vd=function(Dt){return new Promise(function(kt,Ht){var Rt=new Image;Rt.onload=function(){return kt(Rt)},Rt.onerror=Ht,Rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},cu={get SUPPORT_RANGE_BOUNDS(){var Dt=Cd(document);return Object.defineProperty(cu,"SUPPORT_RANGE_BOUNDS",{value:Dt}),Dt},get SUPPORT_WORD_BREAKING(){var Dt=cu.SUPPORT_RANGE_BOUNDS&&rd(document);return Object.defineProperty(cu,"SUPPORT_WORD_BREAKING",{value:Dt}),Dt},get SUPPORT_SVG_DRAWING(){var Dt=Wd(document);return Object.defineProperty(cu,"SUPPORT_SVG_DRAWING",{value:Dt}),Dt},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Dt=typeof Array.from=="function"&&typeof window.fetch=="function"?Rc(document):Promise.resolve(!1);return Object.defineProperty(cu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Dt}),Dt},get SUPPORT_CORS_IMAGES(){var Dt=mu();return Object.defineProperty(cu,"SUPPORT_CORS_IMAGES",{value:Dt}),Dt},get SUPPORT_RESPONSE_TYPE(){var Dt=Gd();return Object.defineProperty(cu,"SUPPORT_RESPONSE_TYPE",{value:Dt}),Dt},get SUPPORT_CORS_XHR(){var Dt="withCredentials"in new XMLHttpRequest;return Object.defineProperty(cu,"SUPPORT_CORS_XHR",{value:Dt}),Dt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Dt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(cu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Dt}),Dt}},vu=function(){function Dt(kt,Ht){this.text=kt,this.bounds=Ht}return Dt}(),_c=function(Dt,kt,Ht,Rt){var Be=fh(kt,Ht),$e=[],Fn=0;return Be.forEach(function(ii){if(Ht.textDecorationLine.length||ii.trim().length>0)if(cu.SUPPORT_RANGE_BOUNDS){var jn=ka(Rt,Fn,ii.length).getClientRects();if(jn.length>1){var Ri=Za(ii),zi=0;Ri.forEach(function(St){$e.push(new vu(St,ee.fromDOMRectList(Dt,ka(Rt,zi+Fn,St.length).getClientRects()))),zi+=St.length})}else $e.push(new vu(ii,ee.fromDOMRectList(Dt,jn)))}else{var lr=Rt.splitText(ii.length);$e.push(new vu(ii,_l(Dt,Rt))),Rt=lr}else cu.SUPPORT_RANGE_BOUNDS||(Rt=Rt.splitText(ii.length));Fn+=ii.length}),$e},_l=function(Dt,kt){var Ht=kt.ownerDocument;if(Ht){var Rt=Ht.createElement("html2canvaswrapper");Rt.appendChild(kt.cloneNode(!0));var Be=kt.parentNode;if(Be){Be.replaceChild(Rt,kt);var $e=Vt(Dt,Rt);return Rt.firstChild&&Be.replaceChild(Rt.firstChild,Rt),$e}}return ee.EMPTY},ka=function(Dt,kt,Ht){var Rt=Dt.ownerDocument;if(!Rt)throw new Error("Node has no owner document");var Be=Rt.createRange();return Be.setStart(Dt,kt),Be.setEnd(Dt,kt+Ht),Be},Za=function(Dt){if(cu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var kt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(kt.segment(Dt)).map(function(Ht){return Ht.segment})}return ia(Dt)},Mu=function(Dt,kt){if(cu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ht=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Ht.segment(Dt)).map(function(Rt){return Rt.segment})}return Zd(Dt,kt)},fh=function(Dt,kt){return kt.letterSpacing!==0?Za(Dt):Mu(Dt,kt)},Eh=[32,160,4961,65792,65793,4153,4241],Zd=function(Dt,kt){for(var Ht=Cn(Dt,{lineBreak:kt.lineBreak,wordBreak:kt.overflowWrap==="break-word"?"break-word":kt.wordBreak}),Rt=[],Be,$e=function(){if(Be.value){var Fn=Be.value.slice(),ii=jt(Fn),jn="";ii.forEach(function(Ri){Eh.indexOf(Ri)===-1?jn+=qt(Ri):(jn.length&&Rt.push(jn),Rt.push(qt(Ri)),jn="")}),jn.length&&Rt.push(jn)}};!(Be=Ht.next()).done;)$e();return Rt},Bc=function(){function Dt(kt,Ht,Rt){this.text=Pd(Ht.data,Rt.textTransform),this.textBounds=_c(kt,this.text,Rt,Ht)}return Dt}(),Pd=function(Dt,kt){switch(kt){case 1:return Dt.toLowerCase();case 3:return Dt.replace(Zu,xh);case 2:return Dt.toUpperCase();default:return Dt}},Zu=/(^|\s|:|-|\(|\))([a-z])/g,xh=function(Dt,kt,Ht){return Dt.length>0?kt+Ht.toUpperCase():Dt},PA=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be.src=Rt.currentSrc||Rt.src,Be.intrinsicWidth=Rt.naturalWidth,Be.intrinsicHeight=Rt.naturalHeight,Be.context.cache.addImage(Be.src),Be}return kt}(la),Hc=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be.canvas=Rt,Be.intrinsicWidth=Rt.width,Be.intrinsicHeight=Rt.height,Be}return kt}(la),sc=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this,$e=new XMLSerializer,Fn=Vt(Ht,Rt);return Rt.setAttribute("width",Fn.width+"px"),Rt.setAttribute("height",Fn.height+"px"),Be.svg="data:image/svg+xml,"+encodeURIComponent($e.serializeToString(Rt)),Be.intrinsicWidth=Rt.width.baseVal.value,Be.intrinsicHeight=Rt.height.baseVal.value,Be.context.cache.addImage(Be.svg),Be}return kt}(la),Qc=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be.value=Rt.value,Be}return kt}(la),od=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be.start=Rt.start,Be.reversed=typeof Rt.reversed=="boolean"&&Rt.reversed===!0,Be}return kt}(la),lf=[{type:15,flags:0,unit:"px",number:3}],uA=[{type:16,flags:0,number:50}],Pc=function(Dt){return Dt.width>Dt.height?new ee(Dt.left+(Dt.width-Dt.height)/2,Dt.top,Dt.height,Dt.height):Dt.width<Dt.height?new ee(Dt.left,Dt.top+(Dt.height-Dt.width)/2,Dt.width,Dt.width):Dt},KA=function(Dt){var kt=Dt.type===Kc?new Array(Dt.value.length+1).join("\u2022"):Dt.value;return kt.length===0?Dt.placeholder||"":kt},bd="checkbox",zc="radio",Kc="password",hA=707406591,Dh=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;switch(Be.type=Rt.type.toLowerCase(),Be.checked=Rt.checked,Be.value=KA(Rt),(Be.type===bd||Be.type===zc)&&(Be.styles.backgroundColor=3739148031,Be.styles.borderTopColor=Be.styles.borderRightColor=Be.styles.borderBottomColor=Be.styles.borderLeftColor=2779096575,Be.styles.borderTopWidth=Be.styles.borderRightWidth=Be.styles.borderBottomWidth=Be.styles.borderLeftWidth=1,Be.styles.borderTopStyle=Be.styles.borderRightStyle=Be.styles.borderBottomStyle=Be.styles.borderLeftStyle=1,Be.styles.backgroundClip=[0],Be.styles.backgroundOrigin=[0],Be.bounds=Pc(Be.bounds)),Be.type){case bd:Be.styles.borderTopRightRadius=Be.styles.borderTopLeftRadius=Be.styles.borderBottomRightRadius=Be.styles.borderBottomLeftRadius=lf;break;case zc:Be.styles.borderTopRightRadius=Be.styles.borderTopLeftRadius=Be.styles.borderBottomRightRadius=Be.styles.borderBottomLeftRadius=uA;break}return Be}return kt}(la),bA=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this,$e=Rt.options[Rt.selectedIndex||0];return Be.value=$e&&$e.text||"",Be}return kt}(la),EA=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be.value=Rt.value,Be}return kt}(la),cA=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;Be.src=Rt.src,Be.width=parseInt(Rt.width,10)||0,Be.height=parseInt(Rt.height,10)||0,Be.backgroundColor=Be.styles.backgroundColor;try{if(Rt.contentWindow&&Rt.contentWindow.document&&Rt.contentWindow.document.documentElement){Be.tree=FA(Ht,Rt.contentWindow.document.documentElement);var $e=Rt.contentWindow.document.documentElement?td(Ht,getComputedStyle(Rt.contentWindow.document.documentElement).backgroundColor):Bh.TRANSPARENT,Fn=Rt.contentWindow.document.body?td(Ht,getComputedStyle(Rt.contentWindow.document.body).backgroundColor):Bh.TRANSPARENT;Be.backgroundColor=Ha($e)?Ha(Fn)?Be.styles.backgroundColor:Fn:$e}}catch(ii){}return Be}return kt}(la),Xd=["OL","UL","MENU"],Ed=function(Dt,kt,Ht,Rt){for(var Be=kt.firstChild,$e=void 0;Be;Be=$e)if($e=Be.nextSibling,Si(Be)&&Be.data.trim().length>0)Ht.textNodes.push(new Bc(Dt,Be,Ht.styles));else if(_i(Be))if(LA(Be)&&Be.assignedNodes)Be.assignedNodes().forEach(function(ii){return Ed(Dt,ii,Ht,Rt)});else{var Fn=$d(Dt,Be);Fn.styles.isVisible()&&(Ae(Be,Fn,Rt)?Fn.flags|=4:vn(Fn.styles)&&(Fn.flags|=2),Xd.indexOf(Be.tagName)!==-1&&(Fn.flags|=8),Ht.elements.push(Fn),Be.slot,Be.shadowRoot?Ed(Dt,Be.shadowRoot,Fn,Rt):!Fh(Be)&&!Pa(Be)&&!lc(Be)&&Ed(Dt,Be,Fn,Rt))}},$d=function(Dt,kt){return Qa(kt)?new PA(Dt,kt):iu(kt)?new Hc(Dt,kt):Pa(kt)?new sc(Dt,kt):Co(kt)?new Qc(Dt,kt):ms(kt)?new od(Dt,kt):Js(kt)?new Dh(Dt,kt):lc(kt)?new bA(Dt,kt):Fh(kt)?new EA(Dt,kt):Kl(kt)?new cA(Dt,kt):new la(Dt,kt)},FA=function(Dt,kt){var Ht=$d(Dt,kt);return Ht.flags|=4,Ed(Dt,kt,Ht,Ht),Ht},Ae=function(Dt,kt,Ht){return kt.styles.isPositionedWithZIndex()||kt.styles.opacity<1||kt.styles.isTransformed()||vs(Dt)&&Ht.styles.isTransparent()},vn=function(Dt){return Dt.isPositioned()||Dt.isFloating()},Si=function(Dt){return Dt.nodeType===Node.TEXT_NODE},_i=function(Dt){return Dt.nodeType===Node.ELEMENT_NODE},ur=function(Dt){return _i(Dt)&&typeof Dt.style!="undefined"&&!Ur(Dt)},Ur=function(Dt){return typeof Dt.className=="object"},Co=function(Dt){return Dt.tagName==="LI"},ms=function(Dt){return Dt.tagName==="OL"},Js=function(Dt){return Dt.tagName==="INPUT"},Ba=function(Dt){return Dt.tagName==="HTML"},Pa=function(Dt){return Dt.tagName==="svg"},vs=function(Dt){return Dt.tagName==="BODY"},iu=function(Dt){return Dt.tagName==="CANVAS"},ru=function(Dt){return Dt.tagName==="VIDEO"},Qa=function(Dt){return Dt.tagName==="IMG"},Kl=function(Dt){return Dt.tagName==="IFRAME"},Nu=function(Dt){return Dt.tagName==="STYLE"},ac=function(Dt){return Dt.tagName==="SCRIPT"},Fh=function(Dt){return Dt.tagName==="TEXTAREA"},lc=function(Dt){return Dt.tagName==="SELECT"},LA=function(Dt){return Dt.tagName==="SLOT"},dA=function(Dt){return Dt.tagName.indexOf("-")>0},MA=function(){function Dt(){this.counters={}}return Dt.prototype.getCounterValue=function(kt){var Ht=this.counters[kt];return Ht&&Ht.length?Ht[Ht.length-1]:1},Dt.prototype.getCounterValues=function(kt){var Ht=this.counters[kt];return Ht||[]},Dt.prototype.pop=function(kt){var Ht=this;kt.forEach(function(Rt){return Ht.counters[Rt].pop()})},Dt.prototype.parse=function(kt){var Ht=this,Rt=kt.counterIncrement,Be=kt.counterReset,$e=!0;Rt!==null&&Rt.forEach(function(ii){var jn=Ht.counters[ii.counter];jn&&ii.increment!==0&&($e=!1,jn.length||jn.push(1),jn[Math.max(0,jn.length-1)]+=ii.increment)});var Fn=[];return $e&&Be.forEach(function(ii){var jn=Ht.counters[ii.counter];Fn.push(ii.counter),jn||(jn=Ht.counters[ii.counter]=[]),jn.push(ii.reset)}),Fn},Dt}(),pc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Fd={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Gc={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},fl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Iu=function(Dt,kt,Ht,Rt,Be,$e){return Dt<kt||Dt>Ht?mt(Dt,Be,$e.length>0):Rt.integers.reduce(function(Fn,ii,jn){for(;Dt>=ii;)Dt-=ii,Fn+=Rt.values[jn];return Fn},"")+$e},Yd=function(Dt,kt,Ht,Rt){var Be="";do Ht||Dt--,Be=Rt(Dt)+Be,Dt/=kt;while(Dt*kt>=kt);return Be},Wl=function(Dt,kt,Ht,Rt,Be){var $e=Ht-kt+1;return(Dt<0?"-":"")+(Yd(Math.abs(Dt),$e,Rt,function(Fn){return qt(Math.floor(Fn%$e)+kt)})+Be)},jh=function(Dt,kt,Ht){Ht===void 0&&(Ht=". ");var Rt=kt.length;return Yd(Math.abs(Dt),Rt,!1,function(Be){return kt[Math.floor(Be%Rt)]})+Ht},mc=1,th=2,Vl=4,Ld=8,Uh=function(Dt,kt,Ht,Rt,Be,$e){if(Dt<-9999||Dt>9999)return mt(Dt,4,Be.length>0);var Fn=Math.abs(Dt),ii=Be;if(Fn===0)return kt[0]+ii;for(var jn=0;Fn>0&&jn<=4;jn++){var Ri=Fn%10;Ri===0&&Ko($e,mc)&&ii!==""?ii=kt[Ri]+ii:Ri>1||Ri===1&&jn===0||Ri===1&&jn===1&&Ko($e,th)||Ri===1&&jn===1&&Ko($e,Vl)&&Dt>100||Ri===1&&jn>1&&Ko($e,Ld)?ii=kt[Ri]+(jn>0?Ht[jn-1]:"")+ii:Ri===1&&jn>0&&(ii=Ht[jn-1]+ii),Fn=Math.floor(Fn/10)}return(Dt<0?Rt:"")+ii},lh="\u5341\u767E\u5343\u842C",sd="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",mt=function(Dt,kt,Ht){var Rt=Ht?". ":"",Be=Ht?"\u3001":"",$e=Ht?", ":"",Fn=Ht?" ":"";switch(kt){case 0:return"\u2022"+Fn;case 1:return"\u25E6"+Fn;case 2:return"\u25FE"+Fn;case 5:var ii=Wl(Dt,48,57,!0,Rt);return ii.length<4?"0"+ii:ii;case 4:return jh(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Be);case 6:return Iu(Dt,1,3999,pc,3,Rt).toLowerCase();case 7:return Iu(Dt,1,3999,pc,3,Rt);case 8:return Wl(Dt,945,969,!1,Rt);case 9:return Wl(Dt,97,122,!1,Rt);case 10:return Wl(Dt,65,90,!1,Rt);case 11:return Wl(Dt,1632,1641,!0,Rt);case 12:case 49:return Iu(Dt,1,9999,Fd,3,Rt);case 35:return Iu(Dt,1,9999,Fd,3,Rt).toLowerCase();case 13:return Wl(Dt,2534,2543,!0,Rt);case 14:case 30:return Wl(Dt,6112,6121,!0,Rt);case 15:return jh(Dt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Be);case 16:return jh(Dt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Be);case 17:case 48:return Uh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",lh,"\u8CA0",Be,th|Vl|Ld);case 47:return Uh(Dt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",sd,"\u8CA0",Be,mc|th|Vl|Ld);case 42:return Uh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",lh,"\u8D1F",Be,th|Vl|Ld);case 41:return Uh(Dt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",sd,"\u8D1F",Be,mc|th|Vl|Ld);case 26:return Uh(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Be,0);case 25:return Uh(Dt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Be,mc|th|Vl);case 31:return Uh(Dt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,$e,mc|th|Vl);case 33:return Uh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,$e,0);case 32:return Uh(Dt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,$e,mc|th|Vl);case 18:return Wl(Dt,2406,2415,!0,Rt);case 20:return Iu(Dt,1,19999,fl,3,Rt);case 21:return Wl(Dt,2790,2799,!0,Rt);case 22:return Wl(Dt,2662,2671,!0,Rt);case 22:return Iu(Dt,1,10999,Gc,3,Rt);case 23:return jh(Dt,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return jh(Dt,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Wl(Dt,3302,3311,!0,Rt);case 28:return jh(Dt,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",Be);case 29:return jh(Dt,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",Be);case 34:return Wl(Dt,3792,3801,!0,Rt);case 37:return Wl(Dt,6160,6169,!0,Rt);case 38:return Wl(Dt,4160,4169,!0,Rt);case 39:return Wl(Dt,2918,2927,!0,Rt);case 40:return Wl(Dt,1776,1785,!0,Rt);case 43:return Wl(Dt,3046,3055,!0,Rt);case 44:return Wl(Dt,3174,3183,!0,Rt);case 45:return Wl(Dt,3664,3673,!0,Rt);case 46:return Wl(Dt,3872,3881,!0,Rt);case 3:default:return Wl(Dt,48,57,!0,Rt)}},pt="data-html2canvas-ignore",Bt=function(){function Dt(kt,Ht,Rt){if(this.context=kt,this.options=Rt,this.scrolledElements=[],this.referenceElement=Ht,this.counters=new MA,this.quoteDepth=0,!Ht.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ht.ownerDocument.documentElement,!1)}return Dt.prototype.toIFrame=function(kt,Ht){var Rt=this,Be=Se(kt,Ht);if(!Be.contentWindow)return Promise.reject("Unable to find iframe window");var $e=kt.defaultView.pageXOffset,Fn=kt.defaultView.pageYOffset,ii=Be.contentWindow,jn=ii.document,Ri=an(Be).then(function(){return ce(Rt,void 0,void 0,function(){var zi,lr;return re(this,function(St){switch(St.label){case 0:return this.scrolledElements.forEach(Sr),ii&&(ii.scrollTo(Ht.left,Ht.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ii.scrollY!==Ht.top||ii.scrollX!==Ht.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ii.scrollX-Ht.left,ii.scrollY-Ht.top,0,0))),zi=this.options.onclone,lr=this.clonedReferenceElement,typeof lr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:jn.fonts&&jn.fonts.ready?[4,jn.fonts.ready]:[3,2];case 1:St.sent(),St.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,De(jn)]:[3,4];case 3:St.sent(),St.label=4;case 4:return typeof zi=="function"?[2,Promise.resolve().then(function(){return zi(jn,lr)}).then(function(){return Be})]:[2,Be]}})})});return jn.open(),jn.write(Ti(document.doctype)+"<html></html>"),bi(this.referenceElement.ownerDocument,$e,Fn),jn.replaceChild(jn.adoptNode(this.documentElement),jn.documentElement),jn.close(),Ri},Dt.prototype.createElementClone=function(kt){if(ea(kt,2))debugger;if(iu(kt))return this.createCanvasClone(kt);if(ru(kt))return this.createVideoClone(kt);if(Nu(kt))return this.createStyleClone(kt);var Ht=kt.cloneNode(!1);return Qa(Ht)&&(Qa(kt)&&kt.currentSrc&&kt.currentSrc!==kt.src&&(Ht.src=kt.currentSrc,Ht.srcset=""),Ht.loading==="lazy"&&(Ht.loading="eager")),dA(Ht)?this.createCustomElementClone(Ht):Ht},Dt.prototype.createCustomElementClone=function(kt){var Ht=document.createElement("html2canvascustomelement");return fn(kt.style,Ht),Ht},Dt.prototype.createStyleClone=function(kt){try{var Ht=kt.sheet;if(Ht&&Ht.cssRules){var Rt=[].slice.call(Ht.cssRules,0).reduce(function($e,Fn){return Fn&&typeof Fn.cssText=="string"?$e+Fn.cssText:$e},""),Be=kt.cloneNode(!1);return Be.textContent=Rt,Be}}catch($e){if(this.context.logger.error("Unable to access cssRules property",$e),$e.name!=="SecurityError")throw $e}return kt.cloneNode(!1)},Dt.prototype.createCanvasClone=function(kt){var Ht;if(this.options.inlineImages&&kt.ownerDocument){var Rt=kt.ownerDocument.createElement("img");try{return Rt.src=kt.toDataURL(),Rt}catch(Ri){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",kt)}}var Be=kt.cloneNode(!1);try{Be.width=kt.width,Be.height=kt.height;var $e=kt.getContext("2d"),Fn=Be.getContext("2d");if(Fn)if(!this.options.allowTaint&&$e)Fn.putImageData($e.getImageData(0,0,kt.width,kt.height),0,0);else{var ii=(Ht=kt.getContext("webgl2"))!==null&&Ht!==void 0?Ht:kt.getContext("webgl");if(ii){var jn=ii.getContextAttributes();(jn==null?void 0:jn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",kt)}Fn.drawImage(kt,0,0)}return Be}catch(Ri){this.context.logger.info("Unable to clone canvas as it is tainted",kt)}return Be},Dt.prototype.createVideoClone=function(kt){var Ht=kt.ownerDocument.createElement("canvas");Ht.width=kt.offsetWidth,Ht.height=kt.offsetHeight;var Rt=Ht.getContext("2d");try{return Rt&&(Rt.drawImage(kt,0,0,Ht.width,Ht.height),this.options.allowTaint||Rt.getImageData(0,0,Ht.width,Ht.height)),Ht}catch($e){this.context.logger.info("Unable to clone video as it is tainted",kt)}var Be=kt.ownerDocument.createElement("canvas");return Be.width=kt.offsetWidth,Be.height=kt.offsetHeight,Be},Dt.prototype.appendChildNode=function(kt,Ht,Rt){(!_i(Ht)||!ac(Ht)&&!Ht.hasAttribute(pt)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ht)))&&(!this.options.copyStyles||!_i(Ht)||!Nu(Ht))&&kt.appendChild(this.cloneNode(Ht,Rt))},Dt.prototype.cloneChildNodes=function(kt,Ht,Rt){for(var Be=this,$e=kt.shadowRoot?kt.shadowRoot.firstChild:kt.firstChild;$e;$e=$e.nextSibling)if(_i($e)&&LA($e)&&typeof $e.assignedNodes=="function"){var Fn=$e.assignedNodes();Fn.length&&Fn.forEach(function(ii){return Be.appendChildNode(Ht,ii,Rt)})}else this.appendChildNode(Ht,$e,Rt)},Dt.prototype.cloneNode=function(kt,Ht){if(Si(kt))return document.createTextNode(kt.data);if(!kt.ownerDocument)return kt.cloneNode(!1);var Rt=kt.ownerDocument.defaultView;if(Rt&&_i(kt)&&(ur(kt)||Ur(kt))){var Be=this.createElementClone(kt);Be.style.transitionProperty="none";var $e=Rt.getComputedStyle(kt),Fn=Rt.getComputedStyle(kt,":before"),ii=Rt.getComputedStyle(kt,":after");this.referenceElement===kt&&ur(Be)&&(this.clonedReferenceElement=Be),vs(Be)&&as(Be);var jn=this.counters.parse(new Ul(this.context,$e)),Ri=this.resolvePseudoContent(kt,Be,Fn,Jt.BEFORE);dA(kt)&&(Ht=!0),ru(kt)||this.cloneChildNodes(kt,Be,Ht),Ri&&Be.insertBefore(Ri,Be.firstChild);var zi=this.resolvePseudoContent(kt,Be,ii,Jt.AFTER);return zi&&Be.appendChild(zi),this.counters.pop(jn),($e&&(this.options.copyStyles||Ur(kt))&&!Kl(kt)||Ht)&&fn($e,Be),(kt.scrollTop!==0||kt.scrollLeft!==0)&&this.scrolledElements.push([Be,kt.scrollLeft,kt.scrollTop]),(Fh(kt)||lc(kt))&&(Fh(Be)||lc(Be))&&(Be.value=kt.value),Be}return kt.cloneNode(!1)},Dt.prototype.resolvePseudoContent=function(kt,Ht,Rt,Be){var $e=this;if(Rt){var Fn=Rt.content,ii=Ht.ownerDocument;if(!(!ii||!Fn||Fn==="none"||Fn==="-moz-alt-content"||Rt.display==="none")){this.counters.parse(new Ul(this.context,Rt));var jn=new ca(this.context,Rt),Ri=ii.createElement("html2canvaspseudoelement");fn(Rt,Ri),jn.content.forEach(function(lr){if(lr.type===0)Ri.appendChild(ii.createTextNode(lr.value));else if(lr.type===22){var St=ii.createElement("img");St.src=lr.value,St.style.opacity="1",Ri.appendChild(St)}else if(lr.type===18){if(lr.name==="attr"){var zt=lr.values.filter(Oa);zt.length&&Ri.appendChild(ii.createTextNode(kt.getAttribute(zt[0].value)||""))}else if(lr.name==="counter"){var de=lr.values.filter(Pu),be=de[0],rn=de[1];if(be&&Oa(be)){var hn=$e.counters.getCounterValue(be.value),cn=rn&&Oa(rn)?Qe.parse($e.context,rn.value):3;Ri.appendChild(ii.createTextNode(mt(hn,cn,!1)))}}else if(lr.name==="counters"){var yn=lr.values.filter(Pu),be=yn[0],In=yn[1],rn=yn[2];if(be&&Oa(be)){var zn=$e.counters.getCounterValues(be.value),fi=rn&&Oa(rn)?Qe.parse($e.context,rn.value):3,qi=In&&In.type===0?In.value:"",tr=zn.map(function(Nr){return mt(Nr,fi,!1)}).join(qi);Ri.appendChild(ii.createTextNode(tr))}}}else if(lr.type===20)switch(lr.value){case"open-quote":Ri.appendChild(ii.createTextNode(Wo(jn.quotes,$e.quoteDepth++,!0)));break;case"close-quote":Ri.appendChild(ii.createTextNode(Wo(jn.quotes,--$e.quoteDepth,!1)));break;default:Ri.appendChild(ii.createTextNode(lr.value))}}),Ri.className=vo+" "+Xo;var zi=Be===Jt.BEFORE?" "+vo:" "+Xo;return Ur(Ht)?Ht.className.baseValue+=zi:Ht.className+=zi,Ri}}},Dt.destroy=function(kt){return kt.parentNode?(kt.parentNode.removeChild(kt),!0):!1},Dt}(),Jt;(function(Dt){Dt[Dt.BEFORE=0]="BEFORE",Dt[Dt.AFTER=1]="AFTER"})(Jt||(Jt={}));var Se=function(Dt,kt){var Ht=Dt.createElement("iframe");return Ht.className="html2canvas-container",Ht.style.visibility="hidden",Ht.style.position="fixed",Ht.style.left="-10000px",Ht.style.top="0px",Ht.style.border="0",Ht.width=kt.width.toString(),Ht.height=kt.height.toString(),Ht.scrolling="no",Ht.setAttribute(pt,"true"),Dt.body.appendChild(Ht),Ht},je=function(Dt){return new Promise(function(kt){if(Dt.complete){kt();return}if(!Dt.src){kt();return}Dt.onload=kt,Dt.onerror=kt})},De=function(Dt){return Promise.all([].slice.call(Dt.images,0).map(je))},an=function(Dt){return new Promise(function(kt,Ht){var Rt=Dt.contentWindow;if(!Rt)return Ht("No window assigned for iframe");var Be=Rt.document;Rt.onload=Dt.onload=function(){Rt.onload=Dt.onload=null;var $e=setInterval(function(){Be.body.childNodes.length>0&&Be.readyState==="complete"&&(clearInterval($e),kt(Dt))},50)}})},si=["all","d","content"],fn=function(Dt,kt){for(var Ht=Dt.length-1;Ht>=0;Ht--){var Rt=Dt.item(Ht);si.indexOf(Rt)===-1&&kt.style.setProperty(Rt,Dt.getPropertyValue(Rt))}return kt},Ti=function(Dt){var kt="";return Dt&&(kt+="<!DOCTYPE ",Dt.name&&(kt+=Dt.name),Dt.internalSubset&&(kt+=Dt.internalSubset),Dt.publicId&&(kt+='"'+Dt.publicId+'"'),Dt.systemId&&(kt+='"'+Dt.systemId+'"'),kt+=">"),kt},bi=function(Dt,kt,Ht){Dt&&Dt.defaultView&&(kt!==Dt.defaultView.pageXOffset||Ht!==Dt.defaultView.pageYOffset)&&Dt.defaultView.scrollTo(kt,Ht)},Sr=function(Dt){var kt=Dt[0],Ht=Dt[1],Rt=Dt[2];kt.scrollLeft=Ht,kt.scrollTop=Rt},Dr=":before",Jr=":after",vo="___html2canvas___pseudoelement_before",Xo="___html2canvas___pseudoelement_after",No=`{
content: "" !important;
display: none !important;
}`,as=function(Dt){Ms(Dt,"."+vo+Dr+No+`
.`+Xo+Jr+No)},Ms=function(Dt,kt){var Ht=Dt.ownerDocument;if(Ht){var Rt=Ht.createElement("style");Rt.textContent=kt,Dt.appendChild(Rt)}},Io=function(){function Dt(){}return Dt.getOrigin=function(kt){var Ht=Dt._link;return Ht?(Ht.href=kt,Ht.href=Ht.href,Ht.protocol+Ht.hostname+Ht.port):"about:blank"},Dt.isSameOrigin=function(kt){return Dt.getOrigin(kt)===Dt._origin},Dt.setContext=function(kt){Dt._link=kt.document.createElement("a"),Dt._origin=Dt.getOrigin(kt.location.href)},Dt._origin="about:blank",Dt}(),na=function(){function Dt(kt,Ht){this.context=kt,this._options=Ht,this._cache={}}return Dt.prototype.addImage=function(kt){var Ht=Promise.resolve();return this.has(kt)||(gl(kt)||yu(kt))&&(this._cache[kt]=this.loadImage(kt)).catch(function(){}),Ht},Dt.prototype.match=function(kt){return this._cache[kt]},Dt.prototype.loadImage=function(kt){return ce(this,void 0,void 0,function(){var Ht,Rt,Be,$e,Fn=this;return re(this,function(ii){switch(ii.label){case 0:return Ht=Io.isSameOrigin(kt),Rt=!La(kt)&&this._options.useCORS===!0&&cu.SUPPORT_CORS_IMAGES&&!Ht,Be=!La(kt)&&!Ht&&!gl(kt)&&typeof this._options.proxy=="string"&&cu.SUPPORT_CORS_XHR&&!Rt,!Ht&&this._options.allowTaint===!1&&!La(kt)&&!gl(kt)&&!Be&&!Rt?[2]:($e=kt,Be?[4,this.proxy($e)]:[3,2]);case 1:$e=ii.sent(),ii.label=2;case 2:return this.context.logger.debug("Added image "+kt.substring(0,256)),[4,new Promise(function(jn,Ri){var zi=new Image;zi.onload=function(){return jn(zi)},zi.onerror=Ri,(wa($e)||Rt)&&(zi.crossOrigin="anonymous"),zi.src=$e,zi.complete===!0&&setTimeout(function(){return jn(zi)},500),Fn._options.imageTimeout>0&&setTimeout(function(){return Ri("Timed out ("+Fn._options.imageTimeout+"ms) loading image")},Fn._options.imageTimeout)})];case 3:return[2,ii.sent()]}})})},Dt.prototype.has=function(kt){return typeof this._cache[kt]!="undefined"},Dt.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Dt.prototype.proxy=function(kt){var Ht=this,Rt=this._options.proxy;if(!Rt)throw new Error("No proxy defined");var Be=kt.substring(0,256);return new Promise(function($e,Fn){var ii=cu.SUPPORT_RESPONSE_TYPE?"blob":"text",jn=new XMLHttpRequest;jn.onload=function(){if(jn.status===200)if(ii==="text")$e(jn.response);else{var lr=new FileReader;lr.addEventListener("load",function(){return $e(lr.result)},!1),lr.addEventListener("error",function(St){return Fn(St)},!1),lr.readAsDataURL(jn.response)}else Fn("Failed to proxy resource "+Be+" with status code "+jn.status)},jn.onerror=Fn;var Ri=Rt.indexOf("?")>-1?"&":"?";if(jn.open("GET",""+Rt+Ri+"url="+encodeURIComponent(kt)+"&responseType="+ii),ii!=="text"&&jn instanceof XMLHttpRequest&&(jn.responseType=ii),Ht._options.imageTimeout){var zi=Ht._options.imageTimeout;jn.timeout=zi,jn.ontimeout=function(){return Fn("Timed out ("+zi+"ms) proxying "+Be)}}jn.send()})},Dt}(),Cl=/^data:image\/svg\+xml/i,ku=/^data:image\/.*;base64,/i,ul=/^data:image\/.*/i,yu=function(Dt){return cu.SUPPORT_SVG_DRAWING||!pl(Dt)},La=function(Dt){return ul.test(Dt)},wa=function(Dt){return ku.test(Dt)},gl=function(Dt){return Dt.substr(0,4)==="blob"},pl=function(Dt){return Dt.substr(-3).toLowerCase()==="svg"||Cl.test(Dt)},bo=function(){function Dt(kt,Ht){this.type=0,this.x=kt,this.y=Ht}return Dt.prototype.add=function(kt,Ht){return new Dt(this.x+kt,this.y+Ht)},Dt}(),xa=function(Dt,kt,Ht){return new bo(Dt.x+(kt.x-Dt.x)*Ht,Dt.y+(kt.y-Dt.y)*Ht)},Nl=function(){function Dt(kt,Ht,Rt,Be){this.type=1,this.start=kt,this.startControl=Ht,this.endControl=Rt,this.end=Be}return Dt.prototype.subdivide=function(kt,Ht){var Rt=xa(this.start,this.startControl,kt),Be=xa(this.startControl,this.endControl,kt),$e=xa(this.endControl,this.end,kt),Fn=xa(Rt,Be,kt),ii=xa(Be,$e,kt),jn=xa(Fn,ii,kt);return Ht?new Dt(this.start,Rt,Fn,jn):new Dt(jn,ii,$e,this.end)},Dt.prototype.add=function(kt,Ht){return new Dt(this.start.add(kt,Ht),this.startControl.add(kt,Ht),this.endControl.add(kt,Ht),this.end.add(kt,Ht))},Dt.prototype.reverse=function(){return new Dt(this.end,this.endControl,this.startControl,this.start)},Dt}(),Il=function(Dt){return Dt.type===1},uh=function(){function Dt(kt){var Ht=kt.styles,Rt=kt.bounds,Be=nc(Ht.borderTopLeftRadius,Rt.width,Rt.height),$e=Be[0],Fn=Be[1],ii=nc(Ht.borderTopRightRadius,Rt.width,Rt.height),jn=ii[0],Ri=ii[1],zi=nc(Ht.borderBottomRightRadius,Rt.width,Rt.height),lr=zi[0],St=zi[1],zt=nc(Ht.borderBottomLeftRadius,Rt.width,Rt.height),de=zt[0],be=zt[1],rn=[];rn.push(($e+jn)/Rt.width),rn.push((de+lr)/Rt.width),rn.push((Fn+be)/Rt.height),rn.push((Ri+St)/Rt.height);var hn=Math.max.apply(Math,rn);hn>1&&($e/=hn,Fn/=hn,jn/=hn,Ri/=hn,lr/=hn,St/=hn,de/=hn,be/=hn);var cn=Rt.width-jn,yn=Rt.height-St,In=Rt.width-lr,zn=Rt.height-be,fi=Ht.borderTopWidth,qi=Ht.borderRightWidth,tr=Ht.borderBottomWidth,Ii=Ht.borderLeftWidth,Wr=il(Ht.paddingTop,kt.bounds.width),Nr=il(Ht.paddingRight,kt.bounds.width),Hi=il(Ht.paddingBottom,kt.bounds.width),Ui=il(Ht.paddingLeft,kt.bounds.width);this.topLeftBorderDoubleOuterBox=$e>0||Fn>0?_s(Rt.left+Ii/3,Rt.top+fi/3,$e-Ii/3,Fn-fi/3,Ta.TOP_LEFT):new bo(Rt.left+Ii/3,Rt.top+fi/3),this.topRightBorderDoubleOuterBox=$e>0||Fn>0?_s(Rt.left+cn,Rt.top+fi/3,jn-qi/3,Ri-fi/3,Ta.TOP_RIGHT):new bo(Rt.left+Rt.width-qi/3,Rt.top+fi/3),this.bottomRightBorderDoubleOuterBox=lr>0||St>0?_s(Rt.left+In,Rt.top+yn,lr-qi/3,St-tr/3,Ta.BOTTOM_RIGHT):new bo(Rt.left+Rt.width-qi/3,Rt.top+Rt.height-tr/3),this.bottomLeftBorderDoubleOuterBox=de>0||be>0?_s(Rt.left+Ii/3,Rt.top+zn,de-Ii/3,be-tr/3,Ta.BOTTOM_LEFT):new bo(Rt.left+Ii/3,Rt.top+Rt.height-tr/3),this.topLeftBorderDoubleInnerBox=$e>0||Fn>0?_s(Rt.left+Ii*2/3,Rt.top+fi*2/3,$e-Ii*2/3,Fn-fi*2/3,Ta.TOP_LEFT):new bo(Rt.left+Ii*2/3,Rt.top+fi*2/3),this.topRightBorderDoubleInnerBox=$e>0||Fn>0?_s(Rt.left+cn,Rt.top+fi*2/3,jn-qi*2/3,Ri-fi*2/3,Ta.TOP_RIGHT):new bo(Rt.left+Rt.width-qi*2/3,Rt.top+fi*2/3),this.bottomRightBorderDoubleInnerBox=lr>0||St>0?_s(Rt.left+In,Rt.top+yn,lr-qi*2/3,St-tr*2/3,Ta.BOTTOM_RIGHT):new bo(Rt.left+Rt.width-qi*2/3,Rt.top+Rt.height-tr*2/3),this.bottomLeftBorderDoubleInnerBox=de>0||be>0?_s(Rt.left+Ii*2/3,Rt.top+zn,de-Ii*2/3,be-tr*2/3,Ta.BOTTOM_LEFT):new bo(Rt.left+Ii*2/3,Rt.top+Rt.height-tr*2/3),this.topLeftBorderStroke=$e>0||Fn>0?_s(Rt.left+Ii/2,Rt.top+fi/2,$e-Ii/2,Fn-fi/2,Ta.TOP_LEFT):new bo(Rt.left+Ii/2,Rt.top+fi/2),this.topRightBorderStroke=$e>0||Fn>0?_s(Rt.left+cn,Rt.top+fi/2,jn-qi/2,Ri-fi/2,Ta.TOP_RIGHT):new bo(Rt.left+Rt.width-qi/2,Rt.top+fi/2),this.bottomRightBorderStroke=lr>0||St>0?_s(Rt.left+In,Rt.top+yn,lr-qi/2,St-tr/2,Ta.BOTTOM_RIGHT):new bo(Rt.left+Rt.width-qi/2,Rt.top+Rt.height-tr/2),this.bottomLeftBorderStroke=de>0||be>0?_s(Rt.left+Ii/2,Rt.top+zn,de-Ii/2,be-tr/2,Ta.BOTTOM_LEFT):new bo(Rt.left+Ii/2,Rt.top+Rt.height-tr/2),this.topLeftBorderBox=$e>0||Fn>0?_s(Rt.left,Rt.top,$e,Fn,Ta.TOP_LEFT):new bo(Rt.left,Rt.top),this.topRightBorderBox=jn>0||Ri>0?_s(Rt.left+cn,Rt.top,jn,Ri,Ta.TOP_RIGHT):new bo(Rt.left+Rt.width,Rt.top),this.bottomRightBorderBox=lr>0||St>0?_s(Rt.left+In,Rt.top+yn,lr,St,Ta.BOTTOM_RIGHT):new bo(Rt.left+Rt.width,Rt.top+Rt.height),this.bottomLeftBorderBox=de>0||be>0?_s(Rt.left,Rt.top+zn,de,be,Ta.BOTTOM_LEFT):new bo(Rt.left,Rt.top+Rt.height),this.topLeftPaddingBox=$e>0||Fn>0?_s(Rt.left+Ii,Rt.top+fi,Math.max(0,$e-Ii),Math.max(0,Fn-fi),Ta.TOP_LEFT):new bo(Rt.left+Ii,Rt.top+fi),this.topRightPaddingBox=jn>0||Ri>0?_s(Rt.left+Math.min(cn,Rt.width-qi),Rt.top+fi,cn>Rt.width+qi?0:Math.max(0,jn-qi),Math.max(0,Ri-fi),Ta.TOP_RIGHT):new bo(Rt.left+Rt.width-qi,Rt.top+fi),this.bottomRightPaddingBox=lr>0||St>0?_s(Rt.left+Math.min(In,Rt.width-Ii),Rt.top+Math.min(yn,Rt.height-tr),Math.max(0,lr-qi),Math.max(0,St-tr),Ta.BOTTOM_RIGHT):new bo(Rt.left+Rt.width-qi,Rt.top+Rt.height-tr),this.bottomLeftPaddingBox=de>0||be>0?_s(Rt.left+Ii,Rt.top+Math.min(zn,Rt.height-tr),Math.max(0,de-Ii),Math.max(0,be-tr),Ta.BOTTOM_LEFT):new bo(Rt.left+Ii,Rt.top+Rt.height-tr),this.topLeftContentBox=$e>0||Fn>0?_s(Rt.left+Ii+Ui,Rt.top+fi+Wr,Math.max(0,$e-(Ii+Ui)),Math.max(0,Fn-(fi+Wr)),Ta.TOP_LEFT):new bo(Rt.left+Ii+Ui,Rt.top+fi+Wr),this.topRightContentBox=jn>0||Ri>0?_s(Rt.left+Math.min(cn,Rt.width+Ii+Ui),Rt.top+fi+Wr,cn>Rt.width+Ii+Ui?0:jn-Ii+Ui,Ri-(fi+Wr),Ta.TOP_RIGHT):new bo(Rt.left+Rt.width-(qi+Nr),Rt.top+fi+Wr),this.bottomRightContentBox=lr>0||St>0?_s(Rt.left+Math.min(In,Rt.width-(Ii+Ui)),Rt.top+Math.min(yn,Rt.height+fi+Wr),Math.max(0,lr-(qi+Nr)),St-(tr+Hi),Ta.BOTTOM_RIGHT):new bo(Rt.left+Rt.width-(qi+Nr),Rt.top+Rt.height-(tr+Hi)),this.bottomLeftContentBox=de>0||be>0?_s(Rt.left+Ii+Ui,Rt.top+zn,Math.max(0,de-(Ii+Ui)),be-(tr+Hi),Ta.BOTTOM_LEFT):new bo(Rt.left+Ii+Ui,Rt.top+Rt.height-(tr+Hi))}return Dt}(),Ta;(function(Dt){Dt[Dt.TOP_LEFT=0]="TOP_LEFT",Dt[Dt.TOP_RIGHT=1]="TOP_RIGHT",Dt[Dt.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Dt[Dt.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ta||(Ta={}));var _s=function(Dt,kt,Ht,Rt,Be){var $e=4*((Math.sqrt(2)-1)/3),Fn=Ht*$e,ii=Rt*$e,jn=Dt+Ht,Ri=kt+Rt;switch(Be){case Ta.TOP_LEFT:return new Nl(new bo(Dt,Ri),new bo(Dt,Ri-ii),new bo(jn-Fn,kt),new bo(jn,kt));case Ta.TOP_RIGHT:return new Nl(new bo(Dt,kt),new bo(Dt+Fn,kt),new bo(jn,Ri-ii),new bo(jn,Ri));case Ta.BOTTOM_RIGHT:return new Nl(new bo(jn,kt),new bo(jn,kt+ii),new bo(Dt+Fn,Ri),new bo(Dt,Ri));case Ta.BOTTOM_LEFT:default:return new Nl(new bo(jn,Ri),new bo(jn-Fn,Ri),new bo(Dt,kt+ii),new bo(Dt,kt))}},wu=function(Dt){return[Dt.topLeftBorderBox,Dt.topRightBorderBox,Dt.bottomRightBorderBox,Dt.bottomLeftBorderBox]},du=function(Dt){return[Dt.topLeftContentBox,Dt.topRightContentBox,Dt.bottomRightContentBox,Dt.bottomLeftContentBox]},ad=function(Dt){return[Dt.topLeftPaddingBox,Dt.topRightPaddingBox,Dt.bottomRightPaddingBox,Dt.bottomLeftPaddingBox]},uc=function(){function Dt(kt,Ht,Rt){this.offsetX=kt,this.offsetY=Ht,this.matrix=Rt,this.type=0,this.target=6}return Dt}(),hh=function(){function Dt(kt,Ht){this.path=kt,this.target=Ht,this.type=1}return Dt}(),Sh=function(){function Dt(kt){this.opacity=kt,this.type=2,this.target=6}return Dt}(),kl=function(Dt){return Dt.type===0},eh=function(Dt){return Dt.type===1},Wc=function(Dt){return Dt.type===2},Jd=function(Dt,kt){return Dt.length===kt.length?Dt.some(function(Ht,Rt){return Ht===kt[Rt]}):!1},zf=function(Dt,kt,Ht,Rt,Be){return Dt.map(function($e,Fn){switch(Fn){case 0:return $e.add(kt,Ht);case 1:return $e.add(kt+Rt,Ht);case 2:return $e.add(kt+Rt,Ht+Be);case 3:return $e.add(kt,Ht+Be)}return $e})},Lh=function(){function Dt(kt){this.element=kt,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Dt}(),Sg=function(){function Dt(kt,Ht){if(this.container=kt,this.parent=Ht,this.effects=[],this.curves=new uh(this.container),this.container.styles.opacity<1&&this.effects.push(new Sh(this.container.styles.opacity)),this.container.styles.transform!==null){var Rt=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Be=this.container.bounds.top+this.container.styles.transformOrigin[1].number,$e=this.container.styles.transform;this.effects.push(new uc(Rt,Be,$e))}if(this.container.styles.overflowX!==0){var Fn=wu(this.curves),ii=ad(this.curves);Jd(Fn,ii)?this.effects.push(new hh(Fn,6)):(this.effects.push(new hh(Fn,2)),this.effects.push(new hh(ii,4)))}}return Dt.prototype.getEffects=function(kt){for(var Ht=[2,3].indexOf(this.container.styles.position)===-1,Rt=this.parent,Be=this.effects.slice(0);Rt;){var $e=Rt.effects.filter(function(jn){return!eh(jn)});if(Ht||Rt.container.styles.position!==0||!Rt.parent){if(Be.unshift.apply(Be,$e),Ht=[2,3].indexOf(Rt.container.styles.position)===-1,Rt.container.styles.overflowX!==0){var Fn=wu(Rt.curves),ii=ad(Rt.curves);Jd(Fn,ii)||Be.unshift(new hh(ii,6))}}else Be.unshift.apply(Be,$e);Rt=Rt.parent}return Be.filter(function(jn){return Ko(jn.target,kt)})},Dt}(),Md=function(Dt,kt,Ht,Rt){Dt.container.elements.forEach(function(Be){var $e=Ko(Be.flags,4),Fn=Ko(Be.flags,2),ii=new Sg(Be,Dt);Ko(Be.styles.display,2048)&&Rt.push(ii);var jn=Ko(Be.flags,8)?[]:Rt;if($e||Fn){var Ri=$e||Be.styles.isPositioned()?Ht:kt,zi=new Lh(ii);if(Be.styles.isPositioned()||Be.styles.opacity<1||Be.styles.isTransformed()){var lr=Be.styles.zIndex.order;if(lr<0){var St=0;Ri.negativeZIndex.some(function(de,be){return lr>de.element.container.styles.zIndex.order?(St=be,!1):St>0}),Ri.negativeZIndex.splice(St,0,zi)}else if(lr>0){var zt=0;Ri.positiveZIndex.some(function(de,be){return lr>=de.element.container.styles.zIndex.order?(zt=be+1,!1):zt>0}),Ri.positiveZIndex.splice(zt,0,zi)}else Ri.zeroOrAutoZIndexOrTransformedOrOpacity.push(zi)}else Be.styles.isFloating()?Ri.nonPositionedFloats.push(zi):Ri.nonPositionedInlineLevel.push(zi);Md(ii,zi,$e?zi:Ht,jn)}else Be.styles.isInlineLevel()?kt.inlineLevel.push(ii):kt.nonInlineLevel.push(ii),Md(ii,kt,Ht,jn);Ko(Be.flags,8)&&yf(Be,jn)})},yf=function(Dt,kt){for(var Ht=Dt instanceof od?Dt.start:1,Rt=Dt instanceof od?Dt.reversed:!1,Be=0;Be<kt.length;Be++){var $e=kt[Be];$e.container instanceof Qc&&typeof $e.container.value=="number"&&$e.container.value!==0&&(Ht=$e.container.value),$e.listValue=mt(Ht,$e.container.styles.listStyleType,!0),Ht+=Rt?-1:1}},wf=function(Dt){var kt=new Sg(Dt,null),Ht=new Lh(kt),Rt=[];return Md(kt,Ht,Ht,Rt),yf(kt.container,Rt),Ht},GA=function(Dt,kt){switch(kt){case 0:return Hu(Dt.topLeftBorderBox,Dt.topLeftPaddingBox,Dt.topRightBorderBox,Dt.topRightPaddingBox);case 1:return Hu(Dt.topRightBorderBox,Dt.topRightPaddingBox,Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox);case 2:return Hu(Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox);case 3:default:return Hu(Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderBox,Dt.topLeftPaddingBox)}},NA=function(Dt,kt){switch(kt){case 0:return Hu(Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox,Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox);case 1:return Hu(Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox,Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox);case 2:return Hu(Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox,Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox);case 3:default:return Hu(Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox,Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox)}},Kf=function(Dt,kt){switch(kt){case 0:return Hu(Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox,Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox);case 1:return Hu(Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox,Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox);case 2:return Hu(Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox);case 3:default:return Hu(Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox)}},WA=function(Dt,kt){switch(kt){case 0:return Nd(Dt.topLeftBorderStroke,Dt.topRightBorderStroke);case 1:return Nd(Dt.topRightBorderStroke,Dt.bottomRightBorderStroke);case 2:return Nd(Dt.bottomRightBorderStroke,Dt.bottomLeftBorderStroke);case 3:default:return Nd(Dt.bottomLeftBorderStroke,Dt.topLeftBorderStroke)}},Nd=function(Dt,kt){var Ht=[];return Il(Dt)?Ht.push(Dt.subdivide(.5,!1)):Ht.push(Dt),Il(kt)?Ht.push(kt.subdivide(.5,!0)):Ht.push(kt),Ht},Hu=function(Dt,kt,Ht,Rt){var Be=[];return Il(Dt)?Be.push(Dt.subdivide(.5,!1)):Be.push(Dt),Il(Ht)?Be.push(Ht.subdivide(.5,!0)):Be.push(Ht),Il(Rt)?Be.push(Rt.subdivide(.5,!0).reverse()):Be.push(Rt),Il(kt)?Be.push(kt.subdivide(.5,!1).reverse()):Be.push(kt),Be},nh=function(Dt){var kt=Dt.bounds,Ht=Dt.styles;return kt.add(Ht.borderLeftWidth,Ht.borderTopWidth,-(Ht.borderRightWidth+Ht.borderLeftWidth),-(Ht.borderTopWidth+Ht.borderBottomWidth))},Gf=function(Dt){var kt=Dt.styles,Ht=Dt.bounds,Rt=il(kt.paddingLeft,Ht.width),Be=il(kt.paddingRight,Ht.width),$e=il(kt.paddingTop,Ht.width),Fn=il(kt.paddingBottom,Ht.width);return Ht.add(Rt+kt.borderLeftWidth,$e+kt.borderTopWidth,-(kt.borderRightWidth+kt.borderLeftWidth+Rt+Be),-(kt.borderTopWidth+kt.borderBottomWidth+$e+Fn))},Sp=function(Dt,kt){return Dt===0?kt.bounds:Dt===2?Gf(kt):nh(kt)},zg=function(Dt,kt){return Dt===0?kt.bounds:Dt===2?Gf(kt):nh(kt)},VA=function(Dt,kt,Ht){var Rt=Sp(bc(Dt.styles.backgroundOrigin,kt),Dt),Be=zg(bc(Dt.styles.backgroundClip,kt),Dt),$e=Cp(bc(Dt.styles.backgroundSize,kt),Ht,Rt),Fn=$e[0],ii=$e[1],jn=nc(bc(Dt.styles.backgroundPosition,kt),Rt.width-Fn,Rt.height-ii),Ri=Ec(bc(Dt.styles.backgroundRepeat,kt),jn,$e,Rt,Be),zi=Math.round(Rt.left+jn[0]),lr=Math.round(Rt.top+jn[1]);return[Ri,zi,lr,Fn,ii]},ZA=function(Dt){return Oa(Dt)&&Dt.value===Qt.AUTO},Wf=function(Dt){return typeof Dt=="number"},Cp=function(Dt,kt,Ht){var Rt=kt[0],Be=kt[1],$e=kt[2],Fn=Dt[0],ii=Dt[1];if(!Fn)return[0,0];if(zo(Fn)&&ii&&zo(ii))return[il(Fn,Ht.width),il(ii,Ht.height)];var jn=Wf($e);if(Oa(Fn)&&(Fn.value===Qt.CONTAIN||Fn.value===Qt.COVER)){if(Wf($e)){var Ri=Ht.width/Ht.height;return Ri<$e!=(Fn.value===Qt.COVER)?[Ht.width,Ht.width/$e]:[Ht.height*$e,Ht.height]}return[Ht.width,Ht.height]}var zi=Wf(Rt),lr=Wf(Be),St=zi||lr;if(ZA(Fn)&&(!ii||ZA(ii))){if(zi&&lr)return[Rt,Be];if(!jn&&!St)return[Ht.width,Ht.height];if(St&&jn){var zt=zi?Rt:Be*$e,de=lr?Be:Rt/$e;return[zt,de]}var be=zi?Rt:Ht.width,rn=lr?Be:Ht.height;return[be,rn]}if(jn){var hn=0,cn=0;return zo(Fn)?hn=il(Fn,Ht.width):zo(ii)&&(cn=il(ii,Ht.height)),ZA(Fn)?hn=cn*$e:(!ii||ZA(ii))&&(cn=hn/$e),[hn,cn]}var yn=null,In=null;if(zo(Fn)?yn=il(Fn,Ht.width):ii&&zo(ii)&&(In=il(ii,Ht.height)),yn!==null&&(!ii||ZA(ii))&&(In=zi&&lr?yn/Rt*Be:Ht.height),In!==null&&ZA(Fn)&&(yn=zi&&lr?In/Be*Rt:Ht.width),yn!==null&&In!==null)return[yn,In];throw new Error("Unable to calculate background-size for element")},bc=function(Dt,kt){var Ht=Dt[kt];return typeof Ht=="undefined"?Dt[0]:Ht},Ec=function(Dt,kt,Ht,Rt,Be){var $e=kt[0],Fn=kt[1],ii=Ht[0],jn=Ht[1];switch(Dt){case 2:return[new bo(Math.round(Rt.left),Math.round(Rt.top+Fn)),new bo(Math.round(Rt.left+Rt.width),Math.round(Rt.top+Fn)),new bo(Math.round(Rt.left+Rt.width),Math.round(jn+Rt.top+Fn)),new bo(Math.round(Rt.left),Math.round(jn+Rt.top+Fn))];case 3:return[new bo(Math.round(Rt.left+$e),Math.round(Rt.top)),new bo(Math.round(Rt.left+$e+ii),Math.round(Rt.top)),new bo(Math.round(Rt.left+$e+ii),Math.round(Rt.height+Rt.top)),new bo(Math.round(Rt.left+$e),Math.round(Rt.height+Rt.top))];case 1:return[new bo(Math.round(Rt.left+$e),Math.round(Rt.top+Fn)),new bo(Math.round(Rt.left+$e+ii),Math.round(Rt.top+Fn)),new bo(Math.round(Rt.left+$e+ii),Math.round(Rt.top+Fn+jn)),new bo(Math.round(Rt.left+$e),Math.round(Rt.top+Fn+jn))];default:return[new bo(Math.round(Be.left),Math.round(Be.top)),new bo(Math.round(Be.left+Be.width),Math.round(Be.top)),new bo(Math.round(Be.left+Be.width),Math.round(Be.height+Be.top)),new bo(Math.round(Be.left),Math.round(Be.height+Be.top))]}},Id="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ld="Hidden Text",kd=function(){function Dt(kt){this._data={},this._document=kt}return Dt.prototype.parseMetrics=function(kt,Ht){var Rt=this._document.createElement("div"),Be=this._document.createElement("img"),$e=this._document.createElement("span"),Fn=this._document.body;Rt.style.visibility="hidden",Rt.style.fontFamily=kt,Rt.style.fontSize=Ht,Rt.style.margin="0",Rt.style.padding="0",Rt.style.whiteSpace="nowrap",Fn.appendChild(Rt),Be.src=Id,Be.width=1,Be.height=1,Be.style.margin="0",Be.style.padding="0",Be.style.verticalAlign="baseline",$e.style.fontFamily=kt,$e.style.fontSize=Ht,$e.style.margin="0",$e.style.padding="0",$e.appendChild(this._document.createTextNode(ld)),Rt.appendChild($e),Rt.appendChild(Be);var ii=Be.offsetTop-$e.offsetTop+2;Rt.removeChild($e),Rt.appendChild(this._document.createTextNode(ld)),Rt.style.lineHeight="normal",Be.style.verticalAlign="super";var jn=Be.offsetTop-Rt.offsetTop+2;return Fn.removeChild(Rt),{baseline:ii,middle:jn}},Dt.prototype.getMetrics=function(kt,Ht){var Rt=kt+" "+Ht;return typeof this._data[Rt]=="undefined"&&(this._data[Rt]=this.parseMetrics(kt,Ht)),this._data[Rt]},Dt}(),Td=function(){function Dt(kt,Ht){this.context=kt,this.options=Ht}return Dt}(),Tu=1e4,XA=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be._activeEffects=[],Be.canvas=Rt.canvas?Rt.canvas:document.createElement("canvas"),Be.ctx=Be.canvas.getContext("2d"),Rt.canvas||(Be.canvas.width=Math.floor(Rt.width*Rt.scale),Be.canvas.height=Math.floor(Rt.height*Rt.scale),Be.canvas.style.width=Rt.width+"px",Be.canvas.style.height=Rt.height+"px"),Be.fontMetrics=new kd(document),Be.ctx.scale(Be.options.scale,Be.options.scale),Be.ctx.translate(-Rt.x,-Rt.y),Be.ctx.textBaseline="bottom",Be._activeEffects=[],Be.context.logger.debug("Canvas renderer initialized ("+Rt.width+"x"+Rt.height+") with scale "+Rt.scale),Be}return kt.prototype.applyEffects=function(Ht){for(var Rt=this;this._activeEffects.length;)this.popEffect();Ht.forEach(function(Be){return Rt.applyEffect(Be)})},kt.prototype.applyEffect=function(Ht){this.ctx.save(),Wc(Ht)&&(this.ctx.globalAlpha=Ht.opacity),kl(Ht)&&(this.ctx.translate(Ht.offsetX,Ht.offsetY),this.ctx.transform(Ht.matrix[0],Ht.matrix[1],Ht.matrix[2],Ht.matrix[3],Ht.matrix[4],Ht.matrix[5]),this.ctx.translate(-Ht.offsetX,-Ht.offsetY)),eh(Ht)&&(this.path(Ht.path),this.ctx.clip()),this._activeEffects.push(Ht)},kt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},kt.prototype.renderStack=function(Ht){return ce(this,void 0,void 0,function(){var Rt;return re(this,function(Be){switch(Be.label){case 0:return Rt=Ht.element.container.styles,Rt.isVisible()?[4,this.renderStackContent(Ht)]:[3,2];case 1:Be.sent(),Be.label=2;case 2:return[2]}})})},kt.prototype.renderNode=function(Ht){return ce(this,void 0,void 0,function(){return re(this,function(Rt){switch(Rt.label){case 0:if(Ko(Ht.container.flags,16))debugger;return Ht.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ht)]:[3,3];case 1:return Rt.sent(),[4,this.renderNodeContent(Ht)];case 2:Rt.sent(),Rt.label=3;case 3:return[2]}})})},kt.prototype.renderTextWithLetterSpacing=function(Ht,Rt,Be){var $e=this;if(Rt===0)this.ctx.fillText(Ht.text,Ht.bounds.left,Ht.bounds.top+Be);else{var Fn=Za(Ht.text);Fn.reduce(function(ii,jn){return $e.ctx.fillText(jn,ii,Ht.bounds.top+Be),ii+$e.ctx.measureText(jn).width},Ht.bounds.left)}},kt.prototype.createFontStyle=function(Ht){var Rt=Ht.fontVariant.filter(function(Fn){return Fn==="normal"||Fn==="small-caps"}).join(""),Be=Gg(Ht.fontFamily).join(", "),$e=Xa(Ht.fontSize)?""+Ht.fontSize.number+Ht.fontSize.unit:Ht.fontSize.number+"px";return[[Ht.fontStyle,Rt,Ht.fontWeight,$e,Be].join(" "),Be,$e]},kt.prototype.renderTextNode=function(Ht,Rt){return ce(this,void 0,void 0,function(){var Be,$e,Fn,ii,jn,Ri,zi,lr,St=this;return re(this,function(zt){return Be=this.createFontStyle(Rt),$e=Be[0],Fn=Be[1],ii=Be[2],this.ctx.font=$e,this.ctx.direction=Rt.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",jn=this.fontMetrics.getMetrics(Fn,ii),Ri=jn.baseline,zi=jn.middle,lr=Rt.paintOrder,Ht.textBounds.forEach(function(de){lr.forEach(function(be){switch(be){case 0:St.ctx.fillStyle=da(Rt.color),St.renderTextWithLetterSpacing(de,Rt.letterSpacing,Ri);var rn=Rt.textShadow;rn.length&&de.text.trim().length&&(rn.slice(0).reverse().forEach(function(hn){St.ctx.shadowColor=da(hn.color),St.ctx.shadowOffsetX=hn.offsetX.number*St.options.scale,St.ctx.shadowOffsetY=hn.offsetY.number*St.options.scale,St.ctx.shadowBlur=hn.blur.number,St.renderTextWithLetterSpacing(de,Rt.letterSpacing,Ri)}),St.ctx.shadowColor="",St.ctx.shadowOffsetX=0,St.ctx.shadowOffsetY=0,St.ctx.shadowBlur=0),Rt.textDecorationLine.length&&(St.ctx.fillStyle=da(Rt.textDecorationColor||Rt.color),Rt.textDecorationLine.forEach(function(hn){switch(hn){case 1:St.ctx.fillRect(de.bounds.left,Math.round(de.bounds.top+Ri),de.bounds.width,1);break;case 2:St.ctx.fillRect(de.bounds.left,Math.round(de.bounds.top),de.bounds.width,1);break;case 3:St.ctx.fillRect(de.bounds.left,Math.ceil(de.bounds.top+zi),de.bounds.width,1);break}}));break;case 1:Rt.webkitTextStrokeWidth&&de.text.trim().length&&(St.ctx.strokeStyle=da(Rt.webkitTextStrokeColor),St.ctx.lineWidth=Rt.webkitTextStrokeWidth,St.ctx.lineJoin=window.chrome?"miter":"round",St.ctx.strokeText(de.text,de.bounds.left,de.bounds.top+Ri)),St.ctx.strokeStyle="",St.ctx.lineWidth=0,St.ctx.lineJoin="miter";break}})}),[2]})})},kt.prototype.renderReplacedElement=function(Ht,Rt,Be){if(Be&&Ht.intrinsicWidth>0&&Ht.intrinsicHeight>0){var $e=Gf(Ht),Fn=ad(Rt);this.path(Fn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Be,0,0,Ht.intrinsicWidth,Ht.intrinsicHeight,$e.left,$e.top,$e.width,$e.height),this.ctx.restore()}},kt.prototype.renderNodeContent=function(Ht){return ce(this,void 0,void 0,function(){var Rt,Be,$e,Fn,ii,jn,cn,cn,Ri,zi,lr,St,In,zt,de,zn,be,rn,hn,cn,yn,In,zn;return re(this,function(fi){switch(fi.label){case 0:this.applyEffects(Ht.getEffects(4)),Rt=Ht.container,Be=Ht.curves,$e=Rt.styles,Fn=0,ii=Rt.textNodes,fi.label=1;case 1:return Fn<ii.length?(jn=ii[Fn],[4,this.renderTextNode(jn,$e)]):[3,4];case 2:fi.sent(),fi.label=3;case 3:return Fn++,[3,1];case 4:if(!(Rt instanceof PA))return[3,8];fi.label=5;case 5:return fi.trys.push([5,7,,8]),[4,this.context.cache.match(Rt.src)];case 6:return cn=fi.sent(),this.renderReplacedElement(Rt,Be,cn),[3,8];case 7:return fi.sent(),this.context.logger.error("Error loading image "+Rt.src),[3,8];case 8:if(Rt instanceof Hc&&this.renderReplacedElement(Rt,Be,Rt.canvas),!(Rt instanceof sc))return[3,12];fi.label=9;case 9:return fi.trys.push([9,11,,12]),[4,this.context.cache.match(Rt.svg)];case 10:return cn=fi.sent(),this.renderReplacedElement(Rt,Be,cn),[3,12];case 11:return fi.sent(),this.context.logger.error("Error loading svg "+Rt.svg.substring(0,255)),[3,12];case 12:return Rt instanceof cA&&Rt.tree?(Ri=new kt(this.context,{scale:this.options.scale,backgroundColor:Rt.backgroundColor,x:0,y:0,width:Rt.width,height:Rt.height}),[4,Ri.render(Rt.tree)]):[3,14];case 13:zi=fi.sent(),Rt.width&&Rt.height&&this.ctx.drawImage(zi,0,0,Rt.width,Rt.height,Rt.bounds.left,Rt.bounds.top,Rt.bounds.width,Rt.bounds.height),fi.label=14;case 14:if(Rt instanceof Dh&&(lr=Math.min(Rt.bounds.width,Rt.bounds.height),Rt.type===bd?Rt.checked&&(this.ctx.save(),this.path([new bo(Rt.bounds.left+lr*.39363,Rt.bounds.top+lr*.79),new bo(Rt.bounds.left+lr*.16,Rt.bounds.top+lr*.5549),new bo(Rt.bounds.left+lr*.27347,Rt.bounds.top+lr*.44071),new bo(Rt.bounds.left+lr*.39694,Rt.bounds.top+lr*.5649),new bo(Rt.bounds.left+lr*.72983,Rt.bounds.top+lr*.23),new bo(Rt.bounds.left+lr*.84,Rt.bounds.top+lr*.34085),new bo(Rt.bounds.left+lr*.39363,Rt.bounds.top+lr*.79)]),this.ctx.fillStyle=da(hA),this.ctx.fill(),this.ctx.restore()):Rt.type===zc&&Rt.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Rt.bounds.left+lr/2,Rt.bounds.top+lr/2,lr/4,0,Math.PI*2,!0),this.ctx.fillStyle=da(hA),this.ctx.fill(),this.ctx.restore())),lm(Rt)&&Rt.value.length){switch(St=this.createFontStyle($e),In=St[0],zt=St[1],de=this.fontMetrics.getMetrics(In,zt).baseline,this.ctx.font=In,this.ctx.fillStyle=da($e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=js(Rt.styles.textAlign),zn=Gf(Rt),be=0,Rt.styles.textAlign){case 1:be+=zn.width/2;break;case 2:be+=zn.width;break}rn=zn.add(be,0,0,-zn.height/2+1),this.ctx.save(),this.path([new bo(zn.left,zn.top),new bo(zn.left+zn.width,zn.top),new bo(zn.left+zn.width,zn.top+zn.height),new bo(zn.left,zn.top+zn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new vu(Rt.value,rn),$e.letterSpacing,de),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ko(Rt.styles.display,2048))return[3,20];if(Rt.styles.listStyleImage===null)return[3,19];if(hn=Rt.styles.listStyleImage,hn.type!==0)return[3,18];cn=void 0,yn=hn.url,fi.label=15;case 15:return fi.trys.push([15,17,,18]),[4,this.context.cache.match(yn)];case 16:return cn=fi.sent(),this.ctx.drawImage(cn,Rt.bounds.left-(cn.width+10),Rt.bounds.top),[3,18];case 17:return fi.sent(),this.context.logger.error("Error loading list-style-image "+yn),[3,18];case 18:return[3,20];case 19:Ht.listValue&&Rt.styles.listStyleType!==-1&&(In=this.createFontStyle($e)[0],this.ctx.font=In,this.ctx.fillStyle=da($e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",zn=new ee(Rt.bounds.left,Rt.bounds.top+il(Rt.styles.paddingTop,Rt.bounds.width),Rt.bounds.width,Tn($e.lineHeight,$e.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new vu(Ht.listValue,zn),$e.letterSpacing,Tn($e.lineHeight,$e.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),fi.label=20;case 20:return[2]}})})},kt.prototype.renderStackContent=function(Ht){return ce(this,void 0,void 0,function(){var Rt,Be,hn,$e,Fn,hn,ii,jn,hn,Ri,zi,hn,lr,St,hn,zt,de,hn,be,rn,hn;return re(this,function(cn){switch(cn.label){case 0:if(Ko(Ht.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ht.element)];case 1:cn.sent(),Rt=0,Be=Ht.negativeZIndex,cn.label=2;case 2:return Rt<Be.length?(hn=Be[Rt],[4,this.renderStack(hn)]):[3,5];case 3:cn.sent(),cn.label=4;case 4:return Rt++,[3,2];case 5:return[4,this.renderNodeContent(Ht.element)];case 6:cn.sent(),$e=0,Fn=Ht.nonInlineLevel,cn.label=7;case 7:return $e<Fn.length?(hn=Fn[$e],[4,this.renderNode(hn)]):[3,10];case 8:cn.sent(),cn.label=9;case 9:return $e++,[3,7];case 10:ii=0,jn=Ht.nonPositionedFloats,cn.label=11;case 11:return ii<jn.length?(hn=jn[ii],[4,this.renderStack(hn)]):[3,14];case 12:cn.sent(),cn.label=13;case 13:return ii++,[3,11];case 14:Ri=0,zi=Ht.nonPositionedInlineLevel,cn.label=15;case 15:return Ri<zi.length?(hn=zi[Ri],[4,this.renderStack(hn)]):[3,18];case 16:cn.sent(),cn.label=17;case 17:return Ri++,[3,15];case 18:lr=0,St=Ht.inlineLevel,cn.label=19;case 19:return lr<St.length?(hn=St[lr],[4,this.renderNode(hn)]):[3,22];case 20:cn.sent(),cn.label=21;case 21:return lr++,[3,19];case 22:zt=0,de=Ht.zeroOrAutoZIndexOrTransformedOrOpacity,cn.label=23;case 23:return zt<de.length?(hn=de[zt],[4,this.renderStack(hn)]):[3,26];case 24:cn.sent(),cn.label=25;case 25:return zt++,[3,23];case 26:be=0,rn=Ht.positiveZIndex,cn.label=27;case 27:return be<rn.length?(hn=rn[be],[4,this.renderStack(hn)]):[3,30];case 28:cn.sent(),cn.label=29;case 29:return be++,[3,27];case 30:return[2]}})})},kt.prototype.mask=function(Ht){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(Ht.slice(0).reverse()),this.ctx.closePath()},kt.prototype.path=function(Ht){this.ctx.beginPath(),this.formatPath(Ht),this.ctx.closePath()},kt.prototype.formatPath=function(Ht){var Rt=this;Ht.forEach(function(Be,$e){var Fn=Il(Be)?Be.start:Be;$e===0?Rt.ctx.moveTo(Fn.x,Fn.y):Rt.ctx.lineTo(Fn.x,Fn.y),Il(Be)&&Rt.ctx.bezierCurveTo(Be.startControl.x,Be.startControl.y,Be.endControl.x,Be.endControl.y,Be.end.x,Be.end.y)})},kt.prototype.renderRepeat=function(Ht,Rt,Be,$e){this.path(Ht),this.ctx.fillStyle=Rt,this.ctx.translate(Be,$e),this.ctx.fill(),this.ctx.translate(-Be,-$e)},kt.prototype.resizeImage=function(Ht,Rt,Be){var $e;if(Ht.width===Rt&&Ht.height===Be)return Ht;var Fn=($e=this.canvas.ownerDocument)!==null&&$e!==void 0?$e:document,ii=Fn.createElement("canvas");ii.width=Math.max(1,Rt),ii.height=Math.max(1,Be);var jn=ii.getContext("2d");return jn.drawImage(Ht,0,0,Ht.width,Ht.height,0,0,Rt,Be),ii},kt.prototype.renderBackgroundImage=function(Ht){return ce(this,void 0,void 0,function(){var Rt,Be,$e,Fn,ii,jn;return re(this,function(Ri){switch(Ri.label){case 0:Rt=Ht.styles.backgroundImage.length-1,Be=function(zi){var lr,St,zt,Wr,$r,ls,Ui,Qr,tr,de,Wr,$r,ls,Ui,Qr,be,rn,hn,cn,yn,In,zn,fi,qi,tr,Ii,Wr,Nr,Hi,Ui,Qr,uo,$r,ls,Jo,ci,os,Bl,Pl,el,za,Ra;return re(this,function(hl){switch(hl.label){case 0:if(zi.type!==0)return[3,5];lr=void 0,St=zi.url,hl.label=1;case 1:return hl.trys.push([1,3,,4]),[4,$e.context.cache.match(St)];case 2:return lr=hl.sent(),[3,4];case 3:return hl.sent(),$e.context.logger.error("Error loading background-image "+St),[3,4];case 4:return lr&&(zt=VA(Ht,Rt,[lr.width,lr.height,lr.width/lr.height]),Wr=zt[0],$r=zt[1],ls=zt[2],Ui=zt[3],Qr=zt[4],tr=$e.ctx.createPattern($e.resizeImage(lr,Ui,Qr),"repeat"),$e.renderRepeat(Wr,tr,$r,ls)),[3,6];case 5:wd(zi)?(de=VA(Ht,Rt,[null,null,null]),Wr=de[0],$r=de[1],ls=de[2],Ui=de[3],Qr=de[4],be=ic(zi.angle,Ui,Qr),rn=be[0],hn=be[1],cn=be[2],yn=be[3],In=be[4],zn=document.createElement("canvas"),zn.width=Ui,zn.height=Qr,fi=zn.getContext("2d"),qi=fi.createLinearGradient(hn,yn,cn,In),Vi(zi.stops,rn).forEach(function(Ma){return qi.addColorStop(Ma.stop,da(Ma.color))}),fi.fillStyle=qi,fi.fillRect(0,0,Ui,Qr),Ui>0&&Qr>0&&(tr=$e.ctx.createPattern(zn,"repeat"),$e.renderRepeat(Wr,tr,$r,ls))):Ea(zi)&&(Ii=VA(Ht,Rt,[null,null,null]),Wr=Ii[0],Nr=Ii[1],Hi=Ii[2],Ui=Ii[3],Qr=Ii[4],uo=zi.position.length===0?[yd]:zi.position,$r=il(uo[0],Ui),ls=il(uo[uo.length-1],Qr),Jo=Ph(zi,$r,ls,Ui,Qr),ci=Jo[0],os=Jo[1],ci>0&&os>0&&(Bl=$e.ctx.createRadialGradient(Nr+$r,Hi+ls,0,Nr+$r,Hi+ls,ci),Vi(zi.stops,ci*2).forEach(function(Ma){return Bl.addColorStop(Ma.stop,da(Ma.color))}),$e.path(Wr),$e.ctx.fillStyle=Bl,ci!==os?(Pl=Ht.bounds.left+.5*Ht.bounds.width,el=Ht.bounds.top+.5*Ht.bounds.height,za=os/ci,Ra=1/za,$e.ctx.save(),$e.ctx.translate(Pl,el),$e.ctx.transform(1,0,0,za,0,0),$e.ctx.translate(-Pl,-el),$e.ctx.fillRect(Nr,Ra*(Hi-el)+el,Ui,Qr*Ra),$e.ctx.restore()):$e.ctx.fill())),hl.label=6;case 6:return Rt--,[2]}})},$e=this,Fn=0,ii=Ht.styles.backgroundImage.slice(0).reverse(),Ri.label=1;case 1:return Fn<ii.length?(jn=ii[Fn],[5,Be(jn)]):[3,4];case 2:Ri.sent(),Ri.label=3;case 3:return Fn++,[3,1];case 4:return[2]}})})},kt.prototype.renderSolidBorder=function(Ht,Rt,Be){return ce(this,void 0,void 0,function(){return re(this,function($e){return this.path(GA(Be,Rt)),this.ctx.fillStyle=da(Ht),this.ctx.fill(),[2]})})},kt.prototype.renderDoubleBorder=function(Ht,Rt,Be,$e){return ce(this,void 0,void 0,function(){var Fn,ii;return re(this,function(jn){switch(jn.label){case 0:return Rt<3?[4,this.renderSolidBorder(Ht,Be,$e)]:[3,2];case 1:return jn.sent(),[2];case 2:return Fn=NA($e,Be),this.path(Fn),this.ctx.fillStyle=da(Ht),this.ctx.fill(),ii=Kf($e,Be),this.path(ii),this.ctx.fill(),[2]}})})},kt.prototype.renderNodeBackgroundAndBorders=function(Ht){return ce(this,void 0,void 0,function(){var Rt,Be,$e,Fn,ii,jn,Ri,zi,lr=this;return re(this,function(St){switch(St.label){case 0:return this.applyEffects(Ht.getEffects(2)),Rt=Ht.container.styles,Be=!Ha(Rt.backgroundColor)||Rt.backgroundImage.length,$e=[{style:Rt.borderTopStyle,color:Rt.borderTopColor,width:Rt.borderTopWidth},{style:Rt.borderRightStyle,color:Rt.borderRightColor,width:Rt.borderRightWidth},{style:Rt.borderBottomStyle,color:Rt.borderBottomColor,width:Rt.borderBottomWidth},{style:Rt.borderLeftStyle,color:Rt.borderLeftColor,width:Rt.borderLeftWidth}],Fn=xf(bc(Rt.backgroundClip,0),Ht.curves),Be||Rt.boxShadow.length?(this.ctx.save(),this.path(Fn),this.ctx.clip(),Ha(Rt.backgroundColor)||(this.ctx.fillStyle=da(Rt.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ht.container)]):[3,2];case 1:St.sent(),this.ctx.restore(),Rt.boxShadow.slice(0).reverse().forEach(function(zt){lr.ctx.save();var de=wu(Ht.curves),be=zt.inset?0:Tu,rn=zf(de,-be+(zt.inset?1:-1)*zt.spread.number,(zt.inset?1:-1)*zt.spread.number,zt.spread.number*(zt.inset?-2:2),zt.spread.number*(zt.inset?-2:2));zt.inset?(lr.path(de),lr.ctx.clip(),lr.mask(rn)):(lr.mask(de),lr.ctx.clip(),lr.path(rn)),lr.ctx.shadowOffsetX=zt.offsetX.number+be,lr.ctx.shadowOffsetY=zt.offsetY.number,lr.ctx.shadowColor=da(zt.color),lr.ctx.shadowBlur=zt.blur.number,lr.ctx.fillStyle=zt.inset?da(zt.color):"rgba(0,0,0,1)",lr.ctx.fill(),lr.ctx.restore()}),St.label=2;case 2:ii=0,jn=0,Ri=$e,St.label=3;case 3:return jn<Ri.length?(zi=Ri[jn],zi.style!==0&&!Ha(zi.color)&&zi.width>0?zi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(zi.color,zi.width,ii,Ht.curves,2)]:[3,11]):[3,13];case 4:return St.sent(),[3,11];case 5:return zi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(zi.color,zi.width,ii,Ht.curves,3)];case 6:return St.sent(),[3,11];case 7:return zi.style!==4?[3,9]:[4,this.renderDoubleBorder(zi.color,zi.width,ii,Ht.curves)];case 8:return St.sent(),[3,11];case 9:return[4,this.renderSolidBorder(zi.color,ii,Ht.curves)];case 10:St.sent(),St.label=11;case 11:ii++,St.label=12;case 12:return jn++,[3,3];case 13:return[2]}})})},kt.prototype.renderDashedDottedBorder=function(Ht,Rt,Be,$e,Fn){return ce(this,void 0,void 0,function(){var ii,jn,Ri,zi,lr,St,zt,de,be,rn,hn,cn,yn,In,zn,fi,zn,fi;return re(this,function(qi){return this.ctx.save(),ii=WA($e,Be),jn=GA($e,Be),Fn===2&&(this.path(jn),this.ctx.clip()),Il(jn[0])?(Ri=jn[0].start.x,zi=jn[0].start.y):(Ri=jn[0].x,zi=jn[0].y),Il(jn[1])?(lr=jn[1].end.x,St=jn[1].end.y):(lr=jn[1].x,St=jn[1].y),Be===0||Be===2?zt=Math.abs(Ri-lr):zt=Math.abs(zi-St),this.ctx.beginPath(),Fn===3?this.formatPath(ii):this.formatPath(jn.slice(0,2)),de=Rt<3?Rt*3:Rt*2,be=Rt<3?Rt*2:Rt,Fn===3&&(de=Rt,be=Rt),rn=!0,zt<=de*2?rn=!1:zt<=de*2+be?(hn=zt/(2*de+be),de*=hn,be*=hn):(cn=Math.floor((zt+be)/(de+be)),yn=(zt-cn*de)/(cn-1),In=(zt-(cn+1)*de)/cn,be=In<=0||Math.abs(be-yn)<Math.abs(be-In)?yn:In),rn&&(Fn===3?this.ctx.setLineDash([0,de+be]):this.ctx.setLineDash([de,be])),Fn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Rt):this.ctx.lineWidth=Rt*2+1.1,this.ctx.strokeStyle=da(Ht),this.ctx.stroke(),this.ctx.setLineDash([]),Fn===2&&(Il(jn[0])&&(zn=jn[3],fi=jn[0],this.ctx.beginPath(),this.formatPath([new bo(zn.end.x,zn.end.y),new bo(fi.start.x,fi.start.y)]),this.ctx.stroke()),Il(jn[1])&&(zn=jn[1],fi=jn[2],this.ctx.beginPath(),this.formatPath([new bo(zn.end.x,zn.end.y),new bo(fi.start.x,fi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},kt.prototype.render=function(Ht){return ce(this,void 0,void 0,function(){var Rt;return re(this,function(Be){switch(Be.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=da(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Rt=wf(Ht),[4,this.renderStack(Rt)];case 1:return Be.sent(),this.applyEffects([]),[2,this.canvas]}})})},kt}(Td),lm=function(Dt){return Dt instanceof EA||Dt instanceof bA?!0:Dt instanceof Dh&&Dt.type!==zc&&Dt.type!==bd},xf=function(Dt,kt){switch(Dt){case 0:return wu(kt);case 2:return du(kt);case 1:default:return ad(kt)}},js=function(Dt){switch(Dt){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Kg=["-apple-system","system-ui"],Gg=function(Dt){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Dt.filter(function(kt){return Kg.indexOf(kt)===-1}):Dt},Wg=function(Dt){Ft(kt,Dt);function kt(Ht,Rt){var Be=Dt.call(this,Ht,Rt)||this;return Be.canvas=Rt.canvas?Rt.canvas:document.createElement("canvas"),Be.ctx=Be.canvas.getContext("2d"),Be.options=Rt,Be.canvas.width=Math.floor(Rt.width*Rt.scale),Be.canvas.height=Math.floor(Rt.height*Rt.scale),Be.canvas.style.width=Rt.width+"px",Be.canvas.style.height=Rt.height+"px",Be.ctx.scale(Be.options.scale,Be.options.scale),Be.ctx.translate(-Rt.x,-Rt.y),Be.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Rt.width+"x"+Rt.height+" at "+Rt.x+","+Rt.y+") with scale "+Rt.scale),Be}return kt.prototype.render=function(Ht){return ce(this,void 0,void 0,function(){var Rt,Be;return re(this,function($e){switch($e.label){case 0:return Rt=Bd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ht),[4,IA(Rt)];case 1:return Be=$e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=da(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Be,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},kt}(Td),IA=function(Dt){return new Promise(function(kt,Ht){var Rt=new Image;Rt.onload=function(){kt(Rt)},Rt.onerror=Ht,Rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},kA=function(){function Dt(kt){var Ht=kt.id,Rt=kt.enabled;this.id=Ht,this.enabled=Rt,this.start=Date.now()}return Dt.prototype.debug=function(){for(var kt=[],Ht=0;Ht<arguments.length;Ht++)kt[Ht]=arguments[Ht];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ie([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Dt.prototype.getTime=function(){return Date.now()-this.start},Dt.prototype.info=function(){for(var kt=[],Ht=0;Ht<arguments.length;Ht++)kt[Ht]=arguments[Ht];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ie([this.id,this.getTime()+"ms"],kt))},Dt.prototype.warn=function(){for(var kt=[],Ht=0;Ht<arguments.length;Ht++)kt[Ht]=arguments[Ht];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ie([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Dt.prototype.error=function(){for(var kt=[],Ht=0;Ht<arguments.length;Ht++)kt[Ht]=arguments[Ht];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ie([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Dt.instances={},Dt}(),Fc=function(){function Dt(kt,Ht){var Rt;this.windowBounds=Ht,this.instanceName="#"+Dt.instanceCount++,this.logger=new kA({id:this.instanceName,enabled:kt.logging}),this.cache=(Rt=kt.cache)!==null&&Rt!==void 0?Rt:new na(this,kt)}return Dt.instanceCount=1,Dt}(),Vf=function(Dt,kt){return kt===void 0&&(kt={}),Cg(Dt,kt)};typeof window!="undefined"&&Io.setContext(window);var Cg=function(Dt,kt){return ce(void 0,void 0,void 0,function(){var Ht,Rt,Be,$e,Fn,ii,jn,Ri,zi,lr,St,zt,de,be,rn,hn,cn,yn,In,zn,qi,fi,qi,tr,Ii,Wr,Nr,Hi,Ui,Qr,uo,$r,ls,Jo,ci,os,Bl,Pl,el,za;return re(this,function(Ra){switch(Ra.label){case 0:if(!Dt||typeof Dt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Ht=Dt.ownerDocument,!Ht)throw new Error("Element is not attached to a Document");if(Rt=Ht.defaultView,!Rt)throw new Error("Document is not attached to a Window");return Be={allowTaint:(tr=kt.allowTaint)!==null&&tr!==void 0?tr:!1,imageTimeout:(Ii=kt.imageTimeout)!==null&&Ii!==void 0?Ii:15e3,proxy:kt.proxy,useCORS:(Wr=kt.useCORS)!==null&&Wr!==void 0?Wr:!1},$e=Lt({logging:(Nr=kt.logging)!==null&&Nr!==void 0?Nr:!0,cache:kt.cache},Be),Fn={windowWidth:(Hi=kt.windowWidth)!==null&&Hi!==void 0?Hi:Rt.innerWidth,windowHeight:(Ui=kt.windowHeight)!==null&&Ui!==void 0?Ui:Rt.innerHeight,scrollX:(Qr=kt.scrollX)!==null&&Qr!==void 0?Qr:Rt.pageXOffset,scrollY:(uo=kt.scrollY)!==null&&uo!==void 0?uo:Rt.pageYOffset},ii=new ee(Fn.scrollX,Fn.scrollY,Fn.windowWidth,Fn.windowHeight),jn=new Fc($e,ii),Ri=($r=kt.foreignObjectRendering)!==null&&$r!==void 0?$r:!1,zi={allowTaint:(ls=kt.allowTaint)!==null&&ls!==void 0?ls:!1,onclone:kt.onclone,ignoreElements:kt.ignoreElements,inlineImages:Ri,copyStyles:Ri},jn.logger.debug("Starting document clone with size "+ii.width+"x"+ii.height+" scrolled to "+-ii.left+","+-ii.top),lr=new Bt(jn,Dt,zi),St=lr.clonedReferenceElement,St?[4,lr.toIFrame(Ht,ii)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return zt=Ra.sent(),de=vs(St)||Ba(St)?Mt(St.ownerDocument):Vt(jn,St),be=de.width,rn=de.height,hn=de.left,cn=de.top,yn=Vg(jn,St,kt.backgroundColor),In={canvas:kt.canvas,backgroundColor:yn,scale:(ci=(Jo=kt.scale)!==null&&Jo!==void 0?Jo:Rt.devicePixelRatio)!==null&&ci!==void 0?ci:1,x:((os=kt.x)!==null&&os!==void 0?os:0)+hn,y:((Bl=kt.y)!==null&&Bl!==void 0?Bl:0)+cn,width:(Pl=kt.width)!==null&&Pl!==void 0?Pl:Math.ceil(be),height:(el=kt.height)!==null&&el!==void 0?el:Math.ceil(rn)},Ri?(jn.logger.debug("Document cloned, using foreign object rendering"),qi=new Wg(jn,In),[4,qi.render(St)]):[3,3];case 2:return zn=Ra.sent(),[3,5];case 3:return jn.logger.debug("Document cloned, element located at "+hn+","+cn+" with size "+be+"x"+rn+" using computed rendering"),jn.logger.debug("Starting DOM parsing"),fi=FA(jn,St),yn===fi.styles.backgroundColor&&(fi.styles.backgroundColor=Bh.TRANSPARENT),jn.logger.debug("Starting renderer for element at "+In.x+","+In.y+" with size "+In.width+"x"+In.height),qi=new XA(jn,In),[4,qi.render(fi)];case 4:zn=Ra.sent(),Ra.label=5;case 5:return(!((za=kt.removeContainer)!==null&&za!==void 0)||za)&&(Bt.destroy(zt)||jn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),jn.logger.debug("Finished rendering"),[2,zn]}})})},Vg=function(Dt,kt,Ht){var Rt=kt.ownerDocument,Be=Rt.documentElement?td(Dt,getComputedStyle(Rt.documentElement).backgroundColor):Bh.TRANSPARENT,$e=Rt.body?td(Dt,getComputedStyle(Rt.body).backgroundColor):Bh.TRANSPARENT,Fn=typeof Ht=="string"?td(Dt,Ht):Ht===null?Bh.TRANSPARENT:4294967295;return kt===Rt.documentElement?Ha(Be)?Ha($e)?Fn:$e:Be:Fn};return Vf})},65022:function(hi,Sn,Ft){var Lt=Ft(97671);(function(re,Ie){hi.exports=Ie(Ft(32092),Ft(64270))})(self,function(ce,re){return function(){var Ie={"./src/plugin/hyperlinks.js":function(jt,qt,bt){"use strict";bt.r(qt);var se=bt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Gt=bt.n(se),Xt=bt("./node_modules/core-js/modules/es.string.link.js"),Ct=bt.n(Xt),et=bt("./src/worker.js"),tt=bt("./src/utils.js"),lt=[],rt={toContainer:et.default.prototype.toContainer,toPdf:et.default.prototype.toPdf};et.default.prototype.toContainer=function(){return rt.toContainer.call(this).then(function(){if(this.opt.enableLinks){var xt=this.prop.container,Nt=xt.querySelectorAll("a"),Ut=(0,tt.unitConvert)(xt.getBoundingClientRect(),this.prop.pageSize.k);lt=[],Array.prototype.forEach.call(Nt,function(_t){for(var oe=_t.getClientRects(),he=0;he<oe.length;he++){var fe=(0,tt.unitConvert)(oe[he],this.prop.pageSize.k);fe.left-=Ut.left,fe.top-=Ut.top;var Le=Math.floor(fe.top/this.prop.pageSize.inner.height)+1,te=this.opt.margin[0]+fe.top%this.prop.pageSize.inner.height,He=this.opt.margin[1]+fe.left;lt.push({page:Le,top:te,left:He,clientRect:fe,link:_t})}},this)}})},et.default.prototype.toPdf=function(){return rt.toPdf.call(this).then(function(){if(this.opt.enableLinks){lt.forEach(function(Nt){this.prop.pdf.setPage(Nt.page),this.prop.pdf.link(Nt.left,Nt.top,Nt.clientRect.width,Nt.clientRect.height,{url:Nt.link.href})},this);var xt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(xt)}})}},"./src/plugin/jspdf-plugin.js":function(jt,qt,bt){"use strict";bt.r(qt);var se=bt("./node_modules/core-js/modules/es.symbol.js"),Gt=bt.n(se),Xt=bt("./node_modules/core-js/modules/es.symbol.description.js"),Ct=bt.n(Xt),et=bt("./node_modules/core-js/modules/es.object.to-string.js"),tt=bt.n(et),lt=bt("./node_modules/core-js/modules/es.symbol.iterator.js"),rt=bt.n(lt),ht=bt("./node_modules/core-js/modules/es.array.iterator.js"),dt=bt.n(ht),xt=bt("./node_modules/core-js/modules/es.string.iterator.js"),Nt=bt.n(xt),Ut=bt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_t=bt.n(Ut),oe=bt("jspdf"),he=bt.n(oe);function fe(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(He){return typeof He}:fe=function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He},fe(Le)}oe.jsPDF.getPageSize=function(Le,te,He){if(fe(Le)==="object"){var Wt=Le;Le=Wt.orientation,te=Wt.unit||te,He=Wt.format||He}te=te||"mm",He=He||"a4",Le=(""+(Le||"P")).toLowerCase();var Ke=(""+He).toLowerCase(),_e={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(te){case"pt":var Ne=1;break;case"mm":var Ne=72/25.4;break;case"cm":var Ne=72/2.54;break;case"in":var Ne=72;break;case"px":var Ne=72/96;break;case"pc":var Ne=12;break;case"em":var Ne=12;break;case"ex":var Ne=6;break;default:throw"Invalid unit: "+te}if(_e.hasOwnProperty(Ke))var Ge=_e[Ke][1]/Ne,Ue=_e[Ke][0]/Ne;else try{var Ge=He[1],Ue=He[0]}catch(Ce){throw new Error("Invalid format: "+He)}if(Le==="p"||Le==="portrait"){if(Le="p",Ue>Ge){var ve=Ue;Ue=Ge,Ge=ve}}else if(Le==="l"||Le==="landscape"){if(Le="l",Ge>Ue){var ve=Ue;Ue=Ge,Ge=ve}}else throw"Invalid orientation: "+Le;var ne={width:Ue,height:Ge,unit:te,k:Ne};return ne},qt.default=oe.jsPDF},"./src/plugin/pagebreaks.js":function(jt,qt,bt){"use strict";bt.r(qt);var se=bt("./node_modules/core-js/modules/es.array.concat.js"),Gt=bt.n(se),Xt=bt("./node_modules/core-js/modules/es.array.slice.js"),Ct=bt.n(Xt),et=bt("./node_modules/core-js/modules/es.array.join.js"),tt=bt.n(et),lt=bt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),rt=bt.n(lt),ht=bt("./node_modules/core-js/modules/es.object.keys.js"),dt=bt.n(ht),xt=bt("./src/worker.js"),Nt=bt("./src/utils.js"),Ut={toContainer:xt.default.prototype.toContainer};xt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},xt.default.prototype.toContainer=function(){return Ut.toContainer.call(this).then(function(){var he=this.prop.container,fe=this.prop.pageSize.inner.px.height,Le=[].concat(this.opt.pagebreak.mode),te={avoidAll:Le.indexOf("avoid-all")!==-1,css:Le.indexOf("css")!==-1,legacy:Le.indexOf("legacy")!==-1},He={},Wt=this;["before","after","avoid"].forEach(function(Ne){var Ge=te.avoidAll&&Ne==="avoid";He[Ne]=Ge?[]:[].concat(Wt.opt.pagebreak[Ne]||[]),He[Ne].length>0&&(He[Ne]=Array.prototype.slice.call(he.querySelectorAll(He[Ne].join(", "))))});var Ke=he.querySelectorAll(".html2pdf__page-break");Ke=Array.prototype.slice.call(Ke);var _e=he.querySelectorAll("*");Array.prototype.forEach.call(_e,function(Ge){var Ue={before:!1,after:te.legacy&&Ke.indexOf(Ge)!==-1,avoid:te.avoidAll};if(te.css){var ve=window.getComputedStyle(Ge),ne=["always","page","left","right"],Ce=["avoid","avoid-page"];Ue={before:Ue.before||ne.indexOf(ve.breakBefore||ve.pageBreakBefore)!==-1,after:Ue.after||ne.indexOf(ve.breakAfter||ve.pageBreakAfter)!==-1,avoid:Ue.avoid||Ce.indexOf(ve.breakInside||ve.pageBreakInside)!==-1}}Object.keys(Ue).forEach(function(gi){Ue[gi]=Ue[gi]||He[gi].indexOf(Ge)!==-1});var bn=Ge.getBoundingClientRect();if(Ue.avoid&&!Ue.before){var Ln=Math.floor(bn.top/fe),Ve=Math.floor(bn.bottom/fe),Nn=Math.abs(bn.bottom-bn.top)/fe;Ve!==Ln&&Nn<=1&&(Ue.before=!0)}if(Ue.before){var Zn=(0,Nt.createElement)("div",{style:{display:"block",height:fe-bn.top%fe+"px"}});Ge.parentNode.insertBefore(Zn,Ge)}if(Ue.after){var Zn=(0,Nt.createElement)("div",{style:{display:"block",height:fe-bn.bottom%fe+"px"}});Ge.parentNode.insertBefore(Zn,Ge.nextSibling)}})})}},"./src/utils.js":function(jt,qt,bt){"use strict";bt.r(qt),bt.d(qt,{objType:function(){return Le},createElement:function(){return te},cloneNode:function(){return He},unitConvert:function(){return Wt},toPx:function(){return Ke}});var se=bt("./node_modules/core-js/modules/es.number.constructor.js"),Gt=bt.n(se),Xt=bt("./node_modules/core-js/modules/es.symbol.js"),Ct=bt.n(Xt),et=bt("./node_modules/core-js/modules/es.symbol.description.js"),tt=bt.n(et),lt=bt("./node_modules/core-js/modules/es.object.to-string.js"),rt=bt.n(lt),ht=bt("./node_modules/core-js/modules/es.symbol.iterator.js"),dt=bt.n(ht),xt=bt("./node_modules/core-js/modules/es.array.iterator.js"),Nt=bt.n(xt),Ut=bt("./node_modules/core-js/modules/es.string.iterator.js"),_t=bt.n(Ut),oe=bt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),he=bt.n(oe);function fe(_e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fe=function(Ge){return typeof Ge}:fe=function(Ge){return Ge&&typeof Symbol=="function"&&Ge.constructor===Symbol&&Ge!==Symbol.prototype?"symbol":typeof Ge},fe(_e)}var Le=function(Ne){var Ge=fe(Ne);return Ge==="undefined"?"undefined":Ge==="string"||Ne instanceof String?"string":Ge==="number"||Ne instanceof Number?"number":Ge==="function"||Ne instanceof Function?"function":Ne&&Ne.constructor===Array?"array":Ne&&Ne.nodeType===1?"element":Ge==="object"?"object":"unknown"},te=function(Ne,Ge){var Ue=document.createElement(Ne);if(Ge.className&&(Ue.className=Ge.className),Ge.innerHTML){Ue.innerHTML=Ge.innerHTML;for(var ve=Ue.getElementsByTagName("script"),ne=ve.length;ne-- >0;null)ve[ne].parentNode.removeChild(ve[ne])}for(var Ce in Ge.style)Ue.style[Ce]=Ge.style[Ce];return Ue},He=function _e(Ne,Ge){for(var Ue=Ne.nodeType===3?document.createTextNode(Ne.nodeValue):Ne.cloneNode(!1),ve=Ne.firstChild;ve;ve=ve.nextSibling)(Ge===!0||ve.nodeType!==1||ve.nodeName!=="SCRIPT")&&Ue.appendChild(_e(ve,Ge));return Ne.nodeType===1&&(Ne.nodeName==="CANVAS"?(Ue.width=Ne.width,Ue.height=Ne.height,Ue.getContext("2d").drawImage(Ne,0,0)):(Ne.nodeName==="TEXTAREA"||Ne.nodeName==="SELECT")&&(Ue.value=Ne.value),Ue.addEventListener("load",function(){Ue.scrollTop=Ne.scrollTop,Ue.scrollLeft=Ne.scrollLeft},!0)),Ue},Wt=function(Ne,Ge){if(Le(Ne)==="number")return Ne*72/96/Ge;var Ue={};for(var ve in Ne)Ue[ve]=Ne[ve]*72/96/Ge;return Ue},Ke=function(Ne,Ge){return Math.floor(Ne*Ge/72*96)}},"./src/worker.js":function(jt,qt,bt){"use strict";bt.r(qt);var se=bt("./node_modules/core-js/modules/es.object.assign.js"),Gt=bt.n(se),Xt=bt("./node_modules/core-js/modules/es.array.map.js"),Ct=bt.n(Xt),et=bt("./node_modules/core-js/modules/es.object.keys.js"),tt=bt.n(et),lt=bt("./node_modules/core-js/modules/es.array.concat.js"),rt=bt.n(lt),ht=bt("./node_modules/core-js/modules/es.object.to-string.js"),dt=bt.n(ht),xt=bt("./node_modules/core-js/modules/es.regexp.to-string.js"),Nt=bt.n(xt),Ut=bt("./node_modules/core-js/modules/es.function.name.js"),_t=bt.n(Ut),oe=bt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),he=bt.n(oe),fe=bt("jspdf"),Le=bt.n(fe),te=bt("html2canvas"),He=bt.n(te),Wt=bt("./src/utils.js"),Ke=bt("./node_modules/es6-promise/dist/es6-promise.js"),_e=bt.n(Ke),Ne=_e().Promise,Ge=function Ue(ve){var ne=Object.assign(Ue.convert(Ne.resolve()),JSON.parse(JSON.stringify(Ue.template))),Ce=Ue.convert(Ne.resolve(),ne);return Ce=Ce.setProgress(1,Ue,1,[Ue]),Ce=Ce.set(ve),Ce};Ge.prototype=Object.create(Ne.prototype),Ge.prototype.constructor=Ge,Ge.convert=function(ve,ne){return ve.__proto__=ne||Ge.prototype,ve},Ge.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},Ge.prototype.from=function(ve,ne){function Ce(bn){switch((0,Wt.objType)(bn)){case"string":return"string";case"element":return bn.nodeName.toLowerCase&&bn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ne=ne||Ce(ve),ne){case"string":return this.set({src:(0,Wt.createElement)("div",{innerHTML:ve})});case"element":return this.set({src:ve});case"canvas":return this.set({canvas:ve});case"img":return this.set({img:ve});default:return this.error("Unknown source type.")}})},Ge.prototype.to=function(ve){switch(ve){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Ge.prototype.toContainer=function(){var ve=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ve).then(function(){var Ce={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},bn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ce.opacity=0;var Ln=(0,Wt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Wt.createElement)("div",{className:"html2pdf__overlay",style:Ce}),this.prop.container=(0,Wt.createElement)("div",{className:"html2pdf__container",style:bn}),this.prop.container.appendChild(Ln),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Ge.prototype.toCanvas=function(){var ve=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ve).then(function(){var Ce=Object.assign({},this.opt.html2canvas);return delete Ce.onrendered,te(this.prop.container,Ce)}).then(function(Ce){var bn=this.opt.html2canvas.onrendered||function(){};bn(Ce),this.prop.canvas=Ce,document.body.removeChild(this.prop.overlay)})},Ge.prototype.toImg=function(){var ve=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ve).then(function(){var Ce=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ce})},Ge.prototype.toPdf=function(){var ve=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ve).then(function(){var Ce=this.prop.canvas,bn=this.opt,Ln=Ce.height,Ve=Math.floor(Ce.width*this.prop.pageSize.inner.ratio),Nn=Math.ceil(Ln/Ve),Zn=this.prop.pageSize.inner.height,gi=document.createElement("canvas"),Kn=gi.getContext("2d");gi.width=Ce.width,gi.height=Ve,this.prop.pdf=this.prop.pdf||new fe.jsPDF(bn.jsPDF);for(var Pi=0;Pi<Nn;Pi++){Pi===Nn-1&&Ln%Ve!==0&&(gi.height=Ln%Ve,Zn=gi.height*this.prop.pageSize.inner.width/gi.width);var tn=gi.width,Li=gi.height;Kn.fillStyle="white",Kn.fillRect(0,0,tn,Li),Kn.drawImage(Ce,0,Pi*Ve,tn,Li,0,0,tn,Li),Pi&&this.prop.pdf.addPage();var ji=gi.toDataURL("image/"+bn.image.type,bn.image.quality);this.prop.pdf.addImage(ji,bn.image.type,bn.margin[1],bn.margin[0],this.prop.pageSize.inner.width,Zn)}})},Ge.prototype.output=function(ve,ne,Ce){return Ce=Ce||"pdf",Ce.toLowerCase()==="img"||Ce.toLowerCase()==="image"?this.outputImg(ve,ne):this.outputPdf(ve,ne)},Ge.prototype.outputPdf=function(ve,ne){var Ce=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ce).then(function(){return this.prop.pdf.output(ve,ne)})},Ge.prototype.outputImg=function(ve,ne){var Ce=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ce).then(function(){switch(ve){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ve+'" is not supported.'}})},Ge.prototype.save=function(ve){var ne=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ne).set(ve?{filename:ve}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ge.prototype.set=function(ve){if((0,Wt.objType)(ve)!=="object")return this;var ne=Object.keys(ve||{}).map(function(Ce){switch(Ce){case"margin":return this.setMargin.bind(this,ve.margin);case"jsPDF":return function(){return this.opt.jsPDF=ve.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ve.pageSize);default:return Ce in Ge.template.prop?function(){this.prop[Ce]=ve[Ce]}:function(){this.opt[Ce]=ve[Ce]}}},this);return this.then(function(){return this.thenList(ne)})},Ge.prototype.get=function(ve,ne){return this.then(function(){var bn=ve in Ge.template.prop?this.prop[ve]:this.opt[ve];return ne?ne(bn):bn})},Ge.prototype.setMargin=function(ve){return this.then(function(){switch((0,Wt.objType)(ve)){case"number":ve=[ve,ve,ve,ve];case"array":if(ve.length===2&&(ve=[ve[0],ve[1],ve[0],ve[1]]),ve.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ve}).then(this.setPageSize)},Ge.prototype.setPageSize=function(ve){return this.then(function(){ve=ve||fe.jsPDF.getPageSize(this.opt.jsPDF),ve.hasOwnProperty("inner")||(ve.inner={width:ve.width-this.opt.margin[1]-this.opt.margin[3],height:ve.height-this.opt.margin[0]-this.opt.margin[2]},ve.inner.px={width:(0,Wt.toPx)(ve.inner.width,ve.k),height:(0,Wt.toPx)(ve.inner.height,ve.k)},ve.inner.ratio=ve.inner.height/ve.inner.width),this.prop.pageSize=ve})},Ge.prototype.setProgress=function(ve,ne,Ce,bn){return ve!=null&&(this.progress.val=ve),ne!=null&&(this.progress.state=ne),Ce!=null&&(this.progress.n=Ce),bn!=null&&(this.progress.stack=bn),this.progress.ratio=this.progress.val/this.progress.state,this},Ge.prototype.updateProgress=function(ve,ne,Ce,bn){return this.setProgress(ve?this.progress.val+ve:null,ne||null,Ce?this.progress.n+Ce:null,bn?this.progress.stack.concat(bn):null)},Ge.prototype.then=function(ve,ne){var Ce=this;return this.thenCore(ve,ne,function(Ln,Ve){return Ce.updateProgress(null,null,1,[Ln]),Ne.prototype.then.call(this,function(Zn){return Ce.updateProgress(null,Ln),Zn}).then(Ln,Ve).then(function(Zn){return Ce.updateProgress(1),Zn})})},Ge.prototype.thenCore=function(ve,ne,Ce){Ce=Ce||Ne.prototype.then;var bn=this;ve&&(ve=ve.bind(bn)),ne&&(ne=ne.bind(bn));var Ln=Ne.toString().indexOf("[native code]")!==-1&&Ne.name==="Promise",Ve=Ln?bn:Ge.convert(Object.assign({},bn),Ne.prototype),Nn=Ce.call(Ve,ve,ne);return Ge.convert(Nn,bn.__proto__)},Ge.prototype.thenExternal=function(ve,ne){return Ne.prototype.then.call(this,ve,ne)},Ge.prototype.thenList=function(ve){var ne=this;return ve.forEach(function(bn){ne=ne.thenCore(bn)}),ne},Ge.prototype.catch=function(Ue){Ue&&(Ue=Ue.bind(this));var ve=Ne.prototype.catch.call(this,Ue);return Ge.convert(ve,this)},Ge.prototype.catchExternal=function(ve){return Ne.prototype.catch.call(this,ve)},Ge.prototype.error=function(ve){return this.then(function(){throw new Error(ve)})},Ge.prototype.using=Ge.prototype.set,Ge.prototype.saveAs=Ge.prototype.save,Ge.prototype.export=Ge.prototype.output,Ge.prototype.run=Ge.prototype.then,qt.default=Ge},"./node_modules/core-js/internals/a-function.js":function(jt){jt.exports=function(qt){if(typeof qt!="function")throw TypeError(String(qt)+" is not a function");return qt}},"./node_modules/core-js/internals/a-possible-prototype.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Gt){if(!se(Gt)&&Gt!==null)throw TypeError("Can't set "+String(Gt)+" as a prototype");return Gt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/well-known-symbol.js"),Gt=bt("./node_modules/core-js/internals/object-create.js"),Xt=bt("./node_modules/core-js/internals/object-define-property.js"),Ct=se("unscopables"),et=Array.prototype;et[Ct]==null&&Xt.f(et,Ct,{configurable:!0,value:Gt(null)}),jt.exports=function(tt){et[Ct][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Gt){if(!se(Gt))throw TypeError(String(Gt)+" is not an object");return Gt}},"./node_modules/core-js/internals/array-for-each.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/array-iteration.js").forEach,Gt=bt("./node_modules/core-js/internals/array-method-is-strict.js"),Xt=Gt("forEach");jt.exports=Xt?[].forEach:function(et){return se(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-indexed-object.js"),Gt=bt("./node_modules/core-js/internals/to-length.js"),Xt=bt("./node_modules/core-js/internals/to-absolute-index.js"),Ct=function(et){return function(tt,lt,rt){var ht=se(tt),dt=Gt(ht.length),xt=Xt(rt,dt),Nt;if(et&&lt!=lt){for(;dt>xt;)if(Nt=ht[xt++],Nt!=Nt)return!0}else for(;dt>xt;xt++)if((et||xt in ht)&&ht[xt]===lt)return et||xt||0;return!et&&-1}};jt.exports={includes:Ct(!0),indexOf:Ct(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/function-bind-context.js"),Gt=bt("./node_modules/core-js/internals/indexed-object.js"),Xt=bt("./node_modules/core-js/internals/to-object.js"),Ct=bt("./node_modules/core-js/internals/to-length.js"),et=bt("./node_modules/core-js/internals/array-species-create.js"),tt=[].push,lt=function(rt){var ht=rt==1,dt=rt==2,xt=rt==3,Nt=rt==4,Ut=rt==6,_t=rt==7,oe=rt==5||Ut;return function(he,fe,Le,te){for(var He=Xt(he),Wt=Gt(He),Ke=se(fe,Le,3),_e=Ct(Wt.length),Ne=0,Ge=te||et,Ue=ht?Ge(he,_e):dt||_t?Ge(he,0):void 0,ve,ne;_e>Ne;Ne++)if((oe||Ne in Wt)&&(ve=Wt[Ne],ne=Ke(ve,Ne,He),rt))if(ht)Ue[Ne]=ne;else if(ne)switch(rt){case 3:return!0;case 5:return ve;case 6:return Ne;case 2:tt.call(Ue,ve)}else switch(rt){case 4:return!1;case 7:tt.call(Ue,ve)}return Ut?-1:xt||Nt?Nt:Ue}};jt.exports={forEach:lt(0),map:lt(1),filter:lt(2),some:lt(3),every:lt(4),find:lt(5),findIndex:lt(6),filterReject:lt(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/fails.js"),Gt=bt("./node_modules/core-js/internals/well-known-symbol.js"),Xt=bt("./node_modules/core-js/internals/engine-v8-version.js"),Ct=Gt("species");jt.exports=function(et){return Xt>=51||!se(function(){var tt=[],lt=tt.constructor={};return lt[Ct]=function(){return{foo:1}},tt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/fails.js");jt.exports=function(Gt,Xt){var Ct=[][Gt];return!!Ct&&se(function(){Ct.call(null,Xt||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-object.js"),Gt=bt("./node_modules/core-js/internals/is-array.js"),Xt=bt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Xt("species");jt.exports=function(et){var tt;return Gt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||Gt(tt.prototype))?tt=void 0:se(tt)&&(tt=tt[Ct],tt===null&&(tt=void 0))),tt===void 0?Array:tt}},"./node_modules/core-js/internals/array-species-create.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/array-species-constructor.js");jt.exports=function(Gt,Xt){return new(se(Gt))(Xt===0?0:Xt)}},"./node_modules/core-js/internals/classof-raw.js":function(jt){var qt={}.toString;jt.exports=function(bt){return qt.call(bt).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=bt("./node_modules/core-js/internals/classof-raw.js"),Xt=bt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Xt("toStringTag"),et=Gt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ht){}};jt.exports=se?Gt:function(lt){var rt,ht,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ht=tt(rt=Object(lt),Ct))=="string"?ht:et?Gt(rt):(dt=Gt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":dt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/has.js"),Gt=bt("./node_modules/core-js/internals/own-keys.js"),Xt=bt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ct=bt("./node_modules/core-js/internals/object-define-property.js");jt.exports=function(et,tt){for(var lt=Gt(tt),rt=Ct.f,ht=Xt.f,dt=0;dt<lt.length;dt++){var xt=lt[dt];se(et,xt)||rt(et,xt,ht(tt,xt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/fails.js");jt.exports=!se(function(){function Gt(){}return Gt.prototype.constructor=null,Object.getPrototypeOf(new Gt)!==Gt.prototype})},"./node_modules/core-js/internals/create-html.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/require-object-coercible.js"),Gt=bt("./node_modules/core-js/internals/to-string.js"),Xt=/"/g;jt.exports=function(Ct,et,tt,lt){var rt=Gt(se(Ct)),ht="<"+et;return tt!==""&&(ht+=" "+tt+'="'+Gt(lt).replace(Xt,"&quot;")+'"'),ht+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Gt=bt("./node_modules/core-js/internals/object-create.js"),Xt=bt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=bt("./node_modules/core-js/internals/set-to-string-tag.js"),et=bt("./node_modules/core-js/internals/iterators.js"),tt=function(){return this};jt.exports=function(lt,rt,ht){var dt=rt+" Iterator";return lt.prototype=Gt(se,{next:Xt(1,ht)}),Ct(lt,dt,!1,!0),et[dt]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/object-define-property.js"),Xt=bt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=se?function(Ct,et,tt){return Gt.f(Ct,et,Xt(1,tt))}:function(Ct,et,tt){return Ct[et]=tt,Ct}},"./node_modules/core-js/internals/create-property-descriptor.js":function(jt){jt.exports=function(qt,bt){return{enumerable:!(qt&1),configurable:!(qt&2),writable:!(qt&4),value:bt}}},"./node_modules/core-js/internals/create-property.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/to-property-key.js"),Gt=bt("./node_modules/core-js/internals/object-define-property.js"),Xt=bt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=function(Ct,et,tt){var lt=se(et);lt in Ct?Gt.f(Ct,lt,Xt(0,tt)):Ct[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/create-iterator-constructor.js"),Xt=bt("./node_modules/core-js/internals/object-get-prototype-of.js"),Ct=bt("./node_modules/core-js/internals/object-set-prototype-of.js"),et=bt("./node_modules/core-js/internals/set-to-string-tag.js"),tt=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),lt=bt("./node_modules/core-js/internals/redefine.js"),rt=bt("./node_modules/core-js/internals/well-known-symbol.js"),ht=bt("./node_modules/core-js/internals/is-pure.js"),dt=bt("./node_modules/core-js/internals/iterators.js"),xt=bt("./node_modules/core-js/internals/iterators-core.js"),Nt=xt.IteratorPrototype,Ut=xt.BUGGY_SAFARI_ITERATORS,_t=rt("iterator"),oe="keys",he="values",fe="entries",Le=function(){return this};jt.exports=function(te,He,Wt,Ke,_e,Ne,Ge){Gt(Wt,He,Ke);var Ue=function(Kn){if(Kn===_e&&Ln)return Ln;if(!Ut&&Kn in Ce)return Ce[Kn];switch(Kn){case oe:return function(){return new Wt(this,Kn)};case he:return function(){return new Wt(this,Kn)};case fe:return function(){return new Wt(this,Kn)}}return function(){return new Wt(this)}},ve=He+" Iterator",ne=!1,Ce=te.prototype,bn=Ce[_t]||Ce["@@iterator"]||_e&&Ce[_e],Ln=!Ut&&bn||Ue(_e),Ve=He=="Array"&&Ce.entries||bn,Nn,Zn,gi;if(Ve&&(Nn=Xt(Ve.call(new te)),Nt!==Object.prototype&&Nn.next&&(!ht&&Xt(Nn)!==Nt&&(Ct?Ct(Nn,Nt):typeof Nn[_t]!="function"&&tt(Nn,_t,Le)),et(Nn,ve,!0,!0),ht&&(dt[ve]=Le))),_e==he&&bn&&bn.name!==he&&(ne=!0,Ln=function(){return bn.call(this)}),(!ht||Ge)&&Ce[_t]!==Ln&&tt(Ce,_t,Ln),dt[He]=Ln,_e)if(Zn={values:Ue(he),keys:Ne?Ln:Ue(oe),entries:Ue(fe)},Ge)for(gi in Zn)(Ut||ne||!(gi in Ce))&&lt(Ce,gi,Zn[gi]);else se({target:He,proto:!0,forced:Ut||ne},Zn);return Zn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/path.js"),Gt=bt("./node_modules/core-js/internals/has.js"),Xt=bt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ct=bt("./node_modules/core-js/internals/object-define-property.js").f;jt.exports=function(et){var tt=se.Symbol||(se.Symbol={});Gt(tt,et)||Ct(tt,et,{value:Xt.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/fails.js");jt.exports=!se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/is-object.js"),Xt=se.document,Ct=Gt(Xt)&&Gt(Xt.createElement);jt.exports=function(et){return Ct?Xt.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(jt){jt.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/get-built-in.js");jt.exports=se("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/engine-user-agent.js"),Xt=se.process,Ct=se.Deno,et=Xt&&Xt.versions||Ct&&Ct.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):Gt&&(lt=Gt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=Gt.match(/Chrome\/(\d+)/),lt&&(rt=lt[1]))),jt.exports=rt&&+rt},"./node_modules/core-js/internals/enum-bug-keys.js":function(jt){jt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Xt=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=bt("./node_modules/core-js/internals/redefine.js"),et=bt("./node_modules/core-js/internals/set-global.js"),tt=bt("./node_modules/core-js/internals/copy-constructor-properties.js"),lt=bt("./node_modules/core-js/internals/is-forced.js");jt.exports=function(rt,ht){var dt=rt.target,xt=rt.global,Nt=rt.stat,Ut,_t,oe,he,fe,Le;if(xt?_t=se:Nt?_t=se[dt]||et(dt,{}):_t=(se[dt]||{}).prototype,_t)for(oe in ht){if(fe=ht[oe],rt.noTargetGet?(Le=Gt(_t,oe),he=Le&&Le.value):he=_t[oe],Ut=lt(xt?oe:dt+(Nt?".":"#")+oe,rt.forced),!Ut&&he!==void 0){if(typeof fe==typeof he)continue;tt(fe,he)}(rt.sham||he&&he.sham)&&Xt(fe,"sham",!0),Ct(_t,oe,fe,rt)}}},"./node_modules/core-js/internals/fails.js":function(jt){jt.exports=function(qt){try{return!!qt()}catch(bt){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/a-function.js");jt.exports=function(Gt,Xt,Ct){if(se(Gt),Xt===void 0)return Gt;switch(Ct){case 0:return function(){return Gt.call(Xt)};case 1:return function(et){return Gt.call(Xt,et)};case 2:return function(et,tt){return Gt.call(Xt,et,tt)};case 3:return function(et,tt,lt){return Gt.call(Xt,et,tt,lt)}}return function(){return Gt.apply(Xt,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=function(Xt){return typeof Xt=="function"?Xt:void 0};jt.exports=function(Xt,Ct){return arguments.length<2?Gt(se[Xt]):se[Xt]&&se[Xt][Ct]}},"./node_modules/core-js/internals/global.js":function(jt){var qt=function(bt){return bt&&bt.Math==Math&&bt};jt.exports=qt(typeof globalThis=="object"&&globalThis)||qt(typeof window=="object"&&window)||qt(typeof self=="object"&&self)||qt(typeof Ft.g=="object"&&Ft.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-object.js"),Gt={}.hasOwnProperty;jt.exports=Object.hasOwn||function(Ct,et){return Gt.call(se(Ct),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/html.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/get-built-in.js");jt.exports=se("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/fails.js"),Xt=bt("./node_modules/core-js/internals/document-create-element.js");jt.exports=!se&&!Gt(function(){return Object.defineProperty(Xt("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/fails.js"),Gt=bt("./node_modules/core-js/internals/classof-raw.js"),Xt="".split;jt.exports=se(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ct){return Gt(Ct)=="String"?Xt.call(Ct,""):Object(Ct)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-object.js"),Gt=bt("./node_modules/core-js/internals/object-set-prototype-of.js");jt.exports=function(Xt,Ct,et){var tt,lt;return Gt&&typeof(tt=Ct.constructor)=="function"&&tt!==et&&se(lt=tt.prototype)&&lt!==et.prototype&&Gt(Xt,lt),Xt}},"./node_modules/core-js/internals/inspect-source.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/shared-store.js"),Gt=Function.toString;typeof se.inspectSource!="function"&&(se.inspectSource=function(Xt){return Gt.call(Xt)}),jt.exports=se.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/native-weak-map.js"),Gt=bt("./node_modules/core-js/internals/global.js"),Xt=bt("./node_modules/core-js/internals/is-object.js"),Ct=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=bt("./node_modules/core-js/internals/has.js"),tt=bt("./node_modules/core-js/internals/shared-store.js"),lt=bt("./node_modules/core-js/internals/shared-key.js"),rt=bt("./node_modules/core-js/internals/hidden-keys.js"),ht="Object already initialized",dt=Gt.WeakMap,xt,Nt,Ut,_t=function(Wt){return Ut(Wt)?Nt(Wt):xt(Wt,{})},oe=function(Wt){return function(Ke){var _e;if(!Xt(Ke)||(_e=Nt(Ke)).type!==Wt)throw TypeError("Incompatible receiver, "+Wt+" required");return _e}};if(se||tt.state){var he=tt.state||(tt.state=new dt),fe=he.get,Le=he.has,te=he.set;xt=function(Wt,Ke){if(Le.call(he,Wt))throw new TypeError(ht);return Ke.facade=Wt,te.call(he,Wt,Ke),Ke},Nt=function(Wt){return fe.call(he,Wt)||{}},Ut=function(Wt){return Le.call(he,Wt)}}else{var He=lt("state");rt[He]=!0,xt=function(Wt,Ke){if(et(Wt,He))throw new TypeError(ht);return Ke.facade=Wt,Ct(Wt,He,Ke),Ke},Nt=function(Wt){return et(Wt,He)?Wt[He]:{}},Ut=function(Wt){return et(Wt,He)}}jt.exports={set:xt,get:Nt,has:Ut,enforce:_t,getterFor:oe}},"./node_modules/core-js/internals/is-array.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/classof-raw.js");jt.exports=Array.isArray||function(Xt){return se(Xt)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/fails.js"),Gt=/#|\.prototype\./,Xt=function(rt,ht){var dt=et[Ct(rt)];return dt==lt?!0:dt==tt?!1:typeof ht=="function"?se(ht):!!ht},Ct=Xt.normalize=function(rt){return String(rt).replace(Gt,".").toLowerCase()},et=Xt.data={},tt=Xt.NATIVE="N",lt=Xt.POLYFILL="P";jt.exports=Xt},"./node_modules/core-js/internals/is-object.js":function(jt){jt.exports=function(qt){return typeof qt=="object"?qt!==null:typeof qt=="function"}},"./node_modules/core-js/internals/is-pure.js":function(jt){jt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/get-built-in.js"),Gt=bt("./node_modules/core-js/internals/use-symbol-as-uid.js");jt.exports=Gt?function(Xt){return typeof Xt=="symbol"}:function(Xt){var Ct=se("Symbol");return typeof Ct=="function"&&Object(Xt)instanceof Ct}},"./node_modules/core-js/internals/iterators-core.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/fails.js"),Gt=bt("./node_modules/core-js/internals/object-get-prototype-of.js"),Xt=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=bt("./node_modules/core-js/internals/has.js"),et=bt("./node_modules/core-js/internals/well-known-symbol.js"),tt=bt("./node_modules/core-js/internals/is-pure.js"),lt=et("iterator"),rt=!1,ht=function(){return this},dt,xt,Nt;[].keys&&(Nt=[].keys(),"next"in Nt?(xt=Gt(Gt(Nt)),xt!==Object.prototype&&(dt=xt)):rt=!0);var Ut=dt==null||se(function(){var _t={};return dt[lt].call(_t)!==_t});Ut&&(dt={}),(!tt||Ut)&&!Ct(dt,lt)&&Xt(dt,lt,ht),jt.exports={IteratorPrototype:dt,BUGGY_SAFARI_ITERATORS:rt}},"./node_modules/core-js/internals/iterators.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/engine-v8-version.js"),Gt=bt("./node_modules/core-js/internals/fails.js");jt.exports=!!Object.getOwnPropertySymbols&&!Gt(function(){var Xt=Symbol();return!String(Xt)||!(Object(Xt)instanceof Symbol)||!Symbol.sham&&se&&se<41})},"./node_modules/core-js/internals/native-weak-map.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/inspect-source.js"),Xt=se.WeakMap;jt.exports=typeof Xt=="function"&&/native code/.test(Gt(Xt))},"./node_modules/core-js/internals/object-assign.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/fails.js"),Xt=bt("./node_modules/core-js/internals/object-keys.js"),Ct=bt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=bt("./node_modules/core-js/internals/object-property-is-enumerable.js"),tt=bt("./node_modules/core-js/internals/to-object.js"),lt=bt("./node_modules/core-js/internals/indexed-object.js"),rt=Object.assign,ht=Object.defineProperty;jt.exports=!rt||Gt(function(){if(se&&rt({b:1},rt(ht({},"a",{enumerable:!0,get:function(){ht(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var dt={},xt={},Nt=Symbol(),Ut="abcdefghijklmnopqrst";return dt[Nt]=7,Ut.split("").forEach(function(_t){xt[_t]=_t}),rt({},dt)[Nt]!=7||Xt(rt({},xt)).join("")!=Ut})?function(xt,Nt){for(var Ut=tt(xt),_t=arguments.length,oe=1,he=Ct.f,fe=et.f;_t>oe;)for(var Le=lt(arguments[oe++]),te=he?Xt(Le).concat(he(Le)):Xt(Le),He=te.length,Wt=0,Ke;He>Wt;)Ke=te[Wt++],(!se||fe.call(Le,Ke))&&(Ut[Ke]=Le[Ke]);return Ut}:rt},"./node_modules/core-js/internals/object-create.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/an-object.js"),Gt=bt("./node_modules/core-js/internals/object-define-properties.js"),Xt=bt("./node_modules/core-js/internals/enum-bug-keys.js"),Ct=bt("./node_modules/core-js/internals/hidden-keys.js"),et=bt("./node_modules/core-js/internals/html.js"),tt=bt("./node_modules/core-js/internals/document-create-element.js"),lt=bt("./node_modules/core-js/internals/shared-key.js"),rt=">",ht="<",dt="prototype",xt="script",Nt=lt("IE_PROTO"),Ut=function(){},_t=function(te){return ht+xt+rt+te+ht+"/"+xt+rt},oe=function(te){te.write(_t("")),te.close();var He=te.parentWindow.Object;return te=null,He},he=function(){var te=tt("iframe"),He="java"+xt+":",Wt;if(te.style)return te.style.display="none",et.appendChild(te),te.src=String(He),Wt=te.contentWindow.document,Wt.open(),Wt.write(_t("document.F=Object")),Wt.close(),Wt.F},fe,Le=function(){try{fe=new ActiveXObject("htmlfile")}catch(He){}Le=document.domain&&fe?oe(fe):he()||oe(fe);for(var te=Xt.length;te--;)delete Le[dt][Xt[te]];return Le()};Ct[Nt]=!0,jt.exports=Object.create||function(He,Wt){var Ke;return He!==null?(Ut[dt]=se(He),Ke=new Ut,Ut[dt]=null,Ke[Nt]=He):Ke=Le(),Wt===void 0?Ke:Gt(Ke,Wt)}},"./node_modules/core-js/internals/object-define-properties.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/object-define-property.js"),Xt=bt("./node_modules/core-js/internals/an-object.js"),Ct=bt("./node_modules/core-js/internals/object-keys.js");jt.exports=se?Object.defineProperties:function(tt,lt){Xt(tt);for(var rt=Ct(lt),ht=rt.length,dt=0,xt;ht>dt;)Gt.f(tt,xt=rt[dt++],lt[xt]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/ie8-dom-define.js"),Xt=bt("./node_modules/core-js/internals/an-object.js"),Ct=bt("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;qt.f=se?et:function(lt,rt,ht){if(Xt(lt),rt=Ct(rt),Xt(ht),Gt)try{return et(lt,rt,ht)}catch(dt){}if("get"in ht||"set"in ht)throw TypeError("Accessors not supported");return"value"in ht&&(lt[rt]=ht.value),lt}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/object-property-is-enumerable.js"),Xt=bt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=bt("./node_modules/core-js/internals/to-indexed-object.js"),et=bt("./node_modules/core-js/internals/to-property-key.js"),tt=bt("./node_modules/core-js/internals/has.js"),lt=bt("./node_modules/core-js/internals/ie8-dom-define.js"),rt=Object.getOwnPropertyDescriptor;qt.f=se?rt:function(dt,xt){if(dt=Ct(dt),xt=et(xt),lt)try{return rt(dt,xt)}catch(Nt){}if(tt(dt,xt))return Xt(!Gt.f.call(dt,xt),dt[xt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-indexed-object.js"),Gt=bt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Xt={}.toString,Ct=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return Gt(tt)}catch(lt){return Ct.slice()}};jt.exports.f=function(lt){return Ct&&Xt.call(lt)=="[object Window]"?et(lt):Gt(se(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/object-keys-internal.js"),Gt=bt("./node_modules/core-js/internals/enum-bug-keys.js"),Xt=Gt.concat("length","prototype");qt.f=Object.getOwnPropertyNames||function(et){return se(et,Xt)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(jt,qt){qt.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/has.js"),Gt=bt("./node_modules/core-js/internals/to-object.js"),Xt=bt("./node_modules/core-js/internals/shared-key.js"),Ct=bt("./node_modules/core-js/internals/correct-prototype-getter.js"),et=Xt("IE_PROTO"),tt=Object.prototype;jt.exports=Ct?Object.getPrototypeOf:function(lt){return lt=Gt(lt),se(lt,et)?lt[et]:typeof lt.constructor=="function"&&lt instanceof lt.constructor?lt.constructor.prototype:lt instanceof Object?tt:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/has.js"),Gt=bt("./node_modules/core-js/internals/to-indexed-object.js"),Xt=bt("./node_modules/core-js/internals/array-includes.js").indexOf,Ct=bt("./node_modules/core-js/internals/hidden-keys.js");jt.exports=function(et,tt){var lt=Gt(et),rt=0,ht=[],dt;for(dt in lt)!se(Ct,dt)&&se(lt,dt)&&ht.push(dt);for(;tt.length>rt;)se(lt,dt=tt[rt++])&&(~Xt(ht,dt)||ht.push(dt));return ht}},"./node_modules/core-js/internals/object-keys.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/object-keys-internal.js"),Gt=bt("./node_modules/core-js/internals/enum-bug-keys.js");jt.exports=Object.keys||function(Ct){return se(Ct,Gt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(jt,qt){"use strict";var bt={}.propertyIsEnumerable,se=Object.getOwnPropertyDescriptor,Gt=se&&!bt.call({1:2},1);qt.f=Gt?function(Ct){var et=se(this,Ct);return!!et&&et.enumerable}:bt},"./node_modules/core-js/internals/object-set-prototype-of.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/an-object.js"),Gt=bt("./node_modules/core-js/internals/a-possible-prototype.js");jt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Xt=!1,Ct={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Ct,[]),Xt=Ct instanceof Array}catch(tt){}return function(lt,rt){return se(lt),Gt(rt),Xt?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=bt("./node_modules/core-js/internals/classof.js");jt.exports=se?{}.toString:function(){return"[object "+Gt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Gt,Xt){var Ct,et;if(Xt==="string"&&typeof(Ct=Gt.toString)=="function"&&!se(et=Ct.call(Gt))||typeof(Ct=Gt.valueOf)=="function"&&!se(et=Ct.call(Gt))||Xt!=="string"&&typeof(Ct=Gt.toString)=="function"&&!se(et=Ct.call(Gt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/get-built-in.js"),Gt=bt("./node_modules/core-js/internals/object-get-own-property-names.js"),Xt=bt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ct=bt("./node_modules/core-js/internals/an-object.js");jt.exports=se("Reflect","ownKeys")||function(tt){var lt=Gt.f(Ct(tt)),rt=Xt.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js");jt.exports=se},"./node_modules/core-js/internals/redefine.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Xt=bt("./node_modules/core-js/internals/has.js"),Ct=bt("./node_modules/core-js/internals/set-global.js"),et=bt("./node_modules/core-js/internals/inspect-source.js"),tt=bt("./node_modules/core-js/internals/internal-state.js"),lt=tt.get,rt=tt.enforce,ht=String(String).split("String");(jt.exports=function(dt,xt,Nt,Ut){var _t=Ut?!!Ut.unsafe:!1,oe=Ut?!!Ut.enumerable:!1,he=Ut?!!Ut.noTargetGet:!1,fe;if(typeof Nt=="function"&&(typeof xt=="string"&&!Xt(Nt,"name")&&Gt(Nt,"name",xt),fe=rt(Nt),fe.source||(fe.source=ht.join(typeof xt=="string"?xt:""))),dt===se){oe?dt[xt]=Nt:Ct(xt,Nt);return}else _t?!he&&dt[xt]&&(oe=!0):delete dt[xt];oe?dt[xt]=Nt:Gt(dt,xt,Nt)})(Function.prototype,"toString",function(){return typeof this=="function"&&lt(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/an-object.js");jt.exports=function(){var Gt=se(this),Xt="";return Gt.global&&(Xt+="g"),Gt.ignoreCase&&(Xt+="i"),Gt.multiline&&(Xt+="m"),Gt.dotAll&&(Xt+="s"),Gt.unicode&&(Xt+="u"),Gt.sticky&&(Xt+="y"),Xt}},"./node_modules/core-js/internals/require-object-coercible.js":function(jt){jt.exports=function(qt){if(qt==null)throw TypeError("Can't call method on "+qt);return qt}},"./node_modules/core-js/internals/set-global.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js");jt.exports=function(Gt,Xt){try{Object.defineProperty(se,Gt,{value:Xt,configurable:!0,writable:!0})}catch(Ct){se[Gt]=Xt}return Xt}},"./node_modules/core-js/internals/set-to-string-tag.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/object-define-property.js").f,Gt=bt("./node_modules/core-js/internals/has.js"),Xt=bt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Xt("toStringTag");jt.exports=function(et,tt,lt){et&&!Gt(et=lt?et:et.prototype,Ct)&&se(et,Ct,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/shared.js"),Gt=bt("./node_modules/core-js/internals/uid.js"),Xt=se("keys");jt.exports=function(Ct){return Xt[Ct]||(Xt[Ct]=Gt(Ct))}},"./node_modules/core-js/internals/shared-store.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/set-global.js"),Xt="__core-js_shared__",Ct=se[Xt]||Gt(Xt,{});jt.exports=Ct},"./node_modules/core-js/internals/shared.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-pure.js"),Gt=bt("./node_modules/core-js/internals/shared-store.js");(jt.exports=function(Xt,Ct){return Gt[Xt]||(Gt[Xt]=Ct!==void 0?Ct:{})})("versions",[]).push({version:"3.16.0",mode:se?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/fails.js");jt.exports=function(Gt){return se(function(){var Xt=""[Gt]('"');return Xt!==Xt.toLowerCase()||Xt.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-integer.js"),Gt=bt("./node_modules/core-js/internals/to-string.js"),Xt=bt("./node_modules/core-js/internals/require-object-coercible.js"),Ct=function(et){return function(tt,lt){var rt=Gt(Xt(tt)),ht=se(lt),dt=rt.length,xt,Nt;return ht<0||ht>=dt?et?"":void 0:(xt=rt.charCodeAt(ht),xt<55296||xt>56319||ht+1===dt||(Nt=rt.charCodeAt(ht+1))<56320||Nt>57343?et?rt.charAt(ht):xt:et?rt.slice(ht,ht+2):(xt-55296<<10)+(Nt-56320)+65536)}};jt.exports={codeAt:Ct(!1),charAt:Ct(!0)}},"./node_modules/core-js/internals/string-trim.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/require-object-coercible.js"),Gt=bt("./node_modules/core-js/internals/to-string.js"),Xt=bt("./node_modules/core-js/internals/whitespaces.js"),Ct="["+Xt+"]",et=RegExp("^"+Ct+Ct+"*"),tt=RegExp(Ct+Ct+"*$"),lt=function(rt){return function(ht){var dt=Gt(se(ht));return rt&1&&(dt=dt.replace(et,"")),rt&2&&(dt=dt.replace(tt,"")),dt}};jt.exports={start:lt(1),end:lt(2),trim:lt(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-integer.js"),Gt=Math.max,Xt=Math.min;jt.exports=function(Ct,et){var tt=se(Ct);return tt<0?Gt(tt+et,0):Xt(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/indexed-object.js"),Gt=bt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Xt){return se(Gt(Xt))}},"./node_modules/core-js/internals/to-integer.js":function(jt){var qt=Math.ceil,bt=Math.floor;jt.exports=function(se){return isNaN(se=+se)?0:(se>0?bt:qt)(se)}},"./node_modules/core-js/internals/to-length.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-integer.js"),Gt=Math.min;jt.exports=function(Xt){return Xt>0?Gt(se(Xt),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Gt){return Object(se(Gt))}},"./node_modules/core-js/internals/to-primitive.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-object.js"),Gt=bt("./node_modules/core-js/internals/is-symbol.js"),Xt=bt("./node_modules/core-js/internals/ordinary-to-primitive.js"),Ct=bt("./node_modules/core-js/internals/well-known-symbol.js"),et=Ct("toPrimitive");jt.exports=function(tt,lt){if(!se(tt)||Gt(tt))return tt;var rt=tt[et],ht;if(rt!==void 0){if(lt===void 0&&(lt="default"),ht=rt.call(tt,lt),!se(ht)||Gt(ht))return ht;throw TypeError("Can't convert object to primitive value")}return lt===void 0&&(lt="number"),Xt(tt,lt)}},"./node_modules/core-js/internals/to-property-key.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-primitive.js"),Gt=bt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Xt){var Ct=se(Xt,"string");return Gt(Ct)?Ct:String(Ct)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/well-known-symbol.js"),Gt=se("toStringTag"),Xt={};Xt[Gt]="z",jt.exports=String(Xt)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Gt){if(se(Gt))throw TypeError("Cannot convert a Symbol value to a string");return String(Gt)}},"./node_modules/core-js/internals/uid.js":function(jt){var qt=0,bt=Math.random();jt.exports=function(se){return"Symbol("+String(se===void 0?"":se)+")_"+(++qt+bt).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/native-symbol.js");jt.exports=se&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/well-known-symbol.js");qt.f=se},"./node_modules/core-js/internals/well-known-symbol.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/shared.js"),Xt=bt("./node_modules/core-js/internals/has.js"),Ct=bt("./node_modules/core-js/internals/uid.js"),et=bt("./node_modules/core-js/internals/native-symbol.js"),tt=bt("./node_modules/core-js/internals/use-symbol-as-uid.js"),lt=Gt("wks"),rt=se.Symbol,ht=tt?rt:rt&&rt.withoutSetter||Ct;jt.exports=function(dt){return(!Xt(lt,dt)||!(et||typeof lt[dt]=="string"))&&(et&&Xt(rt,dt)?lt[dt]=rt[dt]:lt[dt]=ht("Symbol."+dt)),lt[dt]}},"./node_modules/core-js/internals/whitespaces.js":function(jt){jt.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/fails.js"),Xt=bt("./node_modules/core-js/internals/is-array.js"),Ct=bt("./node_modules/core-js/internals/is-object.js"),et=bt("./node_modules/core-js/internals/to-object.js"),tt=bt("./node_modules/core-js/internals/to-length.js"),lt=bt("./node_modules/core-js/internals/create-property.js"),rt=bt("./node_modules/core-js/internals/array-species-create.js"),ht=bt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=bt("./node_modules/core-js/internals/well-known-symbol.js"),xt=bt("./node_modules/core-js/internals/engine-v8-version.js"),Nt=dt("isConcatSpreadable"),Ut=9007199254740991,_t="Maximum allowed index exceeded",oe=xt>=51||!Gt(function(){var te=[];return te[Nt]=!1,te.concat()[0]!==te}),he=ht("concat"),fe=function(te){if(!Ct(te))return!1;var He=te[Nt];return He!==void 0?!!He:Xt(te)},Le=!oe||!he;se({target:"Array",proto:!0,forced:Le},{concat:function(He){var Wt=et(this),Ke=rt(Wt,0),_e=0,Ne,Ge,Ue,ve,ne;for(Ne=-1,Ue=arguments.length;Ne<Ue;Ne++)if(ne=Ne===-1?Wt:arguments[Ne],fe(ne)){if(ve=tt(ne.length),_e+ve>Ut)throw TypeError(_t);for(Ge=0;Ge<ve;Ge++,_e++)Ge in ne&&lt(Ke,_e,ne[Ge])}else{if(_e>=Ut)throw TypeError(_t);lt(Ke,_e++,ne)}return Ke.length=_e,Ke}})},"./node_modules/core-js/modules/es.array.iterator.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/to-indexed-object.js"),Gt=bt("./node_modules/core-js/internals/add-to-unscopables.js"),Xt=bt("./node_modules/core-js/internals/iterators.js"),Ct=bt("./node_modules/core-js/internals/internal-state.js"),et=bt("./node_modules/core-js/internals/define-iterator.js"),tt="Array Iterator",lt=Ct.set,rt=Ct.getterFor(tt);jt.exports=et(Array,"Array",function(ht,dt){lt(this,{type:tt,target:se(ht),index:0,kind:dt})},function(){var ht=rt(this),dt=ht.target,xt=ht.kind,Nt=ht.index++;return!dt||Nt>=dt.length?(ht.target=void 0,{value:void 0,done:!0}):xt=="keys"?{value:Nt,done:!1}:xt=="values"?{value:dt[Nt],done:!1}:{value:[Nt,dt[Nt]],done:!1}},"values"),Xt.Arguments=Xt.Array,Gt("keys"),Gt("values"),Gt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/indexed-object.js"),Xt=bt("./node_modules/core-js/internals/to-indexed-object.js"),Ct=bt("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,tt=Gt!=Object,lt=Ct("join",",");se({target:"Array",proto:!0,forced:tt||!lt},{join:function(ht){return et.call(Xt(this),ht===void 0?",":ht)}})},"./node_modules/core-js/modules/es.array.map.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/array-iteration.js").map,Xt=bt("./node_modules/core-js/internals/array-method-has-species-support.js"),Ct=Xt("map");se({target:"Array",proto:!0,forced:!Ct},{map:function(tt){return Gt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/is-object.js"),Xt=bt("./node_modules/core-js/internals/is-array.js"),Ct=bt("./node_modules/core-js/internals/to-absolute-index.js"),et=bt("./node_modules/core-js/internals/to-length.js"),tt=bt("./node_modules/core-js/internals/to-indexed-object.js"),lt=bt("./node_modules/core-js/internals/create-property.js"),rt=bt("./node_modules/core-js/internals/well-known-symbol.js"),ht=bt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=ht("slice"),xt=rt("species"),Nt=[].slice,Ut=Math.max;se({target:"Array",proto:!0,forced:!dt},{slice:function(oe,he){var fe=tt(this),Le=et(fe.length),te=Ct(oe,Le),He=Ct(he===void 0?Le:he,Le),Wt,Ke,_e;if(Xt(fe)&&(Wt=fe.constructor,typeof Wt=="function"&&(Wt===Array||Xt(Wt.prototype))?Wt=void 0:Gt(Wt)&&(Wt=Wt[xt],Wt===null&&(Wt=void 0)),Wt===Array||Wt===void 0))return Nt.call(fe,te,He);for(Ke=new(Wt===void 0?Array:Wt)(Ut(He-te,0)),_e=0;te<He;te++,_e++)te in fe&&lt(Ke,_e,fe[te]);return Ke.length=_e,Ke}})},"./node_modules/core-js/modules/es.function.name.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/object-define-property.js").f,Xt=Function.prototype,Ct=Xt.toString,et=/^\s*function ([^ (]*)/,tt="name";se&&!(tt in Xt)&&Gt(Xt,tt,{configurable:!0,get:function(){try{return Ct.call(this).match(et)[1]}catch(lt){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/descriptors.js"),Gt=bt("./node_modules/core-js/internals/global.js"),Xt=bt("./node_modules/core-js/internals/is-forced.js"),Ct=bt("./node_modules/core-js/internals/redefine.js"),et=bt("./node_modules/core-js/internals/has.js"),tt=bt("./node_modules/core-js/internals/classof-raw.js"),lt=bt("./node_modules/core-js/internals/inherit-if-required.js"),rt=bt("./node_modules/core-js/internals/is-symbol.js"),ht=bt("./node_modules/core-js/internals/to-primitive.js"),dt=bt("./node_modules/core-js/internals/fails.js"),xt=bt("./node_modules/core-js/internals/object-create.js"),Nt=bt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Ut=bt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,_t=bt("./node_modules/core-js/internals/object-define-property.js").f,oe=bt("./node_modules/core-js/internals/string-trim.js").trim,he="Number",fe=Gt[he],Le=fe.prototype,te=tt(xt(Le))==he,He=function(Ge){if(rt(Ge))throw TypeError("Cannot convert a Symbol value to a number");var Ue=ht(Ge,"number"),ve,ne,Ce,bn,Ln,Ve,Nn,Zn;if(typeof Ue=="string"&&Ue.length>2){if(Ue=oe(Ue),ve=Ue.charCodeAt(0),ve===43||ve===45){if(ne=Ue.charCodeAt(2),ne===88||ne===120)return NaN}else if(ve===48){switch(Ue.charCodeAt(1)){case 66:case 98:Ce=2,bn=49;break;case 79:case 111:Ce=8,bn=55;break;default:return+Ue}for(Ln=Ue.slice(2),Ve=Ln.length,Nn=0;Nn<Ve;Nn++)if(Zn=Ln.charCodeAt(Nn),Zn<48||Zn>bn)return NaN;return parseInt(Ln,Ce)}}return+Ue};if(Xt(he,!fe(" 0o1")||!fe("0b1")||fe("+0x1"))){for(var Wt=function(Ue){var ve=arguments.length<1?0:Ue,ne=this;return ne instanceof Wt&&(te?dt(function(){Le.valueOf.call(ne)}):tt(ne)!=he)?lt(new fe(He(ve)),ne,Wt):He(ve)},Ke=se?Nt(fe):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_e=0,Ne;Ke.length>_e;_e++)et(fe,Ne=Ke[_e])&&!et(Wt,Ne)&&_t(Wt,Ne,Ut(fe,Ne));Wt.prototype=Le,Le.constructor=Wt,Ct(Gt,he,Wt)}},"./node_modules/core-js/modules/es.object.assign.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/object-assign.js");se({target:"Object",stat:!0,forced:Object.assign!==Gt},{assign:Gt})},"./node_modules/core-js/modules/es.object.keys.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/to-object.js"),Xt=bt("./node_modules/core-js/internals/object-keys.js"),Ct=bt("./node_modules/core-js/internals/fails.js"),et=Ct(function(){Xt(1)});se({target:"Object",stat:!0,forced:et},{keys:function(lt){return Xt(Gt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=bt("./node_modules/core-js/internals/redefine.js"),Xt=bt("./node_modules/core-js/internals/object-to-string.js");se||Gt(Object.prototype,"toString",Xt,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/redefine.js"),Gt=bt("./node_modules/core-js/internals/an-object.js"),Xt=bt("./node_modules/core-js/internals/to-string.js"),Ct=bt("./node_modules/core-js/internals/fails.js"),et=bt("./node_modules/core-js/internals/regexp-flags.js"),tt="toString",lt=RegExp.prototype,rt=lt[tt],ht=Ct(function(){return rt.call({source:"a",flags:"b"})!="/a/b"}),dt=rt.name!=tt;(ht||dt)&&se(RegExp.prototype,tt,function(){var Nt=Gt(this),Ut=Xt(Nt.source),_t=Nt.flags,oe=Xt(_t===void 0&&Nt instanceof RegExp&&!("flags"in lt)?et.call(Nt):_t);return"/"+Ut+"/"+oe},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/string-multibyte.js").charAt,Gt=bt("./node_modules/core-js/internals/to-string.js"),Xt=bt("./node_modules/core-js/internals/internal-state.js"),Ct=bt("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=Xt.set,lt=Xt.getterFor(et);Ct(String,"String",function(rt){tt(this,{type:et,string:Gt(rt),index:0})},function(){var ht=lt(this),dt=ht.string,xt=ht.index,Nt;return xt>=dt.length?{value:void 0,done:!0}:(Nt=se(dt,xt),ht.index+=Nt.length,{value:Nt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/create-html.js"),Xt=bt("./node_modules/core-js/internals/string-html-forced.js");se({target:"String",proto:!0,forced:Xt("link")},{link:function(et){return Gt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/descriptors.js"),Xt=bt("./node_modules/core-js/internals/global.js"),Ct=bt("./node_modules/core-js/internals/has.js"),et=bt("./node_modules/core-js/internals/is-object.js"),tt=bt("./node_modules/core-js/internals/object-define-property.js").f,lt=bt("./node_modules/core-js/internals/copy-constructor-properties.js"),rt=Xt.Symbol;if(Gt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ht={},dt=function(){var he=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),fe=this instanceof dt?new rt(he):he===void 0?rt():rt(he);return he===""&&(ht[fe]=!0),fe};lt(dt,rt);var xt=dt.prototype=rt.prototype;xt.constructor=dt;var Nt=xt.toString,Ut=String(rt("test"))=="Symbol(test)",_t=/^Symbol\((.*)\)[^)]+$/;tt(xt,"description",{configurable:!0,get:function(){var he=et(this)?this.valueOf():this,fe=Nt.call(he);if(Ct(ht,he))return"";var Le=Ut?fe.slice(7,-1):fe.replace(_t,"$1");return Le===""?void 0:Le}}),se({global:!0,forced:!0},{Symbol:dt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/define-well-known-symbol.js");se("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(jt,qt,bt){"use strict";var se=bt("./node_modules/core-js/internals/export.js"),Gt=bt("./node_modules/core-js/internals/global.js"),Xt=bt("./node_modules/core-js/internals/get-built-in.js"),Ct=bt("./node_modules/core-js/internals/is-pure.js"),et=bt("./node_modules/core-js/internals/descriptors.js"),tt=bt("./node_modules/core-js/internals/native-symbol.js"),lt=bt("./node_modules/core-js/internals/fails.js"),rt=bt("./node_modules/core-js/internals/has.js"),ht=bt("./node_modules/core-js/internals/is-array.js"),dt=bt("./node_modules/core-js/internals/is-object.js"),xt=bt("./node_modules/core-js/internals/is-symbol.js"),Nt=bt("./node_modules/core-js/internals/an-object.js"),Ut=bt("./node_modules/core-js/internals/to-object.js"),_t=bt("./node_modules/core-js/internals/to-indexed-object.js"),oe=bt("./node_modules/core-js/internals/to-property-key.js"),he=bt("./node_modules/core-js/internals/to-string.js"),fe=bt("./node_modules/core-js/internals/create-property-descriptor.js"),Le=bt("./node_modules/core-js/internals/object-create.js"),te=bt("./node_modules/core-js/internals/object-keys.js"),He=bt("./node_modules/core-js/internals/object-get-own-property-names.js"),Wt=bt("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ke=bt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),_e=bt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ne=bt("./node_modules/core-js/internals/object-define-property.js"),Ge=bt("./node_modules/core-js/internals/object-property-is-enumerable.js"),Ue=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),ve=bt("./node_modules/core-js/internals/redefine.js"),ne=bt("./node_modules/core-js/internals/shared.js"),Ce=bt("./node_modules/core-js/internals/shared-key.js"),bn=bt("./node_modules/core-js/internals/hidden-keys.js"),Ln=bt("./node_modules/core-js/internals/uid.js"),Ve=bt("./node_modules/core-js/internals/well-known-symbol.js"),Nn=bt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Zn=bt("./node_modules/core-js/internals/define-well-known-symbol.js"),gi=bt("./node_modules/core-js/internals/set-to-string-tag.js"),Kn=bt("./node_modules/core-js/internals/internal-state.js"),Pi=bt("./node_modules/core-js/internals/array-iteration.js").forEach,tn=Ce("hidden"),Li="Symbol",ji="prototype",Ot=Ve("toPrimitive"),Tt=Kn.set,vt=Kn.getterFor(Li),gt=Object[ji],ft=Gt.Symbol,At=Xt("JSON","stringify"),le=_e.f,xe=Ne.f,ae=Wt.f,ye=Ge.f,Oe=ne("symbols"),Te=ne("op-symbols"),Me=ne("string-to-symbol-registry"),on=ne("symbol-to-string-registry"),Wn=ne("wks"),sn=Gt.QObject,ln=!sn||!sn[ji]||!sn[ji].findChild,Bn=et&&lt(function(){return Le(xe({},"a",{get:function(){return xe(this,"a",{value:7}).a}})).a!=7})?function(qr,Ir,Xr){var oo=le(gt,Ir);oo&&delete gt[Ir],xe(qr,Ir,Xr),oo&&qr!==gt&&xe(gt,Ir,oo)}:xe,li=function(qr,Ir){var Xr=Oe[qr]=Le(ft[ji]);return Tt(Xr,{type:Li,tag:qr,description:Ir}),et||(Xr.description=Ir),Xr},On=function(Ir,Xr,oo){Ir===gt&&On(Te,Xr,oo),Nt(Ir);var jo=oe(Xr);return Nt(oo),rt(Oe,jo)?(oo.enumerable?(rt(Ir,tn)&&Ir[tn][jo]&&(Ir[tn][jo]=!1),oo=Le(oo,{enumerable:fe(0,!1)})):(rt(Ir,tn)||xe(Ir,tn,fe(1,{})),Ir[tn][jo]=!0),Bn(Ir,jo,oo)):xe(Ir,jo,oo)},Di=function(Ir,Xr){Nt(Ir);var oo=_t(Xr),jo=te(oo).concat(eo(oo));return Pi(jo,function(ds){(!et||Xi.call(oo,ds))&&On(Ir,ds,oo[ds])}),Ir},nr=function(Ir,Xr){return Xr===void 0?Le(Ir):Di(Le(Ir),Xr)},Xi=function(Ir){var Xr=oe(Ir),oo=ye.call(this,Xr);return this===gt&&rt(Oe,Xr)&&!rt(Te,Xr)?!1:oo||!rt(this,Xr)||!rt(Oe,Xr)||rt(this,tn)&&this[tn][Xr]?oo:!0},Mr=function(Ir,Xr){var oo=_t(Ir),jo=oe(Xr);if(!(oo===gt&&rt(Oe,jo)&&!rt(Te,jo))){var ds=le(oo,jo);return ds&&rt(Oe,jo)&&!(rt(oo,tn)&&oo[tn][jo])&&(ds.enumerable=!0),ds}},br=function(Ir){var Xr=ae(_t(Ir)),oo=[];return Pi(Xr,function(jo){!rt(Oe,jo)&&!rt(bn,jo)&&oo.push(jo)}),oo},eo=function(Ir){var Xr=Ir===gt,oo=ae(Xr?Te:_t(Ir)),jo=[];return Pi(oo,function(ds){rt(Oe,ds)&&(!Xr||rt(gt,ds))&&jo.push(Oe[ds])}),jo};if(tt||(ft=function(){if(this instanceof ft)throw TypeError("Symbol is not a constructor");var Ir=!arguments.length||arguments[0]===void 0?void 0:he(arguments[0]),Xr=Ln(Ir),oo=function(jo){this===gt&&oo.call(Te,jo),rt(this,tn)&&rt(this[tn],Xr)&&(this[tn][Xr]=!1),Bn(this,Xr,fe(1,jo))};return et&&ln&&Bn(gt,Xr,{configurable:!0,set:oo}),li(Xr,Ir)},ve(ft[ji],"toString",function(){return vt(this).tag}),ve(ft,"withoutSetter",function(qr){return li(Ln(qr),qr)}),Ge.f=Xi,Ne.f=On,_e.f=Mr,He.f=Wt.f=br,Ke.f=eo,Nn.f=function(qr){return li(Ve(qr),qr)},et&&(xe(ft[ji],"description",{configurable:!0,get:function(){return vt(this).description}}),Ct||ve(gt,"propertyIsEnumerable",Xi,{unsafe:!0}))),se({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:ft}),Pi(te(Wn),function(qr){Zn(qr)}),se({target:Li,stat:!0,forced:!tt},{for:function(qr){var Ir=he(qr);if(rt(Me,Ir))return Me[Ir];var Xr=ft(Ir);return Me[Ir]=Xr,on[Xr]=Ir,Xr},keyFor:function(Ir){if(!xt(Ir))throw TypeError(Ir+" is not a symbol");if(rt(on,Ir))return on[Ir]},useSetter:function(){ln=!0},useSimple:function(){ln=!1}}),se({target:"Object",stat:!0,forced:!tt,sham:!et},{create:nr,defineProperty:On,defineProperties:Di,getOwnPropertyDescriptor:Mr}),se({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:br,getOwnPropertySymbols:eo}),se({target:"Object",stat:!0,forced:lt(function(){Ke.f(1)})},{getOwnPropertySymbols:function(Ir){return Ke.f(Ut(Ir))}}),At){var Yr=!tt||lt(function(){var qr=ft();return At([qr])!="[null]"||At({a:qr})!="{}"||At(Object(qr))!="{}"});se({target:"JSON",stat:!0,forced:Yr},{stringify:function(Ir,Xr,oo){for(var jo=[Ir],ds=1,no;arguments.length>ds;)jo.push(arguments[ds++]);if(no=Xr,!(!dt(Xr)&&Ir===void 0||xt(Ir)))return ht(Xr)||(Xr=function(Is,xo){if(typeof no=="function"&&(xo=no.call(this,Is,xo)),!xt(xo))return xo}),jo[1]=Xr,At.apply(null,jo)}})}ft[ji][Ot]||Ue(ft[ji],Ot,ft[ji].valueOf),gi(ft,Li),bn[tn]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/dom-iterables.js"),Xt=bt("./node_modules/core-js/internals/array-for-each.js"),Ct=bt("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in Gt){var tt=se[et],lt=tt&&tt.prototype;if(lt&&lt.forEach!==Xt)try{Ct(lt,"forEach",Xt)}catch(rt){lt.forEach=Xt}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(jt,qt,bt){var se=bt("./node_modules/core-js/internals/global.js"),Gt=bt("./node_modules/core-js/internals/dom-iterables.js"),Xt=bt("./node_modules/core-js/modules/es.array.iterator.js"),Ct=bt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=bt("./node_modules/core-js/internals/well-known-symbol.js"),tt=et("iterator"),lt=et("toStringTag"),rt=Xt.values;for(var ht in Gt){var dt=se[ht],xt=dt&&dt.prototype;if(xt){if(xt[tt]!==rt)try{Ct(xt,tt,rt)}catch(Ut){xt[tt]=rt}if(xt[lt]||Ct(xt,lt,ht),Gt[ht]){for(var Nt in Xt)if(xt[Nt]!==Xt[Nt])try{Ct(xt,Nt,Xt[Nt])}catch(Ut){xt[Nt]=Xt[Nt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(jt){(function(qt,bt){jt.exports=bt()})(this,function(){"use strict";function qt(sn){var ln=typeof sn;return sn!==null&&(ln==="object"||ln==="function")}function bt(sn){return typeof sn=="function"}var se=void 0;Array.isArray?se=Array.isArray:se=function(sn){return Object.prototype.toString.call(sn)==="[object Array]"};var Gt=se,Xt=0,Ct=void 0,et=void 0,tt=function(ln,Bn){te[Xt]=ln,te[Xt+1]=Bn,Xt+=2,Xt===2&&(et?et(He):Ke())};function lt(sn){et=sn}function rt(sn){tt=sn}var ht=typeof window!="undefined"?window:void 0,dt=ht||{},xt=dt.MutationObserver||dt.WebKitMutationObserver,Nt=typeof self=="undefined"&&typeof Lt!="undefined"&&{}.toString.call(Lt)==="[object process]",Ut=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function _t(){return function(){return Lt.nextTick(He)}}function oe(){return typeof Ct!="undefined"?function(){Ct(He)}:Le()}function he(){var sn=0,ln=new xt(He),Bn=document.createTextNode("");return ln.observe(Bn,{characterData:!0}),function(){Bn.data=sn=++sn%2}}function fe(){var sn=new MessageChannel;return sn.port1.onmessage=He,function(){return sn.port2.postMessage(0)}}function Le(){var sn=setTimeout;return function(){return sn(He,1)}}var te=new Array(1e3);function He(){for(var sn=0;sn<Xt;sn+=2){var ln=te[sn],Bn=te[sn+1];ln(Bn),te[sn]=void 0,te[sn+1]=void 0}Xt=0}function Wt(){try{var sn=Function("return this")().require("vertx");return Ct=sn.runOnLoop||sn.runOnContext,oe()}catch(ln){return Le()}}var Ke=void 0;Nt?Ke=_t():xt?Ke=he():Ut?Ke=fe():ht===void 0?Ke=Wt():Ke=Le();function _e(sn,ln){var Bn=this,li=new this.constructor(Ue);li[Ge]===void 0&&At(li);var On=Bn._state;if(On){var Di=arguments[On-1];tt(function(){return Tt(On,li,Di,Bn._result)})}else ji(Bn,li,sn,ln);return li}function Ne(sn){var ln=this;if(sn&&typeof sn=="object"&&sn.constructor===ln)return sn;var Bn=new ln(Ue);return Kn(Bn,sn),Bn}var Ge=Math.random().toString(36).substring(2);function Ue(){}var ve=void 0,ne=1,Ce=2;function bn(){return new TypeError("You cannot resolve a promise with itself")}function Ln(){return new TypeError("A promises callback cannot return that same promise.")}function Ve(sn,ln,Bn,li){try{sn.call(ln,Bn,li)}catch(On){return On}}function Nn(sn,ln,Bn){tt(function(li){var On=!1,Di=Ve(Bn,ln,function(nr){On||(On=!0,ln!==nr?Kn(li,nr):tn(li,nr))},function(nr){On||(On=!0,Li(li,nr))},"Settle: "+(li._label||" unknown promise"));!On&&Di&&(On=!0,Li(li,Di))},sn)}function Zn(sn,ln){ln._state===ne?tn(sn,ln._result):ln._state===Ce?Li(sn,ln._result):ji(ln,void 0,function(Bn){return Kn(sn,Bn)},function(Bn){return Li(sn,Bn)})}function gi(sn,ln,Bn){ln.constructor===sn.constructor&&Bn===_e&&ln.constructor.resolve===Ne?Zn(sn,ln):Bn===void 0?tn(sn,ln):bt(Bn)?Nn(sn,ln,Bn):tn(sn,ln)}function Kn(sn,ln){if(sn===ln)Li(sn,bn());else if(qt(ln)){var Bn=void 0;try{Bn=ln.then}catch(li){Li(sn,li);return}gi(sn,ln,Bn)}else tn(sn,ln)}function Pi(sn){sn._onerror&&sn._onerror(sn._result),Ot(sn)}function tn(sn,ln){sn._state===ve&&(sn._result=ln,sn._state=ne,sn._subscribers.length!==0&&tt(Ot,sn))}function Li(sn,ln){sn._state===ve&&(sn._state=Ce,sn._result=ln,tt(Pi,sn))}function ji(sn,ln,Bn,li){var On=sn._subscribers,Di=On.length;sn._onerror=null,On[Di]=ln,On[Di+ne]=Bn,On[Di+Ce]=li,Di===0&&sn._state&&tt(Ot,sn)}function Ot(sn){var ln=sn._subscribers,Bn=sn._state;if(ln.length!==0){for(var li=void 0,On=void 0,Di=sn._result,nr=0;nr<ln.length;nr+=3)li=ln[nr],On=ln[nr+Bn],li?Tt(Bn,li,On,Di):On(Di);sn._subscribers.length=0}}function Tt(sn,ln,Bn,li){var On=bt(Bn),Di=void 0,nr=void 0,Xi=!0;if(On){try{Di=Bn(li)}catch(Mr){Xi=!1,nr=Mr}if(ln===Di){Li(ln,Ln());return}}else Di=li;ln._state!==ve||(On&&Xi?Kn(ln,Di):Xi===!1?Li(ln,nr):sn===ne?tn(ln,Di):sn===Ce&&Li(ln,Di))}function vt(sn,ln){try{ln(function(li){Kn(sn,li)},function(li){Li(sn,li)})}catch(Bn){Li(sn,Bn)}}var gt=0;function ft(){return gt++}function At(sn){sn[Ge]=gt++,sn._state=void 0,sn._result=void 0,sn._subscribers=[]}function le(){return new Error("Array Methods must be provided an Array")}var xe=function(){function sn(ln,Bn){this._instanceConstructor=ln,this.promise=new ln(Ue),this.promise[Ge]||At(this.promise),Gt(Bn)?(this.length=Bn.length,this._remaining=Bn.length,this._result=new Array(this.length),this.length===0?tn(this.promise,this._result):(this.length=this.length||0,this._enumerate(Bn),this._remaining===0&&tn(this.promise,this._result))):Li(this.promise,le())}return sn.prototype._enumerate=function(Bn){for(var li=0;this._state===ve&&li<Bn.length;li++)this._eachEntry(Bn[li],li)},sn.prototype._eachEntry=function(Bn,li){var On=this._instanceConstructor,Di=On.resolve;if(Di===Ne){var nr=void 0,Xi=void 0,Mr=!1;try{nr=Bn.then}catch(eo){Mr=!0,Xi=eo}if(nr===_e&&Bn._state!==ve)this._settledAt(Bn._state,li,Bn._result);else if(typeof nr!="function")this._remaining--,this._result[li]=Bn;else if(On===on){var br=new On(Ue);Mr?Li(br,Xi):gi(br,Bn,nr),this._willSettleAt(br,li)}else this._willSettleAt(new On(function(eo){return eo(Bn)}),li)}else this._willSettleAt(Di(Bn),li)},sn.prototype._settledAt=function(Bn,li,On){var Di=this.promise;Di._state===ve&&(this._remaining--,Bn===Ce?Li(Di,On):this._result[li]=On),this._remaining===0&&tn(Di,this._result)},sn.prototype._willSettleAt=function(Bn,li){var On=this;ji(Bn,void 0,function(Di){return On._settledAt(ne,li,Di)},function(Di){return On._settledAt(Ce,li,Di)})},sn}();function ae(sn){return new xe(this,sn).promise}function ye(sn){var ln=this;return Gt(sn)?new ln(function(Bn,li){for(var On=sn.length,Di=0;Di<On;Di++)ln.resolve(sn[Di]).then(Bn,li)}):new ln(function(Bn,li){return li(new TypeError("You must pass an array to race."))})}function Oe(sn){var ln=this,Bn=new ln(Ue);return Li(Bn,sn),Bn}function Te(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Me(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var on=function(){function sn(ln){this[Ge]=ft(),this._result=this._state=void 0,this._subscribers=[],Ue!==ln&&(typeof ln!="function"&&Te(),this instanceof sn?vt(this,ln):Me())}return sn.prototype.catch=function(Bn){return this.then(null,Bn)},sn.prototype.finally=function(Bn){var li=this,On=li.constructor;return bt(Bn)?li.then(function(Di){return On.resolve(Bn()).then(function(){return Di})},function(Di){return On.resolve(Bn()).then(function(){throw Di})}):li.then(Bn,Bn)},sn}();on.prototype.then=_e,on.all=ae,on.race=ye,on.resolve=Ne,on.reject=Oe,on._setScheduler=lt,on._setAsap=rt,on._asap=tt;function Wn(){var sn=void 0;if(typeof Ft.g!="undefined")sn=Ft.g;else if(typeof self!="undefined")sn=self;else try{sn=Function("return this")()}catch(li){throw new Error("polyfill failed because global object is unavailable in this environment")}var ln=sn.Promise;if(ln){var Bn=null;try{Bn=Object.prototype.toString.call(ln.resolve())}catch(li){}if(Bn==="[object Promise]"&&!ln.cast)return}sn.Promise=on}return on.polyfill=Wn,on.Promise=on,on})},html2canvas:function(jt){"use strict";jt.exports=re},jspdf:function(jt){"use strict";jt.exports=ce}},ee={};function Vt(jt){var qt=ee[jt];if(qt!==void 0)return qt.exports;var bt=ee[jt]={exports:{}};return Ie[jt].call(bt.exports,bt,bt.exports,Vt),bt.exports}(function(){Vt.n=function(jt){var qt=jt&&jt.__esModule?function(){return jt.default}:function(){return jt};return Vt.d(qt,{a:qt}),qt}})(),function(){Vt.d=function(jt,qt){for(var bt in qt)Vt.o(qt,bt)&&!Vt.o(jt,bt)&&Object.defineProperty(jt,bt,{enumerable:!0,get:qt[bt]})}}(),function(){Vt.o=function(jt,qt){return Object.prototype.hasOwnProperty.call(jt,qt)}}(),function(){Vt.r=function(jt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(jt,"__esModule",{value:!0})}}();var Mt={};return function(){"use strict";Vt.r(Mt);var jt=Vt("./src/worker.js"),qt=Vt("./src/plugin/jspdf-plugin.js"),bt=Vt("./src/plugin/pagebreaks.js"),se=Vt("./src/plugin/hyperlinks.js"),Gt=function Xt(Ct,et){var tt=new Xt.Worker(et);return Ct?tt.from(Ct).save():tt};Gt.Worker=jt.default,Mt.default=Gt}(),Mt=Mt.default,Mt}()})},67467:function(hi,Sn){Sn.read=function(Ft,Lt,ce,re,Ie){var ee,Vt,Mt=Ie*8-re-1,jt=(1<<Mt)-1,qt=jt>>1,bt=-7,se=ce?Ie-1:0,Gt=ce?-1:1,Xt=Ft[Lt+se];for(se+=Gt,ee=Xt&(1<<-bt)-1,Xt>>=-bt,bt+=Mt;bt>0;ee=ee*256+Ft[Lt+se],se+=Gt,bt-=8);for(Vt=ee&(1<<-bt)-1,ee>>=-bt,bt+=re;bt>0;Vt=Vt*256+Ft[Lt+se],se+=Gt,bt-=8);if(ee===0)ee=1-qt;else{if(ee===jt)return Vt?NaN:(Xt?-1:1)*(1/0);Vt=Vt+Math.pow(2,re),ee=ee-qt}return(Xt?-1:1)*Vt*Math.pow(2,ee-re)},Sn.write=function(Ft,Lt,ce,re,Ie,ee){var Vt,Mt,jt,qt=ee*8-Ie-1,bt=(1<<qt)-1,se=bt>>1,Gt=Ie===23?Math.pow(2,-24)-Math.pow(2,-77):0,Xt=re?0:ee-1,Ct=re?1:-1,et=Lt<0||Lt===0&&1/Lt<0?1:0;for(Lt=Math.abs(Lt),isNaN(Lt)||Lt===1/0?(Mt=isNaN(Lt)?1:0,Vt=bt):(Vt=Math.floor(Math.log(Lt)/Math.LN2),Lt*(jt=Math.pow(2,-Vt))<1&&(Vt--,jt*=2),Vt+se>=1?Lt+=Gt/jt:Lt+=Gt*Math.pow(2,1-se),Lt*jt>=2&&(Vt++,jt/=2),Vt+se>=bt?(Mt=0,Vt=bt):Vt+se>=1?(Mt=(Lt*jt-1)*Math.pow(2,Ie),Vt=Vt+se):(Mt=Lt*Math.pow(2,se-1)*Math.pow(2,Ie),Vt=0));Ie>=8;Ft[ce+Xt]=Mt&255,Xt+=Ct,Mt/=256,Ie-=8);for(Vt=Vt<<Ie|Mt,qt+=Ie;qt>0;Ft[ce+Xt]=Vt&255,Xt+=Ct,Vt/=256,qt-=8);Ft[ce+Xt-Ct]|=et*128}},32092:function(hi,Sn,Ft){"use strict";Ft.r(Sn),Ft.d(Sn,{AcroForm:function(){return Eu},AcroFormAppearance:function(){return zo},AcroFormButton:function(){return $a},AcroFormCheckBox:function(){return bu},AcroFormChoiceField:function(){return au},AcroFormComboBox:function(){return Eo},AcroFormEditBox:function(){return Oa},AcroFormListBox:function(){return Xa},AcroFormPasswordField:function(){return nu},AcroFormPushButton:function(){return lu},AcroFormRadioButton:function(){return Yl},AcroFormTextField:function(){return fu},GState:function(){return Ts},ShadingPattern:function(){return Aa},TilingPattern:function(){return qs},default:function(){return Jl},jsPDF:function(){return Qo}});var Lt=Ft(39559),ce={},re=function(Et,wt,Pt,Qt,ie){var Yt=new Worker(ce[wt]||(ce[wt]=URL.createObjectURL(new Blob([Et+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Yt.onmessage=function(ge){var we=ge.data,Pe=we.$e$;if(Pe){var Xe=new Error(Pe[0]);Xe.code=Pe[1],Xe.stack=Pe[2],ie(Xe,null)}else ie(null,we)},Yt.postMessage(Pt,Qt),Yt},Ie=Uint8Array,ee=Uint16Array,Vt=Int32Array,Mt=new Ie([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jt=new Ie([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),qt=new Ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bt=function(Et,wt){for(var Pt=new ee(31),Qt=0;Qt<31;++Qt)Pt[Qt]=wt+=1<<Et[Qt-1];for(var ie=new Vt(Pt[30]),Qt=1;Qt<30;++Qt)for(var Yt=Pt[Qt];Yt<Pt[Qt+1];++Yt)ie[Yt]=Yt-Pt[Qt]<<5|Qt;return{b:Pt,r:ie}},se=bt(Mt,2),Gt=se.b,Xt=se.r;Gt[28]=258,Xt[258]=28;for(var Ct=bt(jt,0),et=Ct.b,tt=Ct.r,lt=new ee(32768),rt=0;rt<32768;++rt){var ht=(rt&43690)>>1|(rt&21845)<<1;ht=(ht&52428)>>2|(ht&13107)<<2,ht=(ht&61680)>>4|(ht&3855)<<4,lt[rt]=((ht&65280)>>8|(ht&255)<<8)>>1}for(var dt=function(Et,wt,Pt){for(var Qt=Et.length,ie=0,Yt=new ee(wt);ie<Qt;++ie)Et[ie]&&++Yt[Et[ie]-1];var ge=new ee(wt);for(ie=1;ie<wt;++ie)ge[ie]=ge[ie-1]+Yt[ie-1]<<1;var we;if(Pt){we=new ee(1<<wt);var Pe=15-wt;for(ie=0;ie<Qt;++ie)if(Et[ie])for(var Xe=ie<<4|Et[ie],dn=wt-Et[ie],An=ge[Et[ie]-1]++<<dn,Pn=An|(1<<dn)-1;An<=Pn;++An)we[lt[An]>>Pe]=Xe}else for(we=new ee(Qt),ie=0;ie<Qt;++ie)Et[ie]&&(we[ie]=lt[ge[Et[ie]-1]++]>>15-Et[ie]);return we},xt=new Ie(288),rt=0;rt<144;++rt)xt[rt]=8;for(var rt=144;rt<256;++rt)xt[rt]=9;for(var rt=256;rt<280;++rt)xt[rt]=7;for(var rt=280;rt<288;++rt)xt[rt]=8;for(var Nt=new Ie(32),rt=0;rt<32;++rt)Nt[rt]=5;var Ut=dt(xt,9,0),_t=dt(xt,9,1),oe=dt(Nt,5,0),he=dt(Nt,5,1),fe=function(Et){for(var wt=Et[0],Pt=1;Pt<Et.length;++Pt)Et[Pt]>wt&&(wt=Et[Pt]);return wt},Le=function(Et,wt,Pt){var Qt=wt/8|0;return(Et[Qt]|Et[Qt+1]<<8)>>(wt&7)&Pt},te=function(Et,wt){var Pt=wt/8|0;return(Et[Pt]|Et[Pt+1]<<8|Et[Pt+2]<<16)>>(wt&7)},He=function(Et){return(Et+7)/8|0},Wt=function(Et,wt,Pt){return(wt==null||wt<0)&&(wt=0),(Pt==null||Pt>Et.length)&&(Pt=Et.length),new Ie(Et.subarray(wt,Pt))},Ke={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},_e=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ne=function(Et,wt,Pt){var Qt=new Error(wt||_e[Et]);if(Qt.code=Et,Error.captureStackTrace&&Error.captureStackTrace(Qt,Ne),!Pt)throw Qt;return Qt},Ge=function(Et,wt,Pt,Qt){var ie=Et.length,Yt=Qt?Qt.length:0;if(!ie||wt.f&&!wt.l)return Pt||new Ie(0);var ge=!Pt,we=ge||wt.i!=2,Pe=wt.i;ge&&(Pt=new Ie(ie*3));var Xe=function(Zi){var Ar=Pt.length;if(Zi>Ar){var Er=new Ie(Math.max(Ar*2,Zi));Er.set(Pt),Pt=Er}},dn=wt.f||0,An=wt.p||0,Pn=wt.b||0,ze=wt.l,mi=wt.d,ti=wt.m,vi=wt.n,Rn=ie*8;do{if(!ze){dn=Le(Et,An,1);var Ai=Le(Et,An+1,3);if(An+=3,Ai)if(Ai==1)ze=_t,mi=he,ti=9,vi=5;else if(Ai==2){var lo=Le(Et,An,31)+257,mr=Le(Et,An+10,15)+4,Oi=lo+Le(Et,An+5,31)+1;An+=14;for(var Cr=new Ie(Oi),Or=new Ie(19),Jn=0;Jn<mr;++Jn)Or[qt[Jn]]=Le(Et,An+Jn*3,7);An+=mr*3;for(var oi=fe(Or),pe=(1<<oi)-1,me=dt(Or,oi,1),Jn=0;Jn<Oi;){var Ze=me[Le(Et,An,pe)];An+=Ze&15;var Qi=Ze>>4;if(Qi<16)Cr[Jn++]=Qi;else{var Ye=0,mn=0;for(Qi==16?(mn=3+Le(Et,An,3),An+=2,Ye=Cr[Jn-1]):Qi==17?(mn=3+Le(Et,An,7),An+=3):Qi==18&&(mn=11+Le(Et,An,127),An+=7);mn--;)Cr[Jn++]=Ye}}var en=Cr.subarray(0,lo),Tn=Cr.subarray(lo);ti=fe(en),vi=fe(Tn),ze=dt(en,ti,1),mi=dt(Tn,vi,1)}else Ne(1);else{var Qi=He(An)+4,rr=Et[Qi-4]|Et[Qi-3]<<8,Fr=Qi+rr;if(Fr>ie){Pe&&Ne(0);break}we&&Xe(Pn+rr),Pt.set(Et.subarray(Qi,Fr),Pn),wt.b=Pn+=rr,wt.p=An=Fr*8,wt.f=dn;continue}if(An>Rn){Pe&&Ne(0);break}}we&&Xe(Pn+131072);for(var Un=(1<<ti)-1,qn=(1<<vi)-1,Qe=An;;Qe=An){var Ye=ze[te(Et,An)&Un],un=Ye>>4;if(An+=Ye&15,An>Rn){Pe&&Ne(0);break}if(Ye||Ne(2),un<256)Pt[Pn++]=un;else if(un==256){Qe=An,ze=null;break}else{var pn=un-254;if(un>264){var Jn=un-257,Qn=Mt[Jn];pn=Le(Et,An,(1<<Qn)-1)+Gt[Jn],An+=Qn}var $n=mi[te(Et,An)&qn],ri=$n>>4;$n||Ne(3),An+=$n&15;var Tn=et[ri];if(ri>3){var Qn=jt[ri];Tn+=te(Et,An)&(1<<Qn)-1,An+=Qn}if(An>Rn){Pe&&Ne(0);break}we&&Xe(Pn+131072);var Fi=Pn+pn;if(Pn<Tn){var ui=Yt-Tn,Ji=Math.min(Tn,Fi);for(ui+Pn<0&&Ne(3);Pn<Ji;++Pn)Pt[Pn]=Qt[ui+Pn]}for(;Pn<Fi;++Pn)Pt[Pn]=Pt[Pn-Tn]}}wt.l=ze,wt.p=Qe,wt.b=Pn,wt.f=dn,ze&&(dn=1,wt.m=ti,wt.d=mi,wt.n=vi)}while(!dn);return Pn!=Pt.length&&ge?Wt(Pt,0,Pn):Pt.subarray(0,Pn)},Ue=function(Et,wt,Pt){Pt<<=wt&7;var Qt=wt/8|0;Et[Qt]|=Pt,Et[Qt+1]|=Pt>>8},ve=function(Et,wt,Pt){Pt<<=wt&7;var Qt=wt/8|0;Et[Qt]|=Pt,Et[Qt+1]|=Pt>>8,Et[Qt+2]|=Pt>>16},ne=function(Et,wt){for(var Pt=[],Qt=0;Qt<Et.length;++Qt)Et[Qt]&&Pt.push({s:Qt,f:Et[Qt]});var ie=Pt.length,Yt=Pt.slice();if(!ie)return{t:gi,l:0};if(ie==1){var ge=new Ie(Pt[0].s+1);return ge[Pt[0].s]=1,{t:ge,l:1}}Pt.sort(function(Fr,lo){return Fr.f-lo.f}),Pt.push({s:-1,f:25001});var we=Pt[0],Pe=Pt[1],Xe=0,dn=1,An=2;for(Pt[0]={s:-1,f:we.f+Pe.f,l:we,r:Pe};dn!=ie-1;)we=Pt[Pt[Xe].f<Pt[An].f?Xe++:An++],Pe=Pt[Xe!=dn&&Pt[Xe].f<Pt[An].f?Xe++:An++],Pt[dn++]={s:-1,f:we.f+Pe.f,l:we,r:Pe};for(var Pn=Yt[0].s,Qt=1;Qt<ie;++Qt)Yt[Qt].s>Pn&&(Pn=Yt[Qt].s);var ze=new ee(Pn+1),mi=Ce(Pt[dn-1],ze,0);if(mi>wt){var Qt=0,ti=0,vi=mi-wt,Rn=1<<vi;for(Yt.sort(function(lo,mr){return ze[mr.s]-ze[lo.s]||lo.f-mr.f});Qt<ie;++Qt){var Ai=Yt[Qt].s;if(ze[Ai]>wt)ti+=Rn-(1<<mi-ze[Ai]),ze[Ai]=wt;else break}for(ti>>=vi;ti>0;){var Qi=Yt[Qt].s;ze[Qi]<wt?ti-=1<<wt-ze[Qi]++-1:++Qt}for(;Qt>=0&&ti;--Qt){var rr=Yt[Qt].s;ze[rr]==wt&&(--ze[rr],++ti)}mi=wt}return{t:new Ie(ze),l:mi}},Ce=function(Et,wt,Pt){return Et.s==-1?Math.max(Ce(Et.l,wt,Pt+1),Ce(Et.r,wt,Pt+1)):wt[Et.s]=Pt},bn=function(Et){for(var wt=Et.length;wt&&!Et[--wt];);for(var Pt=new ee(++wt),Qt=0,ie=Et[0],Yt=1,ge=function(Pe){Pt[Qt++]=Pe},we=1;we<=wt;++we)if(Et[we]==ie&&we!=wt)++Yt;else{if(!ie&&Yt>2){for(;Yt>138;Yt-=138)ge(32754);Yt>2&&(ge(Yt>10?Yt-11<<5|28690:Yt-3<<5|12305),Yt=0)}else if(Yt>3){for(ge(ie),--Yt;Yt>6;Yt-=6)ge(8304);Yt>2&&(ge(Yt-3<<5|8208),Yt=0)}for(;Yt--;)ge(ie);Yt=1,ie=Et[we]}return{c:Pt.subarray(0,Qt),n:wt}},Ln=function(Et,wt){for(var Pt=0,Qt=0;Qt<wt.length;++Qt)Pt+=Et[Qt]*wt[Qt];return Pt},Ve=function(Et,wt,Pt){var Qt=Pt.length,ie=He(wt+2);Et[ie]=Qt&255,Et[ie+1]=Qt>>8,Et[ie+2]=Et[ie]^255,Et[ie+3]=Et[ie+1]^255;for(var Yt=0;Yt<Qt;++Yt)Et[ie+Yt+4]=Pt[Yt];return(ie+4+Qt)*8},Nn=function(Et,wt,Pt,Qt,ie,Yt,ge,we,Pe,Xe,dn){Ue(wt,dn++,Pt),++ie[256];for(var An=ne(ie,15),Pn=An.t,ze=An.l,mi=ne(Yt,15),ti=mi.t,vi=mi.l,Rn=bn(Pn),Ai=Rn.c,Qi=Rn.n,rr=bn(ti),Fr=rr.c,lo=rr.n,mr=new ee(19),Oi=0;Oi<Ai.length;++Oi)++mr[Ai[Oi]&31];for(var Oi=0;Oi<Fr.length;++Oi)++mr[Fr[Oi]&31];for(var Cr=ne(mr,7),Or=Cr.t,Jn=Cr.l,oi=19;oi>4&&!Or[qt[oi-1]];--oi);var pe=Xe+5<<3,me=Ln(ie,xt)+Ln(Yt,Nt)+ge,Ze=Ln(ie,Pn)+Ln(Yt,ti)+ge+14+3*oi+Ln(mr,Or)+2*mr[16]+3*mr[17]+7*mr[18];if(Pe>=0&&pe<=me&&pe<=Ze)return Ve(wt,dn,Et.subarray(Pe,Pe+Xe));var Ye,mn,en,Tn;if(Ue(wt,dn,1+(Ze<me)),dn+=2,Ze<me){Ye=dt(Pn,ze,0),mn=Pn,en=dt(ti,vi,0),Tn=ti;var Un=dt(Or,Jn,0);Ue(wt,dn,Qi-257),Ue(wt,dn+5,lo-1),Ue(wt,dn+10,oi-4),dn+=14;for(var Oi=0;Oi<oi;++Oi)Ue(wt,dn+3*Oi,Or[qt[Oi]]);dn+=3*oi;for(var qn=[Ai,Fr],Qe=0;Qe<2;++Qe)for(var un=qn[Qe],Oi=0;Oi<un.length;++Oi){var pn=un[Oi]&31;Ue(wt,dn,Un[pn]),dn+=Or[pn],pn>15&&(Ue(wt,dn,un[Oi]>>5&127),dn+=un[Oi]>>12)}}else Ye=Ut,mn=xt,en=oe,Tn=Nt;for(var Oi=0;Oi<we;++Oi){var Qn=Qt[Oi];if(Qn>255){var pn=Qn>>18&31;ve(wt,dn,Ye[pn+257]),dn+=mn[pn+257],pn>7&&(Ue(wt,dn,Qn>>23&31),dn+=Mt[pn]);var $n=Qn&31;ve(wt,dn,en[$n]),dn+=Tn[$n],$n>3&&(ve(wt,dn,Qn>>5&8191),dn+=jt[$n])}else ve(wt,dn,Ye[Qn]),dn+=mn[Qn]}return ve(wt,dn,Ye[256]),dn+mn[256]},Zn=new Vt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gi=new Ie(0),Kn=function(Et,wt,Pt,Qt,ie,Yt){var ge=Yt.z||Et.length,we=new Ie(Qt+ge+5*(1+Math.ceil(ge/7e3))+ie),Pe=we.subarray(Qt,we.length-ie),Xe=Yt.l,dn=(Yt.r||0)&7;if(wt){dn&&(Pe[0]=Yt.r>>3);for(var An=Zn[wt-1],Pn=An>>13,ze=An&8191,mi=(1<<Pt)-1,ti=Yt.p||new ee(32768),vi=Yt.h||new ee(mi+1),Rn=Math.ceil(Pt/3),Ai=2*Rn,Qi=function(io){return(Et[io]^Et[io+1]<<Rn^Et[io+2]<<Ai)&mi},rr=new Vt(25e3),Fr=new ee(288),lo=new ee(32),mr=0,Oi=0,Cr=Yt.i||0,Or=0,Jn=Yt.w||0,oi=0;Cr+2<ge;++Cr){var pe=Qi(Cr),me=Cr&32767,Ze=vi[pe];if(ti[me]=Ze,vi[pe]=me,Jn<=Cr){var Ye=ge-Cr;if((mr>7e3||Or>24576)&&(Ye>423||!Xe)){dn=Nn(Et,Pe,0,rr,Fr,lo,Oi,Or,oi,Cr-oi,dn),Or=mr=Oi=0,oi=Cr;for(var mn=0;mn<286;++mn)Fr[mn]=0;for(var mn=0;mn<30;++mn)lo[mn]=0}var en=2,Tn=0,Un=ze,qn=me-Ze&32767;if(Ye>2&&pe==Qi(Cr-qn))for(var Qe=Math.min(Pn,Ye)-1,un=Math.min(32767,Cr),pn=Math.min(258,Ye);qn<=un&&--Un&&me!=Ze;){if(Et[Cr+en]==Et[Cr+en-qn]){for(var Qn=0;Qn<pn&&Et[Cr+Qn]==Et[Cr+Qn-qn];++Qn);if(Qn>en){if(en=Qn,Tn=qn,Qn>Qe)break;for(var $n=Math.min(qn,Qn-2),ri=0,mn=0;mn<$n;++mn){var Fi=Cr-qn+mn&32767,ui=ti[Fi],Ji=Fi-ui&32767;Ji>ri&&(ri=Ji,Ze=Fi)}}}me=Ze,Ze=ti[me],qn+=me-Ze&32767}if(Tn){rr[Or++]=268435456|Xt[en]<<18|tt[Tn];var Zi=Xt[en]&31,Ar=tt[Tn]&31;Oi+=Mt[Zi]+jt[Ar],++Fr[257+Zi],++lo[Ar],Jn=Cr+en,++mr}else rr[Or++]=Et[Cr],++Fr[Et[Cr]]}}for(Cr=Math.max(Cr,Jn);Cr<ge;++Cr)rr[Or++]=Et[Cr],++Fr[Et[Cr]];dn=Nn(Et,Pe,Xe,rr,Fr,lo,Oi,Or,oi,Cr-oi,dn),Xe||(Yt.r=dn&7|Pe[dn/8|0]<<3,dn-=7,Yt.h=vi,Yt.p=ti,Yt.i=Cr,Yt.w=Jn)}else{for(var Cr=Yt.w||0;Cr<ge+Xe;Cr+=65535){var Er=Cr+65535;Er>=ge&&(Pe[dn/8|0]=Xe,Er=ge),dn=Ve(Pe,dn+1,Et.subarray(Cr,Er))}Yt.i=ge}return Wt(we,0,Qt+He(dn)+ie)},Pi=null,tn=function(){var Et=-1;return{p:function(wt){for(var Pt=Et,Qt=0;Qt<wt.length;++Qt)Pt=Pi[Pt&255^wt[Qt]]^Pt>>>8;Et=Pt},d:function(){return~Et}}},Li=function(){var Et=1,wt=0;return{p:function(Pt){for(var Qt=Et,ie=wt,Yt=Pt.length|0,ge=0;ge!=Yt;){for(var we=Math.min(ge+2655,Yt);ge<we;++ge)ie+=Qt+=Pt[ge];Qt=(Qt&65535)+15*(Qt>>16),ie=(ie&65535)+15*(ie>>16)}Et=Qt,wt=ie},d:function(){return Et%=65521,wt%=65521,(Et&255)<<24|(Et&65280)<<8|(wt&255)<<8|wt>>8}}},ji=function(Et,wt,Pt,Qt,ie){if(!ie&&(ie={l:1},wt.dictionary)){var Yt=wt.dictionary.subarray(-32768),ge=new Ie(Yt.length+Et.length);ge.set(Yt),ge.set(Et,Yt.length),Et=ge,ie.w=Yt.length}return Kn(Et,wt.level==null?6:wt.level,wt.mem==null?ie.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Et.length)))*1.5):20:12+wt.mem,Pt,Qt,ie)},Ot=function(Et,wt){var Pt={};for(var Qt in Et)Pt[Qt]=Et[Qt];for(var Qt in wt)Pt[Qt]=wt[Qt];return Pt},Tt=function(Et,wt,Pt){for(var Qt=Et(),ie=Et.toString(),Yt=ie.slice(ie.indexOf("[")+1,ie.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<Qt.length;++ge){var we=Qt[ge],Pe=Yt[ge];if(typeof we=="function"){wt+=";"+Pe+"=";var Xe=we.toString();if(we.prototype)if(Xe.indexOf("[native code]")!=-1){var dn=Xe.indexOf(" ",8)+1;wt+=Xe.slice(dn,Xe.indexOf("(",dn))}else{wt+=Xe;for(var An in we.prototype)wt+=";"+Pe+".prototype."+An+"="+we.prototype[An].toString()}else wt+=Xe}else Pt[Pe]=we}return wt},vt=null,gt=function(Et){var wt=[];for(var Pt in Et)Et[Pt].buffer&&wt.push((Et[Pt]=new Et[Pt].constructor(Et[Pt])).buffer);return wt},ft=function(Et,wt,Pt,Qt){if(!vt[Pt]){for(var ie="",Yt={},ge=Et.length-1,we=0;we<ge;++we)ie=Tt(Et[we],ie,Yt);vt[Pt]={c:Tt(Et[ge],ie,Yt),e:Yt}}var Pe=Ot({},vt[Pt].e);return re(vt[Pt].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+wt.toString()+"}",Pt,Pe,gt(Pe),Qt)},At=function(){return[Ie,ee,Vt,Mt,jt,qt,Gt,et,_t,he,lt,_e,dt,fe,Le,te,He,Wt,Ne,Ge,Is,Te,Me]},le=function(){return[Ie,ee,Vt,Mt,jt,qt,Xt,tt,Ut,xt,oe,Nt,lt,Zn,gi,dt,Ue,ve,ne,Ce,bn,Ln,Ve,Nn,He,Wt,Kn,ji,oo,Te]},xe=function(){return[Di,Mr,On,tn,Pi]},ae=function(){return[nr,Xi]},ye=function(){return[br,On,Li]},Oe=function(){return[eo]},Te=function(Et){return postMessage(Et,[Et.buffer])},Me=function(Et){return Et&&{out:Et.size&&new Ie(Et.size),dictionary:Et.dictionary}},on=function(Et,wt,Pt,Qt,ie,Yt){var ge=ft(Pt,Qt,ie,function(we,Pe){ge.terminate(),Yt(we,Pe)});return ge.postMessage([Et,wt],wt.consume?[Et.buffer]:[]),function(){ge.terminate()}},Wn=function(Et){return Et.ondata=function(wt,Pt){return postMessage([wt,Pt],[wt.buffer])},function(wt){wt.data.length?(Et.push(wt.data[0],wt.data[1]),postMessage([wt.data[0].length])):Et.flush()}},sn=function(Et,wt,Pt,Qt,ie,Yt,ge){var we,Pe=ft(Et,Qt,ie,function(Xe,dn){Xe?(Pe.terminate(),wt.ondata.call(wt,Xe)):Array.isArray(dn)?dn.length==1?(wt.queuedSize-=dn[0],wt.ondrain&&wt.ondrain(dn[0])):(dn[1]&&Pe.terminate(),wt.ondata.call(wt,Xe,dn[0],dn[1])):ge(dn)});Pe.postMessage(Pt),wt.queuedSize=0,wt.push=function(Xe,dn){wt.ondata||Ne(5),we&&wt.ondata(Ne(4,0,1),null,!!dn),wt.queuedSize+=Xe.length,Pe.postMessage([Xe,we=dn],[Xe.buffer])},wt.terminate=function(){Pe.terminate()},Yt&&(wt.flush=function(){Pe.postMessage([])})},ln=function(Et,wt){return Et[wt]|Et[wt+1]<<8},Bn=function(Et,wt){return(Et[wt]|Et[wt+1]<<8|Et[wt+2]<<16|Et[wt+3]<<24)>>>0},li=function(Et,wt){return Bn(Et,wt)+Bn(Et,wt+4)*4294967296},On=function(Et,wt,Pt){for(;Pt;++wt)Et[wt]=Pt,Pt>>>=8},Di=function(Et,wt){var Pt=wt.filename;if(Et[0]=31,Et[1]=139,Et[2]=8,Et[8]=wt.level<2?4:wt.level==9?2:0,Et[9]=3,wt.mtime!=0&&On(Et,4,Math.floor(new Date(wt.mtime||Date.now())/1e3)),Pt){Et[3]=8;for(var Qt=0;Qt<=Pt.length;++Qt)Et[Qt+10]=Pt.charCodeAt(Qt)}},nr=function(Et){(Et[0]!=31||Et[1]!=139||Et[2]!=8)&&Ne(6,"invalid gzip data");var wt=Et[3],Pt=10;wt&4&&(Pt+=(Et[10]|Et[11]<<8)+2);for(var Qt=(wt>>3&1)+(wt>>4&1);Qt>0;Qt-=!Et[Pt++]);return Pt+(wt&2)},Xi=function(Et){var wt=Et.length;return(Et[wt-4]|Et[wt-3]<<8|Et[wt-2]<<16|Et[wt-1]<<24)>>>0},Mr=function(Et){return 10+(Et.filename?Et.filename.length+1:0)},br=function(Et,wt){var Pt=wt.level,Qt=Pt==0?0:Pt<6?1:Pt==9?3:2;if(Et[0]=120,Et[1]=Qt<<6|(wt.dictionary&&32),Et[1]|=31-(Et[0]<<8|Et[1])%31,wt.dictionary){var ie=Li();ie.p(wt.dictionary),On(Et,2,ie.d())}},eo=function(Et,wt){return((Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31)&&Ne(6,"invalid zlib data"),(Et[1]>>5&1)==+!wt&&Ne(6,"invalid zlib data: "+(Et[1]&32?"need":"unexpected")+" dictionary"),(Et[1]>>3&4)+2};function Yr(Et,wt){return typeof Et=="function"&&(wt=Et,Et={}),this.ondata=wt,Et}var qr=null,Ir=null;function Xr(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),on(Et,wt,[le],function(Qt){return Te(oo(Qt.data[0],Qt.data[1]))},0,Pt)}function oo(Et,wt){return ji(Et,wt||{},0,0)}var jo=null,ds=null;function no(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),on(Et,wt,[At],function(Qt){return Te(Is(Qt.data[0],Me(Qt.data[1])))},1,Pt)}function Is(Et,wt){return Ge(Et,{i:2},wt&&wt.out,wt&&wt.dictionary)}var xo=null,$t=null;function ni(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),on(Et,wt,[le,xe,function(){return[gs]}],function(Qt){return Te(gs(Qt.data[0],Qt.data[1]))},2,Pt)}function gs(Et,wt){wt||(wt={});var Pt=tn(),Qt=Et.length;Pt.p(Et);var ie=ji(Et,wt,Mr(wt),8),Yt=ie.length;return Di(ie,wt),On(ie,Yt-8,Pt.d()),On(ie,Yt-4,Qt),ie}var ua=null,Gs=null;function ha(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),on(Et,wt,[At,ae,function(){return[Ws]}],function(Qt){return Te(Ws(Qt.data[0],Qt.data[1]))},3,Pt)}function Ws(Et,wt){var Pt=nr(Et);return Pt+8>Et.length&&Ne(6,"invalid gzip data"),Ge(Et.subarray(Pt,-8),{i:2},wt&&wt.out||new Ie(Xi(Et)),wt&&wt.dictionary)}var Hr=null,Xn=null;function Hn(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),on(Et,wt,[le,ye,function(){return[Mn]}],function(Qt){return Te(Mn(Qt.data[0],Qt.data[1]))},4,Pt)}function Mn(Et,wt){wt||(wt={});var Pt=Li();Pt.p(Et);var Qt=ji(Et,wt,wt.dictionary?6:2,4);return br(Qt,wt),On(Qt,Qt.length-4,Pt.d()),Qt}var qe=null,pi=null;function xi(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),on(Et,wt,[At,Oe,function(){return[wn]}],function(Qt){return Te(wn(Qt.data[0],Me(Qt.data[1])))},5,Pt)}function wn(Et,wt){return Ge(Et.subarray(eo(Et,wt&&wt.dictionary),-4),{i:2},wt&&wt.out,wt&&wt.dictionary)}var Ee=null,Cn=null;function Gn(Et,wt,Pt){return Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7),Et[0]==31&&Et[1]==139&&Et[2]==8?ha(Et,wt,Pt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?no(Et,wt,Pt):xi(Et,wt,Pt)}function Ei(Et,wt){return Et[0]==31&&Et[1]==139&&Et[2]==8?Ws(Et,wt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?Is(Et,wt):wn(Et,wt)}var ei=function(Et,wt,Pt,Qt){for(var ie in Et){var Yt=Et[ie],ge=wt+ie,we=Qt;Array.isArray(Yt)&&(we=Ot(Qt,Yt[1]),Yt=Yt[0]),Yt instanceof Ie?Pt[ge]=[Yt,we]:(Pt[ge+="/"]=[new Ie(0),we],ei(Yt,ge,Pt,Qt))}},gn=typeof TextEncoder!="undefined"&&new TextEncoder,di=typeof TextDecoder!="undefined"&&new TextDecoder,Ni=0;try{di.decode(gi,{stream:!0}),Ni=1}catch(Et){}var $i=function(Et){for(var wt="",Pt=0;;){var Qt=Et[Pt++],ie=(Qt>127)+(Qt>223)+(Qt>239);if(Pt+ie>Et.length)return{s:wt,r:Wt(Et,Pt-1)};ie?ie==3?(Qt=((Qt&15)<<18|(Et[Pt++]&63)<<12|(Et[Pt++]&63)<<6|Et[Pt++]&63)-65536,wt+=String.fromCharCode(55296|Qt>>10,56320|Qt&1023)):ie&1?wt+=String.fromCharCode((Qt&31)<<6|Et[Pt++]&63):wt+=String.fromCharCode((Qt&15)<<12|(Et[Pt++]&63)<<6|Et[Pt++]&63):wt+=String.fromCharCode(Qt)}},kn=null,yi=null;function Br(Et,wt){if(wt){for(var Pt=new Ie(Et.length),Qt=0;Qt<Et.length;++Qt)Pt[Qt]=Et.charCodeAt(Qt);return Pt}if(gn)return gn.encode(Et);for(var ie=Et.length,Yt=new Ie(Et.length+(Et.length>>1)),ge=0,we=function(dn){Yt[ge++]=dn},Qt=0;Qt<ie;++Qt){if(ge+5>Yt.length){var Pe=new Ie(ge+8+(ie-Qt<<1));Pe.set(Yt),Yt=Pe}var Xe=Et.charCodeAt(Qt);Xe<128||wt?we(Xe):Xe<2048?(we(192|Xe>>6),we(128|Xe&63)):Xe>55295&&Xe<57344?(Xe=65536+(Xe&1047552)|Et.charCodeAt(++Qt)&1023,we(240|Xe>>18),we(128|Xe>>12&63),we(128|Xe>>6&63),we(128|Xe&63)):(we(224|Xe>>12),we(128|Xe>>6&63),we(128|Xe&63))}return Wt(Yt,0,ge)}function dr(Et,wt){if(wt){for(var Pt="",Qt=0;Qt<Et.length;Qt+=16384)Pt+=String.fromCharCode.apply(null,Et.subarray(Qt,Qt+16384));return Pt}else{if(di)return di.decode(Et);var ie=$i(Et),Yt=ie.s,Pt=ie.r;return Pt.length&&Ne(8),Yt}}var zr=function(Et){return Et==1?3:Et<6?2:Et==9?1:0},cr=function(Et,wt){return wt+30+ln(Et,wt+26)+ln(Et,wt+28)},wr=function(Et,wt,Pt){var Qt=ln(Et,wt+28),ie=dr(Et.subarray(wt+46,wt+46+Qt),!(ln(Et,wt+8)&2048)),Yt=wt+46+Qt,ge=Bn(Et,wt+20),we=Pt&&ge==4294967295?or(Et,Yt):[ge,Bn(Et,wt+24),Bn(Et,wt+42)],Pe=we[0],Xe=we[1],dn=we[2];return[ln(Et,wt+10),Pe,Xe,ie,Yt+ln(Et,wt+30)+ln(Et,wt+32),dn]},or=function(Et,wt){for(;ln(Et,wt)!=1;wt+=4+ln(Et,wt+2));return[li(Et,wt+12),li(Et,wt+4),li(Et,wt+20)]},xr=function(Et){var wt=0;if(Et)for(var Pt in Et){var Qt=Et[Pt].length;Qt>65535&&Ne(9),wt+=Qt+4}return wt},so=function(Et,wt,Pt,Qt,ie,Yt,ge,we){var Pe=Qt.length,Xe=Pt.extra,dn=we&&we.length,An=xr(Xe);On(Et,wt,ge!=null?33639248:67324752),wt+=4,ge!=null&&(Et[wt++]=20,Et[wt++]=Pt.os),Et[wt]=20,wt+=2,Et[wt++]=Pt.flag<<1|(Yt<0&&8),Et[wt++]=ie&&8,Et[wt++]=Pt.compression&255,Et[wt++]=Pt.compression>>8;var Pn=new Date(Pt.mtime==null?Date.now():Pt.mtime),ze=Pn.getFullYear()-1980;if((ze<0||ze>119)&&Ne(10),On(Et,wt,ze<<25|Pn.getMonth()+1<<21|Pn.getDate()<<16|Pn.getHours()<<11|Pn.getMinutes()<<5|Pn.getSeconds()>>1),wt+=4,Yt!=-1&&(On(Et,wt,Pt.crc),On(Et,wt+4,Yt<0?-Yt-2:Yt),On(Et,wt+8,Pt.size)),On(Et,wt+12,Pe),On(Et,wt+14,An),wt+=16,ge!=null&&(On(Et,wt,dn),On(Et,wt+6,Pt.attrs),On(Et,wt+10,ge),wt+=14),Et.set(Qt,wt),wt+=Pe,An)for(var mi in Xe){var ti=Xe[mi],vi=ti.length;On(Et,wt,+mi),On(Et,wt+2,vi),Et.set(ti,wt+4),wt+=4+vi}return dn&&(Et.set(we,wt),wt+=dn),wt},Yi=function(Et,wt,Pt,Qt,ie){On(Et,wt,101010256),On(Et,wt+8,Pt),On(Et,wt+10,Pt),On(Et,wt+12,Qt),On(Et,wt+16,ie)},pr=null,yo=null,Ss=null,_o=null;function Dn(Et,wt,Pt){Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7);var Qt={};ei(Et,"",Qt,wt);var ie=Object.keys(Qt),Yt=ie.length,ge=0,we=0,Pe=Yt,Xe=new Array(Yt),dn=[],An=function(){for(var vi=0;vi<dn.length;++vi)dn[vi]()},Pn=function(vi,Rn){wi(function(){Pt(vi,Rn)})};wi(function(){Pn=Pt});var ze=function(){var vi=new Ie(we+22),Rn=ge,Ai=we-ge;we=0;for(var Qi=0;Qi<Pe;++Qi){var rr=Xe[Qi];try{var Fr=rr.c.length;so(vi,we,rr,rr.f,rr.u,Fr);var lo=30+rr.f.length+xr(rr.extra),mr=we+lo;vi.set(rr.c,mr),so(vi,ge,rr,rr.f,rr.u,Fr,we,rr.m),ge+=16+lo+(rr.m?rr.m.length:0),we=mr+Fr}catch(Oi){return Pn(Oi,null)}}Yi(vi,ge,Xe.length,Ai,Rn),Pn(null,vi)};Yt||ze();for(var mi=function(vi){var Rn=ie[vi],Ai=Qt[Rn],Qi=Ai[0],rr=Ai[1],Fr=tn(),lo=Qi.length;Fr.p(Qi);var mr=Br(Rn),Oi=mr.length,Cr=rr.comment,Or=Cr&&Br(Cr),Jn=Or&&Or.length,oi=xr(rr.extra),pe=rr.level==0?0:8,me=function(Ze,Ye){if(Ze)An(),Pn(Ze,null);else{var mn=Ye.length;Xe[vi]=Ot(rr,{size:lo,crc:Fr.d(),c:Ye,f:mr,m:Or,u:Oi!=Rn.length||Or&&Cr.length!=Jn,compression:pe}),ge+=30+Oi+oi+mn,we+=76+2*(Oi+oi)+(Jn||0)+mn,--Yt||ze()}};if(Oi>65535&&me(Ne(11,0,1),null),!pe)me(null,Qi);else if(lo<16e4)try{me(null,oo(Qi,rr))}catch(Ze){me(Ze,null)}else dn.push(Xr(Qi,rr,me))},ti=0;ti<Pe;++ti)mi(ti);return An}function Tr(Et,wt){wt||(wt={});var Pt={},Qt=[];ei(Et,"",Pt,wt);var ie=0,Yt=0;for(var ge in Pt){var we=Pt[ge],Pe=we[0],Xe=we[1],dn=Xe.level==0?0:8,An=Br(ge),Pn=An.length,ze=Xe.comment,mi=ze&&Br(ze),ti=mi&&mi.length,vi=xr(Xe.extra);Pn>65535&&Ne(11);var Rn=dn?oo(Pe,Xe):Pe,Ai=Rn.length,Qi=tn();Qi.p(Pe),Qt.push(Ot(Xe,{size:Pe.length,crc:Qi.d(),c:Rn,f:An,m:mi,u:Pn!=ge.length||mi&&ze.length!=ti,o:ie,compression:dn})),ie+=30+Pn+vi+Ai,Yt+=76+2*(Pn+vi)+(ti||0)+Ai}for(var rr=new Ie(Yt+22),Fr=ie,lo=Yt-ie,mr=0;mr<Qt.length;++mr){var An=Qt[mr];so(rr,An.o,An,An.f,An.u,An.c.length);var Oi=30+An.f.length+xr(An.extra);rr.set(An.c,An.o+Oi),so(rr,ie,An,An.f,An.u,An.c.length,An.o,An.m),ie+=16+Oi+(An.m?An.m.length:0)}return Yi(rr,ie,Qt.length,lo,Fr),rr}var ao=null,Kr=null,qo=null,Oo=null,wi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Et){Et()};function Po(Et,wt,Pt){Pt||(Pt=wt,wt={}),typeof Pt!="function"&&Ne(7);var Qt=[],ie=function(){for(var vi=0;vi<Qt.length;++vi)Qt[vi]()},Yt={},ge=function(vi,Rn){wi(function(){Pt(vi,Rn)})};wi(function(){ge=Pt});for(var we=Et.length-22;Bn(Et,we)!=101010256;--we)if(!we||Et.length-we>65558)return ge(Ne(13,0,1),null),ie;var Pe=ln(Et,we+8);if(Pe){var Xe=Pe,dn=Bn(Et,we+16),An=dn==4294967295||Xe==65535;if(An){var Pn=Bn(Et,we-12);An=Bn(Et,Pn)==101075792,An&&(Xe=Pe=Bn(Et,Pn+32),dn=Bn(Et,Pn+48))}for(var ze=wt&&wt.filter,mi=function(vi){var Rn=wr(Et,dn,An),Ai=Rn[0],Qi=Rn[1],rr=Rn[2],Fr=Rn[3],lo=Rn[4],mr=Rn[5],Oi=cr(Et,mr);dn=lo;var Cr=function(Jn,oi){Jn?(ie(),ge(Jn,null)):(oi&&(Yt[Fr]=oi),--Pe||ge(null,Yt))};if(!ze||ze({name:Fr,size:Qi,originalSize:rr,compression:Ai}))if(!Ai)Cr(null,Wt(Et,Oi,Oi+Qi));else if(Ai==8){var Or=Et.subarray(Oi,Oi+Qi);if(rr<524288||Qi>.8*rr)try{Cr(null,Is(Or,{out:new Ie(rr)}))}catch(Jn){Cr(Jn,null)}else Qt.push(no(Or,{size:rr},Cr))}else Cr(Ne(14,"unknown compression type "+Ai,1),null);else Cr(null,null)},ti=0;ti<Xe;++ti)mi(ti)}else ge(null,{});return ie}function Rr(Et,wt){for(var Pt={},Qt=Et.length-22;Bn(Et,Qt)!=101010256;--Qt)(!Qt||Et.length-Qt>65558)&&Ne(13);var ie=ln(Et,Qt+8);if(!ie)return{};var Yt=Bn(Et,Qt+16),ge=Yt==4294967295||ie==65535;if(ge){var we=Bn(Et,Qt-12);ge=Bn(Et,we)==101075792,ge&&(ie=Bn(Et,we+32),Yt=Bn(Et,we+48))}for(var Pe=wt&&wt.filter,Xe=0;Xe<ie;++Xe){var dn=wr(Et,Yt,ge),An=dn[0],Pn=dn[1],ze=dn[2],mi=dn[3],ti=dn[4],vi=dn[5],Rn=cr(Et,vi);Yt=ti,(!Pe||Pe({name:mi,size:Pn,originalSize:ze,compression:An}))&&(An?An==8?Pt[mi]=Is(Et.subarray(Rn,Rn+Pn),{out:new Ie(ze)}):Ne(14,"unknown compression type "+An):Pt[mi]=Wt(Et,Rn,Rn+Pn))}return Pt}var kr=function(){return typeof window!="undefined"?window:typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:this}();function Ci(){kr.console&&typeof kr.console.log=="function"&&kr.console.log.apply(kr.console,arguments)}var Lo={log:Ci,warn:function(Et){kr.console&&(typeof kr.console.warn=="function"?kr.console.warn.apply(kr.console,arguments):Ci.call(null,arguments))},error:function(Et){kr.console&&(typeof kr.console.error=="function"?kr.console.error.apply(kr.console,arguments):Ci(Et))}};function Bi(Et,wt,Pt){var Qt=new XMLHttpRequest;Qt.open("GET",Et),Qt.responseType="blob",Qt.onload=function(){Vs(Qt.response,wt,Pt)},Qt.onerror=function(){Lo.error("could not download file")},Qt.send()}function Zo(Et){var wt=new XMLHttpRequest;wt.open("HEAD",Et,!1);try{wt.send()}catch(Pt){}return wt.status>=200&&wt.status<=299}function ra(Et){try{Et.dispatchEvent(new MouseEvent("click"))}catch(Pt){var wt=document.createEvent("MouseEvents");wt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Et.dispatchEvent(wt)}}var fs,ba,Vs=kr.saveAs||((typeof window=="undefined"?"undefined":(0,Lt.Z)(window))!=="object"||window!==kr?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Et,wt,Pt){var Qt=kr.URL||kr.webkitURL,ie=document.createElement("a");wt=wt||Et.name||"download",ie.download=wt,ie.rel="noopener",typeof Et=="string"?(ie.href=Et,ie.origin!==location.origin?Zo(ie.href)?Bi(Et,wt,Pt):ra(ie,ie.target="_blank"):ra(ie)):(ie.href=Qt.createObjectURL(Et),setTimeout(function(){Qt.revokeObjectURL(ie.href)},4e4),setTimeout(function(){ra(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Et,wt,Pt){if(wt=wt||Et.name||"download",typeof Et=="string")if(Zo(Et))Bi(Et,wt,Pt);else{var Qt=document.createElement("a");Qt.href=Et,Qt.target="_blank",setTimeout(function(){ra(Qt)})}else navigator.msSaveOrOpenBlob(function(ie,Yt){return Yt===void 0?Yt={autoBom:!1}:(0,Lt.Z)(Yt)!=="object"&&(Lo.warn("Deprecated: Expected third argument to be a object"),Yt={autoBom:!Yt}),Yt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ie.type)?new Blob(["\uFEFF",ie],{type:ie.type}):ie}(Et,Pt),wt)}:function(Et,wt,Pt,Qt){if((Qt=Qt||open("","_blank"))&&(Qt.document.title=Qt.document.body.innerText="downloading..."),typeof Et=="string")return Bi(Et,wt,Pt);var ie=Et.type==="application/octet-stream",Yt=/constructor/i.test(kr.HTMLElement)||kr.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ie&&Yt)&&(typeof FileReader=="undefined"?"undefined":(0,Lt.Z)(FileReader))==="object"){var we=new FileReader;we.onloadend=function(){var dn=we.result;dn=ge?dn:dn.replace(/^data:[^;]*;/,"data:attachment/file;"),Qt?Qt.location.href=dn:location=dn,Qt=null},we.readAsDataURL(Et)}else{var Pe=kr.URL||kr.webkitURL,Xe=Pe.createObjectURL(Et);Qt?Qt.location=Xe:location.href=Xe,Qt=null,setTimeout(function(){Pe.revokeObjectURL(Xe)},4e4)}});function Mo(Et){var wt;Et=Et||"",this.ok=!1,Et.charAt(0)=="#"&&(Et=Et.substr(1,6)),Et={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Et=(Et=Et.replace(/ /g,"")).toLowerCase()]||Et;for(var Pt=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(we){return[parseInt(we[1]),parseInt(we[2]),parseInt(we[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(we){return[parseInt(we[1],16),parseInt(we[2],16),parseInt(we[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(we){return[parseInt(we[1]+we[1],16),parseInt(we[2]+we[2],16),parseInt(we[3]+we[3],16)]}}],Qt=0;Qt<Pt.length;Qt++){var ie=Pt[Qt].re,Yt=Pt[Qt].process,ge=ie.exec(Et);ge&&(wt=Yt(ge),this.r=wt[0],this.g=wt[1],this.b=wt[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var we=this.r.toString(16),Pe=this.g.toString(16),Xe=this.b.toString(16);return we.length==1&&(we="0"+we),Pe.length==1&&(Pe="0"+Pe),Xe.length==1&&(Xe="0"+Xe),"#"+we+Pe+Xe}}function Ho(Et,wt){var Pt=Et[0],Qt=Et[1],ie=Et[2],Yt=Et[3];Pt=ss(Pt,Qt,ie,Yt,wt[0],7,-680876936),Yt=ss(Yt,Pt,Qt,ie,wt[1],12,-389564586),ie=ss(ie,Yt,Pt,Qt,wt[2],17,606105819),Qt=ss(Qt,ie,Yt,Pt,wt[3],22,-1044525330),Pt=ss(Pt,Qt,ie,Yt,wt[4],7,-176418897),Yt=ss(Yt,Pt,Qt,ie,wt[5],12,1200080426),ie=ss(ie,Yt,Pt,Qt,wt[6],17,-1473231341),Qt=ss(Qt,ie,Yt,Pt,wt[7],22,-45705983),Pt=ss(Pt,Qt,ie,Yt,wt[8],7,1770035416),Yt=ss(Yt,Pt,Qt,ie,wt[9],12,-1958414417),ie=ss(ie,Yt,Pt,Qt,wt[10],17,-42063),Qt=ss(Qt,ie,Yt,Pt,wt[11],22,-1990404162),Pt=ss(Pt,Qt,ie,Yt,wt[12],7,1804603682),Yt=ss(Yt,Pt,Qt,ie,wt[13],12,-40341101),ie=ss(ie,Yt,Pt,Qt,wt[14],17,-1502002290),Pt=gr(Pt,Qt=ss(Qt,ie,Yt,Pt,wt[15],22,1236535329),ie,Yt,wt[1],5,-165796510),Yt=gr(Yt,Pt,Qt,ie,wt[6],9,-1069501632),ie=gr(ie,Yt,Pt,Qt,wt[11],14,643717713),Qt=gr(Qt,ie,Yt,Pt,wt[0],20,-373897302),Pt=gr(Pt,Qt,ie,Yt,wt[5],5,-701558691),Yt=gr(Yt,Pt,Qt,ie,wt[10],9,38016083),ie=gr(ie,Yt,Pt,Qt,wt[15],14,-660478335),Qt=gr(Qt,ie,Yt,Pt,wt[4],20,-405537848),Pt=gr(Pt,Qt,ie,Yt,wt[9],5,568446438),Yt=gr(Yt,Pt,Qt,ie,wt[14],9,-1019803690),ie=gr(ie,Yt,Pt,Qt,wt[3],14,-187363961),Qt=gr(Qt,ie,Yt,Pt,wt[8],20,1163531501),Pt=gr(Pt,Qt,ie,Yt,wt[13],5,-1444681467),Yt=gr(Yt,Pt,Qt,ie,wt[2],9,-51403784),ie=gr(ie,Yt,Pt,Qt,wt[7],14,1735328473),Pt=ke(Pt,Qt=gr(Qt,ie,Yt,Pt,wt[12],20,-1926607734),ie,Yt,wt[5],4,-378558),Yt=ke(Yt,Pt,Qt,ie,wt[8],11,-2022574463),ie=ke(ie,Yt,Pt,Qt,wt[11],16,1839030562),Qt=ke(Qt,ie,Yt,Pt,wt[14],23,-35309556),Pt=ke(Pt,Qt,ie,Yt,wt[1],4,-1530992060),Yt=ke(Yt,Pt,Qt,ie,wt[4],11,1272893353),ie=ke(ie,Yt,Pt,Qt,wt[7],16,-155497632),Qt=ke(Qt,ie,Yt,Pt,wt[10],23,-1094730640),Pt=ke(Pt,Qt,ie,Yt,wt[13],4,681279174),Yt=ke(Yt,Pt,Qt,ie,wt[0],11,-358537222),ie=ke(ie,Yt,Pt,Qt,wt[3],16,-722521979),Qt=ke(Qt,ie,Yt,Pt,wt[6],23,76029189),Pt=ke(Pt,Qt,ie,Yt,wt[9],4,-640364487),Yt=ke(Yt,Pt,Qt,ie,wt[12],11,-421815835),ie=ke(ie,Yt,Pt,Qt,wt[15],16,530742520),Pt=ts(Pt,Qt=ke(Qt,ie,Yt,Pt,wt[2],23,-995338651),ie,Yt,wt[0],6,-198630844),Yt=ts(Yt,Pt,Qt,ie,wt[7],10,1126891415),ie=ts(ie,Yt,Pt,Qt,wt[14],15,-1416354905),Qt=ts(Qt,ie,Yt,Pt,wt[5],21,-57434055),Pt=ts(Pt,Qt,ie,Yt,wt[12],6,1700485571),Yt=ts(Yt,Pt,Qt,ie,wt[3],10,-1894986606),ie=ts(ie,Yt,Pt,Qt,wt[10],15,-1051523),Qt=ts(Qt,ie,Yt,Pt,wt[1],21,-2054922799),Pt=ts(Pt,Qt,ie,Yt,wt[8],6,1873313359),Yt=ts(Yt,Pt,Qt,ie,wt[15],10,-30611744),ie=ts(ie,Yt,Pt,Qt,wt[6],15,-1560198380),Qt=ts(Qt,ie,Yt,Pt,wt[13],21,1309151649),Pt=ts(Pt,Qt,ie,Yt,wt[4],6,-145523070),Yt=ts(Yt,Pt,Qt,ie,wt[11],10,-1120210379),ie=ts(ie,Yt,Pt,Qt,wt[2],15,718787259),Qt=ts(Qt,ie,Yt,Pt,wt[9],21,-343485551),Et[0]=wo(Pt,Et[0]),Et[1]=wo(Qt,Et[1]),Et[2]=wo(ie,Et[2]),Et[3]=wo(Yt,Et[3])}function ps(Et,wt,Pt,Qt,ie,Yt){return wt=wo(wo(wt,Et),wo(Qt,Yt)),wo(wt<<ie|wt>>>32-ie,Pt)}function ss(Et,wt,Pt,Qt,ie,Yt,ge){return ps(wt&Pt|~wt&Qt,Et,wt,ie,Yt,ge)}function gr(Et,wt,Pt,Qt,ie,Yt,ge){return ps(wt&Qt|Pt&~Qt,Et,wt,ie,Yt,ge)}function ke(Et,wt,Pt,Qt,ie,Yt,ge){return ps(wt^Pt^Qt,Et,wt,ie,Yt,ge)}function ts(Et,wt,Pt,Qt,ie,Yt,ge){return ps(Pt^(wt|~Qt),Et,wt,ie,Yt,ge)}function Sa(Et){var wt,Pt=Et.length,Qt=[1732584193,-271733879,-1732584194,271733878];for(wt=64;wt<=Et.length;wt+=64)Ho(Qt,sl(Et.substring(wt-64,wt)));Et=Et.substring(wt-64);var ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(wt=0;wt<Et.length;wt++)ie[wt>>2]|=Et.charCodeAt(wt)<<(wt%4<<3);if(ie[wt>>2]|=128<<(wt%4<<3),wt>55)for(Ho(Qt,ie),wt=0;wt<16;wt++)ie[wt]=0;return ie[14]=8*Pt,Ho(Qt,ie),Qt}function sl(Et){var wt,Pt=[];for(wt=0;wt<64;wt+=4)Pt[wt>>2]=Et.charCodeAt(wt)+(Et.charCodeAt(wt+1)<<8)+(Et.charCodeAt(wt+2)<<16)+(Et.charCodeAt(wt+3)<<24);return Pt}fs=kr.atob.bind(kr),ba=kr.btoa.bind(kr);var Ll="0123456789abcdef".split("");function ml(Et){for(var wt="",Pt=0;Pt<4;Pt++)wt+=Ll[Et>>8*Pt+4&15]+Ll[Et>>8*Pt&15];return wt}function Ol(Et){return String.fromCharCode((255&Et)>>0,(65280&Et)>>8,(16711680&Et)>>16,(4278190080&Et)>>24)}function is(Et){return Sa(Et).map(Ol).join("")}var $o=function(Et){for(var wt=0;wt<Et.length;wt++)Et[wt]=ml(Et[wt]);return Et.join("")}(Sa("hello"))!="5d41402abc4b2a76b9719d911017c592";function wo(Et,wt){if($o){var Pt=(65535&Et)+(65535&wt);return(Et>>16)+(wt>>16)+(Pt>>16)<<16|65535&Pt}return Et+wt&4294967295}function ks(Et,wt){var Pt,Qt,ie,Yt;if(Et!==Pt){for(var ge=(ie=Et,Yt=1+(256/Et.length>>0),new Array(Yt+1).join(ie)),we=[],Pe=0;Pe<256;Pe++)we[Pe]=Pe;var Xe=0;for(Pe=0;Pe<256;Pe++){var dn=we[Pe];Xe=(Xe+dn+ge.charCodeAt(Pe))%256,we[Pe]=we[Xe],we[Xe]=dn}Pt=Et,Qt=we}else we=Qt;var An=wt.length,Pn=0,ze=0,mi="";for(Pe=0;Pe<An;Pe++)ze=(ze+(dn=we[Pn=(Pn+1)%256]))%256,we[Pn]=we[ze],we[ze]=dn,ge=we[(we[Pn]+we[ze])%256],mi+=String.fromCharCode(wt.charCodeAt(Pe)^ge);return mi}var co={print:4,modify:8,copy:16,"annot-forms":32};function to(Et,wt,Pt,Qt){this.v=1,this.r=2;var ie=192;Et.forEach(function(we){if(co.perm!==void 0)throw new Error("Invalid permission: "+we);ie+=co[we]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Yt=(wt+this.padding).substr(0,32),ge=(Pt+this.padding).substr(0,32);this.O=this.processOwnerPassword(Yt,ge),this.P=-(1+(255^ie)),this.encryptionKey=is(Yt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Qt)).substr(0,5),this.U=ks(this.encryptionKey,this.padding)}function Uo(Et){if(/[^\u0000-\u00ff]/.test(Et))throw new Error("Invalid PDF Name Object: "+Et+", Only accept ASCII characters.");for(var wt="",Pt=Et.length,Qt=0;Qt<Pt;Qt++){var ie=Et.charCodeAt(Qt);ie<33||ie===35||ie===37||ie===40||ie===41||ie===47||ie===60||ie===62||ie===91||ie===93||ie===123||ie===125||ie>126?wt+="#"+("0"+ie.toString(16)).slice(-2):wt+=Et[Qt]}return wt}function Ki(Et){if((0,Lt.Z)(Et)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var wt={};this.subscribe=function(Pt,Qt,ie){if(ie=ie||!1,typeof Pt!="string"||typeof Qt!="function"||typeof ie!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");wt.hasOwnProperty(Pt)||(wt[Pt]={});var Yt=Math.random().toString(35);return wt[Pt][Yt]=[Qt,!!ie],Yt},this.unsubscribe=function(Pt){for(var Qt in wt)if(wt[Qt][Pt])return delete wt[Qt][Pt],Object.keys(wt[Qt]).length===0&&delete wt[Qt],!0;return!1},this.publish=function(Pt){if(wt.hasOwnProperty(Pt)){var Qt=Array.prototype.slice.call(arguments,1),ie=[];for(var Yt in wt[Pt]){var ge=wt[Pt][Yt];try{ge[0].apply(Et,Qt)}catch(we){kr.console&&Lo.error("jsPDF PubSub Error",we.message,we)}ge[1]&&ie.push(Yt)}ie.length&&ie.forEach(this.unsubscribe)}},this.getTopics=function(){return wt}}function Ts(Et){if(!(this instanceof Ts))return new Ts(Et);var wt="opacity,stroke-opacity".split(",");for(var Pt in Et)Et.hasOwnProperty(Pt)&&wt.indexOf(Pt)>=0&&(this[Pt]=Et[Pt]);this.id="",this.objectNumber=-1}function zs(Et,wt){this.gState=Et,this.matrix=wt,this.id="",this.objectNumber=-1}function Aa(Et,wt,Pt,Qt,ie){if(!(this instanceof Aa))return new Aa(Et,wt,Pt,Qt,ie);this.type=Et==="axial"?2:3,this.coords=wt,this.colors=Pt,zs.call(this,Qt,ie)}function qs(Et,wt,Pt,Qt,ie){if(!(this instanceof qs))return new qs(Et,wt,Pt,Qt,ie);this.boundingBox=Et,this.xStep=wt,this.yStep=Pt,this.stream="",this.cloneIndex=0,zs.call(this,Qt,ie)}function Qo(Et){var wt,Pt=typeof arguments[0]=="string"?arguments[0]:"p",Qt=arguments[1],ie=arguments[2],Yt=arguments[3],ge=[],we=1,Pe=16,Xe="S",dn=null;(0,Lt.Z)(Et=Et||{})==="object"&&(Pt=Et.orientation,Qt=Et.unit||Qt,ie=Et.format||ie,Yt=Et.compress||Et.compressPdf||Yt,(dn=Et.encryption||null)!==null&&(dn.userPassword=dn.userPassword||"",dn.ownerPassword=dn.ownerPassword||"",dn.userPermissions=dn.userPermissions||[]),we=typeof Et.userUnit=="number"?Math.abs(Et.userUnit):1,Et.precision!==void 0&&(wt=Et.precision),Et.floatPrecision!==void 0&&(Pe=Et.floatPrecision),Xe=Et.defaultPathOperation||"S"),ge=Et.filters||(Yt===!0?["FlateEncode"]:ge),Qt=Qt||"mm",Pt=(""+(Pt||"P")).toLowerCase();var An=Et.putOnlyUsedFonts||!1,Pn={},ze={internal:{},__private__:{}};ze.__private__.PubSub=Ki;var mi="1.3",ti=ze.__private__.getPdfVersion=function(){return mi};ze.__private__.setPdfVersion=function(Ae){mi=Ae};var vi={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};ze.__private__.getPageFormats=function(){return vi};var Rn=ze.__private__.getPageFormat=function(Ae){return vi[Ae]};ie=ie||"a4";var Ai={COMPAT:"compat",ADVANCED:"advanced"},Qi=Ai.COMPAT;function rr(){this.saveGraphicsState(),Yn(new Ps(So,0,0,-So,0,$d()*So).toString()+" cm"),this.setFontSize(this.getFontSize()/So),Xe="n",Qi=Ai.ADVANCED}function Fr(){this.restoreGraphicsState(),Xe="S",Qi=Ai.COMPAT}var lo=ze.__private__.combineFontStyleAndFontWeight=function(Ae,vn){if(Ae=="bold"&&vn=="normal"||Ae=="bold"&&vn==400||Ae=="normal"&&vn=="italic"||Ae=="bold"&&vn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return vn&&(Ae=vn==400||vn==="normal"?Ae==="italic"?"italic":"normal":vn!=700&&vn!=="bold"||Ae!=="normal"?(vn==700?"bold":vn)+""+Ae:"bold"),Ae};ze.advancedAPI=function(Ae){var vn=Qi===Ai.COMPAT;return vn&&rr.call(this),typeof Ae!="function"||(Ae(this),vn&&Fr.call(this)),this},ze.compatAPI=function(Ae){var vn=Qi===Ai.ADVANCED;return vn&&Fr.call(this),typeof Ae!="function"||(Ae(this),vn&&rr.call(this)),this},ze.isAdvancedAPI=function(){return Qi===Ai.ADVANCED};var mr,Oi=function(Ae){if(Qi!==Ai.ADVANCED)throw new Error(Ae+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Cr=ze.roundToPrecision=ze.__private__.roundToPrecision=function(Ae,vn){var Si=wt||vn;if(isNaN(Ae)||isNaN(Si))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ae.toFixed(Si).replace(/0+$/,"")};mr=ze.hpf=ze.__private__.hpf=typeof Pe=="number"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(Ae,Pe)}:Pe==="smart"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(Ae,Ae>-1&&Ae<1?16:5)}:function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(Ae,16)};var Or=ze.f2=ze.__private__.f2=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f2");return Cr(Ae,2)},Jn=ze.__private__.f3=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f3");return Cr(Ae,3)},oi=ze.scale=ze.__private__.scale=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.scale");return Qi===Ai.COMPAT?Ae*So:Qi===Ai.ADVANCED?Ae:void 0},pe=function(Ae){return Qi===Ai.COMPAT?$d()-Ae:Qi===Ai.ADVANCED?Ae:void 0},me=function(Ae){return oi(pe(Ae))};ze.__private__.setPrecision=ze.setPrecision=function(Ae){typeof parseInt(Ae,10)=="number"&&(wt=parseInt(Ae,10))};var Ze,Ye="00000000000000000000000000000000",mn=ze.__private__.getFileId=function(){return Ye},en=ze.__private__.setFileId=function(Ae){return Ye=Ae!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ae)?Ae.toUpperCase():Ye.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),dn!==null&&(Vu=new to(dn.userPermissions,dn.userPassword,dn.ownerPassword,Ye)),Ye};ze.setFileId=function(Ae){return en(Ae),this},ze.getFileId=function(){return mn()};var Tn=ze.__private__.convertDateToPDFDate=function(Ae){var vn=Ae.getTimezoneOffset(),Si=vn<0?"+":"-",_i=Math.floor(Math.abs(vn/60)),ur=Math.abs(vn%60),Ur=[Si,pn(_i),"'",pn(ur),"'"].join("");return["D:",Ae.getFullYear(),pn(Ae.getMonth()+1),pn(Ae.getDate()),pn(Ae.getHours()),pn(Ae.getMinutes()),pn(Ae.getSeconds()),Ur].join("")},Un=ze.__private__.convertPDFDateToDate=function(Ae){var vn=parseInt(Ae.substr(2,4),10),Si=parseInt(Ae.substr(6,2),10)-1,_i=parseInt(Ae.substr(8,2),10),ur=parseInt(Ae.substr(10,2),10),Ur=parseInt(Ae.substr(12,2),10),Co=parseInt(Ae.substr(14,2),10);return new Date(vn,Si,_i,ur,Ur,Co,0)},qn=ze.__private__.setCreationDate=function(Ae){var vn;if(Ae===void 0&&(Ae=new Date),Ae instanceof Date)vn=Tn(Ae);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Ae))throw new Error("Invalid argument passed to jsPDF.setCreationDate");vn=Ae}return Ze=vn},Qe=ze.__private__.getCreationDate=function(Ae){var vn=Ze;return Ae==="jsDate"&&(vn=Un(Ze)),vn};ze.setCreationDate=function(Ae){return qn(Ae),this},ze.getCreationDate=function(Ae){return Qe(Ae)};var un,pn=ze.__private__.padd2=function(Ae){return("0"+parseInt(Ae)).slice(-2)},Qn=ze.__private__.padd2Hex=function(Ae){return("00"+(Ae=Ae.toString())).substr(Ae.length)},$n=0,ri=[],Fi=[],ui=0,Ji=[],Zi=[],Ar=!1,Er=Fi,io=function(){$n=0,ui=0,Fi=[],ri=[],Ji=[],Na=Gl(),Va=Gl()};ze.__private__.setCustomOutputDestination=function(Ae){Ar=!0,Er=Ae};var ki=function(Ae){Ar||(Er=Ae)};ze.__private__.resetCustomOutputDestination=function(){Ar=!1,Er=Fi};var Yn=ze.__private__.out=function(Ae){return Ae=Ae.toString(),ui+=Ae.length+1,Er.push(Ae),Er},Bo=ze.__private__.write=function(Ae){return Yn(arguments.length===1?Ae.toString():Array.prototype.join.call(arguments," "))},Pr=ze.__private__.getArrayBuffer=function(Ae){for(var vn=Ae.length,Si=new ArrayBuffer(vn),_i=new Uint8Array(Si);vn--;)_i[vn]=Ae.charCodeAt(vn);return Si},sr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];ze.__private__.getStandardFonts=function(){return sr};var ar=Et.fontSize||16;ze.__private__.setFontSize=ze.setFontSize=function(Ae){return ar=Qi===Ai.ADVANCED?Ae/So:Ae,this};var er,vr=ze.__private__.getFontSize=ze.getFontSize=function(){return Qi===Ai.COMPAT?ar:ar*So},Vr=Et.R2L||!1;ze.__private__.setR2L=ze.setR2L=function(Ae){return Vr=Ae,this},ze.__private__.getR2L=ze.getR2L=function(){return Vr};var ho,po=ze.__private__.setZoomMode=function(Ae){var vn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ae))er=Ae;else if(isNaN(Ae)){if(vn.indexOf(Ae)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ae+'" is not recognized.');er=Ae}else er=parseInt(Ae,10)};ze.__private__.getZoomMode=function(){return er};var _r,Do=ze.__private__.setPageMode=function(Ae){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ae)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ae+'" is not recognized.');ho=Ae};ze.__private__.getPageMode=function(){return ho};var us=ze.__private__.setLayoutMode=function(Ae){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ae)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ae+'" is not recognized.');_r=Ae};ze.__private__.getLayoutMode=function(){return _r},ze.__private__.setDisplayMode=ze.setDisplayMode=function(Ae,vn,Si){return po(Ae),us(vn),Do(Si),this};var Yo={title:"",subject:"",author:"",keywords:"",creator:""};ze.__private__.getDocumentProperty=function(Ae){if(Object.keys(Yo).indexOf(Ae)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Yo[Ae]},ze.__private__.getDocumentProperties=function(){return Yo},ze.__private__.setDocumentProperties=ze.setProperties=ze.setDocumentProperties=function(Ae){for(var vn in Yo)Yo.hasOwnProperty(vn)&&Ae[vn]&&(Yo[vn]=Ae[vn]);return this},ze.__private__.setDocumentProperty=function(Ae,vn){if(Object.keys(Yo).indexOf(Ae)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Yo[Ae]=vn};var ns,So,va,Vo,rs,Cs={},ta={},Da=[],Ys={},Ko={},Go={},As={},es=null,Os=0,ro=[],Wo=new Ki(ze),aa=Et.hotfixes||[],Us={},zl={},Fl=[],Ps=function Ae(vn,Si,_i,ur,Ur,Co){if(!(this instanceof Ae))return new Ae(vn,Si,_i,ur,Ur,Co);isNaN(vn)&&(vn=1),isNaN(Si)&&(Si=0),isNaN(_i)&&(_i=0),isNaN(ur)&&(ur=1),isNaN(Ur)&&(Ur=0),isNaN(Co)&&(Co=0),this._matrix=[vn,Si,_i,ur,Ur,Co]};Object.defineProperty(Ps.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(Ps.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(Ps.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(Ps.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(Ps.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(Ps.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(Ps.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(Ps.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(Ps.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(Ps.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(Ps.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(Ps.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(Ps.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ps.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ps.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ps.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ps.prototype.join=function(Ae){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(mr).join(Ae)},Ps.prototype.multiply=function(Ae){var vn=Ae.sx*this.sx+Ae.shy*this.shx,Si=Ae.sx*this.shy+Ae.shy*this.sy,_i=Ae.shx*this.sx+Ae.sy*this.shx,ur=Ae.shx*this.shy+Ae.sy*this.sy,Ur=Ae.tx*this.sx+Ae.ty*this.shx+this.tx,Co=Ae.tx*this.shy+Ae.ty*this.sy+this.ty;return new Ps(vn,Si,_i,ur,Ur,Co)},Ps.prototype.decompose=function(){var Ae=this.sx,vn=this.shy,Si=this.shx,_i=this.sy,ur=this.tx,Ur=this.ty,Co=Math.sqrt(Ae*Ae+vn*vn),ms=(Ae/=Co)*Si+(vn/=Co)*_i;Si-=Ae*ms,_i-=vn*ms;var Js=Math.sqrt(Si*Si+_i*_i);return ms/=Js,Ae*(_i/=Js)<vn*(Si/=Js)&&(Ae=-Ae,vn=-vn,ms=-ms,Co=-Co),{scale:new Ps(Co,0,0,Js,0,0),translate:new Ps(1,0,0,1,ur,Ur),rotate:new Ps(Ae,vn,-vn,Ae,0,0),skew:new Ps(1,0,ms,1,0,0)}},Ps.prototype.toString=function(Ae){return this.join(" ")},Ps.prototype.inversed=function(){var Ae=this.sx,vn=this.shy,Si=this.shx,_i=this.sy,ur=this.tx,Ur=this.ty,Co=1/(Ae*_i-vn*Si),ms=_i*Co,Js=-vn*Co,Ba=-Si*Co,Pa=Ae*Co;return new Ps(ms,Js,Ba,Pa,-ms*ur-Ba*Ur,-Js*ur-Pa*Ur)},Ps.prototype.applyToPoint=function(Ae){var vn=Ae.x*this.sx+Ae.y*this.shx+this.tx,Si=Ae.x*this.shy+Ae.y*this.sy+this.ty;return new Kc(vn,Si)},Ps.prototype.applyToRectangle=function(Ae){var vn=this.applyToPoint(Ae),Si=this.applyToPoint(new Kc(Ae.x+Ae.w,Ae.y+Ae.h));return new hA(vn.x,vn.y,Si.x-vn.x,Si.y-vn.y)},Ps.prototype.clone=function(){var Ae=this.sx,vn=this.shy,Si=this.shx,_i=this.sy,ur=this.tx,Ur=this.ty;return new Ps(Ae,vn,Si,_i,ur,Ur)},ze.Matrix=Ps;var ca=ze.matrixMult=function(Ae,vn){return vn.multiply(Ae)},Ul=new Ps(1,0,0,1,0,0);ze.unitMatrix=ze.identityMatrix=Ul;var fo=function(Ae,vn){if(!Ko[Ae]){var Si=(vn instanceof Aa?"Sh":"P")+(Object.keys(Ys).length+1).toString(10);vn.id=Si,Ko[Ae]=Si,Ys[Si]=vn,Wo.publish("addPattern",vn)}};ze.ShadingPattern=Aa,ze.TilingPattern=qs,ze.addShadingPattern=function(Ae,vn){return Oi("addShadingPattern()"),fo(Ae,vn),this},ze.beginTilingPattern=function(Ae){Oi("beginTilingPattern()"),bA(Ae.boundingBox[0],Ae.boundingBox[1],Ae.boundingBox[2]-Ae.boundingBox[0],Ae.boundingBox[3]-Ae.boundingBox[1],Ae.matrix)},ze.endTilingPattern=function(Ae,vn){Oi("endTilingPattern()"),vn.stream=Zi[un].join(`
`),fo(Ae,vn),Wo.publish("endTilingPattern",vn),Fl.pop().restore()};var ja=ze.__private__.newObject=function(){var Ae=Gl();return ea(Ae,!0),Ae},Gl=ze.__private__.newObjectDeferred=function(){return $n++,ri[$n]=function(){return ui},$n},ea=function(Ae,vn){return vn=typeof vn=="boolean"&&vn,ri[Ae]=ui,vn&&Yn(Ae+" 0 obj"),Ae},la=ze.__private__.newAdditionalObject=function(){var Ae={objId:Gl(),content:""};return Ji.push(Ae),Ae},Na=Gl(),Va=Gl(),ol=ze.__private__.decodeColorString=function(Ae){var vn=Ae.split(" ");if(vn.length!==2||vn[1]!=="g"&&vn[1]!=="G")vn.length===5&&(vn[4]==="k"||vn[4]==="K")&&(vn=[(1-vn[0])*(1-vn[3]),(1-vn[1])*(1-vn[3]),(1-vn[2])*(1-vn[3]),"r"]);else{var Si=parseFloat(vn[0]);vn=[Si,Si,Si,"r"]}for(var _i="#",ur=0;ur<3;ur++)_i+=("0"+Math.floor(255*parseFloat(vn[ur])).toString(16)).slice(-2);return _i},Rs=ze.__private__.encodeColorString=function(Ae){var vn;typeof Ae=="string"&&(Ae={ch1:Ae});var Si=Ae.ch1,_i=Ae.ch2,ur=Ae.ch3,Ur=Ae.ch4,Co=Ae.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Si=="string"&&Si.charAt(0)!=="#"){var ms=new Mo(Si);if(ms.ok)Si=ms.toHex();else if(!/^\d*\.?\d*$/.test(Si))throw new Error('Invalid color "'+Si+'" passed to jsPDF.encodeColorString.')}if(typeof Si=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Si)&&(Si="#"+Si[1]+Si[1]+Si[2]+Si[2]+Si[3]+Si[3]),typeof Si=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Si)){var Js=parseInt(Si.substr(1),16);Si=Js>>16&255,_i=Js>>8&255,ur=255&Js}if(_i===void 0||Ur===void 0&&Si===_i&&_i===ur)if(typeof Si=="string")vn=Si+" "+Co[0];else switch(Ae.precision){case 2:vn=Or(Si/255)+" "+Co[0];break;case 3:default:vn=Jn(Si/255)+" "+Co[0]}else if(Ur===void 0||(0,Lt.Z)(Ur)==="object"){if(Ur&&!isNaN(Ur.a)&&Ur.a===0)return vn=["1.","1.","1.",Co[1]].join(" ");if(typeof Si=="string")vn=[Si,_i,ur,Co[1]].join(" ");else switch(Ae.precision){case 2:vn=[Or(Si/255),Or(_i/255),Or(ur/255),Co[1]].join(" ");break;default:case 3:vn=[Jn(Si/255),Jn(_i/255),Jn(ur/255),Co[1]].join(" ")}}else if(typeof Si=="string")vn=[Si,_i,ur,Ur,Co[2]].join(" ");else switch(Ae.precision){case 2:vn=[Or(Si),Or(_i),Or(ur),Or(Ur),Co[2]].join(" ");break;case 3:default:vn=[Jn(Si),Jn(_i),Jn(ur),Jn(Ur),Co[2]].join(" ")}return vn},Ia=ze.__private__.getFilters=function(){return ge},xl=ze.__private__.putStream=function(Ae){var vn=(Ae=Ae||{}).data||"",Si=Ae.filters||Ia(),_i=Ae.alreadyAppliedFilters||[],ur=Ae.addLength1||!1,Ur=vn.length,Co=Ae.objectId,ms=function(Kl){return Kl};if(dn!==null&&Co===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");dn!==null&&(ms=Vu.encryptor(Co,0));var Js={};Si===!0&&(Si=["FlateEncode"]);var Ba=Ae.additionalKeyValues||[],Pa=(Js=Qo.API.processDataByFilters!==void 0?Qo.API.processDataByFilters(vn,Si):{data:vn,reverseChain:[]}).reverseChain+(Array.isArray(_i)?_i.join(" "):_i.toString());if(Js.data.length!==0&&(Ba.push({key:"Length",value:Js.data.length}),ur===!0&&Ba.push({key:"Length1",value:Ur})),Pa.length!=0)if(Pa.split("/").length-1==1)Ba.push({key:"Filter",value:Pa});else{Ba.push({key:"Filter",value:"["+Pa+"]"});for(var vs=0;vs<Ba.length;vs+=1)if(Ba[vs].key==="DecodeParms"){for(var iu=[],ru=0;ru<Js.reverseChain.split("/").length-1;ru+=1)iu.push("null");iu.push(Ba[vs].value),Ba[vs].value="["+iu.join(" ")+"]"}}Yn("<<");for(var Qa=0;Qa<Ba.length;Qa++)Yn("/"+Ba[Qa].key+" "+Ba[Qa].value);Yn(">>"),Js.data.length!==0&&(Yn("stream"),Yn(ms(Js.data)),Yn("endstream"))},pu=ze.__private__.putPage=function(Ae){var vn=Ae.number,Si=Ae.data,_i=Ae.objId,ur=Ae.contentsObjId;ea(_i,!0),Yn("<</Type /Page"),Yn("/Parent "+Ae.rootDictionaryObjId+" 0 R"),Yn("/Resources "+Ae.resourceDictionaryObjId+" 0 R"),Yn("/MediaBox ["+parseFloat(mr(Ae.mediaBox.bottomLeftX))+" "+parseFloat(mr(Ae.mediaBox.bottomLeftY))+" "+mr(Ae.mediaBox.topRightX)+" "+mr(Ae.mediaBox.topRightY)+"]"),Ae.cropBox!==null&&Yn("/CropBox ["+mr(Ae.cropBox.bottomLeftX)+" "+mr(Ae.cropBox.bottomLeftY)+" "+mr(Ae.cropBox.topRightX)+" "+mr(Ae.cropBox.topRightY)+"]"),Ae.bleedBox!==null&&Yn("/BleedBox ["+mr(Ae.bleedBox.bottomLeftX)+" "+mr(Ae.bleedBox.bottomLeftY)+" "+mr(Ae.bleedBox.topRightX)+" "+mr(Ae.bleedBox.topRightY)+"]"),Ae.trimBox!==null&&Yn("/TrimBox ["+mr(Ae.trimBox.bottomLeftX)+" "+mr(Ae.trimBox.bottomLeftY)+" "+mr(Ae.trimBox.topRightX)+" "+mr(Ae.trimBox.topRightY)+"]"),Ae.artBox!==null&&Yn("/ArtBox ["+mr(Ae.artBox.bottomLeftX)+" "+mr(Ae.artBox.bottomLeftY)+" "+mr(Ae.artBox.topRightX)+" "+mr(Ae.artBox.topRightY)+"]"),typeof Ae.userUnit=="number"&&Ae.userUnit!==1&&Yn("/UserUnit "+Ae.userUnit),Wo.publish("putPage",{objId:_i,pageContext:ro[vn],pageNumber:vn,page:Si}),Yn("/Contents "+ur+" 0 R"),Yn(">>"),Yn("endobj");var Ur=Si.join(`
`);return Qi===Ai.ADVANCED&&(Ur+=`
Q`),ea(ur,!0),xl({data:Ur,filters:Ia(),objectId:ur}),Yn("endobj"),_i},uu=ze.__private__.putPages=function(){var Ae,vn,Si=[];for(Ae=1;Ae<=Os;Ae++)ro[Ae].objId=Gl(),ro[Ae].contentsObjId=Gl();for(Ae=1;Ae<=Os;Ae++)Si.push(pu({number:Ae,data:Zi[Ae],objId:ro[Ae].objId,contentsObjId:ro[Ae].contentsObjId,mediaBox:ro[Ae].mediaBox,cropBox:ro[Ae].cropBox,bleedBox:ro[Ae].bleedBox,trimBox:ro[Ae].trimBox,artBox:ro[Ae].artBox,userUnit:ro[Ae].userUnit,rootDictionaryObjId:Na,resourceDictionaryObjId:Va}));ea(Na,!0),Yn("<</Type /Pages");var _i="/Kids [";for(vn=0;vn<Os;vn++)_i+=Si[vn]+" 0 R ";Yn(_i+"]"),Yn("/Count "+Os),Yn(">>"),Yn("endobj"),Wo.publish("postPutPages")},Ru=function(Ae){Wo.publish("putFont",{font:Ae,out:Yn,newObject:ja,putStream:xl}),Ae.isAlreadyPutted!==!0&&(Ae.objectNumber=ja(),Yn("<<"),Yn("/Type /Font"),Yn("/BaseFont /"+Uo(Ae.postScriptName)),Yn("/Subtype /Type1"),typeof Ae.encoding=="string"&&Yn("/Encoding /"+Ae.encoding),Yn("/FirstChar 32"),Yn("/LastChar 255"),Yn(">>"),Yn("endobj"))},$u=function(){for(var Ae in Cs)Cs.hasOwnProperty(Ae)&&(An===!1||An===!0&&Pn.hasOwnProperty(Ae))&&Ru(Cs[Ae])},Ah=function(Ae){Ae.objectNumber=ja();var vn=[];vn.push({key:"Type",value:"/XObject"}),vn.push({key:"Subtype",value:"/Form"}),vn.push({key:"BBox",value:"["+[mr(Ae.x),mr(Ae.y),mr(Ae.x+Ae.width),mr(Ae.y+Ae.height)].join(" ")+"]"}),vn.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"});var Si=Ae.pages[1].join(`
`);xl({data:Si,additionalKeyValues:vn,objectId:Ae.objectNumber}),Yn("endobj")},Yu=function(){for(var Ae in Us)Us.hasOwnProperty(Ae)&&Ah(Us[Ae])},Ua=function(Ae,vn){var Si,_i=[],ur=1/(vn-1);for(Si=0;Si<1;Si+=ur)_i.push(Si);if(_i.push(1),Ae[0].offset!=0){var Ur={offset:0,color:Ae[0].color};Ae.unshift(Ur)}if(Ae[Ae.length-1].offset!=1){var Co={offset:1,color:Ae[Ae.length-1].color};Ae.push(Co)}for(var ms="",Js=0,Ba=0;Ba<_i.length;Ba++){for(Si=_i[Ba];Si>Ae[Js+1].offset;)Js++;var Pa=Ae[Js].offset,vs=(Si-Pa)/(Ae[Js+1].offset-Pa),iu=Ae[Js].color,ru=Ae[Js+1].color;ms+=Qn(Math.round((1-vs)*iu[0]+vs*ru[0]).toString(16))+Qn(Math.round((1-vs)*iu[1]+vs*ru[1]).toString(16))+Qn(Math.round((1-vs)*iu[2]+vs*ru[2]).toString(16))}return ms.trim()},Bu=function(Ae,vn){vn||(vn=21);var Si=ja(),_i=Ua(Ae.colors,vn),ur=[];ur.push({key:"FunctionType",value:"0"}),ur.push({key:"Domain",value:"[0.0 1.0]"}),ur.push({key:"Size",value:"["+vn+"]"}),ur.push({key:"BitsPerSample",value:"8"}),ur.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ur.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),xl({data:_i,additionalKeyValues:ur,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Si}),Yn("endobj"),Ae.objectNumber=ja(),Yn("<< /ShadingType "+Ae.type),Yn("/ColorSpace /DeviceRGB");var Ur="/Coords ["+mr(parseFloat(Ae.coords[0]))+" "+mr(parseFloat(Ae.coords[1]))+" ";Ae.type===2?Ur+=mr(parseFloat(Ae.coords[2]))+" "+mr(parseFloat(Ae.coords[3])):Ur+=mr(parseFloat(Ae.coords[2]))+" "+mr(parseFloat(Ae.coords[3]))+" "+mr(parseFloat(Ae.coords[4]))+" "+mr(parseFloat(Ae.coords[5])),Yn(Ur+="]"),Ae.matrix&&Yn("/Matrix ["+Ae.matrix.toString()+"]"),Yn("/Function "+Si+" 0 R"),Yn("/Extend [true true]"),Yn(">>"),Yn("endobj")},Rl=function(Ae,vn){var Si=Gl(),_i=ja();vn.push({resourcesOid:Si,objectOid:_i}),Ae.objectNumber=_i;var ur=[];ur.push({key:"Type",value:"/Pattern"}),ur.push({key:"PatternType",value:"1"}),ur.push({key:"PaintType",value:"1"}),ur.push({key:"TilingType",value:"1"}),ur.push({key:"BBox",value:"["+Ae.boundingBox.map(mr).join(" ")+"]"}),ur.push({key:"XStep",value:mr(Ae.xStep)}),ur.push({key:"YStep",value:mr(Ae.yStep)}),ur.push({key:"Resources",value:Si+" 0 R"}),Ae.matrix&&ur.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"}),xl({data:Ae.stream,additionalKeyValues:ur,objectId:Ae.objectNumber}),Yn("endobj")},tl=function(Ae){var vn;for(vn in Ys)Ys.hasOwnProperty(vn)&&(Ys[vn]instanceof Aa?Bu(Ys[vn]):Ys[vn]instanceof qs&&Rl(Ys[vn],Ae))},vh=function(Ae){for(var vn in Ae.objectNumber=ja(),Yn("<<"),Ae)switch(vn){case"opacity":Yn("/ca "+Or(Ae[vn]));break;case"stroke-opacity":Yn("/CA "+Or(Ae[vn]))}Yn(">>"),Yn("endobj")},Cc=function(){var Ae;for(Ae in Go)Go.hasOwnProperty(Ae)&&vh(Go[Ae])},yh=function(){for(var Ae in Yn("/XObject <<"),Us)Us.hasOwnProperty(Ae)&&Us[Ae].objectNumber>=0&&Yn("/"+Ae+" "+Us[Ae].objectNumber+" 0 R");Wo.publish("putXobjectDict"),Yn(">>")},rc=function(){Vu.oid=ja(),Yn("<<"),Yn("/Filter /Standard"),Yn("/V "+Vu.v),Yn("/R "+Vu.r),Yn("/U <"+Vu.toHexString(Vu.U)+">"),Yn("/O <"+Vu.toHexString(Vu.O)+">"),Yn("/P "+Vu.P),Yn(">>"),Yn("endobj")},oc=function(){for(var Ae in Yn("/Font <<"),Cs)Cs.hasOwnProperty(Ae)&&(An===!1||An===!0&&Pn.hasOwnProperty(Ae))&&Yn("/"+Ae+" "+Cs[Ae].objectNumber+" 0 R");Yn(">>")},wh=function(){if(Object.keys(Ys).length>0){for(var Ae in Yn("/Shading <<"),Ys)Ys.hasOwnProperty(Ae)&&Ys[Ae]instanceof Aa&&Ys[Ae].objectNumber>=0&&Yn("/"+Ae+" "+Ys[Ae].objectNumber+" 0 R");Wo.publish("putShadingPatternDict"),Yn(">>")}},fa=function(Ae){if(Object.keys(Ys).length>0){for(var vn in Yn("/Pattern <<"),Ys)Ys.hasOwnProperty(vn)&&Ys[vn]instanceof ze.TilingPattern&&Ys[vn].objectNumber>=0&&Ys[vn].objectNumber<Ae&&Yn("/"+vn+" "+Ys[vn].objectNumber+" 0 R");Wo.publish("putTilingPatternDict"),Yn(">>")}},Sl=function(){if(Object.keys(Go).length>0){var Ae;for(Ae in Yn("/ExtGState <<"),Go)Go.hasOwnProperty(Ae)&&Go[Ae].objectNumber>=0&&Yn("/"+Ae+" "+Go[Ae].objectNumber+" 0 R");Wo.publish("putGStateDict"),Yn(">>")}},Ca=function(Ae){ea(Ae.resourcesOid,!0),Yn("<<"),Yn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),oc(),wh(),fa(Ae.objectOid),Sl(),yh(),Yn(">>"),Yn("endobj")},Al=function(){var Ae=[];$u(),Cc(),Yu(),tl(Ae),Wo.publish("putResources"),Ae.forEach(Ca),Ca({resourcesOid:Va,objectOid:Number.MAX_SAFE_INTEGER}),Wo.publish("postPutResources")},ga=function(){Wo.publish("putAdditionalObjects");for(var Ae=0;Ae<Ji.length;Ae++){var vn=Ji[Ae];ea(vn.objId,!0),Yn(vn.content),Yn("endobj")}Wo.publish("postPutAdditionalObjects")},hu=function(Ae){ta[Ae.fontName]=ta[Ae.fontName]||{},ta[Ae.fontName][Ae.fontStyle]=Ae.id},Fu=function(Ae,vn,Si,_i,ur){var Ur={id:"F"+(Object.keys(Cs).length+1).toString(10),postScriptName:Ae,fontName:vn,fontStyle:Si,encoding:_i,isStandardFont:ur||!1,metadata:{}};return Wo.publish("addFont",{font:Ur,instance:this}),Cs[Ur.id]=Ur,hu(Ur),Ur.id},Kh=function(Ae){for(var vn=0,Si=sr.length;vn<Si;vn++){var _i=Fu.call(this,Ae[vn][0],Ae[vn][1],Ae[vn][2],sr[vn][3],!0);An===!1&&(Pn[_i]=!0);var ur=Ae[vn][0].split("-");hu({id:_i,fontName:ur[0],fontStyle:ur[1]||""})}Wo.publish("addFonts",{fonts:Cs,dictionary:ta})},Th=function(Ae){return Ae.foo=function(){try{return Ae.apply(this,arguments)}catch(_i){var vn=_i.stack||"";~vn.indexOf(" at ")&&(vn=vn.split(" at ")[1]);var Si="Error in function "+vn.split(`
`)[0].split("<")[0]+": "+_i.message;if(!kr.console)throw new Error(Si);kr.console.error(Si,_i),kr.alert&&alert(Si)}},Ae.foo.bar=Ae,Ae.foo},_n=function(Ae,vn){var Si,_i,ur,Ur,Co,ms,Js,Ba,Pa;if(ur=(vn=vn||{}).sourceEncoding||"Unicode",Co=vn.outputEncoding,(vn.autoencode||Co)&&Cs[ns].metadata&&Cs[ns].metadata[ur]&&Cs[ns].metadata[ur].encoding&&(Ur=Cs[ns].metadata[ur].encoding,!Co&&Cs[ns].encoding&&(Co=Cs[ns].encoding),!Co&&Ur.codePages&&(Co=Ur.codePages[0]),typeof Co=="string"&&(Co=Ur[Co]),Co)){for(Js=!1,ms=[],Si=0,_i=Ae.length;Si<_i;Si++)(Ba=Co[Ae.charCodeAt(Si)])?ms.push(String.fromCharCode(Ba)):ms.push(Ae[Si]),ms[Si].charCodeAt(0)>>8&&(Js=!0);Ae=ms.join("")}for(Si=Ae.length;Js===void 0&&Si!==0;)Ae.charCodeAt(Si-1)>>8&&(Js=!0),Si--;if(!Js)return Ae;for(ms=vn.noBOM?[]:[254,255],Si=0,_i=Ae.length;Si<_i;Si++){if((Pa=(Ba=Ae.charCodeAt(Si))>>8)>>8)throw new Error("Character at position "+Si+" of string '"+Ae+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ms.push(Pa),ms.push(Ba-(Pa<<8))}return String.fromCharCode.apply(void 0,ms)},_u=ze.__private__.pdfEscape=ze.pdfEscape=function(Ae,vn){return _n(Ae,vn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Oh=ze.__private__.beginPage=function(Ae){Zi[++Os]=[],ro[Os]={objId:0,contentsObjId:0,userUnit:Number(we),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ae[0]),topRightY:Number(Ae[1])}},gc(Os),ki(Zi[un])},lA=function(Ae,vn){var Si,_i,ur;switch(Pt=vn||Pt,typeof Ae=="string"&&(Si=Rn(Ae.toLowerCase()),Array.isArray(Si)&&(_i=Si[0],ur=Si[1])),Array.isArray(Ae)&&(_i=Ae[0]*So,ur=Ae[1]*So),isNaN(_i)&&(_i=ie[0],ur=ie[1]),(_i>14400||ur>14400)&&(Lo.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),_i=Math.min(14400,_i),ur=Math.min(14400,ur)),ie=[_i,ur],Pt.substr(0,1)){case"l":ur>_i&&(ie=[ur,_i]);break;case"p":_i>ur&&(ie=[ur,_i])}Oh(ie),Eh(Mu),Yn(sc),KA!==0&&Yn(KA+" J"),bd!==0&&Yn(bd+" j"),Wo.publish("addPage",{pageNumber:Os})},nd=function(Ae){Ae>0&&Ae<=Os&&(Zi.splice(Ae,1),ro.splice(Ae,1),Os--,un>Os&&(un=Os),this.setPage(un))},gc=function(Ae){Ae>0&&Ae<=Os&&(un=Ae)},xd=ze.__private__.getNumberOfPages=ze.getNumberOfPages=function(){return Zi.length-1},SA=function(Ae,vn,Si){var _i,ur=void 0;return Si=Si||{},Ae=Ae!==void 0?Ae:Cs[ns].fontName,vn=vn!==void 0?vn:Cs[ns].fontStyle,_i=Ae.toLowerCase(),ta[_i]!==void 0&&ta[_i][vn]!==void 0?ur=ta[_i][vn]:ta[Ae]!==void 0&&ta[Ae][vn]!==void 0?ur=ta[Ae][vn]:Si.disableWarning===!1&&Lo.warn("Unable to look up font label for font '"+Ae+"', '"+vn+"'. Refer to getFontList() for available fonts."),ur||Si.noFallback||(ur=ta.times[vn])==null&&(ur=ta.times.normal),ur},Lu=ze.__private__.putInfo=function(){var Ae=ja(),vn=function(_i){return _i};for(var Si in dn!==null&&(vn=Vu.encryptor(Ae,0)),Yn("<<"),Yn("/Producer ("+_u(vn("jsPDF "+Qo.version))+")"),Yo)Yo.hasOwnProperty(Si)&&Yo[Si]&&Yn("/"+Si.substr(0,1).toUpperCase()+Si.substr(1)+" ("+_u(vn(Yo[Si]))+")");Yn("/CreationDate ("+_u(vn(Ze))+")"),Yn(">>"),Yn("endobj")},jc=ze.__private__.putCatalog=function(Ae){var vn=(Ae=Ae||{}).rootDictionaryObjId||Na;switch(ja(),Yn("<<"),Yn("/Type /Catalog"),Yn("/Pages "+vn+" 0 R"),er||(er="fullwidth"),er){case"fullwidth":Yn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Yn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Yn("/OpenAction [3 0 R /Fit]");break;case"original":Yn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Si=""+er;Si.substr(Si.length-1)==="%"&&(er=parseInt(er)/100),typeof er=="number"&&Yn("/OpenAction [3 0 R /XYZ null null "+Or(er)+"]")}switch(_r||(_r="continuous"),_r){case"continuous":Yn("/PageLayout /OneColumn");break;case"single":Yn("/PageLayout /SinglePage");break;case"two":case"twoleft":Yn("/PageLayout /TwoColumnLeft");break;case"tworight":Yn("/PageLayout /TwoColumnRight")}ho&&Yn("/PageMode /"+ho),Wo.publish("putCatalog"),Yn(">>"),Yn("endobj")},Kd=ze.__private__.putTrailer=function(){Yn("trailer"),Yn("<<"),Yn("/Size "+($n+1)),Yn("/Root "+$n+" 0 R"),Yn("/Info "+($n-1)+" 0 R"),dn!==null&&Yn("/Encrypt "+Vu.oid+" 0 R"),Yn("/ID [ <"+Ye+"> <"+Ye+"> ]"),Yn(">>")},id=ze.__private__.putHeader=function(){Yn("%PDF-"+mi),Yn("%\xBA\xDF\xAC\xE0")},CA=ze.__private__.putXRef=function(){var Ae="0000000000";Yn("xref"),Yn("0 "+($n+1)),Yn("0000000000 65535 f ");for(var vn=1;vn<=$n;vn++)typeof ri[vn]=="function"?Yn((Ae+ri[vn]()).slice(-10)+" 00000 n "):ri[vn]!==void 0?Yn((Ae+ri[vn]).slice(-10)+" 00000 n "):Yn("0000000000 00000 n ")},Uc=ze.__private__.buildDocument=function(){io(),ki(Fi),Wo.publish("buildDocument"),id(),uu(),ga(),Al(),dn!==null&&rc(),Lu(),jc();var Ae=ui;return CA(),Kd(),Yn("startxref"),Yn(""+Ae),Yn("%%EOF"),ki(Zi[un]),Fi.join(`
`)},Sd=ze.__private__.getBlob=function(Ae){return new Blob([Pr(Ae)],{type:"application/pdf"})},Ju=ze.output=ze.__private__.output=Th(function(Ae,vn){switch(typeof(vn=vn||{})=="string"?vn={filename:vn}:vn.filename=vn.filename||"generated.pdf",Ae){case void 0:return Uc();case"save":ze.save(vn.filename);break;case"arraybuffer":return Pr(Uc());case"blob":return Sd(Uc());case"bloburi":case"bloburl":if(kr.URL!==void 0&&typeof kr.URL.createObjectURL=="function")return kr.URL&&kr.URL.createObjectURL(Sd(Uc()))||void 0;Lo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Si="",_i=Uc();try{Si=ba(_i)}catch(ru){Si=ba(unescape(encodeURIComponent(_i)))}return"data:application/pdf;filename="+vn.filename+";base64,"+Si;case"pdfobjectnewwindow":if(Object.prototype.toString.call(kr)==="[object Window]"){var ur="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ur=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';vn.pdfObjectUrl&&(ur=vn.pdfObjectUrl,Ur="");var Co='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ur+'"'+Ur+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(vn)+");<\/script></body></html>",ms=kr.open();return ms!==null&&ms.document.write(Co),ms}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(kr)==="[object Window]"){var Js='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(vn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+vn.filename+'" width="500px" height="400px" /></body></html>',Ba=kr.open();if(Ba!==null){Ba.document.write(Js);var Pa=this;Ba.document.documentElement.querySelector("#pdfViewer").onload=function(){Ba.document.title=vn.filename,Ba.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Pa.output("bloburl"))}}return Ba}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(kr)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var vs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",vn)+'"></iframe></body></html>',iu=kr.open();if(iu!==null&&(iu.document.write(vs),iu.document.title=vn.filename),iu||typeof safari=="undefined")return iu;break;case"datauri":case"dataurl":return kr.document.location.href=this.output("datauristring",vn);default:return null}}),ah=function(Ae){return Array.isArray(aa)===!0&&aa.indexOf(Ae)>-1};switch(Qt){case"pt":So=1;break;case"mm":So=72/25.4;break;case"cm":So=72/2.54;break;case"in":So=72;break;case"px":So=ah("px_scaling")==1?.75:96/72;break;case"pc":case"em":So=12;break;case"ex":So=6;break;default:if(typeof Qt!="number")throw new Error("Invalid unit: "+Qt);So=Qt}var Vu=null;qn(),en();var BA=function(Ae){return dn!==null?Vu.encryptor(Ae,0):function(vn){return vn}},Gh=ze.__private__.getPageInfo=ze.getPageInfo=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ro[Ae].objId,pageNumber:Ae,pageContext:ro[Ae]}},ia=ze.__private__.getPageInfoByObjId=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var vn in ro)if(ro[vn].objId===Ae)break;return Gh(vn)},Cd=ze.__private__.getCurrentPageInfo=ze.getCurrentPageInfo=function(){return{objId:ro[un].objId,pageNumber:un,pageContext:ro[un]}};ze.addPage=function(){return lA.apply(this,arguments),this},ze.setPage=function(){return gc.apply(this,arguments),ki.call(this,Zi[un]),this},ze.insertPage=function(Ae){return this.addPage(),this.movePage(un,Ae),this},ze.movePage=function(Ae,vn){var Si,_i;if(Ae>vn){Si=Zi[Ae],_i=ro[Ae];for(var ur=Ae;ur>vn;ur--)Zi[ur]=Zi[ur-1],ro[ur]=ro[ur-1];Zi[vn]=Si,ro[vn]=_i,this.setPage(vn)}else if(Ae<vn){Si=Zi[Ae],_i=ro[Ae];for(var Ur=Ae;Ur<vn;Ur++)Zi[Ur]=Zi[Ur+1],ro[Ur]=ro[Ur+1];Zi[vn]=Si,ro[vn]=_i,this.setPage(vn)}return this},ze.deletePage=function(){return nd.apply(this,arguments),this},ze.__private__.text=ze.text=function(Ae,vn,Si,_i,ur){var Ur,Co,ms,Js,Ba,Pa,vs,iu,ru,Qa=(_i=_i||{}).scope||this;if(typeof Ae=="number"&&typeof vn=="number"&&(typeof Si=="string"||Array.isArray(Si))){var Kl=Si;Si=vn,vn=Ae,Ae=Kl}if(arguments[3]instanceof Ps?(Oi("The transform parameter of text() with a Matrix value"),ru=ur):(ms=arguments[4],Js=arguments[5],(0,Lt.Z)(vs=arguments[3])==="object"&&vs!==null||(typeof ms=="string"&&(Js=ms,ms=null),typeof vs=="string"&&(Js=vs,vs=null),typeof vs=="number"&&(ms=vs,vs=null),_i={flags:vs,angle:ms,align:Js})),isNaN(vn)||isNaN(Si)||Ae==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ae.length===0)return Qa;var Nu="",ac=!1,Fh=typeof _i.lineHeightFactor=="number"?_i.lineHeightFactor:Za,lc=Qa.internal.scaleFactor;function LA(La){return La=La.split(" ").join(Array(_i.TabLen||9).join(" ")),_u(La,vs)}function dA(La){for(var wa,gl=La.concat(),pl=[],bo=gl.length;bo--;)typeof(wa=gl.shift())=="string"?pl.push(wa):Array.isArray(La)&&(wa.length===1||wa[1]===void 0&&wa[2]===void 0)?pl.push(wa[0]):pl.push([wa[0],wa[1],wa[2]]);return pl}function MA(La,wa){var gl;if(typeof La=="string")gl=wa(La)[0];else if(Array.isArray(La)){for(var pl,bo,xa=La.concat(),Nl=[],Il=xa.length;Il--;)typeof(pl=xa.shift())=="string"?Nl.push(wa(pl)[0]):Array.isArray(pl)&&typeof pl[0]=="string"&&(bo=wa(pl[0],pl[1],pl[2]),Nl.push([bo[0],bo[1],bo[2]]));gl=Nl}return gl}var pc=!1,Fd=!0;if(typeof Ae=="string")pc=!0;else if(Array.isArray(Ae)){var Gc=Ae.concat();Co=[];for(var fl,Iu=Gc.length;Iu--;)(typeof(fl=Gc.shift())!="string"||Array.isArray(fl)&&typeof fl[0]!="string")&&(Fd=!1);pc=Fd}if(pc===!1)throw new Error('Type of text must be string or Array. "'+Ae+'" is not recognized.');typeof Ae=="string"&&(Ae=Ae.match(/[\r?\n]/)?Ae.split(/\r\n|\r|\n/g):[Ae]);var Yd=ar/Qa.internal.scaleFactor,Wl=Yd*(Fh-1);switch(_i.baseline){case"bottom":Si-=Wl;break;case"top":Si+=Yd-Wl;break;case"hanging":Si+=Yd-2*Wl;break;case"middle":Si+=Yd/2-Wl}if((Pa=_i.maxWidth||0)>0&&(typeof Ae=="string"?Ae=Qa.splitTextToSize(Ae,Pa):Object.prototype.toString.call(Ae)==="[object Array]"&&(Ae=Ae.reduce(function(La,wa){return La.concat(Qa.splitTextToSize(wa,Pa))},[]))),Ur={text:Ae,x:vn,y:Si,options:_i,mutex:{pdfEscape:_u,activeFontKey:ns,fonts:Cs,activeFontSize:ar}},Wo.publish("preProcessText",Ur),Ae=Ur.text,ms=(_i=Ur.options).angle,!(ru instanceof Ps)&&ms&&typeof ms=="number"){ms*=Math.PI/180,_i.rotationDirection===0&&(ms=-ms),Qi===Ai.ADVANCED&&(ms=-ms);var jh=Math.cos(ms),mc=Math.sin(ms);ru=new Ps(jh,mc,-mc,jh,0,0)}else ms&&ms instanceof Ps&&(ru=ms);Qi!==Ai.ADVANCED||ru||(ru=Ul),(Ba=_i.charSpace||uA)!==void 0&&(Nu+=mr(oi(Ba))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(iu=_i.horizontalScale)!==void 0&&(Nu+=mr(100*iu)+` Tz
`),_i.lang;var th=-1,Vl=_i.renderingMode!==void 0?_i.renderingMode:_i.stroke,Ld=Qa.internal.getCurrentPageInfo().pageContext;switch(Vl){case 0:case!1:case"fill":th=0;break;case 1:case!0:case"stroke":th=1;break;case 2:case"fillThenStroke":th=2;break;case 3:case"invisible":th=3;break;case 4:case"fillAndAddForClipping":th=4;break;case 5:case"strokeAndAddPathForClipping":th=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":th=6;break;case 7:case"addToPathForClipping":th=7}var Uh=Ld.usedRenderingMode!==void 0?Ld.usedRenderingMode:-1;th!==-1?Nu+=th+` Tr
`:Uh!==-1&&(Nu+=`0 Tr
`),th!==-1&&(Ld.usedRenderingMode=th),Js=_i.align||"left";var lh,sd=ar*Fh,it=Qa.internal.pageSize.getWidth(),st=Cs[ns];Ba=_i.charSpace||uA,Pa=_i.maxWidth||0,vs=Object.assign({autoencode:!0,noBOM:!0},_i.flags);var mt=[],pt=function(La){return Qa.getStringUnitWidth(La,{font:st,charSpace:Ba,fontSize:ar,doKerning:!1})*ar/lc};if(Object.prototype.toString.call(Ae)==="[object Array]"){var Bt;Co=dA(Ae),Js!=="left"&&(lh=Co.map(pt));var Jt,Se=0;if(Js==="right"){vn-=lh[0],Ae=[],Iu=Co.length;for(var je=0;je<Iu;je++)je===0?(Jt=Zu(vn),Bt=xh(Si)):(Jt=oi(Se-lh[je]),Bt=-sd),Ae.push([Co[je],Jt,Bt]),Se=lh[je]}else if(Js==="center"){vn-=lh[0]/2,Ae=[],Iu=Co.length;for(var De=0;De<Iu;De++)De===0?(Jt=Zu(vn),Bt=xh(Si)):(Jt=oi((Se-lh[De])/2),Bt=-sd),Ae.push([Co[De],Jt,Bt]),Se=lh[De]}else if(Js==="left"){Ae=[],Iu=Co.length;for(var an=0;an<Iu;an++)Ae.push(Co[an])}else if(Js==="justify"&&st.encoding==="Identity-H"){Ae=[],Iu=Co.length,Pa=Pa!==0?Pa:it;for(var si=0,fn=0;fn<Iu;fn++)if(Bt=fn===0?xh(Si):-sd,Jt=fn===0?Zu(vn):si,fn<Iu-1){var Ti=oi((Pa-lh[fn])/(Co[fn].split(" ").length-1)),bi=Co[fn].split(" ");Ae.push([bi[0]+" ",Jt,Bt]),si=0;for(var Sr=1;Sr<bi.length;Sr++){var Dr=(pt(bi[Sr-1]+" "+bi[Sr])-pt(bi[Sr]))*lc+Ti;Sr==bi.length-1?Ae.push([bi[Sr],Dr,0]):Ae.push([bi[Sr]+" ",Dr,0]),si-=Dr}}else Ae.push([Co[fn],Jt,Bt]);Ae.push(["",si,0])}else{if(Js!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ae=[],Iu=Co.length,Pa=Pa!==0?Pa:it,fn=0;fn<Iu;fn++)Bt=fn===0?xh(Si):-sd,Jt=fn===0?Zu(vn):0,fn<Iu-1?mt.push(mr(oi((Pa-lh[fn])/(Co[fn].split(" ").length-1)))):mt.push(0),Ae.push([Co[fn],Jt,Bt])}}var Jr=typeof _i.R2L=="boolean"?_i.R2L:Vr;Jr===!0&&(Ae=MA(Ae,function(La,wa,gl){return[La.split("").reverse().join(""),wa,gl]})),Ur={text:Ae,x:vn,y:Si,options:_i,mutex:{pdfEscape:_u,activeFontKey:ns,fonts:Cs,activeFontSize:ar}},Wo.publish("postProcessText",Ur),Ae=Ur.text,ac=Ur.mutex.isHex||!1;var vo=Cs[ns].encoding;vo!=="WinAnsiEncoding"&&vo!=="StandardEncoding"||(Ae=MA(Ae,function(La,wa,gl){return[LA(La),wa,gl]})),Co=dA(Ae),Ae=[];for(var Xo,No,as,Ms=0,Io=1,na=Array.isArray(Co[0])?Io:Ms,Cl="",ku=function(La,wa,gl){var pl="";return gl instanceof Ps?(gl=typeof _i.angle=="number"?ca(gl,new Ps(1,0,0,1,La,wa)):ca(new Ps(1,0,0,1,La,wa),gl),Qi===Ai.ADVANCED&&(gl=ca(new Ps(1,0,0,-1,0,0),gl)),pl=gl.join(" ")+` Tm
`):pl=mr(La)+" "+mr(wa)+` Td
`,pl},ul=0;ul<Co.length;ul++){switch(Cl="",na){case Io:as=(ac?"<":"(")+Co[ul][0]+(ac?">":")"),Xo=parseFloat(Co[ul][1]),No=parseFloat(Co[ul][2]);break;case Ms:as=(ac?"<":"(")+Co[ul]+(ac?">":")"),Xo=Zu(vn),No=xh(Si)}mt!==void 0&&mt[ul]!==void 0&&(Cl=mt[ul]+` Tw
`),ul===0?Ae.push(Cl+ku(Xo,No,ru)+as):na===Ms?Ae.push(Cl+as):na===Io&&Ae.push(Cl+ku(Xo,No,ru)+as)}Ae=na===Ms?Ae.join(` Tj
T* `):Ae.join(` Tj
`),Ae+=` Tj
`;var yu=`BT
/`;return yu+=ns+" "+ar+` Tf
`,yu+=mr(ar*Fh)+` TL
`,yu+=od+`
`,yu+=Nu,yu+=Ae,Yn(yu+="ET"),Pn[ns]=!0,Qa};var rd=ze.__private__.clip=ze.clip=function(Ae){return Yn(Ae==="evenodd"?"W*":"W"),this};ze.clipEvenOdd=function(){return rd("evenodd")},ze.__private__.discardPath=ze.discardPath=function(){return Yn("n"),this};var mu=ze.__private__.isValidStyle=function(Ae){var vn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ae)!==-1&&(vn=!0),vn};ze.__private__.setDefaultPathOperation=ze.setDefaultPathOperation=function(Ae){return mu(Ae)&&(Xe=Ae),this};var Gd=ze.__private__.getStyle=ze.getStyle=function(Ae){var vn=Xe;switch(Ae){case"D":case"S":vn="S";break;case"F":vn="f";break;case"FD":case"DF":vn="B";break;case"f":case"f*":case"B":case"B*":vn=Ae}return vn},Wd=ze.close=function(){return Yn("h"),this};ze.stroke=function(){return Yn("S"),this},ze.fill=function(Ae){return qu("f",Ae),this},ze.fillEvenOdd=function(Ae){return qu("f*",Ae),this},ze.fillStroke=function(Ae){return qu("B",Ae),this},ze.fillStrokeEvenOdd=function(Ae){return qu("B*",Ae),this};var qu=function(Ae,vn){(0,Lt.Z)(vn)==="object"?Vd(vn,Ae):Yn(Ae)},Rc=function(Ae){Ae===null||Qi===Ai.ADVANCED&&Ae===void 0||(Ae=Gd(Ae),Yn(Ae))};function Bd(Ae,vn,Si,_i,ur){var Ur=new qs(vn||this.boundingBox,Si||this.xStep,_i||this.yStep,this.gState,ur||this.matrix);Ur.stream=this.stream;var Co=Ae+"$$"+this.cloneIndex+++"$$";return fo(Co,Ur),Ur}var Vd=function(Ae,vn){var Si=Ko[Ae.key],_i=Ys[Si];if(_i instanceof Aa)Yn("q"),Yn(cu(vn)),_i.gState&&ze.setGState(_i.gState),Yn(Ae.matrix.toString()+" cm"),Yn("/"+Si+" sh"),Yn("Q");else if(_i instanceof qs){var ur=new Ps(1,0,0,-1,0,$d());Ae.matrix&&(ur=ur.multiply(Ae.matrix||Ul),Si=Bd.call(_i,Ae.key,Ae.boundingBox,Ae.xStep,Ae.yStep,ur).id),Yn("q"),Yn("/Pattern cs"),Yn("/"+Si+" scn"),_i.gState&&ze.setGState(_i.gState),Yn(vn),Yn("Q")}},cu=function(Ae){switch(Ae){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},vu=ze.moveTo=function(Ae,vn){return Yn(mr(oi(Ae))+" "+mr(me(vn))+" m"),this},_c=ze.lineTo=function(Ae,vn){return Yn(mr(oi(Ae))+" "+mr(me(vn))+" l"),this},_l=ze.curveTo=function(Ae,vn,Si,_i,ur,Ur){return Yn([mr(oi(Ae)),mr(me(vn)),mr(oi(Si)),mr(me(_i)),mr(oi(ur)),mr(me(Ur)),"c"].join(" ")),this};ze.__private__.line=ze.line=function(Ae,vn,Si,_i,ur){if(isNaN(Ae)||isNaN(vn)||isNaN(Si)||isNaN(_i)||!mu(ur))throw new Error("Invalid arguments passed to jsPDF.line");return Qi===Ai.COMPAT?this.lines([[Si-Ae,_i-vn]],Ae,vn,[1,1],ur||"S"):this.lines([[Si-Ae,_i-vn]],Ae,vn,[1,1]).stroke()},ze.__private__.lines=ze.lines=function(Ae,vn,Si,_i,ur,Ur){var Co,ms,Js,Ba,Pa,vs,iu,ru,Qa,Kl,Nu,ac;if(typeof Ae=="number"&&(ac=Si,Si=vn,vn=Ae,Ae=ac),_i=_i||[1,1],Ur=Ur||!1,isNaN(vn)||isNaN(Si)||!Array.isArray(Ae)||!Array.isArray(_i)||!mu(ur)||typeof Ur!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(vu(vn,Si),Co=_i[0],ms=_i[1],Ba=Ae.length,Kl=vn,Nu=Si,Js=0;Js<Ba;Js++)(Pa=Ae[Js]).length===2?(Kl=Pa[0]*Co+Kl,Nu=Pa[1]*ms+Nu,_c(Kl,Nu)):(vs=Pa[0]*Co+Kl,iu=Pa[1]*ms+Nu,ru=Pa[2]*Co+Kl,Qa=Pa[3]*ms+Nu,Kl=Pa[4]*Co+Kl,Nu=Pa[5]*ms+Nu,_l(vs,iu,ru,Qa,Kl,Nu));return Ur&&Wd(),Rc(ur),this},ze.path=function(Ae){for(var vn=0;vn<Ae.length;vn++){var Si=Ae[vn],_i=Si.c;switch(Si.op){case"m":vu(_i[0],_i[1]);break;case"l":_c(_i[0],_i[1]);break;case"c":_l.apply(this,_i);break;case"h":Wd()}}return this},ze.__private__.rect=ze.rect=function(Ae,vn,Si,_i,ur){if(isNaN(Ae)||isNaN(vn)||isNaN(Si)||isNaN(_i)||!mu(ur))throw new Error("Invalid arguments passed to jsPDF.rect");return Qi===Ai.COMPAT&&(_i=-_i),Yn([mr(oi(Ae)),mr(me(vn)),mr(oi(Si)),mr(oi(_i)),"re"].join(" ")),Rc(ur),this},ze.__private__.triangle=ze.triangle=function(Ae,vn,Si,_i,ur,Ur,Co){if(isNaN(Ae)||isNaN(vn)||isNaN(Si)||isNaN(_i)||isNaN(ur)||isNaN(Ur)||!mu(Co))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Si-Ae,_i-vn],[ur-Si,Ur-_i],[Ae-ur,vn-Ur]],Ae,vn,[1,1],Co,!0),this},ze.__private__.roundedRect=ze.roundedRect=function(Ae,vn,Si,_i,ur,Ur,Co){if(isNaN(Ae)||isNaN(vn)||isNaN(Si)||isNaN(_i)||isNaN(ur)||isNaN(Ur)||!mu(Co))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ms=4/3*(Math.SQRT2-1);return ur=Math.min(ur,.5*Si),Ur=Math.min(Ur,.5*_i),this.lines([[Si-2*ur,0],[ur*ms,0,ur,Ur-Ur*ms,ur,Ur],[0,_i-2*Ur],[0,Ur*ms,-ur*ms,Ur,-ur,Ur],[2*ur-Si,0],[-ur*ms,0,-ur,-Ur*ms,-ur,-Ur],[0,2*Ur-_i],[0,-Ur*ms,ur*ms,-Ur,ur,-Ur]],Ae+ur,vn,[1,1],Co,!0),this},ze.__private__.ellipse=ze.ellipse=function(Ae,vn,Si,_i,ur){if(isNaN(Ae)||isNaN(vn)||isNaN(Si)||isNaN(_i)||!mu(ur))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ur=4/3*(Math.SQRT2-1)*Si,Co=4/3*(Math.SQRT2-1)*_i;return vu(Ae+Si,vn),_l(Ae+Si,vn-Co,Ae+Ur,vn-_i,Ae,vn-_i),_l(Ae-Ur,vn-_i,Ae-Si,vn-Co,Ae-Si,vn),_l(Ae-Si,vn+Co,Ae-Ur,vn+_i,Ae,vn+_i),_l(Ae+Ur,vn+_i,Ae+Si,vn+Co,Ae+Si,vn),Rc(ur),this},ze.__private__.circle=ze.circle=function(Ae,vn,Si,_i){if(isNaN(Ae)||isNaN(vn)||isNaN(Si)||!mu(_i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ae,vn,Si,Si,_i)},ze.setFont=function(Ae,vn,Si){return Si&&(vn=lo(vn,Si)),ns=SA(Ae,vn,{disableWarning:!1}),this};var ka=ze.__private__.getFont=ze.getFont=function(){return Cs[SA.apply(ze,arguments)]};ze.__private__.getFontList=ze.getFontList=function(){var Ae,vn,Si={};for(Ae in ta)if(ta.hasOwnProperty(Ae))for(vn in Si[Ae]=[],ta[Ae])ta[Ae].hasOwnProperty(vn)&&Si[Ae].push(vn);return Si},ze.addFont=function(Ae,vn,Si,_i,ur){var Ur=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ur.indexOf(arguments[3])!==-1?ur=arguments[3]:arguments[3]&&Ur.indexOf(arguments[3])==-1&&(Si=lo(Si,_i)),ur=ur||"Identity-H",Fu.call(this,Ae,vn,Si,ur)};var Za,Mu=Et.lineWidth||.200025,fh=ze.__private__.getLineWidth=ze.getLineWidth=function(){return Mu},Eh=ze.__private__.setLineWidth=ze.setLineWidth=function(Ae){return Mu=Ae,Yn(mr(oi(Ae))+" w"),this};ze.__private__.setLineDash=Qo.API.setLineDash=Qo.API.setLineDashPattern=function(Ae,vn){if(Ae=Ae||[],vn=vn||0,isNaN(vn)||!Array.isArray(Ae))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ae=Ae.map(function(Si){return mr(oi(Si))}).join(" "),vn=mr(oi(vn)),Yn("["+Ae+"] "+vn+" d"),this};var Zd=ze.__private__.getLineHeight=ze.getLineHeight=function(){return ar*Za};ze.__private__.getLineHeight=ze.getLineHeight=function(){return ar*Za};var Bc=ze.__private__.setLineHeightFactor=ze.setLineHeightFactor=function(Ae){return typeof(Ae=Ae||1.15)=="number"&&(Za=Ae),this},Pd=ze.__private__.getLineHeightFactor=ze.getLineHeightFactor=function(){return Za};Bc(Et.lineHeight);var Zu=ze.__private__.getHorizontalCoordinate=function(Ae){return oi(Ae)},xh=ze.__private__.getVerticalCoordinate=function(Ae){return Qi===Ai.ADVANCED?Ae:ro[un].mediaBox.topRightY-ro[un].mediaBox.bottomLeftY-oi(Ae)},PA=ze.__private__.getHorizontalCoordinateString=ze.getHorizontalCoordinateString=function(Ae){return mr(Zu(Ae))},Hc=ze.__private__.getVerticalCoordinateString=ze.getVerticalCoordinateString=function(Ae){return mr(xh(Ae))},sc=Et.strokeColor||"0 G";ze.__private__.getStrokeColor=ze.getDrawColor=function(){return ol(sc)},ze.__private__.setStrokeColor=ze.setDrawColor=function(Ae,vn,Si,_i){return sc=Rs({ch1:Ae,ch2:vn,ch3:Si,ch4:_i,pdfColorType:"draw",precision:2}),Yn(sc),this};var Qc=Et.fillColor||"0 g";ze.__private__.getFillColor=ze.getFillColor=function(){return ol(Qc)},ze.__private__.setFillColor=ze.setFillColor=function(Ae,vn,Si,_i){return Qc=Rs({ch1:Ae,ch2:vn,ch3:Si,ch4:_i,pdfColorType:"fill",precision:2}),Yn(Qc),this};var od=Et.textColor||"0 g",lf=ze.__private__.getTextColor=ze.getTextColor=function(){return ol(od)};ze.__private__.setTextColor=ze.setTextColor=function(Ae,vn,Si,_i){return od=Rs({ch1:Ae,ch2:vn,ch3:Si,ch4:_i,pdfColorType:"text",precision:3}),this};var uA=Et.charSpace,Pc=ze.__private__.getCharSpace=ze.getCharSpace=function(){return parseFloat(uA||0)};ze.__private__.setCharSpace=ze.setCharSpace=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=Ae,this};var KA=0;ze.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},ze.__private__.setLineCap=ze.setLineCap=function(Ae){var vn=ze.CapJoinStyles[Ae];if(vn===void 0)throw new Error("Line cap style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return KA=vn,Yn(vn+" J"),this};var bd=0;ze.__private__.setLineJoin=ze.setLineJoin=function(Ae){var vn=ze.CapJoinStyles[Ae];if(vn===void 0)throw new Error("Line join style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return bd=vn,Yn(vn+" j"),this},ze.__private__.setLineMiterLimit=ze.__private__.setMiterLimit=ze.setLineMiterLimit=ze.setMiterLimit=function(Ae){if(Ae=Ae||0,isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Yn(mr(oi(Ae))+" M"),this},ze.GState=Ts,ze.setGState=function(Ae){(Ae=typeof Ae=="string"?Go[As[Ae]]:zc(null,Ae)).equals(es)||(Yn("/"+Ae.id+" gs"),es=Ae)};var zc=function(Ae,vn){if(!Ae||!As[Ae]){var Si=!1;for(var _i in Go)if(Go.hasOwnProperty(_i)&&Go[_i].equals(vn)){Si=!0;break}if(Si)vn=Go[_i];else{var ur="GS"+(Object.keys(Go).length+1).toString(10);Go[ur]=vn,vn.id=ur}return Ae&&(As[Ae]=vn.id),Wo.publish("addGState",vn),vn}};ze.addGState=function(Ae,vn){return zc(Ae,vn),this},ze.saveGraphicsState=function(){return Yn("q"),Da.push({key:ns,size:ar,color:od}),this},ze.restoreGraphicsState=function(){Yn("Q");var Ae=Da.pop();return ns=Ae.key,ar=Ae.size,od=Ae.color,es=null,this},ze.setCurrentTransformationMatrix=function(Ae){return Yn(Ae.toString()+" cm"),this},ze.comment=function(Ae){return Yn("#"+Ae),this};var Kc=function(Ae,vn){var Si=Ae||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Si},set:function(Ur){isNaN(Ur)||(Si=parseFloat(Ur))}});var _i=vn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _i},set:function(Ur){isNaN(Ur)||(_i=parseFloat(Ur))}});var ur="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ur},set:function(Ur){ur=Ur.toString()}}),this},hA=function(Ae,vn,Si,_i){Kc.call(this,Ae,vn),this.type="rect";var ur=Si||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ur},set:function(Co){isNaN(Co)||(ur=parseFloat(Co))}});var Ur=_i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ur},set:function(Co){isNaN(Co)||(Ur=parseFloat(Co))}}),this},Dh=function(){this.page=Os,this.currentPage=un,this.pages=Zi.slice(0),this.pagesContext=ro.slice(0),this.x=va,this.y=Vo,this.matrix=rs,this.width=Xd(un),this.height=$d(un),this.outputDestination=Er,this.id="",this.objectNumber=-1};Dh.prototype.restore=function(){Os=this.page,un=this.currentPage,ro=this.pagesContext,Zi=this.pages,va=this.x,Vo=this.y,rs=this.matrix,Ed(un,this.width),FA(un,this.height),Er=this.outputDestination};var bA=function(Ae,vn,Si,_i,ur){Fl.push(new Dh),Os=un=0,Zi=[],va=Ae,Vo=vn,rs=ur,Oh([Si,_i])},EA=function(Ae){if(zl[Ae])Fl.pop().restore();else{var vn=new Dh,Si="Xo"+(Object.keys(Us).length+1).toString(10);vn.id=Si,zl[Ae]=Si,Us[Si]=vn,Wo.publish("addFormObject",vn),Fl.pop().restore()}};for(var cA in ze.beginFormObject=function(Ae,vn,Si,_i,ur){return bA(Ae,vn,Si,_i,ur),this},ze.endFormObject=function(Ae){return EA(Ae),this},ze.doFormObject=function(Ae,vn){var Si=Us[zl[Ae]];return Yn("q"),Yn(vn.toString()+" cm"),Yn("/"+Si.id+" Do"),Yn("Q"),this},ze.getFormObject=function(Ae){var vn=Us[zl[Ae]];return{x:vn.x,y:vn.y,width:vn.width,height:vn.height,matrix:vn.matrix}},ze.save=function(Ae,vn){return Ae=Ae||"generated.pdf",(vn=vn||{}).returnPromise=vn.returnPromise||!1,vn.returnPromise===!1?(Vs(Sd(Uc()),Ae),typeof Vs.unload=="function"&&kr.setTimeout&&setTimeout(Vs.unload,911),this):new Promise(function(Si,_i){try{var ur=Vs(Sd(Uc()),Ae);typeof Vs.unload=="function"&&kr.setTimeout&&setTimeout(Vs.unload,911),Si(ur)}catch(Ur){_i(Ur.message)}})},Qo.API)Qo.API.hasOwnProperty(cA)&&(cA==="events"&&Qo.API.events.length?function(Ae,vn){var Si,_i,ur;for(ur=vn.length-1;ur!==-1;ur--)Si=vn[ur][0],_i=vn[ur][1],Ae.subscribe.apply(Ae,[Si].concat(typeof _i=="function"?[_i]:_i))}(Wo,Qo.API.events):ze[cA]=Qo.API[cA]);var Xd=ze.getPageWidth=function(Ae){return(ro[Ae=Ae||un].mediaBox.topRightX-ro[Ae].mediaBox.bottomLeftX)/So},Ed=ze.setPageWidth=function(Ae,vn){ro[Ae].mediaBox.topRightX=vn*So+ro[Ae].mediaBox.bottomLeftX},$d=ze.getPageHeight=function(Ae){return(ro[Ae=Ae||un].mediaBox.topRightY-ro[Ae].mediaBox.bottomLeftY)/So},FA=ze.setPageHeight=function(Ae,vn){ro[Ae].mediaBox.topRightY=vn*So+ro[Ae].mediaBox.bottomLeftY};return ze.internal={pdfEscape:_u,getStyle:Gd,getFont:ka,getFontSize:vr,getCharSpace:Pc,getTextColor:lf,getLineHeight:Zd,getLineHeightFactor:Pd,getLineWidth:fh,write:Bo,getHorizontalCoordinate:Zu,getVerticalCoordinate:xh,getCoordinateString:PA,getVerticalCoordinateString:Hc,collections:{},newObject:ja,newAdditionalObject:la,newObjectDeferred:Gl,newObjectDeferredBegin:ea,getFilters:Ia,putStream:xl,events:Wo,scaleFactor:So,pageSize:{getWidth:function(){return Xd(un)},setWidth:function(Ae){Ed(un,Ae)},getHeight:function(){return $d(un)},setHeight:function(Ae){FA(un,Ae)}},encryptionOptions:dn,encryption:Vu,getEncryptor:BA,output:Ju,getNumberOfPages:xd,pages:Zi,out:Yn,f2:Or,f3:Jn,getPageInfo:Gh,getPageInfoByObjId:ia,getCurrentPageInfo:Cd,getPDFVersion:ti,Point:Kc,Rectangle:hA,Matrix:Ps,hasHotfix:ah},Object.defineProperty(ze.internal.pageSize,"width",{get:function(){return Xd(un)},set:function(Ae){Ed(un,Ae)},enumerable:!0,configurable:!0}),Object.defineProperty(ze.internal.pageSize,"height",{get:function(){return $d(un)},set:function(Ae){FA(un,Ae)},enumerable:!0,configurable:!0}),Kh.call(ze,sr),ns="F1",lA(ie,Pt),Wo.publish("initialized"),ze}to.prototype.lsbFirstWord=function(Et){return String.fromCharCode(Et>>0&255,Et>>8&255,Et>>16&255,Et>>24&255)},to.prototype.toHexString=function(Et){return Et.split("").map(function(wt){return("0"+(255&wt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},to.prototype.hexToBytes=function(Et){for(var wt=[],Pt=0;Pt<Et.length;Pt+=2)wt.push(String.fromCharCode(parseInt(Et.substr(Pt,2),16)));return wt.join("")},to.prototype.processOwnerPassword=function(Et,wt){return ks(is(wt).substr(0,5),Et)},to.prototype.encryptor=function(Et,wt){var Pt=is(this.encryptionKey+String.fromCharCode(255&Et,Et>>8&255,Et>>16&255,255&wt,wt>>8&255)).substr(0,10);return function(Qt){return ks(Pt,Qt)}},Ts.prototype.equals=function(Et){var wt,Pt="id,objectNumber,equals";if(!Et||(0,Lt.Z)(Et)!==(0,Lt.Z)(this))return!1;var Qt=0;for(wt in this)if(!(Pt.indexOf(wt)>=0)){if(this.hasOwnProperty(wt)&&!Et.hasOwnProperty(wt)||this[wt]!==Et[wt])return!1;Qt++}for(wt in Et)Et.hasOwnProperty(wt)&&Pt.indexOf(wt)<0&&Qt--;return Qt===0},Qo.API={events:[]},Qo.version="2.5.2";var Zs=Qo.API,vl=1,yl=function(Et){return Et.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dl=function(Et){return Et.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Bs=function(Et){return Et.toFixed(2)},ai=function(Et){return Et.toFixed(5)};Zs.__acroform__={};var Ga=function(Et,wt){Et.prototype=Object.create(wt.prototype),Et.prototype.constructor=Et},mh=function(Et){return Et*vl},ju=function(Et){var wt=new Wa,Pt=zo.internal.getHeight(Et)||0,Qt=zo.internal.getWidth(Et)||0;return wt.BBox=[0,0,Number(Bs(Qt)),Number(Bs(Pt))],wt},su=Zs.__acroform__.setBit=function(Et,wt){if(Et=Et||0,wt=wt||0,isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Et|=1<<wt},Ao=Zs.__acroform__.clearBit=function(Et,wt){if(Et=Et||0,wt=wt||0,isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Et&=~(1<<wt)},Ks=Zs.__acroform__.getBit=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Et&1<<wt?1:0},Ls=Zs.__acroform__.getBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ks(Et,wt-1)},bs=Zs.__acroform__.setBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return su(Et,wt-1)},Hs=Zs.__acroform__.clearBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ao(Et,wt-1)},Ml=Zs.__acroform__.calculateCoordinates=function(Et,wt){var Pt=wt.internal.getHorizontalCoordinate,Qt=wt.internal.getVerticalCoordinate,ie=Et[0],Yt=Et[1],ge=Et[2],we=Et[3],Pe={};return Pe.lowerLeft_X=Pt(ie)||0,Pe.lowerLeft_Y=Qt(Yt+we)||0,Pe.upperRight_X=Pt(ie+ge)||0,Pe.upperRight_Y=Qt(Yt)||0,[Number(Bs(Pe.lowerLeft_X)),Number(Bs(Pe.lowerLeft_Y)),Number(Bs(Pe.upperRight_X)),Number(Bs(Pe.upperRight_Y))]},cs=function(Et){if(Et.appearanceStreamContent)return Et.appearanceStreamContent;if(Et.V||Et.DV){var wt=[],Pt=Et._V||Et.DV,Qt=Qs(Et,Pt),ie=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id;wt.push("/Tx BMC"),wt.push("q"),wt.push("BT"),wt.push(Et.scope.__private__.encodeColorString(Et.color)),wt.push("/"+ie+" "+Bs(Qt.fontSize)+" Tf"),wt.push("1 0 0 1 0 0 Tm"),wt.push(Qt.text),wt.push("ET"),wt.push("Q"),wt.push("EMC");var Yt=ju(Et);return Yt.scope=Et.scope,Yt.stream=wt.join(`
`),Yt}},Qs=function(Et,wt){var Pt=Et.fontSize===0?Et.maxFontSize:Et.fontSize,Qt={text:"",fontSize:""},ie=(wt=(wt=wt.substr(0,1)=="("?wt.substr(1):wt).substr(wt.length-1)==")"?wt.substr(0,wt.length-1):wt).split(" ");ie=Et.multiline?ie.map(function(Jn){return Jn.split(`
`)}):ie.map(function(Jn){return[Jn]});var Yt=Pt,ge=zo.internal.getHeight(Et)||0;ge=ge<0?-ge:ge;var we=zo.internal.getWidth(Et)||0;we=we<0?-we:we;var Pe=function(Jn,oi,pe){if(Jn+1<ie.length){var me=oi+" "+ie[Jn+1][0];return xs(me,Et,pe).width<=we-4}return!1};Yt++;t:for(;Yt>0;){wt="",Yt--;var Xe,dn,An=xs("3",Et,Yt).height,Pn=Et.multiline?ge-Yt:(ge-An)/2,ze=Pn+=2,mi=0,ti=0,vi=0;if(Yt<=0){wt=`(...) Tj
`,wt+="% Width of Text: "+xs(wt,Et,Yt=12).width+", FieldWidth:"+we+`
`;break}for(var Rn="",Ai=0,Qi=0;Qi<ie.length;Qi++)if(ie.hasOwnProperty(Qi)){var rr=!1;if(ie[Qi].length!==1&&vi!==ie[Qi].length-1){if((An+2)*(Ai+2)+2>ge)continue t;Rn+=ie[Qi][vi],rr=!0,ti=Qi,Qi--}else{Rn=(Rn+=ie[Qi][vi]+" ").substr(Rn.length-1)==" "?Rn.substr(0,Rn.length-1):Rn;var Fr=parseInt(Qi),lo=Pe(Fr,Rn,Yt),mr=Qi>=ie.length-1;if(lo&&!mr){Rn+=" ",vi=0;continue}if(lo||mr){if(mr)ti=Fr;else if(Et.multiline&&(An+2)*(Ai+2)+2>ge)continue t}else{if(!Et.multiline||(An+2)*(Ai+2)+2>ge)continue t;ti=Fr}}for(var Oi="",Cr=mi;Cr<=ti;Cr++){var Or=ie[Cr];if(Et.multiline){if(Cr===ti){Oi+=Or[vi]+" ",vi=(vi+1)%Or.length;continue}if(Cr===mi){Oi+=Or[Or.length-1]+" ";continue}}Oi+=Or[0]+" "}switch(Oi=Oi.substr(Oi.length-1)==" "?Oi.substr(0,Oi.length-1):Oi,dn=xs(Oi,Et,Yt).width,Et.textAlign){case"right":Xe=we-dn-2;break;case"center":Xe=(we-dn)/2;break;case"left":default:Xe=2}wt+=Bs(Xe)+" "+Bs(ze)+` Td
`,wt+="("+yl(Oi)+`) Tj
`,wt+=-Bs(Xe)+` 0 Td
`,ze=-(Yt+2),dn=0,mi=rr?ti:ti+1,Ai++,Rn=""}break}return Qt.text=wt,Qt.fontSize=Yt,Qt},xs=function(Et,wt,Pt){var Qt=wt.scope.internal.getFont(wt.fontName,wt.fontStyle),ie=wt.scope.getStringUnitWidth(Et,{font:Qt,fontSize:parseFloat(Pt),charSpace:0})*parseFloat(Pt);return{height:wt.scope.getStringUnitWidth("3",{font:Qt,fontSize:parseFloat(Pt),charSpace:0})*parseFloat(Pt)*1.5,width:ie}},Gr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},al=function(Et,wt){var Pt={type:"reference",object:Et};wt.internal.getPageInfo(Et.page).pageContext.annotations.find(function(Qt){return Qt.type===Pt.type&&Qt.object===Pt.object})===void 0&&wt.internal.getPageInfo(Et.page).pageContext.annotations.push(Pt)},Ds=function(Et,wt){for(var Pt in Et)if(Et.hasOwnProperty(Pt)){var Qt=Pt,ie=Et[Pt];wt.internal.newObjectDeferredBegin(ie.objId,!0),(0,Lt.Z)(ie)==="object"&&typeof ie.putStream=="function"&&ie.putStream(),delete Et[Qt]}},Su=function(Et,wt){if(wt.scope=Et,Et.internal!==void 0&&(Et.internal.acroformPlugin===void 0||Et.internal.acroformPlugin.isInitialized===!1)){if(bl.FieldNum=0,Et.internal.acroformPlugin=JSON.parse(JSON.stringify(Gr)),Et.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");vl=Et.internal.scaleFactor,Et.internal.acroformPlugin.acroFormDictionaryRoot=new nl,Et.internal.acroformPlugin.acroFormDictionaryRoot.scope=Et,Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Et.internal.events.subscribe("postPutResources",function(){(function(Pt){Pt.internal.events.unsubscribe(Pt.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Pt.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Pt.internal.acroformPlugin.printedOut=!0})(Et)}),Et.internal.events.subscribe("buildDocument",function(){(function(Pt){Pt.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Qt=Pt.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ie in Qt)if(Qt.hasOwnProperty(ie)){var Yt=Qt[ie];Yt.objId=void 0,Yt.hasAnnotation&&al(Yt,Pt)}})(Et)}),Et.internal.events.subscribe("putCatalog",function(){(function(Pt){if(Pt.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Pt.internal.write("/AcroForm "+Pt.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Et)}),Et.internal.events.subscribe("postPutPages",function(Pt){(function(Qt,ie){var Yt=!Qt;for(var ge in Qt||(ie.internal.newObjectDeferredBegin(ie.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ie.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Qt=Qt||ie.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Qt.hasOwnProperty(ge)){var we=Qt[ge],Pe=[],Xe=we.Rect;if(we.Rect&&(we.Rect=Ml(we.Rect,ie)),ie.internal.newObjectDeferredBegin(we.objId,!0),we.DA=zo.createDefaultAppearanceStream(we),(0,Lt.Z)(we)==="object"&&typeof we.getKeyValueListForStream=="function"&&(Pe=we.getKeyValueListForStream()),we.Rect=Xe,we.hasAppearanceStream&&!we.appearanceStreamContent){var dn=cs(we);Pe.push({key:"AP",value:"<</N "+dn+">>"}),ie.internal.acroformPlugin.xForms.push(dn)}if(we.appearanceStreamContent){var An="";for(var Pn in we.appearanceStreamContent)if(we.appearanceStreamContent.hasOwnProperty(Pn)){var ze=we.appearanceStreamContent[Pn];if(An+="/"+Pn+" ",An+="<<",Object.keys(ze).length>=1||Array.isArray(ze)){for(var ge in ze)if(ze.hasOwnProperty(ge)){var mi=ze[ge];typeof mi=="function"&&(mi=mi.call(ie,we)),An+="/"+ge+" "+mi+" ",ie.internal.acroformPlugin.xForms.indexOf(mi)>=0||ie.internal.acroformPlugin.xForms.push(mi)}}else typeof(mi=ze)=="function"&&(mi=mi.call(ie,we)),An+="/"+ge+" "+mi,ie.internal.acroformPlugin.xForms.indexOf(mi)>=0||ie.internal.acroformPlugin.xForms.push(mi);An+=">>"}Pe.push({key:"AP",value:`<<
`+An+">>"})}ie.internal.putStream({additionalKeyValues:Pe,objectId:we.objId}),ie.internal.out("endobj")}Yt&&Ds(ie.internal.acroformPlugin.xForms,ie)})(Pt,Et)}),Et.internal.acroformPlugin.isInitialized=!0}},Ku=Zs.__acroform__.arrayToPdfArray=function(Et,wt,Pt){var Qt=function(ge){return ge};if(Array.isArray(Et)){for(var ie="[",Yt=0;Yt<Et.length;Yt++)switch(Yt!==0&&(ie+=" "),(0,Lt.Z)(Et[Yt])){case"boolean":case"number":case"object":ie+=Et[Yt].toString();break;case"string":Et[Yt].substr(0,1)!=="/"?(wt!==void 0&&Pt&&(Qt=Pt.internal.getEncryptor(wt)),ie+="("+yl(Qt(Et[Yt].toString()))+")"):ie+=Et[Yt].toString()}return ie+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$l=function(Et,wt,Pt){var Qt=function(ie){return ie};return wt!==void 0&&Pt&&(Qt=Pt.internal.getEncryptor(wt)),(Et=Et||"").toString(),Et="("+yl(Qt(Et))+")"},fr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Et){this._objId=Et}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fr.prototype.toString=function(){return this.objId+" 0 R"},fr.prototype.putStream=function(){var Et=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Et,objectId:this.objId}),this.scope.internal.out("endobj")},fr.prototype.getKeyValueListForStream=function(){var Et=[],wt=Object.getOwnPropertyNames(this).filter(function(Yt){return Yt!="content"&&Yt!="appearanceStreamContent"&&Yt!="scope"&&Yt!="objId"&&Yt.substring(0,1)!="_"});for(var Pt in wt)if(Object.getOwnPropertyDescriptor(this,wt[Pt]).configurable===!1){var Qt=wt[Pt],ie=this[Qt];ie&&(Array.isArray(ie)?Et.push({key:Qt,value:Ku(ie,this.objId,this.scope)}):ie instanceof fr?(ie.scope=this.scope,Et.push({key:Qt,value:ie.objId+" 0 R"})):typeof ie!="function"&&Et.push({key:Qt,value:ie}))}return Et};var Wa=function(){fr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var Et,wt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return wt},set:function(Pt){wt=Pt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Pt){Et=Pt.trim()},get:function(){return Et||null}})};Ga(Wa,fr);var nl=function(){fr.call(this);var Et,wt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return wt.length>0?wt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return wt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Et){var Pt=function(Qt){return Qt};return this.scope&&(Pt=this.scope.internal.getEncryptor(this.objId)),"("+yl(Pt(Et))+")"}},set:function(Pt){Et=Pt}})};Ga(nl,fr);var bl=function Et(){fr.call(this);var wt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return wt},set:function(Rn){if(isNaN(Rn))throw new Error('Invalid value "'+Rn+'" for attribute F supplied.');wt=Rn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ls(wt,3)},set:function(Rn){Rn?this.F=bs(wt,3):this.F=Hs(wt,3)}});var Pt=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Pt},set:function(Rn){if(isNaN(Rn))throw new Error('Invalid value "'+Rn+'" for attribute Ff supplied.');Pt=Rn}});var Qt=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Qt.length!==0)return Qt},set:function(Rn){Qt=Rn!==void 0?Rn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Qt||isNaN(Qt[0])?0:Qt[0]},set:function(Rn){Qt[0]=Rn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Qt||isNaN(Qt[1])?0:Qt[1]},set:function(Rn){Qt[1]=Rn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Qt||isNaN(Qt[2])?0:Qt[2]},set:function(Rn){Qt[2]=Rn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Qt||isNaN(Qt[3])?0:Qt[3]},set:function(Rn){Qt[3]=Rn}});var ie="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ie},set:function(Rn){switch(Rn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ie=Rn;break;default:throw new Error('Invalid value "'+Rn+'" for attribute FT supplied.')}}});var Yt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Yt||Yt.length<1){if(this instanceof Pu)return;Yt="FieldObject"+Et.FieldNum++}var Rn=function(Ai){return Ai};return this.scope&&(Rn=this.scope.internal.getEncryptor(this.objId)),"("+yl(Rn(Yt))+")"},set:function(Rn){Yt=Rn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Yt},set:function(Rn){Yt=Rn}});var ge="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ge},set:function(Rn){ge=Rn}});var we="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Rn){we=Rn}});var Pe=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Pe},set:function(Rn){Pe=Rn}});var Xe=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Xe===void 0?50/vl:Xe},set:function(Rn){Xe=Rn}});var dn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return dn},set:function(Rn){dn=Rn}});var An="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!An||this instanceof Pu||this instanceof fu))return $l(An,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),An=Rn}});var Pn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Pn)return this instanceof $a?Pn:$l(Pn,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),Pn=this instanceof $a?Rn:Rn.substr(0,1)==="("?Dl(Rn.substr(1,Rn.length-2)):Dl(Rn)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof $a?Dl(Pn.substr(1,Pn.length-1)):Pn},set:function(Rn){Rn=Rn.toString(),Pn=this instanceof $a?"/"+Rn:Rn}});var ze=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ze)return ze},set:function(Rn){this.V=Rn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ze)return this instanceof $a?ze:$l(ze,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),ze=this instanceof $a?Rn:Rn.substr(0,1)==="("?Dl(Rn.substr(1,Rn.length-2)):Dl(Rn)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof $a?Dl(ze.substr(1,ze.length-1)):ze},set:function(Rn){Rn=Rn.toString(),ze=this instanceof $a?"/"+Rn:Rn}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var mi,ti=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ti},set:function(Rn){Rn=!!Rn,ti=Rn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(mi)return mi},set:function(Rn){mi=Rn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,1)},set:function(Rn){Rn?this.Ff=bs(this.Ff,1):this.Ff=Hs(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,2)},set:function(Rn){Rn?this.Ff=bs(this.Ff,2):this.Ff=Hs(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,3)},set:function(Rn){Rn?this.Ff=bs(this.Ff,3):this.Ff=Hs(this.Ff,3)}});var vi=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(vi!==null)return vi},set:function(Rn){if([0,1,2].indexOf(Rn)===-1)throw new Error('Invalid value "'+Rn+'" for attribute Q supplied.');vi=Rn}}),Object.defineProperty(this,"textAlign",{get:function(){var Rn;switch(vi){case 0:default:Rn="left";break;case 1:Rn="center";break;case 2:Rn="right"}return Rn},configurable:!0,enumerable:!0,set:function(Rn){switch(Rn){case"right":case 2:vi=2;break;case"center":case 1:vi=1;break;case"left":case 0:default:vi=0}}})};Ga(bl,fr);var au=function(){bl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Et=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(Pt){Et=Pt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(Pt){Et=Pt}});var wt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ku(wt,this.objId,this.scope)},set:function(Pt){var Qt,ie;ie=[],typeof(Qt=Pt)=="string"&&(ie=function(Yt,ge,we){we||(we=1);for(var Pe,Xe=[];Pe=ge.exec(Yt);)Xe.push(Pe[we]);return Xe}(Qt,/\((.*?)\)/g)),wt=ie}}),this.getOptions=function(){return wt},this.setOptions=function(Pt){wt=Pt,this.sort&&wt.sort()},this.addOption=function(Pt){Pt=(Pt=Pt||"").toString(),wt.push(Pt),this.sort&&wt.sort()},this.removeOption=function(Pt,Qt){for(Qt=Qt||!1,Pt=(Pt=Pt||"").toString();wt.indexOf(Pt)!==-1&&(wt.splice(wt.indexOf(Pt),1),Qt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,18)},set:function(Pt){Pt?this.Ff=bs(this.Ff,18):this.Ff=Hs(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,19)},set:function(Pt){this.combo===!0&&(Pt?this.Ff=bs(this.Ff,19):this.Ff=Hs(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,20)},set:function(Pt){Pt?(this.Ff=bs(this.Ff,20),wt.sort()):this.Ff=Hs(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,22)},set:function(Pt){Pt?this.Ff=bs(this.Ff,22):this.Ff=Hs(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,23)},set:function(Pt){Pt?this.Ff=bs(this.Ff,23):this.Ff=Hs(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,27)},set:function(Pt){Pt?this.Ff=bs(this.Ff,27):this.Ff=Hs(this.Ff,27)}}),this.hasAppearanceStream=!1};Ga(au,bl);var Xa=function(){au.call(this),this.fontName="helvetica",this.combo=!1};Ga(Xa,au);var Eo=function(){Xa.call(this),this.combo=!0};Ga(Eo,Xa);var Oa=function(){Eo.call(this),this.edit=!0};Ga(Oa,Eo);var $a=function(){bl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,15)},set:function(Pt){Pt?this.Ff=bs(this.Ff,15):this.Ff=Hs(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,16)},set:function(Pt){Pt?this.Ff=bs(this.Ff,16):this.Ff=Hs(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,17)},set:function(Pt){Pt?this.Ff=bs(this.Ff,17):this.Ff=Hs(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,26)},set:function(Pt){Pt?this.Ff=bs(this.Ff,26):this.Ff=Hs(this.Ff,26)}});var Et,wt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Pt=function(Yt){return Yt};if(this.scope&&(Pt=this.scope.internal.getEncryptor(this.objId)),Object.keys(wt).length!==0){var Qt,ie=[];for(Qt in ie.push("<<"),wt)ie.push("/"+Qt+" ("+yl(Pt(wt[Qt]))+")");return ie.push(">>"),ie.join(`
`)}},set:function(Pt){(0,Lt.Z)(Pt)==="object"&&(wt=Pt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return wt.CA||""},set:function(Pt){typeof Pt=="string"&&(wt.CA=Pt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(Pt){Et=Pt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Et.substr(1,Et.length-1)},set:function(Pt){Et="/"+Pt}})};Ga($a,bl);var lu=function(){$a.call(this),this.pushButton=!0};Ga(lu,$a);var Yl=function(){$a.call(this),this.radio=!0,this.pushButton=!1;var Et=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(wt){Et=wt!==void 0?wt:[]}})};Ga(Yl,$a);var Pu=function(){var Et,wt;bl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(ie){Et=ie}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return wt},set:function(ie){wt=ie}});var Pt,Qt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ie=function(we){return we};this.scope&&(ie=this.scope.internal.getEncryptor(this.objId));var Yt,ge=[];for(Yt in ge.push("<<"),Qt)ge.push("/"+Yt+" ("+yl(ie(Qt[Yt]))+")");return ge.push(">>"),ge.join(`
`)},set:function(ie){(0,Lt.Z)(ie)==="object"&&(Qt=ie)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Qt.CA||""},set:function(ie){typeof ie=="string"&&(Qt.CA=ie)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Pt},set:function(ie){Pt=ie}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Pt.substr(1,Pt.length-1)},set:function(ie){Pt="/"+ie}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=zo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ga(Pu,bl),Yl.prototype.setAppearance=function(Et){if(!("createAppearanceStream"in Et)||!("getCA"in Et))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var wt in this.Kids)if(this.Kids.hasOwnProperty(wt)){var Pt=this.Kids[wt];Pt.appearanceStreamContent=Et.createAppearanceStream(Pt.optionName),Pt.caption=Et.getCA()}},Yl.prototype.createOption=function(Et){var wt=new Pu;return wt.Parent=this,wt.optionName=Et,this.Kids.push(wt),Hd.call(this.scope,wt),wt};var bu=function(){$a.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=zo.CheckBox.createAppearanceStream()};Ga(bu,$a);var fu=function(){bl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,13)},set:function(wt){wt?this.Ff=bs(this.Ff,13):this.Ff=Hs(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,21)},set:function(wt){wt?this.Ff=bs(this.Ff,21):this.Ff=Hs(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,23)},set:function(wt){wt?this.Ff=bs(this.Ff,23):this.Ff=Hs(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,24)},set:function(wt){wt?this.Ff=bs(this.Ff,24):this.Ff=Hs(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,25)},set:function(wt){wt?this.Ff=bs(this.Ff,25):this.Ff=Hs(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,26)},set:function(wt){wt?this.Ff=bs(this.Ff,26):this.Ff=Hs(this.Ff,26)}});var Et=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(wt){Et=wt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(wt){Number.isInteger(wt)&&(Et=wt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ga(fu,bl);var nu=function(){fu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ls(this.Ff,14)},set:function(Et){Et?this.Ff=bs(this.Ff,14):this.Ff=Hs(this.Ff,14)}}),this.password=!0};Ga(nu,fu);var zo={CheckBox:{createAppearanceStream:function(){return{N:{On:zo.CheckBox.YesNormal},D:{On:zo.CheckBox.YesPushDown,Off:zo.CheckBox.OffPushDown}}},YesPushDown:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[],Qt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,ie=Et.scope.__private__.encodeColorString(Et.color),Yt=Qs(Et,Et.caption);return Pt.push("0.749023 g"),Pt.push("0 0 "+Bs(zo.internal.getWidth(Et))+" "+Bs(zo.internal.getHeight(Et))+" re"),Pt.push("f"),Pt.push("BMC"),Pt.push("q"),Pt.push("0 0 1 rg"),Pt.push("/"+Qt+" "+Bs(Yt.fontSize)+" Tf "+ie),Pt.push("BT"),Pt.push(Yt.text),Pt.push("ET"),Pt.push("Q"),Pt.push("EMC"),wt.stream=Pt.join(`
`),wt},YesNormal:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Qt=Et.scope.__private__.encodeColorString(Et.color),ie=[],Yt=zo.internal.getHeight(Et),ge=zo.internal.getWidth(Et),we=Qs(Et,Et.caption);return ie.push("1 g"),ie.push("0 0 "+Bs(ge)+" "+Bs(Yt)+" re"),ie.push("f"),ie.push("q"),ie.push("0 0 1 rg"),ie.push("0 0 "+Bs(ge-1)+" "+Bs(Yt-1)+" re"),ie.push("W"),ie.push("n"),ie.push("0 g"),ie.push("BT"),ie.push("/"+Pt+" "+Bs(we.fontSize)+" Tf "+Qt),ie.push(we.text),ie.push("ET"),ie.push("Q"),wt.stream=ie.join(`
`),wt},OffPushDown:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[];return Pt.push("0.749023 g"),Pt.push("0 0 "+Bs(zo.internal.getWidth(Et))+" "+Bs(zo.internal.getHeight(Et))+" re"),Pt.push("f"),wt.stream=Pt.join(`
`),wt}},RadioButton:{Circle:{createAppearanceStream:function(Et){var wt={D:{Off:zo.RadioButton.Circle.OffPushDown},N:{}};return wt.N[Et]=zo.RadioButton.Circle.YesNormal,wt.D[Et]=zo.RadioButton.Circle.YesPushDown,wt},getCA:function(){return"l"},YesNormal:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[],Qt=zo.internal.getWidth(Et)<=zo.internal.getHeight(Et)?zo.internal.getWidth(Et)/4:zo.internal.getHeight(Et)/4;Qt=Number((.9*Qt).toFixed(5));var ie=zo.internal.Bezier_C,Yt=Number((Qt*ie).toFixed(5));return Pt.push("q"),Pt.push("1 0 0 1 "+ai(zo.internal.getWidth(Et)/2)+" "+ai(zo.internal.getHeight(Et)/2)+" cm"),Pt.push(Qt+" 0 m"),Pt.push(Qt+" "+Yt+" "+Yt+" "+Qt+" 0 "+Qt+" c"),Pt.push("-"+Yt+" "+Qt+" -"+Qt+" "+Yt+" -"+Qt+" 0 c"),Pt.push("-"+Qt+" -"+Yt+" -"+Yt+" -"+Qt+" 0 -"+Qt+" c"),Pt.push(Yt+" -"+Qt+" "+Qt+" -"+Yt+" "+Qt+" 0 c"),Pt.push("f"),Pt.push("Q"),wt.stream=Pt.join(`
`),wt},YesPushDown:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[],Qt=zo.internal.getWidth(Et)<=zo.internal.getHeight(Et)?zo.internal.getWidth(Et)/4:zo.internal.getHeight(Et)/4;Qt=Number((.9*Qt).toFixed(5));var ie=Number((2*Qt).toFixed(5)),Yt=Number((ie*zo.internal.Bezier_C).toFixed(5)),ge=Number((Qt*zo.internal.Bezier_C).toFixed(5));return Pt.push("0.749023 g"),Pt.push("q"),Pt.push("1 0 0 1 "+ai(zo.internal.getWidth(Et)/2)+" "+ai(zo.internal.getHeight(Et)/2)+" cm"),Pt.push(ie+" 0 m"),Pt.push(ie+" "+Yt+" "+Yt+" "+ie+" 0 "+ie+" c"),Pt.push("-"+Yt+" "+ie+" -"+ie+" "+Yt+" -"+ie+" 0 c"),Pt.push("-"+ie+" -"+Yt+" -"+Yt+" -"+ie+" 0 -"+ie+" c"),Pt.push(Yt+" -"+ie+" "+ie+" -"+Yt+" "+ie+" 0 c"),Pt.push("f"),Pt.push("Q"),Pt.push("0 g"),Pt.push("q"),Pt.push("1 0 0 1 "+ai(zo.internal.getWidth(Et)/2)+" "+ai(zo.internal.getHeight(Et)/2)+" cm"),Pt.push(Qt+" 0 m"),Pt.push(Qt+" "+ge+" "+ge+" "+Qt+" 0 "+Qt+" c"),Pt.push("-"+ge+" "+Qt+" -"+Qt+" "+ge+" -"+Qt+" 0 c"),Pt.push("-"+Qt+" -"+ge+" -"+ge+" -"+Qt+" 0 -"+Qt+" c"),Pt.push(ge+" -"+Qt+" "+Qt+" -"+ge+" "+Qt+" 0 c"),Pt.push("f"),Pt.push("Q"),wt.stream=Pt.join(`
`),wt},OffPushDown:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[],Qt=zo.internal.getWidth(Et)<=zo.internal.getHeight(Et)?zo.internal.getWidth(Et)/4:zo.internal.getHeight(Et)/4;Qt=Number((.9*Qt).toFixed(5));var ie=Number((2*Qt).toFixed(5)),Yt=Number((ie*zo.internal.Bezier_C).toFixed(5));return Pt.push("0.749023 g"),Pt.push("q"),Pt.push("1 0 0 1 "+ai(zo.internal.getWidth(Et)/2)+" "+ai(zo.internal.getHeight(Et)/2)+" cm"),Pt.push(ie+" 0 m"),Pt.push(ie+" "+Yt+" "+Yt+" "+ie+" 0 "+ie+" c"),Pt.push("-"+Yt+" "+ie+" -"+ie+" "+Yt+" -"+ie+" 0 c"),Pt.push("-"+ie+" -"+Yt+" -"+Yt+" -"+ie+" 0 -"+ie+" c"),Pt.push(Yt+" -"+ie+" "+ie+" -"+Yt+" "+ie+" 0 c"),Pt.push("f"),Pt.push("Q"),wt.stream=Pt.join(`
`),wt}},Cross:{createAppearanceStream:function(Et){var wt={D:{Off:zo.RadioButton.Cross.OffPushDown},N:{}};return wt.N[Et]=zo.RadioButton.Cross.YesNormal,wt.D[Et]=zo.RadioButton.Cross.YesPushDown,wt},getCA:function(){return"8"},YesNormal:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[],Qt=zo.internal.calculateCross(Et);return Pt.push("q"),Pt.push("1 1 "+Bs(zo.internal.getWidth(Et)-2)+" "+Bs(zo.internal.getHeight(Et)-2)+" re"),Pt.push("W"),Pt.push("n"),Pt.push(Bs(Qt.x1.x)+" "+Bs(Qt.x1.y)+" m"),Pt.push(Bs(Qt.x2.x)+" "+Bs(Qt.x2.y)+" l"),Pt.push(Bs(Qt.x4.x)+" "+Bs(Qt.x4.y)+" m"),Pt.push(Bs(Qt.x3.x)+" "+Bs(Qt.x3.y)+" l"),Pt.push("s"),Pt.push("Q"),wt.stream=Pt.join(`
`),wt},YesPushDown:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=zo.internal.calculateCross(Et),Qt=[];return Qt.push("0.749023 g"),Qt.push("0 0 "+Bs(zo.internal.getWidth(Et))+" "+Bs(zo.internal.getHeight(Et))+" re"),Qt.push("f"),Qt.push("q"),Qt.push("1 1 "+Bs(zo.internal.getWidth(Et)-2)+" "+Bs(zo.internal.getHeight(Et)-2)+" re"),Qt.push("W"),Qt.push("n"),Qt.push(Bs(Pt.x1.x)+" "+Bs(Pt.x1.y)+" m"),Qt.push(Bs(Pt.x2.x)+" "+Bs(Pt.x2.y)+" l"),Qt.push(Bs(Pt.x4.x)+" "+Bs(Pt.x4.y)+" m"),Qt.push(Bs(Pt.x3.x)+" "+Bs(Pt.x3.y)+" l"),Qt.push("s"),Qt.push("Q"),wt.stream=Qt.join(`
`),wt},OffPushDown:function(Et){var wt=ju(Et);wt.scope=Et.scope;var Pt=[];return Pt.push("0.749023 g"),Pt.push("0 0 "+Bs(zo.internal.getWidth(Et))+" "+Bs(zo.internal.getHeight(Et))+" re"),Pt.push("f"),wt.stream=Pt.join(`
`),wt}}},createDefaultAppearanceStream:function(Et){var wt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Pt=Et.scope.__private__.encodeColorString(Et.color);return"/"+wt+" "+Et.fontSize+" Tf "+Pt}};zo.internal={Bezier_C:.551915024494,calculateCross:function(Et){var wt=zo.internal.getWidth(Et),Pt=zo.internal.getHeight(Et),Qt=Math.min(wt,Pt);return{x1:{x:(wt-Qt)/2,y:(Pt-Qt)/2+Qt},x2:{x:(wt-Qt)/2+Qt,y:(Pt-Qt)/2},x3:{x:(wt-Qt)/2,y:(Pt-Qt)/2},x4:{x:(wt-Qt)/2+Qt,y:(Pt-Qt)/2+Qt}}}},zo.internal.getWidth=function(Et){var wt=0;return(0,Lt.Z)(Et)==="object"&&(wt=mh(Et.Rect[2])),wt},zo.internal.getHeight=function(Et){var wt=0;return(0,Lt.Z)(Et)==="object"&&(wt=mh(Et.Rect[3])),wt};var Hd=Zs.addField=function(Et){if(Su(this,Et),!(Et instanceof bl))throw new Error("Invalid argument passed to jsPDF.addField.");var wt;return(wt=Et).scope.internal.acroformPlugin.printedOut&&(wt.scope.internal.acroformPlugin.printedOut=!1,wt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),wt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(wt),Et.page=Et.scope.internal.getCurrentPageInfo().pageNumber,this};Zs.AcroFormChoiceField=au,Zs.AcroFormListBox=Xa,Zs.AcroFormComboBox=Eo,Zs.AcroFormEditBox=Oa,Zs.AcroFormButton=$a,Zs.AcroFormPushButton=lu,Zs.AcroFormRadioButton=Yl,Zs.AcroFormCheckBox=bu,Zs.AcroFormTextField=fu,Zs.AcroFormPasswordField=nu,Zs.AcroFormAppearance=zo,Zs.AcroForm={ChoiceField:au,ListBox:Xa,ComboBox:Eo,EditBox:Oa,Button:$a,PushButton:lu,RadioButton:Yl,CheckBox:bu,TextField:fu,PasswordField:nu,Appearance:zo},Qo.AcroForm={ChoiceField:au,ListBox:Xa,ComboBox:Eo,EditBox:Oa,Button:$a,PushButton:lu,RadioButton:Yl,CheckBox:bu,TextField:fu,PasswordField:nu,Appearance:zo};var Eu=Qo.AcroForm;function yd(Et){return Et.reduce(function(wt,Pt,Qt){return wt[Pt]=Qt,wt},{})}(function(Et){Et.__addimage__={};var wt="UNKNOWN",Pt={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},Qt=Et.__addimage__.getImageFileTypeByImageData=function(Jn,oi){var pe,me,Ze,Ye,mn,en=wt;if((oi=oi||wt)==="RGBA"||Jn.data!==void 0&&Jn.data instanceof Uint8ClampedArray&&"height"in Jn&&"width"in Jn)return"RGBA";if(lo(Jn))for(mn in Pt)for(Ze=Pt[mn],pe=0;pe<Ze.length;pe+=1){for(Ye=!0,me=0;me<Ze[pe].length;me+=1)if(Ze[pe][me]!==void 0&&Ze[pe][me]!==Jn[me]){Ye=!1;break}if(Ye===!0){en=mn;break}}else for(mn in Pt)for(Ze=Pt[mn],pe=0;pe<Ze.length;pe+=1){for(Ye=!0,me=0;me<Ze[pe].length;me+=1)if(Ze[pe][me]!==void 0&&Ze[pe][me]!==Jn.charCodeAt(me)){Ye=!1;break}if(Ye===!0){en=mn;break}}return en===wt&&oi!==wt&&(en=oi),en},ie=function Jn(oi){for(var pe=this.internal.write,me=this.internal.putStream,Ze=(0,this.internal.getFilters)();Ze.indexOf("FlateEncode")!==-1;)Ze.splice(Ze.indexOf("FlateEncode"),1);oi.objectId=this.internal.newObject();var Ye=[];if(Ye.push({key:"Type",value:"/XObject"}),Ye.push({key:"Subtype",value:"/Image"}),Ye.push({key:"Width",value:oi.width}),Ye.push({key:"Height",value:oi.height}),oi.colorSpace===vi.INDEXED?Ye.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(oi.palette.length/3-1)+" "+("sMask"in oi&&oi.sMask!==void 0?oi.objectId+2:oi.objectId+1)+" 0 R]"}):(Ye.push({key:"ColorSpace",value:"/"+oi.colorSpace}),oi.colorSpace===vi.DEVICE_CMYK&&Ye.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ye.push({key:"BitsPerComponent",value:oi.bitsPerComponent}),"decodeParameters"in oi&&oi.decodeParameters!==void 0&&Ye.push({key:"DecodeParms",value:"<<"+oi.decodeParameters+">>"}),"transparency"in oi&&Array.isArray(oi.transparency)){for(var mn="",en=0,Tn=oi.transparency.length;en<Tn;en++)mn+=oi.transparency[en]+" "+oi.transparency[en]+" ";Ye.push({key:"Mask",value:"["+mn+"]"})}oi.sMask!==void 0&&Ye.push({key:"SMask",value:oi.objectId+1+" 0 R"});var Un=oi.filter!==void 0?["/"+oi.filter]:void 0;if(me({data:oi.data,additionalKeyValues:Ye,alreadyAppliedFilters:Un,objectId:oi.objectId}),pe("endobj"),"sMask"in oi&&oi.sMask!==void 0){var qn="/Predictor "+oi.predictor+" /Colors 1 /BitsPerComponent "+oi.bitsPerComponent+" /Columns "+oi.width,Qe={width:oi.width,height:oi.height,colorSpace:"DeviceGray",bitsPerComponent:oi.bitsPerComponent,decodeParameters:qn,data:oi.sMask};"filter"in oi&&(Qe.filter=oi.filter),Jn.call(this,Qe)}if(oi.colorSpace===vi.INDEXED){var un=this.internal.newObject();me({data:Oi(new Uint8Array(oi.palette)),objectId:un}),pe("endobj")}},Yt=function(){var Jn=this.internal.collections.addImage_images;for(var oi in Jn)ie.call(this,Jn[oi])},ge=function(){var Jn,oi=this.internal.collections.addImage_images,pe=this.internal.write;for(var me in oi)pe("/I"+(Jn=oi[me]).index,Jn.objectId,"0","R")},we=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Yt),this.internal.events.subscribe("putXobjectDict",ge))},Pe=function(){var Jn=this.internal.collections.addImage_images;return we.call(this),Jn},Xe=function(){return Object.keys(this.internal.collections.addImage_images).length},dn=function(Jn){return typeof Et["process"+Jn.toUpperCase()]=="function"},An=function(Jn){return(0,Lt.Z)(Jn)==="object"&&Jn.nodeType===1},Pn=function(Jn,oi){if(Jn.nodeName==="IMG"&&Jn.hasAttribute("src")){var pe=""+Jn.getAttribute("src");if(pe.indexOf("data:image/")===0)return fs(unescape(pe).split("base64,").pop());var me=Et.loadFile(pe,!0);if(me!==void 0)return me}if(Jn.nodeName==="CANVAS"){if(Jn.width===0||Jn.height===0)throw new Error("Given canvas must have data. Canvas width: "+Jn.width+", height: "+Jn.height);var Ze;switch(oi){case"PNG":Ze="image/png";break;case"WEBP":Ze="image/webp";break;case"JPEG":case"JPG":default:Ze="image/jpeg"}return fs(Jn.toDataURL(Ze,1).split("base64,").pop())}},ze=function(Jn){var oi=this.internal.collections.addImage_images;if(oi){for(var pe in oi)if(Jn===oi[pe].alias)return oi[pe]}},mi=function(Jn,oi,pe){return Jn||oi||(Jn=-96,oi=-96),Jn<0&&(Jn=-1*pe.width*72/Jn/this.internal.scaleFactor),oi<0&&(oi=-1*pe.height*72/oi/this.internal.scaleFactor),Jn===0&&(Jn=oi*pe.width/pe.height),oi===0&&(oi=Jn*pe.height/pe.width),[Jn,oi]},ti=function(Jn,oi,pe,me,Ze,Ye){var mn=mi.call(this,pe,me,Ze),en=this.internal.getCoordinateString,Tn=this.internal.getVerticalCoordinateString,Un=Pe.call(this);if(pe=mn[0],me=mn[1],Un[Ze.index]=Ze,Ye){Ye*=Math.PI/180;var qn=Math.cos(Ye),Qe=Math.sin(Ye),un=function(Qn){return Qn.toFixed(4)},pn=[un(qn),un(Qe),un(-1*Qe),un(qn),0,0,"cm"]}this.internal.write("q"),Ye?(this.internal.write([1,"0","0",1,en(Jn),Tn(oi+me),"cm"].join(" ")),this.internal.write(pn.join(" ")),this.internal.write([en(pe),"0","0",en(me),"0","0","cm"].join(" "))):this.internal.write([en(pe),"0","0",en(me),en(Jn),Tn(oi+me),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ze.index+" Do"),this.internal.write("Q")},vi=Et.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Et.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Rn=Et.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Ai=Et.__addimage__.sHashCode=function(Jn){var oi,pe,me=0;if(typeof Jn=="string")for(pe=Jn.length,oi=0;oi<pe;oi++)me=(me<<5)-me+Jn.charCodeAt(oi),me|=0;else if(lo(Jn))for(pe=Jn.byteLength/2,oi=0;oi<pe;oi++)me=(me<<5)-me+Jn[oi],me|=0;return me},Qi=Et.__addimage__.validateStringAsBase64=function(Jn){(Jn=Jn||"").toString().trim();var oi=!0;return Jn.length===0&&(oi=!1),Jn.length%4!=0&&(oi=!1),/^[A-Za-z0-9+/]+$/.test(Jn.substr(0,Jn.length-2))===!1&&(oi=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Jn.substr(-2))===!1&&(oi=!1),oi},rr=Et.__addimage__.extractImageFromDataUrl=function(Jn){var oi=(Jn=Jn||"").split("base64,"),pe=null;if(oi.length===2){var me=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(oi[0]);Array.isArray(me)&&(pe={mimeType:me[1],charset:me[2],data:oi[1]})}return pe},Fr=Et.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Et.__addimage__.isArrayBuffer=function(Jn){return Fr()&&Jn instanceof ArrayBuffer};var lo=Et.__addimage__.isArrayBufferView=function(Jn){return Fr()&&typeof Uint32Array!="undefined"&&(Jn instanceof Int8Array||Jn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Jn instanceof Uint8ClampedArray||Jn instanceof Int16Array||Jn instanceof Uint16Array||Jn instanceof Int32Array||Jn instanceof Uint32Array||Jn instanceof Float32Array||Jn instanceof Float64Array)},mr=Et.__addimage__.binaryStringToUint8Array=function(Jn){for(var oi=Jn.length,pe=new Uint8Array(oi),me=0;me<oi;me++)pe[me]=Jn.charCodeAt(me);return pe},Oi=Et.__addimage__.arrayBufferToBinaryString=function(Jn){for(var oi="",pe=lo(Jn)?Jn:new Uint8Array(Jn),me=0;me<pe.length;me+=8192)oi+=String.fromCharCode.apply(null,pe.subarray(me,me+8192));return oi};Et.addImage=function(){var Jn,oi,pe,me,Ze,Ye,mn,en,Tn;if(typeof arguments[1]=="number"?(oi=wt,pe=arguments[1],me=arguments[2],Ze=arguments[3],Ye=arguments[4],mn=arguments[5],en=arguments[6],Tn=arguments[7]):(oi=arguments[1],pe=arguments[2],me=arguments[3],Ze=arguments[4],Ye=arguments[5],mn=arguments[6],en=arguments[7],Tn=arguments[8]),(0,Lt.Z)(Jn=arguments[0])==="object"&&!An(Jn)&&"imageData"in Jn){var Un=Jn;Jn=Un.imageData,oi=Un.format||oi||wt,pe=Un.x||pe||0,me=Un.y||me||0,Ze=Un.w||Un.width||Ze,Ye=Un.h||Un.height||Ye,mn=Un.alias||mn,en=Un.compression||en,Tn=Un.rotation||Un.angle||Tn}var qn=this.internal.getFilters();if(en===void 0&&qn.indexOf("FlateEncode")!==-1&&(en="SLOW"),isNaN(pe)||isNaN(me))throw new Error("Invalid coordinates passed to jsPDF.addImage");we.call(this);var Qe=Cr.call(this,Jn,oi,mn,en);return ti.call(this,pe,me,Ze,Ye,Qe,Tn),this};var Cr=function(Jn,oi,pe,me){var Ze,Ye,mn;if(typeof Jn=="string"&&Qt(Jn)===wt){Jn=unescape(Jn);var en=Or(Jn,!1);(en!==""||(en=Et.loadFile(Jn,!0))!==void 0)&&(Jn=en)}if(An(Jn)&&(Jn=Pn(Jn,oi)),oi=Qt(Jn,oi),!dn(oi))throw new Error("addImage does not support files of type '"+oi+"', please ensure that a plugin for '"+oi+"' support is added.");if(((mn=pe)==null||mn.length===0)&&(pe=function(Tn){return typeof Tn=="string"||lo(Tn)?Ai(Tn):lo(Tn.data)?Ai(Tn.data):null}(Jn)),(Ze=ze.call(this,pe))||(Fr()&&(Jn instanceof Uint8Array||oi==="RGBA"||(Ye=Jn,Jn=mr(Jn))),Ze=this["process"+oi.toUpperCase()](Jn,Xe.call(this),pe,function(Tn){return Tn&&typeof Tn=="string"&&(Tn=Tn.toUpperCase()),Tn in Et.image_compression?Tn:Rn.NONE}(me),Ye)),!Ze)throw new Error("An unknown error occurred whilst processing the image.");return Ze},Or=Et.__addimage__.convertBase64ToBinaryString=function(Jn,oi){var pe;oi=typeof oi!="boolean"||oi;var me,Ze="";if(typeof Jn=="string"){me=(pe=rr(Jn))!==null?pe.data:Jn;try{Ze=fs(me)}catch(Ye){if(oi)throw Qi(me)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ye.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ze};Et.getImageProperties=function(Jn){var oi,pe,me="";if(An(Jn)&&(Jn=Pn(Jn)),typeof Jn=="string"&&Qt(Jn)===wt&&((me=Or(Jn,!1))===""&&(me=Et.loadFile(Jn)||""),Jn=me),pe=Qt(Jn),!dn(pe))throw new Error("addImage does not support files of type '"+pe+"', please ensure that a plugin for '"+pe+"' support is added.");if(!Fr()||Jn instanceof Uint8Array||(Jn=mr(Jn)),!(oi=this["process"+pe.toUpperCase()](Jn)))throw new Error("An unknown error occurred whilst processing the image");return oi.fileType=pe,oi}})(Qo.API),function(Et){var wt=function(Pt){if(Pt!==void 0&&Pt!="")return!0};Qo.API.events.push(["addPage",function(Pt){this.internal.getPageInfo(Pt.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(Pt){for(var Qt,ie,Yt,ge=this.internal.getCoordinateString,we=this.internal.getVerticalCoordinateString,Pe=this.internal.getPageInfoByObjId(Pt.objId),Xe=Pt.pageContext.annotations,dn=!1,An=0;An<Xe.length&&!dn;An++)switch((Qt=Xe[An]).type){case"link":(wt(Qt.options.url)||wt(Qt.options.pageNumber))&&(dn=!0);break;case"reference":case"text":case"freetext":dn=!0}if(dn!=0){this.internal.write("/Annots [");for(var Pn=0;Pn<Xe.length;Pn++){Qt=Xe[Pn];var ze=this.internal.pdfEscape,mi=this.internal.getEncryptor(Pt.objId);switch(Qt.type){case"reference":this.internal.write(" "+Qt.object.objId+" 0 R ");break;case"text":var ti=this.internal.newAdditionalObject(),vi=this.internal.newAdditionalObject(),Rn=this.internal.getEncryptor(ti.objId),Ai=Qt.title||"Note";Yt="<</Type /Annot /Subtype /Text "+(ie="/Rect ["+ge(Qt.bounds.x)+" "+we(Qt.bounds.y+Qt.bounds.h)+" "+ge(Qt.bounds.x+Qt.bounds.w)+" "+we(Qt.bounds.y)+"] ")+"/Contents ("+ze(Rn(Qt.contents))+")",Yt+=" /Popup "+vi.objId+" 0 R",Yt+=" /P "+Pe.objId+" 0 R",Yt+=" /T ("+ze(Rn(Ai))+") >>",ti.content=Yt;var Qi=ti.objId+" 0 R";Yt="<</Type /Annot /Subtype /Popup "+(ie="/Rect ["+ge(Qt.bounds.x+30)+" "+we(Qt.bounds.y+Qt.bounds.h)+" "+ge(Qt.bounds.x+Qt.bounds.w+30)+" "+we(Qt.bounds.y)+"] ")+" /Parent "+Qi,Qt.open&&(Yt+=" /Open true"),Yt+=" >>",vi.content=Yt,this.internal.write(ti.objId,"0 R",vi.objId,"0 R");break;case"freetext":ie="/Rect ["+ge(Qt.bounds.x)+" "+we(Qt.bounds.y)+" "+ge(Qt.bounds.x+Qt.bounds.w)+" "+we(Qt.bounds.y+Qt.bounds.h)+"] ";var rr=Qt.color||"#000000";Yt="<</Type /Annot /Subtype /FreeText "+ie+"/Contents ("+ze(mi(Qt.contents))+")",Yt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+rr+")",Yt+=" /Border [0 0 0]",Yt+=" >>",this.internal.write(Yt);break;case"link":if(Qt.options.name){var Fr=this.annotations._nameMap[Qt.options.name];Qt.options.pageNumber=Fr.page,Qt.options.top=Fr.y}else Qt.options.top||(Qt.options.top=0);if(ie="/Rect ["+Qt.finalBounds.x+" "+Qt.finalBounds.y+" "+Qt.finalBounds.w+" "+Qt.finalBounds.h+"] ",Yt="",Qt.options.url)Yt="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /A <</S /URI /URI ("+ze(mi(Qt.options.url))+") >>";else if(Qt.options.pageNumber)switch(Yt="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Qt.options.pageNumber).objId+" 0 R",Qt.options.magFactor=Qt.options.magFactor||"XYZ",Qt.options.magFactor){case"Fit":Yt+=" /Fit]";break;case"FitH":Yt+=" /FitH "+Qt.options.top+"]";break;case"FitV":Qt.options.left=Qt.options.left||0,Yt+=" /FitV "+Qt.options.left+"]";break;case"XYZ":default:var lo=we(Qt.options.top);Qt.options.left=Qt.options.left||0,Qt.options.zoom===void 0&&(Qt.options.zoom=0),Yt+=" /XYZ "+Qt.options.left+" "+lo+" "+Qt.options.zoom+"]"}Yt!=""&&(Yt+=" >>",this.internal.write(Yt))}}this.internal.write("]")}}]),Et.createAnnotation=function(Pt){var Qt=this.internal.getCurrentPageInfo();switch(Pt.type){case"link":this.link(Pt.bounds.x,Pt.bounds.y,Pt.bounds.w,Pt.bounds.h,Pt);break;case"text":case"freetext":Qt.pageContext.annotations.push(Pt)}},Et.link=function(Pt,Qt,ie,Yt,ge){var we=this.internal.getCurrentPageInfo(),Pe=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString;we.pageContext.annotations.push({finalBounds:{x:Pe(Pt),y:Xe(Qt),w:Pe(Pt+ie),h:Xe(Qt+Yt)},options:ge,type:"link"})},Et.textWithLink=function(Pt,Qt,ie,Yt){var ge,we,Pe=this.getTextWidth(Pt),Xe=this.internal.getLineHeight()/this.internal.scaleFactor;if(Yt.maxWidth!==void 0){we=Yt.maxWidth;var dn=this.splitTextToSize(Pt,we).length;ge=Math.ceil(Xe*dn)}else we=Pe,ge=Xe;return this.text(Pt,Qt,ie,Yt),ie+=.2*Xe,Yt.align==="center"&&(Qt-=Pe/2),Yt.align==="right"&&(Qt-=Pe),this.link(Qt,ie-Xe,we,ge,Yt),Pe},Et.getTextWidth=function(Pt){var Qt=this.internal.getFontSize();return this.getStringUnitWidth(Pt)*Qt/this.internal.scaleFactor}}(Qo.API),function(Et){var wt={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},Pt={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},Qt={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ie=[1570,1571,1573,1575];Et.__arabicParser__={};var Yt=Et.__arabicParser__.isInArabicSubstitutionA=function(ti){return wt[ti.charCodeAt(0)]!==void 0},ge=Et.__arabicParser__.isArabicLetter=function(ti){return typeof ti=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ti)},we=Et.__arabicParser__.isArabicEndLetter=function(ti){return ge(ti)&&Yt(ti)&&wt[ti.charCodeAt(0)].length<=2},Pe=Et.__arabicParser__.isArabicAlfLetter=function(ti){return ge(ti)&&ie.indexOf(ti.charCodeAt(0))>=0};Et.__arabicParser__.arabicLetterHasIsolatedForm=function(ti){return ge(ti)&&Yt(ti)&&wt[ti.charCodeAt(0)].length>=1};var Xe=Et.__arabicParser__.arabicLetterHasFinalForm=function(ti){return ge(ti)&&Yt(ti)&&wt[ti.charCodeAt(0)].length>=2};Et.__arabicParser__.arabicLetterHasInitialForm=function(ti){return ge(ti)&&Yt(ti)&&wt[ti.charCodeAt(0)].length>=3};var dn=Et.__arabicParser__.arabicLetterHasMedialForm=function(ti){return ge(ti)&&Yt(ti)&&wt[ti.charCodeAt(0)].length==4},An=Et.__arabicParser__.resolveLigatures=function(ti){var vi=0,Rn=Pt,Ai="",Qi=0;for(vi=0;vi<ti.length;vi+=1)Rn[ti.charCodeAt(vi)]!==void 0?(Qi++,typeof(Rn=Rn[ti.charCodeAt(vi)])=="number"&&(Ai+=String.fromCharCode(Rn),Rn=Pt,Qi=0),vi===ti.length-1&&(Rn=Pt,Ai+=ti.charAt(vi-(Qi-1)),vi-=Qi-1,Qi=0)):(Rn=Pt,Ai+=ti.charAt(vi-Qi),vi-=Qi,Qi=0);return Ai};Et.__arabicParser__.isArabicDiacritic=function(ti){return ti!==void 0&&Qt[ti.charCodeAt(0)]!==void 0};var Pn=Et.__arabicParser__.getCorrectForm=function(ti,vi,Rn){return ge(ti)?Yt(ti)===!1?-1:!Xe(ti)||!ge(vi)&&!ge(Rn)||!ge(Rn)&&we(vi)||we(ti)&&!ge(vi)||we(ti)&&Pe(vi)||we(ti)&&we(vi)?0:dn(ti)&&ge(vi)&&!we(vi)&&ge(Rn)&&Xe(Rn)?3:we(ti)||!ge(Rn)?1:2:-1},ze=function(ti){var vi=0,Rn=0,Ai=0,Qi="",rr="",Fr="",lo=(ti=ti||"").split("\\s+"),mr=[];for(vi=0;vi<lo.length;vi+=1){for(mr.push(""),Rn=0;Rn<lo[vi].length;Rn+=1)Qi=lo[vi][Rn],rr=lo[vi][Rn-1],Fr=lo[vi][Rn+1],ge(Qi)?(Ai=Pn(Qi,rr,Fr),mr[vi]+=Ai!==-1?String.fromCharCode(wt[Qi.charCodeAt(0)][Ai]):Qi):mr[vi]+=Qi;mr[vi]=An(mr[vi])}return mr.join(" ")},mi=Et.__arabicParser__.processArabic=Et.processArabic=function(){var ti,vi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Rn=[];if(Array.isArray(vi)){var Ai=0;for(Rn=[],Ai=0;Ai<vi.length;Ai+=1)Array.isArray(vi[Ai])?Rn.push([ze(vi[Ai][0]),vi[Ai][1],vi[Ai][2]]):Rn.push([ze(vi[Ai])]);ti=Rn}else ti=ze(vi);return typeof arguments[0]=="string"?ti:(arguments[0].text=ti,arguments[0])};Et.events.push(["preProcessText",mi])}(Qo.API),Qo.API.autoPrint=function(Et){var wt;switch((Et=Et||{}).variant=Et.variant||"non-conform",Et.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){wt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+wt+" 0 R")})}return this},function(Et){var wt=function(){var Pt=void 0;Object.defineProperty(this,"pdf",{get:function(){return Pt},set:function(we){Pt=we}});var Qt=150;Object.defineProperty(this,"width",{get:function(){return Qt},set:function(we){Qt=isNaN(we)||Number.isInteger(we)===!1||we<0?150:we,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Qt+1)}});var ie=300;Object.defineProperty(this,"height",{get:function(){return ie},set:function(we){ie=isNaN(we)||Number.isInteger(we)===!1||we<0?300:we,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ie+1)}});var Yt=[];Object.defineProperty(this,"childNodes",{get:function(){return Yt},set:function(we){Yt=we}});var ge={};Object.defineProperty(this,"style",{get:function(){return ge},set:function(we){ge=we}}),Object.defineProperty(this,"parentNode",{})};wt.prototype.getContext=function(Pt,Qt){var ie;if((Pt=Pt||"2d")!=="2d")return null;for(ie in Qt)this.pdf.context2d.hasOwnProperty(ie)&&(this.pdf.context2d[ie]=Qt[ie]);return this.pdf.context2d._canvas=this,this.pdf.context2d},wt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Et.events.push(["initialized",function(){this.canvas=new wt,this.canvas.pdf=this}])}(Qo.API),function(Et){var wt={left:0,top:0,bottom:0,right:0},Pt=!1,Qt=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},wt),this.internal.__cell__.margins.width=this.getPageWidth(),ie.call(this))},ie=function(){this.internal.__cell__.lastCell=new Yt,this.internal.__cell__.pages=1},Yt=function(){var Pe=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Pe},set:function(ti){Pe=ti}});var Xe=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Xe},set:function(ti){Xe=ti}});var dn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return dn},set:function(ti){dn=ti}});var An=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return An},set:function(ti){An=ti}});var Pn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Pn},set:function(ti){Pn=ti}});var ze=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ze},set:function(ti){ze=ti}});var mi=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return mi},set:function(ti){mi=ti}}),this};Yt.prototype.clone=function(){return new Yt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Yt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Et.setHeaderFunction=function(Pe){return Qt.call(this),this.internal.__cell__.headerFunction=typeof Pe=="function"?Pe:void 0,this},Et.getTextDimensions=function(Pe,Xe){Qt.call(this);var dn=(Xe=Xe||{}).fontSize||this.getFontSize(),An=Xe.font||this.getFont(),Pn=Xe.scaleFactor||this.internal.scaleFactor,ze=0,mi=0,ti=0,vi=this;if(!Array.isArray(Pe)&&typeof Pe!="string"){if(typeof Pe!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Pe=String(Pe)}var Rn=Xe.maxWidth;Rn>0?typeof Pe=="string"?Pe=this.splitTextToSize(Pe,Rn):Object.prototype.toString.call(Pe)==="[object Array]"&&(Pe=Pe.reduce(function(Qi,rr){return Qi.concat(vi.splitTextToSize(rr,Rn))},[])):Pe=Array.isArray(Pe)?Pe:[Pe];for(var Ai=0;Ai<Pe.length;Ai++)ze<(ti=this.getStringUnitWidth(Pe[Ai],{font:An})*dn)&&(ze=ti);return ze!==0&&(mi=Pe.length),{w:ze/=Pn,h:Math.max((mi*dn*this.getLineHeightFactor()-dn*(this.getLineHeightFactor()-1))/Pn,0)}},Et.cellAddPage=function(){Qt.call(this),this.addPage();var Pe=this.internal.__cell__.margins||wt;return this.internal.__cell__.lastCell=new Yt(Pe.left,Pe.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=Et.cell=function(){var Pe;Pe=arguments[0]instanceof Yt?arguments[0]:new Yt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Qt.call(this);var Xe=this.internal.__cell__.lastCell,dn=this.internal.__cell__.padding,An=this.internal.__cell__.margins||wt,Pn=this.internal.__cell__.tableHeaderRow,ze=this.internal.__cell__.printHeaders;return Xe.lineNumber!==void 0&&(Xe.lineNumber===Pe.lineNumber?(Pe.x=(Xe.x||0)+(Xe.width||0),Pe.y=Xe.y||0):Xe.y+Xe.height+Pe.height+An.bottom>this.getPageHeight()?(this.cellAddPage(),Pe.y=An.top,ze&&Pn&&(this.printHeaderRow(Pe.lineNumber,!0),Pe.y+=Pn[0].height)):Pe.y=Xe.y+Xe.height||Pe.y),Pe.text[0]!==void 0&&(this.rect(Pe.x,Pe.y,Pe.width,Pe.height,Pt===!0?"FD":void 0),Pe.align==="right"?this.text(Pe.text,Pe.x+Pe.width-dn,Pe.y+dn,{align:"right",baseline:"top"}):Pe.align==="center"?this.text(Pe.text,Pe.x+Pe.width/2,Pe.y+dn,{align:"center",baseline:"top",maxWidth:Pe.width-dn-dn}):this.text(Pe.text,Pe.x+dn,Pe.y+dn,{align:"left",baseline:"top",maxWidth:Pe.width-dn-dn})),this.internal.__cell__.lastCell=Pe,this};Et.table=function(Pe,Xe,dn,An,Pn){if(Qt.call(this),!dn)throw new Error("No data for PDF table.");var ze,mi,ti,vi,Rn=[],Ai=[],Qi=[],rr={},Fr={},lo=[],mr=[],Oi=(Pn=Pn||{}).autoSize||!1,Cr=Pn.printHeaders!==!1,Or=Pn.css&&Pn.css["font-size"]!==void 0?16*Pn.css["font-size"]:Pn.fontSize||12,Jn=Pn.margins||Object.assign({width:this.getPageWidth()},wt),oi=typeof Pn.padding=="number"?Pn.padding:3,pe=Pn.headerBackgroundColor||"#c8c8c8",me=Pn.headerTextColor||"#000";if(ie.call(this),this.internal.__cell__.printHeaders=Cr,this.internal.__cell__.margins=Jn,this.internal.__cell__.table_font_size=Or,this.internal.__cell__.padding=oi,this.internal.__cell__.headerBackgroundColor=pe,this.internal.__cell__.headerTextColor=me,this.setFontSize(Or),An==null)Ai=Rn=Object.keys(dn[0]),Qi=Rn.map(function(){return"left"});else if(Array.isArray(An)&&(0,Lt.Z)(An[0])==="object")for(Rn=An.map(function(Un){return Un.name}),Ai=An.map(function(Un){return Un.prompt||Un.name||""}),Qi=An.map(function(Un){return Un.align||"left"}),ze=0;ze<An.length;ze+=1)Fr[An[ze].name]=An[ze].width*(19.049976/25.4);else Array.isArray(An)&&typeof An[0]=="string"&&(Ai=Rn=An,Qi=Rn.map(function(){return"left"}));if(Oi||Array.isArray(An)&&typeof An[0]=="string")for(ze=0;ze<Rn.length;ze+=1){for(rr[vi=Rn[ze]]=dn.map(function(Un){return Un[vi]}),this.setFont(void 0,"bold"),lo.push(this.getTextDimensions(Ai[ze],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),mi=rr[vi],this.setFont(void 0,"normal"),ti=0;ti<mi.length;ti+=1)lo.push(this.getTextDimensions(mi[ti],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Fr[vi]=Math.max.apply(null,lo)+oi+oi,lo=[]}if(Cr){var Ze={};for(ze=0;ze<Rn.length;ze+=1)Ze[Rn[ze]]={},Ze[Rn[ze]].text=Ai[ze],Ze[Rn[ze]].align=Qi[ze];var Ye=we.call(this,Ze,Fr);mr=Rn.map(function(Un){return new Yt(Pe,Xe,Fr[Un],Ye,Ze[Un].text,void 0,Ze[Un].align)}),this.setTableHeaderRow(mr),this.printHeaderRow(1,!1)}var mn=An.reduce(function(Un,qn){return Un[qn.name]=qn.align,Un},{});for(ze=0;ze<dn.length;ze+=1){"rowStart"in Pn&&Pn.rowStart instanceof Function&&Pn.rowStart({row:ze,data:dn[ze]},this);var en=we.call(this,dn[ze],Fr);for(ti=0;ti<Rn.length;ti+=1){var Tn=dn[ze][Rn[ti]];"cellStart"in Pn&&Pn.cellStart instanceof Function&&Pn.cellStart({row:ze,col:ti,data:Tn},this),ge.call(this,new Yt(Pe,Xe,Fr[Rn[ti]],en,Tn,ze+2,mn[Rn[ti]]))}}return this.internal.__cell__.table_x=Pe,this.internal.__cell__.table_y=Xe,this};var we=function(Pe,Xe){var dn=this.internal.__cell__.padding,An=this.internal.__cell__.table_font_size,Pn=this.internal.scaleFactor;return Object.keys(Pe).map(function(ze){var mi=Pe[ze];return this.splitTextToSize(mi.hasOwnProperty("text")?mi.text:mi,Xe[ze]-dn-dn)},this).map(function(ze){return this.getLineHeightFactor()*ze.length*An/Pn+dn+dn},this).reduce(function(ze,mi){return Math.max(ze,mi)},0)};Et.setTableHeaderRow=function(Pe){Qt.call(this),this.internal.__cell__.tableHeaderRow=Pe},Et.printHeaderRow=function(Pe,Xe){if(Qt.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var dn;if(Pt=!0,typeof this.internal.__cell__.headerFunction=="function"){var An=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Yt(An[0],An[1],An[2],An[3],void 0,-1)}this.setFont(void 0,"bold");for(var Pn=[],ze=0;ze<this.internal.__cell__.tableHeaderRow.length;ze+=1){dn=this.internal.__cell__.tableHeaderRow[ze].clone(),Xe&&(dn.y=this.internal.__cell__.margins.top||0,Pn.push(dn)),dn.lineNumber=Pe;var mi=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,dn),this.setTextColor(mi)}Pn.length>0&&this.setTableHeaderRow(Pn),this.setFont(void 0,"normal"),Pt=!1}}(Qo.API);var kh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},nc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],il=yd(nc),Ch=[100,200,300,400,500,600,700,800,900],Qd=yd(Ch);function Oc(Et){var wt=Et.family.replace(/"|'/g,"").toLowerCase(),Pt=function(Yt){return kh[Yt=Yt||"normal"]?Yt:"normal"}(Et.style),Qt=function(Yt){if(!Yt)return 400;if(typeof Yt=="number")return Yt>=100&&Yt<=900&&Yt%100==0?Yt:400;if(/^\d00$/.test(Yt))return parseInt(Yt);switch(Yt){case"bold":return 700;case"normal":default:return 400}}(Et.weight),ie=function(Yt){return typeof il[Yt=Yt||"normal"]=="number"?Yt:"normal"}(Et.stretch);return{family:wt,style:Pt,weight:Qt,stretch:ie,src:Et.src||[],ref:Et.ref||{name:wt,style:[ie,Pt,Qt].join(" ")}}}function Dc(Et,wt,Pt,Qt){var ie;for(ie=Pt;ie>=0&&ie<wt.length;ie+=Qt)if(Et[wt[ie]])return Et[wt[ie]];for(ie=Pt;ie>=0&&ie<wt.length;ie-=Qt)if(Et[wt[ie]])return Et[wt[ie]]}var Es={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ma={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Uu(Et){return[Et.stretch,Et.style,Et.weight,Et.family].join(" ")}function Ya(Et,wt,Pt){for(var Qt=(Pt=Pt||{}).defaultFontFamily||"times",ie=Object.assign({},Es,Pt.genericFontFamilies||{}),Yt=null,ge=null,we=0;we<wt.length;++we)if(ie[(Yt=Oc(wt[we])).family]&&(Yt.family=ie[Yt.family]),Et.hasOwnProperty(Yt.family)){ge=Et[Yt.family];break}if(!(ge=ge||Et[Qt]))throw new Error("Could not find a font-family for the rule '"+Uu(Yt)+"' and default family '"+Qt+"'.");if(ge=function(Pe,Xe){if(Xe[Pe])return Xe[Pe];var dn=il[Pe],An=dn<=il.normal?-1:1,Pn=Dc(Xe,nc,dn,An);if(!Pn)throw new Error("Could not find a matching font-stretch value for "+Pe);return Pn}(Yt.stretch,ge),ge=function(Pe,Xe){if(Xe[Pe])return Xe[Pe];for(var dn=kh[Pe],An=0;An<dn.length;++An)if(Xe[dn[An]])return Xe[dn[An]];throw new Error("Could not find a matching font-style for "+Pe)}(Yt.style,ge),!(ge=function(Pe,Xe){if(Xe[Pe])return Xe[Pe];if(Pe===400&&Xe[500])return Xe[500];if(Pe===500&&Xe[400])return Xe[400];var dn=Qd[Pe],An=Dc(Xe,Ch,dn,Pe<400?-1:1);if(!An)throw new Error("Could not find a matching font-weight for value "+Pe);return An}(Yt.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+Uu(Yt)+"'.");return ge}function rl(Et){return Et.trimLeft()}function Ha(Et,wt){for(var Pt=0;Pt<Et.length;){if(Et.charAt(Pt)===wt)return[Et.substring(0,Pt),Et.substring(Pt+1)];Pt+=1}return null}function da(Et){var wt=Et.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return wt===null?null:[wt[0],Et.substring(wt[0].length)]}var Ja,jl,fc,dh=["times"];(function(Et){var wt,Pt,Qt,ie,Yt,ge,we,Pe,Xe,dn=function(Qe){return Qe=Qe||{},this.isStrokeTransparent=Qe.isStrokeTransparent||!1,this.strokeOpacity=Qe.strokeOpacity||1,this.strokeStyle=Qe.strokeStyle||"#000000",this.fillStyle=Qe.fillStyle||"#000000",this.isFillTransparent=Qe.isFillTransparent||!1,this.fillOpacity=Qe.fillOpacity||1,this.font=Qe.font||"10px sans-serif",this.textBaseline=Qe.textBaseline||"alphabetic",this.textAlign=Qe.textAlign||"left",this.lineWidth=Qe.lineWidth||1,this.lineJoin=Qe.lineJoin||"miter",this.lineCap=Qe.lineCap||"butt",this.path=Qe.path||[],this.transform=Qe.transform!==void 0?Qe.transform.clone():new Pe,this.globalCompositeOperation=Qe.globalCompositeOperation||"normal",this.globalAlpha=Qe.globalAlpha||1,this.clip_path=Qe.clip_path||[],this.currentPoint=Qe.currentPoint||new ge,this.miterLimit=Qe.miterLimit||10,this.lastPoint=Qe.lastPoint||new ge,this.lineDashOffset=Qe.lineDashOffset||0,this.lineDash=Qe.lineDash||[],this.margin=Qe.margin||[0,0,0,0],this.prevPageLastElemOffset=Qe.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Qe.ignoreClearRect!="boolean"||Qe.ignoreClearRect,this};Et.events.push(["initialized",function(){this.context2d=new An(this),wt=this.internal.f2,Pt=this.internal.getCoordinateString,Qt=this.internal.getVerticalCoordinateString,ie=this.internal.getHorizontalCoordinate,Yt=this.internal.getVerticalCoordinate,ge=this.internal.Point,we=this.internal.Rectangle,Pe=this.internal.Matrix,Xe=new dn}]);var An=function(Qe){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var un=Qe;Object.defineProperty(this,"pdf",{get:function(){return un}});var pn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return pn},set:function(ki){pn=!!ki}});var Qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Qn},set:function(ki){Qn=!!ki}});var $n=0;Object.defineProperty(this,"posX",{get:function(){return $n},set:function(ki){isNaN(ki)||($n=ki)}});var ri=0;Object.defineProperty(this,"posY",{get:function(){return ri},set:function(ki){isNaN(ki)||(ri=ki)}}),Object.defineProperty(this,"margin",{get:function(){return Xe.margin},set:function(ki){var Yn;typeof ki=="number"?Yn=[ki,ki,ki,ki]:((Yn=new Array(4))[0]=ki[0],Yn[1]=ki.length>=2?ki[1]:Yn[0],Yn[2]=ki.length>=3?ki[2]:Yn[0],Yn[3]=ki.length>=4?ki[3]:Yn[1]),Xe.margin=Yn}});var Fi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Fi},set:function(ki){Fi=ki}});var ui=0;Object.defineProperty(this,"lastBreak",{get:function(){return ui},set:function(ki){ui=ki}});var Ji=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ji},set:function(ki){Ji=ki}}),Object.defineProperty(this,"ctx",{get:function(){return Xe},set:function(ki){ki instanceof dn&&(Xe=ki)}}),Object.defineProperty(this,"path",{get:function(){return Xe.path},set:function(ki){Xe.path=ki}});var Zi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Zi},set:function(ki){Zi=ki}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ki){var Yn;Yn=Pn(ki),this.ctx.fillStyle=Yn.style,this.ctx.isFillTransparent=Yn.a===0,this.ctx.fillOpacity=Yn.a,this.pdf.setFillColor(Yn.r,Yn.g,Yn.b,{a:Yn.a}),this.pdf.setTextColor(Yn.r,Yn.g,Yn.b,{a:Yn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ki){var Yn=Pn(ki);this.ctx.strokeStyle=Yn.style,this.ctx.isStrokeTransparent=Yn.a===0,this.ctx.strokeOpacity=Yn.a,Yn.a===0?this.pdf.setDrawColor(255,255,255):(Yn.a,this.pdf.setDrawColor(Yn.r,Yn.g,Yn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ki){["butt","round","square"].indexOf(ki)!==-1&&(this.ctx.lineCap=ki,this.pdf.setLineCap(ki))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ki){isNaN(ki)||(this.ctx.lineWidth=ki,this.pdf.setLineWidth(ki))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ki){["bevel","round","miter"].indexOf(ki)!==-1&&(this.ctx.lineJoin=ki,this.pdf.setLineJoin(ki))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ki){isNaN(ki)||(this.ctx.miterLimit=ki,this.pdf.setMiterLimit(ki))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ki){this.ctx.textBaseline=ki}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ki){["right","end","center","left","start"].indexOf(ki)!==-1&&(this.ctx.textAlign=ki)}});var Ar=null;function Er(ki,Yn){if(Ar===null){var Bo=function(Pr){var sr=[];return Object.keys(Pr).forEach(function(ar){Pr[ar].forEach(function(er){var vr=null;switch(er){case"bold":vr={family:ar,weight:"bold"};break;case"italic":vr={family:ar,style:"italic"};break;case"bolditalic":vr={family:ar,weight:"bold",style:"italic"};break;case"":case"normal":vr={family:ar}}vr!==null&&(vr.ref={name:ar,style:er},sr.push(vr))})}),sr}(ki.getFontList());Ar=function(Pr){for(var sr={},ar=0;ar<Pr.length;++ar){var er=Oc(Pr[ar]),vr=er.family,Vr=er.stretch,ho=er.style,po=er.weight;sr[vr]=sr[vr]||{},sr[vr][Vr]=sr[vr][Vr]||{},sr[vr][Vr][ho]=sr[vr][Vr][ho]||{},sr[vr][Vr][ho][po]=er}return sr}(Bo.concat(Yn))}return Ar}var io=null;Object.defineProperty(this,"fontFaces",{get:function(){return io},set:function(ki){Ar=null,io=ki}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ki){var Yn;if(this.ctx.font=ki,(Yn=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ki))!==null){var Bo=Yn[1],Pr=(Yn[2],Yn[3]),sr=Yn[4],ar=(Yn[5],Yn[6]),er=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(sr)[2];sr=Math.floor(er==="px"?parseFloat(sr)*this.pdf.internal.scaleFactor:er==="em"?parseFloat(sr)*this.pdf.getFontSize():parseFloat(sr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(sr);var vr=function(Yo){var ns,So,va=[],Vo=Yo.trim();if(Vo==="")return dh;if(Vo in ma)return[ma[Vo]];for(;Vo!=="";){switch(So=null,ns=(Vo=rl(Vo)).charAt(0)){case'"':case"'":So=Ha(Vo.substring(1),ns);break;default:So=da(Vo)}if(So===null||(va.push(So[0]),(Vo=rl(So[1]))!==""&&Vo.charAt(0)!==","))return dh;Vo=Vo.replace(/^,/,"")}return va}(ar);if(this.fontFaces){var Vr=Ya(Er(this.pdf,this.fontFaces),vr.map(function(Yo){return{family:Yo,stretch:"normal",weight:Pr,style:Bo}}));this.pdf.setFont(Vr.ref.name,Vr.ref.style)}else{var ho="";(Pr==="bold"||parseInt(Pr,10)>=700||Bo==="bold")&&(ho="bold"),Bo==="italic"&&(ho+="italic"),ho.length===0&&(ho="normal");for(var po="",_r={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Do=0;Do<vr.length;Do++){if(this.pdf.internal.getFont(vr[Do],ho,{noFallback:!0,disableWarning:!0})!==void 0){po=vr[Do];break}if(ho==="bolditalic"&&this.pdf.internal.getFont(vr[Do],"bold",{noFallback:!0,disableWarning:!0})!==void 0)po=vr[Do],ho="bold";else if(this.pdf.internal.getFont(vr[Do],"normal",{noFallback:!0,disableWarning:!0})!==void 0){po=vr[Do],ho="normal";break}}if(po===""){for(var us=0;us<vr.length;us++)if(_r[vr[us]]){po=_r[vr[us]];break}}po=po===""?"Times":po,this.pdf.setFont(po,ho)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ki){this.ctx.globalCompositeOperation=ki}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ki){this.ctx.globalAlpha=ki}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ki){this.ctx.lineDashOffset=ki,qn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ki){this.ctx.lineDash=ki,qn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ki){this.ctx.ignoreClearRect=!!ki}})};An.prototype.setLineDash=function(Qe){this.lineDash=Qe},An.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},An.prototype.fill=function(){rr.call(this,"fill",!1)},An.prototype.stroke=function(){rr.call(this,"stroke",!1)},An.prototype.beginPath=function(){this.path=[{type:"begin"}]},An.prototype.moveTo=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw Lo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var pn=this.ctx.transform.applyToPoint(new ge(Qe,un));this.path.push({type:"mt",x:pn.x,y:pn.y}),this.ctx.lastPoint=new ge(Qe,un)},An.prototype.closePath=function(){var Qe=new ge(0,0),un=0;for(un=this.path.length-1;un!==-1;un--)if(this.path[un].type==="begin"&&(0,Lt.Z)(this.path[un+1])==="object"&&typeof this.path[un+1].x=="number"){Qe=new ge(this.path[un+1].x,this.path[un+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ge(Qe.x,Qe.y)},An.prototype.lineTo=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw Lo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var pn=this.ctx.transform.applyToPoint(new ge(Qe,un));this.path.push({type:"lt",x:pn.x,y:pn.y}),this.ctx.lastPoint=new ge(pn.x,pn.y)},An.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),rr.call(this,null,!0)},An.prototype.quadraticCurveTo=function(Qe,un,pn,Qn){if(isNaN(pn)||isNaN(Qn)||isNaN(Qe)||isNaN(un))throw Lo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $n=this.ctx.transform.applyToPoint(new ge(pn,Qn)),ri=this.ctx.transform.applyToPoint(new ge(Qe,un));this.path.push({type:"qct",x1:ri.x,y1:ri.y,x:$n.x,y:$n.y}),this.ctx.lastPoint=new ge($n.x,$n.y)},An.prototype.bezierCurveTo=function(Qe,un,pn,Qn,$n,ri){if(isNaN($n)||isNaN(ri)||isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn))throw Lo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Fi=this.ctx.transform.applyToPoint(new ge($n,ri)),ui=this.ctx.transform.applyToPoint(new ge(Qe,un)),Ji=this.ctx.transform.applyToPoint(new ge(pn,Qn));this.path.push({type:"bct",x1:ui.x,y1:ui.y,x2:Ji.x,y2:Ji.y,x:Fi.x,y:Fi.y}),this.ctx.lastPoint=new ge(Fi.x,Fi.y)},An.prototype.arc=function(Qe,un,pn,Qn,$n,ri){if(isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn)||isNaN($n))throw Lo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ri=!!ri,!this.ctx.transform.isIdentity){var Fi=this.ctx.transform.applyToPoint(new ge(Qe,un));Qe=Fi.x,un=Fi.y;var ui=this.ctx.transform.applyToPoint(new ge(0,pn)),Ji=this.ctx.transform.applyToPoint(new ge(0,0));pn=Math.sqrt(Math.pow(ui.x-Ji.x,2)+Math.pow(ui.y-Ji.y,2))}Math.abs($n-Qn)>=2*Math.PI&&(Qn=0,$n=2*Math.PI),this.path.push({type:"arc",x:Qe,y:un,radius:pn,startAngle:Qn,endAngle:$n,counterclockwise:ri})},An.prototype.arcTo=function(Qe,un,pn,Qn,$n){throw new Error("arcTo not implemented.")},An.prototype.rect=function(Qe,un,pn,Qn){if(isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn))throw Lo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Qe,un),this.lineTo(Qe+pn,un),this.lineTo(Qe+pn,un+Qn),this.lineTo(Qe,un+Qn),this.lineTo(Qe,un),this.lineTo(Qe+pn,un),this.lineTo(Qe,un)},An.prototype.fillRect=function(Qe,un,pn,Qn){if(isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn))throw Lo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ze.call(this)){var $n={};this.lineCap!=="butt"&&($n.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Qe,un,pn,Qn),this.fill(),$n.hasOwnProperty("lineCap")&&(this.lineCap=$n.lineCap),$n.hasOwnProperty("lineJoin")&&(this.lineJoin=$n.lineJoin)}},An.prototype.strokeRect=function(Qe,un,pn,Qn){if(isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn))throw Lo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");mi.call(this)||(this.beginPath(),this.rect(Qe,un,pn,Qn),this.stroke())},An.prototype.clearRect=function(Qe,un,pn,Qn){if(isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn))throw Lo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Qe,un,pn,Qn))},An.prototype.save=function(Qe){Qe=typeof Qe!="boolean"||Qe;for(var un=this.pdf.internal.getCurrentPageInfo().pageNumber,pn=0;pn<this.pdf.internal.getNumberOfPages();pn++)this.pdf.setPage(pn+1),this.pdf.internal.out("q");if(this.pdf.setPage(un),Qe){this.ctx.fontSize=this.pdf.internal.getFontSize();var Qn=new dn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Qn}},An.prototype.restore=function(Qe){Qe=typeof Qe!="boolean"||Qe;for(var un=this.pdf.internal.getCurrentPageInfo().pageNumber,pn=0;pn<this.pdf.internal.getNumberOfPages();pn++)this.pdf.setPage(pn+1),this.pdf.internal.out("Q");this.pdf.setPage(un),Qe&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},An.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Pn=function(Qe){var un,pn,Qn,$n;if(Qe.isCanvasGradient===!0&&(Qe=Qe.getColor()),!Qe)return{r:0,g:0,b:0,a:0,style:Qe};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Qe))un=0,pn=0,Qn=0,$n=0;else{var ri=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Qe);if(ri!==null)un=parseInt(ri[1]),pn=parseInt(ri[2]),Qn=parseInt(ri[3]),$n=1;else if((ri=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Qe))!==null)un=parseInt(ri[1]),pn=parseInt(ri[2]),Qn=parseInt(ri[3]),$n=parseFloat(ri[4]);else{if($n=1,typeof Qe=="string"&&Qe.charAt(0)!=="#"){var Fi=new Mo(Qe);Qe=Fi.ok?Fi.toHex():"#000000"}Qe.length===4?(un=Qe.substring(1,2),un+=un,pn=Qe.substring(2,3),pn+=pn,Qn=Qe.substring(3,4),Qn+=Qn):(un=Qe.substring(1,3),pn=Qe.substring(3,5),Qn=Qe.substring(5,7)),un=parseInt(un,16),pn=parseInt(pn,16),Qn=parseInt(Qn,16)}}return{r:un,g:pn,b:Qn,a:$n,style:Qe}},ze=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mi=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};An.prototype.fillText=function(Qe,un,pn,Qn){if(isNaN(un)||isNaN(pn)||typeof Qe!="string")throw Lo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Qn=isNaN(Qn)?void 0:Qn,!ze.call(this)){var $n=en(this.ctx.transform.rotation),ri=this.ctx.transform.scaleX;oi.call(this,{text:Qe,x:un,y:pn,scale:ri,angle:$n,align:this.textAlign,maxWidth:Qn})}},An.prototype.strokeText=function(Qe,un,pn,Qn){if(isNaN(un)||isNaN(pn)||typeof Qe!="string")throw Lo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!mi.call(this)){Qn=isNaN(Qn)?void 0:Qn;var $n=en(this.ctx.transform.rotation),ri=this.ctx.transform.scaleX;oi.call(this,{text:Qe,x:un,y:pn,scale:ri,renderingMode:"stroke",angle:$n,align:this.textAlign,maxWidth:Qn})}},An.prototype.measureText=function(Qe){if(typeof Qe!="string")throw Lo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var un=this.pdf,pn=this.pdf.internal.scaleFactor,Qn=un.internal.getFontSize(),$n=un.getStringUnitWidth(Qe)*Qn/un.internal.scaleFactor,ri=function(Fi){var ui=(Fi=Fi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ui}}),this};return new ri({width:$n*=Math.round(96*pn/72*1e4)/1e4})},An.prototype.scale=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw Lo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var pn=new Pe(Qe,0,0,un,0,0);this.ctx.transform=this.ctx.transform.multiply(pn)},An.prototype.rotate=function(Qe){if(isNaN(Qe))throw Lo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var un=new Pe(Math.cos(Qe),Math.sin(Qe),-Math.sin(Qe),Math.cos(Qe),0,0);this.ctx.transform=this.ctx.transform.multiply(un)},An.prototype.translate=function(Qe,un){if(isNaN(Qe)||isNaN(un))throw Lo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var pn=new Pe(1,0,0,1,Qe,un);this.ctx.transform=this.ctx.transform.multiply(pn)},An.prototype.transform=function(Qe,un,pn,Qn,$n,ri){if(isNaN(Qe)||isNaN(un)||isNaN(pn)||isNaN(Qn)||isNaN($n)||isNaN(ri))throw Lo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Fi=new Pe(Qe,un,pn,Qn,$n,ri);this.ctx.transform=this.ctx.transform.multiply(Fi)},An.prototype.setTransform=function(Qe,un,pn,Qn,$n,ri){Qe=isNaN(Qe)?1:Qe,un=isNaN(un)?0:un,pn=isNaN(pn)?0:pn,Qn=isNaN(Qn)?1:Qn,$n=isNaN($n)?0:$n,ri=isNaN(ri)?0:ri,this.ctx.transform=new Pe(Qe,un,pn,Qn,$n,ri)};var ti=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};An.prototype.drawImage=function(Qe,un,pn,Qn,$n,ri,Fi,ui,Ji){var Zi=this.pdf.getImageProperties(Qe),Ar=1,Er=1,io=1,ki=1;Qn!==void 0&&ui!==void 0&&(io=ui/Qn,ki=Ji/$n,Ar=Zi.width/Qn*ui/Qn,Er=Zi.height/$n*Ji/$n),ri===void 0&&(ri=un,Fi=pn,un=0,pn=0),Qn!==void 0&&ui===void 0&&(ui=Qn,Ji=$n),Qn===void 0&&ui===void 0&&(ui=Zi.width,Ji=Zi.height);for(var Yn,Bo=this.ctx.transform.decompose(),Pr=en(Bo.rotate.shx),sr=new Pe,ar=(sr=(sr=(sr=sr.multiply(Bo.translate)).multiply(Bo.skew)).multiply(Bo.scale)).applyToRectangle(new we(ri-un*io,Fi-pn*ki,Qn*Ar,$n*Er)),er=vi.call(this,ar),vr=[],Vr=0;Vr<er.length;Vr+=1)vr.indexOf(er[Vr])===-1&&vr.push(er[Vr]);if(Qi(vr),this.autoPaging)for(var ho=vr[0],po=vr[vr.length-1],_r=ho;_r<po+1;_r++){this.pdf.setPage(_r);var Do=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],us=_r===1?this.posY+this.margin[0]:this.margin[0],Yo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ns=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],So=_r===1?0:Yo+(_r-2)*ns;if(this.ctx.clip_path.length!==0){var va=this.path;Yn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(Yn,this.posX+this.margin[3],-So+us+this.ctx.prevPageLastElemOffset),Fr.call(this,"fill",!0),this.path=va}var Vo=JSON.parse(JSON.stringify(ar));Vo=Ai([Vo],this.posX+this.margin[3],-So+us+this.ctx.prevPageLastElemOffset)[0];var rs=(_r>ho||_r<po)&&ti.call(this);rs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Do,ns,null).clip().discardPath()),this.pdf.addImage(Qe,"JPEG",Vo.x,Vo.y,Vo.w,Vo.h,null,null,Pr),rs&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Qe,"JPEG",ar.x,ar.y,ar.w,ar.h,null,null,Pr)};var vi=function(Qe,un,pn){var Qn=[];un=un||this.pdf.internal.pageSize.width,pn=pn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $n=this.posY+this.ctx.prevPageLastElemOffset;switch(Qe.type){default:case"mt":case"lt":Qn.push(Math.floor((Qe.y+$n)/pn)+1);break;case"arc":Qn.push(Math.floor((Qe.y+$n-Qe.radius)/pn)+1),Qn.push(Math.floor((Qe.y+$n+Qe.radius)/pn)+1);break;case"qct":var ri=Tn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Qe.x1,Qe.y1,Qe.x,Qe.y);Qn.push(Math.floor((ri.y+$n)/pn)+1),Qn.push(Math.floor((ri.y+ri.h+$n)/pn)+1);break;case"bct":var Fi=Un(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Qe.x1,Qe.y1,Qe.x2,Qe.y2,Qe.x,Qe.y);Qn.push(Math.floor((Fi.y+$n)/pn)+1),Qn.push(Math.floor((Fi.y+Fi.h+$n)/pn)+1);break;case"rect":Qn.push(Math.floor((Qe.y+$n)/pn)+1),Qn.push(Math.floor((Qe.y+Qe.h+$n)/pn)+1)}for(var ui=0;ui<Qn.length;ui+=1)for(;this.pdf.internal.getNumberOfPages()<Qn[ui];)Rn.call(this);return Qn},Rn=function(){var Qe=this.fillStyle,un=this.strokeStyle,pn=this.font,Qn=this.lineCap,$n=this.lineWidth,ri=this.lineJoin;this.pdf.addPage(),this.fillStyle=Qe,this.strokeStyle=un,this.font=pn,this.lineCap=Qn,this.lineWidth=$n,this.lineJoin=ri},Ai=function(Qe,un,pn){for(var Qn=0;Qn<Qe.length;Qn++)switch(Qe[Qn].type){case"bct":Qe[Qn].x2+=un,Qe[Qn].y2+=pn;case"qct":Qe[Qn].x1+=un,Qe[Qn].y1+=pn;case"mt":case"lt":case"arc":default:Qe[Qn].x+=un,Qe[Qn].y+=pn}return Qe},Qi=function(Qe){return Qe.sort(function(un,pn){return un-pn})},rr=function(Qe,un){for(var pn,Qn,$n=this.fillStyle,ri=this.strokeStyle,Fi=this.lineCap,ui=this.lineWidth,Ji=Math.abs(ui*this.ctx.transform.scaleX),Zi=this.lineJoin,Ar=JSON.parse(JSON.stringify(this.path)),Er=JSON.parse(JSON.stringify(this.path)),io=[],ki=0;ki<Er.length;ki++)if(Er[ki].x!==void 0)for(var Yn=vi.call(this,Er[ki]),Bo=0;Bo<Yn.length;Bo+=1)io.indexOf(Yn[Bo])===-1&&io.push(Yn[Bo]);for(var Pr=0;Pr<io.length;Pr++)for(;this.pdf.internal.getNumberOfPages()<io[Pr];)Rn.call(this);if(Qi(io),this.autoPaging)for(var sr=io[0],ar=io[io.length-1],er=sr;er<ar+1;er++){this.pdf.setPage(er),this.fillStyle=$n,this.strokeStyle=ri,this.lineCap=Fi,this.lineWidth=Ji,this.lineJoin=Zi;var vr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Vr=er===1?this.posY+this.margin[0]:this.margin[0],ho=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],po=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],_r=er===1?0:ho+(er-2)*po;if(this.ctx.clip_path.length!==0){var Do=this.path;pn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(pn,this.posX+this.margin[3],-_r+Vr+this.ctx.prevPageLastElemOffset),Fr.call(this,Qe,!0),this.path=Do}if(Qn=JSON.parse(JSON.stringify(Ar)),this.path=Ai(Qn,this.posX+this.margin[3],-_r+Vr+this.ctx.prevPageLastElemOffset),un===!1||er===0){var us=(er>sr||er<ar)&&ti.call(this);us&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],vr,po,null).clip().discardPath()),Fr.call(this,Qe,un),us&&this.pdf.restoreGraphicsState()}this.lineWidth=ui}else this.lineWidth=Ji,Fr.call(this,Qe,un),this.lineWidth=ui;this.path=Ar},Fr=function(Qe,un){if((Qe!=="stroke"||un||!mi.call(this))&&(Qe==="stroke"||un||!ze.call(this))){for(var pn,Qn,$n=[],ri=this.path,Fi=0;Fi<ri.length;Fi++){var ui=ri[Fi];switch(ui.type){case"begin":$n.push({begin:!0});break;case"close":$n.push({close:!0});break;case"mt":$n.push({start:ui,deltas:[],abs:[]});break;case"lt":var Ji=$n.length;if(ri[Fi-1]&&!isNaN(ri[Fi-1].x)&&(pn=[ui.x-ri[Fi-1].x,ui.y-ri[Fi-1].y],Ji>0)){for(;Ji>=0;Ji--)if($n[Ji-1].close!==!0&&$n[Ji-1].begin!==!0){$n[Ji-1].deltas.push(pn),$n[Ji-1].abs.push(ui);break}}break;case"bct":pn=[ui.x1-ri[Fi-1].x,ui.y1-ri[Fi-1].y,ui.x2-ri[Fi-1].x,ui.y2-ri[Fi-1].y,ui.x-ri[Fi-1].x,ui.y-ri[Fi-1].y],$n[$n.length-1].deltas.push(pn);break;case"qct":var Zi=ri[Fi-1].x+2/3*(ui.x1-ri[Fi-1].x),Ar=ri[Fi-1].y+2/3*(ui.y1-ri[Fi-1].y),Er=ui.x+2/3*(ui.x1-ui.x),io=ui.y+2/3*(ui.y1-ui.y),ki=ui.x,Yn=ui.y;pn=[Zi-ri[Fi-1].x,Ar-ri[Fi-1].y,Er-ri[Fi-1].x,io-ri[Fi-1].y,ki-ri[Fi-1].x,Yn-ri[Fi-1].y],$n[$n.length-1].deltas.push(pn);break;case"arc":$n.push({deltas:[],abs:[],arc:!0}),Array.isArray($n[$n.length-1].abs)&&$n[$n.length-1].abs.push(ui)}}Qn=un?null:Qe==="stroke"?"stroke":"fill";for(var Bo=!1,Pr=0;Pr<$n.length;Pr++)if($n[Pr].arc)for(var sr=$n[Pr].abs,ar=0;ar<sr.length;ar++){var er=sr[ar];er.type==="arc"?Oi.call(this,er.x,er.y,er.radius,er.startAngle,er.endAngle,er.counterclockwise,void 0,un,!Bo):pe.call(this,er.x,er.y),Bo=!0}else if($n[Pr].close===!0)this.pdf.internal.out("h"),Bo=!1;else if($n[Pr].begin!==!0){var vr=$n[Pr].start.x,Vr=$n[Pr].start.y;me.call(this,$n[Pr].deltas,vr,Vr),Bo=!0}Qn&&Cr.call(this,Qn),un&&Or.call(this)}},lo=function(Qe){var un=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,pn=un*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Qe-pn;case"top":return Qe+un-pn;case"hanging":return Qe+un-2*pn;case"middle":return Qe+un/2-pn;case"ideographic":return Qe;case"alphabetic":default:return Qe}},mr=function(Qe){return Qe+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};An.prototype.createLinearGradient=function(){var Qe=function(){};return Qe.colorStops=[],Qe.addColorStop=function(un,pn){this.colorStops.push([un,pn])},Qe.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Qe.isCanvasGradient=!0,Qe},An.prototype.createPattern=function(){return this.createLinearGradient()},An.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Oi=function(Qe,un,pn,Qn,$n,ri,Fi,ui,Ji){for(var Zi=Ye.call(this,pn,Qn,$n,ri),Ar=0;Ar<Zi.length;Ar++){var Er=Zi[Ar];Ar===0&&(Ji?Jn.call(this,Er.x1+Qe,Er.y1+un):pe.call(this,Er.x1+Qe,Er.y1+un)),Ze.call(this,Qe,un,Er.x2,Er.y2,Er.x3,Er.y3,Er.x4,Er.y4)}ui?Or.call(this):Cr.call(this,Fi)},Cr=function(Qe){switch(Qe){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Or=function(){this.pdf.clip(),this.pdf.discardPath()},Jn=function(Qe,un){this.pdf.internal.out(Pt(Qe)+" "+Qt(un)+" m")},oi=function(Qe){var un;switch(Qe.align){case"right":case"end":un="right";break;case"center":un="center";break;case"left":case"start":default:un="left"}var pn=this.pdf.getTextDimensions(Qe.text),Qn=lo.call(this,Qe.y),$n=mr.call(this,Qn)-pn.h,ri=this.ctx.transform.applyToPoint(new ge(Qe.x,Qn)),Fi=this.ctx.transform.decompose(),ui=new Pe;ui=(ui=(ui=ui.multiply(Fi.translate)).multiply(Fi.skew)).multiply(Fi.scale);for(var Ji,Zi,Ar,Er=this.ctx.transform.applyToRectangle(new we(Qe.x,Qn,pn.w,pn.h)),io=ui.applyToRectangle(new we(Qe.x,$n,pn.w,pn.h)),ki=vi.call(this,io),Yn=[],Bo=0;Bo<ki.length;Bo+=1)Yn.indexOf(ki[Bo])===-1&&Yn.push(ki[Bo]);if(Qi(Yn),this.autoPaging)for(var Pr=Yn[0],sr=Yn[Yn.length-1],ar=Pr;ar<sr+1;ar++){this.pdf.setPage(ar);var er=ar===1?this.posY+this.margin[0]:this.margin[0],vr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Vr=this.pdf.internal.pageSize.height-this.margin[2],ho=Vr-this.margin[0],po=this.pdf.internal.pageSize.width-this.margin[1],_r=po-this.margin[3],Do=ar===1?0:vr+(ar-2)*ho;if(this.ctx.clip_path.length!==0){var us=this.path;Ji=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(Ji,this.posX+this.margin[3],-1*Do+er),Fr.call(this,"fill",!0),this.path=us}var Yo=Ai([JSON.parse(JSON.stringify(io))],this.posX+this.margin[3],-Do+er+this.ctx.prevPageLastElemOffset)[0];Qe.scale>=.01&&(Zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Zi*Qe.scale),Ar=this.lineWidth,this.lineWidth=Ar*Qe.scale);var ns=this.autoPaging!=="text";if(ns||Yo.y+Yo.h<=Vr){if(ns||Yo.y>=er&&Yo.x<=po){var So=ns?Qe.text:this.pdf.splitTextToSize(Qe.text,Qe.maxWidth||po-Yo.x)[0],va=Ai([JSON.parse(JSON.stringify(Er))],this.posX+this.margin[3],-Do+er+this.ctx.prevPageLastElemOffset)[0],Vo=ns&&(ar>Pr||ar<sr)&&ti.call(this);Vo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_r,ho,null).clip().discardPath()),this.pdf.text(So,va.x,va.y,{angle:Qe.angle,align:un,renderingMode:Qe.renderingMode}),Vo&&this.pdf.restoreGraphicsState()}}else Yo.y<Vr&&(this.ctx.prevPageLastElemOffset+=Vr-Yo.y);Qe.scale>=.01&&(this.pdf.setFontSize(Zi),this.lineWidth=Ar)}else Qe.scale>=.01&&(Zi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Zi*Qe.scale),Ar=this.lineWidth,this.lineWidth=Ar*Qe.scale),this.pdf.text(Qe.text,ri.x+this.posX,ri.y+this.posY,{angle:Qe.angle,align:un,renderingMode:Qe.renderingMode,maxWidth:Qe.maxWidth}),Qe.scale>=.01&&(this.pdf.setFontSize(Zi),this.lineWidth=Ar)},pe=function(Qe,un,pn,Qn){pn=pn||0,Qn=Qn||0,this.pdf.internal.out(Pt(Qe+pn)+" "+Qt(un+Qn)+" l")},me=function(Qe,un,pn){return this.pdf.lines(Qe,un,pn,null,null)},Ze=function(Qe,un,pn,Qn,$n,ri,Fi,ui){this.pdf.internal.out([wt(ie(pn+Qe)),wt(Yt(Qn+un)),wt(ie($n+Qe)),wt(Yt(ri+un)),wt(ie(Fi+Qe)),wt(Yt(ui+un)),"c"].join(" "))},Ye=function(Qe,un,pn,Qn){for(var $n=2*Math.PI,ri=Math.PI/2;un>pn;)un-=$n;var Fi=Math.abs(pn-un);Fi<$n&&Qn&&(Fi=$n-Fi);for(var ui=[],Ji=Qn?-1:1,Zi=un;Fi>1e-5;){var Ar=Zi+Ji*Math.min(Fi,ri);ui.push(mn.call(this,Qe,Zi,Ar)),Fi-=Math.abs(Ar-Zi),Zi=Ar}return ui},mn=function(Qe,un,pn){var Qn=(pn-un)/2,$n=Qe*Math.cos(Qn),ri=Qe*Math.sin(Qn),Fi=$n,ui=-ri,Ji=Fi*Fi+ui*ui,Zi=Ji+Fi*$n+ui*ri,Ar=4/3*(Math.sqrt(2*Ji*Zi)-Zi)/(Fi*ri-ui*$n),Er=Fi-Ar*ui,io=ui+Ar*Fi,ki=Er,Yn=-io,Bo=Qn+un,Pr=Math.cos(Bo),sr=Math.sin(Bo);return{x1:Qe*Math.cos(un),y1:Qe*Math.sin(un),x2:Er*Pr-io*sr,y2:Er*sr+io*Pr,x3:ki*Pr-Yn*sr,y3:ki*sr+Yn*Pr,x4:Qe*Math.cos(pn),y4:Qe*Math.sin(pn)}},en=function(Qe){return 180*Qe/Math.PI},Tn=function(Qe,un,pn,Qn,$n,ri){var Fi=Qe+.5*(pn-Qe),ui=un+.5*(Qn-un),Ji=$n+.5*(pn-$n),Zi=ri+.5*(Qn-ri),Ar=Math.min(Qe,$n,Fi,Ji),Er=Math.max(Qe,$n,Fi,Ji),io=Math.min(un,ri,ui,Zi),ki=Math.max(un,ri,ui,Zi);return new we(Ar,io,Er-Ar,ki-io)},Un=function(Qe,un,pn,Qn,$n,ri,Fi,ui){var Ji,Zi,Ar,Er,io,ki,Yn,Bo,Pr,sr,ar,er,vr,Vr,ho=pn-Qe,po=Qn-un,_r=$n-pn,Do=ri-Qn,us=Fi-$n,Yo=ui-ri;for(Zi=0;Zi<41;Zi++)Pr=(Yn=(Ar=Qe+(Ji=Zi/40)*ho)+Ji*((io=pn+Ji*_r)-Ar))+Ji*(io+Ji*($n+Ji*us-io)-Yn),sr=(Bo=(Er=un+Ji*po)+Ji*((ki=Qn+Ji*Do)-Er))+Ji*(ki+Ji*(ri+Ji*Yo-ki)-Bo),Zi==0?(ar=Pr,er=sr,vr=Pr,Vr=sr):(ar=Math.min(ar,Pr),er=Math.min(er,sr),vr=Math.max(vr,Pr),Vr=Math.max(Vr,sr));return new we(Math.round(ar),Math.round(er),Math.round(vr-ar),Math.round(Vr-er))},qn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Qe,un,pn=(Qe=this.ctx.lineDash,un=this.ctx.lineDashOffset,JSON.stringify({lineDash:Qe,lineDashOffset:un}));this.prevLineDash!==pn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=pn)}}})(Qo.API),function(Et){var wt=function(Yt){var ge,we,Pe,Xe,dn,An,Pn,ze,mi,ti;for(/[^\x00-\xFF]/.test(Yt),we=[],Pe=0,Xe=(Yt+=ge="\0\0\0\0".slice(Yt.length%4||4)).length;Xe>Pe;Pe+=4)(dn=(Yt.charCodeAt(Pe)<<24)+(Yt.charCodeAt(Pe+1)<<16)+(Yt.charCodeAt(Pe+2)<<8)+Yt.charCodeAt(Pe+3))!==0?(An=(dn=((dn=((dn=((dn=(dn-(ti=dn%85))/85)-(mi=dn%85))/85)-(ze=dn%85))/85)-(Pn=dn%85))/85)%85,we.push(An+33,Pn+33,ze+33,mi+33,ti+33)):we.push(122);return function(vi,Rn){for(var Ai=Rn;Ai>0;Ai--)vi.pop()}(we,ge.length),String.fromCharCode.apply(String,we)+"~>"},Pt=function(Yt){var ge,we,Pe,Xe,dn,An=String,Pn="length",ze=255,mi="charCodeAt",ti="slice",vi="replace";for(Yt[ti](-2),Yt=Yt[ti](0,-2)[vi](/\s/g,"")[vi]("z","!!!!!"),Pe=[],Xe=0,dn=(Yt+=ge="uuuuu"[ti](Yt[Pn]%5||5))[Pn];dn>Xe;Xe+=5)we=52200625*(Yt[mi](Xe)-33)+614125*(Yt[mi](Xe+1)-33)+7225*(Yt[mi](Xe+2)-33)+85*(Yt[mi](Xe+3)-33)+(Yt[mi](Xe+4)-33),Pe.push(ze&we>>24,ze&we>>16,ze&we>>8,ze&we);return function(Rn,Ai){for(var Qi=Ai;Qi>0;Qi--)Rn.pop()}(Pe,ge[Pn]),An.fromCharCode.apply(An,Pe)},Qt=function(Yt){var ge=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Yt=Yt.replace(/\s/g,"")).indexOf(">")!==-1&&(Yt=Yt.substr(0,Yt.indexOf(">"))),Yt.length%2&&(Yt+="0"),ge.test(Yt)===!1)return"";for(var we="",Pe=0;Pe<Yt.length;Pe+=2)we+=String.fromCharCode("0x"+(Yt[Pe]+Yt[Pe+1]));return we},ie=function(Yt){for(var ge=new Uint8Array(Yt.length),we=Yt.length;we--;)ge[we]=Yt.charCodeAt(we);return Yt=(ge=Mn(ge)).reduce(function(Pe,Xe){return Pe+String.fromCharCode(Xe)},"")};Et.processDataByFilters=function(Yt,ge){var we=0,Pe=Yt||"",Xe=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),we=0;we<ge.length;we+=1)switch(ge[we]){case"ASCII85Decode":case"/ASCII85Decode":Pe=Pt(Pe),Xe.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Pe=wt(Pe),Xe.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Pe=Qt(Pe),Xe.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Pe=Pe.split("").map(function(dn){return("0"+dn.charCodeAt().toString(16)).slice(-2)}).join("")+">",Xe.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Pe=ie(Pe),Xe.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[we]+'" is not implemented')}return{data:Pe,reverseChain:Xe.reverse().join(" ")}}}(Qo.API),function(Et){Et.loadFile=function(wt,Pt,Qt){return function(ie,Yt,ge){Yt=Yt!==!1,ge=typeof ge=="function"?ge:function(){};var we=void 0;try{we=function(Pe,Xe,dn){var An=new XMLHttpRequest,Pn=0,ze=function(mi){var ti=mi.length,vi=[],Rn=String.fromCharCode;for(Pn=0;Pn<ti;Pn+=1)vi.push(Rn(255&mi.charCodeAt(Pn)));return vi.join("")};if(An.open("GET",Pe,!Xe),An.overrideMimeType("text/plain; charset=x-user-defined"),Xe===!1&&(An.onload=function(){An.status===200?dn(ze(this.responseText)):dn(void 0)}),An.send(null),Xe&&An.status===200)return ze(An.responseText)}(ie,Yt,ge)}catch(Pe){}return we}(wt,Pt,Qt)},Et.loadImageFile=Et.loadFile}(Qo.API),function(Et){function wt(){return(kr.html2canvas?Promise.resolve(kr.html2canvas):Promise.resolve().then(Ft.t.bind(Ft,64270,23))).catch(function(ge){return Promise.reject(new Error("Could not load html2canvas: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}function Pt(){return(kr.DOMPurify?Promise.resolve(kr.DOMPurify):Ft.e(3985).then(Ft.t.bind(Ft,73985,23))).catch(function(ge){return Promise.reject(new Error("Could not load dompurify: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}var Qt=function(ge){var we=(0,Lt.Z)(ge);return we==="undefined"?"undefined":we==="string"||ge instanceof String?"string":we==="number"||ge instanceof Number?"number":we==="function"||ge instanceof Function?"function":ge&&ge.constructor===Array?"array":ge&&ge.nodeType===1?"element":we==="object"?"object":"unknown"},ie=function(ge,we){var Pe=document.createElement(ge);for(var Xe in we.className&&(Pe.className=we.className),we.innerHTML&&we.dompurify&&(Pe.innerHTML=we.dompurify.sanitize(we.innerHTML)),we.style)Pe.style[Xe]=we.style[Xe];return Pe},Yt=function ge(we){var Pe=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),Xe=ge.convert(Promise.resolve(),Pe);return Xe=(Xe=Xe.setProgress(1,ge,1,[ge])).set(we)};(Yt.prototype=Object.create(Promise.prototype)).constructor=Yt,Yt.convert=function(ge,we){return ge.__proto__=we||Yt.prototype,ge},Yt.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},Yt.prototype.from=function(ge,we){return this.then(function(){switch(we=we||function(Pe){switch(Qt(Pe)){case"string":return"string";case"element":return Pe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(Pt).then(function(Pe){return this.set({src:ie("div",{innerHTML:ge,dompurify:Pe})})});case"element":return this.set({src:ge});case"canvas":return this.set({canvas:ge});case"img":return this.set({img:ge});default:return this.error("Unknown source type.")}})},Yt.prototype.to=function(ge){switch(ge){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Yt.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var ge={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},we=function Pe(Xe,dn){for(var An=Xe.nodeType===3?document.createTextNode(Xe.nodeValue):Xe.cloneNode(!1),Pn=Xe.firstChild;Pn;Pn=Pn.nextSibling)dn!==!0&&Pn.nodeType===1&&Pn.nodeName==="SCRIPT"||An.appendChild(Pe(Pn,dn));return Xe.nodeType===1&&(Xe.nodeName==="CANVAS"?(An.width=Xe.width,An.height=Xe.height,An.getContext("2d").drawImage(Xe,0,0)):Xe.nodeName!=="TEXTAREA"&&Xe.nodeName!=="SELECT"||(An.value=Xe.value),An.addEventListener("load",function(){An.scrollTop=Xe.scrollTop,An.scrollLeft=Xe.scrollLeft},!0)),An}(this.prop.src,this.opt.html2canvas.javascriptEnabled);we.tagName==="BODY"&&(ge.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ie("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ie("div",{className:"html2pdf__container",style:ge}),this.prop.container.appendChild(we),this.prop.container.firstChild.appendChild(ie("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},Yt.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(wt).then(function(we){var Pe=Object.assign({},this.opt.html2canvas);return delete Pe.onrendered,we(this.prop.container,Pe)}).then(function(we){(this.opt.html2canvas.onrendered||function(){})(we),this.prop.canvas=we,document.body.removeChild(this.prop.overlay)})},Yt.prototype.toContext2d=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(wt).then(function(we){var Pe=this.opt.jsPDF,Xe=this.opt.fontFaces,dn=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,An=Object.assign({async:!0,allowTaint:!0,scale:dn,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete An.onrendered,Pe.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Pe.context2d.posX=this.opt.x,Pe.context2d.posY=this.opt.y,Pe.context2d.margin=this.opt.margin,Pe.context2d.fontFaces=Xe,Xe)for(var Pn=0;Pn<Xe.length;++Pn){var ze=Xe[Pn],mi=ze.src.find(function(ti){return ti.format==="truetype"});mi&&Pe.addFont(mi.url,ze.ref.name,ze.ref.style)}return An.windowHeight=An.windowHeight||0,An.windowHeight=An.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):An.windowHeight,Pe.context2d.save(!0),we(this.prop.container,An)}).then(function(we){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(we),this.prop.canvas=we,document.body.removeChild(this.prop.overlay)})},Yt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ge=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ge})},Yt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Yt.prototype.output=function(ge,we,Pe){return(Pe=Pe||"pdf").toLowerCase()==="img"||Pe.toLowerCase()==="image"?this.outputImg(ge,we):this.outputPdf(ge,we)},Yt.prototype.outputPdf=function(ge,we){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ge,we)})},Yt.prototype.outputImg=function(ge){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ge){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ge+'" is not supported.'}})},Yt.prototype.save=function(ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ge?{filename:ge}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Yt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Yt.prototype.set=function(ge){if(Qt(ge)!=="object")return this;var we=Object.keys(ge||{}).map(function(Pe){if(Pe in Yt.template.prop)return function(){this.prop[Pe]=ge[Pe]};switch(Pe){case"margin":return this.setMargin.bind(this,ge.margin);case"jsPDF":return function(){return this.opt.jsPDF=ge.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ge.pageSize);default:return function(){this.opt[Pe]=ge[Pe]}}},this);return this.then(function(){return this.thenList(we)})},Yt.prototype.get=function(ge,we){return this.then(function(){var Pe=ge in Yt.template.prop?this.prop[ge]:this.opt[ge];return we?we(Pe):Pe})},Yt.prototype.setMargin=function(ge){return this.then(function(){switch(Qt(ge)){case"number":ge=[ge,ge,ge,ge];case"array":if(ge.length===2&&(ge=[ge[0],ge[1],ge[0],ge[1]]),ge.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ge}).then(this.setPageSize)},Yt.prototype.setPageSize=function(ge){function we(Pe,Xe){return Math.floor(Pe*Xe/72*96)}return this.then(function(){(ge=ge||Qo.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ge.inner={width:ge.width-this.opt.margin[1]-this.opt.margin[3],height:ge.height-this.opt.margin[0]-this.opt.margin[2]},ge.inner.px={width:we(ge.inner.width,ge.k),height:we(ge.inner.height,ge.k)},ge.inner.ratio=ge.inner.height/ge.inner.width),this.prop.pageSize=ge})},Yt.prototype.setProgress=function(ge,we,Pe,Xe){return ge!=null&&(this.progress.val=ge),we!=null&&(this.progress.state=we),Pe!=null&&(this.progress.n=Pe),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},Yt.prototype.updateProgress=function(ge,we,Pe,Xe){return this.setProgress(ge?this.progress.val+ge:null,we||null,Pe?this.progress.n+Pe:null,Xe?this.progress.stack.concat(Xe):null)},Yt.prototype.then=function(ge,we){var Pe=this;return this.thenCore(ge,we,function(Xe,dn){return Pe.updateProgress(null,null,1,[Xe]),Promise.prototype.then.call(this,function(An){return Pe.updateProgress(null,Xe),An}).then(Xe,dn).then(function(An){return Pe.updateProgress(1),An})})},Yt.prototype.thenCore=function(ge,we,Pe){Pe=Pe||Promise.prototype.then,ge&&(ge=ge.bind(this)),we&&(we=we.bind(this));var Xe=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Yt.convert(Object.assign({},this),Promise.prototype),dn=Pe.call(Xe,ge,we);return Yt.convert(dn,this.__proto__)},Yt.prototype.thenExternal=function(ge,we){return Promise.prototype.then.call(this,ge,we)},Yt.prototype.thenList=function(ge){var we=this;return ge.forEach(function(Pe){we=we.thenCore(Pe)}),we},Yt.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var we=Promise.prototype.catch.call(this,ge);return Yt.convert(we,this)},Yt.prototype.catchExternal=function(ge){return Promise.prototype.catch.call(this,ge)},Yt.prototype.error=function(ge){return this.then(function(){throw new Error(ge)})},Yt.prototype.using=Yt.prototype.set,Yt.prototype.saveAs=Yt.prototype.save,Yt.prototype.export=Yt.prototype.output,Yt.prototype.run=Yt.prototype.then,Qo.getPageSize=function(ge,we,Pe){if((0,Lt.Z)(ge)==="object"){var Xe=ge;ge=Xe.orientation,we=Xe.unit||we,Pe=Xe.format||Pe}we=we||"mm",Pe=Pe||"a4",ge=(""+(ge||"P")).toLowerCase();var dn,An=(""+Pe).toLowerCase(),Pn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(we){case"pt":dn=1;break;case"mm":dn=72/25.4;break;case"cm":dn=72/2.54;break;case"in":dn=72;break;case"px":dn=.75;break;case"pc":case"em":dn=12;break;case"ex":dn=6;break;default:throw"Invalid unit: "+we}var ze,mi=0,ti=0;if(Pn.hasOwnProperty(An))mi=Pn[An][1]/dn,ti=Pn[An][0]/dn;else try{mi=Pe[1],ti=Pe[0]}catch(vi){throw new Error("Invalid format: "+Pe)}if(ge==="p"||ge==="portrait")ge="p",ti>mi&&(ze=ti,ti=mi,mi=ze);else{if(ge!=="l"&&ge!=="landscape")throw"Invalid orientation: "+ge;ge="l",mi>ti&&(ze=ti,ti=mi,mi=ze)}return{width:ti,height:mi,unit:we,k:dn,orientation:ge}},Et.html=function(ge,we){(we=we||{}).callback=we.callback||function(){},we.html2canvas=we.html2canvas||{},we.html2canvas.canvas=we.html2canvas.canvas||this.canvas,we.jsPDF=we.jsPDF||this,we.fontFaces=we.fontFaces?we.fontFaces.map(Oc):null;var Pe=new Yt(we);return we.worker?Pe:Pe.from(ge).doCallback()}}(Qo.API),Qo.API.addJS=function(Et){return fc=Et,this.internal.events.subscribe("postPutResources",function(){Ja=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ja+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),jl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+fc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ja!==void 0&&jl!==void 0&&this.internal.out("/Names <</JavaScript "+Ja+" 0 R>>")}),this},function(Et){var wt;Et.events.push(["postPutResources",function(){var Pt=this,Qt=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ie=Pt.outline.render().split(/\r\n/),Yt=0;Yt<ie.length;Yt++){var ge=ie[Yt],we=Qt.exec(ge);if(we!=null){var Pe=we[1];Pt.internal.newObjectDeferredBegin(Pe,!1)}Pt.internal.write(ge)}if(this.outline.createNamedDestinations){var Xe=this.internal.pages.length,dn=[];for(Yt=0;Yt<Xe;Yt++){var An=Pt.internal.newObject();dn.push(An);var Pn=Pt.internal.getPageInfo(Yt+1);Pt.internal.write("<< /D["+Pn.objId+" 0 R /XYZ null null null]>> endobj")}var ze=Pt.internal.newObject();for(Pt.internal.write("<< /Names [ "),Yt=0;Yt<dn.length;Yt++)Pt.internal.write("(page_"+(Yt+1)+")"+dn[Yt]+" 0 R");Pt.internal.write(" ] >>","endobj"),wt=Pt.internal.newObject(),Pt.internal.write("<< /Dests "+ze+" 0 R"),Pt.internal.write(">>","endobj")}}]),Et.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+wt+" 0 R"))}]),Et.events.push(["initialized",function(){var Pt=this;Pt.outline={createNamedDestinations:!1,root:{children:[]}},Pt.outline.add=function(Qt,ie,Yt){var ge={title:ie,options:Yt,children:[]};return Qt==null&&(Qt=this.root),Qt.children.push(ge),ge},Pt.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Pt,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Pt.outline.genIds_r=function(Qt){Qt.id=Pt.internal.newObjectDeferred();for(var ie=0;ie<Qt.children.length;ie++)this.genIds_r(Qt.children[ie])},Pt.outline.renderRoot=function(Qt){this.objStart(Qt),this.line("/Type /Outlines"),Qt.children.length>0&&(this.line("/First "+this.makeRef(Qt.children[0])),this.line("/Last "+this.makeRef(Qt.children[Qt.children.length-1]))),this.line("/Count "+this.count_r({count:0},Qt)),this.objEnd()},Pt.outline.renderItems=function(Qt){for(var ie=this.ctx.pdf.internal.getVerticalCoordinateString,Yt=0;Yt<Qt.children.length;Yt++){var ge=Qt.children[Yt];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(Qt)),Yt>0&&this.line("/Prev "+this.makeRef(Qt.children[Yt-1])),Yt<Qt.children.length-1&&this.line("/Next "+this.makeRef(Qt.children[Yt+1])),ge.children.length>0&&(this.line("/First "+this.makeRef(ge.children[0])),this.line("/Last "+this.makeRef(ge.children[ge.children.length-1])));var we=this.count=this.count_r({count:0},ge);if(we>0&&this.line("/Count "+we),ge.options&&ge.options.pageNumber){var Pe=Pt.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+Pe.objId+" 0 R /XYZ 0 "+ie(0)+" 0]")}this.objEnd()}for(var Xe=0;Xe<Qt.children.length;Xe++)this.renderItems(Qt.children[Xe])},Pt.outline.line=function(Qt){this.ctx.val+=Qt+`\r
`},Pt.outline.makeRef=function(Qt){return Qt.id+" 0 R"},Pt.outline.makeString=function(Qt){return"("+Pt.internal.pdfEscape(Qt)+")"},Pt.outline.objStart=function(Qt){this.ctx.val+=`\r
`+Qt.id+` 0 obj\r
<<\r
`},Pt.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Pt.outline.count_r=function(Qt,ie){for(var Yt=0;Yt<ie.children.length;Yt++)Qt.count++,this.count_r(Qt,ie.children[Yt]);return Qt.count}}])}(Qo.API),function(Et){var wt=[192,193,194,195,196,197,198,199];Et.processJPEG=function(Pt,Qt,ie,Yt,ge,we){var Pe,Xe=this.decode.DCT_DECODE,dn=null;if(typeof Pt=="string"||this.__addimage__.isArrayBuffer(Pt)||this.__addimage__.isArrayBufferView(Pt)){switch(Pt=ge||Pt,Pt=this.__addimage__.isArrayBuffer(Pt)?new Uint8Array(Pt):Pt,(Pe=function(An){for(var Pn,ze=256*An.charCodeAt(4)+An.charCodeAt(5),mi=An.length,ti={width:0,height:0,numcomponents:1},vi=4;vi<mi;vi+=2){if(vi+=ze,wt.indexOf(An.charCodeAt(vi+1))!==-1){Pn=256*An.charCodeAt(vi+5)+An.charCodeAt(vi+6),ti={width:256*An.charCodeAt(vi+7)+An.charCodeAt(vi+8),height:Pn,numcomponents:An.charCodeAt(vi+9)};break}ze=256*An.charCodeAt(vi+2)+An.charCodeAt(vi+3)}return ti}(Pt=this.__addimage__.isArrayBufferView(Pt)?this.__addimage__.arrayBufferToBinaryString(Pt):Pt)).numcomponents){case 1:we=this.color_spaces.DEVICE_GRAY;break;case 4:we=this.color_spaces.DEVICE_CMYK;break;case 3:we=this.color_spaces.DEVICE_RGB}dn={data:Pt,width:Pe.width,height:Pe.height,colorSpace:we,bitsPerComponent:8,filter:Xe,index:Qt,alias:ie}}return dn}}(Qo.API);var ll,zd,td,Bh,Ro,sA=function(){var Et,wt,Pt;function Qt(Yt){var ge,we,Pe,Xe,dn,An,Pn,ze,mi,ti,vi,Rn,Ai,Qi;for(this.data=Yt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},An=null;;){switch(ge=this.readUInt32(),mi=function(){var rr,Fr;for(Fr=[],rr=0;rr<4;++rr)Fr.push(String.fromCharCode(this.data[this.pos++]));return Fr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ge);break;case"fcTL":An&&this.animation.frames.push(An),this.pos+=4,An={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},dn=this.readUInt16(),Xe=this.readUInt16()||100,An.delay=1e3*dn/Xe,An.disposeOp=this.data[this.pos++],An.blendOp=this.data[this.pos++],An.data=[];break;case"IDAT":case"fdAT":for(mi==="fdAT"&&(this.pos+=4,ge-=4),Yt=(An!=null?An.data:void 0)||this.imgData,Rn=0;0<=ge?Rn<ge:Rn>ge;0<=ge?++Rn:--Rn)Yt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Pe=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>Pe)throw new Error("More transparent colors than palette size");if((ti=Pe-this.transparency.indexed.length)>0)for(Ai=0;0<=ti?Ai<ti:Ai>ti;0<=ti?++Ai:--Ai)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ge)[0];break;case 2:this.transparency.rgb=this.read(ge)}break;case"tEXt":Pn=(vi=this.read(ge)).indexOf(0),ze=String.fromCharCode.apply(String,vi.slice(0,Pn)),this.text[ze]=String.fromCharCode.apply(String,vi.slice(Pn+1));break;case"IEND":return An&&this.animation.frames.push(An),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Qi=this.colorType)===4||Qi===6,we=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*we,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=ge}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Qt.prototype.read=function(Yt){var ge,we;for(we=[],ge=0;0<=Yt?ge<Yt:ge>Yt;0<=Yt?++ge:--ge)we.push(this.data[this.pos++]);return we},Qt.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Qt.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Qt.prototype.decodePixels=function(Yt){var ge=this.pixelBitlength/8,we=new Uint8Array(this.width*this.height*ge),Pe=0,Xe=this;if(Yt==null&&(Yt=this.imgData),Yt.length===0)return new Uint8Array(0);function dn(An,Pn,ze,mi){var ti,vi,Rn,Ai,Qi,rr,Fr,lo,mr,Oi,Cr,Or,Jn,oi,pe,me,Ze,Ye,mn,en,Tn,Un=Math.ceil((Xe.width-An)/ze),qn=Math.ceil((Xe.height-Pn)/mi),Qe=Xe.width==Un&&Xe.height==qn;for(oi=ge*Un,Or=Qe?we:new Uint8Array(oi*qn),rr=Yt.length,Jn=0,vi=0;Jn<qn&&Pe<rr;){switch(Yt[Pe++]){case 0:for(Ai=Ze=0;Ze<oi;Ai=Ze+=1)Or[vi++]=Yt[Pe++];break;case 1:for(Ai=Ye=0;Ye<oi;Ai=Ye+=1)ti=Yt[Pe++],Qi=Ai<ge?0:Or[vi-ge],Or[vi++]=(ti+Qi)%256;break;case 2:for(Ai=mn=0;mn<oi;Ai=mn+=1)ti=Yt[Pe++],Rn=(Ai-Ai%ge)/ge,pe=Jn&&Or[(Jn-1)*oi+Rn*ge+Ai%ge],Or[vi++]=(pe+ti)%256;break;case 3:for(Ai=en=0;en<oi;Ai=en+=1)ti=Yt[Pe++],Rn=(Ai-Ai%ge)/ge,Qi=Ai<ge?0:Or[vi-ge],pe=Jn&&Or[(Jn-1)*oi+Rn*ge+Ai%ge],Or[vi++]=(ti+Math.floor((Qi+pe)/2))%256;break;case 4:for(Ai=Tn=0;Tn<oi;Ai=Tn+=1)ti=Yt[Pe++],Rn=(Ai-Ai%ge)/ge,Qi=Ai<ge?0:Or[vi-ge],Jn===0?pe=me=0:(pe=Or[(Jn-1)*oi+Rn*ge+Ai%ge],me=Rn&&Or[(Jn-1)*oi+(Rn-1)*ge+Ai%ge]),Fr=Qi+pe-me,lo=Math.abs(Fr-Qi),Oi=Math.abs(Fr-pe),Cr=Math.abs(Fr-me),mr=lo<=Oi&&lo<=Cr?Qi:Oi<=Cr?pe:me,Or[vi++]=(ti+mr)%256;break;default:throw new Error("Invalid filter algorithm: "+Yt[Pe-1])}if(!Qe){var un=((Pn+Jn*mi)*Xe.width+An)*ge,pn=Jn*oi;for(Ai=0;Ai<Un;Ai+=1){for(var Qn=0;Qn<ge;Qn+=1)we[un++]=Or[pn++];un+=(ze-1)*ge}}Jn++}}return Yt=wn(Yt),Xe.interlaceMethod==1?(dn(0,0,8,8),dn(4,0,8,8),dn(0,4,4,8),dn(2,0,4,4),dn(0,2,2,4),dn(1,0,2,2),dn(0,1,1,2)):dn(0,0,1,1),we},Qt.prototype.decodePalette=function(){var Yt,ge,we,Pe,Xe,dn,An,Pn,ze;for(we=this.palette,dn=this.transparency.indexed||[],Xe=new Uint8Array((dn.length||0)+we.length),Pe=0,Yt=0,ge=An=0,Pn=we.length;An<Pn;ge=An+=3)Xe[Pe++]=we[ge],Xe[Pe++]=we[ge+1],Xe[Pe++]=we[ge+2],Xe[Pe++]=(ze=dn[Yt++])!=null?ze:255;return Xe},Qt.prototype.copyToImageData=function(Yt,ge){var we,Pe,Xe,dn,An,Pn,ze,mi,ti,vi,Rn;if(Pe=this.colors,ti=null,we=this.hasAlphaChannel,this.palette.length&&(ti=(Rn=this._decodedPalette)!=null?Rn:this._decodedPalette=this.decodePalette(),Pe=4,we=!0),mi=(Xe=Yt.data||Yt).length,An=ti||ge,dn=Pn=0,Pe===1)for(;dn<mi;)ze=ti?4*ge[dn/4]:Pn,vi=An[ze++],Xe[dn++]=vi,Xe[dn++]=vi,Xe[dn++]=vi,Xe[dn++]=we?An[ze++]:255,Pn=ze;else for(;dn<mi;)ze=ti?4*ge[dn/4]:Pn,Xe[dn++]=An[ze++],Xe[dn++]=An[ze++],Xe[dn++]=An[ze++],Xe[dn++]=we?An[ze++]:255,Pn=ze},Qt.prototype.decode=function(){var Yt;return Yt=new Uint8Array(this.width*this.height*4),this.copyToImageData(Yt,this.decodePixels()),Yt};var ie=function(){if(Object.prototype.toString.call(kr)==="[object Window]"){try{wt=kr.document.createElement("canvas"),Pt=wt.getContext("2d")}catch(Yt){return!1}return!0}return!1};return ie(),Et=function(Yt){var ge;if(ie()===!0)return Pt.width=Yt.width,Pt.height=Yt.height,Pt.clearRect(0,0,Yt.width,Yt.height),Pt.putImageData(Yt,0,0),(ge=new Image).src=wt.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},Qt.prototype.decodeFrames=function(Yt){var ge,we,Pe,Xe,dn,An,Pn,ze;if(this.animation){for(ze=[],we=dn=0,An=(Pn=this.animation.frames).length;dn<An;we=++dn)ge=Pn[we],Pe=Yt.createImageData(ge.width,ge.height),Xe=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(Pe,Xe),ge.imageData=Pe,ze.push(ge.image=Et(Pe));return ze}},Qt.prototype.renderFrame=function(Yt,ge){var we,Pe,Xe;return we=(Pe=this.animation.frames)[ge],Xe=Pe[ge-1],ge===0&&Yt.clearRect(0,0,this.width,this.height),(Xe!=null?Xe.disposeOp:void 0)===1?Yt.clearRect(Xe.xOffset,Xe.yOffset,Xe.width,Xe.height):(Xe!=null?Xe.disposeOp:void 0)===2&&Yt.putImageData(Xe.imageData,Xe.xOffset,Xe.yOffset),we.blendOp===0&&Yt.clearRect(we.xOffset,we.yOffset,we.width,we.height),Yt.drawImage(we.image,we.xOffset,we.yOffset)},Qt.prototype.animate=function(Yt){var ge,we,Pe,Xe,dn,An,Pn=this;return we=0,An=this.animation,Xe=An.numFrames,Pe=An.frames,dn=An.numPlays,(ge=function(){var ze,mi;if(ze=we++%Xe,mi=Pe[ze],Pn.renderFrame(Yt,ze),Xe>1&&we/Xe<dn)return Pn.animation._timeout=setTimeout(ge,mi.delay)})()},Qt.prototype.stopAnimation=function(){var Yt;return clearTimeout((Yt=this.animation)!=null?Yt._timeout:void 0)},Qt.prototype.render=function(Yt){var ge,we;return Yt._png&&Yt._png.stopAnimation(),Yt._png=this,Yt.width=this.width,Yt.height=this.height,ge=Yt.getContext("2d"),this.animation?(this.decodeFrames(ge),this.animate(ge)):(we=ge.createImageData(this.width,this.height),this.copyToImageData(we,this.decodePixels()),ge.putImageData(we,0,0))},Qt}();function En(Et){var wt=0;if(Et[wt++]!==71||Et[wt++]!==73||Et[wt++]!==70||Et[wt++]!==56||(Et[wt++]+1&253)!=56||Et[wt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Pt=Et[wt++]|Et[wt++]<<8,Qt=Et[wt++]|Et[wt++]<<8,ie=Et[wt++],Yt=ie>>7,ge=1<<(7&ie)+1;Et[wt++],Et[wt++];var we=null,Pe=null;Yt&&(we=wt,Pe=ge,wt+=3*ge);var Xe=!0,dn=[],An=0,Pn=null,ze=0,mi=null;for(this.width=Pt,this.height=Qt;Xe&&wt<Et.length;)switch(Et[wt++]){case 33:switch(Et[wt++]){case 255:if(Et[wt]!==11||Et[wt+1]==78&&Et[wt+2]==69&&Et[wt+3]==84&&Et[wt+4]==83&&Et[wt+5]==67&&Et[wt+6]==65&&Et[wt+7]==80&&Et[wt+8]==69&&Et[wt+9]==50&&Et[wt+10]==46&&Et[wt+11]==48&&Et[wt+12]==3&&Et[wt+13]==1&&Et[wt+16]==0)wt+=14,mi=Et[wt++]|Et[wt++]<<8,wt++;else for(wt+=12;;){if(!((Jn=Et[wt++])>=0))throw Error("Invalid block size");if(Jn===0)break;wt+=Jn}break;case 249:if(Et[wt++]!==4||Et[wt+4]!==0)throw new Error("Invalid graphics extension block.");var ti=Et[wt++];An=Et[wt++]|Et[wt++]<<8,Pn=Et[wt++],!(1&ti)&&(Pn=null),ze=ti>>2&7,wt++;break;case 254:for(;;){if(!((Jn=Et[wt++])>=0))throw Error("Invalid block size");if(Jn===0)break;wt+=Jn}break;default:throw new Error("Unknown graphic control label: 0x"+Et[wt-1].toString(16))}break;case 44:var vi=Et[wt++]|Et[wt++]<<8,Rn=Et[wt++]|Et[wt++]<<8,Ai=Et[wt++]|Et[wt++]<<8,Qi=Et[wt++]|Et[wt++]<<8,rr=Et[wt++],Fr=rr>>6&1,lo=1<<(7&rr)+1,mr=we,Oi=Pe,Cr=!1;rr>>7&&(Cr=!0,mr=wt,Oi=lo,wt+=3*lo);var Or=wt;for(wt++;;){var Jn;if(!((Jn=Et[wt++])>=0))throw Error("Invalid block size");if(Jn===0)break;wt+=Jn}dn.push({x:vi,y:Rn,width:Ai,height:Qi,has_local_palette:Cr,palette_offset:mr,palette_size:Oi,data_offset:Or,data_length:wt-Or,transparent_index:Pn,interlaced:!!Fr,delay:An,disposal:ze});break;case 59:Xe=!1;break;default:throw new Error("Unknown gif block: 0x"+Et[wt-1].toString(16))}this.numFrames=function(){return dn.length},this.loopCount=function(){return mi},this.frameInfo=function(oi){if(oi<0||oi>=dn.length)throw new Error("Frame index out of range.");return dn[oi]},this.decodeAndBlitFrameBGRA=function(oi,pe){var me=this.frameInfo(oi),Ze=me.width*me.height,Ye=new Uint8Array(Ze);Vi(Et,me.data_offset,Ye,Ze);var mn=me.palette_offset,en=me.transparent_index;en===null&&(en=256);var Tn=me.width,Un=Pt-Tn,qn=Tn,Qe=4*(me.y*Pt+me.x),un=4*((me.y+me.height)*Pt+me.x),pn=Qe,Qn=4*Un;me.interlaced===!0&&(Qn+=4*Pt*7);for(var $n=8,ri=0,Fi=Ye.length;ri<Fi;++ri){var ui=Ye[ri];if(qn===0&&(qn=Tn,(pn+=Qn)>=un&&(Qn=4*Un+4*Pt*($n-1),pn=Qe+(Tn+Un)*($n<<1),$n>>=1)),ui===en)pn+=4;else{var Ji=Et[mn+3*ui],Zi=Et[mn+3*ui+1],Ar=Et[mn+3*ui+2];pe[pn++]=Ar,pe[pn++]=Zi,pe[pn++]=Ji,pe[pn++]=255}--qn}},this.decodeAndBlitFrameRGBA=function(oi,pe){var me=this.frameInfo(oi),Ze=me.width*me.height,Ye=new Uint8Array(Ze);Vi(Et,me.data_offset,Ye,Ze);var mn=me.palette_offset,en=me.transparent_index;en===null&&(en=256);var Tn=me.width,Un=Pt-Tn,qn=Tn,Qe=4*(me.y*Pt+me.x),un=4*((me.y+me.height)*Pt+me.x),pn=Qe,Qn=4*Un;me.interlaced===!0&&(Qn+=4*Pt*7);for(var $n=8,ri=0,Fi=Ye.length;ri<Fi;++ri){var ui=Ye[ri];if(qn===0&&(qn=Tn,(pn+=Qn)>=un&&(Qn=4*Un+4*Pt*($n-1),pn=Qe+(Tn+Un)*($n<<1),$n>>=1)),ui===en)pn+=4;else{var Ji=Et[mn+3*ui],Zi=Et[mn+3*ui+1],Ar=Et[mn+3*ui+2];pe[pn++]=Ji,pe[pn++]=Zi,pe[pn++]=Ar,pe[pn++]=255}--qn}}}function Vi(Et,wt,Pt,Qt){for(var ie=Et[wt++],Yt=1<<ie,ge=Yt+1,we=ge+1,Pe=ie+1,Xe=(1<<Pe)-1,dn=0,An=0,Pn=0,ze=Et[wt++],mi=new Int32Array(4096),ti=null;;){for(;dn<16&&ze!==0;)An|=Et[wt++]<<dn,dn+=8,ze===1?ze=Et[wt++]:--ze;if(dn<Pe)break;var vi=An&Xe;if(An>>=Pe,dn-=Pe,vi!==Yt){if(vi===ge)break;for(var Rn=vi<we?vi:ti,Ai=0,Qi=Rn;Qi>Yt;)Qi=mi[Qi]>>8,++Ai;var rr=Qi;if(Pn+Ai+(Rn!==vi?1:0)>Qt)return void Lo.log("Warning, gif stream longer than expected.");Pt[Pn++]=rr;var Fr=Pn+=Ai;for(Rn!==vi&&(Pt[Pn++]=rr),Qi=Rn;Ai--;)Qi=mi[Qi],Pt[--Fr]=255&Qi,Qi>>=8;ti!==null&&we<4096&&(mi[we++]=ti<<8|rr,we>=Xe+1&&Pe<12&&(++Pe,Xe=Xe<<1|1)),ti=vi}else we=ge+1,Xe=(1<<(Pe=ie+1))-1,ti=null}return Pn!==Qt&&Lo.log("Warning, gif stream shorter than expected."),Pt}function aA(Et){var wt,Pt,Qt,ie,Yt,ge=Math.floor,we=new Array(64),Pe=new Array(64),Xe=new Array(64),dn=new Array(64),An=new Array(65535),Pn=new Array(65535),ze=new Array(64),mi=new Array(64),ti=[],vi=0,Rn=7,Ai=new Array(64),Qi=new Array(64),rr=new Array(64),Fr=new Array(256),lo=new Array(2048),mr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Oi=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Cr=[0,1,2,3,4,5,6,7,8,9,10,11],Or=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Jn=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],oi=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],pe=[0,1,2,3,4,5,6,7,8,9,10,11],me=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ze=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Ye(Qe,un){for(var pn=0,Qn=0,$n=new Array,ri=1;ri<=16;ri++){for(var Fi=1;Fi<=Qe[ri];Fi++)$n[un[Qn]]=[],$n[un[Qn]][0]=pn,$n[un[Qn]][1]=ri,Qn++,pn++;pn*=2}return $n}function mn(Qe){for(var un=Qe[0],pn=Qe[1]-1;pn>=0;)un&1<<pn&&(vi|=1<<Rn),pn--,--Rn<0&&(vi==255?(en(255),en(0)):en(vi),Rn=7,vi=0)}function en(Qe){ti.push(Qe)}function Tn(Qe){en(Qe>>8&255),en(255&Qe)}function Un(Qe,un,pn,Qn,$n){for(var ri,Fi=$n[0],ui=$n[240],Ji=function(sr,ar){var er,vr,Vr,ho,po,_r,Do,us,Yo,ns,So=0;for(Yo=0;Yo<8;++Yo){er=sr[So],vr=sr[So+1],Vr=sr[So+2],ho=sr[So+3],po=sr[So+4],_r=sr[So+5],Do=sr[So+6];var va=er+(us=sr[So+7]),Vo=er-us,rs=vr+Do,Cs=vr-Do,ta=Vr+_r,Da=Vr-_r,Ys=ho+po,Ko=ho-po,Go=va+Ys,As=va-Ys,es=rs+ta,Os=rs-ta;sr[So]=Go+es,sr[So+4]=Go-es;var ro=.707106781*(Os+As);sr[So+2]=As+ro,sr[So+6]=As-ro;var Wo=.382683433*((Go=Ko+Da)-(Os=Cs+Vo)),aa=.5411961*Go+Wo,Us=1.306562965*Os+Wo,zl=.707106781*(es=Da+Cs),Fl=Vo+zl,Ps=Vo-zl;sr[So+5]=Ps+aa,sr[So+3]=Ps-aa,sr[So+1]=Fl+Us,sr[So+7]=Fl-Us,So+=8}for(So=0,Yo=0;Yo<8;++Yo){er=sr[So],vr=sr[So+8],Vr=sr[So+16],ho=sr[So+24],po=sr[So+32],_r=sr[So+40],Do=sr[So+48];var ca=er+(us=sr[So+56]),Ul=er-us,fo=vr+Do,ja=vr-Do,Gl=Vr+_r,ea=Vr-_r,la=ho+po,Na=ho-po,Va=ca+la,ol=ca-la,Rs=fo+Gl,Ia=fo-Gl;sr[So]=Va+Rs,sr[So+32]=Va-Rs;var xl=.707106781*(Ia+ol);sr[So+16]=ol+xl,sr[So+48]=ol-xl;var pu=.382683433*((Va=Na+ea)-(Ia=ja+Ul)),uu=.5411961*Va+pu,Ru=1.306562965*Ia+pu,$u=.707106781*(Rs=ea+ja),Ah=Ul+$u,Yu=Ul-$u;sr[So+40]=Yu+uu,sr[So+24]=Yu-uu,sr[So+8]=Ah+Ru,sr[So+56]=Ah-Ru,So++}for(Yo=0;Yo<64;++Yo)ns=sr[Yo]*ar[Yo],ze[Yo]=ns>0?ns+.5|0:ns-.5|0;return ze}(Qe,un),Zi=0;Zi<64;++Zi)mi[mr[Zi]]=Ji[Zi];var Ar=mi[0]-pn;pn=mi[0],Ar==0?mn(Qn[0]):(mn(Qn[Pn[ri=32767+Ar]]),mn(An[ri]));for(var Er=63;Er>0&&mi[Er]==0;)Er--;if(Er==0)return mn(Fi),pn;for(var io,ki=1;ki<=Er;){for(var Yn=ki;mi[ki]==0&&ki<=Er;)++ki;var Bo=ki-Yn;if(Bo>=16){io=Bo>>4;for(var Pr=1;Pr<=io;++Pr)mn(ui);Bo&=15}ri=32767+mi[ki],mn($n[(Bo<<4)+Pn[ri]]),mn(An[ri]),ki++}return Er!=63&&mn(Fi),pn}function qn(Qe){Qe=Math.min(Math.max(Qe,1),100),Yt!=Qe&&(function(un){for(var pn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Qn=0;Qn<64;Qn++){var $n=ge((pn[Qn]*un+50)/100);$n=Math.min(Math.max($n,1),255),we[mr[Qn]]=$n}for(var ri=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Fi=0;Fi<64;Fi++){var ui=ge((ri[Fi]*un+50)/100);ui=Math.min(Math.max(ui,1),255),Pe[mr[Fi]]=ui}for(var Ji=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Zi=0,Ar=0;Ar<8;Ar++)for(var Er=0;Er<8;Er++)Xe[Zi]=1/(we[mr[Zi]]*Ji[Ar]*Ji[Er]*8),dn[Zi]=1/(Pe[mr[Zi]]*Ji[Ar]*Ji[Er]*8),Zi++}(Qe<50?Math.floor(5e3/Qe):Math.floor(200-2*Qe)),Yt=Qe)}this.encode=function(Qe,un){un&&qn(un),ti=new Array,vi=0,Rn=7,Tn(65496),Tn(65504),Tn(16),en(74),en(70),en(73),en(70),en(0),en(1),en(1),en(0),Tn(1),Tn(1),en(0),en(0),function(){Tn(65499),Tn(132),en(0);for(var vr=0;vr<64;vr++)en(we[vr]);en(1);for(var Vr=0;Vr<64;Vr++)en(Pe[Vr])}(),function(vr,Vr){Tn(65472),Tn(17),en(8),Tn(Vr),Tn(vr),en(3),en(1),en(17),en(0),en(2),en(17),en(1),en(3),en(17),en(1)}(Qe.width,Qe.height),function(){Tn(65476),Tn(418),en(0);for(var vr=0;vr<16;vr++)en(Oi[vr+1]);for(var Vr=0;Vr<=11;Vr++)en(Cr[Vr]);en(16);for(var ho=0;ho<16;ho++)en(Or[ho+1]);for(var po=0;po<=161;po++)en(Jn[po]);en(1);for(var _r=0;_r<16;_r++)en(oi[_r+1]);for(var Do=0;Do<=11;Do++)en(pe[Do]);en(17);for(var us=0;us<16;us++)en(me[us+1]);for(var Yo=0;Yo<=161;Yo++)en(Ze[Yo])}(),Tn(65498),Tn(12),en(3),en(1),en(0),en(2),en(17),en(3),en(17),en(0),en(63),en(0);var pn=0,Qn=0,$n=0;vi=0,Rn=7,this.encode.displayName="_encode_";for(var ri,Fi,ui,Ji,Zi,Ar,Er,io,ki,Yn=Qe.data,Bo=Qe.width,Pr=Qe.height,sr=4*Bo,ar=0;ar<Pr;){for(ri=0;ri<sr;){for(Zi=sr*ar+ri,Er=-1,io=0,ki=0;ki<64;ki++)Ar=Zi+(io=ki>>3)*sr+(Er=4*(7&ki)),ar+io>=Pr&&(Ar-=sr*(ar+1+io-Pr)),ri+Er>=sr&&(Ar-=ri+Er-sr+4),Fi=Yn[Ar++],ui=Yn[Ar++],Ji=Yn[Ar++],Ai[ki]=(lo[Fi]+lo[ui+256>>0]+lo[Ji+512>>0]>>16)-128,Qi[ki]=(lo[Fi+768>>0]+lo[ui+1024>>0]+lo[Ji+1280>>0]>>16)-128,rr[ki]=(lo[Fi+1280>>0]+lo[ui+1536>>0]+lo[Ji+1792>>0]>>16)-128;pn=Un(Ai,Xe,pn,wt,Qt),Qn=Un(Qi,dn,Qn,Pt,ie),$n=Un(rr,dn,$n,Pt,ie),ri+=32}ar+=8}if(Rn>=0){var er=[];er[1]=Rn+1,er[0]=(1<<Rn+1)-1,mn(er)}return Tn(65497),new Uint8Array(ti)},Et=Et||50,function(){for(var Qe=String.fromCharCode,un=0;un<256;un++)Fr[un]=Qe(un)}(),wt=Ye(Oi,Cr),Pt=Ye(oi,pe),Qt=Ye(Or,Jn),ie=Ye(me,Ze),function(){for(var Qe=1,un=2,pn=1;pn<=15;pn++){for(var Qn=Qe;Qn<un;Qn++)Pn[32767+Qn]=pn,An[32767+Qn]=[],An[32767+Qn][1]=pn,An[32767+Qn][0]=Qn;for(var $n=-(un-1);$n<=-Qe;$n++)Pn[32767+$n]=pn,An[32767+$n]=[],An[32767+$n][1]=pn,An[32767+$n][0]=un-1+$n;Qe<<=1,un<<=1}}(),function(){for(var Qe=0;Qe<256;Qe++)lo[Qe]=19595*Qe,lo[Qe+256>>0]=38470*Qe,lo[Qe+512>>0]=7471*Qe+32768,lo[Qe+768>>0]=-11059*Qe,lo[Qe+1024>>0]=-21709*Qe,lo[Qe+1280>>0]=32768*Qe+8421375,lo[Qe+1536>>0]=-27439*Qe,lo[Qe+1792>>0]=-5329*Qe}(),qn(Et)}function ic(Et,wt){if(this.pos=0,this.buffer=Et,this.datav=new DataView(Et.buffer),this.is_with_alpha=!!wt,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Gu(Et){function wt(Oi){if(!Oi)throw Error("assert :P")}function Pt(Oi,Cr,Or){for(var Jn=0;4>Jn;Jn++)if(Oi[Cr+Jn]!=Or.charCodeAt(Jn))return!0;return!1}function Qt(Oi,Cr,Or,Jn,oi){for(var pe=0;pe<oi;pe++)Oi[Cr+pe]=Or[Jn+pe]}function ie(Oi,Cr,Or,Jn){for(var oi=0;oi<Jn;oi++)Oi[Cr+oi]=Or}function Yt(Oi){return new Int32Array(Oi)}function ge(Oi,Cr){for(var Or=[],Jn=0;Jn<Oi;Jn++)Or.push(new Cr);return Or}function we(Oi,Cr){var Or=[];return function Jn(oi,pe,me){for(var Ze=me[pe],Ye=0;Ye<Ze&&(oi.push(me.length>pe+1?[]:new Cr),!(me.length<pe+1));Ye++)Jn(oi[Ye],pe+1,me)}(Or,0,Oi),Or}var Pe=function(){var Oi=this;function Cr(St,zt){for(var de=1<<zt-1>>>0;St&de;)de>>>=1;return de?(St&de-1)+de:St}function Or(St,zt,de,be,rn){wt(!(be%de));do St[zt+(be-=de)]=rn;while(0<be)}function Jn(St,zt,de,be,rn){if(wt(2328>=rn),512>=rn)var hn=Yt(512);else if((hn=Yt(rn))==null)return 0;return function(cn,yn,In,zn,fi,qi){var tr,Ii,Wr=yn,Nr=1<<In,Hi=Yt(16),Ui=Yt(16);for(wt(fi!=0),wt(zn!=null),wt(cn!=null),wt(0<In),Ii=0;Ii<fi;++Ii){if(15<zn[Ii])return 0;++Hi[zn[Ii]]}if(Hi[0]==fi)return 0;for(Ui[1]=0,tr=1;15>tr;++tr){if(Hi[tr]>1<<tr)return 0;Ui[tr+1]=Ui[tr]+Hi[tr]}for(Ii=0;Ii<fi;++Ii)tr=zn[Ii],0<zn[Ii]&&(qi[Ui[tr]++]=Ii);if(Ui[15]==1)return(zn=new oi).g=0,zn.value=qi[0],Or(cn,Wr,1,Nr,zn),Nr;var Qr,uo=-1,$r=Nr-1,ls=0,Jo=1,ci=1,os=1<<In;for(Ii=0,tr=1,fi=2;tr<=In;++tr,fi<<=1){if(Jo+=ci<<=1,0>(ci-=Hi[tr]))return 0;for(;0<Hi[tr];--Hi[tr])(zn=new oi).g=tr,zn.value=qi[Ii++],Or(cn,Wr+ls,fi,os,zn),ls=Cr(ls,tr)}for(tr=In+1,fi=2;15>=tr;++tr,fi<<=1){if(Jo+=ci<<=1,0>(ci-=Hi[tr]))return 0;for(;0<Hi[tr];--Hi[tr]){if(zn=new oi,(ls&$r)!=uo){for(Wr+=os,Qr=1<<(uo=tr)-In;15>uo&&!(0>=(Qr-=Hi[uo]));)++uo,Qr<<=1;Nr+=os=1<<(Qr=uo-In),cn[yn+(uo=ls&$r)].g=Qr+In,cn[yn+uo].value=Wr-yn-uo}zn.g=tr-In,zn.value=qi[Ii++],Or(cn,Wr+(ls>>In),fi,os,zn),ls=Cr(ls,tr)}}return Jo!=2*Ui[15]-1?0:Nr}(St,zt,de,be,rn,hn)}function oi(){this.value=this.g=0}function pe(){this.value=this.g=0}function me(){this.G=ge(5,oi),this.H=Yt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(Iu,pe)}function Ze(St,zt,de,be){wt(St!=null),wt(zt!=null),wt(2147483648>be),St.Ca=254,St.I=0,St.b=-8,St.Ka=0,St.oa=zt,St.pa=de,St.Jd=zt,St.Yc=de+be,St.Zc=4<=be?de+be-4+1:de,ri(St)}function Ye(St,zt){for(var de=0;0<zt--;)de|=ui(St,128)<<zt;return de}function mn(St,zt){var de=Ye(St,zt);return Fi(St)?-de:de}function en(St,zt,de,be){var rn,hn=0;for(wt(St!=null),wt(zt!=null),wt(4294967288>be),St.Sb=be,St.Ra=0,St.u=0,St.h=0,4<be&&(be=4),rn=0;rn<be;++rn)hn+=zt[de+rn]<<8*rn;St.Ra=hn,St.bb=be,St.oa=zt,St.pa=de}function Tn(St){for(;8<=St.u&&St.bb<St.Sb;)St.Ra>>>=8,St.Ra+=St.oa[St.pa+St.bb]<<jh-8>>>0,++St.bb,St.u-=8;pn(St)&&(St.h=1,St.u=0)}function Un(St,zt){if(wt(0<=zt),!St.h&&zt<=Wl){var de=un(St)&Yd[zt];return St.u+=zt,Tn(St),de}return St.h=1,St.u=0}function qn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Qe(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function un(St){return St.Ra>>>(St.u&jh-1)>>>0}function pn(St){return wt(St.bb<=St.Sb),St.h||St.bb==St.Sb&&St.u>jh}function Qn(St,zt){St.u=zt,St.h=pn(St)}function $n(St){St.u>=mc&&(wt(St.u>=mc),Tn(St))}function ri(St){wt(St!=null&&St.oa!=null),St.pa<St.Zc?(St.I=(St.oa[St.pa++]|St.I<<8)>>>0,St.b+=8):(wt(St!=null&&St.oa!=null),St.pa<St.Yc?(St.b+=8,St.I=St.oa[St.pa++]|St.I<<8):St.Ka?St.b=0:(St.I<<=8,St.b+=8,St.Ka=1))}function Fi(St){return Ye(St,1)}function ui(St,zt){var de=St.Ca;0>St.b&&ri(St);var be=St.b,rn=de*zt>>>8,hn=(St.I>>>be>rn)+0;for(hn?(de-=rn,St.I-=rn+1<<be>>>0):de=rn+1,be=de,rn=0;256<=be;)rn+=8,be>>=8;return be=7^rn+th[be],St.b-=be,St.Ca=(de<<be)-1,hn}function Ji(St,zt,de){St[zt+0]=de>>24&255,St[zt+1]=de>>16&255,St[zt+2]=de>>8&255,St[zt+3]=de>>0&255}function Zi(St,zt){return St[zt+0]<<0|St[zt+1]<<8}function Ar(St,zt){return Zi(St,zt)|St[zt+2]<<16}function Er(St,zt){return Zi(St,zt)|Zi(St,zt+2)<<16}function io(St,zt){var de=1<<zt;return wt(St!=null),wt(0<zt),St.X=Yt(de),St.X==null?0:(St.Mb=32-zt,St.Xa=zt,1)}function ki(St,zt){wt(St!=null),wt(zt!=null),wt(St.Xa==zt.Xa),Qt(zt.X,0,St.X,0,1<<zt.Xa)}function Yn(){this.X=[],this.Xa=this.Mb=0}function Bo(St,zt,de,be){wt(de!=null),wt(be!=null);var rn=de[0],hn=be[0];return rn==0&&(rn=(St*hn+zt/2)/zt),hn==0&&(hn=(zt*rn+St/2)/St),0>=rn||0>=hn?0:(de[0]=rn,be[0]=hn,1)}function Pr(St,zt){return St+(1<<zt)-1>>>zt}function sr(St,zt){return((4278255360&St)+(4278255360&zt)>>>0&4278255360)+((16711935&St)+(16711935&zt)>>>0&16711935)>>>0}function ar(St,zt){Oi[zt]=function(de,be,rn,hn,cn,yn,In){var zn;for(zn=0;zn<cn;++zn){var fi=Oi[St](yn[In+zn-1],rn,hn+zn);yn[In+zn]=sr(de[be+zn],fi)}}}function er(){this.ud=this.hd=this.jd=0}function vr(St,zt){return((4278124286&(St^zt))>>>1)+(St&zt)>>>0}function Vr(St){return 0<=St&&256>St?St:0>St?0:255<St?255:void 0}function ho(St,zt){return Vr(St+(St-zt+.5>>1))}function po(St,zt,de){return Math.abs(zt-de)-Math.abs(St-de)}function _r(St,zt,de,be,rn,hn,cn){for(be=hn[cn-1],de=0;de<rn;++de)hn[cn+de]=be=sr(St[zt+de],be)}function Do(St,zt,de,be,rn){var hn;for(hn=0;hn<de;++hn){var cn=St[zt+hn],yn=cn>>8&255,In=16711935&(In=(In=16711935&cn)+((yn<<16)+yn));be[rn+hn]=(4278255360&cn)+In>>>0}}function us(St,zt){zt.jd=St>>0&255,zt.hd=St>>8&255,zt.ud=St>>16&255}function Yo(St,zt,de,be,rn,hn){var cn;for(cn=0;cn<be;++cn){var yn=zt[de+cn],In=yn>>>8,zn=yn,fi=255&(fi=(fi=yn>>>16)+((St.jd<<24>>24)*(In<<24>>24)>>>5));zn=255&(zn=(zn=zn+((St.hd<<24>>24)*(In<<24>>24)>>>5))+((St.ud<<24>>24)*(fi<<24>>24)>>>5)),rn[hn+cn]=(4278255360&yn)+(fi<<16)+zn}}function ns(St,zt,de,be,rn){Oi[zt]=function(hn,cn,yn,In,zn,fi,qi,tr,Ii){for(In=qi;In<tr;++In)for(qi=0;qi<Ii;++qi)zn[fi++]=rn(yn[be(hn[cn++])])},Oi[St]=function(hn,cn,yn,In,zn,fi,qi){var tr=8>>hn.b,Ii=hn.Ea,Wr=hn.K[0],Nr=hn.w;if(8>tr)for(hn=(1<<hn.b)-1,Nr=(1<<tr)-1;cn<yn;++cn){var Hi,Ui=0;for(Hi=0;Hi<Ii;++Hi)Hi&hn||(Ui=be(In[zn++])),fi[qi++]=rn(Wr[Ui&Nr]),Ui>>=tr}else Oi["VP8LMapColor"+de](In,zn,Wr,Nr,fi,qi,cn,yn,Ii)}}function So(St,zt,de,be,rn){for(de=zt+de;zt<de;){var hn=St[zt++];be[rn++]=hn>>16&255,be[rn++]=hn>>8&255,be[rn++]=hn>>0&255}}function va(St,zt,de,be,rn){for(de=zt+de;zt<de;){var hn=St[zt++];be[rn++]=hn>>16&255,be[rn++]=hn>>8&255,be[rn++]=hn>>0&255,be[rn++]=hn>>24&255}}function Vo(St,zt,de,be,rn){for(de=zt+de;zt<de;){var hn=(cn=St[zt++])>>16&240|cn>>12&15,cn=cn>>0&240|cn>>28&15;be[rn++]=hn,be[rn++]=cn}}function rs(St,zt,de,be,rn){for(de=zt+de;zt<de;){var hn=(cn=St[zt++])>>16&248|cn>>13&7,cn=cn>>5&224|cn>>3&31;be[rn++]=hn,be[rn++]=cn}}function Cs(St,zt,de,be,rn){for(de=zt+de;zt<de;){var hn=St[zt++];be[rn++]=hn>>0&255,be[rn++]=hn>>8&255,be[rn++]=hn>>16&255}}function ta(St,zt,de,be,rn,hn){if(hn==0)for(de=zt+de;zt<de;)Ji(be,((hn=St[zt++])[0]>>24|hn[1]>>8&65280|hn[2]<<8&16711680|hn[3]<<24)>>>0),rn+=32;else Qt(be,rn,St,zt,de)}function Da(St,zt){Oi[zt][0]=Oi[St+"0"],Oi[zt][1]=Oi[St+"1"],Oi[zt][2]=Oi[St+"2"],Oi[zt][3]=Oi[St+"3"],Oi[zt][4]=Oi[St+"4"],Oi[zt][5]=Oi[St+"5"],Oi[zt][6]=Oi[St+"6"],Oi[zt][7]=Oi[St+"7"],Oi[zt][8]=Oi[St+"8"],Oi[zt][9]=Oi[St+"9"],Oi[zt][10]=Oi[St+"10"],Oi[zt][11]=Oi[St+"11"],Oi[zt][12]=Oi[St+"12"],Oi[zt][13]=Oi[St+"13"],Oi[zt][14]=Oi[St+"0"],Oi[zt][15]=Oi[St+"0"]}function Ys(St){return St==Wc||St==Jd||St==zf||St==Lh}function Ko(){this.eb=[],this.size=this.A=this.fb=0}function Go(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function As(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ko,this.f.kb=new Go,this.sd=null}function es(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Os(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ro(St){return alert("todo:WebPSamplerProcessPlane"),St.T}function Wo(St,zt){var de=St.T,be=zt.ba.f.RGBA,rn=be.eb,hn=be.fb+St.ka*be.A,cn=Tu[zt.ba.S],yn=St.y,In=St.O,zn=St.f,fi=St.N,qi=St.ea,tr=St.W,Ii=zt.cc,Wr=zt.dc,Nr=zt.Mc,Hi=zt.Nc,Ui=St.ka,Qr=St.ka+St.T,uo=St.U,$r=uo+1>>1;for(Ui==0?cn(yn,In,null,null,zn,fi,qi,tr,zn,fi,qi,tr,rn,hn,null,null,uo):(cn(zt.ec,zt.fc,yn,In,Ii,Wr,Nr,Hi,zn,fi,qi,tr,rn,hn-be.A,rn,hn,uo),++de);Ui+2<Qr;Ui+=2)Ii=zn,Wr=fi,Nr=qi,Hi=tr,fi+=St.Rc,tr+=St.Rc,hn+=2*be.A,cn(yn,(In+=2*St.fa)-St.fa,yn,In,Ii,Wr,Nr,Hi,zn,fi,qi,tr,rn,hn-be.A,rn,hn,uo);return In+=St.fa,St.j+Qr<St.o?(Qt(zt.ec,zt.fc,yn,In,uo),Qt(zt.cc,zt.dc,zn,fi,$r),Qt(zt.Mc,zt.Nc,qi,tr,$r),de--):1&Qr||cn(yn,In,null,null,zn,fi,qi,tr,zn,fi,qi,tr,rn,hn+be.A,null,null,uo),de}function aa(St,zt,de){var be=St.F,rn=[St.J];if(be!=null){var hn=St.U,cn=zt.ba.S,yn=cn==Sh||cn==zf;zt=zt.ba.f.RGBA;var In=[0],zn=St.ka;In[0]=St.T,St.Kb&&(zn==0?--In[0]:(--zn,rn[0]-=St.width),St.j+St.ka+St.T==St.o&&(In[0]=St.o-St.j-zn));var fi=zt.eb;zn=zt.fb+zn*zt.A,St=wa(be,rn[0],St.width,hn,In,fi,zn+(yn?0:3),zt.A),wt(de==In),St&&Ys(cn)&&yu(fi,zn,yn,hn,In,zt.A)}return 0}function Us(St){var zt=St.ma,de=zt.ba.S,be=11>de,rn=de==ad||de==hh||de==Sh||de==kl||de==12||Ys(de);if(zt.memory=null,zt.Ib=null,zt.Jb=null,zt.Nd=null,!Fd(zt.Oa,St,rn?11:12))return 0;if(rn&&Ys(de)&&Co(),St.da)alert("todo:use_scaling");else{if(be){if(zt.Ib=ro,St.Kb){if(de=St.U+1>>1,zt.memory=Yt(St.U+2*de),zt.memory==null)return 0;zt.ec=zt.memory,zt.fc=0,zt.cc=zt.ec,zt.dc=zt.fc+St.U,zt.Mc=zt.cc,zt.Nc=zt.dc+de,zt.Ib=Wo,Co()}}else alert("todo:EmitYUV");rn&&(zt.Jb=aa,be&&ur())}if(be&&!Dt){for(St=0;256>St;++St)kt[St]=89858*(St-128)+kA>>IA,Be[St]=-22014*(St-128)+kA,Rt[St]=-45773*(St-128),Ht[St]=113618*(St-128)+kA>>IA;for(St=Fc;St<Vf;++St)zt=76283*(St-16)+kA>>IA,$e[St-Fc]=Fh(zt,255),Fn[St-Fc]=Fh(zt+8>>4,15);Dt=1}return 1}function zl(St){var zt=St.ma,de=St.U,be=St.T;return wt(!(1&St.ka)),0>=de||0>=be?0:(de=zt.Ib(St,zt),zt.Jb!=null&&zt.Jb(St,zt,de),zt.Dc+=de,1)}function Fl(St){St.ma.memory=null}function Ps(St,zt,de,be){return Un(St,8)!=47?0:(zt[0]=Un(St,14)+1,de[0]=Un(St,14)+1,be[0]=Un(St,1),Un(St,3)!=0?0:!St.h)}function ca(St,zt){if(4>St)return St+1;var de=St-2>>1;return(2+(1&St)<<de)+Un(zt,de)+1}function Ul(St,zt){return 120<zt?zt-120:1<=(de=((de=NA[zt-1])>>4)*St+(8-(15&de)))?de:1;var de}function fo(St,zt,de){var be=un(de),rn=St[zt+=255&be].g-8;return 0<rn&&(Qn(de,de.u+8),be=un(de),zt+=St[zt].value,zt+=be&(1<<rn)-1),Qn(de,de.u+St[zt].g),St[zt].value}function ja(St,zt,de){return de.g+=St.g,de.value+=St.value<<zt>>>0,wt(8>=de.g),St.g}function Gl(St,zt,de){var be=St.xc;return wt((zt=be==0?0:St.vc[St.md*(de>>be)+(zt>>be)])<St.Wb),St.Ya[zt]}function ea(St,zt,de,be){var rn=St.ab,hn=St.c*zt,cn=St.C;zt=cn+zt;var yn=de,In=be;for(be=St.Ta,de=St.Ua;0<rn--;){var zn=St.gc[rn],fi=cn,qi=zt,tr=yn,Ii=In,Wr=(In=be,yn=de,zn.Ea);switch(wt(fi<qi),wt(qi<=zn.nc),zn.hc){case 2:Uh(tr,Ii,(qi-fi)*Wr,In,yn);break;case 0:var Nr=fi,Hi=qi,Ui=In,Qr=yn,uo=(os=zn).Ea;Nr==0&&(Vl(tr,Ii,null,null,1,Ui,Qr),_r(tr,Ii+1,0,0,uo-1,Ui,Qr+1),Ii+=uo,Qr+=uo,++Nr);for(var $r=1<<os.b,ls=$r-1,Jo=Pr(uo,os.b),ci=os.K,os=os.w+(Nr>>os.b)*Jo;Nr<Hi;){var Bl=ci,Pl=os,el=1;for(Ld(tr,Ii,Ui,Qr-uo,1,Ui,Qr);el<uo;){var za=(el&~ls)+$r;za>uo&&(za=uo),(0,mt[Bl[Pl++]>>8&15])(tr,Ii+ +el,Ui,Qr+el-uo,za-el,Ui,Qr+el),el=za}Ii+=uo,Qr+=uo,++Nr&ls||(os+=Jo)}qi!=zn.nc&&Qt(In,yn-Wr,In,yn+(qi-fi-1)*Wr,Wr);break;case 1:for(Wr=tr,Hi=Ii,uo=(tr=zn.Ea)-(Qr=tr&~(Ui=(Ii=1<<zn.b)-1)),Nr=Pr(tr,zn.b),$r=zn.K,zn=zn.w+(fi>>zn.b)*Nr;fi<qi;){for(ls=$r,Jo=zn,ci=new er,os=Hi+Qr,Bl=Hi+tr;Hi<os;)us(ls[Jo++],ci),pt(ci,Wr,Hi,Ii,In,yn),Hi+=Ii,yn+=Ii;Hi<Bl&&(us(ls[Jo++],ci),pt(ci,Wr,Hi,uo,In,yn),Hi+=uo,yn+=uo),++fi&Ui||(zn+=Nr)}break;case 3:if(tr==In&&Ii==yn&&0<zn.b){for(Hi=In,tr=Wr=yn+(qi-fi)*Wr-(Qr=(qi-fi)*Pr(zn.Ea,zn.b)),Ii=In,Ui=yn,Nr=[],Qr=(uo=Qr)-1;0<=Qr;--Qr)Nr[Qr]=Ii[Ui+Qr];for(Qr=uo-1;0<=Qr;--Qr)Hi[tr+Qr]=Nr[Qr];lh(zn,fi,qi,In,Wr,In,yn)}else lh(zn,fi,qi,tr,Ii,In,yn)}yn=be,In=de}In!=de&&Qt(be,de,yn,In,hn)}function la(St,zt){var de=St.V,be=St.Ba+St.c*St.C,rn=zt-St.C;if(wt(zt<=St.l.o),wt(16>=rn),0<rn){var hn=St.l,cn=St.Ta,yn=St.Ua,In=hn.width;if(ea(St,rn,de,be),rn=yn=[yn],wt((de=St.C)<(be=zt)),wt(hn.v<hn.va),be>hn.o&&(be=hn.o),de<hn.j){var zn=hn.j-de;de=hn.j,rn[0]+=zn*In}if(de>=be?de=0:(rn[0]+=4*hn.v,hn.ka=de-hn.j,hn.U=hn.va-hn.v,hn.T=be-de,de=1),de){if(yn=yn[0],11>(de=St.ca).S){var fi=de.f.RGBA,qi=(be=de.S,rn=hn.U,hn=hn.T,zn=fi.eb,fi.A),tr=hn;for(fi=fi.fb+St.Ma*fi.A;0<tr--;){var Ii=cn,Wr=yn,Nr=rn,Hi=zn,Ui=fi;switch(be){case du:Bt(Ii,Wr,Nr,Hi,Ui);break;case ad:Jt(Ii,Wr,Nr,Hi,Ui);break;case Wc:Jt(Ii,Wr,Nr,Hi,Ui),yu(Hi,Ui,0,Nr,1,0);break;case uc:De(Ii,Wr,Nr,Hi,Ui);break;case hh:ta(Ii,Wr,Nr,Hi,Ui,1);break;case Jd:ta(Ii,Wr,Nr,Hi,Ui,1),yu(Hi,Ui,0,Nr,1,0);break;case Sh:ta(Ii,Wr,Nr,Hi,Ui,0);break;case zf:ta(Ii,Wr,Nr,Hi,Ui,0),yu(Hi,Ui,1,Nr,1,0);break;case kl:Se(Ii,Wr,Nr,Hi,Ui);break;case Lh:Se(Ii,Wr,Nr,Hi,Ui),La(Hi,Ui,Nr,1,0);break;case eh:je(Ii,Wr,Nr,Hi,Ui);break;default:wt(0)}yn+=In,fi+=qi}St.Ma+=hn}else alert("todo:EmitRescaledRowsYUVA");wt(St.Ma<=de.height)}}St.C=zt,wt(St.C<=St.i)}function Na(St){var zt;if(0<St.ua)return 0;for(zt=0;zt<St.Wb;++zt){var de=St.Ya[zt].G,be=St.Ya[zt].H;if(0<de[1][be[1]+0].g||0<de[2][be[2]+0].g||0<de[3][be[3]+0].g)return 0}return 1}function Va(St,zt,de,be,rn,hn){if(St.Z!=0){var cn=St.qd,yn=St.rd;for(wt(Td[St.Z]!=null);zt<de;++zt)Td[St.Z](cn,yn,be,rn,be,rn,hn),cn=be,yn=rn,rn+=hn;St.qd=cn,St.rd=yn}}function ol(St,zt){var de=St.l.ma,be=de.Z==0||de.Z==1?St.l.j:St.C;if(be=St.C<be?be:St.C,wt(zt<=St.l.o),zt>be){var rn=St.l.width,hn=de.ca,cn=de.tb+rn*be,yn=St.V,In=St.Ba+St.c*be,zn=St.gc;wt(St.ab==1),wt(zn[0].hc==3),it(zn[0],be,zt,yn,In,hn,cn),Va(de,be,zt,hn,cn,rn)}St.C=St.Ma=zt}function Rs(St,zt,de,be,rn,hn,cn){var yn=St.$/be,In=St.$%be,zn=St.m,fi=St.s,qi=de+St.$,tr=qi;rn=de+be*rn;var Ii=de+be*hn,Wr=280+fi.ua,Nr=St.Pb?yn:16777216,Hi=0<fi.ua?fi.Wa:null,Ui=fi.wc,Qr=qi<Ii?Gl(fi,In,yn):null;wt(St.C<hn),wt(Ii<=rn);var uo=!1;t:for(;;){for(;uo||qi<Ii;){var $r=0;if(yn>=Nr){var ls=qi-de;wt((Nr=St).Pb),Nr.wd=Nr.m,Nr.xd=ls,0<Nr.s.ua&&ki(Nr.s.Wa,Nr.s.vb),Nr=yn+WA}if(In&Ui||(Qr=Gl(fi,In,yn)),wt(Qr!=null),Qr.Qb&&(zt[qi]=Qr.qb,uo=!0),!uo)if($n(zn),Qr.jc){$r=zn,ls=zt;var Jo=qi,ci=Qr.pd[un($r)&Iu-1];wt(Qr.jc),256>ci.g?(Qn($r,$r.u+ci.g),ls[Jo]=ci.value,$r=0):(Qn($r,$r.u+ci.g-256),wt(256<=ci.value),$r=ci.value),$r==0&&(uo=!0)}else $r=fo(Qr.G[0],Qr.H[0],zn);if(zn.h)break;if(uo||256>$r){if(!uo)if(Qr.nd)zt[qi]=(Qr.qb|$r<<8)>>>0;else{if($n(zn),uo=fo(Qr.G[1],Qr.H[1],zn),$n(zn),ls=fo(Qr.G[2],Qr.H[2],zn),Jo=fo(Qr.G[3],Qr.H[3],zn),zn.h)break;zt[qi]=(Jo<<24|uo<<16|$r<<8|ls)>>>0}if(uo=!1,++qi,++In>=be&&(In=0,++yn,cn!=null&&yn<=hn&&!(yn%16)&&cn(St,yn),Hi!=null))for(;tr<qi;)$r=zt[tr++],Hi.X[(506832829*$r&4294967295)>>>Hi.Mb]=$r}else if(280>$r){if($r=ca($r-256,zn),ls=fo(Qr.G[4],Qr.H[4],zn),$n(zn),ls=Ul(be,ls=ca(ls,zn)),zn.h)break;if(qi-de<ls||rn-qi<$r)break t;for(Jo=0;Jo<$r;++Jo)zt[qi+Jo]=zt[qi+Jo-ls];for(qi+=$r,In+=$r;In>=be;)In-=be,++yn,cn!=null&&yn<=hn&&!(yn%16)&&cn(St,yn);if(wt(qi<=rn),In&Ui&&(Qr=Gl(fi,In,yn)),Hi!=null)for(;tr<qi;)$r=zt[tr++],Hi.X[(506832829*$r&4294967295)>>>Hi.Mb]=$r}else{if(!($r<Wr))break t;for(uo=$r-280,wt(Hi!=null);tr<qi;)$r=zt[tr++],Hi.X[(506832829*$r&4294967295)>>>Hi.Mb]=$r;$r=qi,wt(!(uo>>>(ls=Hi).Xa)),zt[$r]=ls.X[uo],uo=!0}uo||wt(zn.h==pn(zn))}if(St.Pb&&zn.h&&qi<rn)wt(St.m.h),St.a=5,St.m=St.wd,St.$=St.xd,0<St.s.ua&&ki(St.s.vb,St.s.Wa);else{if(zn.h)break t;cn!=null&&cn(St,yn>hn?hn:yn),St.a=0,St.$=qi-de}return 1}return St.a=3,0}function Ia(St){wt(St!=null),St.vc=null,St.yc=null,St.Ya=null;var zt=St.Wa;zt!=null&&(zt.X=null),St.vb=null,wt(St!=null)}function xl(){var St=new EA;return St==null?null:(St.a=0,St.xb=kd,Da("Predictor","VP8LPredictors"),Da("Predictor","VP8LPredictors_C"),Da("PredictorAdd","VP8LPredictorsAdd"),Da("PredictorAdd","VP8LPredictorsAdd_C"),Uh=Do,pt=Yo,Bt=So,Jt=va,Se=Vo,je=rs,De=Cs,Oi.VP8LMapColor32b=sd,Oi.VP8LMapColor8b=st,St)}function pu(St,zt,de,be,rn){var hn=1,cn=[St],yn=[zt],In=be.m,zn=be.s,fi=null,qi=0;t:for(;;){if(de)for(;hn&&Un(In,1);){var tr=cn,Ii=yn,Wr=be,Nr=1,Hi=Wr.m,Ui=Wr.gc[Wr.ab],Qr=Un(Hi,2);if(Wr.Oc&1<<Qr)hn=0;else{switch(Wr.Oc|=1<<Qr,Ui.hc=Qr,Ui.Ea=tr[0],Ui.nc=Ii[0],Ui.K=[null],++Wr.ab,wt(4>=Wr.ab),Qr){case 0:case 1:Ui.b=Un(Hi,3)+2,Nr=pu(Pr(Ui.Ea,Ui.b),Pr(Ui.nc,Ui.b),0,Wr,Ui.K),Ui.K=Ui.K[0];break;case 3:var uo,$r=Un(Hi,8)+1,ls=16<$r?0:4<$r?1:2<$r?2:3;if(tr[0]=Pr(Ui.Ea,ls),Ui.b=ls,uo=Nr=pu($r,1,0,Wr,Ui.K)){var Jo,ci=$r,os=Ui,Bl=1<<(8>>os.b),Pl=Yt(Bl);if(Pl==null)uo=0;else{var el=os.K[0],za=os.w;for(Pl[0]=os.K[0][0],Jo=1;Jo<1*ci;++Jo)Pl[Jo]=sr(el[za+Jo],Pl[Jo-1]);for(;Jo<4*Bl;++Jo)Pl[Jo]=0;os.K[0]=null,os.K[0]=Pl,uo=1}}Nr=uo;break;case 2:break;default:wt(0)}hn=Nr}}if(cn=cn[0],yn=yn[0],hn&&Un(In,1)&&!(hn=1<=(qi=Un(In,4))&&11>=qi)){be.a=3;break t}var Ra;if(Ra=hn)e:{var hl,Ma,Wh,ud=be,Rh=cn,hd=yn,Tl=qi,cd=de,dd=ud.m,Vh=ud.s,hc=[null],Vc=1,qd=0,TA=Kf[Tl];n:for(;;){if(cd&&Un(dd,1)){var ou=Un(dd,3)+2,uf=Pr(Rh,ou),OA=Pr(hd,ou),Zf=uf*OA;if(!pu(uf,OA,0,ud,hc))break n;for(hc=hc[0],Vh.xc=ou,hl=0;hl<Zf;++hl){var DA=hc[hl]>>8&65535;hc[hl]=DA,DA>=Vc&&(Vc=DA+1)}}if(dd.h)break n;for(Ma=0;5>Ma;++Ma){var gh=yf[Ma];!Ma&&0<Tl&&(gh+=1<<Tl),qd<gh&&(qd=gh)}var Zg=ge(Vc*TA,oi),Bp=Vc,Xg=ge(Bp,me);if(Xg==null)var Zc=null;else wt(65536>=Bp),Zc=Xg;var Bg=Yt(qd);if(Zc==null||Bg==null||Zg==null){ud.a=1;break n}var $g=Zg;for(hl=Wh=0;hl<Vc;++hl){var ch=Zc[hl],Xc=ch.G,Mh=ch.H,Zl=0,Xf=1,Yg=0;for(Ma=0;5>Ma;++Ma){gh=yf[Ma],Xc[Ma]=$g,Mh[Ma]=Wh,!Ma&&0<Tl&&(gh+=1<<Tl);r:{var Pg,$f=gh,Yf=ud,ko=Bg,Sf=$g,bg=Wh,Jg=0,jA=Yf.m,Pp=Un(jA,1);if(ie(ko,0,0,$f),Pp){var Cf=Un(jA,1)+1,n0=Un(jA,1),um=Un(jA,n0==0?1:8);ko[um]=1,Cf==2&&(ko[um=Un(jA,8)]=1);var Ad=1}else{var bp=Yt(19),Ep=Un(jA,4)+4;if(19<Ep){Yf.a=3;var sa=0;break r}for(Pg=0;Pg<Ep;++Pg)bp[GA[Pg]]=Un(jA,3);var fd=void 0,Eg=void 0,Fg=Yf,hm=bp,hf=$f,$c=ko,Jf=0,cf=Fg.m,cm=8,qg=ge(128,oi);i:for(;Jn(qg,0,7,hm,19);){if(Un(cf,1)){var Fp=2+2*Un(cf,3);if((fd=2+Un(cf,Fp))>hf)break i}else fd=hf;for(Eg=0;Eg<hf&&fd--;){$n(cf);var Lp=qg[0+(127&un(cf))];Qn(cf,cf.u+Lp.g);var qf=Lp.value;if(16>qf)$c[Eg++]=qf,qf!=0&&(cm=qf);else{var dm=qf==16,Am=qf-16,fm=Md[Am],tp=Un(cf,Sg[Am])+fm;if(Eg+tp>hf)break i;for(var ep=dm?cm:0;0<tp--;)$c[Eg++]=ep}}Jf=1;break i}Jf||(Fg.a=3),Ad=Jf}(Ad=Ad&&!jA.h)&&(Jg=Jn(Sf,bg,8,ko,$f)),Ad&&Jg!=0?sa=Jg:(Yf.a=3,sa=0)}if(sa==0)break n;if(Xf&&wf[Ma]==1&&(Xf=$g[Wh].g==0),Zl+=$g[Wh].g,Wh+=sa,3>=Ma){var Lg,gm=Bg[0];for(Lg=1;Lg<gh;++Lg)Bg[Lg]>gm&&(gm=Bg[Lg]);Yg+=gm}}if(ch.nd=Xf,ch.Qb=0,Xf&&(ch.qb=(Xc[3][Mh[3]+0].value<<24|Xc[1][Mh[1]+0].value<<16|Xc[2][Mh[2]+0].value)>>>0,Zl==0&&256>Xc[0][Mh[0]+0].value&&(ch.Qb=1,ch.qb+=Xc[0][Mh[0]+0].value<<8)),ch.jc=!ch.Qb&&6>Yg,ch.jc){var Mg,$A=ch;for(Mg=0;Mg<Iu;++Mg){var UA=Mg,YA=$A.pd[UA],Bf=$A.G[0][$A.H[0]+UA];256<=Bf.value?(YA.g=Bf.g+256,YA.value=Bf.value):(YA.g=0,YA.value=0,UA>>=ja(Bf,8,YA),UA>>=ja($A.G[1][$A.H[1]+UA],16,YA),UA>>=ja($A.G[2][$A.H[2]+UA],0,YA),ja($A.G[3][$A.H[3]+UA],24,YA))}}}Vh.vc=hc,Vh.Wb=Vc,Vh.Ya=Zc,Vh.yc=Zg,Ra=1;break e}Ra=0}if(!(hn=Ra)){be.a=3;break t}if(0<qi){if(zn.ua=1<<qi,!io(zn.Wa,qi)){be.a=1,hn=0;break t}}else zn.ua=0;var Mp=be,Nh=cn,Np=yn,np=Mp.s,Od=np.xc;if(Mp.c=Nh,Mp.i=Np,np.md=Pr(Nh,Od),np.wc=Od==0?-1:(1<<Od)-1,de){be.xb=ld;break t}if((fi=Yt(cn*yn))==null){be.a=1,hn=0;break t}hn=(hn=Rs(be,fi,0,cn,yn,yn,null))&&!In.h;break t}return hn?(rn!=null?rn[0]=fi:(wt(fi==null),wt(de)),be.$=0,de||Ia(zn)):Ia(zn),hn}function uu(St,zt){var de=St.c*St.i,be=de+zt+16*zt;return wt(St.c<=zt),St.V=Yt(be),St.V==null?(St.Ta=null,St.Ua=0,St.a=1,0):(St.Ta=St.V,St.Ua=St.Ba+de+zt,1)}function Ru(St,zt){var de=St.C,be=zt-de,rn=St.V,hn=St.Ba+St.c*de;for(wt(zt<=St.l.o);0<be;){var cn=16<be?16:be,yn=St.l.ma,In=St.l.width,zn=In*cn,fi=yn.ca,qi=yn.tb+In*de,tr=St.Ta,Ii=St.Ua;ea(St,cn,rn,hn),gl(tr,Ii,fi,qi,zn),Va(yn,de,de+cn,fi,qi,In),be-=cn,rn+=cn*St.c,de+=cn}wt(de==zt),St.C=St.Ma=zt}function $u(){this.ub=this.yd=this.td=this.Rb=0}function Ah(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Yu(){this.Fb=this.Bb=this.Cb=0,this.Zb=Yt(4),this.Lb=Yt(4)}function Ua(){this.Yb=function(){var St=[];return function zt(de,be,rn){for(var hn=rn[be],cn=0;cn<hn&&(de.push(rn.length>be+1?[]:0),!(rn.length<be+1));cn++)zt(de[cn],be+1,rn)}(St,0,[3,11]),St}()}function Bu(){this.jb=Yt(3),this.Wc=we([4,8],Ua),this.Xc=we([4,17],Ua)}function Rl(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Yt(4),this.od=new Yt(4)}function tl(){this.ld=this.La=this.dd=this.tc=0}function vh(){this.Na=this.la=0}function Cc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yh(){this.ad=Yt(384),this.Za=0,this.Ob=Yt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function rc(){this.uc=this.M=this.Nb=0,this.wa=Array(new tl),this.Y=0,this.ya=Array(new yh),this.aa=0,this.l=new fa}function oc(){this.y=Yt(16),this.f=Yt(8),this.ea=Yt(8)}function wh(){this.cb=this.a=0,this.sc="",this.m=new qn,this.Od=new $u,this.Kc=new Ah,this.ed=new Rl,this.Qa=new Yu,this.Ic=this.$c=this.Aa=0,this.D=new rc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ge(8,qn),this.ia=0,this.pb=ge(4,Cc),this.Pa=new Bu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new oc),this.Hd=0,this.rb=Array(new vh),this.sb=0,this.wa=Array(new tl),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new yh),this.L=this.aa=0,this.gd=we([4,2],tl),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function fa(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Sl(){var St=new wh;return St!=null&&(St.a=0,St.sc="OK",St.cb=0,St.Xb=0,nh||(nh=hu)),St}function Ca(St,zt,de){return St.a==0&&(St.a=zt,St.sc=de,St.cb=0),0}function Al(St,zt,de){return 3<=de&&St[zt+0]==157&&St[zt+1]==1&&St[zt+2]==42}function ga(St,zt){if(St==null)return 0;if(St.a=0,St.sc="OK",zt==null)return Ca(St,2,"null VP8Io passed to VP8GetHeaders()");var de=zt.data,be=zt.w,rn=zt.ha;if(4>rn)return Ca(St,7,"Truncated header.");var hn=de[be+0]|de[be+1]<<8|de[be+2]<<16,cn=St.Od;if(cn.Rb=!(1&hn),cn.td=hn>>1&7,cn.yd=hn>>4&1,cn.ub=hn>>5,3<cn.td)return Ca(St,3,"Incorrect keyframe parameters.");if(!cn.yd)return Ca(St,4,"Frame not displayable.");be+=3,rn-=3;var yn=St.Kc;if(cn.Rb){if(7>rn)return Ca(St,7,"cannot parse picture header");if(!Al(de,be,rn))return Ca(St,3,"Bad code word");yn.c=16383&(de[be+4]<<8|de[be+3]),yn.Td=de[be+4]>>6,yn.i=16383&(de[be+6]<<8|de[be+5]),yn.Ud=de[be+6]>>6,be+=7,rn-=7,St.za=yn.c+15>>4,St.Ub=yn.i+15>>4,zt.width=yn.c,zt.height=yn.i,zt.Da=0,zt.j=0,zt.v=0,zt.va=zt.width,zt.o=zt.height,zt.da=0,zt.ib=zt.width,zt.hb=zt.height,zt.U=zt.width,zt.T=zt.height,ie((hn=St.Pa).jb,0,255,hn.jb.length),wt((hn=St.Qa)!=null),hn.Cb=0,hn.Bb=0,hn.Fb=1,ie(hn.Zb,0,0,hn.Zb.length),ie(hn.Lb,0,0,hn.Lb)}if(cn.ub>rn)return Ca(St,7,"bad partition length");Ze(hn=St.m,de,be,cn.ub),be+=cn.ub,rn-=cn.ub,cn.Rb&&(yn.Ld=Fi(hn),yn.Kd=Fi(hn)),yn=St.Qa;var In,zn=St.Pa;if(wt(hn!=null),wt(yn!=null),yn.Cb=Fi(hn),yn.Cb){if(yn.Bb=Fi(hn),Fi(hn)){for(yn.Fb=Fi(hn),In=0;4>In;++In)yn.Zb[In]=Fi(hn)?mn(hn,7):0;for(In=0;4>In;++In)yn.Lb[In]=Fi(hn)?mn(hn,6):0}if(yn.Bb)for(In=0;3>In;++In)zn.jb[In]=Fi(hn)?Ye(hn,8):255}else yn.Bb=0;if(hn.Ka)return Ca(St,3,"cannot parse segment header");if((yn=St.ed).zd=Fi(hn),yn.Tb=Ye(hn,6),yn.wb=Ye(hn,3),yn.Pc=Fi(hn),yn.Pc&&Fi(hn)){for(zn=0;4>zn;++zn)Fi(hn)&&(yn.vd[zn]=mn(hn,6));for(zn=0;4>zn;++zn)Fi(hn)&&(yn.od[zn]=mn(hn,6))}if(St.L=yn.Tb==0?0:yn.zd?1:2,hn.Ka)return Ca(St,3,"cannot parse filter header");var fi=rn;if(rn=In=be,be=In+fi,yn=fi,St.Xb=(1<<Ye(St.m,2))-1,fi<3*(zn=St.Xb))de=7;else{for(In+=3*zn,yn-=3*zn,fi=0;fi<zn;++fi){var qi=de[rn+0]|de[rn+1]<<8|de[rn+2]<<16;qi>yn&&(qi=yn),Ze(St.Jc[+fi],de,In,qi),In+=qi,yn-=qi,rn+=3}Ze(St.Jc[+zn],de,In,yn),de=In<be?0:5}if(de!=0)return Ca(St,de,"cannot parse partitions");for(de=Ye(In=St.m,7),rn=Fi(In)?mn(In,4):0,be=Fi(In)?mn(In,4):0,yn=Fi(In)?mn(In,4):0,zn=Fi(In)?mn(In,4):0,In=Fi(In)?mn(In,4):0,fi=St.Qa,qi=0;4>qi;++qi){if(fi.Cb){var tr=fi.Zb[qi];fi.Fb||(tr+=de)}else{if(0<qi){St.pb[qi]=St.pb[0];continue}tr=de}var Ii=St.pb[qi];Ii.Sc[0]=Nd[Fh(tr+rn,127)],Ii.Sc[1]=Hu[Fh(tr+0,127)],Ii.Eb[0]=2*Nd[Fh(tr+be,127)],Ii.Eb[1]=101581*Hu[Fh(tr+yn,127)]>>16,8>Ii.Eb[1]&&(Ii.Eb[1]=8),Ii.Qc[0]=Nd[Fh(tr+zn,117)],Ii.Qc[1]=Hu[Fh(tr+In,127)],Ii.lc=tr+In}if(!cn.Rb)return Ca(St,4,"Not a key frame.");for(Fi(hn),cn=St.Pa,de=0;4>de;++de){for(rn=0;8>rn;++rn)for(be=0;3>be;++be)for(yn=0;11>yn;++yn)zn=ui(hn,Wf[de][rn][be][yn])?Ye(hn,8):VA[de][rn][be][yn],cn.Wc[de][rn].Yb[be][yn]=zn;for(rn=0;17>rn;++rn)cn.Xc[de][rn]=cn.Wc[de][Cp[rn]]}return St.kc=Fi(hn),St.kc&&(St.Bd=Ye(hn,8)),St.cb=1}function hu(St,zt,de,be,rn,hn,cn){var yn=zt[rn].Yb[de];for(de=0;16>rn;++rn){if(!ui(St,yn[de+0]))return rn;for(;!ui(St,yn[de+1]);)if(yn=zt[++rn].Yb[0],de=0,rn==16)return 16;var In=zt[rn+1].Yb;if(ui(St,yn[de+2])){var zn=St,fi=0;if(ui(zn,(tr=yn)[(qi=de)+3]))if(ui(zn,tr[qi+6])){for(yn=0,qi=2*(fi=ui(zn,tr[qi+8]))+(tr=ui(zn,tr[qi+9+fi])),fi=0,tr=Gf[qi];tr[yn];++yn)fi+=fi+ui(zn,tr[yn]);fi+=3+(8<<qi)}else ui(zn,tr[qi+7])?(fi=7+2*ui(zn,165),fi+=ui(zn,145)):fi=5+ui(zn,159);else fi=ui(zn,tr[qi+4])?3+ui(zn,tr[qi+5]):2;yn=In[2]}else fi=1,yn=In[1];In=cn+Sp[rn],0>(zn=St).b&&ri(zn);var qi,tr=zn.b,Ii=(qi=zn.Ca>>1)-(zn.I>>tr)>>31;--zn.b,zn.Ca+=Ii,zn.Ca|=1,zn.I-=(qi+1&Ii)<<tr,hn[In]=((fi^Ii)-Ii)*be[(0<rn)+0]}return 16}function Fu(St){var zt=St.rb[St.sb-1];zt.la=0,zt.Na=0,ie(St.zc,0,0,St.zc.length),St.ja=0}function Kh(St,zt){if(St==null)return 0;if(zt==null)return Ca(St,2,"NULL VP8Io parameter in VP8Decode().");if(!St.cb&&!ga(St,zt))return 0;if(wt(St.cb),zt.ac==null||zt.ac(zt)){zt.ob&&(St.L=0);var de=jn[St.L];if(St.L==2?(St.yb=0,St.zb=0):(St.yb=zt.v-de>>4,St.zb=zt.j-de>>4,0>St.yb&&(St.yb=0),0>St.zb&&(St.zb=0)),St.Va=zt.o+15+de>>4,St.Hb=zt.va+15+de>>4,St.Hb>St.za&&(St.Hb=St.za),St.Va>St.Ub&&(St.Va=St.Ub),0<St.L){var be=St.ed;for(de=0;4>de;++de){var rn;if(St.Qa.Cb){var hn=St.Qa.Lb[de];St.Qa.Fb||(hn+=be.Tb)}else hn=be.Tb;for(rn=0;1>=rn;++rn){var cn=St.gd[de][rn],yn=hn;if(be.Pc&&(yn+=be.vd[0],rn&&(yn+=be.od[0])),0<(yn=0>yn?0:63<yn?63:yn)){var In=yn;0<be.wb&&(In=4<be.wb?In>>2:In>>1)>9-be.wb&&(In=9-be.wb),1>In&&(In=1),cn.dd=In,cn.tc=2*yn+In,cn.ld=40<=yn?2:15<=yn?1:0}else cn.tc=0;cn.La=rn}}}de=0}else Ca(St,6,"Frame setup failed"),de=St.a;if(de=de==0){if(de){St.$c=0,0<St.Aa||(St.Ic=zi);t:{de=St.Ic,be=4*(In=St.za);var zn=32*In,fi=In+1,qi=0<St.L?In*(0<St.Aa?2:1):0,tr=(St.Aa==2?2:1)*In;if((cn=be+832+(rn=3*(16*de+jn[St.L])/2*zn)+(hn=St.Fa!=null&&0<St.Fa.length?St.Kc.c*St.Kc.i:0))!=cn)de=0;else{if(cn>St.Vb){if(St.Vb=0,St.Ec=Yt(cn),St.Fc=0,St.Ec==null){de=Ca(St,1,"no memory during frame initialization.");break t}St.Vb=cn}cn=St.Ec,yn=St.Fc,St.Ac=cn,St.Bc=yn,yn+=be,St.Gd=ge(zn,oc),St.Hd=0,St.rb=ge(fi+1,vh),St.sb=1,St.wa=qi?ge(qi,tl):null,St.Y=0,St.D.Nb=0,St.D.wa=St.wa,St.D.Y=St.Y,0<St.Aa&&(St.D.Y+=In),wt(!0),St.oc=cn,St.pc=yn,yn+=832,St.ya=ge(tr,yh),St.aa=0,St.D.ya=St.ya,St.D.aa=St.aa,St.Aa==2&&(St.D.aa+=In),St.R=16*In,St.B=8*In,In=(zn=jn[St.L])*St.R,zn=zn/2*St.B,St.sa=cn,St.ta=yn+In,St.qa=St.sa,St.ra=St.ta+16*de*St.R+zn,St.Ha=St.qa,St.Ia=St.ra+8*de*St.B+zn,St.$c=0,yn+=rn,St.mb=hn?cn:null,St.nb=hn?yn:null,wt(yn+hn<=St.Fc+St.Vb),Fu(St),ie(St.Ac,St.Bc,0,be),de=1}}if(de){if(zt.ka=0,zt.y=St.sa,zt.O=St.ta,zt.f=St.qa,zt.N=St.ra,zt.ea=St.Ha,zt.Vd=St.Ia,zt.fa=St.R,zt.Rc=St.B,zt.F=null,zt.J=0,!Il){for(de=-255;255>=de;++de)pl[255+de]=0>de?-de:de;for(de=-1020;1020>=de;++de)bo[1020+de]=-128>de?-128:127<de?127:de;for(de=-112;112>=de;++de)xa[112+de]=-16>de?-16:15<de?15:de;for(de=-255;510>=de;++de)Nl[255+de]=0>de?0:255<de?255:de;Il=1}an=Lu,si=nd,Ti=gc,bi=xd,Sr=SA,fn=lA,Dr=Qc,Jr=od,vo=Pc,Xo=KA,No=lf,as=uA,Ms=bd,Io=zc,na=Pd,Cl=Zu,ku=xh,ul=PA,Ec[0]=mu,Ec[1]=Kd,Ec[2]=Cd,Ec[3]=rd,Ec[4]=Gd,Ec[5]=qu,Ec[6]=Wd,Ec[7]=Rc,Ec[8]=Vd,Ec[9]=Bd,bc[0]=ah,bc[1]=CA,bc[2]=Uc,bc[3]=Sd,bc[4]=Vu,bc[5]=BA,bc[6]=Gh,Id[0]=_l,Id[1]=id,Id[2]=cu,Id[3]=vu,Id[4]=Za,Id[5]=ka,Id[6]=Mu,de=1}else de=0}de&&(de=function(Ii,Wr){for(Ii.M=0;Ii.M<Ii.Va;++Ii.M){var Nr,Hi=Ii.Jc[Ii.M&Ii.Xb],Ui=Ii.m,Qr=Ii;for(Nr=0;Nr<Qr.za;++Nr){var uo=Ui,$r=Qr,ls=$r.Ac,Jo=$r.Bc+4*Nr,ci=$r.zc,os=$r.ya[$r.aa+Nr];if($r.Qa.Bb?os.$b=ui(uo,$r.Pa.jb[0])?2+ui(uo,$r.Pa.jb[2]):ui(uo,$r.Pa.jb[1]):os.$b=0,$r.kc&&(os.Ad=ui(uo,$r.Bd)),os.Za=!ui(uo,145)+0,os.Za){var Bl=os.Ob,Pl=0;for($r=0;4>$r;++$r){var el,za=ci[0+$r];for(el=0;4>el;++el){za=ZA[ls[Jo+el]][za];for(var Ra=zg[ui(uo,za[0])];0<Ra;)Ra=zg[2*Ra+ui(uo,za[Ra])];za=-Ra,ls[Jo+el]=za}Qt(Bl,Pl,ls,Jo,4),Pl+=4,ci[0+$r]=za}}else za=ui(uo,156)?ui(uo,128)?1:3:ui(uo,163)?2:0,os.Ob[0]=za,ie(ls,Jo,za,4),ie(ci,0,za,4);os.Dd=ui(uo,142)?ui(uo,114)?ui(uo,183)?1:3:2:0}if(Qr.m.Ka)return Ca(Ii,7,"Premature end-of-partition0 encountered.");for(;Ii.ja<Ii.za;++Ii.ja){if(Qr=Hi,uo=(Ui=Ii).rb[Ui.sb-1],ls=Ui.rb[Ui.sb+Ui.ja],Nr=Ui.ya[Ui.aa+Ui.ja],Jo=Ui.kc?Nr.Ad:0)uo.la=ls.la=0,Nr.Za||(uo.Na=ls.Na=0),Nr.Hc=0,Nr.Gc=0,Nr.ia=0;else{var hl,Ma;if(uo=ls,ls=Qr,Jo=Ui.Pa.Xc,ci=Ui.ya[Ui.aa+Ui.ja],os=Ui.pb[ci.$b],$r=ci.ad,Bl=0,Pl=Ui.rb[Ui.sb-1],za=el=0,ie($r,Bl,0,384),ci.Za)var Wh=0,ud=Jo[3];else{Ra=Yt(16);var Rh=uo.Na+Pl.Na;if(Rh=nh(ls,Jo[1],Rh,os.Eb,0,Ra,0),uo.Na=Pl.Na=(0<Rh)+0,1<Rh)an(Ra,0,$r,Bl);else{var hd=Ra[0]+3>>3;for(Ra=0;256>Ra;Ra+=16)$r[Bl+Ra]=hd}Wh=1,ud=Jo[0]}var Tl=15&uo.la,cd=15&Pl.la;for(Ra=0;4>Ra;++Ra){var dd=1&cd;for(hd=Ma=0;4>hd;++hd)Tl=Tl>>1|(dd=(Rh=nh(ls,ud,Rh=dd+(1&Tl),os.Sc,Wh,$r,Bl))>Wh)<<7,Ma=Ma<<2|(3<Rh?3:1<Rh?2:$r[Bl+0]!=0),Bl+=16;Tl>>=4,cd=cd>>1|dd<<7,el=(el<<8|Ma)>>>0}for(ud=Tl,Wh=cd>>4,hl=0;4>hl;hl+=2){for(Ma=0,Tl=uo.la>>4+hl,cd=Pl.la>>4+hl,Ra=0;2>Ra;++Ra){for(dd=1&cd,hd=0;2>hd;++hd)Rh=dd+(1&Tl),Tl=Tl>>1|(dd=0<(Rh=nh(ls,Jo[2],Rh,os.Qc,0,$r,Bl)))<<3,Ma=Ma<<2|(3<Rh?3:1<Rh?2:$r[Bl+0]!=0),Bl+=16;Tl>>=2,cd=cd>>1|dd<<5}za|=Ma<<4*hl,ud|=Tl<<4<<hl,Wh|=(240&cd)<<hl}uo.la=ud,Pl.la=Wh,ci.Hc=el,ci.Gc=za,ci.ia=43690&za?0:os.ia,Jo=!(el|za)}if(0<Ui.L&&(Ui.wa[Ui.Y+Ui.ja]=Ui.gd[Nr.$b][Nr.Za],Ui.wa[Ui.Y+Ui.ja].La|=!Jo),Qr.Ka)return Ca(Ii,7,"Premature end-of-file encountered.")}if(Fu(Ii),Ui=Wr,Qr=1,Nr=(Hi=Ii).D,uo=0<Hi.L&&Hi.M>=Hi.zb&&Hi.M<=Hi.Va,Hi.Aa==0)t:{if(Nr.M=Hi.M,Nr.uc=uo,MA(Hi,Nr),Qr=1,Nr=(Ma=Hi.D).Nb,uo=(za=jn[Hi.L])*Hi.R,ls=za/2*Hi.B,Ra=16*Nr*Hi.R,hd=8*Nr*Hi.B,Jo=Hi.sa,ci=Hi.ta-uo+Ra,os=Hi.qa,$r=Hi.ra-ls+hd,Bl=Hi.Ha,Pl=Hi.Ia-ls+hd,cd=(Tl=Ma.M)==0,el=Tl>=Hi.Va-1,Hi.Aa==2&&MA(Hi,Ma),Ma.uc)for(dd=(Rh=Hi).D.M,wt(Rh.D.uc),Ma=Rh.yb;Ma<Rh.Hb;++Ma){Wh=Ma,ud=dd;var Vh=(hc=(gh=Rh).D).Nb;hl=gh.R;var hc=hc.wa[hc.Y+Wh],Vc=gh.sa,qd=gh.ta+16*Vh*hl+16*Wh,TA=hc.dd,ou=hc.tc;if(ou!=0)if(wt(3<=ou),gh.L==1)0<Wh&&Cl(Vc,qd,hl,ou+4),hc.La&&ul(Vc,qd,hl,ou),0<ud&&na(Vc,qd,hl,ou+4),hc.La&&ku(Vc,qd,hl,ou);else{var uf=gh.B,OA=gh.qa,Zf=gh.ra+8*Vh*uf+8*Wh,DA=gh.Ha,gh=gh.Ia+8*Vh*uf+8*Wh;Vh=hc.ld,0<Wh&&(Jr(Vc,qd,hl,ou+4,TA,Vh),Xo(OA,Zf,DA,gh,uf,ou+4,TA,Vh)),hc.La&&(as(Vc,qd,hl,ou,TA,Vh),Io(OA,Zf,DA,gh,uf,ou,TA,Vh)),0<ud&&(Dr(Vc,qd,hl,ou+4,TA,Vh),vo(OA,Zf,DA,gh,uf,ou+4,TA,Vh)),hc.La&&(No(Vc,qd,hl,ou,TA,Vh),Ms(OA,Zf,DA,gh,uf,ou,TA,Vh))}}if(Hi.ia&&alert("todo:DitherRow"),Ui.put!=null){if(Ma=16*Tl,Tl=16*(Tl+1),cd?(Ui.y=Hi.sa,Ui.O=Hi.ta+Ra,Ui.f=Hi.qa,Ui.N=Hi.ra+hd,Ui.ea=Hi.Ha,Ui.W=Hi.Ia+hd):(Ma-=za,Ui.y=Jo,Ui.O=ci,Ui.f=os,Ui.N=$r,Ui.ea=Bl,Ui.W=Pl),el||(Tl-=za),Tl>Ui.o&&(Tl=Ui.o),Ui.F=null,Ui.J=null,Hi.Fa!=null&&0<Hi.Fa.length&&Ma<Tl&&(Ui.J=FA(Hi,Ui,Ma,Tl-Ma),Ui.F=Hi.mb,Ui.F==null&&Ui.F.length==0)){Qr=Ca(Hi,3,"Could not decode alpha data.");break t}Ma<Ui.j&&(za=Ui.j-Ma,Ma=Ui.j,wt(!(1&za)),Ui.O+=Hi.R*za,Ui.N+=Hi.B*(za>>1),Ui.W+=Hi.B*(za>>1),Ui.F!=null&&(Ui.J+=Ui.width*za)),Ma<Tl&&(Ui.O+=Ui.v,Ui.N+=Ui.v>>1,Ui.W+=Ui.v>>1,Ui.F!=null&&(Ui.J+=Ui.v),Ui.ka=Ma-Ui.j,Ui.U=Ui.va-Ui.v,Ui.T=Tl-Ma,Qr=Ui.put(Ui))}Nr+1!=Hi.Ic||el||(Qt(Hi.sa,Hi.ta-uo,Jo,ci+16*Hi.R,uo),Qt(Hi.qa,Hi.ra-ls,os,$r+8*Hi.B,ls),Qt(Hi.Ha,Hi.Ia-ls,Bl,Pl+8*Hi.B,ls))}if(!Qr)return Ca(Ii,6,"Output aborted.")}return 1}(St,zt)),zt.bc!=null&&zt.bc(zt),de&=1}return de?(St.cb=0,de):0}function Th(St,zt,de,be,rn){rn=St[zt+de+32*be]+(rn>>3),St[zt+de+32*be]=-256&rn?0>rn?0:255:rn}function _n(St,zt,de,be,rn,hn){Th(St,zt,0,de,be+rn),Th(St,zt,1,de,be+hn),Th(St,zt,2,de,be-hn),Th(St,zt,3,de,be-rn)}function _u(St){return(20091*St>>16)+St}function Oh(St,zt,de,be){var rn,hn=0,cn=Yt(16);for(rn=0;4>rn;++rn){var yn=St[zt+0]+St[zt+8],In=St[zt+0]-St[zt+8],zn=(35468*St[zt+4]>>16)-_u(St[zt+12]),fi=_u(St[zt+4])+(35468*St[zt+12]>>16);cn[hn+0]=yn+fi,cn[hn+1]=In+zn,cn[hn+2]=In-zn,cn[hn+3]=yn-fi,hn+=4,zt++}for(rn=hn=0;4>rn;++rn)yn=(St=cn[hn+0]+4)+cn[hn+8],In=St-cn[hn+8],zn=(35468*cn[hn+4]>>16)-_u(cn[hn+12]),Th(de,be,0,0,yn+(fi=_u(cn[hn+4])+(35468*cn[hn+12]>>16))),Th(de,be,1,0,In+zn),Th(de,be,2,0,In-zn),Th(de,be,3,0,yn-fi),hn++,be+=32}function lA(St,zt,de,be){var rn=St[zt+0]+4,hn=35468*St[zt+4]>>16,cn=_u(St[zt+4]),yn=35468*St[zt+1]>>16;_n(de,be,0,rn+cn,St=_u(St[zt+1]),yn),_n(de,be,1,rn+hn,St,yn),_n(de,be,2,rn-hn,St,yn),_n(de,be,3,rn-cn,St,yn)}function nd(St,zt,de,be,rn){Oh(St,zt,de,be),rn&&Oh(St,zt+16,de,be+4)}function gc(St,zt,de,be){si(St,zt+0,de,be,1),si(St,zt+32,de,be+128,1)}function xd(St,zt,de,be){var rn;for(St=St[zt+0]+4,rn=0;4>rn;++rn)for(zt=0;4>zt;++zt)Th(de,be,zt,rn,St)}function SA(St,zt,de,be){St[zt+0]&&bi(St,zt+0,de,be),St[zt+16]&&bi(St,zt+16,de,be+4),St[zt+32]&&bi(St,zt+32,de,be+128),St[zt+48]&&bi(St,zt+48,de,be+128+4)}function Lu(St,zt,de,be){var rn,hn=Yt(16);for(rn=0;4>rn;++rn){var cn=St[zt+0+rn]+St[zt+12+rn],yn=St[zt+4+rn]+St[zt+8+rn],In=St[zt+4+rn]-St[zt+8+rn],zn=St[zt+0+rn]-St[zt+12+rn];hn[0+rn]=cn+yn,hn[8+rn]=cn-yn,hn[4+rn]=zn+In,hn[12+rn]=zn-In}for(rn=0;4>rn;++rn)cn=(St=hn[0+4*rn]+3)+hn[3+4*rn],yn=hn[1+4*rn]+hn[2+4*rn],In=hn[1+4*rn]-hn[2+4*rn],zn=St-hn[3+4*rn],de[be+0]=cn+yn>>3,de[be+16]=zn+In>>3,de[be+32]=cn-yn>>3,de[be+48]=zn-In>>3,be+=64}function jc(St,zt,de){var be,rn=zt-32,hn=_s,cn=255-St[rn-1];for(be=0;be<de;++be){var yn,In=hn,zn=cn+St[zt-1];for(yn=0;yn<de;++yn)St[zt+yn]=In[zn+St[rn+yn]];zt+=32}}function Kd(St,zt){jc(St,zt,4)}function id(St,zt){jc(St,zt,8)}function CA(St,zt){jc(St,zt,16)}function Uc(St,zt){var de;for(de=0;16>de;++de)Qt(St,zt+32*de,St,zt-32,16)}function Sd(St,zt){var de;for(de=16;0<de;--de)ie(St,zt,St[zt-1],16),zt+=32}function Ju(St,zt,de){var be;for(be=0;16>be;++be)ie(zt,de+32*be,St,16)}function ah(St,zt){var de,be=16;for(de=0;16>de;++de)be+=St[zt-1+32*de]+St[zt+de-32];Ju(be>>5,St,zt)}function Vu(St,zt){var de,be=8;for(de=0;16>de;++de)be+=St[zt-1+32*de];Ju(be>>4,St,zt)}function BA(St,zt){var de,be=8;for(de=0;16>de;++de)be+=St[zt+de-32];Ju(be>>4,St,zt)}function Gh(St,zt){Ju(128,St,zt)}function ia(St,zt,de){return St+2*zt+de+2>>2}function Cd(St,zt){var de,be=zt-32;for(be=new Uint8Array([ia(St[be-1],St[be+0],St[be+1]),ia(St[be+0],St[be+1],St[be+2]),ia(St[be+1],St[be+2],St[be+3]),ia(St[be+2],St[be+3],St[be+4])]),de=0;4>de;++de)Qt(St,zt+32*de,be,0,be.length)}function rd(St,zt){var de=St[zt-1],be=St[zt-1+32],rn=St[zt-1+64],hn=St[zt-1+96];Ji(St,zt+0,16843009*ia(St[zt-1-32],de,be)),Ji(St,zt+32,16843009*ia(de,be,rn)),Ji(St,zt+64,16843009*ia(be,rn,hn)),Ji(St,zt+96,16843009*ia(rn,hn,hn))}function mu(St,zt){var de,be=4;for(de=0;4>de;++de)be+=St[zt+de-32]+St[zt-1+32*de];for(be>>=3,de=0;4>de;++de)ie(St,zt+32*de,be,4)}function Gd(St,zt){var de=St[zt-1+0],be=St[zt-1+32],rn=St[zt-1+64],hn=St[zt-1-32],cn=St[zt+0-32],yn=St[zt+1-32],In=St[zt+2-32],zn=St[zt+3-32];St[zt+0+96]=ia(be,rn,St[zt-1+96]),St[zt+1+96]=St[zt+0+64]=ia(de,be,rn),St[zt+2+96]=St[zt+1+64]=St[zt+0+32]=ia(hn,de,be),St[zt+3+96]=St[zt+2+64]=St[zt+1+32]=St[zt+0+0]=ia(cn,hn,de),St[zt+3+64]=St[zt+2+32]=St[zt+1+0]=ia(yn,cn,hn),St[zt+3+32]=St[zt+2+0]=ia(In,yn,cn),St[zt+3+0]=ia(zn,In,yn)}function Wd(St,zt){var de=St[zt+1-32],be=St[zt+2-32],rn=St[zt+3-32],hn=St[zt+4-32],cn=St[zt+5-32],yn=St[zt+6-32],In=St[zt+7-32];St[zt+0+0]=ia(St[zt+0-32],de,be),St[zt+1+0]=St[zt+0+32]=ia(de,be,rn),St[zt+2+0]=St[zt+1+32]=St[zt+0+64]=ia(be,rn,hn),St[zt+3+0]=St[zt+2+32]=St[zt+1+64]=St[zt+0+96]=ia(rn,hn,cn),St[zt+3+32]=St[zt+2+64]=St[zt+1+96]=ia(hn,cn,yn),St[zt+3+64]=St[zt+2+96]=ia(cn,yn,In),St[zt+3+96]=ia(yn,In,In)}function qu(St,zt){var de=St[zt-1+0],be=St[zt-1+32],rn=St[zt-1+64],hn=St[zt-1-32],cn=St[zt+0-32],yn=St[zt+1-32],In=St[zt+2-32],zn=St[zt+3-32];St[zt+0+0]=St[zt+1+64]=hn+cn+1>>1,St[zt+1+0]=St[zt+2+64]=cn+yn+1>>1,St[zt+2+0]=St[zt+3+64]=yn+In+1>>1,St[zt+3+0]=In+zn+1>>1,St[zt+0+96]=ia(rn,be,de),St[zt+0+64]=ia(be,de,hn),St[zt+0+32]=St[zt+1+96]=ia(de,hn,cn),St[zt+1+32]=St[zt+2+96]=ia(hn,cn,yn),St[zt+2+32]=St[zt+3+96]=ia(cn,yn,In),St[zt+3+32]=ia(yn,In,zn)}function Rc(St,zt){var de=St[zt+0-32],be=St[zt+1-32],rn=St[zt+2-32],hn=St[zt+3-32],cn=St[zt+4-32],yn=St[zt+5-32],In=St[zt+6-32],zn=St[zt+7-32];St[zt+0+0]=de+be+1>>1,St[zt+1+0]=St[zt+0+64]=be+rn+1>>1,St[zt+2+0]=St[zt+1+64]=rn+hn+1>>1,St[zt+3+0]=St[zt+2+64]=hn+cn+1>>1,St[zt+0+32]=ia(de,be,rn),St[zt+1+32]=St[zt+0+96]=ia(be,rn,hn),St[zt+2+32]=St[zt+1+96]=ia(rn,hn,cn),St[zt+3+32]=St[zt+2+96]=ia(hn,cn,yn),St[zt+3+64]=ia(cn,yn,In),St[zt+3+96]=ia(yn,In,zn)}function Bd(St,zt){var de=St[zt-1+0],be=St[zt-1+32],rn=St[zt-1+64],hn=St[zt-1+96];St[zt+0+0]=de+be+1>>1,St[zt+2+0]=St[zt+0+32]=be+rn+1>>1,St[zt+2+32]=St[zt+0+64]=rn+hn+1>>1,St[zt+1+0]=ia(de,be,rn),St[zt+3+0]=St[zt+1+32]=ia(be,rn,hn),St[zt+3+32]=St[zt+1+64]=ia(rn,hn,hn),St[zt+3+64]=St[zt+2+64]=St[zt+0+96]=St[zt+1+96]=St[zt+2+96]=St[zt+3+96]=hn}function Vd(St,zt){var de=St[zt-1+0],be=St[zt-1+32],rn=St[zt-1+64],hn=St[zt-1+96],cn=St[zt-1-32],yn=St[zt+0-32],In=St[zt+1-32],zn=St[zt+2-32];St[zt+0+0]=St[zt+2+32]=de+cn+1>>1,St[zt+0+32]=St[zt+2+64]=be+de+1>>1,St[zt+0+64]=St[zt+2+96]=rn+be+1>>1,St[zt+0+96]=hn+rn+1>>1,St[zt+3+0]=ia(yn,In,zn),St[zt+2+0]=ia(cn,yn,In),St[zt+1+0]=St[zt+3+32]=ia(de,cn,yn),St[zt+1+32]=St[zt+3+64]=ia(be,de,cn),St[zt+1+64]=St[zt+3+96]=ia(rn,be,de),St[zt+1+96]=ia(hn,rn,be)}function cu(St,zt){var de;for(de=0;8>de;++de)Qt(St,zt+32*de,St,zt-32,8)}function vu(St,zt){var de;for(de=0;8>de;++de)ie(St,zt,St[zt-1],8),zt+=32}function _c(St,zt,de){var be;for(be=0;8>be;++be)ie(zt,de+32*be,St,8)}function _l(St,zt){var de,be=8;for(de=0;8>de;++de)be+=St[zt+de-32]+St[zt-1+32*de];_c(be>>4,St,zt)}function ka(St,zt){var de,be=4;for(de=0;8>de;++de)be+=St[zt+de-32];_c(be>>3,St,zt)}function Za(St,zt){var de,be=4;for(de=0;8>de;++de)be+=St[zt-1+32*de];_c(be>>3,St,zt)}function Mu(St,zt){_c(128,St,zt)}function fh(St,zt,de){var be=St[zt-de],rn=St[zt+0],hn=3*(rn-be)+uh[1020+St[zt-2*de]-St[zt+de]],cn=Ta[112+(hn+4>>3)];St[zt-de]=_s[255+be+Ta[112+(hn+3>>3)]],St[zt+0]=_s[255+rn-cn]}function Eh(St,zt,de,be){var rn=St[zt+0],hn=St[zt+de];return wu[255+St[zt-2*de]-St[zt-de]]>be||wu[255+hn-rn]>be}function Zd(St,zt,de,be){return 4*wu[255+St[zt-de]-St[zt+0]]+wu[255+St[zt-2*de]-St[zt+de]]<=be}function Bc(St,zt,de,be,rn){var hn=St[zt-3*de],cn=St[zt-2*de],yn=St[zt-de],In=St[zt+0],zn=St[zt+de],fi=St[zt+2*de],qi=St[zt+3*de];return 4*wu[255+yn-In]+wu[255+cn-zn]>be?0:wu[255+St[zt-4*de]-hn]<=rn&&wu[255+hn-cn]<=rn&&wu[255+cn-yn]<=rn&&wu[255+qi-fi]<=rn&&wu[255+fi-zn]<=rn&&wu[255+zn-In]<=rn}function Pd(St,zt,de,be){var rn=2*be+1;for(be=0;16>be;++be)Zd(St,zt+be,de,rn)&&fh(St,zt+be,de)}function Zu(St,zt,de,be){var rn=2*be+1;for(be=0;16>be;++be)Zd(St,zt+be*de,1,rn)&&fh(St,zt+be*de,1)}function xh(St,zt,de,be){var rn;for(rn=3;0<rn;--rn)Pd(St,zt+=4*de,de,be)}function PA(St,zt,de,be){var rn;for(rn=3;0<rn;--rn)Zu(St,zt+=4,de,be)}function Hc(St,zt,de,be,rn,hn,cn,yn){for(hn=2*hn+1;0<rn--;){if(Bc(St,zt,de,hn,cn))if(Eh(St,zt,de,yn))fh(St,zt,de);else{var In=St,zn=zt,fi=de,qi=In[zn-2*fi],tr=In[zn-fi],Ii=In[zn+0],Wr=In[zn+fi],Nr=In[zn+2*fi],Hi=27*(Qr=uh[1020+3*(Ii-tr)+uh[1020+qi-Wr]])+63>>7,Ui=18*Qr+63>>7,Qr=9*Qr+63>>7;In[zn-3*fi]=_s[255+In[zn-3*fi]+Qr],In[zn-2*fi]=_s[255+qi+Ui],In[zn-fi]=_s[255+tr+Hi],In[zn+0]=_s[255+Ii-Hi],In[zn+fi]=_s[255+Wr-Ui],In[zn+2*fi]=_s[255+Nr-Qr]}zt+=be}}function sc(St,zt,de,be,rn,hn,cn,yn){for(hn=2*hn+1;0<rn--;){if(Bc(St,zt,de,hn,cn))if(Eh(St,zt,de,yn))fh(St,zt,de);else{var In=St,zn=zt,fi=de,qi=In[zn-fi],tr=In[zn+0],Ii=In[zn+fi],Wr=Ta[112+((Nr=3*(tr-qi))+4>>3)],Nr=Ta[112+(Nr+3>>3)],Hi=Wr+1>>1;In[zn-2*fi]=_s[255+In[zn-2*fi]+Hi],In[zn-fi]=_s[255+qi+Nr],In[zn+0]=_s[255+tr-Wr],In[zn+fi]=_s[255+Ii-Hi]}zt+=be}}function Qc(St,zt,de,be,rn,hn){Hc(St,zt,de,1,16,be,rn,hn)}function od(St,zt,de,be,rn,hn){Hc(St,zt,1,de,16,be,rn,hn)}function lf(St,zt,de,be,rn,hn){var cn;for(cn=3;0<cn;--cn)sc(St,zt+=4*de,de,1,16,be,rn,hn)}function uA(St,zt,de,be,rn,hn){var cn;for(cn=3;0<cn;--cn)sc(St,zt+=4,1,de,16,be,rn,hn)}function Pc(St,zt,de,be,rn,hn,cn,yn){Hc(St,zt,rn,1,8,hn,cn,yn),Hc(de,be,rn,1,8,hn,cn,yn)}function KA(St,zt,de,be,rn,hn,cn,yn){Hc(St,zt,1,rn,8,hn,cn,yn),Hc(de,be,1,rn,8,hn,cn,yn)}function bd(St,zt,de,be,rn,hn,cn,yn){sc(St,zt+4*rn,rn,1,8,hn,cn,yn),sc(de,be+4*rn,rn,1,8,hn,cn,yn)}function zc(St,zt,de,be,rn,hn,cn,yn){sc(St,zt+4,1,rn,8,hn,cn,yn),sc(de,be+4,1,rn,8,hn,cn,yn)}function Kc(){this.ba=new As,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Os,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function hA(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Dh(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bA(){this.ua=0,this.Wa=new Yn,this.vb=new Yn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new me,this.yc=new oi}function EA(){this.xb=this.a=0,this.l=new fa,this.ca=new As,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Qe,this.Pb=0,this.wd=new Qe,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new bA,this.ab=0,this.gc=ge(4,Dh),this.Oc=0}function cA(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new fa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Xd(St,zt,de,be,rn,hn,cn){for(St=St==null?0:St[zt+0],zt=0;zt<cn;++zt)rn[hn+zt]=St+de[be+zt]&255,St=rn[hn+zt]}function Ed(St,zt,de,be,rn,hn,cn){var yn;if(St==null)Xd(null,null,de,be,rn,hn,cn);else for(yn=0;yn<cn;++yn)rn[hn+yn]=St[zt+yn]+de[be+yn]&255}function $d(St,zt,de,be,rn,hn,cn){if(St==null)Xd(null,null,de,be,rn,hn,cn);else{var yn,In=St[zt+0],zn=In,fi=In;for(yn=0;yn<cn;++yn)zn=fi+(In=St[zt+yn])-zn,fi=de[be+yn]+(-256&zn?0>zn?0:255:zn)&255,zn=In,rn[hn+yn]=fi}}function FA(St,zt,de,be){var rn=zt.width,hn=zt.o;if(wt(St!=null&&zt!=null),0>de||0>=be||de+be>hn)return null;if(!St.Cc){if(St.ga==null){var cn;if(St.ga=new cA,(cn=St.ga==null)||(cn=zt.width*zt.o,wt(St.Gb.length==0),St.Gb=Yt(cn),St.Uc=0,St.Gb==null?cn=0:(St.mb=St.Gb,St.nb=St.Uc,St.rc=null,cn=1),cn=!cn),!cn){cn=St.ga;var yn=St.Fa,In=St.P,zn=St.qc,fi=St.mb,qi=St.nb,tr=In+1,Ii=zn-1,Wr=cn.l;if(wt(yn!=null&&fi!=null&&zt!=null),Td[0]=null,Td[1]=Xd,Td[2]=Ed,Td[3]=$d,cn.ca=fi,cn.tb=qi,cn.c=zt.width,cn.i=zt.height,wt(0<cn.c&&0<cn.i),1>=zn)zt=0;else if(cn.$a=yn[In+0]>>0&3,cn.Z=yn[In+0]>>2&3,cn.Lc=yn[In+0]>>4&3,In=yn[In+0]>>6&3,0>cn.$a||1<cn.$a||4<=cn.Z||1<cn.Lc||In)zt=0;else if(Wr.put=zl,Wr.ac=Us,Wr.bc=Fl,Wr.ma=cn,Wr.width=zt.width,Wr.height=zt.height,Wr.Da=zt.Da,Wr.v=zt.v,Wr.va=zt.va,Wr.j=zt.j,Wr.o=zt.o,cn.$a)t:{wt(cn.$a==1),zt=xl();e:for(;;){if(zt==null){zt=0;break t}if(wt(cn!=null),cn.mc=zt,zt.c=cn.c,zt.i=cn.i,zt.l=cn.l,zt.l.ma=cn,zt.l.width=cn.c,zt.l.height=cn.i,zt.a=0,en(zt.m,yn,tr,Ii),!pu(cn.c,cn.i,1,zt,null)||(zt.ab==1&&zt.gc[0].hc==3&&Na(zt.s)?(cn.ic=1,yn=zt.c*zt.i,zt.Ta=null,zt.Ua=0,zt.V=Yt(yn),zt.Ba=0,zt.V==null?(zt.a=1,zt=0):zt=1):(cn.ic=0,zt=uu(zt,cn.c)),!zt))break e;zt=1;break t}cn.mc=null,zt=0}else zt=Ii>=cn.c*cn.i;cn=!zt}if(cn)return null;St.ga.Lc!=1?St.Ga=0:be=hn-de}wt(St.ga!=null),wt(de+be<=hn);t:{if(zt=(yn=St.ga).c,hn=yn.l.o,yn.$a==0){if(tr=St.rc,Ii=St.Vc,Wr=St.Fa,In=St.P+1+de*zt,zn=St.mb,fi=St.nb+de*zt,wt(In<=St.P+St.qc),yn.Z!=0)for(wt(Td[yn.Z]!=null),cn=0;cn<be;++cn)Td[yn.Z](tr,Ii,Wr,In,zn,fi,zt),tr=zn,Ii=fi,fi+=zt,In+=zt;else for(cn=0;cn<be;++cn)Qt(zn,fi,Wr,In,zt),tr=zn,Ii=fi,fi+=zt,In+=zt;St.rc=tr,St.Vc=Ii}else{if(wt(yn.mc!=null),zt=de+be,wt((cn=yn.mc)!=null),wt(zt<=cn.i),cn.C>=zt)zt=1;else if(yn.ic||ur(),yn.ic){yn=cn.V,tr=cn.Ba,Ii=cn.c;var Nr=cn.i,Hi=(Wr=1,In=cn.$/Ii,zn=cn.$%Ii,fi=cn.m,qi=cn.s,cn.$),Ui=Ii*Nr,Qr=Ii*zt,uo=qi.wc,$r=Hi<Qr?Gl(qi,zn,In):null;wt(Hi<=Ui),wt(zt<=Nr),wt(Na(qi));e:for(;;){for(;!fi.h&&Hi<Qr;){if(zn&uo||($r=Gl(qi,zn,In)),wt($r!=null),$n(fi),256>(Nr=fo($r.G[0],$r.H[0],fi)))yn[tr+Hi]=Nr,++Hi,++zn>=Ii&&(zn=0,++In<=zt&&!(In%16)&&ol(cn,In));else{if(!(280>Nr)){Wr=0;break e}Nr=ca(Nr-256,fi);var ls,Jo=fo($r.G[4],$r.H[4],fi);if($n(fi),!(Hi>=(Jo=Ul(Ii,Jo=ca(Jo,fi)))&&Ui-Hi>=Nr)){Wr=0;break e}for(ls=0;ls<Nr;++ls)yn[tr+Hi+ls]=yn[tr+Hi+ls-Jo];for(Hi+=Nr,zn+=Nr;zn>=Ii;)zn-=Ii,++In<=zt&&!(In%16)&&ol(cn,In);Hi<Qr&&zn&uo&&($r=Gl(qi,zn,In))}wt(fi.h==pn(fi))}ol(cn,In>zt?zt:In);break e}!Wr||fi.h&&Hi<Ui?(Wr=0,cn.a=fi.h?5:3):cn.$=Hi,zt=Wr}else zt=Rs(cn,cn.V,cn.Ba,cn.c,cn.i,zt,Ru);if(!zt){be=0;break t}}de+be>=hn&&(St.Cc=1),be=1}if(!be)return null;if(St.Cc&&((be=St.ga)!=null&&(be.mc=null),St.ga=null,0<St.Ga))return alert("todo:WebPDequantizeLevels"),null}return St.nb+de*rn}function Ae(St,zt,de,be,rn,hn){for(;0<rn--;){var cn,yn=St,In=zt+(de?1:0),zn=St,fi=zt+(de?0:3);for(cn=0;cn<be;++cn){var qi=zn[fi+4*cn];qi!=255&&(qi*=32897,yn[In+4*cn+0]=yn[In+4*cn+0]*qi>>23,yn[In+4*cn+1]=yn[In+4*cn+1]*qi>>23,yn[In+4*cn+2]=yn[In+4*cn+2]*qi>>23)}zt+=hn}}function vn(St,zt,de,be,rn){for(;0<be--;){var hn;for(hn=0;hn<de;++hn){var cn=St[zt+2*hn+0],yn=15&(zn=St[zt+2*hn+1]),In=4369*yn,zn=(240&zn|zn>>4)*In>>16;St[zt+2*hn+0]=(240&cn|cn>>4)*In>>16&240|(15&cn|cn<<4)*In>>16>>4&15,St[zt+2*hn+1]=240&zn|yn}zt+=rn}}function Si(St,zt,de,be,rn,hn,cn,yn){var In,zn,fi=255;for(zn=0;zn<rn;++zn){for(In=0;In<be;++In){var qi=St[zt+In];hn[cn+4*In]=qi,fi&=qi}zt+=de,cn+=yn}return fi!=255}function _i(St,zt,de,be,rn){var hn;for(hn=0;hn<rn;++hn)de[be+hn]=St[zt+hn]>>8}function ur(){yu=Ae,La=vn,wa=Si,gl=_i}function Ur(St,zt,de){Oi[St]=function(be,rn,hn,cn,yn,In,zn,fi,qi,tr,Ii,Wr,Nr,Hi,Ui,Qr,uo){var $r,ls=uo-1>>1,Jo=yn[In+0]|zn[fi+0]<<16,ci=qi[tr+0]|Ii[Wr+0]<<16;wt(be!=null);var os=3*Jo+ci+131074>>2;for(zt(be[rn+0],255&os,os>>16,Nr,Hi),hn!=null&&(os=3*ci+Jo+131074>>2,zt(hn[cn+0],255&os,os>>16,Ui,Qr)),$r=1;$r<=ls;++$r){var Bl=yn[In+$r]|zn[fi+$r]<<16,Pl=qi[tr+$r]|Ii[Wr+$r]<<16,el=Jo+Bl+ci+Pl+524296,za=el+2*(Bl+ci)>>3;os=za+Jo>>1,Jo=(el=el+2*(Jo+Pl)>>3)+Bl>>1,zt(be[rn+2*$r-1],255&os,os>>16,Nr,Hi+(2*$r-1)*de),zt(be[rn+2*$r-0],255&Jo,Jo>>16,Nr,Hi+(2*$r-0)*de),hn!=null&&(os=el+ci>>1,Jo=za+Pl>>1,zt(hn[cn+2*$r-1],255&os,os>>16,Ui,Qr+(2*$r-1)*de),zt(hn[cn+2*$r+0],255&Jo,Jo>>16,Ui,Qr+(2*$r+0)*de)),Jo=Bl,ci=Pl}1&uo||(os=3*Jo+ci+131074>>2,zt(be[rn+uo-1],255&os,os>>16,Nr,Hi+(uo-1)*de),hn!=null&&(os=3*ci+Jo+131074>>2,zt(hn[cn+uo-1],255&os,os>>16,Ui,Qr+(uo-1)*de)))}}function Co(){Tu[du]=XA,Tu[ad]=xf,Tu[uc]=lm,Tu[hh]=js,Tu[Sh]=Kg,Tu[kl]=Gg,Tu[eh]=Wg,Tu[Wc]=xf,Tu[Jd]=js,Tu[zf]=Kg,Tu[Lh]=Gg}function ms(St){return St&~Vg?0>St?0:255:St>>Cg}function Js(St,zt){return ms((19077*St>>8)+(26149*zt>>8)-14234)}function Ba(St,zt,de){return ms((19077*St>>8)-(6419*zt>>8)-(13320*de>>8)+8708)}function Pa(St,zt){return ms((19077*St>>8)+(33050*zt>>8)-17685)}function vs(St,zt,de,be,rn){be[rn+0]=Js(St,de),be[rn+1]=Ba(St,zt,de),be[rn+2]=Pa(St,zt)}function iu(St,zt,de,be,rn){be[rn+0]=Pa(St,zt),be[rn+1]=Ba(St,zt,de),be[rn+2]=Js(St,de)}function ru(St,zt,de,be,rn){var hn=Ba(St,zt,de);zt=hn<<3&224|Pa(St,zt)>>3,be[rn+0]=248&Js(St,de)|hn>>5,be[rn+1]=zt}function Qa(St,zt,de,be,rn){var hn=240&Pa(St,zt)|15;be[rn+0]=240&Js(St,de)|Ba(St,zt,de)>>4,be[rn+1]=hn}function Kl(St,zt,de,be,rn){be[rn+0]=255,vs(St,zt,de,be,rn+1)}function Nu(St,zt,de,be,rn){iu(St,zt,de,be,rn),be[rn+3]=255}function ac(St,zt,de,be,rn){vs(St,zt,de,be,rn),be[rn+3]=255}function Fh(St,zt){return 0>St?0:St>zt?zt:St}function lc(St,zt,de){Oi[St]=function(be,rn,hn,cn,yn,In,zn,fi,qi){for(var tr=fi+(-2&qi)*de;fi!=tr;)zt(be[rn+0],hn[cn+0],yn[In+0],zn,fi),zt(be[rn+1],hn[cn+0],yn[In+0],zn,fi+de),rn+=2,++cn,++In,fi+=2*de;1&qi&&zt(be[rn+0],hn[cn+0],yn[In+0],zn,fi)}}function LA(St,zt,de){return de==0?St==0?zt==0?6:5:zt==0?4:0:de}function dA(St,zt,de,be,rn){switch(St>>>30){case 3:si(zt,de,be,rn,0);break;case 2:fn(zt,de,be,rn);break;case 1:bi(zt,de,be,rn)}}function MA(St,zt){var de,be,rn=zt.M,hn=zt.Nb,cn=St.oc,yn=St.pc+40,In=St.oc,zn=St.pc+584,fi=St.oc,qi=St.pc+600;for(de=0;16>de;++de)cn[yn+32*de-1]=129;for(de=0;8>de;++de)In[zn+32*de-1]=129,fi[qi+32*de-1]=129;for(0<rn?cn[yn-1-32]=In[zn-1-32]=fi[qi-1-32]=129:(ie(cn,yn-32-1,127,21),ie(In,zn-32-1,127,9),ie(fi,qi-32-1,127,9)),be=0;be<St.za;++be){var tr=zt.ya[zt.aa+be];if(0<be){for(de=-1;16>de;++de)Qt(cn,yn+32*de-4,cn,yn+32*de+12,4);for(de=-1;8>de;++de)Qt(In,zn+32*de-4,In,zn+32*de+4,4),Qt(fi,qi+32*de-4,fi,qi+32*de+4,4)}var Ii=St.Gd,Wr=St.Hd+be,Nr=tr.ad,Hi=tr.Hc;if(0<rn&&(Qt(cn,yn-32,Ii[Wr].y,0,16),Qt(In,zn-32,Ii[Wr].f,0,8),Qt(fi,qi-32,Ii[Wr].ea,0,8)),tr.Za){var Ui=cn,Qr=yn-32+16;for(0<rn&&(be>=St.za-1?ie(Ui,Qr,Ii[Wr].y[15],4):Qt(Ui,Qr,Ii[Wr+1].y,0,4)),de=0;4>de;de++)Ui[Qr+128+de]=Ui[Qr+256+de]=Ui[Qr+384+de]=Ui[Qr+0+de];for(de=0;16>de;++de,Hi<<=2)Ui=cn,Qr=yn+ii[de],Ec[tr.Ob[de]](Ui,Qr),dA(Hi,Nr,16*+de,Ui,Qr)}else if(Ui=LA(be,rn,tr.Ob[0]),bc[Ui](cn,yn),Hi!=0)for(de=0;16>de;++de,Hi<<=2)dA(Hi,Nr,16*+de,cn,yn+ii[de]);for(de=tr.Gc,Ui=LA(be,rn,tr.Dd),Id[Ui](In,zn),Id[Ui](fi,qi),Hi=Nr,Ui=In,Qr=zn,255&(tr=de>>0)&&(170&tr?Ti(Hi,256,Ui,Qr):Sr(Hi,256,Ui,Qr)),tr=fi,Hi=qi,255&(de>>=8)&&(170&de?Ti(Nr,320,tr,Hi):Sr(Nr,320,tr,Hi)),rn<St.Ub-1&&(Qt(Ii[Wr].y,0,cn,yn+480,16),Qt(Ii[Wr].f,0,In,zn+224,8),Qt(Ii[Wr].ea,0,fi,qi+224,8)),de=8*hn*St.B,Ii=St.sa,Wr=St.ta+16*be+16*hn*St.R,Nr=St.qa,tr=St.ra+8*be+de,Hi=St.Ha,Ui=St.Ia+8*be+de,de=0;16>de;++de)Qt(Ii,Wr+de*St.R,cn,yn+32*de,16);for(de=0;8>de;++de)Qt(Nr,tr+de*St.B,In,zn+32*de,8),Qt(Hi,Ui+de*St.B,fi,qi+32*de,8)}}function pc(St,zt,de,be,rn,hn,cn,yn,In){var zn=[0],fi=[0],qi=0,tr=In!=null?In.kd:0,Ii=In!=null?In:new hA;if(St==null||12>de)return 7;Ii.data=St,Ii.w=zt,Ii.ha=de,zt=[zt],de=[de],Ii.gb=[Ii.gb];t:{var Wr=zt,Nr=de,Hi=Ii.gb;if(wt(St!=null),wt(Nr!=null),wt(Hi!=null),Hi[0]=0,12<=Nr[0]&&!Pt(St,Wr[0],"RIFF")){if(Pt(St,Wr[0]+8,"WEBP")){Hi=3;break t}var Ui=Er(St,Wr[0]+4);if(12>Ui||4294967286<Ui){Hi=3;break t}if(tr&&Ui>Nr[0]-8){Hi=7;break t}Hi[0]=Ui,Wr[0]+=12,Nr[0]-=12}Hi=0}if(Hi!=0)return Hi;for(Ui=0<Ii.gb[0],de=de[0];;){t:{var Qr=St;Nr=zt,Hi=de;var uo=zn,$r=fi,ls=Wr=[0];if((os=qi=[qi])[0]=0,8>Hi[0])Hi=7;else{if(!Pt(Qr,Nr[0],"VP8X")){if(Er(Qr,Nr[0]+4)!=10){Hi=3;break t}if(18>Hi[0]){Hi=7;break t}var Jo=Er(Qr,Nr[0]+8),ci=1+Ar(Qr,Nr[0]+12);if(2147483648<=ci*(Qr=1+Ar(Qr,Nr[0]+15))){Hi=3;break t}ls!=null&&(ls[0]=Jo),uo!=null&&(uo[0]=ci),$r!=null&&($r[0]=Qr),Nr[0]+=18,Hi[0]-=18,os[0]=1}Hi=0}}if(qi=qi[0],Wr=Wr[0],Hi!=0)return Hi;if(Nr=!!(2&Wr),!Ui&&qi)return 3;if(hn!=null&&(hn[0]=!!(16&Wr)),cn!=null&&(cn[0]=Nr),yn!=null&&(yn[0]=0),cn=zn[0],Wr=fi[0],qi&&Nr&&In==null){Hi=0;break}if(4>de){Hi=7;break}if(Ui&&qi||!Ui&&!qi&&!Pt(St,zt[0],"ALPH")){de=[de],Ii.na=[Ii.na],Ii.P=[Ii.P],Ii.Sa=[Ii.Sa];t:{Jo=St,Hi=zt,Ui=de;var os=Ii.gb;uo=Ii.na,$r=Ii.P,ls=Ii.Sa,ci=22,wt(Jo!=null),wt(Ui!=null),Qr=Hi[0];var Bl=Ui[0];for(wt(uo!=null),wt(ls!=null),uo[0]=null,$r[0]=null,ls[0]=0;;){if(Hi[0]=Qr,Ui[0]=Bl,8>Bl){Hi=7;break t}var Pl=Er(Jo,Qr+4);if(4294967286<Pl){Hi=3;break t}var el=8+Pl+1&-2;if(ci+=el,0<os&&ci>os){Hi=3;break t}if(!Pt(Jo,Qr,"VP8 ")||!Pt(Jo,Qr,"VP8L")){Hi=0;break t}if(Bl[0]<el){Hi=7;break t}Pt(Jo,Qr,"ALPH")||(uo[0]=Jo,$r[0]=Qr+8,ls[0]=Pl),Qr+=el,Bl-=el}}if(de=de[0],Ii.na=Ii.na[0],Ii.P=Ii.P[0],Ii.Sa=Ii.Sa[0],Hi!=0)break}de=[de],Ii.Ja=[Ii.Ja],Ii.xa=[Ii.xa];t:if(os=St,Hi=zt,Ui=de,uo=Ii.gb[0],$r=Ii.Ja,ls=Ii.xa,Jo=Hi[0],Qr=!Pt(os,Jo,"VP8 "),ci=!Pt(os,Jo,"VP8L"),wt(os!=null),wt(Ui!=null),wt($r!=null),wt(ls!=null),8>Ui[0])Hi=7;else{if(Qr||ci){if(os=Er(os,Jo+4),12<=uo&&os>uo-12){Hi=3;break t}if(tr&&os>Ui[0]-8){Hi=7;break t}$r[0]=os,Hi[0]+=8,Ui[0]-=8,ls[0]=ci}else ls[0]=5<=Ui[0]&&os[Jo+0]==47&&!(os[Jo+4]>>5),$r[0]=Ui[0];Hi=0}if(de=de[0],Ii.Ja=Ii.Ja[0],Ii.xa=Ii.xa[0],zt=zt[0],Hi!=0)break;if(4294967286<Ii.Ja)return 3;if(yn==null||Nr||(yn[0]=Ii.xa?2:1),cn=[cn],Wr=[Wr],Ii.xa){if(5>de){Hi=7;break}yn=cn,tr=Wr,Nr=hn,St==null||5>de?St=0:5<=de&&St[zt+0]==47&&!(St[zt+4]>>5)?(Ui=[0],os=[0],uo=[0],en($r=new Qe,St,zt,de),Ps($r,Ui,os,uo)?(yn!=null&&(yn[0]=Ui[0]),tr!=null&&(tr[0]=os[0]),Nr!=null&&(Nr[0]=uo[0]),St=1):St=0):St=0}else{if(10>de){Hi=7;break}yn=Wr,St==null||10>de||!Al(St,zt+3,de-3)?St=0:(tr=St[zt+0]|St[zt+1]<<8|St[zt+2]<<16,Nr=16383&(St[zt+7]<<8|St[zt+6]),St=16383&(St[zt+9]<<8|St[zt+8]),1&tr||3<(tr>>1&7)||!(tr>>4&1)||tr>>5>=Ii.Ja||!Nr||!St?St=0:(cn&&(cn[0]=Nr),yn&&(yn[0]=St),St=1))}if(!St||(cn=cn[0],Wr=Wr[0],qi&&(zn[0]!=cn||fi[0]!=Wr)))return 3;In!=null&&(In[0]=Ii,In.offset=zt-In.w,wt(4294967286>zt-In.w),wt(In.offset==In.ha-de));break}return Hi==0||Hi==7&&qi&&In==null?(hn!=null&&(hn[0]|=Ii.na!=null&&0<Ii.na.length),be!=null&&(be[0]=cn),rn!=null&&(rn[0]=Wr),0):Hi}function Fd(St,zt,de){var be=zt.width,rn=zt.height,hn=0,cn=0,yn=be,In=rn;if(zt.Da=St!=null&&0<St.Da,zt.Da&&(yn=St.cd,In=St.bd,hn=St.v,cn=St.j,11>de||(hn&=-2,cn&=-2),0>hn||0>cn||0>=yn||0>=In||hn+yn>be||cn+In>rn))return 0;if(zt.v=hn,zt.j=cn,zt.va=hn+yn,zt.o=cn+In,zt.U=yn,zt.T=In,zt.da=St!=null&&0<St.da,zt.da){if(!Bo(yn,In,de=[St.ib],hn=[St.hb]))return 0;zt.ib=de[0],zt.hb=hn[0]}return zt.ob=St!=null&&St.ob,zt.Kb=St==null||!St.Sd,zt.da&&(zt.ob=zt.ib<3*be/4&&zt.hb<3*rn/4,zt.Kb=0),1}function Gc(St){if(St==null)return 2;if(11>St.S){var zt=St.f.RGBA;zt.fb+=(St.height-1)*zt.A,zt.A=-zt.A}else zt=St.f.kb,St=St.height,zt.O+=(St-1)*zt.fa,zt.fa=-zt.fa,zt.N+=(St-1>>1)*zt.Ab,zt.Ab=-zt.Ab,zt.W+=(St-1>>1)*zt.Db,zt.Db=-zt.Db,zt.F!=null&&(zt.J+=(St-1)*zt.lb,zt.lb=-zt.lb);return 0}function fl(St,zt,de,be){if(be==null||0>=St||0>=zt)return 2;if(de!=null){if(de.Da){var rn=de.cd,hn=de.bd,cn=-2&de.v,yn=-2&de.j;if(0>cn||0>yn||0>=rn||0>=hn||cn+rn>St||yn+hn>zt)return 2;St=rn,zt=hn}if(de.da){if(!Bo(St,zt,rn=[de.ib],hn=[de.hb]))return 2;St=rn[0],zt=hn[0]}}be.width=St,be.height=zt;t:{var In=be.width,zn=be.height;if(St=be.S,0>=In||0>=zn||!(St>=du&&13>St))St=2;else{if(0>=be.Rd&&be.sd==null){cn=hn=rn=zt=0;var fi=(yn=In*lr[St])*zn;if(11>St||(hn=(zn+1)/2*(zt=(In+1)/2),St==12&&(cn=(rn=In)*zn)),(zn=Yt(fi+2*hn+cn))==null){St=1;break t}be.sd=zn,11>St?((In=be.f.RGBA).eb=zn,In.fb=0,In.A=yn,In.size=fi):((In=be.f.kb).y=zn,In.O=0,In.fa=yn,In.Fd=fi,In.f=zn,In.N=0+fi,In.Ab=zt,In.Cd=hn,In.ea=zn,In.W=0+fi+hn,In.Db=zt,In.Ed=hn,St==12&&(In.F=zn,In.J=0+fi+2*hn),In.Tc=cn,In.lb=rn)}if(zt=1,rn=be.S,hn=be.width,cn=be.height,rn>=du&&13>rn)if(11>rn)St=be.f.RGBA,zt&=(yn=Math.abs(St.A))*(cn-1)+hn<=St.size,zt&=yn>=hn*lr[rn],zt&=St.eb!=null;else{St=be.f.kb,yn=(hn+1)/2,fi=(cn+1)/2,In=Math.abs(St.fa),zn=Math.abs(St.Ab);var qi=Math.abs(St.Db),tr=Math.abs(St.lb),Ii=tr*(cn-1)+hn;zt&=In*(cn-1)+hn<=St.Fd,zt&=zn*(fi-1)+yn<=St.Cd,zt=(zt&=qi*(fi-1)+yn<=St.Ed)&In>=hn&zn>=yn&qi>=yn,zt&=St.y!=null,zt&=St.f!=null,zt&=St.ea!=null,rn==12&&(zt&=tr>=hn,zt&=Ii<=St.Tc,zt&=St.F!=null)}else zt=0;St=zt?0:2}}return St!=0||de!=null&&de.fd&&(St=Gc(be)),St}var Iu=64,Yd=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Wl=24,jh=32,mc=8,th=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ar("Predictor0","PredictorAdd0"),Oi.Predictor0=function(){return 4278190080},Oi.Predictor1=function(St){return St},Oi.Predictor2=function(St,zt,de){return zt[de+0]},Oi.Predictor3=function(St,zt,de){return zt[de+1]},Oi.Predictor4=function(St,zt,de){return zt[de-1]},Oi.Predictor5=function(St,zt,de){return vr(vr(St,zt[de+1]),zt[de+0])},Oi.Predictor6=function(St,zt,de){return vr(St,zt[de-1])},Oi.Predictor7=function(St,zt,de){return vr(St,zt[de+0])},Oi.Predictor8=function(St,zt,de){return vr(zt[de-1],zt[de+0])},Oi.Predictor9=function(St,zt,de){return vr(zt[de+0],zt[de+1])},Oi.Predictor10=function(St,zt,de){return vr(vr(St,zt[de-1]),vr(zt[de+0],zt[de+1]))},Oi.Predictor11=function(St,zt,de){var be=zt[de+0];return 0>=po(be>>24&255,St>>24&255,(zt=zt[de-1])>>24&255)+po(be>>16&255,St>>16&255,zt>>16&255)+po(be>>8&255,St>>8&255,zt>>8&255)+po(255&be,255&St,255&zt)?be:St},Oi.Predictor12=function(St,zt,de){var be=zt[de+0];return(Vr((St>>24&255)+(be>>24&255)-((zt=zt[de-1])>>24&255))<<24|Vr((St>>16&255)+(be>>16&255)-(zt>>16&255))<<16|Vr((St>>8&255)+(be>>8&255)-(zt>>8&255))<<8|Vr((255&St)+(255&be)-(255&zt)))>>>0},Oi.Predictor13=function(St,zt,de){var be=zt[de-1];return(ho((St=vr(St,zt[de+0]))>>24&255,be>>24&255)<<24|ho(St>>16&255,be>>16&255)<<16|ho(St>>8&255,be>>8&255)<<8|ho(St>>0&255,be>>0&255))>>>0};var Vl=Oi.PredictorAdd0;Oi.PredictorAdd1=_r,ar("Predictor2","PredictorAdd2"),ar("Predictor3","PredictorAdd3"),ar("Predictor4","PredictorAdd4"),ar("Predictor5","PredictorAdd5"),ar("Predictor6","PredictorAdd6"),ar("Predictor7","PredictorAdd7"),ar("Predictor8","PredictorAdd8"),ar("Predictor9","PredictorAdd9"),ar("Predictor10","PredictorAdd10"),ar("Predictor11","PredictorAdd11"),ar("Predictor12","PredictorAdd12"),ar("Predictor13","PredictorAdd13");var Ld=Oi.PredictorAdd2;ns("ColorIndexInverseTransform","MapARGB","32b",function(St){return St>>8&255},function(St){return St}),ns("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(St){return St},function(St){return St>>8&255});var Uh,lh=Oi.ColorIndexInverseTransform,sd=Oi.MapARGB,it=Oi.VP8LColorIndexInverseTransformAlpha,st=Oi.MapAlpha,mt=Oi.VP8LPredictorsAdd=[];mt.length=16,(Oi.VP8LPredictors=[]).length=16,(Oi.VP8LPredictorsAdd_C=[]).length=16,(Oi.VP8LPredictors_C=[]).length=16;var pt,Bt,Jt,Se,je,De,an,si,fn,Ti,bi,Sr,Dr,Jr,vo,Xo,No,as,Ms,Io,na,Cl,ku,ul,yu,La,wa,gl,pl=Yt(511),bo=Yt(2041),xa=Yt(225),Nl=Yt(767),Il=0,uh=bo,Ta=xa,_s=Nl,wu=pl,du=0,ad=1,uc=2,hh=3,Sh=4,kl=5,eh=6,Wc=7,Jd=8,zf=9,Lh=10,Sg=[2,3,7],Md=[3,3,11],yf=[280,256,256,256,40],wf=[0,1,1,1,0],GA=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],NA=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Kf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],WA=8,Nd=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Hu=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nh=null,Gf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Sp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],zg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],VA=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ZA=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Wf=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Cp=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],bc=[],Ec=[],Id=[],ld=1,kd=2,Td=[],Tu=[];Ur("UpsampleRgbLinePair",vs,3),Ur("UpsampleBgrLinePair",iu,3),Ur("UpsampleRgbaLinePair",ac,4),Ur("UpsampleBgraLinePair",Nu,4),Ur("UpsampleArgbLinePair",Kl,4),Ur("UpsampleRgba4444LinePair",Qa,2),Ur("UpsampleRgb565LinePair",ru,2);var XA=Oi.UpsampleRgbLinePair,lm=Oi.UpsampleBgrLinePair,xf=Oi.UpsampleRgbaLinePair,js=Oi.UpsampleBgraLinePair,Kg=Oi.UpsampleArgbLinePair,Gg=Oi.UpsampleRgba4444LinePair,Wg=Oi.UpsampleRgb565LinePair,IA=16,kA=1<<IA-1,Fc=-227,Vf=482,Cg=6,Vg=(256<<Cg)-1,Dt=0,kt=Yt(256),Ht=Yt(256),Rt=Yt(256),Be=Yt(256),$e=Yt(Vf-Fc),Fn=Yt(Vf-Fc);lc("YuvToRgbRow",vs,3),lc("YuvToBgrRow",iu,3),lc("YuvToRgbaRow",ac,4),lc("YuvToBgraRow",Nu,4),lc("YuvToArgbRow",Kl,4),lc("YuvToRgba4444Row",Qa,2),lc("YuvToRgb565Row",ru,2);var ii=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],jn=[0,2,8],Ri=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(St,zt,de,be,rn){var hn=ad,cn=new Kc,yn=new As;cn.ba=yn,yn.S=hn,yn.width=[yn.width],yn.height=[yn.height];var In=yn.width,zn=yn.height,fi=new es;if(fi==null||St==null)var qi=2;else wt(fi!=null),qi=pc(St,zt,de,fi.width,fi.height,fi.Pd,fi.Qd,fi.format,null);if(qi!=0?In=0:(In!=null&&(In[0]=fi.width[0]),zn!=null&&(zn[0]=fi.height[0]),In=1),In){yn.width=yn.width[0],yn.height=yn.height[0],be!=null&&(be[0]=yn.width),rn!=null&&(rn[0]=yn.height);t:{if(be=new fa,(rn=new hA).data=St,rn.w=zt,rn.ha=de,rn.kd=1,zt=[0],wt(rn!=null),((St=pc(rn.data,rn.w,rn.ha,null,null,null,zt,null,rn))==0||St==7)&&zt[0]&&(St=4),(zt=St)==0){if(wt(cn!=null),be.data=rn.data,be.w=rn.w+rn.offset,be.ha=rn.ha-rn.offset,be.put=zl,be.ac=Us,be.bc=Fl,be.ma=cn,rn.xa){if((St=xl())==null){cn=1;break t}if(function(tr,Ii){var Wr=[0],Nr=[0],Hi=[0];e:for(;;){if(tr==null)return 0;if(Ii==null)return tr.a=2,0;if(tr.l=Ii,tr.a=0,en(tr.m,Ii.data,Ii.w,Ii.ha),!Ps(tr.m,Wr,Nr,Hi)){tr.a=3;break e}if(tr.xb=kd,Ii.width=Wr[0],Ii.height=Nr[0],!pu(Wr[0],Nr[0],1,tr,null))break e;return 1}return wt(tr.a!=0),0}(St,be)){if(be=(zt=fl(be.width,be.height,cn.Oa,cn.ba))==0){e:{be=St;n:for(;;){if(be==null){be=0;break e}if(wt(be.s.yc!=null),wt(be.s.Ya!=null),wt(0<be.s.Wb),wt((de=be.l)!=null),wt((rn=de.ma)!=null),be.xb!=0){if(be.ca=rn.ba,be.tb=rn.tb,wt(be.ca!=null),!Fd(rn.Oa,de,hh)){be.a=2;break n}if(!uu(be,de.width)||de.da)break n;if((de.da||Ys(be.ca.S))&&ur(),11>be.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),be.ca.f.kb.F!=null&&ur()),be.Pb&&0<be.s.ua&&be.s.vb.X==null&&!io(be.s.vb,be.s.Wa.Xa)){be.a=1;break n}be.xb=0}if(!Rs(be,be.V,be.Ba,be.c,be.i,de.o,la))break n;rn.Dc=be.Ma,be=1;break e}wt(be.a!=0),be=0}be=!be}be&&(zt=St.a)}else zt=St.a}else{if((St=new Sl)==null){cn=1;break t}if(St.Fa=rn.na,St.P=rn.P,St.qc=rn.Sa,ga(St,be)){if((zt=fl(be.width,be.height,cn.Oa,cn.ba))==0){if(St.Aa=0,de=cn.Oa,wt((rn=St)!=null),de!=null){if(0<(In=0>(In=de.Md)?0:100<In?255:255*In/100)){for(zn=fi=0;4>zn;++zn)12>(qi=rn.pb[zn]).lc&&(qi.ia=In*Ri[0>qi.lc?0:qi.lc]>>3),fi|=qi.ia;fi&&(alert("todo:VP8InitRandom"),rn.ia=1)}rn.Ga=de.Id,100<rn.Ga?rn.Ga=100:0>rn.Ga&&(rn.Ga=0)}Kh(St,be)||(zt=St.a)}}else zt=St.a}zt==0&&cn.Oa!=null&&cn.Oa.fd&&(zt=Gc(cn.ba))}cn=zt}hn=cn!=0?null:11>hn?yn.f.RGBA.eb:yn.f.kb.y}else hn=null;return hn};var lr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Xe(Oi,Cr){for(var Or="",Jn=0;Jn<4;Jn++)Or+=String.fromCharCode(Oi[Cr++]);return Or}function dn(Oi,Cr){return(Oi[Cr+0]<<0|Oi[Cr+1]<<8|Oi[Cr+2]<<16)>>>0}function An(Oi,Cr){return(Oi[Cr+0]<<0|Oi[Cr+1]<<8|Oi[Cr+2]<<16|Oi[Cr+3]<<24)>>>0}new Pe;var Pn=[0],ze=[0],mi=[],ti=new Pe,vi=Et,Rn=function(Oi,Cr){var Or={},Jn=0,oi=!1,pe=0,me=0;if(Or.frames=[],!function(un,pn,Qn,$n){for(var ri=0;ri<$n;ri++)if(un[pn+ri]!=Qn.charCodeAt(ri))return!0;return!1}(Oi,Cr,"RIFF",4)){var Ze,Ye;for(An(Oi,Cr+=4),Cr+=8;Cr<Oi.length;){var mn=Xe(Oi,Cr),en=An(Oi,Cr+=4);Cr+=4;var Tn=en+(1&en);switch(mn){case"VP8 ":case"VP8L":Or.frames[Jn]===void 0&&(Or.frames[Jn]={}),(Qe=Or.frames[Jn]).src_off=oi?me:Cr-8,Qe.src_size=pe+en+8,Jn++,oi&&(oi=!1,pe=0,me=0);break;case"VP8X":(Qe=Or.header={}).feature_flags=Oi[Cr];var Un=Cr+4;Qe.canvas_width=1+dn(Oi,Un),Un+=3,Qe.canvas_height=1+dn(Oi,Un),Un+=3;break;case"ALPH":oi=!0,pe=Tn+8,me=Cr-8;break;case"ANIM":(Qe=Or.header).bgcolor=An(Oi,Cr),Un=Cr+4,Qe.loop_count=(Ze=Oi)[(Ye=Un)+0]<<0|Ze[Ye+1]<<8,Un+=2;break;case"ANMF":var qn,Qe;(Qe=Or.frames[Jn]={}).offset_x=2*dn(Oi,Cr),Cr+=3,Qe.offset_y=2*dn(Oi,Cr),Cr+=3,Qe.width=1+dn(Oi,Cr),Cr+=3,Qe.height=1+dn(Oi,Cr),Cr+=3,Qe.duration=dn(Oi,Cr),Cr+=3,qn=Oi[Cr++],Qe.dispose=1&qn,Qe.blend=qn>>1&1}mn!="ANMF"&&(Cr+=Tn)}return Or}}(vi,0);Rn.response=vi,Rn.rgbaoutput=!0,Rn.dataurl=!1;var Ai=Rn.header?Rn.header:null,Qi=Rn.frames?Rn.frames:null;if(Ai){Ai.loop_counter=Ai.loop_count,Pn=[Ai.canvas_height],ze=[Ai.canvas_width];for(var rr=0;rr<Qi.length&&Qi[rr].blend!=0;rr++);}var Fr=Qi[0],lo=ti.WebPDecodeRGBA(vi,Fr.src_off,Fr.src_size,ze,Pn);Fr.rgba=lo,Fr.imgwidth=ze[0],Fr.imgheight=Pn[0];for(var mr=0;mr<ze[0]*Pn[0]*4;mr++)mi[mr]=lo[mr];return this.width=ze,this.height=Pn,this.data=mi,this}(function(Et){var wt=function(){return typeof Mn=="function"},Pt=function(Pn,ze,mi,ti){var vi=4,Rn=ge;switch(ti){case Et.image_compression.FAST:vi=1,Rn=Yt;break;case Et.image_compression.MEDIUM:vi=6,Rn=we;break;case Et.image_compression.SLOW:vi=9,Rn=Pe}Pn=Qt(Pn,ze,mi,Rn);var Ai=Mn(Pn,{level:vi});return Et.__addimage__.arrayBufferToBinaryString(Ai)},Qt=function(Pn,ze,mi,ti){for(var vi,Rn,Ai,Qi=Pn.length/ze,rr=new Uint8Array(Pn.length+Qi),Fr=dn(),lo=0;lo<Qi;lo+=1){if(Ai=lo*ze,vi=Pn.subarray(Ai,Ai+ze),ti)rr.set(ti(vi,mi,Rn),Ai+lo);else{for(var mr,Oi=Fr.length,Cr=[];mr<Oi;mr+=1)Cr[mr]=Fr[mr](vi,mi,Rn);var Or=An(Cr.concat());rr.set(Cr[Or],Ai+lo)}Rn=vi}return rr},ie=function(Pn){var ze=Array.apply([],Pn);return ze.unshift(0),ze},Yt=function(Pn,ze){var mi,ti=[],vi=Pn.length;ti[0]=1;for(var Rn=0;Rn<vi;Rn+=1)mi=Pn[Rn-ze]||0,ti[Rn+1]=Pn[Rn]-mi+256&255;return ti},ge=function(Pn,ze,mi){var ti,vi=[],Rn=Pn.length;vi[0]=2;for(var Ai=0;Ai<Rn;Ai+=1)ti=mi&&mi[Ai]||0,vi[Ai+1]=Pn[Ai]-ti+256&255;return vi},we=function(Pn,ze,mi){var ti,vi,Rn=[],Ai=Pn.length;Rn[0]=3;for(var Qi=0;Qi<Ai;Qi+=1)ti=Pn[Qi-ze]||0,vi=mi&&mi[Qi]||0,Rn[Qi+1]=Pn[Qi]+256-(ti+vi>>>1)&255;return Rn},Pe=function(Pn,ze,mi){var ti,vi,Rn,Ai,Qi=[],rr=Pn.length;Qi[0]=4;for(var Fr=0;Fr<rr;Fr+=1)ti=Pn[Fr-ze]||0,vi=mi&&mi[Fr]||0,Rn=mi&&mi[Fr-ze]||0,Ai=Xe(ti,vi,Rn),Qi[Fr+1]=Pn[Fr]-Ai+256&255;return Qi},Xe=function(Pn,ze,mi){if(Pn===ze&&ze===mi)return Pn;var ti=Math.abs(ze-mi),vi=Math.abs(Pn-mi),Rn=Math.abs(Pn+ze-mi-mi);return ti<=vi&&ti<=Rn?Pn:vi<=Rn?ze:mi},dn=function(){return[ie,Yt,ge,we,Pe]},An=function(Pn){var ze=Pn.map(function(mi){return mi.reduce(function(ti,vi){return ti+Math.abs(vi)},0)});return ze.indexOf(Math.min.apply(null,ze))};Et.processPNG=function(Pn,ze,mi,ti){var vi,Rn,Ai,Qi,rr,Fr,lo,mr,Oi,Cr,Or,Jn,oi,pe,me,Ze=this.decode.FLATE_DECODE,Ye="";if(this.__addimage__.isArrayBuffer(Pn)&&(Pn=new Uint8Array(Pn)),this.__addimage__.isArrayBufferView(Pn)){if(Pn=(Ai=new sA(Pn)).imgData,Rn=Ai.bits,vi=Ai.colorSpace,rr=Ai.colors,[4,6].indexOf(Ai.colorType)!==-1){if(Ai.bits===8){Oi=(mr=Ai.pixelBitlength==32?new Uint32Array(Ai.decodePixels().buffer):Ai.pixelBitlength==16?new Uint16Array(Ai.decodePixels().buffer):new Uint8Array(Ai.decodePixels().buffer)).length,Or=new Uint8Array(Oi*Ai.colors),Cr=new Uint8Array(Oi);var mn,en=Ai.pixelBitlength-Ai.bits;for(pe=0,me=0;pe<Oi;pe++){for(oi=mr[pe],mn=0;mn<en;)Or[me++]=oi>>>mn&255,mn+=Ai.bits;Cr[pe]=oi>>>mn&255}}if(Ai.bits===16){Oi=(mr=new Uint32Array(Ai.decodePixels().buffer)).length,Or=new Uint8Array(Oi*(32/Ai.pixelBitlength)*Ai.colors),Cr=new Uint8Array(Oi*(32/Ai.pixelBitlength)),Jn=Ai.colors>1,pe=0,me=0;for(var Tn=0;pe<Oi;)oi=mr[pe++],Or[me++]=oi>>>0&255,Jn&&(Or[me++]=oi>>>16&255,oi=mr[pe++],Or[me++]=oi>>>0&255),Cr[Tn++]=oi>>>16&255;Rn=8}ti!==Et.image_compression.NONE&&wt()?(Pn=Pt(Or,Ai.width*Ai.colors,Ai.colors,ti),lo=Pt(Cr,Ai.width,1,ti)):(Pn=Or,lo=Cr,Ze=void 0)}if(Ai.colorType===3&&(vi=this.color_spaces.INDEXED,Fr=Ai.palette,Ai.transparency.indexed)){var Un=Ai.transparency.indexed,qn=0;for(pe=0,Oi=Un.length;pe<Oi;++pe)qn+=Un[pe];if((qn/=255)===Oi-1&&Un.indexOf(0)!==-1)Qi=[Un.indexOf(0)];else if(qn!==Oi){for(mr=Ai.decodePixels(),Cr=new Uint8Array(mr.length),pe=0,Oi=mr.length;pe<Oi;pe++)Cr[pe]=Un[mr[pe]];lo=Pt(Cr,Ai.width,1)}}var Qe=function(un){var pn;switch(un){case Et.image_compression.FAST:pn=11;break;case Et.image_compression.MEDIUM:pn=13;break;case Et.image_compression.SLOW:pn=14;break;default:pn=12}return pn}(ti);return Ze===this.decode.FLATE_DECODE&&(Ye="/Predictor "+Qe+" "),Ye+="/Colors "+rr+" /BitsPerComponent "+Rn+" /Columns "+Ai.width,(this.__addimage__.isArrayBuffer(Pn)||this.__addimage__.isArrayBufferView(Pn))&&(Pn=this.__addimage__.arrayBufferToBinaryString(Pn)),(lo&&this.__addimage__.isArrayBuffer(lo)||this.__addimage__.isArrayBufferView(lo))&&(lo=this.__addimage__.arrayBufferToBinaryString(lo)),{alias:mi,data:Pn,index:ze,filter:Ze,decodeParameters:Ye,transparency:Qi,palette:Fr,sMask:lo,predictor:Qe,width:Ai.width,height:Ai.height,bitsPerComponent:Rn,colorSpace:vi}}}})(Qo.API),function(Et){Et.processGIF89A=function(wt,Pt,Qt,ie){var Yt=new En(wt),ge=Yt.width,we=Yt.height,Pe=[];Yt.decodeAndBlitFrameRGBA(0,Pe);var Xe={data:Pe,width:ge,height:we},dn=new aA(100).encode(Xe,100);return Et.processJPEG.call(this,dn,Pt,Qt,ie)},Et.processGIF87A=Et.processGIF89A}(Qo.API),ic.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Et=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Et);for(var wt=0;wt<Et;wt++){var Pt=this.datav.getUint8(this.pos++,!0),Qt=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0);this.palette[wt]={red:ie,green:Qt,blue:Pt,quad:Yt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ic.prototype.parseBGR=function(){this.pos=this.offset;try{var Et="bit"+this.bitPP,wt=this.width*this.height*4;this.data=new Uint8Array(wt),this[Et]()}catch(Pt){Lo.log("bit decode error:"+Pt)}},ic.prototype.bit1=function(){var Et,wt=Math.ceil(this.width/8),Pt=wt%4;for(Et=this.height-1;Et>=0;Et--){for(var Qt=this.bottom_up?Et:this.height-1-Et,ie=0;ie<wt;ie++)for(var Yt=this.datav.getUint8(this.pos++,!0),ge=Qt*this.width*4+8*ie*4,we=0;we<8&&8*ie+we<this.width;we++){var Pe=this.palette[Yt>>7-we&1];this.data[ge+4*we]=Pe.blue,this.data[ge+4*we+1]=Pe.green,this.data[ge+4*we+2]=Pe.red,this.data[ge+4*we+3]=255}Pt!==0&&(this.pos+=4-Pt)}},ic.prototype.bit4=function(){for(var Et=Math.ceil(this.width/2),wt=Et%4,Pt=this.height-1;Pt>=0;Pt--){for(var Qt=this.bottom_up?Pt:this.height-1-Pt,ie=0;ie<Et;ie++){var Yt=this.datav.getUint8(this.pos++,!0),ge=Qt*this.width*4+2*ie*4,we=Yt>>4,Pe=15&Yt,Xe=this.palette[we];if(this.data[ge]=Xe.blue,this.data[ge+1]=Xe.green,this.data[ge+2]=Xe.red,this.data[ge+3]=255,2*ie+1>=this.width)break;Xe=this.palette[Pe],this.data[ge+4]=Xe.blue,this.data[ge+4+1]=Xe.green,this.data[ge+4+2]=Xe.red,this.data[ge+4+3]=255}wt!==0&&(this.pos+=4-wt)}},ic.prototype.bit8=function(){for(var Et=this.width%4,wt=this.height-1;wt>=0;wt--){for(var Pt=this.bottom_up?wt:this.height-1-wt,Qt=0;Qt<this.width;Qt++){var ie=this.datav.getUint8(this.pos++,!0),Yt=Pt*this.width*4+4*Qt;if(ie<this.palette.length){var ge=this.palette[ie];this.data[Yt]=ge.red,this.data[Yt+1]=ge.green,this.data[Yt+2]=ge.blue,this.data[Yt+3]=255}else this.data[Yt]=255,this.data[Yt+1]=255,this.data[Yt+2]=255,this.data[Yt+3]=255}Et!==0&&(this.pos+=4-Et)}},ic.prototype.bit15=function(){for(var Et=this.width%3,wt=parseInt("11111",2),Pt=this.height-1;Pt>=0;Pt--){for(var Qt=this.bottom_up?Pt:this.height-1-Pt,ie=0;ie<this.width;ie++){var Yt=this.datav.getUint16(this.pos,!0);this.pos+=2;var ge=(Yt&wt)/wt*255|0,we=(Yt>>5&wt)/wt*255|0,Pe=(Yt>>10&wt)/wt*255|0,Xe=Yt>>15?255:0,dn=Qt*this.width*4+4*ie;this.data[dn]=Pe,this.data[dn+1]=we,this.data[dn+2]=ge,this.data[dn+3]=Xe}this.pos+=Et}},ic.prototype.bit16=function(){for(var Et=this.width%3,wt=parseInt("11111",2),Pt=parseInt("111111",2),Qt=this.height-1;Qt>=0;Qt--){for(var ie=this.bottom_up?Qt:this.height-1-Qt,Yt=0;Yt<this.width;Yt++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var we=(ge&wt)/wt*255|0,Pe=(ge>>5&Pt)/Pt*255|0,Xe=(ge>>11)/wt*255|0,dn=ie*this.width*4+4*Yt;this.data[dn]=Xe,this.data[dn+1]=Pe,this.data[dn+2]=we,this.data[dn+3]=255}this.pos+=Et}},ic.prototype.bit24=function(){for(var Et=this.height-1;Et>=0;Et--){for(var wt=this.bottom_up?Et:this.height-1-Et,Pt=0;Pt<this.width;Pt++){var Qt=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0),ge=wt*this.width*4+4*Pt;this.data[ge]=Yt,this.data[ge+1]=ie,this.data[ge+2]=Qt,this.data[ge+3]=255}this.pos+=this.width%4}},ic.prototype.bit32=function(){for(var Et=this.height-1;Et>=0;Et--)for(var wt=this.bottom_up?Et:this.height-1-Et,Pt=0;Pt<this.width;Pt++){var Qt=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),Yt=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),we=wt*this.width*4+4*Pt;this.data[we]=Yt,this.data[we+1]=ie,this.data[we+2]=Qt,this.data[we+3]=ge}},ic.prototype.getData=function(){return this.data},function(Et){Et.processBMP=function(wt,Pt,Qt,ie){var Yt=new ic(wt,!1),ge=Yt.width,we=Yt.height,Pe={data:Yt.getData(),width:ge,height:we},Xe=new aA(100).encode(Pe,100);return Et.processJPEG.call(this,Xe,Pt,Qt,ie)}}(Qo.API),Gu.prototype.getData=function(){return this.data},function(Et){Et.processWEBP=function(wt,Pt,Qt,ie){var Yt=new Gu(wt,!1),ge=Yt.width,we=Yt.height,Pe={data:Yt.getData(),width:ge,height:we},Xe=new aA(100).encode(Pe,100);return Et.processJPEG.call(this,Xe,Pt,Qt,ie)}}(Qo.API),Qo.API.processRGBA=function(Et,wt,Pt){for(var Qt=Et.data,ie=Qt.length,Yt=new Uint8Array(ie/4*3),ge=new Uint8Array(ie/4),we=0,Pe=0,Xe=0;Xe<ie;Xe+=4){var dn=Qt[Xe],An=Qt[Xe+1],Pn=Qt[Xe+2],ze=Qt[Xe+3];Yt[we++]=dn,Yt[we++]=An,Yt[we++]=Pn,ge[Pe++]=ze}var mi=this.__addimage__.arrayBufferToBinaryString(Yt);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:mi,index:wt,alias:Pt,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Et.width,height:Et.height}},Qo.API.setLanguage=function(Et){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Et]!==void 0&&(this.internal.languageSettings.languageCode=Et,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},ll=Qo.API,zd=ll.getCharWidthsArray=function(Et,wt){var Pt,Qt,ie=(wt=wt||{}).font||this.internal.getFont(),Yt=wt.fontSize||this.internal.getFontSize(),ge=wt.charSpace||this.internal.getCharSpace(),we=wt.widths?wt.widths:ie.metadata.Unicode.widths,Pe=we.fof?we.fof:1,Xe=wt.kerning?wt.kerning:ie.metadata.Unicode.kerning,dn=Xe.fof?Xe.fof:1,An=wt.doKerning!==!1,Pn=0,ze=Et.length,mi=0,ti=we[0]||Pe,vi=[];for(Pt=0;Pt<ze;Pt++)Qt=Et.charCodeAt(Pt),typeof ie.metadata.widthOfString=="function"?vi.push((ie.metadata.widthOfGlyph(ie.metadata.characterToGlyph(Qt))+ge*(1e3/Yt)||0)/1e3):(Pn=An&&(0,Lt.Z)(Xe[Qt])==="object"&&!isNaN(parseInt(Xe[Qt][mi],10))?Xe[Qt][mi]/dn:0,vi.push((we[Qt]||ti)/Pe+Pn)),mi=Qt;return vi},td=ll.getStringUnitWidth=function(Et,wt){var Pt=(wt=wt||{}).fontSize||this.internal.getFontSize(),Qt=wt.font||this.internal.getFont(),ie=wt.charSpace||this.internal.getCharSpace();return ll.processArabic&&(Et=ll.processArabic(Et)),typeof Qt.metadata.widthOfString=="function"?Qt.metadata.widthOfString(Et,Pt,ie)/Pt:zd.apply(this,arguments).reduce(function(Yt,ge){return Yt+ge},0)},Bh=function(Et,wt,Pt,Qt){for(var ie=[],Yt=0,ge=Et.length,we=0;Yt!==ge&&we+wt[Yt]<Pt;)we+=wt[Yt],Yt++;ie.push(Et.slice(0,Yt));var Pe=Yt;for(we=0;Yt!==ge;)we+wt[Yt]>Qt&&(ie.push(Et.slice(Pe,Yt)),we=0,Pe=Yt),we+=wt[Yt],Yt++;return Pe!==Yt&&ie.push(Et.slice(Pe,Yt)),ie},Ro=function(Et,wt,Pt){Pt||(Pt={});var Qt,ie,Yt,ge,we,Pe,Xe,dn=[],An=[dn],Pn=Pt.textIndent||0,ze=0,mi=0,ti=Et.split(" "),vi=zd.apply(this,[" ",Pt])[0];if(Pe=Pt.lineIndent===-1?ti[0].length+2:Pt.lineIndent||0){var Rn=Array(Pe).join(" "),Ai=[];ti.map(function(rr){(rr=rr.split(/\s*\n/)).length>1?Ai=Ai.concat(rr.map(function(Fr,lo){return(lo&&Fr.length?`
`:"")+Fr})):Ai.push(rr[0])}),ti=Ai,Pe=td.apply(this,[Rn,Pt])}for(Yt=0,ge=ti.length;Yt<ge;Yt++){var Qi=0;if(Qt=ti[Yt],Pe&&Qt[0]==`
`&&(Qt=Qt.substr(1),Qi=1),Pn+ze+(mi=(ie=zd.apply(this,[Qt,Pt])).reduce(function(rr,Fr){return rr+Fr},0))>wt||Qi){if(mi>wt){for(we=Bh.apply(this,[Qt,ie,wt-(Pn+ze),wt]),dn.push(we.shift()),dn=[we.pop()];we.length;)An.push([we.shift()]);mi=ie.slice(Qt.length-(dn[0]?dn[0].length:0)).reduce(function(rr,Fr){return rr+Fr},0)}else dn=[Qt];An.push(dn),Pn=mi+Pe,ze=vi}else dn.push(Qt),Pn+=ze+mi,ze=vi}return Xe=Pe?function(rr,Fr){return(Fr?Rn:"")+rr.join(" ")}:function(rr){return rr.join(" ")},An.map(Xe)},ll.splitTextToSize=function(Et,wt,Pt){var Qt,ie=(Pt=Pt||{}).fontSize||this.internal.getFontSize(),Yt=function(dn){if(dn.widths&&dn.kerning)return{widths:dn.widths,kerning:dn.kerning};var An=this.internal.getFont(dn.fontName,dn.fontStyle);return An.metadata.Unicode?{widths:An.metadata.Unicode.widths||{0:1},kerning:An.metadata.Unicode.kerning||{}}:{font:An.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Pt);Qt=Array.isArray(Et)?Et:String(Et).split(/\r?\n/);var ge=1*this.internal.scaleFactor*wt/ie;Yt.textIndent=Pt.textIndent?1*Pt.textIndent*this.internal.scaleFactor/ie:0,Yt.lineIndent=Pt.lineIndent;var we,Pe,Xe=[];for(we=0,Pe=Qt.length;we<Pe;we++)Xe=Xe.concat(Ro.apply(this,[Qt[we],ge,Yt]));return Xe},function(Et){Et.__fontmetrics__=Et.__fontmetrics__||{};for(var wt="klmnopqrstuvwxyz",Pt={},Qt={},ie=0;ie<wt.length;ie++)Pt[wt[ie]]="0123456789abcdef"[ie],Qt["0123456789abcdef"[ie]]=wt[ie];var Yt=function(An){return"0x"+parseInt(An,10).toString(16)},ge=Et.__fontmetrics__.compress=function(An){var Pn,ze,mi,ti,vi=["{"];for(var Rn in An){if(Pn=An[Rn],isNaN(parseInt(Rn,10))?ze="'"+Rn+"'":(Rn=parseInt(Rn,10),ze=(ze=Yt(Rn).slice(2)).slice(0,-1)+Qt[ze.slice(-1)]),typeof Pn=="number")Pn<0?(mi=Yt(Pn).slice(3),ti="-"):(mi=Yt(Pn).slice(2),ti=""),mi=ti+mi.slice(0,-1)+Qt[mi.slice(-1)];else{if((0,Lt.Z)(Pn)!=="object")throw new Error("Don't know what to do with value type "+(0,Lt.Z)(Pn)+".");mi=ge(Pn)}vi.push(ze+mi)}return vi.push("}"),vi.join("")},we=Et.__fontmetrics__.uncompress=function(An){if(typeof An!="string")throw new Error("Invalid argument passed to uncompress.");for(var Pn,ze,mi,ti,vi={},Rn=1,Ai=vi,Qi=[],rr="",Fr="",lo=An.length-1,mr=1;mr<lo;mr+=1)(ti=An[mr])=="'"?Pn?(mi=Pn.join(""),Pn=void 0):Pn=[]:Pn?Pn.push(ti):ti=="{"?(Qi.push([Ai,mi]),Ai={},mi=void 0):ti=="}"?((ze=Qi.pop())[0][ze[1]]=Ai,mi=void 0,Ai=ze[0]):ti=="-"?Rn=-1:mi===void 0?Pt.hasOwnProperty(ti)?(rr+=Pt[ti],mi=parseInt(rr,16)*Rn,Rn=1,rr=""):rr+=ti:Pt.hasOwnProperty(ti)?(Fr+=Pt[ti],Ai[mi]=parseInt(Fr,16)*Rn,Rn=1,mi=void 0,Fr=""):Fr+=ti;return vi},Pe={codePages:["WinAnsiEncoding"],WinAnsiEncoding:we("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Xe={Unicode:{Courier:Pe,"Courier-Bold":Pe,"Courier-BoldOblique":Pe,"Courier-Oblique":Pe,Helvetica:Pe,"Helvetica-Bold":Pe,"Helvetica-BoldOblique":Pe,"Helvetica-Oblique":Pe,"Times-Roman":Pe,"Times-Bold":Pe,"Times-BoldItalic":Pe,"Times-Italic":Pe}},dn={Unicode:{"Courier-Oblique":we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":we("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":we("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":we("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:we("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:we("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":we("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:we("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":we("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":we("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":we("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":we("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Et.events.push(["addFont",function(An){var Pn=An.font,ze=dn.Unicode[Pn.postScriptName];ze&&(Pn.metadata.Unicode={},Pn.metadata.Unicode.widths=ze.widths,Pn.metadata.Unicode.kerning=ze.kerning);var mi=Xe.Unicode[Pn.postScriptName];mi&&(Pn.metadata.Unicode.encoding=mi,Pn.encoding=mi.codePages[0])}])}(Qo.API),function(Et){var wt=function(Pt){for(var Qt=Pt.length,ie=new Uint8Array(Qt),Yt=0;Yt<Qt;Yt++)ie[Yt]=Pt.charCodeAt(Yt);return ie};Et.API.events.push(["addFont",function(Pt){var Qt=void 0,ie=Pt.font,Yt=Pt.instance;if(!ie.isStandardFont){if(Yt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ie.postScriptName+"').");if(typeof(Qt=Yt.existsFileInVFS(ie.postScriptName)===!1?Yt.loadFile(ie.postScriptName):Yt.getFileFromVFS(ie.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ie.postScriptName+"').");(function(ge,we){we=/^\x00\x01\x00\x00/.test(we)?wt(we):wt(fs(we)),ge.metadata=Et.API.TTFFont.open(we),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ie,Qt)}}])}(Qo),function(Et){function wt(){return(kr.canvg?Promise.resolve(kr.canvg):Ft.e(6949).then(Ft.bind(Ft,46949))).catch(function(Pt){return Promise.reject(new Error("Could not load canvg: "+Pt))}).then(function(Pt){return Pt.default?Pt.default:Pt})}Qo.API.addSvgAsImage=function(Pt,Qt,ie,Yt,ge,we,Pe,Xe){if(isNaN(Qt)||isNaN(ie))throw Lo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Yt)||isNaN(ge))throw Lo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var dn=document.createElement("canvas");dn.width=Yt,dn.height=ge;var An=dn.getContext("2d");An.fillStyle="#fff",An.fillRect(0,0,dn.width,dn.height);var Pn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},ze=this;return wt().then(function(mi){return mi.fromString(An,Pt,Pn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(mi){return mi.render(Pn)}).then(function(){ze.addImage(dn.toDataURL("image/jpeg",1),Qt,ie,Yt,ge,Pe,Xe)})}}(),Qo.API.putTotalPages=function(Et){var wt,Pt=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(wt=new RegExp(Et,"g"),Pt=this.internal.getNumberOfPages()):(wt=new RegExp(this.pdfEscape16(Et,this.internal.getFont()),"g"),Pt=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Qt=1;Qt<=this.internal.getNumberOfPages();Qt++)for(var ie=0;ie<this.internal.pages[Qt].length;ie++)this.internal.pages[Qt][ie]=this.internal.pages[Qt][ie].replace(wt,Pt);return this},Qo.API.viewerPreferences=function(Et,wt){var Pt;Et=Et||{},wt=wt||!1;var Qt,ie,Yt,ge={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},we=Object.keys(ge),Pe=[],Xe=0,dn=0,An=0;function Pn(mi,ti){var vi,Rn=!1;for(vi=0;vi<mi.length;vi+=1)mi[vi]===ti&&(Rn=!0);return Rn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ge)),this.internal.viewerpreferences.isSubscribed=!1),Pt=this.internal.viewerpreferences.configuration,Et==="reset"||wt===!0){var ze=we.length;for(An=0;An<ze;An+=1)Pt[we[An]].value=Pt[we[An]].defaultValue,Pt[we[An]].explicitSet=!1}if((0,Lt.Z)(Et)==="object"){for(ie in Et)if(Yt=Et[ie],Pn(we,ie)&&Yt!==void 0){if(Pt[ie].type==="boolean"&&typeof Yt=="boolean")Pt[ie].value=Yt;else if(Pt[ie].type==="name"&&Pn(Pt[ie].valueSet,Yt))Pt[ie].value=Yt;else if(Pt[ie].type==="integer"&&Number.isInteger(Yt))Pt[ie].value=Yt;else if(Pt[ie].type==="array"){for(Xe=0;Xe<Yt.length;Xe+=1)if(Qt=!0,Yt[Xe].length===1&&typeof Yt[Xe][0]=="number")Pe.push(String(Yt[Xe]-1));else if(Yt[Xe].length>1){for(dn=0;dn<Yt[Xe].length;dn+=1)typeof Yt[Xe][dn]!="number"&&(Qt=!1);Qt===!0&&Pe.push([Yt[Xe][0]-1,Yt[Xe][1]-1].join(" "))}Pt[ie].value="["+Pe.join(" ")+"]"}else Pt[ie].value=Pt[ie].defaultValue;Pt[ie].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var mi,ti=[];for(mi in Pt)Pt[mi].explicitSet===!0&&(Pt[mi].type==="name"?ti.push("/"+mi+" /"+Pt[mi].value):ti.push("/"+mi+" "+Pt[mi].value));ti.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+ti.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Pt,this},function(Et){var wt=function(){var Qt='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',ie=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Yt=unescape(encodeURIComponent(Qt)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),we=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Pe=unescape(encodeURIComponent("</x:xmpmeta>")),Xe=Yt.length+ge.length+we.length+ie.length+Pe.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Xe+" >>"),this.internal.write("stream"),this.internal.write(ie+Yt+ge+we+Pe),this.internal.write("endstream"),this.internal.write("endobj")},Pt=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Et.addMetadata=function(Qt,ie){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Qt,namespaceuri:ie||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Pt),this.internal.events.subscribe("postPutResources",wt)),this}}(Qo.API),function(Et){var wt=Et.API,Pt=wt.pdfEscape16=function(Yt,ge){for(var we,Pe=ge.metadata.Unicode.widths,Xe=["","0","00","000","0000"],dn=[""],An=0,Pn=Yt.length;An<Pn;++An){if(we=ge.metadata.characterToGlyph(Yt.charCodeAt(An)),ge.metadata.glyIdsUsed.push(we),ge.metadata.toUnicode[we]=Yt.charCodeAt(An),Pe.indexOf(we)==-1&&(Pe.push(we),Pe.push([parseInt(ge.metadata.widthOfGlyph(we),10)])),we=="0")return dn.join("");we=we.toString(16),dn.push(Xe[4-we.length],we)}return dn.join("")},Qt=function(Yt){var ge,we,Pe,Xe,dn,An,Pn;for(dn=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,Pe=[],An=0,Pn=(we=Object.keys(Yt).sort(function(ze,mi){return ze-mi})).length;An<Pn;An++)ge=we[An],Pe.length>=100&&(dn+=`
`+Pe.length+` beginbfchar
`+Pe.join(`
`)+`
endbfchar`,Pe=[]),Yt[ge]!==void 0&&Yt[ge]!==null&&typeof Yt[ge].toString=="function"&&(Xe=("0000"+Yt[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),Pe.push("<"+ge+"><"+Xe+">"));return Pe.length&&(dn+=`
`+Pe.length+` beginbfchar
`+Pe.join(`
`)+`
endbfchar
`),dn+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};wt.events.push(["putFont",function(Yt){(function(ge){var we=ge.font,Pe=ge.out,Xe=ge.newObject,dn=ge.putStream;if(we.metadata instanceof Et.API.TTFFont&&we.encoding==="Identity-H"){for(var An=we.metadata.Unicode.widths,Pn=we.metadata.subset.encode(we.metadata.glyIdsUsed,1),ze="",mi=0;mi<Pn.length;mi++)ze+=String.fromCharCode(Pn[mi]);var ti=Xe();dn({data:ze,addLength1:!0,objectId:ti}),Pe("endobj");var vi=Xe();dn({data:Qt(we.metadata.toUnicode),addLength1:!0,objectId:vi}),Pe("endobj");var Rn=Xe();Pe("<<"),Pe("/Type /FontDescriptor"),Pe("/FontName /"+Uo(we.fontName)),Pe("/FontFile2 "+ti+" 0 R"),Pe("/FontBBox "+Et.API.PDFObject.convert(we.metadata.bbox)),Pe("/Flags "+we.metadata.flags),Pe("/StemV "+we.metadata.stemV),Pe("/ItalicAngle "+we.metadata.italicAngle),Pe("/Ascent "+we.metadata.ascender),Pe("/Descent "+we.metadata.decender),Pe("/CapHeight "+we.metadata.capHeight),Pe(">>"),Pe("endobj");var Ai=Xe();Pe("<<"),Pe("/Type /Font"),Pe("/BaseFont /"+Uo(we.fontName)),Pe("/FontDescriptor "+Rn+" 0 R"),Pe("/W "+Et.API.PDFObject.convert(An)),Pe("/CIDToGIDMap /Identity"),Pe("/DW 1000"),Pe("/Subtype /CIDFontType2"),Pe("/CIDSystemInfo"),Pe("<<"),Pe("/Supplement 0"),Pe("/Registry (Adobe)"),Pe("/Ordering ("+we.encoding+")"),Pe(">>"),Pe(">>"),Pe("endobj"),we.objectNumber=Xe(),Pe("<<"),Pe("/Type /Font"),Pe("/Subtype /Type0"),Pe("/ToUnicode "+vi+" 0 R"),Pe("/BaseFont /"+Uo(we.fontName)),Pe("/Encoding /"+we.encoding),Pe("/DescendantFonts ["+Ai+" 0 R]"),Pe(">>"),Pe("endobj"),we.isAlreadyPutted=!0}})(Yt)}]),wt.events.push(["putFont",function(Yt){(function(ge){var we=ge.font,Pe=ge.out,Xe=ge.newObject,dn=ge.putStream;if(we.metadata instanceof Et.API.TTFFont&&we.encoding==="WinAnsiEncoding"){for(var An=we.metadata.rawData,Pn="",ze=0;ze<An.length;ze++)Pn+=String.fromCharCode(An[ze]);var mi=Xe();dn({data:Pn,addLength1:!0,objectId:mi}),Pe("endobj");var ti=Xe();dn({data:Qt(we.metadata.toUnicode),addLength1:!0,objectId:ti}),Pe("endobj");var vi=Xe();Pe("<<"),Pe("/Descent "+we.metadata.decender),Pe("/CapHeight "+we.metadata.capHeight),Pe("/StemV "+we.metadata.stemV),Pe("/Type /FontDescriptor"),Pe("/FontFile2 "+mi+" 0 R"),Pe("/Flags 96"),Pe("/FontBBox "+Et.API.PDFObject.convert(we.metadata.bbox)),Pe("/FontName /"+Uo(we.fontName)),Pe("/ItalicAngle "+we.metadata.italicAngle),Pe("/Ascent "+we.metadata.ascender),Pe(">>"),Pe("endobj"),we.objectNumber=Xe();for(var Rn=0;Rn<we.metadata.hmtx.widths.length;Rn++)we.metadata.hmtx.widths[Rn]=parseInt(we.metadata.hmtx.widths[Rn]*(1e3/we.metadata.head.unitsPerEm));Pe("<</Subtype/TrueType/Type/Font/ToUnicode "+ti+" 0 R/BaseFont/"+Uo(we.fontName)+"/FontDescriptor "+vi+" 0 R/Encoding/"+we.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Et.API.PDFObject.convert(we.metadata.hmtx.widths)+">>"),Pe("endobj"),we.isAlreadyPutted=!0}})(Yt)}]);var ie=function(Yt){var ge,we=Yt.text||"",Pe=Yt.x,Xe=Yt.y,dn=Yt.options||{},An=Yt.mutex||{},Pn=An.pdfEscape,ze=An.activeFontKey,mi=An.fonts,ti=ze,vi="",Rn=0,Ai="",Qi=mi[ti].encoding;if(mi[ti].encoding!=="Identity-H")return{text:we,x:Pe,y:Xe,options:dn,mutex:An};for(Ai=we,ti=ze,Array.isArray(we)&&(Ai=we[0]),Rn=0;Rn<Ai.length;Rn+=1)mi[ti].metadata.hasOwnProperty("cmap")&&(ge=mi[ti].metadata.cmap.unicode.codeMap[Ai[Rn].charCodeAt(0)]),ge||Ai[Rn].charCodeAt(0)<256&&mi[ti].metadata.hasOwnProperty("Unicode")?vi+=Ai[Rn]:vi+="";var rr="";return parseInt(ti.slice(1))<14||Qi==="WinAnsiEncoding"?rr=Pn(vi,ti).split("").map(function(Fr){return Fr.charCodeAt(0).toString(16)}).join(""):Qi==="Identity-H"&&(rr=Pt(vi,mi[ti])),An.isHex=!0,{text:rr,x:Pe,y:Xe,options:dn,mutex:An}};wt.events.push(["postProcessText",function(Yt){var ge=Yt.text||"",we=[],Pe={text:ge,x:Yt.x,y:Yt.y,options:Yt.options,mutex:Yt.mutex};if(Array.isArray(ge)){var Xe=0;for(Xe=0;Xe<ge.length;Xe+=1)Array.isArray(ge[Xe])&&ge[Xe].length===3?we.push([ie(Object.assign({},Pe,{text:ge[Xe][0]})).text,ge[Xe][1],ge[Xe][2]]):we.push(ie(Object.assign({},Pe,{text:ge[Xe]})).text);Yt.text=we}else Yt.text=ie(Object.assign({},Pe,{text:ge})).text}])}(Qo),function(Et){var wt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Et.existsFileInVFS=function(Pt){return wt.call(this),this.internal.vFS[Pt]!==void 0},Et.addFileToVFS=function(Pt,Qt){return wt.call(this),this.internal.vFS[Pt]=Qt,this},Et.getFileFromVFS=function(Pt){return wt.call(this),this.internal.vFS[Pt]!==void 0?this.internal.vFS[Pt]:null}}(Qo.API),function(Et){Et.__bidiEngine__=Et.prototype.__bidiEngine__=function(Qt){var ie,Yt,ge,we,Pe,Xe,dn,An=wt,Pn=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ze=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],mi={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ti={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},vi=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],Rn=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Ai=!1,Qi=0;this.__bidiEngine__={};var rr=function(Jn){var oi=Jn.charCodeAt(),pe=oi>>8,me=ti[pe];return me!==void 0?An[256*me+(255&oi)]:pe===252||pe===253?"AL":Rn.test(pe)?"L":pe===8?"R":"N"},Fr=function(Jn){for(var oi,pe=0;pe<Jn.length;pe++){if((oi=rr(Jn.charAt(pe)))==="L")return!1;if(oi==="R")return!0}return!1},lo=function(Jn,oi,pe,me){var Ze,Ye,mn,en,Tn=oi[me];switch(Tn){case"L":case"R":Ai=!1;break;case"N":case"AN":break;case"EN":Ai&&(Tn="AN");break;case"AL":Ai=!0,Tn="R";break;case"WS":Tn="N";break;case"CS":me<1||me+1>=oi.length||(Ze=pe[me-1])!=="EN"&&Ze!=="AN"||(Ye=oi[me+1])!=="EN"&&Ye!=="AN"?Tn="N":Ai&&(Ye="AN"),Tn=Ye===Ze?Ye:"N";break;case"ES":Tn=(Ze=me>0?pe[me-1]:"B")==="EN"&&me+1<oi.length&&oi[me+1]==="EN"?"EN":"N";break;case"ET":if(me>0&&pe[me-1]==="EN"){Tn="EN";break}if(Ai){Tn="N";break}for(mn=me+1,en=oi.length;mn<en&&oi[mn]==="ET";)mn++;Tn=mn<en&&oi[mn]==="EN"?"EN":"N";break;case"NSM":if(ge&&!we){for(en=oi.length,mn=me+1;mn<en&&oi[mn]==="NSM";)mn++;if(mn<en){var Un=Jn[me],qn=Un>=1425&&Un<=2303||Un===64286;if(Ze=oi[mn],qn&&(Ze==="R"||Ze==="AL")){Tn="R";break}}}Tn=me<1||(Ze=oi[me-1])==="B"?"N":pe[me-1];break;case"B":Ai=!1,ie=!0,Tn=Qi;break;case"S":Yt=!0,Tn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Ai=!1;break;case"BN":Tn="N"}return Tn},mr=function(Jn,oi,pe){var me=Jn.split("");return pe&&Oi(me,pe,{hiLevel:Qi}),me.reverse(),oi&&oi.reverse(),me.join("")},Oi=function(Jn,oi,pe){var me,Ze,Ye,mn,en,Tn=-1,Un=Jn.length,qn=0,Qe=[],un=Qi?ze:Pn,pn=[];for(Ai=!1,ie=!1,Yt=!1,Ze=0;Ze<Un;Ze++)pn[Ze]=rr(Jn[Ze]);for(Ye=0;Ye<Un;Ye++){if(en=qn,Qe[Ye]=lo(Jn,pn,Qe,Ye),me=240&(qn=un[en][mi[Qe[Ye]]]),qn&=15,oi[Ye]=mn=un[qn][5],me>0)if(me===16){for(Ze=Tn;Ze<Ye;Ze++)oi[Ze]=1;Tn=-1}else Tn=-1;if(un[qn][6])Tn===-1&&(Tn=Ye);else if(Tn>-1){for(Ze=Tn;Ze<Ye;Ze++)oi[Ze]=mn;Tn=-1}pn[Ye]==="B"&&(oi[Ye]=0),pe.hiLevel|=mn}Yt&&function(Qn,$n,ri){for(var Fi=0;Fi<ri;Fi++)if(Qn[Fi]==="S"){$n[Fi]=Qi;for(var ui=Fi-1;ui>=0&&Qn[ui]==="WS";ui--)$n[ui]=Qi}}(pn,oi,Un)},Cr=function(Jn,oi,pe,me,Ze){if(!(Ze.hiLevel<Jn)){if(Jn===1&&Qi===1&&!ie)return oi.reverse(),void(pe&&pe.reverse());for(var Ye,mn,en,Tn,Un=oi.length,qn=0;qn<Un;){if(me[qn]>=Jn){for(en=qn+1;en<Un&&me[en]>=Jn;)en++;for(Tn=qn,mn=en-1;Tn<mn;Tn++,mn--)Ye=oi[Tn],oi[Tn]=oi[mn],oi[mn]=Ye,pe&&(Ye=pe[Tn],pe[Tn]=pe[mn],pe[mn]=Ye);qn=en}qn++}}},Or=function(Jn,oi,pe){var me=Jn.split(""),Ze={hiLevel:Qi};return pe||(pe=[]),Oi(me,pe,Ze),function(Ye,mn,en){if(en.hiLevel!==0&&dn)for(var Tn,Un=0;Un<Ye.length;Un++)mn[Un]===1&&(Tn=vi.indexOf(Ye[Un]))>=0&&(Ye[Un]=vi[Tn+1])}(me,pe,Ze),Cr(2,me,oi,pe,Ze),Cr(1,me,oi,pe,Ze),me.join("")};return this.__bidiEngine__.doBidiReorder=function(Jn,oi,pe){if(function(Ze,Ye){if(Ye)for(var mn=0;mn<Ze.length;mn++)Ye[mn]=mn;we===void 0&&(we=Fr(Ze)),Xe===void 0&&(Xe=Fr(Ze))}(Jn,oi),ge||!Pe||Xe)if(ge&&Pe&&we^Xe)Qi=we?1:0,Jn=mr(Jn,oi,pe);else if(!ge&&Pe&&Xe)Qi=we?1:0,Jn=Or(Jn,oi,pe),Jn=mr(Jn,oi);else if(!ge||we||Pe||Xe){if(ge&&!Pe&&we^Xe)Jn=mr(Jn,oi),we?(Qi=0,Jn=Or(Jn,oi,pe)):(Qi=1,Jn=Or(Jn,oi,pe),Jn=mr(Jn,oi));else if(ge&&we&&!Pe&&Xe)Qi=1,Jn=Or(Jn,oi,pe),Jn=mr(Jn,oi);else if(!ge&&!Pe&&we^Xe){var me=dn;we?(Qi=1,Jn=Or(Jn,oi,pe),Qi=0,dn=!1,Jn=Or(Jn,oi,pe),dn=me):(Qi=0,Jn=Or(Jn,oi,pe),Jn=mr(Jn,oi),Qi=1,dn=!1,Jn=Or(Jn,oi,pe),dn=me,Jn=mr(Jn,oi))}}else Qi=0,Jn=Or(Jn,oi,pe);else Qi=we?1:0,Jn=Or(Jn,oi,pe);return Jn},this.__bidiEngine__.setOptions=function(Jn){Jn&&(ge=Jn.isInputVisual,Pe=Jn.isOutputVisual,we=Jn.isInputRtl,Xe=Jn.isOutputRtl,dn=Jn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Qt),this.__bidiEngine__};var wt=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],Pt=new Et.__bidiEngine__({isInputVisual:!0});Et.API.events.push(["postProcessText",function(Qt){var ie=Qt.text,Yt=(Qt.x,Qt.y,Qt.options||{}),ge=(Qt.mutex,Yt.lang,[]);if(Yt.isInputVisual=typeof Yt.isInputVisual!="boolean"||Yt.isInputVisual,Pt.setOptions(Yt),Object.prototype.toString.call(ie)==="[object Array]"){var we=0;for(ge=[],we=0;we<ie.length;we+=1)Object.prototype.toString.call(ie[we])==="[object Array]"?ge.push([Pt.doBidiReorder(ie[we][0]),ie[we][1],ie[we][2]]):ge.push([Pt.doBidiReorder(ie[we])]);Qt.text=ge}else Qt.text=Pt.doBidiReorder(ie);Pt.setOptions({isInputVisual:!0})}])}(Qo),Qo.API.TTFFont=function(){function Et(wt){var Pt;if(this.rawData=wt,Pt=this.contents=new Ph(wt),this.contents.pos=4,Pt.readString(4)==="ttcf")throw new Error("TTCF not supported.");Pt.pos=0,this.parse(),this.subset=new Ql(this),this.registerTTF()}return Et.open=function(wt){return new Et(wt)},Et.prototype.parse=function(){return this.directory=new zA(this.contents),this.head=new ys(this),this.name=new wl(this),this.cmap=new Xu(this),this.toUnicode={},this.hhea=new El(this),this.maxp=new zh(this),this.hmtx=new Cu(this),this.post=new gu(this),this.os2=new oa(this),this.loca=new dl(this),this.glyf=new Ea(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Et.prototype.registerTTF=function(){var wt,Pt,Qt,ie,Yt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,we,Pe,Xe;for(Xe=[],ge=0,we=(Pe=this.bbox).length;ge<we;ge++)wt=Pe[ge],Xe.push(Math.round(wt*this.scaleFactor));return Xe}.call(this),this.stemV=0,this.post.exists?(Qt=255&(ie=this.post.italic_angle),32768&(Pt=ie>>16)&&(Pt=-(1+(65535^Pt))),this.italicAngle=+(Pt+"."+Qt)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(Yt=this.familyClass)===1||Yt===2||Yt===3||Yt===4||Yt===5||Yt===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Et.prototype.characterToGlyph=function(wt){var Pt;return((Pt=this.cmap.unicode)!=null?Pt.codeMap[wt]:void 0)||0},Et.prototype.widthOfGlyph=function(wt){var Pt;return Pt=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(wt).advance*Pt},Et.prototype.widthOfString=function(wt,Pt,Qt){var ie,Yt,ge,we;for(ge=0,Yt=0,we=(wt=""+wt).length;0<=we?Yt<we:Yt>we;Yt=0<=we?++Yt:--Yt)ie=wt.charCodeAt(Yt),ge+=this.widthOfGlyph(this.characterToGlyph(ie))+Qt*(1e3/Pt)||0;return ge*(Pt/1e3)},Et.prototype.lineHeight=function(wt,Pt){var Qt;return Pt==null&&(Pt=!1),Qt=Pt?this.lineGap:0,(this.ascender+Qt-this.decender)/1e3*wt},Et}();var Wu,Ph=function(){function Et(wt){this.data=wt!=null?wt:[],this.pos=0,this.length=this.data.length}return Et.prototype.readByte=function(){return this.data[this.pos++]},Et.prototype.writeByte=function(wt){return this.data[this.pos++]=wt},Et.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Et.prototype.writeUInt32=function(wt){return this.writeByte(wt>>>24&255),this.writeByte(wt>>16&255),this.writeByte(wt>>8&255),this.writeByte(255&wt)},Et.prototype.readInt32=function(){var wt;return(wt=this.readUInt32())>=2147483648?wt-4294967296:wt},Et.prototype.writeInt32=function(wt){return wt<0&&(wt+=4294967296),this.writeUInt32(wt)},Et.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Et.prototype.writeUInt16=function(wt){return this.writeByte(wt>>8&255),this.writeByte(255&wt)},Et.prototype.readInt16=function(){var wt;return(wt=this.readUInt16())>=32768?wt-65536:wt},Et.prototype.writeInt16=function(wt){return wt<0&&(wt+=65536),this.writeUInt16(wt)},Et.prototype.readString=function(wt){var Pt,Qt;for(Qt=[],Pt=0;0<=wt?Pt<wt:Pt>wt;Pt=0<=wt?++Pt:--Pt)Qt[Pt]=String.fromCharCode(this.readByte());return Qt.join("")},Et.prototype.writeString=function(wt){var Pt,Qt,ie;for(ie=[],Pt=0,Qt=wt.length;0<=Qt?Pt<Qt:Pt>Qt;Pt=0<=Qt?++Pt:--Pt)ie.push(this.writeByte(wt.charCodeAt(Pt)));return ie},Et.prototype.readShort=function(){return this.readInt16()},Et.prototype.writeShort=function(wt){return this.writeInt16(wt)},Et.prototype.readLongLong=function(){var wt,Pt,Qt,ie,Yt,ge,we,Pe;return wt=this.readByte(),Pt=this.readByte(),Qt=this.readByte(),ie=this.readByte(),Yt=this.readByte(),ge=this.readByte(),we=this.readByte(),Pe=this.readByte(),128&wt?-1*(72057594037927940*(255^wt)+281474976710656*(255^Pt)+1099511627776*(255^Qt)+4294967296*(255^ie)+16777216*(255^Yt)+65536*(255^ge)+256*(255^we)+(255^Pe)+1):72057594037927940*wt+281474976710656*Pt+1099511627776*Qt+4294967296*ie+16777216*Yt+65536*ge+256*we+Pe},Et.prototype.writeLongLong=function(wt){var Pt,Qt;return Pt=Math.floor(wt/4294967296),Qt=4294967295&wt,this.writeByte(Pt>>24&255),this.writeByte(Pt>>16&255),this.writeByte(Pt>>8&255),this.writeByte(255&Pt),this.writeByte(Qt>>24&255),this.writeByte(Qt>>16&255),this.writeByte(Qt>>8&255),this.writeByte(255&Qt)},Et.prototype.readInt=function(){return this.readInt32()},Et.prototype.writeInt=function(wt){return this.writeInt32(wt)},Et.prototype.read=function(wt){var Pt,Qt;for(Pt=[],Qt=0;0<=wt?Qt<wt:Qt>wt;Qt=0<=wt?++Qt:--Qt)Pt.push(this.readByte());return Pt},Et.prototype.write=function(wt){var Pt,Qt,ie,Yt;for(Yt=[],Qt=0,ie=wt.length;Qt<ie;Qt++)Pt=wt[Qt],Yt.push(this.writeByte(Pt));return Yt},Et}(),zA=function(){var Et;function wt(Pt){var Qt,ie,Yt;for(this.scalarType=Pt.readInt(),this.tableCount=Pt.readShort(),this.searchRange=Pt.readShort(),this.entrySelector=Pt.readShort(),this.rangeShift=Pt.readShort(),this.tables={},ie=0,Yt=this.tableCount;0<=Yt?ie<Yt:ie>Yt;ie=0<=Yt?++ie:--ie)Qt={tag:Pt.readString(4),checksum:Pt.readInt(),offset:Pt.readInt(),length:Pt.readInt()},this.tables[Qt.tag]=Qt}return wt.prototype.encode=function(Pt){var Qt,ie,Yt,ge,we,Pe,Xe,dn,An,Pn,ze,mi,ti;for(ti in ze=Object.keys(Pt).length,Pe=Math.log(2),An=16*Math.floor(Math.log(ze)/Pe),ge=Math.floor(An/Pe),dn=16*ze-An,(ie=new Ph).writeInt(this.scalarType),ie.writeShort(ze),ie.writeShort(An),ie.writeShort(ge),ie.writeShort(dn),Yt=16*ze,Xe=ie.pos+Yt,we=null,mi=[],Pt)for(Pn=Pt[ti],ie.writeString(ti),ie.writeInt(Et(Pn)),ie.writeInt(Xe),ie.writeInt(Pn.length),mi=mi.concat(Pn),ti==="head"&&(we=Xe),Xe+=Pn.length;Xe%4;)mi.push(0),Xe++;return ie.write(mi),Qt=2981146554-Et(ie.data),ie.pos=we+8,ie.writeUInt32(Qt),ie.data},Et=function(Pt){var Qt,ie,Yt,ge;for(Pt=wd.call(Pt);Pt.length%4;)Pt.push(0);for(Yt=new Ph(Pt),ie=0,Qt=0,ge=Pt.length;Qt<ge;Qt=Qt+=4)ie+=Yt.readUInt32();return 4294967295&ie},wt}(),ed={}.hasOwnProperty,qa=function(Et,wt){for(var Pt in wt)ed.call(wt,Pt)&&(Et[Pt]=wt[Pt]);function Qt(){this.constructor=Et}return Qt.prototype=wt.prototype,Et.prototype=new Qt,Et.__super__=wt.prototype,Et};Wu=function(){function Et(wt){var Pt;this.file=wt,Pt=this.file.directory.tables[this.tag],this.exists=!!Pt,Pt&&(this.offset=Pt.offset,this.length=Pt.length,this.parse(this.file.contents))}return Et.prototype.parse=function(){},Et.prototype.encode=function(){},Et.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Et}();var ys=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="head",wt.prototype.parse=function(Pt){return Pt.pos=this.offset,this.version=Pt.readInt(),this.revision=Pt.readInt(),this.checkSumAdjustment=Pt.readInt(),this.magicNumber=Pt.readInt(),this.flags=Pt.readShort(),this.unitsPerEm=Pt.readShort(),this.created=Pt.readLongLong(),this.modified=Pt.readLongLong(),this.xMin=Pt.readShort(),this.yMin=Pt.readShort(),this.xMax=Pt.readShort(),this.yMax=Pt.readShort(),this.macStyle=Pt.readShort(),this.lowestRecPPEM=Pt.readShort(),this.fontDirectionHint=Pt.readShort(),this.indexToLocFormat=Pt.readShort(),this.glyphDataFormat=Pt.readShort()},wt.prototype.encode=function(Pt){var Qt;return(Qt=new Ph).writeInt(this.version),Qt.writeInt(this.revision),Qt.writeInt(this.checkSumAdjustment),Qt.writeInt(this.magicNumber),Qt.writeShort(this.flags),Qt.writeShort(this.unitsPerEm),Qt.writeLongLong(this.created),Qt.writeLongLong(this.modified),Qt.writeShort(this.xMin),Qt.writeShort(this.yMin),Qt.writeShort(this.xMax),Qt.writeShort(this.yMax),Qt.writeShort(this.macStyle),Qt.writeShort(this.lowestRecPPEM),Qt.writeShort(this.fontDirectionHint),Qt.writeShort(Pt),Qt.writeShort(this.glyphDataFormat),Qt.data},wt}(),oh=function(){function Et(wt,Pt){var Qt,ie,Yt,ge,we,Pe,Xe,dn,An,Pn,ze,mi,ti,vi,Rn,Ai,Qi;switch(this.platformID=wt.readUInt16(),this.encodingID=wt.readShort(),this.offset=Pt+wt.readInt(),An=wt.pos,wt.pos=this.offset,this.format=wt.readUInt16(),this.length=wt.readUInt16(),this.language=wt.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(Pe=0;Pe<256;++Pe)this.codeMap[Pe]=wt.readByte();break;case 4:for(ze=wt.readUInt16(),Pn=ze/2,wt.pos+=6,Yt=function(){var rr,Fr;for(Fr=[],Pe=rr=0;0<=Pn?rr<Pn:rr>Pn;Pe=0<=Pn?++rr:--rr)Fr.push(wt.readUInt16());return Fr}(),wt.pos+=2,ti=function(){var rr,Fr;for(Fr=[],Pe=rr=0;0<=Pn?rr<Pn:rr>Pn;Pe=0<=Pn?++rr:--rr)Fr.push(wt.readUInt16());return Fr}(),Xe=function(){var rr,Fr;for(Fr=[],Pe=rr=0;0<=Pn?rr<Pn:rr>Pn;Pe=0<=Pn?++rr:--rr)Fr.push(wt.readUInt16());return Fr}(),dn=function(){var rr,Fr;for(Fr=[],Pe=rr=0;0<=Pn?rr<Pn:rr>Pn;Pe=0<=Pn?++rr:--rr)Fr.push(wt.readUInt16());return Fr}(),ie=(this.length-wt.pos+this.offset)/2,we=function(){var rr,Fr;for(Fr=[],Pe=rr=0;0<=ie?rr<ie:rr>ie;Pe=0<=ie?++rr:--rr)Fr.push(wt.readUInt16());return Fr}(),Pe=Rn=0,Qi=Yt.length;Rn<Qi;Pe=++Rn)for(vi=Yt[Pe],Qt=Ai=mi=ti[Pe];mi<=vi?Ai<=vi:Ai>=vi;Qt=mi<=vi?++Ai:--Ai)dn[Pe]===0?ge=Qt+Xe[Pe]:(ge=we[dn[Pe]/2+(Qt-mi)-(Pn-Pe)]||0)!==0&&(ge+=Xe[Pe]),this.codeMap[Qt]=65535&ge}wt.pos=An}return Et.encode=function(wt,Pt){var Qt,ie,Yt,ge,we,Pe,Xe,dn,An,Pn,ze,mi,ti,vi,Rn,Ai,Qi,rr,Fr,lo,mr,Oi,Cr,Or,Jn,oi,pe,me,Ze,Ye,mn,en,Tn,Un,qn,Qe,un,pn,Qn,$n,ri,Fi,ui,Ji,Zi,Ar;switch(me=new Ph,ge=Object.keys(wt).sort(function(Er,io){return Er-io}),Pt){case"macroman":for(ti=0,vi=function(){var Er=[];for(mi=0;mi<256;++mi)Er.push(0);return Er}(),Ai={0:0},Yt={},Ze=0,Tn=ge.length;Ze<Tn;Ze++)Ai[ui=wt[ie=ge[Ze]]]==null&&(Ai[ui]=++ti),Yt[ie]={old:wt[ie],new:Ai[wt[ie]]},vi[ie]=Ai[wt[ie]];return me.writeUInt16(1),me.writeUInt16(0),me.writeUInt32(12),me.writeUInt16(0),me.writeUInt16(262),me.writeUInt16(0),me.write(vi),{charMap:Yt,subtable:me.data,maxGlyphID:ti+1};case"unicode":for(oi=[],An=[],Qi=0,Ai={},Qt={},Rn=Xe=null,Ye=0,Un=ge.length;Ye<Un;Ye++)Ai[Fr=wt[ie=ge[Ye]]]==null&&(Ai[Fr]=++Qi),Qt[ie]={old:Fr,new:Ai[Fr]},we=Ai[Fr]-ie,Rn!=null&&we===Xe||(Rn&&An.push(Rn),oi.push(ie),Xe=we),Rn=ie;for(Rn&&An.push(Rn),An.push(65535),oi.push(65535),Or=2*(Cr=oi.length),Oi=2*Math.pow(Math.log(Cr)/Math.LN2,2),Pn=Math.log(Oi/2)/Math.LN2,mr=2*Cr-Oi,Pe=[],lo=[],ze=[],mi=mn=0,qn=oi.length;mn<qn;mi=++mn){if(Jn=oi[mi],dn=An[mi],Jn===65535){Pe.push(0),lo.push(0);break}if(Jn-(pe=Qt[Jn].new)>=32768)for(Pe.push(0),lo.push(2*(ze.length+Cr-mi)),ie=en=Jn;Jn<=dn?en<=dn:en>=dn;ie=Jn<=dn?++en:--en)ze.push(Qt[ie].new);else Pe.push(pe-Jn),lo.push(0)}for(me.writeUInt16(3),me.writeUInt16(1),me.writeUInt32(12),me.writeUInt16(4),me.writeUInt16(16+8*Cr+2*ze.length),me.writeUInt16(0),me.writeUInt16(Or),me.writeUInt16(Oi),me.writeUInt16(Pn),me.writeUInt16(mr),ri=0,Qe=An.length;ri<Qe;ri++)ie=An[ri],me.writeUInt16(ie);for(me.writeUInt16(0),Fi=0,un=oi.length;Fi<un;Fi++)ie=oi[Fi],me.writeUInt16(ie);for(Ji=0,pn=Pe.length;Ji<pn;Ji++)we=Pe[Ji],me.writeUInt16(we);for(Zi=0,Qn=lo.length;Zi<Qn;Zi++)rr=lo[Zi],me.writeUInt16(rr);for(Ar=0,$n=ze.length;Ar<$n;Ar++)ti=ze[Ar],me.writeUInt16(ti);return{charMap:Qt,subtable:me.data,maxGlyphID:Qi+1}}},Et}(),Xu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="cmap",wt.prototype.parse=function(Pt){var Qt,ie,Yt;for(Pt.pos=this.offset,this.version=Pt.readUInt16(),Yt=Pt.readUInt16(),this.tables=[],this.unicode=null,ie=0;0<=Yt?ie<Yt:ie>Yt;ie=0<=Yt?++ie:--ie)Qt=new oh(Pt,this.offset),this.tables.push(Qt),Qt.isUnicode&&this.unicode==null&&(this.unicode=Qt);return!0},wt.encode=function(Pt,Qt){var ie,Yt;return Qt==null&&(Qt="macroman"),ie=oh.encode(Pt,Qt),(Yt=new Ph).writeUInt16(0),Yt.writeUInt16(1),ie.table=Yt.data.concat(ie.subtable),ie},wt}(),El=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="hhea",wt.prototype.parse=function(Pt){return Pt.pos=this.offset,this.version=Pt.readInt(),this.ascender=Pt.readShort(),this.decender=Pt.readShort(),this.lineGap=Pt.readShort(),this.advanceWidthMax=Pt.readShort(),this.minLeftSideBearing=Pt.readShort(),this.minRightSideBearing=Pt.readShort(),this.xMaxExtent=Pt.readShort(),this.caretSlopeRise=Pt.readShort(),this.caretSlopeRun=Pt.readShort(),this.caretOffset=Pt.readShort(),Pt.pos+=8,this.metricDataFormat=Pt.readShort(),this.numberOfMetrics=Pt.readUInt16()},wt}(),oa=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="OS/2",wt.prototype.parse=function(Pt){if(Pt.pos=this.offset,this.version=Pt.readUInt16(),this.averageCharWidth=Pt.readShort(),this.weightClass=Pt.readUInt16(),this.widthClass=Pt.readUInt16(),this.type=Pt.readShort(),this.ySubscriptXSize=Pt.readShort(),this.ySubscriptYSize=Pt.readShort(),this.ySubscriptXOffset=Pt.readShort(),this.ySubscriptYOffset=Pt.readShort(),this.ySuperscriptXSize=Pt.readShort(),this.ySuperscriptYSize=Pt.readShort(),this.ySuperscriptXOffset=Pt.readShort(),this.ySuperscriptYOffset=Pt.readShort(),this.yStrikeoutSize=Pt.readShort(),this.yStrikeoutPosition=Pt.readShort(),this.familyClass=Pt.readShort(),this.panose=function(){var Qt,ie;for(ie=[],Qt=0;Qt<10;++Qt)ie.push(Pt.readByte());return ie}(),this.charRange=function(){var Qt,ie;for(ie=[],Qt=0;Qt<4;++Qt)ie.push(Pt.readInt());return ie}(),this.vendorID=Pt.readString(4),this.selection=Pt.readShort(),this.firstCharIndex=Pt.readShort(),this.lastCharIndex=Pt.readShort(),this.version>0&&(this.ascent=Pt.readShort(),this.descent=Pt.readShort(),this.lineGap=Pt.readShort(),this.winAscent=Pt.readShort(),this.winDescent=Pt.readShort(),this.codePageRange=function(){var Qt,ie;for(ie=[],Qt=0;Qt<2;Qt=++Qt)ie.push(Pt.readInt());return ie}(),this.version>1))return this.xHeight=Pt.readShort(),this.capHeight=Pt.readShort(),this.defaultChar=Pt.readShort(),this.breakChar=Pt.readShort(),this.maxContext=Pt.readShort()},wt}(),gu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="post",wt.prototype.parse=function(Pt){var Qt,ie,Yt;switch(Pt.pos=this.offset,this.format=Pt.readInt(),this.italicAngle=Pt.readInt(),this.underlinePosition=Pt.readShort(),this.underlineThickness=Pt.readShort(),this.isFixedPitch=Pt.readInt(),this.minMemType42=Pt.readInt(),this.maxMemType42=Pt.readInt(),this.minMemType1=Pt.readInt(),this.maxMemType1=Pt.readInt(),this.format){case 65536:break;case 131072:var ge;for(ie=Pt.readUInt16(),this.glyphNameIndex=[],ge=0;0<=ie?ge<ie:ge>ie;ge=0<=ie?++ge:--ge)this.glyphNameIndex.push(Pt.readUInt16());for(this.names=[],Yt=[];Pt.pos<this.offset+this.length;)Qt=Pt.readByte(),Yt.push(this.names.push(Pt.readString(Qt)));return Yt;case 151552:return ie=Pt.readUInt16(),this.offsets=Pt.read(ie);case 196608:break;case 262144:return this.map=function(){var we,Pe,Xe;for(Xe=[],ge=we=0,Pe=this.file.maxp.numGlyphs;0<=Pe?we<Pe:we>Pe;ge=0<=Pe?++we:--we)Xe.push(Pt.readUInt32());return Xe}.call(this)}},wt}(),bh=function(Et,wt){this.raw=Et,this.length=Et.length,this.platformID=wt.platformID,this.encodingID=wt.encodingID,this.languageID=wt.languageID},wl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="name",wt.prototype.parse=function(Pt){var Qt,ie,Yt,ge,we,Pe,Xe,dn,An,Pn,ze;for(Pt.pos=this.offset,Pt.readShort(),Qt=Pt.readShort(),Pe=Pt.readShort(),ie=[],ge=0;0<=Qt?ge<Qt:ge>Qt;ge=0<=Qt?++ge:--ge)ie.push({platformID:Pt.readShort(),encodingID:Pt.readShort(),languageID:Pt.readShort(),nameID:Pt.readShort(),length:Pt.readShort(),offset:this.offset+Pe+Pt.readShort()});for(Xe={},ge=An=0,Pn=ie.length;An<Pn;ge=++An)Yt=ie[ge],Pt.pos=Yt.offset,dn=Pt.readString(Yt.length),we=new bh(dn,Yt),Xe[ze=Yt.nameID]==null&&(Xe[ze]=[]),Xe[Yt.nameID].push(we);this.strings=Xe,this.copyright=Xe[0],this.fontFamily=Xe[1],this.fontSubfamily=Xe[2],this.uniqueSubfamily=Xe[3],this.fontName=Xe[4],this.version=Xe[5];try{this.postscriptName=Xe[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(mi){this.postscriptName=Xe[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Xe[7],this.manufacturer=Xe[8],this.designer=Xe[9],this.description=Xe[10],this.vendorUrl=Xe[11],this.designerUrl=Xe[12],this.license=Xe[13],this.licenseUrl=Xe[14],this.preferredFamily=Xe[15],this.preferredSubfamily=Xe[17],this.compatibleFull=Xe[18],this.sampleText=Xe[19]},wt}(),zh=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="maxp",wt.prototype.parse=function(Pt){return Pt.pos=this.offset,this.version=Pt.readInt(),this.numGlyphs=Pt.readUInt16(),this.maxPoints=Pt.readUInt16(),this.maxContours=Pt.readUInt16(),this.maxCompositePoints=Pt.readUInt16(),this.maxComponentContours=Pt.readUInt16(),this.maxZones=Pt.readUInt16(),this.maxTwilightPoints=Pt.readUInt16(),this.maxStorage=Pt.readUInt16(),this.maxFunctionDefs=Pt.readUInt16(),this.maxInstructionDefs=Pt.readUInt16(),this.maxStackElements=Pt.readUInt16(),this.maxSizeOfInstructions=Pt.readUInt16(),this.maxComponentElements=Pt.readUInt16(),this.maxComponentDepth=Pt.readUInt16()},wt}(),Cu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="hmtx",wt.prototype.parse=function(Pt){var Qt,ie,Yt,ge,we,Pe,Xe;for(Pt.pos=this.offset,this.metrics=[],Qt=0,Pe=this.file.hhea.numberOfMetrics;0<=Pe?Qt<Pe:Qt>Pe;Qt=0<=Pe?++Qt:--Qt)this.metrics.push({advance:Pt.readUInt16(),lsb:Pt.readInt16()});for(Yt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var dn,An;for(An=[],Qt=dn=0;0<=Yt?dn<Yt:dn>Yt;Qt=0<=Yt?++dn:--dn)An.push(Pt.readInt16());return An}(),this.widths=function(){var dn,An,Pn,ze;for(ze=[],dn=0,An=(Pn=this.metrics).length;dn<An;dn++)ge=Pn[dn],ze.push(ge.advance);return ze}.call(this),ie=this.widths[this.widths.length-1],Xe=[],Qt=we=0;0<=Yt?we<Yt:we>Yt;Qt=0<=Yt?++we:--we)Xe.push(this.widths.push(ie));return Xe},wt.prototype.forGlyph=function(Pt){return Pt in this.metrics?this.metrics[Pt]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Pt-this.metrics.length]}},wt}(),wd=[].slice,Ea=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="glyf",wt.prototype.parse=function(){return this.cache={}},wt.prototype.glyphFor=function(Pt){var Qt,ie,Yt,ge,we,Pe,Xe,dn,An,Pn;return Pt in this.cache?this.cache[Pt]:(ge=this.file.loca,Qt=this.file.contents,ie=ge.indexOf(Pt),(Yt=ge.lengthOf(Pt))===0?this.cache[Pt]=null:(Qt.pos=this.offset+ie,we=(Pe=new Ph(Qt.read(Yt))).readShort(),dn=Pe.readShort(),Pn=Pe.readShort(),Xe=Pe.readShort(),An=Pe.readShort(),this.cache[Pt]=we===-1?new Fa(Pe,dn,Pn,Xe,An):new sh(Pe,we,dn,Pn,Xe,An),this.cache[Pt]))},wt.prototype.encode=function(Pt,Qt,ie){var Yt,ge,we,Pe,Xe;for(we=[],ge=[],Pe=0,Xe=Qt.length;Pe<Xe;Pe++)Yt=Pt[Qt[Pe]],ge.push(we.length),Yt&&(we=we.concat(Yt.encode(ie)));return ge.push(we.length),{table:we,offsets:ge}},wt}(),sh=function(){function Et(wt,Pt,Qt,ie,Yt,ge){this.raw=wt,this.numberOfContours=Pt,this.xMin=Qt,this.yMin=ie,this.xMax=Yt,this.yMax=ge,this.compound=!1}return Et.prototype.encode=function(){return this.raw.data},Et}(),Fa=function(){function Et(wt,Pt,Qt,ie,Yt){var ge,we;for(this.raw=wt,this.xMin=Pt,this.yMin=Qt,this.xMax=ie,this.yMax=Yt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ge=this.raw;we=ge.readShort(),this.glyphOffsets.push(ge.pos),this.glyphIDs.push(ge.readUInt16()),32&we;)ge.pos+=1&we?4:2,128&we?ge.pos+=8:64&we?ge.pos+=4:8&we&&(ge.pos+=2)}return Et.prototype.encode=function(){var wt,Pt,Qt;for(Pt=new Ph(wd.call(this.raw.data)),wt=0,Qt=this.glyphIDs.length;wt<Qt;++wt)Pt.pos=this.glyphOffsets[wt];return Pt.data},Et}(),dl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return qa(wt,Wu),wt.prototype.tag="loca",wt.prototype.parse=function(Pt){var Qt,ie;return Pt.pos=this.offset,Qt=this.file.head.indexToLocFormat,this.offsets=Qt===0?function(){var Yt,ge;for(ge=[],ie=0,Yt=this.length;ie<Yt;ie+=2)ge.push(2*Pt.readUInt16());return ge}.call(this):function(){var Yt,ge;for(ge=[],ie=0,Yt=this.length;ie<Yt;ie+=4)ge.push(Pt.readUInt32());return ge}.call(this)},wt.prototype.indexOf=function(Pt){return this.offsets[Pt]},wt.prototype.lengthOf=function(Pt){return this.offsets[Pt+1]-this.offsets[Pt]},wt.prototype.encode=function(Pt,Qt){for(var ie=new Uint32Array(this.offsets.length),Yt=0,ge=0,we=0;we<ie.length;++we)if(ie[we]=Yt,ge<Qt.length&&Qt[ge]==we){++ge,ie[we]=Yt;var Pe=this.offsets[we],Xe=this.offsets[we+1]-Pe;Xe>0&&(Yt+=Xe)}for(var dn=new Array(4*ie.length),An=0;An<ie.length;++An)dn[4*An+3]=255&ie[An],dn[4*An+2]=(65280&ie[An])>>8,dn[4*An+1]=(16711680&ie[An])>>16,dn[4*An]=(4278190080&ie[An])>>24;return dn},wt}(),Ql=function(){function Et(wt){this.font=wt,this.subset={},this.unicodes={},this.next=33}return Et.prototype.generateCmap=function(){var wt,Pt,Qt,ie,Yt;for(Pt in ie=this.font.cmap.tables[0].codeMap,wt={},Yt=this.subset)Qt=Yt[Pt],wt[Pt]=ie[Qt];return wt},Et.prototype.glyphsFor=function(wt){var Pt,Qt,ie,Yt,ge,we,Pe;for(ie={},ge=0,we=wt.length;ge<we;ge++)ie[Yt=wt[ge]]=this.font.glyf.glyphFor(Yt);for(Yt in Pt=[],ie)(Qt=ie[Yt])!=null&&Qt.compound&&Pt.push.apply(Pt,Qt.glyphIDs);if(Pt.length>0)for(Yt in Pe=this.glyphsFor(Pt))Qt=Pe[Yt],ie[Yt]=Qt;return ie},Et.prototype.encode=function(wt,Pt){var Qt,ie,Yt,ge,we,Pe,Xe,dn,An,Pn,ze,mi,ti,vi,Rn;for(ie in Qt=Xu.encode(this.generateCmap(),"unicode"),ge=this.glyphsFor(wt),ze={0:0},Rn=Qt.charMap)ze[(Pe=Rn[ie]).old]=Pe.new;for(mi in Pn=Qt.maxGlyphID,ge)mi in ze||(ze[mi]=Pn++);return dn=function(Ai){var Qi,rr;for(Qi in rr={},Ai)rr[Ai[Qi]]=Qi;return rr}(ze),An=Object.keys(dn).sort(function(Ai,Qi){return Ai-Qi}),ti=function(){var Ai,Qi,rr;for(rr=[],Ai=0,Qi=An.length;Ai<Qi;Ai++)we=An[Ai],rr.push(dn[we]);return rr}(),Yt=this.font.glyf.encode(ge,ti,ze),Xe=this.font.loca.encode(Yt.offsets,ti),vi={cmap:this.font.cmap.raw(),glyf:Yt.table,loca:Xe,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(Pt)},this.font.os2.exists&&(vi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(vi)},Et}();Qo.API.PDFObject=function(){var Et;function wt(){}return Et=function(Pt,Qt){return(Array(Qt+1).join("0")+Pt).slice(-Qt)},wt.convert=function(Pt){var Qt,ie,Yt,ge;if(Array.isArray(Pt))return"["+function(){var we,Pe,Xe;for(Xe=[],we=0,Pe=Pt.length;we<Pe;we++)Qt=Pt[we],Xe.push(wt.convert(Qt));return Xe}().join(" ")+"]";if(typeof Pt=="string")return"/"+Pt;if(Pt!=null&&Pt.isString)return"("+Pt+")";if(Pt instanceof Date)return"(D:"+Et(Pt.getUTCFullYear(),4)+Et(Pt.getUTCMonth(),2)+Et(Pt.getUTCDate(),2)+Et(Pt.getUTCHours(),2)+Et(Pt.getUTCMinutes(),2)+Et(Pt.getUTCSeconds(),2)+"Z)";if({}.toString.call(Pt)==="[object Object]"){for(ie in Yt=["<<"],Pt)ge=Pt[ie],Yt.push("/"+ie+" "+wt.convert(ge));return Yt.push(">>"),Yt.join(`
`)}return""+Pt},wt}();var Jl=Qo},86129:function(hi,Sn,Ft){var Lt=Ft(19208).lW,ce=Ft(97671);(function(re){hi.exports=re()})(function(){return function re(Ie,ee,Vt){function Mt(bt,se){if(!ee[bt]){if(!Ie[bt]){var Gt=void 0;if(!se&&Gt)return require(bt,!0);if(jt)return jt(bt,!0);var Xt=new Error("Cannot find module '"+bt+"'");throw Xt.code="MODULE_NOT_FOUND",Xt}var Ct=ee[bt]={exports:{}};Ie[bt][0].call(Ct.exports,function(et){var tt=Ie[bt][1][et];return Mt(tt||et)},Ct,Ct.exports,re,Ie,ee,Vt)}return ee[bt].exports}for(var jt=void 0,qt=0;qt<Vt.length;qt++)Mt(Vt[qt]);return Mt}({1:[function(re,Ie,ee){"use strict";var Vt=re("./utils"),Mt=re("./support"),jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ee.encode=function(qt){for(var bt,se,Gt,Xt,Ct,et,tt,lt=[],rt=0,ht=qt.length,dt=ht,xt=Vt.getTypeOf(qt)!=="string";rt<qt.length;)dt=ht-rt,Gt=xt?(bt=qt[rt++],se=rt<ht?qt[rt++]:0,rt<ht?qt[rt++]:0):(bt=qt.charCodeAt(rt++),se=rt<ht?qt.charCodeAt(rt++):0,rt<ht?qt.charCodeAt(rt++):0),Xt=bt>>2,Ct=(3&bt)<<4|se>>4,et=1<dt?(15&se)<<2|Gt>>6:64,tt=2<dt?63&Gt:64,lt.push(jt.charAt(Xt)+jt.charAt(Ct)+jt.charAt(et)+jt.charAt(tt));return lt.join("")},ee.decode=function(qt){var bt,se,Gt,Xt,Ct,et,tt=0,lt=0,rt="data:";if(qt.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ht,dt=3*(qt=qt.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(qt.charAt(qt.length-1)===jt.charAt(64)&&dt--,qt.charAt(qt.length-2)===jt.charAt(64)&&dt--,dt%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ht=Mt.uint8array?new Uint8Array(0|dt):new Array(0|dt);tt<qt.length;)bt=jt.indexOf(qt.charAt(tt++))<<2|(Xt=jt.indexOf(qt.charAt(tt++)))>>4,se=(15&Xt)<<4|(Ct=jt.indexOf(qt.charAt(tt++)))>>2,Gt=(3&Ct)<<6|(et=jt.indexOf(qt.charAt(tt++))),ht[lt++]=bt,Ct!==64&&(ht[lt++]=se),et!==64&&(ht[lt++]=Gt);return ht}},{"./support":30,"./utils":32}],2:[function(re,Ie,ee){"use strict";var Vt=re("./external"),Mt=re("./stream/DataWorker"),jt=re("./stream/Crc32Probe"),qt=re("./stream/DataLengthProbe");function bt(se,Gt,Xt,Ct,et){this.compressedSize=se,this.uncompressedSize=Gt,this.crc32=Xt,this.compression=Ct,this.compressedContent=et}bt.prototype={getContentWorker:function(){var se=new Mt(Vt.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new qt("data_length")),Gt=this;return se.on("end",function(){if(this.streamInfo.data_length!==Gt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),se},getCompressedWorker:function(){return new Mt(Vt.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},bt.createWorkerFrom=function(se,Gt,Xt){return se.pipe(new jt).pipe(new qt("uncompressedSize")).pipe(Gt.compressWorker(Xt)).pipe(new qt("compressedSize")).withStreamInfo("compression",Gt)},Ie.exports=bt},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(re,Ie,ee){"use strict";var Vt=re("./stream/GenericWorker");ee.STORE={magic:"\0\0",compressWorker:function(){return new Vt("STORE compression")},uncompressWorker:function(){return new Vt("STORE decompression")}},ee.DEFLATE=re("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(re,Ie,ee){"use strict";var Vt=re("./utils"),Mt=function(){for(var jt,qt=[],bt=0;bt<256;bt++){jt=bt;for(var se=0;se<8;se++)jt=1&jt?3988292384^jt>>>1:jt>>>1;qt[bt]=jt}return qt}();Ie.exports=function(jt,qt){return jt!==void 0&&jt.length?Vt.getTypeOf(jt)!=="string"?function(bt,se,Gt,Xt){var Ct=Mt,et=Xt+Gt;bt^=-1;for(var tt=Xt;tt<et;tt++)bt=bt>>>8^Ct[255&(bt^se[tt])];return-1^bt}(0|qt,jt,jt.length,0):function(bt,se,Gt,Xt){var Ct=Mt,et=Xt+Gt;bt^=-1;for(var tt=Xt;tt<et;tt++)bt=bt>>>8^Ct[255&(bt^se.charCodeAt(tt))];return-1^bt}(0|qt,jt,jt.length,0):0}},{"./utils":32}],5:[function(re,Ie,ee){"use strict";ee.base64=!1,ee.binary=!1,ee.dir=!1,ee.createFolders=!0,ee.date=null,ee.compression=null,ee.compressionOptions=null,ee.comment=null,ee.unixPermissions=null,ee.dosPermissions=null},{}],6:[function(re,Ie,ee){"use strict";var Vt=null;Vt=typeof Promise!="undefined"?Promise:re("lie"),Ie.exports={Promise:Vt}},{lie:37}],7:[function(re,Ie,ee){"use strict";var Vt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Mt=re("pako"),jt=re("./utils"),qt=re("./stream/GenericWorker"),bt=Vt?"uint8array":"array";function se(Gt,Xt){qt.call(this,"FlateWorker/"+Gt),this._pako=null,this._pakoAction=Gt,this._pakoOptions=Xt,this.meta={}}ee.magic="\b\0",jt.inherits(se,qt),se.prototype.processChunk=function(Gt){this.meta=Gt.meta,this._pako===null&&this._createPako(),this._pako.push(jt.transformTo(bt,Gt.data),!1)},se.prototype.flush=function(){qt.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},se.prototype.cleanUp=function(){qt.prototype.cleanUp.call(this),this._pako=null},se.prototype._createPako=function(){this._pako=new Mt[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Gt=this;this._pako.onData=function(Xt){Gt.push({data:Xt,meta:Gt.meta})}},ee.compressWorker=function(Gt){return new se("Deflate",Gt)},ee.uncompressWorker=function(){return new se("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(re,Ie,ee){"use strict";function Vt(Ct,et){var tt,lt="";for(tt=0;tt<et;tt++)lt+=String.fromCharCode(255&Ct),Ct>>>=8;return lt}function Mt(Ct,et,tt,lt,rt,ht){var dt,xt,Nt=Ct.file,Ut=Ct.compression,_t=ht!==bt.utf8encode,oe=jt.transformTo("string",ht(Nt.name)),he=jt.transformTo("string",bt.utf8encode(Nt.name)),fe=Nt.comment,Le=jt.transformTo("string",ht(fe)),te=jt.transformTo("string",bt.utf8encode(fe)),He=he.length!==Nt.name.length,Wt=te.length!==fe.length,Ke="",_e="",Ne="",Ge=Nt.dir,Ue=Nt.date,ve={crc32:0,compressedSize:0,uncompressedSize:0};et&&!tt||(ve.crc32=Ct.crc32,ve.compressedSize=Ct.compressedSize,ve.uncompressedSize=Ct.uncompressedSize);var ne=0;et&&(ne|=8),_t||!He&&!Wt||(ne|=2048);var Ce=0,bn=0;Ge&&(Ce|=16),rt==="UNIX"?(bn=798,Ce|=function(Ve,Nn){var Zn=Ve;return Ve||(Zn=Nn?16893:33204),(65535&Zn)<<16}(Nt.unixPermissions,Ge)):(bn=20,Ce|=function(Ve){return 63&(Ve||0)}(Nt.dosPermissions)),dt=Ue.getUTCHours(),dt<<=6,dt|=Ue.getUTCMinutes(),dt<<=5,dt|=Ue.getUTCSeconds()/2,xt=Ue.getUTCFullYear()-1980,xt<<=4,xt|=Ue.getUTCMonth()+1,xt<<=5,xt|=Ue.getUTCDate(),He&&(_e=Vt(1,1)+Vt(se(oe),4)+he,Ke+="up"+Vt(_e.length,2)+_e),Wt&&(Ne=Vt(1,1)+Vt(se(Le),4)+te,Ke+="uc"+Vt(Ne.length,2)+Ne);var Ln="";return Ln+=`
\0`,Ln+=Vt(ne,2),Ln+=Ut.magic,Ln+=Vt(dt,2),Ln+=Vt(xt,2),Ln+=Vt(ve.crc32,4),Ln+=Vt(ve.compressedSize,4),Ln+=Vt(ve.uncompressedSize,4),Ln+=Vt(oe.length,2),Ln+=Vt(Ke.length,2),{fileRecord:Gt.LOCAL_FILE_HEADER+Ln+oe+Ke,dirRecord:Gt.CENTRAL_FILE_HEADER+Vt(bn,2)+Ln+Vt(Le.length,2)+"\0\0\0\0"+Vt(Ce,4)+Vt(lt,4)+oe+Ke+Le}}var jt=re("../utils"),qt=re("../stream/GenericWorker"),bt=re("../utf8"),se=re("../crc32"),Gt=re("../signature");function Xt(Ct,et,tt,lt){qt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=et,this.zipPlatform=tt,this.encodeFileName=lt,this.streamFiles=Ct,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}jt.inherits(Xt,qt),Xt.prototype.push=function(Ct){var et=Ct.meta.percent||0,tt=this.entriesCount,lt=this._sources.length;this.accumulate?this.contentBuffer.push(Ct):(this.bytesWritten+=Ct.data.length,qt.prototype.push.call(this,{data:Ct.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},Xt.prototype.openedSource=function(Ct){this.currentSourceOffset=this.bytesWritten,this.currentFile=Ct.file.name;var et=this.streamFiles&&!Ct.file.dir;if(et){var tt=Mt(Ct,et,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:tt.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Xt.prototype.closedSource=function(Ct){this.accumulate=!1;var et=this.streamFiles&&!Ct.file.dir,tt=Mt(Ct,et,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(tt.dirRecord),et)this.push({data:function(lt){return Gt.DATA_DESCRIPTOR+Vt(lt.crc32,4)+Vt(lt.compressedSize,4)+Vt(lt.uncompressedSize,4)}(Ct),meta:{percent:100}});else for(this.push({data:tt.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Xt.prototype.flush=function(){for(var Ct=this.bytesWritten,et=0;et<this.dirRecords.length;et++)this.push({data:this.dirRecords[et],meta:{percent:100}});var tt=this.bytesWritten-Ct,lt=function(rt,ht,dt,xt,Nt){var Ut=jt.transformTo("string",Nt(xt));return Gt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Vt(rt,2)+Vt(rt,2)+Vt(ht,4)+Vt(dt,4)+Vt(Ut.length,2)+Ut}(this.dirRecords.length,tt,Ct,this.zipComment,this.encodeFileName);this.push({data:lt,meta:{percent:100}})},Xt.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Xt.prototype.registerPrevious=function(Ct){this._sources.push(Ct);var et=this;return Ct.on("data",function(tt){et.processChunk(tt)}),Ct.on("end",function(){et.closedSource(et.previous.streamInfo),et._sources.length?et.prepareNextSource():et.end()}),Ct.on("error",function(tt){et.error(tt)}),this},Xt.prototype.resume=function(){return!!qt.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Xt.prototype.error=function(Ct){var et=this._sources;if(!qt.prototype.error.call(this,Ct))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(Ct)}catch(lt){}return!0},Xt.prototype.lock=function(){qt.prototype.lock.call(this);for(var Ct=this._sources,et=0;et<Ct.length;et++)Ct[et].lock()},Ie.exports=Xt},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(re,Ie,ee){"use strict";var Vt=re("../compressions"),Mt=re("./ZipFileWorker");ee.generateWorker=function(jt,qt,bt){var se=new Mt(qt.streamFiles,bt,qt.platform,qt.encodeFileName),Gt=0;try{jt.forEach(function(Xt,Ct){Gt++;var et=function(ht,dt){var xt=ht||dt,Nt=Vt[xt];if(!Nt)throw new Error(xt+" is not a valid compression method !");return Nt}(Ct.options.compression,qt.compression),tt=Ct.options.compressionOptions||qt.compressionOptions||{},lt=Ct.dir,rt=Ct.date;Ct._compressWorker(et,tt).withStreamInfo("file",{name:Xt,dir:lt,date:rt,comment:Ct.comment||"",unixPermissions:Ct.unixPermissions,dosPermissions:Ct.dosPermissions}).pipe(se)}),se.entriesCount=Gt}catch(Xt){se.error(Xt)}return se}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(re,Ie,ee){"use strict";function Vt(){if(!(this instanceof Vt))return new Vt;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Mt=new Vt;for(var jt in this)typeof this[jt]!="function"&&(Mt[jt]=this[jt]);return Mt}}(Vt.prototype=re("./object")).loadAsync=re("./load"),Vt.support=re("./support"),Vt.defaults=re("./defaults"),Vt.version="3.10.1",Vt.loadAsync=function(Mt,jt){return new Vt().loadAsync(Mt,jt)},Vt.external=re("./external"),Ie.exports=Vt},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(re,Ie,ee){"use strict";var Vt=re("./utils"),Mt=re("./external"),jt=re("./utf8"),qt=re("./zipEntries"),bt=re("./stream/Crc32Probe"),se=re("./nodejsUtils");function Gt(Xt){return new Mt.Promise(function(Ct,et){var tt=Xt.decompressed.getContentWorker().pipe(new bt);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==Xt.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):Ct()}).resume()})}Ie.exports=function(Xt,Ct){var et=this;return Ct=Vt.extend(Ct||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:jt.utf8decode}),se.isNode&&se.isStream(Xt)?Mt.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Vt.prepareContent("the loaded zip file",Xt,!0,Ct.optimizedBinaryString,Ct.base64).then(function(tt){var lt=new qt(Ct);return lt.load(tt),lt}).then(function(tt){var lt=[Mt.Promise.resolve(tt)],rt=tt.files;if(Ct.checkCRC32)for(var ht=0;ht<rt.length;ht++)lt.push(Gt(rt[ht]));return Mt.Promise.all(lt)}).then(function(tt){for(var lt=tt.shift(),rt=lt.files,ht=0;ht<rt.length;ht++){var dt=rt[ht],xt=dt.fileNameStr,Nt=Vt.resolve(dt.fileNameStr);et.file(Nt,dt.decompressed,{binary:!0,optimizedBinaryString:!0,date:dt.date,dir:dt.dir,comment:dt.fileCommentStr.length?dt.fileCommentStr:null,unixPermissions:dt.unixPermissions,dosPermissions:dt.dosPermissions,createFolders:Ct.createFolders}),dt.dir||(et.file(Nt).unsafeOriginalName=xt)}return lt.zipComment.length&&(et.comment=lt.zipComment),et})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Mt=re("../stream/GenericWorker");function jt(qt,bt){Mt.call(this,"Nodejs stream input adapter for "+qt),this._upstreamEnded=!1,this._bindStream(bt)}Vt.inherits(jt,Mt),jt.prototype._bindStream=function(qt){var bt=this;(this._stream=qt).pause(),qt.on("data",function(se){bt.push({data:se,meta:{percent:0}})}).on("error",function(se){bt.isPaused?this.generatedError=se:bt.error(se)}).on("end",function(){bt.isPaused?bt._upstreamEnded=!0:bt.end()})},jt.prototype.pause=function(){return!!Mt.prototype.pause.call(this)&&(this._stream.pause(),!0)},jt.prototype.resume=function(){return!!Mt.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Ie.exports=jt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(re,Ie,ee){"use strict";var Vt=re("readable-stream").Readable;function Mt(jt,qt,bt){Vt.call(this,qt),this._helper=jt;var se=this;jt.on("data",function(Gt,Xt){se.push(Gt)||se._helper.pause(),bt&&bt(Xt)}).on("error",function(Gt){se.emit("error",Gt)}).on("end",function(){se.push(null)})}re("../utils").inherits(Mt,Vt),Mt.prototype._read=function(){this._helper.resume()},Ie.exports=Mt},{"../utils":32,"readable-stream":16}],14:[function(re,Ie,ee){"use strict";Ie.exports={isNode:typeof Lt!="undefined",newBufferFrom:function(Vt,Mt){if(Lt.from&&Lt.from!==Uint8Array.from)return Lt.from(Vt,Mt);if(typeof Vt=="number")throw new Error('The "data" argument must not be a number');return new Lt(Vt,Mt)},allocBuffer:function(Vt){if(Lt.alloc)return Lt.alloc(Vt);var Mt=new Lt(Vt);return Mt.fill(0),Mt},isBuffer:function(Vt){return Lt.isBuffer(Vt)},isStream:function(Vt){return Vt&&typeof Vt.on=="function"&&typeof Vt.pause=="function"&&typeof Vt.resume=="function"}}},{}],15:[function(re,Ie,ee){"use strict";function Vt(Nt,Ut,_t){var oe,he=jt.getTypeOf(Ut),fe=jt.extend(_t||{},se);fe.date=fe.date||new Date,fe.compression!==null&&(fe.compression=fe.compression.toUpperCase()),typeof fe.unixPermissions=="string"&&(fe.unixPermissions=parseInt(fe.unixPermissions,8)),fe.unixPermissions&&16384&fe.unixPermissions&&(fe.dir=!0),fe.dosPermissions&&16&fe.dosPermissions&&(fe.dir=!0),fe.dir&&(Nt=rt(Nt)),fe.createFolders&&(oe=lt(Nt))&&ht.call(this,oe,!0);var Le=he==="string"&&fe.binary===!1&&fe.base64===!1;_t&&_t.binary!==void 0||(fe.binary=!Le),(Ut instanceof Gt&&Ut.uncompressedSize===0||fe.dir||!Ut||Ut.length===0)&&(fe.base64=!1,fe.binary=!0,Ut="",fe.compression="STORE",he="string");var te=null;te=Ut instanceof Gt||Ut instanceof qt?Ut:et.isNode&&et.isStream(Ut)?new tt(Nt,Ut):jt.prepareContent(Nt,Ut,fe.binary,fe.optimizedBinaryString,fe.base64);var He=new Xt(Nt,te,fe);this.files[Nt]=He}var Mt=re("./utf8"),jt=re("./utils"),qt=re("./stream/GenericWorker"),bt=re("./stream/StreamHelper"),se=re("./defaults"),Gt=re("./compressedObject"),Xt=re("./zipObject"),Ct=re("./generate"),et=re("./nodejsUtils"),tt=re("./nodejs/NodejsStreamInputAdapter"),lt=function(Nt){Nt.slice(-1)==="/"&&(Nt=Nt.substring(0,Nt.length-1));var Ut=Nt.lastIndexOf("/");return 0<Ut?Nt.substring(0,Ut):""},rt=function(Nt){return Nt.slice(-1)!=="/"&&(Nt+="/"),Nt},ht=function(Nt,Ut){return Ut=Ut!==void 0?Ut:se.createFolders,Nt=rt(Nt),this.files[Nt]||Vt.call(this,Nt,null,{dir:!0,createFolders:Ut}),this.files[Nt]};function dt(Nt){return Object.prototype.toString.call(Nt)==="[object RegExp]"}var xt={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Nt){var Ut,_t,oe;for(Ut in this.files)oe=this.files[Ut],(_t=Ut.slice(this.root.length,Ut.length))&&Ut.slice(0,this.root.length)===this.root&&Nt(_t,oe)},filter:function(Nt){var Ut=[];return this.forEach(function(_t,oe){Nt(_t,oe)&&Ut.push(oe)}),Ut},file:function(Nt,Ut,_t){if(arguments.length!==1)return Nt=this.root+Nt,Vt.call(this,Nt,Ut,_t),this;if(dt(Nt)){var oe=Nt;return this.filter(function(fe,Le){return!Le.dir&&oe.test(fe)})}var he=this.files[this.root+Nt];return he&&!he.dir?he:null},folder:function(Nt){if(!Nt)return this;if(dt(Nt))return this.filter(function(he,fe){return fe.dir&&Nt.test(he)});var Ut=this.root+Nt,_t=ht.call(this,Ut),oe=this.clone();return oe.root=_t.name,oe},remove:function(Nt){Nt=this.root+Nt;var Ut=this.files[Nt];if(Ut||(Nt.slice(-1)!=="/"&&(Nt+="/"),Ut=this.files[Nt]),Ut&&!Ut.dir)delete this.files[Nt];else for(var _t=this.filter(function(he,fe){return fe.name.slice(0,Nt.length)===Nt}),oe=0;oe<_t.length;oe++)delete this.files[_t[oe].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Nt){var Ut,_t={};try{if((_t=jt.extend(Nt||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Mt.utf8encode})).type=_t.type.toLowerCase(),_t.compression=_t.compression.toUpperCase(),_t.type==="binarystring"&&(_t.type="string"),!_t.type)throw new Error("No output type specified.");jt.checkSupport(_t.type),_t.platform!=="darwin"&&_t.platform!=="freebsd"&&_t.platform!=="linux"&&_t.platform!=="sunos"||(_t.platform="UNIX"),_t.platform==="win32"&&(_t.platform="DOS");var oe=_t.comment||this.comment||"";Ut=Ct.generateWorker(this,_t,oe)}catch(he){(Ut=new qt("error")).error(he)}return new bt(Ut,_t.type||"string",_t.mimeType)},generateAsync:function(Nt,Ut){return this.generateInternalStream(Nt).accumulate(Ut)},generateNodeStream:function(Nt,Ut){return(Nt=Nt||{}).type||(Nt.type="nodebuffer"),this.generateInternalStream(Nt).toNodejsStream(Ut)}};Ie.exports=xt},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(re,Ie,ee){"use strict";Ie.exports=re("stream")},{stream:void 0}],17:[function(re,Ie,ee){"use strict";var Vt=re("./DataReader");function Mt(jt){Vt.call(this,jt);for(var qt=0;qt<this.data.length;qt++)jt[qt]=255&jt[qt]}re("../utils").inherits(Mt,Vt),Mt.prototype.byteAt=function(jt){return this.data[this.zero+jt]},Mt.prototype.lastIndexOfSignature=function(jt){for(var qt=jt.charCodeAt(0),bt=jt.charCodeAt(1),se=jt.charCodeAt(2),Gt=jt.charCodeAt(3),Xt=this.length-4;0<=Xt;--Xt)if(this.data[Xt]===qt&&this.data[Xt+1]===bt&&this.data[Xt+2]===se&&this.data[Xt+3]===Gt)return Xt-this.zero;return-1},Mt.prototype.readAndCheckSignature=function(jt){var qt=jt.charCodeAt(0),bt=jt.charCodeAt(1),se=jt.charCodeAt(2),Gt=jt.charCodeAt(3),Xt=this.readData(4);return qt===Xt[0]&&bt===Xt[1]&&se===Xt[2]&&Gt===Xt[3]},Mt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return[];var qt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Mt},{"../utils":32,"./DataReader":18}],18:[function(re,Ie,ee){"use strict";var Vt=re("../utils");function Mt(jt){this.data=jt,this.length=jt.length,this.index=0,this.zero=0}Mt.prototype={checkOffset:function(jt){this.checkIndex(this.index+jt)},checkIndex:function(jt){if(this.length<this.zero+jt||jt<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+jt+"). Corrupted zip ?")},setIndex:function(jt){this.checkIndex(jt),this.index=jt},skip:function(jt){this.setIndex(this.index+jt)},byteAt:function(){},readInt:function(jt){var qt,bt=0;for(this.checkOffset(jt),qt=this.index+jt-1;qt>=this.index;qt--)bt=(bt<<8)+this.byteAt(qt);return this.index+=jt,bt},readString:function(jt){return Vt.transformTo("string",this.readData(jt))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var jt=this.readInt(4);return new Date(Date.UTC(1980+(jt>>25&127),(jt>>21&15)-1,jt>>16&31,jt>>11&31,jt>>5&63,(31&jt)<<1))}},Ie.exports=Mt},{"../utils":32}],19:[function(re,Ie,ee){"use strict";var Vt=re("./Uint8ArrayReader");function Mt(jt){Vt.call(this,jt)}re("../utils").inherits(Mt,Vt),Mt.prototype.readData=function(jt){this.checkOffset(jt);var qt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Mt},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(re,Ie,ee){"use strict";var Vt=re("./DataReader");function Mt(jt){Vt.call(this,jt)}re("../utils").inherits(Mt,Vt),Mt.prototype.byteAt=function(jt){return this.data.charCodeAt(this.zero+jt)},Mt.prototype.lastIndexOfSignature=function(jt){return this.data.lastIndexOf(jt)-this.zero},Mt.prototype.readAndCheckSignature=function(jt){return jt===this.readData(4)},Mt.prototype.readData=function(jt){this.checkOffset(jt);var qt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Mt},{"../utils":32,"./DataReader":18}],21:[function(re,Ie,ee){"use strict";var Vt=re("./ArrayReader");function Mt(jt){Vt.call(this,jt)}re("../utils").inherits(Mt,Vt),Mt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return new Uint8Array(0);var qt=this.data.subarray(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,qt},Ie.exports=Mt},{"../utils":32,"./ArrayReader":17}],22:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Mt=re("../support"),jt=re("./ArrayReader"),qt=re("./StringReader"),bt=re("./NodeBufferReader"),se=re("./Uint8ArrayReader");Ie.exports=function(Gt){var Xt=Vt.getTypeOf(Gt);return Vt.checkSupport(Xt),Xt!=="string"||Mt.uint8array?Xt==="nodebuffer"?new bt(Gt):Mt.uint8array?new se(Vt.transformTo("uint8array",Gt)):new jt(Vt.transformTo("array",Gt)):new qt(Gt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(re,Ie,ee){"use strict";ee.LOCAL_FILE_HEADER="PK",ee.CENTRAL_FILE_HEADER="PK",ee.CENTRAL_DIRECTORY_END="PK",ee.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ee.ZIP64_CENTRAL_DIRECTORY_END="PK",ee.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(re,Ie,ee){"use strict";var Vt=re("./GenericWorker"),Mt=re("../utils");function jt(qt){Vt.call(this,"ConvertWorker to "+qt),this.destType=qt}Mt.inherits(jt,Vt),jt.prototype.processChunk=function(qt){this.push({data:Mt.transformTo(this.destType,qt.data),meta:qt.meta})},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],25:[function(re,Ie,ee){"use strict";var Vt=re("./GenericWorker"),Mt=re("../crc32");function jt(){Vt.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}re("../utils").inherits(jt,Vt),jt.prototype.processChunk=function(qt){this.streamInfo.crc32=Mt(qt.data,this.streamInfo.crc32||0),this.push(qt)},Ie.exports=jt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Mt=re("./GenericWorker");function jt(qt){Mt.call(this,"DataLengthProbe for "+qt),this.propName=qt,this.withStreamInfo(qt,0)}Vt.inherits(jt,Mt),jt.prototype.processChunk=function(qt){if(qt){var bt=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=bt+qt.data.length}Mt.prototype.processChunk.call(this,qt)},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],27:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Mt=re("./GenericWorker");function jt(qt){Mt.call(this,"DataWorker");var bt=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,qt.then(function(se){bt.dataIsReady=!0,bt.data=se,bt.max=se&&se.length||0,bt.type=Vt.getTypeOf(se),bt.isPaused||bt._tickAndRepeat()},function(se){bt.error(se)})}Vt.inherits(jt,Mt),jt.prototype.cleanUp=function(){Mt.prototype.cleanUp.call(this),this.data=null},jt.prototype.resume=function(){return!!Mt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Vt.delay(this._tickAndRepeat,[],this)),!0)},jt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Vt.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},jt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var qt=null,bt=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":qt=this.data.substring(this.index,bt);break;case"uint8array":qt=this.data.subarray(this.index,bt);break;case"array":case"nodebuffer":qt=this.data.slice(this.index,bt)}return this.index=bt,this.push({data:qt,meta:{percent:this.max?this.index/this.max*100:0}})},Ie.exports=jt},{"../utils":32,"./GenericWorker":28}],28:[function(re,Ie,ee){"use strict";function Vt(Mt){this.name=Mt||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}Vt.prototype={push:function(Mt){this.emit("data",Mt)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Mt){this.emit("error",Mt)}return!0},error:function(Mt){return!this.isFinished&&(this.isPaused?this.generatedError=Mt:(this.isFinished=!0,this.emit("error",Mt),this.previous&&this.previous.error(Mt),this.cleanUp()),!0)},on:function(Mt,jt){return this._listeners[Mt].push(jt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Mt,jt){if(this._listeners[Mt])for(var qt=0;qt<this._listeners[Mt].length;qt++)this._listeners[Mt][qt].call(this,jt)},pipe:function(Mt){return Mt.registerPrevious(this)},registerPrevious:function(Mt){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Mt.streamInfo,this.mergeStreamInfo(),this.previous=Mt;var jt=this;return Mt.on("data",function(qt){jt.processChunk(qt)}),Mt.on("end",function(){jt.end()}),Mt.on("error",function(qt){jt.error(qt)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var Mt=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Mt=!0),this.previous&&this.previous.resume(),!Mt},flush:function(){},processChunk:function(Mt){this.push(Mt)},withStreamInfo:function(Mt,jt){return this.extraStreamInfo[Mt]=jt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Mt in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Mt)&&(this.streamInfo[Mt]=this.extraStreamInfo[Mt])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var Mt="Worker "+this.name;return this.previous?this.previous+" -> "+Mt:Mt}},Ie.exports=Vt},{}],29:[function(re,Ie,ee){"use strict";var Vt=re("../utils"),Mt=re("./ConvertWorker"),jt=re("./GenericWorker"),qt=re("../base64"),bt=re("../support"),se=re("../external"),Gt=null;if(bt.nodestream)try{Gt=re("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function Xt(et,tt){return new se.Promise(function(lt,rt){var ht=[],dt=et._internalType,xt=et._outputType,Nt=et._mimeType;et.on("data",function(Ut,_t){ht.push(Ut),tt&&tt(_t)}).on("error",function(Ut){ht=[],rt(Ut)}).on("end",function(){try{var Ut=function(_t,oe,he){switch(_t){case"blob":return Vt.newBlob(Vt.transformTo("arraybuffer",oe),he);case"base64":return qt.encode(oe);default:return Vt.transformTo(_t,oe)}}(xt,function(_t,oe){var he,fe=0,Le=null,te=0;for(he=0;he<oe.length;he++)te+=oe[he].length;switch(_t){case"string":return oe.join("");case"array":return Array.prototype.concat.apply([],oe);case"uint8array":for(Le=new Uint8Array(te),he=0;he<oe.length;he++)Le.set(oe[he],fe),fe+=oe[he].length;return Le;case"nodebuffer":return Lt.concat(oe);default:throw new Error("concat : unsupported type '"+_t+"'")}}(dt,ht),Nt);lt(Ut)}catch(_t){rt(_t)}ht=[]}).resume()})}function Ct(et,tt,lt){var rt=tt;switch(tt){case"blob":case"arraybuffer":rt="uint8array";break;case"base64":rt="string"}try{this._internalType=rt,this._outputType=tt,this._mimeType=lt,Vt.checkSupport(rt),this._worker=et.pipe(new Mt(rt)),et.lock()}catch(ht){this._worker=new jt("error"),this._worker.error(ht)}}Ct.prototype={accumulate:function(et){return Xt(this,et)},on:function(et,tt){var lt=this;return et==="data"?this._worker.on(et,function(rt){tt.call(lt,rt.data,rt.meta)}):this._worker.on(et,function(){Vt.delay(tt,arguments,lt)}),this},resume:function(){return Vt.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(et){if(Vt.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Gt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},Ie.exports=Ct},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(re,Ie,ee){"use strict";if(ee.base64=!0,ee.array=!0,ee.string=!0,ee.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ee.nodebuffer=typeof Lt!="undefined",ee.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ee.blob=!1;else{var Vt=new ArrayBuffer(0);try{ee.blob=new Blob([Vt],{type:"application/zip"}).size===0}catch(jt){try{var Mt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Mt.append(Vt),ee.blob=Mt.getBlob("application/zip").size===0}catch(qt){ee.blob=!1}}}try{ee.nodestream=!!re("readable-stream").Readable}catch(jt){ee.nodestream=!1}},{"readable-stream":16}],31:[function(re,Ie,ee){"use strict";for(var Vt=re("./utils"),Mt=re("./support"),jt=re("./nodejsUtils"),qt=re("./stream/GenericWorker"),bt=new Array(256),se=0;se<256;se++)bt[se]=252<=se?6:248<=se?5:240<=se?4:224<=se?3:192<=se?2:1;bt[254]=bt[254]=1;function Gt(){qt.call(this,"utf-8 decode"),this.leftOver=null}function Xt(){qt.call(this,"utf-8 encode")}ee.utf8encode=function(Ct){return Mt.nodebuffer?jt.newBufferFrom(Ct,"utf-8"):function(et){var tt,lt,rt,ht,dt,xt=et.length,Nt=0;for(ht=0;ht<xt;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<xt&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),Nt+=lt<128?1:lt<2048?2:lt<65536?3:4;for(tt=Mt.uint8array?new Uint8Array(Nt):new Array(Nt),ht=dt=0;dt<Nt;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<xt&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),lt<128?tt[dt++]=lt:(lt<2048?tt[dt++]=192|lt>>>6:(lt<65536?tt[dt++]=224|lt>>>12:(tt[dt++]=240|lt>>>18,tt[dt++]=128|lt>>>12&63),tt[dt++]=128|lt>>>6&63),tt[dt++]=128|63&lt);return tt}(Ct)},ee.utf8decode=function(Ct){return Mt.nodebuffer?Vt.transformTo("nodebuffer",Ct).toString("utf-8"):function(et){var tt,lt,rt,ht,dt=et.length,xt=new Array(2*dt);for(tt=lt=0;tt<dt;)if((rt=et[tt++])<128)xt[lt++]=rt;else if(4<(ht=bt[rt]))xt[lt++]=65533,tt+=ht-1;else{for(rt&=ht===2?31:ht===3?15:7;1<ht&&tt<dt;)rt=rt<<6|63&et[tt++],ht--;1<ht?xt[lt++]=65533:rt<65536?xt[lt++]=rt:(rt-=65536,xt[lt++]=55296|rt>>10&1023,xt[lt++]=56320|1023&rt)}return xt.length!==lt&&(xt.subarray?xt=xt.subarray(0,lt):xt.length=lt),Vt.applyFromCharCode(xt)}(Ct=Vt.transformTo(Mt.uint8array?"uint8array":"array",Ct))},Vt.inherits(Gt,qt),Gt.prototype.processChunk=function(Ct){var et=Vt.transformTo(Mt.uint8array?"uint8array":"array",Ct.data);if(this.leftOver&&this.leftOver.length){if(Mt.uint8array){var tt=et;(et=new Uint8Array(tt.length+this.leftOver.length)).set(this.leftOver,0),et.set(tt,this.leftOver.length)}else et=this.leftOver.concat(et);this.leftOver=null}var lt=function(ht,dt){var xt;for((dt=dt||ht.length)>ht.length&&(dt=ht.length),xt=dt-1;0<=xt&&(192&ht[xt])==128;)xt--;return xt<0||xt===0?dt:xt+bt[ht[xt]]>dt?xt:dt}(et),rt=et;lt!==et.length&&(Mt.uint8array?(rt=et.subarray(0,lt),this.leftOver=et.subarray(lt,et.length)):(rt=et.slice(0,lt),this.leftOver=et.slice(lt,et.length))),this.push({data:ee.utf8decode(rt),meta:Ct.meta})},Gt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ee.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ee.Utf8DecodeWorker=Gt,Vt.inherits(Xt,qt),Xt.prototype.processChunk=function(Ct){this.push({data:ee.utf8encode(Ct.data),meta:Ct.meta})},ee.Utf8EncodeWorker=Xt},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(re,Ie,ee){"use strict";var Vt=re("./support"),Mt=re("./base64"),jt=re("./nodejsUtils"),qt=re("./external");function bt(tt){return tt}function se(tt,lt){for(var rt=0;rt<tt.length;++rt)lt[rt]=255&tt.charCodeAt(rt);return lt}re("setimmediate"),ee.newBlob=function(tt,lt){ee.checkSupport("blob");try{return new Blob([tt],{type:lt})}catch(ht){try{var rt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return rt.append(tt),rt.getBlob(lt)}catch(dt){throw new Error("Bug : can't construct the Blob.")}}};var Gt={stringifyByChunk:function(tt,lt,rt){var ht=[],dt=0,xt=tt.length;if(xt<=rt)return String.fromCharCode.apply(null,tt);for(;dt<xt;)lt==="array"||lt==="nodebuffer"?ht.push(String.fromCharCode.apply(null,tt.slice(dt,Math.min(dt+rt,xt)))):ht.push(String.fromCharCode.apply(null,tt.subarray(dt,Math.min(dt+rt,xt)))),dt+=rt;return ht.join("")},stringifyByChar:function(tt){for(var lt="",rt=0;rt<tt.length;rt++)lt+=String.fromCharCode(tt[rt]);return lt},applyCanBeUsed:{uint8array:function(){try{return Vt.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(tt){return!1}}(),nodebuffer:function(){try{return Vt.nodebuffer&&String.fromCharCode.apply(null,jt.allocBuffer(1)).length===1}catch(tt){return!1}}()}};function Xt(tt){var lt=65536,rt=ee.getTypeOf(tt),ht=!0;if(rt==="uint8array"?ht=Gt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ht=Gt.applyCanBeUsed.nodebuffer),ht)for(;1<lt;)try{return Gt.stringifyByChunk(tt,rt,lt)}catch(dt){lt=Math.floor(lt/2)}return Gt.stringifyByChar(tt)}function Ct(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}ee.applyFromCharCode=Xt;var et={};et.string={string:bt,array:function(tt){return se(tt,new Array(tt.length))},arraybuffer:function(tt){return et.string.uint8array(tt).buffer},uint8array:function(tt){return se(tt,new Uint8Array(tt.length))},nodebuffer:function(tt){return se(tt,jt.allocBuffer(tt.length))}},et.array={string:Xt,array:bt,arraybuffer:function(tt){return new Uint8Array(tt).buffer},uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.arraybuffer={string:function(tt){return Xt(new Uint8Array(tt))},array:function(tt){return Ct(new Uint8Array(tt),new Array(tt.byteLength))},arraybuffer:bt,uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(new Uint8Array(tt))}},et.uint8array={string:Xt,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return tt.buffer},uint8array:bt,nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.nodebuffer={string:Xt,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return et.nodebuffer.uint8array(tt).buffer},uint8array:function(tt){return Ct(tt,new Uint8Array(tt.length))},nodebuffer:bt},ee.transformTo=function(tt,lt){if(lt=lt||"",!tt)return lt;ee.checkSupport(tt);var rt=ee.getTypeOf(lt);return et[rt][tt](lt)},ee.resolve=function(tt){for(var lt=tt.split("/"),rt=[],ht=0;ht<lt.length;ht++){var dt=lt[ht];dt==="."||dt===""&&ht!==0&&ht!==lt.length-1||(dt===".."?rt.pop():rt.push(dt))}return rt.join("/")},ee.getTypeOf=function(tt){return typeof tt=="string"?"string":Object.prototype.toString.call(tt)==="[object Array]"?"array":Vt.nodebuffer&&jt.isBuffer(tt)?"nodebuffer":Vt.uint8array&&tt instanceof Uint8Array?"uint8array":Vt.arraybuffer&&tt instanceof ArrayBuffer?"arraybuffer":void 0},ee.checkSupport=function(tt){if(!Vt[tt.toLowerCase()])throw new Error(tt+" is not supported by this platform")},ee.MAX_VALUE_16BITS=65535,ee.MAX_VALUE_32BITS=-1,ee.pretty=function(tt){var lt,rt,ht="";for(rt=0;rt<(tt||"").length;rt++)ht+="\\x"+((lt=tt.charCodeAt(rt))<16?"0":"")+lt.toString(16).toUpperCase();return ht},ee.delay=function(tt,lt,rt){setImmediate(function(){tt.apply(rt||null,lt||[])})},ee.inherits=function(tt,lt){function rt(){}rt.prototype=lt.prototype,tt.prototype=new rt},ee.extend=function(){var tt,lt,rt={};for(tt=0;tt<arguments.length;tt++)for(lt in arguments[tt])Object.prototype.hasOwnProperty.call(arguments[tt],lt)&&rt[lt]===void 0&&(rt[lt]=arguments[tt][lt]);return rt},ee.prepareContent=function(tt,lt,rt,ht,dt){return qt.Promise.resolve(lt).then(function(xt){return Vt.blob&&(xt instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(xt))!==-1)&&typeof FileReader!="undefined"?new qt.Promise(function(Nt,Ut){var _t=new FileReader;_t.onload=function(oe){Nt(oe.target.result)},_t.onerror=function(oe){Ut(oe.target.error)},_t.readAsArrayBuffer(xt)}):xt}).then(function(xt){var Nt=ee.getTypeOf(xt);return Nt?(Nt==="arraybuffer"?xt=ee.transformTo("uint8array",xt):Nt==="string"&&(dt?xt=Mt.decode(xt):rt&&ht!==!0&&(xt=function(Ut){return se(Ut,Vt.uint8array?new Uint8Array(Ut.length):new Array(Ut.length))}(xt))),xt):qt.Promise.reject(new Error("Can't read the data of '"+tt+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(re,Ie,ee){"use strict";var Vt=re("./reader/readerFor"),Mt=re("./utils"),jt=re("./signature"),qt=re("./zipEntry"),bt=re("./support");function se(Gt){this.files=[],this.loadOptions=Gt}se.prototype={checkSignature:function(Gt){if(!this.reader.readAndCheckSignature(Gt)){this.reader.index-=4;var Xt=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Mt.pretty(Xt)+", expected "+Mt.pretty(Gt)+")")}},isSignature:function(Gt,Xt){var Ct=this.reader.index;this.reader.setIndex(Gt);var et=this.reader.readString(4)===Xt;return this.reader.setIndex(Ct),et},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Gt=this.reader.readData(this.zipCommentLength),Xt=bt.uint8array?"uint8array":"array",Ct=Mt.transformTo(Xt,Gt);this.zipComment=this.loadOptions.decodeFileName(Ct)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var Gt,Xt,Ct,et=this.zip64EndOfCentralSize-44;0<et;)Gt=this.reader.readInt(2),Xt=this.reader.readInt(4),Ct=this.reader.readData(Xt),this.zip64ExtensibleData[Gt]={id:Gt,length:Xt,value:Ct}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Gt,Xt;for(Gt=0;Gt<this.files.length;Gt++)Xt=this.files[Gt],this.reader.setIndex(Xt.localHeaderOffset),this.checkSignature(jt.LOCAL_FILE_HEADER),Xt.readLocalPart(this.reader),Xt.handleUTF8(),Xt.processAttributes()},readCentralDir:function(){var Gt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(jt.CENTRAL_FILE_HEADER);)(Gt=new qt({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(Gt);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var Gt=this.reader.lastIndexOfSignature(jt.CENTRAL_DIRECTORY_END);if(Gt<0)throw this.isSignature(0,jt.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(Gt);var Xt=Gt;if(this.checkSignature(jt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Mt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Mt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Mt.MAX_VALUE_16BITS||this.centralDirRecords===Mt.MAX_VALUE_16BITS||this.centralDirSize===Mt.MAX_VALUE_32BITS||this.centralDirOffset===Mt.MAX_VALUE_32BITS){if(this.zip64=!0,(Gt=this.reader.lastIndexOfSignature(jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Gt),this.checkSignature(jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,jt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(jt.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(jt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Ct=this.centralDirOffset+this.centralDirSize;this.zip64&&(Ct+=20,Ct+=12+this.zip64EndOfCentralSize);var et=Xt-Ct;if(0<et)this.isSignature(Xt,jt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(Gt){this.reader=Vt(Gt)},load:function(Gt){this.prepareReader(Gt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ie.exports=se},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(re,Ie,ee){"use strict";var Vt=re("./reader/readerFor"),Mt=re("./utils"),jt=re("./compressedObject"),qt=re("./crc32"),bt=re("./utf8"),se=re("./compressions"),Gt=re("./support");function Xt(Ct,et){this.options=Ct,this.loadOptions=et}Xt.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Ct){var et,tt;if(Ct.skip(22),this.fileNameLength=Ct.readInt(2),tt=Ct.readInt(2),this.fileName=Ct.readData(this.fileNameLength),Ct.skip(tt),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((et=function(lt){for(var rt in se)if(Object.prototype.hasOwnProperty.call(se,rt)&&se[rt].magic===lt)return se[rt];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Mt.pretty(this.compressionMethod)+" unknown (inner file : "+Mt.transformTo("string",this.fileName)+")");this.decompressed=new jt(this.compressedSize,this.uncompressedSize,this.crc32,et,Ct.readData(this.compressedSize))},readCentralPart:function(Ct){this.versionMadeBy=Ct.readInt(2),Ct.skip(2),this.bitFlag=Ct.readInt(2),this.compressionMethod=Ct.readString(2),this.date=Ct.readDate(),this.crc32=Ct.readInt(4),this.compressedSize=Ct.readInt(4),this.uncompressedSize=Ct.readInt(4);var et=Ct.readInt(2);if(this.extraFieldsLength=Ct.readInt(2),this.fileCommentLength=Ct.readInt(2),this.diskNumberStart=Ct.readInt(2),this.internalFileAttributes=Ct.readInt(2),this.externalFileAttributes=Ct.readInt(4),this.localHeaderOffset=Ct.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Ct.skip(et),this.readExtraFields(Ct),this.parseZIP64ExtraField(Ct),this.fileComment=Ct.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Ct=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Ct==0&&(this.dosPermissions=63&this.externalFileAttributes),Ct==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Ct=Vt(this.extraFields[1].value);this.uncompressedSize===Mt.MAX_VALUE_32BITS&&(this.uncompressedSize=Ct.readInt(8)),this.compressedSize===Mt.MAX_VALUE_32BITS&&(this.compressedSize=Ct.readInt(8)),this.localHeaderOffset===Mt.MAX_VALUE_32BITS&&(this.localHeaderOffset=Ct.readInt(8)),this.diskNumberStart===Mt.MAX_VALUE_32BITS&&(this.diskNumberStart=Ct.readInt(4))}},readExtraFields:function(Ct){var et,tt,lt,rt=Ct.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Ct.index+4<rt;)et=Ct.readInt(2),tt=Ct.readInt(2),lt=Ct.readData(tt),this.extraFields[et]={id:et,length:tt,value:lt};Ct.setIndex(rt)},handleUTF8:function(){var Ct=Gt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=bt.utf8decode(this.fileName),this.fileCommentStr=bt.utf8decode(this.fileComment);else{var et=this.findExtraFieldUnicodePath();if(et!==null)this.fileNameStr=et;else{var tt=Mt.transformTo(Ct,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(tt)}var lt=this.findExtraFieldUnicodeComment();if(lt!==null)this.fileCommentStr=lt;else{var rt=Mt.transformTo(Ct,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(rt)}}},findExtraFieldUnicodePath:function(){var Ct=this.extraFields[28789];if(Ct){var et=Vt(Ct.value);return et.readInt(1)!==1||qt(this.fileName)!==et.readInt(4)?null:bt.utf8decode(et.readData(Ct.length-5))}return null},findExtraFieldUnicodeComment:function(){var Ct=this.extraFields[25461];if(Ct){var et=Vt(Ct.value);return et.readInt(1)!==1||qt(this.fileComment)!==et.readInt(4)?null:bt.utf8decode(et.readData(Ct.length-5))}return null}},Ie.exports=Xt},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(re,Ie,ee){"use strict";function Vt(et,tt,lt){this.name=et,this.dir=lt.dir,this.date=lt.date,this.comment=lt.comment,this.unixPermissions=lt.unixPermissions,this.dosPermissions=lt.dosPermissions,this._data=tt,this._dataBinary=lt.binary,this.options={compression:lt.compression,compressionOptions:lt.compressionOptions}}var Mt=re("./stream/StreamHelper"),jt=re("./stream/DataWorker"),qt=re("./utf8"),bt=re("./compressedObject"),se=re("./stream/GenericWorker");Vt.prototype={internalStream:function(et){var tt=null,lt="string";try{if(!et)throw new Error("No output type specified.");var rt=(lt=et.toLowerCase())==="string"||lt==="text";lt!=="binarystring"&&lt!=="text"||(lt="string"),tt=this._decompressWorker();var ht=!this._dataBinary;ht&&!rt&&(tt=tt.pipe(new qt.Utf8EncodeWorker)),!ht&&rt&&(tt=tt.pipe(new qt.Utf8DecodeWorker))}catch(dt){(tt=new se("error")).error(dt)}return new Mt(tt,lt,"")},async:function(et,tt){return this.internalStream(et).accumulate(tt)},nodeStream:function(et,tt){return this.internalStream(et||"nodebuffer").toNodejsStream(tt)},_compressWorker:function(et,tt){if(this._data instanceof bt&&this._data.compression.magic===et.magic)return this._data.getCompressedWorker();var lt=this._decompressWorker();return this._dataBinary||(lt=lt.pipe(new qt.Utf8EncodeWorker)),bt.createWorkerFrom(lt,et,tt)},_decompressWorker:function(){return this._data instanceof bt?this._data.getContentWorker():this._data instanceof se?this._data:new jt(this._data)}};for(var Gt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Xt=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ct=0;Ct<Gt.length;Ct++)Vt.prototype[Gt[Ct]]=Xt;Ie.exports=Vt},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(re,Ie,ee){(function(Vt){"use strict";var Mt,jt,qt=Vt.MutationObserver||Vt.WebKitMutationObserver;if(qt){var bt=0,se=new qt(et),Gt=Vt.document.createTextNode("");se.observe(Gt,{characterData:!0}),Mt=function(){Gt.data=bt=++bt%2}}else if(Vt.setImmediate||Vt.MessageChannel===void 0)Mt="document"in Vt&&"onreadystatechange"in Vt.document.createElement("script")?function(){var tt=Vt.document.createElement("script");tt.onreadystatechange=function(){et(),tt.onreadystatechange=null,tt.parentNode.removeChild(tt),tt=null},Vt.document.documentElement.appendChild(tt)}:function(){setTimeout(et,0)};else{var Xt=new Vt.MessageChannel;Xt.port1.onmessage=et,Mt=function(){Xt.port2.postMessage(0)}}var Ct=[];function et(){var tt,lt;jt=!0;for(var rt=Ct.length;rt;){for(lt=Ct,Ct=[],tt=-1;++tt<rt;)lt[tt]();rt=Ct.length}jt=!1}Ie.exports=function(tt){Ct.push(tt)!==1||jt||Mt()}}).call(this,typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(re,Ie,ee){"use strict";var Vt=re("immediate");function Mt(){}var jt={},qt=["REJECTED"],bt=["FULFILLED"],se=["PENDING"];function Gt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=se,this.queue=[],this.outcome=void 0,rt!==Mt&&tt(this,rt)}function Xt(rt,ht,dt){this.promise=rt,typeof ht=="function"&&(this.onFulfilled=ht,this.callFulfilled=this.otherCallFulfilled),typeof dt=="function"&&(this.onRejected=dt,this.callRejected=this.otherCallRejected)}function Ct(rt,ht,dt){Vt(function(){var xt;try{xt=ht(dt)}catch(Nt){return jt.reject(rt,Nt)}xt===rt?jt.reject(rt,new TypeError("Cannot resolve promise with itself")):jt.resolve(rt,xt)})}function et(rt){var ht=rt&&rt.then;if(rt&&(typeof rt=="object"||typeof rt=="function")&&typeof ht=="function")return function(){ht.apply(rt,arguments)}}function tt(rt,ht){var dt=!1;function xt(_t){dt||(dt=!0,jt.reject(rt,_t))}function Nt(_t){dt||(dt=!0,jt.resolve(rt,_t))}var Ut=lt(function(){ht(Nt,xt)});Ut.status==="error"&&xt(Ut.value)}function lt(rt,ht){var dt={};try{dt.value=rt(ht),dt.status="success"}catch(xt){dt.status="error",dt.value=xt}return dt}(Ie.exports=Gt).prototype.finally=function(rt){if(typeof rt!="function")return this;var ht=this.constructor;return this.then(function(dt){return ht.resolve(rt()).then(function(){return dt})},function(dt){return ht.resolve(rt()).then(function(){throw dt})})},Gt.prototype.catch=function(rt){return this.then(null,rt)},Gt.prototype.then=function(rt,ht){if(typeof rt!="function"&&this.state===bt||typeof ht!="function"&&this.state===qt)return this;var dt=new this.constructor(Mt);return this.state!==se?Ct(dt,this.state===bt?rt:ht,this.outcome):this.queue.push(new Xt(dt,rt,ht)),dt},Xt.prototype.callFulfilled=function(rt){jt.resolve(this.promise,rt)},Xt.prototype.otherCallFulfilled=function(rt){Ct(this.promise,this.onFulfilled,rt)},Xt.prototype.callRejected=function(rt){jt.reject(this.promise,rt)},Xt.prototype.otherCallRejected=function(rt){Ct(this.promise,this.onRejected,rt)},jt.resolve=function(rt,ht){var dt=lt(et,ht);if(dt.status==="error")return jt.reject(rt,dt.value);var xt=dt.value;if(xt)tt(rt,xt);else{rt.state=bt,rt.outcome=ht;for(var Nt=-1,Ut=rt.queue.length;++Nt<Ut;)rt.queue[Nt].callFulfilled(ht)}return rt},jt.reject=function(rt,ht){rt.state=qt,rt.outcome=ht;for(var dt=-1,xt=rt.queue.length;++dt<xt;)rt.queue[dt].callRejected(ht);return rt},Gt.resolve=function(rt){return rt instanceof this?rt:jt.resolve(new this(Mt),rt)},Gt.reject=function(rt){var ht=new this(Mt);return jt.reject(ht,rt)},Gt.all=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,xt=!1;if(!dt)return this.resolve([]);for(var Nt=new Array(dt),Ut=0,_t=-1,oe=new this(Mt);++_t<dt;)he(rt[_t],_t);return oe;function he(fe,Le){ht.resolve(fe).then(function(te){Nt[Le]=te,++Ut!==dt||xt||(xt=!0,jt.resolve(oe,Nt))},function(te){xt||(xt=!0,jt.reject(oe,te))})}},Gt.race=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,xt=!1;if(!dt)return this.resolve([]);for(var Nt=-1,Ut=new this(Mt);++Nt<dt;)_t=rt[Nt],ht.resolve(_t).then(function(oe){xt||(xt=!0,jt.resolve(Ut,oe))},function(oe){xt||(xt=!0,jt.reject(Ut,oe))});var _t;return Ut}},{immediate:36}],38:[function(re,Ie,ee){"use strict";var Vt={};(0,re("./lib/utils/common").assign)(Vt,re("./lib/deflate"),re("./lib/inflate"),re("./lib/zlib/constants")),Ie.exports=Vt},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(re,Ie,ee){"use strict";var Vt=re("./zlib/deflate"),Mt=re("./utils/common"),jt=re("./utils/strings"),qt=re("./zlib/messages"),bt=re("./zlib/zstream"),se=Object.prototype.toString,Gt=0,Xt=-1,Ct=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=Mt.assign({level:Xt,method:et,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ct,to:""},rt||{});var ht=this.options;ht.raw&&0<ht.windowBits?ht.windowBits=-ht.windowBits:ht.gzip&&0<ht.windowBits&&ht.windowBits<16&&(ht.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bt,this.strm.avail_out=0;var dt=Vt.deflateInit2(this.strm,ht.level,ht.method,ht.windowBits,ht.memLevel,ht.strategy);if(dt!==Gt)throw new Error(qt[dt]);if(ht.header&&Vt.deflateSetHeader(this.strm,ht.header),ht.dictionary){var xt;if(xt=typeof ht.dictionary=="string"?jt.string2buf(ht.dictionary):se.call(ht.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ht.dictionary):ht.dictionary,(dt=Vt.deflateSetDictionary(this.strm,xt))!==Gt)throw new Error(qt[dt]);this._dict_set=!0}}function lt(rt,ht){var dt=new tt(ht);if(dt.push(rt,!0),dt.err)throw dt.msg||qt[dt.err];return dt.result}tt.prototype.push=function(rt,ht){var dt,xt,Nt=this.strm,Ut=this.options.chunkSize;if(this.ended)return!1;xt=ht===~~ht?ht:ht===!0?4:0,typeof rt=="string"?Nt.input=jt.string2buf(rt):se.call(rt)==="[object ArrayBuffer]"?Nt.input=new Uint8Array(rt):Nt.input=rt,Nt.next_in=0,Nt.avail_in=Nt.input.length;do{if(Nt.avail_out===0&&(Nt.output=new Mt.Buf8(Ut),Nt.next_out=0,Nt.avail_out=Ut),(dt=Vt.deflate(Nt,xt))!==1&&dt!==Gt)return this.onEnd(dt),!(this.ended=!0);Nt.avail_out!==0&&(Nt.avail_in!==0||xt!==4&&xt!==2)||(this.options.to==="string"?this.onData(jt.buf2binstring(Mt.shrinkBuf(Nt.output,Nt.next_out))):this.onData(Mt.shrinkBuf(Nt.output,Nt.next_out)))}while((0<Nt.avail_in||Nt.avail_out===0)&&dt!==1);return xt===4?(dt=Vt.deflateEnd(this.strm),this.onEnd(dt),this.ended=!0,dt===Gt):xt!==2||(this.onEnd(Gt),!(Nt.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===Gt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Mt.flattenChunks(this.chunks)),this.chunks=[],this.err=rt,this.msg=this.strm.msg},ee.Deflate=tt,ee.deflate=lt,ee.deflateRaw=function(rt,ht){return(ht=ht||{}).raw=!0,lt(rt,ht)},ee.gzip=function(rt,ht){return(ht=ht||{}).gzip=!0,lt(rt,ht)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(re,Ie,ee){"use strict";var Vt=re("./zlib/inflate"),Mt=re("./utils/common"),jt=re("./utils/strings"),qt=re("./zlib/constants"),bt=re("./zlib/messages"),se=re("./zlib/zstream"),Gt=re("./zlib/gzheader"),Xt=Object.prototype.toString;function Ct(tt){if(!(this instanceof Ct))return new Ct(tt);this.options=Mt.assign({chunkSize:16384,windowBits:0,to:""},tt||{});var lt=this.options;lt.raw&&0<=lt.windowBits&&lt.windowBits<16&&(lt.windowBits=-lt.windowBits,lt.windowBits===0&&(lt.windowBits=-15)),!(0<=lt.windowBits&&lt.windowBits<16)||tt&&tt.windowBits||(lt.windowBits+=32),15<lt.windowBits&&lt.windowBits<48&&!(15&lt.windowBits)&&(lt.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new se,this.strm.avail_out=0;var rt=Vt.inflateInit2(this.strm,lt.windowBits);if(rt!==qt.Z_OK)throw new Error(bt[rt]);this.header=new Gt,Vt.inflateGetHeader(this.strm,this.header)}function et(tt,lt){var rt=new Ct(lt);if(rt.push(tt,!0),rt.err)throw rt.msg||bt[rt.err];return rt.result}Ct.prototype.push=function(tt,lt){var rt,ht,dt,xt,Nt,Ut,_t=this.strm,oe=this.options.chunkSize,he=this.options.dictionary,fe=!1;if(this.ended)return!1;ht=lt===~~lt?lt:lt===!0?qt.Z_FINISH:qt.Z_NO_FLUSH,typeof tt=="string"?_t.input=jt.binstring2buf(tt):Xt.call(tt)==="[object ArrayBuffer]"?_t.input=new Uint8Array(tt):_t.input=tt,_t.next_in=0,_t.avail_in=_t.input.length;do{if(_t.avail_out===0&&(_t.output=new Mt.Buf8(oe),_t.next_out=0,_t.avail_out=oe),(rt=Vt.inflate(_t,qt.Z_NO_FLUSH))===qt.Z_NEED_DICT&&he&&(Ut=typeof he=="string"?jt.string2buf(he):Xt.call(he)==="[object ArrayBuffer]"?new Uint8Array(he):he,rt=Vt.inflateSetDictionary(this.strm,Ut)),rt===qt.Z_BUF_ERROR&&fe===!0&&(rt=qt.Z_OK,fe=!1),rt!==qt.Z_STREAM_END&&rt!==qt.Z_OK)return this.onEnd(rt),!(this.ended=!0);_t.next_out&&(_t.avail_out!==0&&rt!==qt.Z_STREAM_END&&(_t.avail_in!==0||ht!==qt.Z_FINISH&&ht!==qt.Z_SYNC_FLUSH)||(this.options.to==="string"?(dt=jt.utf8border(_t.output,_t.next_out),xt=_t.next_out-dt,Nt=jt.buf2string(_t.output,dt),_t.next_out=xt,_t.avail_out=oe-xt,xt&&Mt.arraySet(_t.output,_t.output,dt,xt,0),this.onData(Nt)):this.onData(Mt.shrinkBuf(_t.output,_t.next_out)))),_t.avail_in===0&&_t.avail_out===0&&(fe=!0)}while((0<_t.avail_in||_t.avail_out===0)&&rt!==qt.Z_STREAM_END);return rt===qt.Z_STREAM_END&&(ht=qt.Z_FINISH),ht===qt.Z_FINISH?(rt=Vt.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===qt.Z_OK):ht!==qt.Z_SYNC_FLUSH||(this.onEnd(qt.Z_OK),!(_t.avail_out=0))},Ct.prototype.onData=function(tt){this.chunks.push(tt)},Ct.prototype.onEnd=function(tt){tt===qt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Mt.flattenChunks(this.chunks)),this.chunks=[],this.err=tt,this.msg=this.strm.msg},ee.Inflate=Ct,ee.inflate=et,ee.inflateRaw=function(tt,lt){return(lt=lt||{}).raw=!0,et(tt,lt)},ee.ungzip=et},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(re,Ie,ee){"use strict";var Vt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ee.assign=function(qt){for(var bt=Array.prototype.slice.call(arguments,1);bt.length;){var se=bt.shift();if(se){if(typeof se!="object")throw new TypeError(se+"must be non-object");for(var Gt in se)se.hasOwnProperty(Gt)&&(qt[Gt]=se[Gt])}}return qt},ee.shrinkBuf=function(qt,bt){return qt.length===bt?qt:qt.subarray?qt.subarray(0,bt):(qt.length=bt,qt)};var Mt={arraySet:function(qt,bt,se,Gt,Xt){if(bt.subarray&&qt.subarray)qt.set(bt.subarray(se,se+Gt),Xt);else for(var Ct=0;Ct<Gt;Ct++)qt[Xt+Ct]=bt[se+Ct]},flattenChunks:function(qt){var bt,se,Gt,Xt,Ct,et;for(bt=Gt=0,se=qt.length;bt<se;bt++)Gt+=qt[bt].length;for(et=new Uint8Array(Gt),bt=Xt=0,se=qt.length;bt<se;bt++)Ct=qt[bt],et.set(Ct,Xt),Xt+=Ct.length;return et}},jt={arraySet:function(qt,bt,se,Gt,Xt){for(var Ct=0;Ct<Gt;Ct++)qt[Xt+Ct]=bt[se+Ct]},flattenChunks:function(qt){return[].concat.apply([],qt)}};ee.setTyped=function(qt){qt?(ee.Buf8=Uint8Array,ee.Buf16=Uint16Array,ee.Buf32=Int32Array,ee.assign(ee,Mt)):(ee.Buf8=Array,ee.Buf16=Array,ee.Buf32=Array,ee.assign(ee,jt))},ee.setTyped(Vt)},{}],42:[function(re,Ie,ee){"use strict";var Vt=re("./common"),Mt=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch(Gt){Mt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Gt){jt=!1}for(var qt=new Vt.Buf8(256),bt=0;bt<256;bt++)qt[bt]=252<=bt?6:248<=bt?5:240<=bt?4:224<=bt?3:192<=bt?2:1;function se(Gt,Xt){if(Xt<65537&&(Gt.subarray&&jt||!Gt.subarray&&Mt))return String.fromCharCode.apply(null,Vt.shrinkBuf(Gt,Xt));for(var Ct="",et=0;et<Xt;et++)Ct+=String.fromCharCode(Gt[et]);return Ct}qt[254]=qt[254]=1,ee.string2buf=function(Gt){var Xt,Ct,et,tt,lt,rt=Gt.length,ht=0;for(tt=0;tt<rt;tt++)(64512&(Ct=Gt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Gt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),ht+=Ct<128?1:Ct<2048?2:Ct<65536?3:4;for(Xt=new Vt.Buf8(ht),tt=lt=0;lt<ht;tt++)(64512&(Ct=Gt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Gt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),Ct<128?Xt[lt++]=Ct:(Ct<2048?Xt[lt++]=192|Ct>>>6:(Ct<65536?Xt[lt++]=224|Ct>>>12:(Xt[lt++]=240|Ct>>>18,Xt[lt++]=128|Ct>>>12&63),Xt[lt++]=128|Ct>>>6&63),Xt[lt++]=128|63&Ct);return Xt},ee.buf2binstring=function(Gt){return se(Gt,Gt.length)},ee.binstring2buf=function(Gt){for(var Xt=new Vt.Buf8(Gt.length),Ct=0,et=Xt.length;Ct<et;Ct++)Xt[Ct]=Gt.charCodeAt(Ct);return Xt},ee.buf2string=function(Gt,Xt){var Ct,et,tt,lt,rt=Xt||Gt.length,ht=new Array(2*rt);for(Ct=et=0;Ct<rt;)if((tt=Gt[Ct++])<128)ht[et++]=tt;else if(4<(lt=qt[tt]))ht[et++]=65533,Ct+=lt-1;else{for(tt&=lt===2?31:lt===3?15:7;1<lt&&Ct<rt;)tt=tt<<6|63&Gt[Ct++],lt--;1<lt?ht[et++]=65533:tt<65536?ht[et++]=tt:(tt-=65536,ht[et++]=55296|tt>>10&1023,ht[et++]=56320|1023&tt)}return se(ht,et)},ee.utf8border=function(Gt,Xt){var Ct;for((Xt=Xt||Gt.length)>Gt.length&&(Xt=Gt.length),Ct=Xt-1;0<=Ct&&(192&Gt[Ct])==128;)Ct--;return Ct<0||Ct===0?Xt:Ct+qt[Gt[Ct]]>Xt?Ct:Xt}},{"./common":41}],43:[function(re,Ie,ee){"use strict";Ie.exports=function(Vt,Mt,jt,qt){for(var bt=65535&Vt|0,se=Vt>>>16&65535|0,Gt=0;jt!==0;){for(jt-=Gt=2e3<jt?2e3:jt;se=se+(bt=bt+Mt[qt++]|0)|0,--Gt;);bt%=65521,se%=65521}return bt|se<<16|0}},{}],44:[function(re,Ie,ee){"use strict";Ie.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(re,Ie,ee){"use strict";var Vt=function(){for(var Mt,jt=[],qt=0;qt<256;qt++){Mt=qt;for(var bt=0;bt<8;bt++)Mt=1&Mt?3988292384^Mt>>>1:Mt>>>1;jt[qt]=Mt}return jt}();Ie.exports=function(Mt,jt,qt,bt){var se=Vt,Gt=bt+qt;Mt^=-1;for(var Xt=bt;Xt<Gt;Xt++)Mt=Mt>>>8^se[255&(Mt^jt[Xt])];return-1^Mt}},{}],46:[function(re,Ie,ee){"use strict";var Vt,Mt=re("../utils/common"),jt=re("./trees"),qt=re("./adler32"),bt=re("./crc32"),se=re("./messages"),Gt=0,Xt=4,Ct=0,et=-2,tt=-1,lt=4,rt=2,ht=8,dt=9,xt=286,Nt=30,Ut=19,_t=2*xt+1,oe=15,he=3,fe=258,Le=fe+he+1,te=42,He=113,Wt=1,Ke=2,_e=3,Ne=4;function Ge(Ot,Tt){return Ot.msg=se[Tt],Tt}function Ue(Ot){return(Ot<<1)-(4<Ot?9:0)}function ve(Ot){for(var Tt=Ot.length;0<=--Tt;)Ot[Tt]=0}function ne(Ot){var Tt=Ot.state,vt=Tt.pending;vt>Ot.avail_out&&(vt=Ot.avail_out),vt!==0&&(Mt.arraySet(Ot.output,Tt.pending_buf,Tt.pending_out,vt,Ot.next_out),Ot.next_out+=vt,Tt.pending_out+=vt,Ot.total_out+=vt,Ot.avail_out-=vt,Tt.pending-=vt,Tt.pending===0&&(Tt.pending_out=0))}function Ce(Ot,Tt){jt._tr_flush_block(Ot,0<=Ot.block_start?Ot.block_start:-1,Ot.strstart-Ot.block_start,Tt),Ot.block_start=Ot.strstart,ne(Ot.strm)}function bn(Ot,Tt){Ot.pending_buf[Ot.pending++]=Tt}function Ln(Ot,Tt){Ot.pending_buf[Ot.pending++]=Tt>>>8&255,Ot.pending_buf[Ot.pending++]=255&Tt}function Ve(Ot,Tt){var vt,gt,ft=Ot.max_chain_length,At=Ot.strstart,le=Ot.prev_length,xe=Ot.nice_match,ae=Ot.strstart>Ot.w_size-Le?Ot.strstart-(Ot.w_size-Le):0,ye=Ot.window,Oe=Ot.w_mask,Te=Ot.prev,Me=Ot.strstart+fe,on=ye[At+le-1],Wn=ye[At+le];Ot.prev_length>=Ot.good_match&&(ft>>=2),xe>Ot.lookahead&&(xe=Ot.lookahead);do if(ye[(vt=Tt)+le]===Wn&&ye[vt+le-1]===on&&ye[vt]===ye[At]&&ye[++vt]===ye[At+1]){At+=2,vt++;do;while(ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&ye[++At]===ye[++vt]&&At<Me);if(gt=fe-(Me-At),At=Me-fe,le<gt){if(Ot.match_start=Tt,xe<=(le=gt))break;on=ye[At+le-1],Wn=ye[At+le]}}while((Tt=Te[Tt&Oe])>ae&&--ft!=0);return le<=Ot.lookahead?le:Ot.lookahead}function Nn(Ot){var Tt,vt,gt,ft,At,le,xe,ae,ye,Oe,Te=Ot.w_size;do{if(ft=Ot.window_size-Ot.lookahead-Ot.strstart,Ot.strstart>=Te+(Te-Le)){for(Mt.arraySet(Ot.window,Ot.window,Te,Te,0),Ot.match_start-=Te,Ot.strstart-=Te,Ot.block_start-=Te,Tt=vt=Ot.hash_size;gt=Ot.head[--Tt],Ot.head[Tt]=Te<=gt?gt-Te:0,--vt;);for(Tt=vt=Te;gt=Ot.prev[--Tt],Ot.prev[Tt]=Te<=gt?gt-Te:0,--vt;);ft+=Te}if(Ot.strm.avail_in===0)break;if(le=Ot.strm,xe=Ot.window,ae=Ot.strstart+Ot.lookahead,ye=ft,Oe=void 0,Oe=le.avail_in,ye<Oe&&(Oe=ye),vt=Oe===0?0:(le.avail_in-=Oe,Mt.arraySet(xe,le.input,le.next_in,Oe,ae),le.state.wrap===1?le.adler=qt(le.adler,xe,Oe,ae):le.state.wrap===2&&(le.adler=bt(le.adler,xe,Oe,ae)),le.next_in+=Oe,le.total_in+=Oe,Oe),Ot.lookahead+=vt,Ot.lookahead+Ot.insert>=he)for(At=Ot.strstart-Ot.insert,Ot.ins_h=Ot.window[At],Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[At+1])&Ot.hash_mask;Ot.insert&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[At+he-1])&Ot.hash_mask,Ot.prev[At&Ot.w_mask]=Ot.head[Ot.ins_h],Ot.head[Ot.ins_h]=At,At++,Ot.insert--,!(Ot.lookahead+Ot.insert<he)););}while(Ot.lookahead<Le&&Ot.strm.avail_in!==0)}function Zn(Ot,Tt){for(var vt,gt;;){if(Ot.lookahead<Le){if(Nn(Ot),Ot.lookahead<Le&&Tt===Gt)return Wt;if(Ot.lookahead===0)break}if(vt=0,Ot.lookahead>=he&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+he-1])&Ot.hash_mask,vt=Ot.prev[Ot.strstart&Ot.w_mask]=Ot.head[Ot.ins_h],Ot.head[Ot.ins_h]=Ot.strstart),vt!==0&&Ot.strstart-vt<=Ot.w_size-Le&&(Ot.match_length=Ve(Ot,vt)),Ot.match_length>=he)if(gt=jt._tr_tally(Ot,Ot.strstart-Ot.match_start,Ot.match_length-he),Ot.lookahead-=Ot.match_length,Ot.match_length<=Ot.max_lazy_match&&Ot.lookahead>=he){for(Ot.match_length--;Ot.strstart++,Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+he-1])&Ot.hash_mask,vt=Ot.prev[Ot.strstart&Ot.w_mask]=Ot.head[Ot.ins_h],Ot.head[Ot.ins_h]=Ot.strstart,--Ot.match_length!=0;);Ot.strstart++}else Ot.strstart+=Ot.match_length,Ot.match_length=0,Ot.ins_h=Ot.window[Ot.strstart],Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+1])&Ot.hash_mask;else gt=jt._tr_tally(Ot,0,Ot.window[Ot.strstart]),Ot.lookahead--,Ot.strstart++;if(gt&&(Ce(Ot,!1),Ot.strm.avail_out===0))return Wt}return Ot.insert=Ot.strstart<he-1?Ot.strstart:he-1,Tt===Xt?(Ce(Ot,!0),Ot.strm.avail_out===0?_e:Ne):Ot.last_lit&&(Ce(Ot,!1),Ot.strm.avail_out===0)?Wt:Ke}function gi(Ot,Tt){for(var vt,gt,ft;;){if(Ot.lookahead<Le){if(Nn(Ot),Ot.lookahead<Le&&Tt===Gt)return Wt;if(Ot.lookahead===0)break}if(vt=0,Ot.lookahead>=he&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+he-1])&Ot.hash_mask,vt=Ot.prev[Ot.strstart&Ot.w_mask]=Ot.head[Ot.ins_h],Ot.head[Ot.ins_h]=Ot.strstart),Ot.prev_length=Ot.match_length,Ot.prev_match=Ot.match_start,Ot.match_length=he-1,vt!==0&&Ot.prev_length<Ot.max_lazy_match&&Ot.strstart-vt<=Ot.w_size-Le&&(Ot.match_length=Ve(Ot,vt),Ot.match_length<=5&&(Ot.strategy===1||Ot.match_length===he&&4096<Ot.strstart-Ot.match_start)&&(Ot.match_length=he-1)),Ot.prev_length>=he&&Ot.match_length<=Ot.prev_length){for(ft=Ot.strstart+Ot.lookahead-he,gt=jt._tr_tally(Ot,Ot.strstart-1-Ot.prev_match,Ot.prev_length-he),Ot.lookahead-=Ot.prev_length-1,Ot.prev_length-=2;++Ot.strstart<=ft&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+he-1])&Ot.hash_mask,vt=Ot.prev[Ot.strstart&Ot.w_mask]=Ot.head[Ot.ins_h],Ot.head[Ot.ins_h]=Ot.strstart),--Ot.prev_length!=0;);if(Ot.match_available=0,Ot.match_length=he-1,Ot.strstart++,gt&&(Ce(Ot,!1),Ot.strm.avail_out===0))return Wt}else if(Ot.match_available){if((gt=jt._tr_tally(Ot,0,Ot.window[Ot.strstart-1]))&&Ce(Ot,!1),Ot.strstart++,Ot.lookahead--,Ot.strm.avail_out===0)return Wt}else Ot.match_available=1,Ot.strstart++,Ot.lookahead--}return Ot.match_available&&(gt=jt._tr_tally(Ot,0,Ot.window[Ot.strstart-1]),Ot.match_available=0),Ot.insert=Ot.strstart<he-1?Ot.strstart:he-1,Tt===Xt?(Ce(Ot,!0),Ot.strm.avail_out===0?_e:Ne):Ot.last_lit&&(Ce(Ot,!1),Ot.strm.avail_out===0)?Wt:Ke}function Kn(Ot,Tt,vt,gt,ft){this.good_length=Ot,this.max_lazy=Tt,this.nice_length=vt,this.max_chain=gt,this.func=ft}function Pi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ht,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Mt.Buf16(2*_t),this.dyn_dtree=new Mt.Buf16(2*(2*Nt+1)),this.bl_tree=new Mt.Buf16(2*(2*Ut+1)),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Mt.Buf16(oe+1),this.heap=new Mt.Buf16(2*xt+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Mt.Buf16(2*xt+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function tn(Ot){var Tt;return Ot&&Ot.state?(Ot.total_in=Ot.total_out=0,Ot.data_type=rt,(Tt=Ot.state).pending=0,Tt.pending_out=0,Tt.wrap<0&&(Tt.wrap=-Tt.wrap),Tt.status=Tt.wrap?te:He,Ot.adler=Tt.wrap===2?0:1,Tt.last_flush=Gt,jt._tr_init(Tt),Ct):Ge(Ot,et)}function Li(Ot){var Tt=tn(Ot);return Tt===Ct&&function(vt){vt.window_size=2*vt.w_size,ve(vt.head),vt.max_lazy_match=Vt[vt.level].max_lazy,vt.good_match=Vt[vt.level].good_length,vt.nice_match=Vt[vt.level].nice_length,vt.max_chain_length=Vt[vt.level].max_chain,vt.strstart=0,vt.block_start=0,vt.lookahead=0,vt.insert=0,vt.match_length=vt.prev_length=he-1,vt.match_available=0,vt.ins_h=0}(Ot.state),Tt}function ji(Ot,Tt,vt,gt,ft,At){if(!Ot)return et;var le=1;if(Tt===tt&&(Tt=6),gt<0?(le=0,gt=-gt):15<gt&&(le=2,gt-=16),ft<1||dt<ft||vt!==ht||gt<8||15<gt||Tt<0||9<Tt||At<0||lt<At)return Ge(Ot,et);gt===8&&(gt=9);var xe=new Pi;return(Ot.state=xe).strm=Ot,xe.wrap=le,xe.gzhead=null,xe.w_bits=gt,xe.w_size=1<<xe.w_bits,xe.w_mask=xe.w_size-1,xe.hash_bits=ft+7,xe.hash_size=1<<xe.hash_bits,xe.hash_mask=xe.hash_size-1,xe.hash_shift=~~((xe.hash_bits+he-1)/he),xe.window=new Mt.Buf8(2*xe.w_size),xe.head=new Mt.Buf16(xe.hash_size),xe.prev=new Mt.Buf16(xe.w_size),xe.lit_bufsize=1<<ft+6,xe.pending_buf_size=4*xe.lit_bufsize,xe.pending_buf=new Mt.Buf8(xe.pending_buf_size),xe.d_buf=1*xe.lit_bufsize,xe.l_buf=3*xe.lit_bufsize,xe.level=Tt,xe.strategy=At,xe.method=vt,Li(Ot)}Vt=[new Kn(0,0,0,0,function(Ot,Tt){var vt=65535;for(vt>Ot.pending_buf_size-5&&(vt=Ot.pending_buf_size-5);;){if(Ot.lookahead<=1){if(Nn(Ot),Ot.lookahead===0&&Tt===Gt)return Wt;if(Ot.lookahead===0)break}Ot.strstart+=Ot.lookahead,Ot.lookahead=0;var gt=Ot.block_start+vt;if((Ot.strstart===0||Ot.strstart>=gt)&&(Ot.lookahead=Ot.strstart-gt,Ot.strstart=gt,Ce(Ot,!1),Ot.strm.avail_out===0)||Ot.strstart-Ot.block_start>=Ot.w_size-Le&&(Ce(Ot,!1),Ot.strm.avail_out===0))return Wt}return Ot.insert=0,Tt===Xt?(Ce(Ot,!0),Ot.strm.avail_out===0?_e:Ne):(Ot.strstart>Ot.block_start&&(Ce(Ot,!1),Ot.strm.avail_out),Wt)}),new Kn(4,4,8,4,Zn),new Kn(4,5,16,8,Zn),new Kn(4,6,32,32,Zn),new Kn(4,4,16,16,gi),new Kn(8,16,32,32,gi),new Kn(8,16,128,128,gi),new Kn(8,32,128,256,gi),new Kn(32,128,258,1024,gi),new Kn(32,258,258,4096,gi)],ee.deflateInit=function(Ot,Tt){return ji(Ot,Tt,ht,15,8,0)},ee.deflateInit2=ji,ee.deflateReset=Li,ee.deflateResetKeep=tn,ee.deflateSetHeader=function(Ot,Tt){return Ot&&Ot.state?Ot.state.wrap!==2?et:(Ot.state.gzhead=Tt,Ct):et},ee.deflate=function(Ot,Tt){var vt,gt,ft,At;if(!Ot||!Ot.state||5<Tt||Tt<0)return Ot?Ge(Ot,et):et;if(gt=Ot.state,!Ot.output||!Ot.input&&Ot.avail_in!==0||gt.status===666&&Tt!==Xt)return Ge(Ot,Ot.avail_out===0?-5:et);if(gt.strm=Ot,vt=gt.last_flush,gt.last_flush=Tt,gt.status===te)if(gt.wrap===2)Ot.adler=0,bn(gt,31),bn(gt,139),bn(gt,8),gt.gzhead?(bn(gt,(gt.gzhead.text?1:0)+(gt.gzhead.hcrc?2:0)+(gt.gzhead.extra?4:0)+(gt.gzhead.name?8:0)+(gt.gzhead.comment?16:0)),bn(gt,255&gt.gzhead.time),bn(gt,gt.gzhead.time>>8&255),bn(gt,gt.gzhead.time>>16&255),bn(gt,gt.gzhead.time>>24&255),bn(gt,gt.level===9?2:2<=gt.strategy||gt.level<2?4:0),bn(gt,255&gt.gzhead.os),gt.gzhead.extra&&gt.gzhead.extra.length&&(bn(gt,255&gt.gzhead.extra.length),bn(gt,gt.gzhead.extra.length>>8&255)),gt.gzhead.hcrc&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending,0)),gt.gzindex=0,gt.status=69):(bn(gt,0),bn(gt,0),bn(gt,0),bn(gt,0),bn(gt,0),bn(gt,gt.level===9?2:2<=gt.strategy||gt.level<2?4:0),bn(gt,3),gt.status=He);else{var le=ht+(gt.w_bits-8<<4)<<8;le|=(2<=gt.strategy||gt.level<2?0:gt.level<6?1:gt.level===6?2:3)<<6,gt.strstart!==0&&(le|=32),le+=31-le%31,gt.status=He,Ln(gt,le),gt.strstart!==0&&(Ln(gt,Ot.adler>>>16),Ln(gt,65535&Ot.adler)),Ot.adler=1}if(gt.status===69)if(gt.gzhead.extra){for(ft=gt.pending;gt.gzindex<(65535&gt.gzhead.extra.length)&&(gt.pending!==gt.pending_buf_size||(gt.gzhead.hcrc&&gt.pending>ft&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending-ft,ft)),ne(Ot),ft=gt.pending,gt.pending!==gt.pending_buf_size));)bn(gt,255&gt.gzhead.extra[gt.gzindex]),gt.gzindex++;gt.gzhead.hcrc&&gt.pending>ft&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending-ft,ft)),gt.gzindex===gt.gzhead.extra.length&&(gt.gzindex=0,gt.status=73)}else gt.status=73;if(gt.status===73)if(gt.gzhead.name){ft=gt.pending;do{if(gt.pending===gt.pending_buf_size&&(gt.gzhead.hcrc&&gt.pending>ft&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending-ft,ft)),ne(Ot),ft=gt.pending,gt.pending===gt.pending_buf_size)){At=1;break}At=gt.gzindex<gt.gzhead.name.length?255&gt.gzhead.name.charCodeAt(gt.gzindex++):0,bn(gt,At)}while(At!==0);gt.gzhead.hcrc&&gt.pending>ft&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending-ft,ft)),At===0&&(gt.gzindex=0,gt.status=91)}else gt.status=91;if(gt.status===91)if(gt.gzhead.comment){ft=gt.pending;do{if(gt.pending===gt.pending_buf_size&&(gt.gzhead.hcrc&&gt.pending>ft&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending-ft,ft)),ne(Ot),ft=gt.pending,gt.pending===gt.pending_buf_size)){At=1;break}At=gt.gzindex<gt.gzhead.comment.length?255&gt.gzhead.comment.charCodeAt(gt.gzindex++):0,bn(gt,At)}while(At!==0);gt.gzhead.hcrc&&gt.pending>ft&&(Ot.adler=bt(Ot.adler,gt.pending_buf,gt.pending-ft,ft)),At===0&&(gt.status=103)}else gt.status=103;if(gt.status===103&&(gt.gzhead.hcrc?(gt.pending+2>gt.pending_buf_size&&ne(Ot),gt.pending+2<=gt.pending_buf_size&&(bn(gt,255&Ot.adler),bn(gt,Ot.adler>>8&255),Ot.adler=0,gt.status=He)):gt.status=He),gt.pending!==0){if(ne(Ot),Ot.avail_out===0)return gt.last_flush=-1,Ct}else if(Ot.avail_in===0&&Ue(Tt)<=Ue(vt)&&Tt!==Xt)return Ge(Ot,-5);if(gt.status===666&&Ot.avail_in!==0)return Ge(Ot,-5);if(Ot.avail_in!==0||gt.lookahead!==0||Tt!==Gt&&gt.status!==666){var xe=gt.strategy===2?function(ae,ye){for(var Oe;;){if(ae.lookahead===0&&(Nn(ae),ae.lookahead===0)){if(ye===Gt)return Wt;break}if(ae.match_length=0,Oe=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,Oe&&(Ce(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,ye===Xt?(Ce(ae,!0),ae.strm.avail_out===0?_e:Ne):ae.last_lit&&(Ce(ae,!1),ae.strm.avail_out===0)?Wt:Ke}(gt,Tt):gt.strategy===3?function(ae,ye){for(var Oe,Te,Me,on,Wn=ae.window;;){if(ae.lookahead<=fe){if(Nn(ae),ae.lookahead<=fe&&ye===Gt)return Wt;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=he&&0<ae.strstart&&(Te=Wn[Me=ae.strstart-1])===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]){on=ae.strstart+fe;do;while(Te===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]&&Te===Wn[++Me]&&Me<on);ae.match_length=fe-(on-Me),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=he?(Oe=jt._tr_tally(ae,1,ae.match_length-he),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(Oe=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),Oe&&(Ce(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,ye===Xt?(Ce(ae,!0),ae.strm.avail_out===0?_e:Ne):ae.last_lit&&(Ce(ae,!1),ae.strm.avail_out===0)?Wt:Ke}(gt,Tt):Vt[gt.level].func(gt,Tt);if(xe!==_e&&xe!==Ne||(gt.status=666),xe===Wt||xe===_e)return Ot.avail_out===0&&(gt.last_flush=-1),Ct;if(xe===Ke&&(Tt===1?jt._tr_align(gt):Tt!==5&&(jt._tr_stored_block(gt,0,0,!1),Tt===3&&(ve(gt.head),gt.lookahead===0&&(gt.strstart=0,gt.block_start=0,gt.insert=0))),ne(Ot),Ot.avail_out===0))return gt.last_flush=-1,Ct}return Tt!==Xt?Ct:gt.wrap<=0?1:(gt.wrap===2?(bn(gt,255&Ot.adler),bn(gt,Ot.adler>>8&255),bn(gt,Ot.adler>>16&255),bn(gt,Ot.adler>>24&255),bn(gt,255&Ot.total_in),bn(gt,Ot.total_in>>8&255),bn(gt,Ot.total_in>>16&255),bn(gt,Ot.total_in>>24&255)):(Ln(gt,Ot.adler>>>16),Ln(gt,65535&Ot.adler)),ne(Ot),0<gt.wrap&&(gt.wrap=-gt.wrap),gt.pending!==0?Ct:1)},ee.deflateEnd=function(Ot){var Tt;return Ot&&Ot.state?(Tt=Ot.state.status)!==te&&Tt!==69&&Tt!==73&&Tt!==91&&Tt!==103&&Tt!==He&&Tt!==666?Ge(Ot,et):(Ot.state=null,Tt===He?Ge(Ot,-3):Ct):et},ee.deflateSetDictionary=function(Ot,Tt){var vt,gt,ft,At,le,xe,ae,ye,Oe=Tt.length;if(!Ot||!Ot.state||(At=(vt=Ot.state).wrap)===2||At===1&&vt.status!==te||vt.lookahead)return et;for(At===1&&(Ot.adler=qt(Ot.adler,Tt,Oe,0)),vt.wrap=0,Oe>=vt.w_size&&(At===0&&(ve(vt.head),vt.strstart=0,vt.block_start=0,vt.insert=0),ye=new Mt.Buf8(vt.w_size),Mt.arraySet(ye,Tt,Oe-vt.w_size,vt.w_size,0),Tt=ye,Oe=vt.w_size),le=Ot.avail_in,xe=Ot.next_in,ae=Ot.input,Ot.avail_in=Oe,Ot.next_in=0,Ot.input=Tt,Nn(vt);vt.lookahead>=he;){for(gt=vt.strstart,ft=vt.lookahead-(he-1);vt.ins_h=(vt.ins_h<<vt.hash_shift^vt.window[gt+he-1])&vt.hash_mask,vt.prev[gt&vt.w_mask]=vt.head[vt.ins_h],vt.head[vt.ins_h]=gt,gt++,--ft;);vt.strstart=gt,vt.lookahead=he-1,Nn(vt)}return vt.strstart+=vt.lookahead,vt.block_start=vt.strstart,vt.insert=vt.lookahead,vt.lookahead=0,vt.match_length=vt.prev_length=he-1,vt.match_available=0,Ot.next_in=xe,Ot.input=ae,Ot.avail_in=le,vt.wrap=At,Ct},ee.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(re,Ie,ee){"use strict";Ie.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(re,Ie,ee){"use strict";Ie.exports=function(Vt,Mt){var jt,qt,bt,se,Gt,Xt,Ct,et,tt,lt,rt,ht,dt,xt,Nt,Ut,_t,oe,he,fe,Le,te,He,Wt,Ke;jt=Vt.state,qt=Vt.next_in,Wt=Vt.input,bt=qt+(Vt.avail_in-5),se=Vt.next_out,Ke=Vt.output,Gt=se-(Mt-Vt.avail_out),Xt=se+(Vt.avail_out-257),Ct=jt.dmax,et=jt.wsize,tt=jt.whave,lt=jt.wnext,rt=jt.window,ht=jt.hold,dt=jt.bits,xt=jt.lencode,Nt=jt.distcode,Ut=(1<<jt.lenbits)-1,_t=(1<<jt.distbits)-1;t:do{dt<15&&(ht+=Wt[qt++]<<dt,dt+=8,ht+=Wt[qt++]<<dt,dt+=8),oe=xt[ht&Ut];e:for(;;){if(ht>>>=he=oe>>>24,dt-=he,(he=oe>>>16&255)===0)Ke[se++]=65535&oe;else{if(!(16&he)){if(!(64&he)){oe=xt[(65535&oe)+(ht&(1<<he)-1)];continue e}if(32&he){jt.mode=12;break t}Vt.msg="invalid literal/length code",jt.mode=30;break t}fe=65535&oe,(he&=15)&&(dt<he&&(ht+=Wt[qt++]<<dt,dt+=8),fe+=ht&(1<<he)-1,ht>>>=he,dt-=he),dt<15&&(ht+=Wt[qt++]<<dt,dt+=8,ht+=Wt[qt++]<<dt,dt+=8),oe=Nt[ht&_t];n:for(;;){if(ht>>>=he=oe>>>24,dt-=he,!(16&(he=oe>>>16&255))){if(!(64&he)){oe=Nt[(65535&oe)+(ht&(1<<he)-1)];continue n}Vt.msg="invalid distance code",jt.mode=30;break t}if(Le=65535&oe,dt<(he&=15)&&(ht+=Wt[qt++]<<dt,(dt+=8)<he&&(ht+=Wt[qt++]<<dt,dt+=8)),Ct<(Le+=ht&(1<<he)-1)){Vt.msg="invalid distance too far back",jt.mode=30;break t}if(ht>>>=he,dt-=he,(he=se-Gt)<Le){if(tt<(he=Le-he)&&jt.sane){Vt.msg="invalid distance too far back",jt.mode=30;break t}if(He=rt,(te=0)===lt){if(te+=et-he,he<fe){for(fe-=he;Ke[se++]=rt[te++],--he;);te=se-Le,He=Ke}}else if(lt<he){if(te+=et+lt-he,(he-=lt)<fe){for(fe-=he;Ke[se++]=rt[te++],--he;);if(te=0,lt<fe){for(fe-=he=lt;Ke[se++]=rt[te++],--he;);te=se-Le,He=Ke}}}else if(te+=lt-he,he<fe){for(fe-=he;Ke[se++]=rt[te++],--he;);te=se-Le,He=Ke}for(;2<fe;)Ke[se++]=He[te++],Ke[se++]=He[te++],Ke[se++]=He[te++],fe-=3;fe&&(Ke[se++]=He[te++],1<fe&&(Ke[se++]=He[te++]))}else{for(te=se-Le;Ke[se++]=Ke[te++],Ke[se++]=Ke[te++],Ke[se++]=Ke[te++],2<(fe-=3););fe&&(Ke[se++]=Ke[te++],1<fe&&(Ke[se++]=Ke[te++]))}break}}break}}while(qt<bt&&se<Xt);qt-=fe=dt>>3,ht&=(1<<(dt-=fe<<3))-1,Vt.next_in=qt,Vt.next_out=se,Vt.avail_in=qt<bt?bt-qt+5:5-(qt-bt),Vt.avail_out=se<Xt?Xt-se+257:257-(se-Xt),jt.hold=ht,jt.bits=dt}},{}],49:[function(re,Ie,ee){"use strict";var Vt=re("../utils/common"),Mt=re("./adler32"),jt=re("./crc32"),qt=re("./inffast"),bt=re("./inftrees"),se=1,Gt=2,Xt=0,Ct=-2,et=1,tt=852,lt=592;function rt(te){return(te>>>24&255)+(te>>>8&65280)+((65280&te)<<8)+((255&te)<<24)}function ht(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Vt.Buf16(320),this.work=new Vt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dt(te){var He;return te&&te.state?(He=te.state,te.total_in=te.total_out=He.total=0,te.msg="",He.wrap&&(te.adler=1&He.wrap),He.mode=et,He.last=0,He.havedict=0,He.dmax=32768,He.head=null,He.hold=0,He.bits=0,He.lencode=He.lendyn=new Vt.Buf32(tt),He.distcode=He.distdyn=new Vt.Buf32(lt),He.sane=1,He.back=-1,Xt):Ct}function xt(te){var He;return te&&te.state?((He=te.state).wsize=0,He.whave=0,He.wnext=0,dt(te)):Ct}function Nt(te,He){var Wt,Ke;return te&&te.state?(Ke=te.state,He<0?(Wt=0,He=-He):(Wt=1+(He>>4),He<48&&(He&=15)),He&&(He<8||15<He)?Ct:(Ke.window!==null&&Ke.wbits!==He&&(Ke.window=null),Ke.wrap=Wt,Ke.wbits=He,xt(te))):Ct}function Ut(te,He){var Wt,Ke;return te?(Ke=new ht,(te.state=Ke).window=null,(Wt=Nt(te,He))!==Xt&&(te.state=null),Wt):Ct}var _t,oe,he=!0;function fe(te){if(he){var He;for(_t=new Vt.Buf32(512),oe=new Vt.Buf32(32),He=0;He<144;)te.lens[He++]=8;for(;He<256;)te.lens[He++]=9;for(;He<280;)te.lens[He++]=7;for(;He<288;)te.lens[He++]=8;for(bt(se,te.lens,0,288,_t,0,te.work,{bits:9}),He=0;He<32;)te.lens[He++]=5;bt(Gt,te.lens,0,32,oe,0,te.work,{bits:5}),he=!1}te.lencode=_t,te.lenbits=9,te.distcode=oe,te.distbits=5}function Le(te,He,Wt,Ke){var _e,Ne=te.state;return Ne.window===null&&(Ne.wsize=1<<Ne.wbits,Ne.wnext=0,Ne.whave=0,Ne.window=new Vt.Buf8(Ne.wsize)),Ke>=Ne.wsize?(Vt.arraySet(Ne.window,He,Wt-Ne.wsize,Ne.wsize,0),Ne.wnext=0,Ne.whave=Ne.wsize):(Ke<(_e=Ne.wsize-Ne.wnext)&&(_e=Ke),Vt.arraySet(Ne.window,He,Wt-Ke,_e,Ne.wnext),(Ke-=_e)?(Vt.arraySet(Ne.window,He,Wt-Ke,Ke,0),Ne.wnext=Ke,Ne.whave=Ne.wsize):(Ne.wnext+=_e,Ne.wnext===Ne.wsize&&(Ne.wnext=0),Ne.whave<Ne.wsize&&(Ne.whave+=_e))),0}ee.inflateReset=xt,ee.inflateReset2=Nt,ee.inflateResetKeep=dt,ee.inflateInit=function(te){return Ut(te,15)},ee.inflateInit2=Ut,ee.inflate=function(te,He){var Wt,Ke,_e,Ne,Ge,Ue,ve,ne,Ce,bn,Ln,Ve,Nn,Zn,gi,Kn,Pi,tn,Li,ji,Ot,Tt,vt,gt,ft=0,At=new Vt.Buf8(4),le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!te||!te.state||!te.output||!te.input&&te.avail_in!==0)return Ct;(Wt=te.state).mode===12&&(Wt.mode=13),Ge=te.next_out,_e=te.output,ve=te.avail_out,Ne=te.next_in,Ke=te.input,Ue=te.avail_in,ne=Wt.hold,Ce=Wt.bits,bn=Ue,Ln=ve,Tt=Xt;t:for(;;)switch(Wt.mode){case et:if(Wt.wrap===0){Wt.mode=13;break}for(;Ce<16;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(2&Wt.wrap&&ne===35615){At[Wt.check=0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0),Ce=ne=0,Wt.mode=2;break}if(Wt.flags=0,Wt.head&&(Wt.head.done=!1),!(1&Wt.wrap)||(((255&ne)<<8)+(ne>>8))%31){te.msg="incorrect header check",Wt.mode=30;break}if((15&ne)!=8){te.msg="unknown compression method",Wt.mode=30;break}if(Ce-=4,Ot=8+(15&(ne>>>=4)),Wt.wbits===0)Wt.wbits=Ot;else if(Ot>Wt.wbits){te.msg="invalid window size",Wt.mode=30;break}Wt.dmax=1<<Ot,te.adler=Wt.check=1,Wt.mode=512&ne?10:12,Ce=ne=0;break;case 2:for(;Ce<16;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(Wt.flags=ne,(255&Wt.flags)!=8){te.msg="unknown compression method",Wt.mode=30;break}if(57344&Wt.flags){te.msg="unknown header flags set",Wt.mode=30;break}Wt.head&&(Wt.head.text=ne>>8&1),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Ce=ne=0,Wt.mode=3;case 3:for(;Ce<32;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Wt.head&&(Wt.head.time=ne),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,At[2]=ne>>>16&255,At[3]=ne>>>24&255,Wt.check=jt(Wt.check,At,4,0)),Ce=ne=0,Wt.mode=4;case 4:for(;Ce<16;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Wt.head&&(Wt.head.xflags=255&ne,Wt.head.os=ne>>8),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Ce=ne=0,Wt.mode=5;case 5:if(1024&Wt.flags){for(;Ce<16;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Wt.length=ne,Wt.head&&(Wt.head.extra_len=ne),512&Wt.flags&&(At[0]=255&ne,At[1]=ne>>>8&255,Wt.check=jt(Wt.check,At,2,0)),Ce=ne=0}else Wt.head&&(Wt.head.extra=null);Wt.mode=6;case 6:if(1024&Wt.flags&&(Ue<(Ve=Wt.length)&&(Ve=Ue),Ve&&(Wt.head&&(Ot=Wt.head.extra_len-Wt.length,Wt.head.extra||(Wt.head.extra=new Array(Wt.head.extra_len)),Vt.arraySet(Wt.head.extra,Ke,Ne,Ve,Ot)),512&Wt.flags&&(Wt.check=jt(Wt.check,Ke,Ve,Ne)),Ue-=Ve,Ne+=Ve,Wt.length-=Ve),Wt.length))break t;Wt.length=0,Wt.mode=7;case 7:if(2048&Wt.flags){if(Ue===0)break t;for(Ve=0;Ot=Ke[Ne+Ve++],Wt.head&&Ot&&Wt.length<65536&&(Wt.head.name+=String.fromCharCode(Ot)),Ot&&Ve<Ue;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ke,Ve,Ne)),Ue-=Ve,Ne+=Ve,Ot)break t}else Wt.head&&(Wt.head.name=null);Wt.length=0,Wt.mode=8;case 8:if(4096&Wt.flags){if(Ue===0)break t;for(Ve=0;Ot=Ke[Ne+Ve++],Wt.head&&Ot&&Wt.length<65536&&(Wt.head.comment+=String.fromCharCode(Ot)),Ot&&Ve<Ue;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ke,Ve,Ne)),Ue-=Ve,Ne+=Ve,Ot)break t}else Wt.head&&(Wt.head.comment=null);Wt.mode=9;case 9:if(512&Wt.flags){for(;Ce<16;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(ne!==(65535&Wt.check)){te.msg="header crc mismatch",Wt.mode=30;break}Ce=ne=0}Wt.head&&(Wt.head.hcrc=Wt.flags>>9&1,Wt.head.done=!0),te.adler=Wt.check=0,Wt.mode=12;break;case 10:for(;Ce<32;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}te.adler=Wt.check=rt(ne),Ce=ne=0,Wt.mode=11;case 11:if(Wt.havedict===0)return te.next_out=Ge,te.avail_out=ve,te.next_in=Ne,te.avail_in=Ue,Wt.hold=ne,Wt.bits=Ce,2;te.adler=Wt.check=1,Wt.mode=12;case 12:if(He===5||He===6)break t;case 13:if(Wt.last){ne>>>=7&Ce,Ce-=7&Ce,Wt.mode=27;break}for(;Ce<3;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}switch(Wt.last=1&ne,Ce-=1,3&(ne>>>=1)){case 0:Wt.mode=14;break;case 1:if(fe(Wt),Wt.mode=20,He!==6)break;ne>>>=2,Ce-=2;break t;case 2:Wt.mode=17;break;case 3:te.msg="invalid block type",Wt.mode=30}ne>>>=2,Ce-=2;break;case 14:for(ne>>>=7&Ce,Ce-=7&Ce;Ce<32;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if((65535&ne)!=(ne>>>16^65535)){te.msg="invalid stored block lengths",Wt.mode=30;break}if(Wt.length=65535&ne,Ce=ne=0,Wt.mode=15,He===6)break t;case 15:Wt.mode=16;case 16:if(Ve=Wt.length){if(Ue<Ve&&(Ve=Ue),ve<Ve&&(Ve=ve),Ve===0)break t;Vt.arraySet(_e,Ke,Ne,Ve,Ge),Ue-=Ve,Ne+=Ve,ve-=Ve,Ge+=Ve,Wt.length-=Ve;break}Wt.mode=12;break;case 17:for(;Ce<14;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(Wt.nlen=257+(31&ne),ne>>>=5,Ce-=5,Wt.ndist=1+(31&ne),ne>>>=5,Ce-=5,Wt.ncode=4+(15&ne),ne>>>=4,Ce-=4,286<Wt.nlen||30<Wt.ndist){te.msg="too many length or distance symbols",Wt.mode=30;break}Wt.have=0,Wt.mode=18;case 18:for(;Wt.have<Wt.ncode;){for(;Ce<3;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Wt.lens[le[Wt.have++]]=7&ne,ne>>>=3,Ce-=3}for(;Wt.have<19;)Wt.lens[le[Wt.have++]]=0;if(Wt.lencode=Wt.lendyn,Wt.lenbits=7,vt={bits:Wt.lenbits},Tt=bt(0,Wt.lens,0,19,Wt.lencode,0,Wt.work,vt),Wt.lenbits=vt.bits,Tt){te.msg="invalid code lengths set",Wt.mode=30;break}Wt.have=0,Wt.mode=19;case 19:for(;Wt.have<Wt.nlen+Wt.ndist;){for(;Kn=(ft=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Pi=65535&ft,!((gi=ft>>>24)<=Ce);){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(Pi<16)ne>>>=gi,Ce-=gi,Wt.lens[Wt.have++]=Pi;else{if(Pi===16){for(gt=gi+2;Ce<gt;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(ne>>>=gi,Ce-=gi,Wt.have===0){te.msg="invalid bit length repeat",Wt.mode=30;break}Ot=Wt.lens[Wt.have-1],Ve=3+(3&ne),ne>>>=2,Ce-=2}else if(Pi===17){for(gt=gi+3;Ce<gt;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Ce-=gi,Ot=0,Ve=3+(7&(ne>>>=gi)),ne>>>=3,Ce-=3}else{for(gt=gi+7;Ce<gt;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Ce-=gi,Ot=0,Ve=11+(127&(ne>>>=gi)),ne>>>=7,Ce-=7}if(Wt.have+Ve>Wt.nlen+Wt.ndist){te.msg="invalid bit length repeat",Wt.mode=30;break}for(;Ve--;)Wt.lens[Wt.have++]=Ot}}if(Wt.mode===30)break;if(Wt.lens[256]===0){te.msg="invalid code -- missing end-of-block",Wt.mode=30;break}if(Wt.lenbits=9,vt={bits:Wt.lenbits},Tt=bt(se,Wt.lens,0,Wt.nlen,Wt.lencode,0,Wt.work,vt),Wt.lenbits=vt.bits,Tt){te.msg="invalid literal/lengths set",Wt.mode=30;break}if(Wt.distbits=6,Wt.distcode=Wt.distdyn,vt={bits:Wt.distbits},Tt=bt(Gt,Wt.lens,Wt.nlen,Wt.ndist,Wt.distcode,0,Wt.work,vt),Wt.distbits=vt.bits,Tt){te.msg="invalid distances set",Wt.mode=30;break}if(Wt.mode=20,He===6)break t;case 20:Wt.mode=21;case 21:if(6<=Ue&&258<=ve){te.next_out=Ge,te.avail_out=ve,te.next_in=Ne,te.avail_in=Ue,Wt.hold=ne,Wt.bits=Ce,qt(te,Ln),Ge=te.next_out,_e=te.output,ve=te.avail_out,Ne=te.next_in,Ke=te.input,Ue=te.avail_in,ne=Wt.hold,Ce=Wt.bits,Wt.mode===12&&(Wt.back=-1);break}for(Wt.back=0;Kn=(ft=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Pi=65535&ft,!((gi=ft>>>24)<=Ce);){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(Kn&&!(240&Kn)){for(tn=gi,Li=Kn,ji=Pi;Kn=(ft=Wt.lencode[ji+((ne&(1<<tn+Li)-1)>>tn)])>>>16&255,Pi=65535&ft,!(tn+(gi=ft>>>24)<=Ce);){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}ne>>>=tn,Ce-=tn,Wt.back+=tn}if(ne>>>=gi,Ce-=gi,Wt.back+=gi,Wt.length=Pi,Kn===0){Wt.mode=26;break}if(32&Kn){Wt.back=-1,Wt.mode=12;break}if(64&Kn){te.msg="invalid literal/length code",Wt.mode=30;break}Wt.extra=15&Kn,Wt.mode=22;case 22:if(Wt.extra){for(gt=Wt.extra;Ce<gt;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Wt.length+=ne&(1<<Wt.extra)-1,ne>>>=Wt.extra,Ce-=Wt.extra,Wt.back+=Wt.extra}Wt.was=Wt.length,Wt.mode=23;case 23:for(;Kn=(ft=Wt.distcode[ne&(1<<Wt.distbits)-1])>>>16&255,Pi=65535&ft,!((gi=ft>>>24)<=Ce);){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(!(240&Kn)){for(tn=gi,Li=Kn,ji=Pi;Kn=(ft=Wt.distcode[ji+((ne&(1<<tn+Li)-1)>>tn)])>>>16&255,Pi=65535&ft,!(tn+(gi=ft>>>24)<=Ce);){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}ne>>>=tn,Ce-=tn,Wt.back+=tn}if(ne>>>=gi,Ce-=gi,Wt.back+=gi,64&Kn){te.msg="invalid distance code",Wt.mode=30;break}Wt.offset=Pi,Wt.extra=15&Kn,Wt.mode=24;case 24:if(Wt.extra){for(gt=Wt.extra;Ce<gt;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}Wt.offset+=ne&(1<<Wt.extra)-1,ne>>>=Wt.extra,Ce-=Wt.extra,Wt.back+=Wt.extra}if(Wt.offset>Wt.dmax){te.msg="invalid distance too far back",Wt.mode=30;break}Wt.mode=25;case 25:if(ve===0)break t;if(Ve=Ln-ve,Wt.offset>Ve){if((Ve=Wt.offset-Ve)>Wt.whave&&Wt.sane){te.msg="invalid distance too far back",Wt.mode=30;break}Nn=Ve>Wt.wnext?(Ve-=Wt.wnext,Wt.wsize-Ve):Wt.wnext-Ve,Ve>Wt.length&&(Ve=Wt.length),Zn=Wt.window}else Zn=_e,Nn=Ge-Wt.offset,Ve=Wt.length;for(ve<Ve&&(Ve=ve),ve-=Ve,Wt.length-=Ve;_e[Ge++]=Zn[Nn++],--Ve;);Wt.length===0&&(Wt.mode=21);break;case 26:if(ve===0)break t;_e[Ge++]=Wt.length,ve--,Wt.mode=21;break;case 27:if(Wt.wrap){for(;Ce<32;){if(Ue===0)break t;Ue--,ne|=Ke[Ne++]<<Ce,Ce+=8}if(Ln-=ve,te.total_out+=Ln,Wt.total+=Ln,Ln&&(te.adler=Wt.check=Wt.flags?jt(Wt.check,_e,Ln,Ge-Ln):Mt(Wt.check,_e,Ln,Ge-Ln)),Ln=ve,(Wt.flags?ne:rt(ne))!==Wt.check){te.msg="incorrect data check",Wt.mode=30;break}Ce=ne=0}Wt.mode=28;case 28:if(Wt.wrap&&Wt.flags){for(;Ce<32;){if(Ue===0)break t;Ue--,ne+=Ke[Ne++]<<Ce,Ce+=8}if(ne!==(4294967295&Wt.total)){te.msg="incorrect length check",Wt.mode=30;break}Ce=ne=0}Wt.mode=29;case 29:Tt=1;break t;case 30:Tt=-3;break t;case 31:return-4;case 32:default:return Ct}return te.next_out=Ge,te.avail_out=ve,te.next_in=Ne,te.avail_in=Ue,Wt.hold=ne,Wt.bits=Ce,(Wt.wsize||Ln!==te.avail_out&&Wt.mode<30&&(Wt.mode<27||He!==4))&&Le(te,te.output,te.next_out,Ln-te.avail_out)?(Wt.mode=31,-4):(bn-=te.avail_in,Ln-=te.avail_out,te.total_in+=bn,te.total_out+=Ln,Wt.total+=Ln,Wt.wrap&&Ln&&(te.adler=Wt.check=Wt.flags?jt(Wt.check,_e,Ln,te.next_out-Ln):Mt(Wt.check,_e,Ln,te.next_out-Ln)),te.data_type=Wt.bits+(Wt.last?64:0)+(Wt.mode===12?128:0)+(Wt.mode===20||Wt.mode===15?256:0),(bn==0&&Ln===0||He===4)&&Tt===Xt&&(Tt=-5),Tt)},ee.inflateEnd=function(te){if(!te||!te.state)return Ct;var He=te.state;return He.window&&(He.window=null),te.state=null,Xt},ee.inflateGetHeader=function(te,He){var Wt;return te&&te.state&&2&(Wt=te.state).wrap?((Wt.head=He).done=!1,Xt):Ct},ee.inflateSetDictionary=function(te,He){var Wt,Ke=He.length;return te&&te.state?(Wt=te.state).wrap!==0&&Wt.mode!==11?Ct:Wt.mode===11&&Mt(1,He,Ke,0)!==Wt.check?-3:Le(te,He,Ke,Ke)?(Wt.mode=31,-4):(Wt.havedict=1,Xt):Ct},ee.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(re,Ie,ee){"use strict";var Vt=re("../utils/common"),Mt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],jt=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],qt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],bt=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Ie.exports=function(se,Gt,Xt,Ct,et,tt,lt,rt){var ht,dt,xt,Nt,Ut,_t,oe,he,fe,Le=rt.bits,te=0,He=0,Wt=0,Ke=0,_e=0,Ne=0,Ge=0,Ue=0,ve=0,ne=0,Ce=null,bn=0,Ln=new Vt.Buf16(16),Ve=new Vt.Buf16(16),Nn=null,Zn=0;for(te=0;te<=15;te++)Ln[te]=0;for(He=0;He<Ct;He++)Ln[Gt[Xt+He]]++;for(_e=Le,Ke=15;1<=Ke&&Ln[Ke]===0;Ke--);if(Ke<_e&&(_e=Ke),Ke===0)return et[tt++]=20971520,et[tt++]=20971520,rt.bits=1,0;for(Wt=1;Wt<Ke&&Ln[Wt]===0;Wt++);for(_e<Wt&&(_e=Wt),te=Ue=1;te<=15;te++)if(Ue<<=1,(Ue-=Ln[te])<0)return-1;if(0<Ue&&(se===0||Ke!==1))return-1;for(Ve[1]=0,te=1;te<15;te++)Ve[te+1]=Ve[te]+Ln[te];for(He=0;He<Ct;He++)Gt[Xt+He]!==0&&(lt[Ve[Gt[Xt+He]]++]=He);if(_t=se===0?(Ce=Nn=lt,19):se===1?(Ce=Mt,bn-=257,Nn=jt,Zn-=257,256):(Ce=qt,Nn=bt,-1),te=Wt,Ut=tt,Ge=He=ne=0,xt=-1,Nt=(ve=1<<(Ne=_e))-1,se===1&&852<ve||se===2&&592<ve)return 1;for(;;){for(oe=te-Ge,fe=lt[He]<_t?(he=0,lt[He]):lt[He]>_t?(he=Nn[Zn+lt[He]],Ce[bn+lt[He]]):(he=96,0),ht=1<<te-Ge,Wt=dt=1<<Ne;et[Ut+(ne>>Ge)+(dt-=ht)]=oe<<24|he<<16|fe|0,dt!==0;);for(ht=1<<te-1;ne&ht;)ht>>=1;if(ht!==0?(ne&=ht-1,ne+=ht):ne=0,He++,--Ln[te]==0){if(te===Ke)break;te=Gt[Xt+lt[He]]}if(_e<te&&(ne&Nt)!==xt){for(Ge===0&&(Ge=_e),Ut+=Wt,Ue=1<<(Ne=te-Ge);Ne+Ge<Ke&&!((Ue-=Ln[Ne+Ge])<=0);)Ne++,Ue<<=1;if(ve+=1<<Ne,se===1&&852<ve||se===2&&592<ve)return 1;et[xt=ne&Nt]=_e<<24|Ne<<16|Ut-tt|0}}return ne!==0&&(et[Ut+ne]=te-Ge<<24|64<<16|0),rt.bits=_e,0}},{"../utils/common":41}],51:[function(re,Ie,ee){"use strict";Ie.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(re,Ie,ee){"use strict";var Vt=re("../utils/common"),Mt=0,jt=1;function qt(ft){for(var At=ft.length;0<=--At;)ft[At]=0}var bt=0,se=29,Gt=256,Xt=Gt+1+se,Ct=30,et=19,tt=2*Xt+1,lt=15,rt=16,ht=7,dt=256,xt=16,Nt=17,Ut=18,_t=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],oe=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],he=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Le=new Array(2*(Xt+2));qt(Le);var te=new Array(2*Ct);qt(te);var He=new Array(512);qt(He);var Wt=new Array(256);qt(Wt);var Ke=new Array(se);qt(Ke);var _e,Ne,Ge,Ue=new Array(Ct);function ve(ft,At,le,xe,ae){this.static_tree=ft,this.extra_bits=At,this.extra_base=le,this.elems=xe,this.max_length=ae,this.has_stree=ft&&ft.length}function ne(ft,At){this.dyn_tree=ft,this.max_code=0,this.stat_desc=At}function Ce(ft){return ft<256?He[ft]:He[256+(ft>>>7)]}function bn(ft,At){ft.pending_buf[ft.pending++]=255&At,ft.pending_buf[ft.pending++]=At>>>8&255}function Ln(ft,At,le){ft.bi_valid>rt-le?(ft.bi_buf|=At<<ft.bi_valid&65535,bn(ft,ft.bi_buf),ft.bi_buf=At>>rt-ft.bi_valid,ft.bi_valid+=le-rt):(ft.bi_buf|=At<<ft.bi_valid&65535,ft.bi_valid+=le)}function Ve(ft,At,le){Ln(ft,le[2*At],le[2*At+1])}function Nn(ft,At){for(var le=0;le|=1&ft,ft>>>=1,le<<=1,0<--At;);return le>>>1}function Zn(ft,At,le){var xe,ae,ye=new Array(lt+1),Oe=0;for(xe=1;xe<=lt;xe++)ye[xe]=Oe=Oe+le[xe-1]<<1;for(ae=0;ae<=At;ae++){var Te=ft[2*ae+1];Te!==0&&(ft[2*ae]=Nn(ye[Te]++,Te))}}function gi(ft){var At;for(At=0;At<Xt;At++)ft.dyn_ltree[2*At]=0;for(At=0;At<Ct;At++)ft.dyn_dtree[2*At]=0;for(At=0;At<et;At++)ft.bl_tree[2*At]=0;ft.dyn_ltree[2*dt]=1,ft.opt_len=ft.static_len=0,ft.last_lit=ft.matches=0}function Kn(ft){8<ft.bi_valid?bn(ft,ft.bi_buf):0<ft.bi_valid&&(ft.pending_buf[ft.pending++]=ft.bi_buf),ft.bi_buf=0,ft.bi_valid=0}function Pi(ft,At,le,xe){var ae=2*At,ye=2*le;return ft[ae]<ft[ye]||ft[ae]===ft[ye]&&xe[At]<=xe[le]}function tn(ft,At,le){for(var xe=ft.heap[le],ae=le<<1;ae<=ft.heap_len&&(ae<ft.heap_len&&Pi(At,ft.heap[ae+1],ft.heap[ae],ft.depth)&&ae++,!Pi(At,xe,ft.heap[ae],ft.depth));)ft.heap[le]=ft.heap[ae],le=ae,ae<<=1;ft.heap[le]=xe}function Li(ft,At,le){var xe,ae,ye,Oe,Te=0;if(ft.last_lit!==0)for(;xe=ft.pending_buf[ft.d_buf+2*Te]<<8|ft.pending_buf[ft.d_buf+2*Te+1],ae=ft.pending_buf[ft.l_buf+Te],Te++,xe===0?Ve(ft,ae,At):(Ve(ft,(ye=Wt[ae])+Gt+1,At),(Oe=_t[ye])!==0&&Ln(ft,ae-=Ke[ye],Oe),Ve(ft,ye=Ce(--xe),le),(Oe=oe[ye])!==0&&Ln(ft,xe-=Ue[ye],Oe)),Te<ft.last_lit;);Ve(ft,dt,At)}function ji(ft,At){var le,xe,ae,ye=At.dyn_tree,Oe=At.stat_desc.static_tree,Te=At.stat_desc.has_stree,Me=At.stat_desc.elems,on=-1;for(ft.heap_len=0,ft.heap_max=tt,le=0;le<Me;le++)ye[2*le]!==0?(ft.heap[++ft.heap_len]=on=le,ft.depth[le]=0):ye[2*le+1]=0;for(;ft.heap_len<2;)ye[2*(ae=ft.heap[++ft.heap_len]=on<2?++on:0)]=1,ft.depth[ae]=0,ft.opt_len--,Te&&(ft.static_len-=Oe[2*ae+1]);for(At.max_code=on,le=ft.heap_len>>1;1<=le;le--)tn(ft,ye,le);for(ae=Me;le=ft.heap[1],ft.heap[1]=ft.heap[ft.heap_len--],tn(ft,ye,1),xe=ft.heap[1],ft.heap[--ft.heap_max]=le,ft.heap[--ft.heap_max]=xe,ye[2*ae]=ye[2*le]+ye[2*xe],ft.depth[ae]=(ft.depth[le]>=ft.depth[xe]?ft.depth[le]:ft.depth[xe])+1,ye[2*le+1]=ye[2*xe+1]=ae,ft.heap[1]=ae++,tn(ft,ye,1),2<=ft.heap_len;);ft.heap[--ft.heap_max]=ft.heap[1],function(Wn,sn){var ln,Bn,li,On,Di,nr,Xi=sn.dyn_tree,Mr=sn.max_code,br=sn.stat_desc.static_tree,eo=sn.stat_desc.has_stree,Yr=sn.stat_desc.extra_bits,qr=sn.stat_desc.extra_base,Ir=sn.stat_desc.max_length,Xr=0;for(On=0;On<=lt;On++)Wn.bl_count[On]=0;for(Xi[2*Wn.heap[Wn.heap_max]+1]=0,ln=Wn.heap_max+1;ln<tt;ln++)Ir<(On=Xi[2*Xi[2*(Bn=Wn.heap[ln])+1]+1]+1)&&(On=Ir,Xr++),Xi[2*Bn+1]=On,Mr<Bn||(Wn.bl_count[On]++,Di=0,qr<=Bn&&(Di=Yr[Bn-qr]),nr=Xi[2*Bn],Wn.opt_len+=nr*(On+Di),eo&&(Wn.static_len+=nr*(br[2*Bn+1]+Di)));if(Xr!==0){do{for(On=Ir-1;Wn.bl_count[On]===0;)On--;Wn.bl_count[On]--,Wn.bl_count[On+1]+=2,Wn.bl_count[Ir]--,Xr-=2}while(0<Xr);for(On=Ir;On!==0;On--)for(Bn=Wn.bl_count[On];Bn!==0;)Mr<(li=Wn.heap[--ln])||(Xi[2*li+1]!==On&&(Wn.opt_len+=(On-Xi[2*li+1])*Xi[2*li],Xi[2*li+1]=On),Bn--)}}(ft,At),Zn(ye,on,ft.bl_count)}function Ot(ft,At,le){var xe,ae,ye=-1,Oe=At[1],Te=0,Me=7,on=4;for(Oe===0&&(Me=138,on=3),At[2*(le+1)+1]=65535,xe=0;xe<=le;xe++)ae=Oe,Oe=At[2*(xe+1)+1],++Te<Me&&ae===Oe||(Te<on?ft.bl_tree[2*ae]+=Te:ae!==0?(ae!==ye&&ft.bl_tree[2*ae]++,ft.bl_tree[2*xt]++):Te<=10?ft.bl_tree[2*Nt]++:ft.bl_tree[2*Ut]++,ye=ae,on=(Te=0)===Oe?(Me=138,3):ae===Oe?(Me=6,3):(Me=7,4))}function Tt(ft,At,le){var xe,ae,ye=-1,Oe=At[1],Te=0,Me=7,on=4;for(Oe===0&&(Me=138,on=3),xe=0;xe<=le;xe++)if(ae=Oe,Oe=At[2*(xe+1)+1],!(++Te<Me&&ae===Oe)){if(Te<on)for(;Ve(ft,ae,ft.bl_tree),--Te!=0;);else ae!==0?(ae!==ye&&(Ve(ft,ae,ft.bl_tree),Te--),Ve(ft,xt,ft.bl_tree),Ln(ft,Te-3,2)):Te<=10?(Ve(ft,Nt,ft.bl_tree),Ln(ft,Te-3,3)):(Ve(ft,Ut,ft.bl_tree),Ln(ft,Te-11,7));ye=ae,on=(Te=0)===Oe?(Me=138,3):ae===Oe?(Me=6,3):(Me=7,4)}}qt(Ue);var vt=!1;function gt(ft,At,le,xe){Ln(ft,(bt<<1)+(xe?1:0),3),function(ae,ye,Oe,Te){Kn(ae),Te&&(bn(ae,Oe),bn(ae,~Oe)),Vt.arraySet(ae.pending_buf,ae.window,ye,Oe,ae.pending),ae.pending+=Oe}(ft,At,le,!0)}ee._tr_init=function(ft){vt||(function(){var At,le,xe,ae,ye,Oe=new Array(lt+1);for(ae=xe=0;ae<se-1;ae++)for(Ke[ae]=xe,At=0;At<1<<_t[ae];At++)Wt[xe++]=ae;for(Wt[xe-1]=ae,ae=ye=0;ae<16;ae++)for(Ue[ae]=ye,At=0;At<1<<oe[ae];At++)He[ye++]=ae;for(ye>>=7;ae<Ct;ae++)for(Ue[ae]=ye<<7,At=0;At<1<<oe[ae]-7;At++)He[256+ye++]=ae;for(le=0;le<=lt;le++)Oe[le]=0;for(At=0;At<=143;)Le[2*At+1]=8,At++,Oe[8]++;for(;At<=255;)Le[2*At+1]=9,At++,Oe[9]++;for(;At<=279;)Le[2*At+1]=7,At++,Oe[7]++;for(;At<=287;)Le[2*At+1]=8,At++,Oe[8]++;for(Zn(Le,Xt+1,Oe),At=0;At<Ct;At++)te[2*At+1]=5,te[2*At]=Nn(At,5);_e=new ve(Le,_t,Gt+1,Xt,lt),Ne=new ve(te,oe,0,Ct,lt),Ge=new ve(new Array(0),he,0,et,ht)}(),vt=!0),ft.l_desc=new ne(ft.dyn_ltree,_e),ft.d_desc=new ne(ft.dyn_dtree,Ne),ft.bl_desc=new ne(ft.bl_tree,Ge),ft.bi_buf=0,ft.bi_valid=0,gi(ft)},ee._tr_stored_block=gt,ee._tr_flush_block=function(ft,At,le,xe){var ae,ye,Oe=0;0<ft.level?(ft.strm.data_type===2&&(ft.strm.data_type=function(Te){var Me,on=4093624447;for(Me=0;Me<=31;Me++,on>>>=1)if(1&on&&Te.dyn_ltree[2*Me]!==0)return Mt;if(Te.dyn_ltree[18]!==0||Te.dyn_ltree[20]!==0||Te.dyn_ltree[26]!==0)return jt;for(Me=32;Me<Gt;Me++)if(Te.dyn_ltree[2*Me]!==0)return jt;return Mt}(ft)),ji(ft,ft.l_desc),ji(ft,ft.d_desc),Oe=function(Te){var Me;for(Ot(Te,Te.dyn_ltree,Te.l_desc.max_code),Ot(Te,Te.dyn_dtree,Te.d_desc.max_code),ji(Te,Te.bl_desc),Me=et-1;3<=Me&&Te.bl_tree[2*fe[Me]+1]===0;Me--);return Te.opt_len+=3*(Me+1)+5+5+4,Me}(ft),ae=ft.opt_len+3+7>>>3,(ye=ft.static_len+3+7>>>3)<=ae&&(ae=ye)):ae=ye=le+5,le+4<=ae&&At!==-1?gt(ft,At,le,xe):ft.strategy===4||ye===ae?(Ln(ft,2+(xe?1:0),3),Li(ft,Le,te)):(Ln(ft,4+(xe?1:0),3),function(Te,Me,on,Wn){var sn;for(Ln(Te,Me-257,5),Ln(Te,on-1,5),Ln(Te,Wn-4,4),sn=0;sn<Wn;sn++)Ln(Te,Te.bl_tree[2*fe[sn]+1],3);Tt(Te,Te.dyn_ltree,Me-1),Tt(Te,Te.dyn_dtree,on-1)}(ft,ft.l_desc.max_code+1,ft.d_desc.max_code+1,Oe+1),Li(ft,ft.dyn_ltree,ft.dyn_dtree)),gi(ft),xe&&Kn(ft)},ee._tr_tally=function(ft,At,le){return ft.pending_buf[ft.d_buf+2*ft.last_lit]=At>>>8&255,ft.pending_buf[ft.d_buf+2*ft.last_lit+1]=255&At,ft.pending_buf[ft.l_buf+ft.last_lit]=255&le,ft.last_lit++,At===0?ft.dyn_ltree[2*le]++:(ft.matches++,At--,ft.dyn_ltree[2*(Wt[le]+Gt+1)]++,ft.dyn_dtree[2*Ce(At)]++),ft.last_lit===ft.lit_bufsize-1},ee._tr_align=function(ft){Ln(ft,2,3),Ve(ft,dt,Le),function(At){At.bi_valid===16?(bn(At,At.bi_buf),At.bi_buf=0,At.bi_valid=0):8<=At.bi_valid&&(At.pending_buf[At.pending++]=255&At.bi_buf,At.bi_buf>>=8,At.bi_valid-=8)}(ft)}},{"../utils/common":41}],53:[function(re,Ie,ee){"use strict";Ie.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(re,Ie,ee){(function(Vt){(function(Mt,jt){"use strict";if(!Mt.setImmediate){var qt,bt,se,Gt,Xt=1,Ct={},et=!1,tt=Mt.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(Mt);lt=lt&&lt.setTimeout?lt:Mt,qt={}.toString.call(Mt.process)==="[object process]"?function(xt){ce.nextTick(function(){ht(xt)})}:function(){if(Mt.postMessage&&!Mt.importScripts){var xt=!0,Nt=Mt.onmessage;return Mt.onmessage=function(){xt=!1},Mt.postMessage("","*"),Mt.onmessage=Nt,xt}}()?(Gt="setImmediate$"+Math.random()+"$",Mt.addEventListener?Mt.addEventListener("message",dt,!1):Mt.attachEvent("onmessage",dt),function(xt){Mt.postMessage(Gt+xt,"*")}):Mt.MessageChannel?((se=new MessageChannel).port1.onmessage=function(xt){ht(xt.data)},function(xt){se.port2.postMessage(xt)}):tt&&"onreadystatechange"in tt.createElement("script")?(bt=tt.documentElement,function(xt){var Nt=tt.createElement("script");Nt.onreadystatechange=function(){ht(xt),Nt.onreadystatechange=null,bt.removeChild(Nt),Nt=null},bt.appendChild(Nt)}):function(xt){setTimeout(ht,0,xt)},lt.setImmediate=function(xt){typeof xt!="function"&&(xt=new Function(""+xt));for(var Nt=new Array(arguments.length-1),Ut=0;Ut<Nt.length;Ut++)Nt[Ut]=arguments[Ut+1];var _t={callback:xt,args:Nt};return Ct[Xt]=_t,qt(Xt),Xt++},lt.clearImmediate=rt}function rt(xt){delete Ct[xt]}function ht(xt){if(et)setTimeout(ht,0,xt);else{var Nt=Ct[xt];if(Nt){et=!0;try{(function(Ut){var _t=Ut.callback,oe=Ut.args;switch(oe.length){case 0:_t();break;case 1:_t(oe[0]);break;case 2:_t(oe[0],oe[1]);break;case 3:_t(oe[0],oe[1],oe[2]);break;default:_t.apply(jt,oe)}})(Nt)}finally{rt(xt),et=!1}}}}function dt(xt){xt.source===Mt&&typeof xt.data=="string"&&xt.data.indexOf(Gt)===0&&ht(+xt.data.slice(Gt.length))}})(typeof self=="undefined"?Vt===void 0?this:Vt:self)}).call(this,typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{hP:function(){return ji}});var Lt=function(Ot,Tt){return(Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,gt){vt.__proto__=gt}||function(vt,gt){for(var ft in gt)Object.prototype.hasOwnProperty.call(gt,ft)&&(vt[ft]=gt[ft])})(Ot,Tt)};function ce(Ot,Tt){function vt(){this.constructor=Ot}Lt(Ot,Tt),Ot.prototype=Tt===null?Object.create(Tt):(vt.prototype=Tt.prototype,new vt)}function re(Ot,Tt,vt,gt){return new(vt||(vt=Promise))(function(ft,At){function le(ye){try{ae(gt.next(ye))}catch(Oe){At(Oe)}}function xe(ye){try{ae(gt.throw(ye))}catch(Oe){At(Oe)}}function ae(ye){var Oe;ye.done?ft(ye.value):(Oe=ye.value,Oe instanceof vt?Oe:new vt(function(Te){Te(Oe)})).then(le,xe)}ae((gt=gt.apply(Ot,Tt||[])).next())})}function Ie(Ot,Tt){var vt,gt,ft,At,le={label:0,sent:function(){if(1&ft[0])throw ft[1];return ft[1]},trys:[],ops:[]};return At={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function xe(ae){return function(ye){return function(Oe){if(vt)throw new TypeError("Generator is already executing.");for(;le;)try{if(vt=1,gt&&(ft=2&Oe[0]?gt.return:Oe[0]?gt.throw||((ft=gt.return)&&ft.call(gt),0):gt.next)&&!(ft=ft.call(gt,Oe[1])).done)return ft;switch(gt=0,ft&&(Oe=[2&Oe[0],ft.value]),Oe[0]){case 0:case 1:ft=Oe;break;case 4:return le.label++,{value:Oe[1],done:!1};case 5:le.label++,gt=Oe[1],Oe=[0];continue;case 7:Oe=le.ops.pop(),le.trys.pop();continue;default:if(ft=le.trys,!((ft=ft.length>0&&ft[ft.length-1])||Oe[0]!==6&&Oe[0]!==2)){le=0;continue}if(Oe[0]===3&&(!ft||Oe[1]>ft[0]&&Oe[1]<ft[3])){le.label=Oe[1];break}if(Oe[0]===6&&le.label<ft[1]){le.label=ft[1],ft=Oe;break}if(ft&&le.label<ft[2]){le.label=ft[2],le.ops.push(Oe);break}ft[2]&&le.ops.pop(),le.trys.pop();continue}Oe=Tt.call(Ot,le)}catch(Te){Oe=[6,Te],gt=0}finally{vt=ft=0}if(5&Oe[0])throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}([ae,ye])}}}function ee(){for(var Ot=0,Tt=0,vt=arguments.length;Tt<vt;Tt++)Ot+=arguments[Tt].length;var gt=Array(Ot),ft=0;for(Tt=0;Tt<vt;Tt++)for(var At=arguments[Tt],le=0,xe=At.length;le<xe;le++,ft++)gt[ft]=At[le];return gt}var Vt=function(){function Ot(){}return Ot.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Ot.setAttributes=function(Tt,vt){for(var gt=0,ft=vt;gt<ft.length;gt++){var At=ft[gt],le=At[0],xe=At[1];Tt.setAttribute(le,xe)}},Ot.createRect=function(Tt,vt,gt){var ft=document.createElementNS("http://www.w3.org/2000/svg","rect");return ft.setAttribute("width",Tt.toString()),ft.setAttribute("height",vt.toString()),gt&&Ot.setAttributes(ft,gt),ft},Ot.createLine=function(Tt,vt,gt,ft,At){var le=document.createElementNS("http://www.w3.org/2000/svg","line");return le.setAttribute("x1",Tt.toString()),le.setAttribute("y1",vt.toString()),le.setAttribute("x2",gt.toString()),le.setAttribute("y2",ft.toString()),At&&Ot.setAttributes(le,At),le},Ot.createPolygon=function(Tt,vt){var gt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return gt.setAttribute("points",Tt),vt&&Ot.setAttributes(gt,vt),gt},Ot.createCircle=function(Tt,vt){var gt=document.createElementNS("http://www.w3.org/2000/svg","circle");return gt.setAttribute("cx",(Tt/2).toString()),gt.setAttribute("cy",(Tt/2).toString()),gt.setAttribute("r",Tt.toString()),vt&&Ot.setAttributes(gt,vt),gt},Ot.createEllipse=function(Tt,vt,gt){var ft=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ft.setAttribute("cx",(Tt/2).toString()),ft.setAttribute("cy",(vt/2).toString()),ft.setAttribute("rx",(Tt/2).toString()),ft.setAttribute("ry",(vt/2).toString()),gt&&Ot.setAttributes(ft,gt),ft},Ot.createGroup=function(Tt){var vt=document.createElementNS("http://www.w3.org/2000/svg","g");return Tt&&Ot.setAttributes(vt,Tt),vt},Ot.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Ot.createMarker=function(Tt,vt,gt,ft,At,le,xe){var ae=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ot.setAttributes(ae,[["id",Tt],["orient",vt],["markerWidth",gt.toString()],["markerHeight",ft.toString()],["refX",At.toString()],["refY",le.toString()]]),ae.appendChild(xe),ae},Ot.createText=function(Tt){var vt=document.createElementNS("http://www.w3.org/2000/svg","text");return vt.setAttribute("x","0"),vt.setAttribute("y","0"),Tt&&Ot.setAttributes(vt,Tt),vt},Ot.createTSpan=function(Tt,vt){var gt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return gt.textContent=Tt,vt&&Ot.setAttributes(gt,vt),gt},Ot.createImage=function(Tt){var vt=document.createElementNS("http://www.w3.org/2000/svg","image");return Tt&&Ot.setAttributes(vt,Tt),vt},Ot.createPoint=function(Tt,vt){var gt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return gt.x=Tt,gt.y=vt,gt},Ot.createPath=function(Tt,vt){var gt=document.createElementNS("http://www.w3.org/2000/svg","path");return gt.setAttribute("d",Tt),vt&&Ot.setAttributes(gt,vt),gt},Ot}(),Mt=function(){function Ot(){}return Ot.addKey=function(Tt){Ot.key=Tt},Object.defineProperty(Ot,"isLicensed",{get:function(){return!!Ot.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Ot.key)},enumerable:!1,configurable:!0}),Ot}(),jt=function(){function Ot(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Ot.prototype.rasterize=function(Tt,vt,gt){var ft=this;return new Promise(function(At){var le=gt!==void 0?gt:document.createElement("canvas");Tt===null&&(ft.markersOnly=!0,ft.naturalSize=!1);var xe=document.createElementNS("http://www.w3.org/2000/svg","svg");xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),xe.setAttribute("width",vt.width.baseVal.valueAsString),xe.setAttribute("height",vt.height.baseVal.valueAsString),xe.setAttribute("viewBox","0 0 "+vt.viewBox.baseVal.width.toString()+" "+vt.viewBox.baseVal.height.toString()),xe.innerHTML=vt.innerHTML,ft.naturalSize===!0?(xe.width.baseVal.value=Tt.naturalWidth,xe.height.baseVal.value=Tt.naturalHeight):ft.width!==void 0&&ft.height!==void 0&&(xe.width.baseVal.value=ft.width,xe.height.baseVal.value=ft.height),le.width=xe.width.baseVal.value,le.height=xe.height.baseVal.value;var ae=xe.outerHTML,ye=le.getContext("2d");ft.markersOnly!==!0&&ye.drawImage(Tt,0,0,le.width,le.height);var Oe=window.URL,Te=new Image(le.width,le.height);Te.setAttribute("crossOrigin","anonymous");var Me=new Blob([ae],{type:"image/svg+xml"}),on=Oe.createObjectURL(Me);Te.onload=function(){ye.drawImage(Te,0,0),Oe.revokeObjectURL(on);var Wn=le.toDataURL(ft.imageType,ft.imageQuality);At(Wn)},Te.src=on})},Ot}(),qt=function(){},bt=function(){function Ot(Tt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Tt+"_"}return Object.defineProperty(Ot.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Ot.prototype.addClass=function(Tt){return this.styleSheet===void 0&&this.addStyleSheet(),Tt.name=""+this.classNamePrefix+Tt.localName,this.classes.push(Tt),this.styleSheet.sheet.insertRule("."+Tt.name+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length),Tt},Ot.prototype.addRule=function(Tt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Tt),this.styleSheet.sheet.insertRule(Tt.selector+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length)},Ot.prototype.addStyleSheet=function(){var Tt;this.styleSheet=document.createElement("style"),((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).appendChild(this.styleSheet),this.addRule(new se("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new se("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new se("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Gt("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Gt("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Ot.prototype.removeStyleSheet=function(){var Tt;this.styleSheet&&(((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Ot}(),se=function(Ot,Tt){this.selector=Ot,this.style=Tt},Gt=function(Ot,Tt){this.localName=Ot,this.style=Tt},Xt=function(){function Ot(Tt,vt,gt,ft,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Tt,this.displayMode=vt,this.markerItems=gt,this.uiStyleSettings=ft,this.styles=At,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Ot.prototype.show=function(Tt){var vt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var gt=document.createElement("div");gt.className=this.toolbarBlockStyleClass.name,gt.style.whiteSpace="nowrap",this.uiContainer.appendChild(gt),this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(gt,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(At){var le=document.createElement("div");le.className=""+vt.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",At.typeName),le.innerHTML=At.icon,le.addEventListener("click",function(){vt.markerToolbarButtonClicked(le,At)}),vt.buttons.push(le),vt.markerButtons.push(le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ft=document.createElement("div");ft.className=this.toolbarBlockStyleClass.name,ft.style.whiteSpace="nowrap",ft.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ft),this.addActionButton(ft,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ft,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Ot.prototype.addButtonClickListener=function(Tt){this.buttonClickListeners.push(Tt)},Ot.prototype.removeButtonClickListener=function(Tt){this.buttonClickListeners.indexOf(Tt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Tt),1)},Ot.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Ot.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Tt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var vt=0;vt<this.markerButtons.length;vt++)vt<Tt||vt===Tt&&this.markerButtons.length-1===Tt?this.markerButtonBlock.appendChild(this.markerButtons[vt]):(vt===Tt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[vt]))}},Ot.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Ot.prototype.resetButtonStyles=function(){var Tt=this;this.buttons.forEach(function(vt){vt.className=vt.className.replace(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name,"").trim(),vt.className=vt.className.replace(Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Tt.toolbarActiveButtonStyleColorsClass.name,"").trim(),vt.className+=" "+(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name)})},Ot.prototype.addActionButton=function(Tt,vt,gt){var ft=this,At=document.createElement("div");switch(At.className=""+this.toolbarButtonStyleClass.name,At.innerHTML=vt,At.setAttribute("data-action",gt),At.addEventListener("click",function(){ft.actionToolbarButtonClicked(At,gt)}),gt){case"select":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":At.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":At.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":At.style.fill=this.uiStyleSettings.closeButtonColor}Tt.appendChild(At),this.buttons.push(At)},Ot.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Gt("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Gt("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Gt("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Gt("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Gt("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Tt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Gt("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
padding: `+Tt+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Gt("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Gt("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new se("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new se("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Ot.prototype.markerToolbarButtonClicked=function(Tt,vt){this.setActiveButton(Tt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(gt){return gt("marker",vt)}),this.markerButtonOverflowBlock.style.display="none"},Ot.prototype.actionToolbarButtonClicked=function(Tt,vt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(gt){return gt("action",vt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Ot.prototype.setActiveButton=function(Tt){this.resetButtonStyles(),Tt.className=Tt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Tt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Ot.prototype.setActiveMarkerButton=function(Tt){var vt=this.markerButtons.find(function(gt){return gt.getAttribute("data-type-name")===Tt});vt&&this.setActiveButton(vt)},Ot.prototype.setCurrentMarker=function(Tt){var vt=this;this.currentMarker=Tt,this.buttons.filter(function(gt){return/delete|notes/.test(gt.getAttribute("data-action"))}).forEach(function(gt){vt.currentMarker===void 0?(gt.style.fillOpacity="0.4",gt.style.pointerEvents="none"):(gt.style.fillOpacity="1",gt.style.pointerEvents="all")})},Ot}(),Ct=function(){function Ot(Tt,vt,gt,ft){this.panels=[],this.panelButtons=[],this.markerjsContainer=Tt,this.displayMode=vt,this.uiStyleSettings=gt,this.styles=ft,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ot.prototype.addStyles=function(){var Tt;this.toolboxStyleClass=this.styles.addClass(new Gt("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 Gt("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var vt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Gt("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Gt("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Gt("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 Gt("toolbox-panel-row_colors",`
background-color: `+((Tt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Tt!==void 0?Tt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Gt("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*vt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*vt)+`px;
padding: `+vt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Gt("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Gt("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new se("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new se("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Ot.prototype.show=function(Tt){var vt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((vt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&vt!==void 0?vt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Ot.prototype.setPanelButtons=function(Tt){var vt,gt,ft=this;this.panels=Tt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((vt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&vt!==void 0?vt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((gt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&gt!==void 0?gt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(At){var le;At.uiStyleSettings=ft.uiStyleSettings;var xe=document.createElement("div");xe.className=ft.toolboxButtonStyleClass.name+" "+((le=ft.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ft.toolboxButtonStyleColorsClass.name),xe.innerHTML=At.icon,xe.title=At.title,xe.addEventListener("click",function(){ft.panelButtonClick(At)}),ft.panelButtons.push(xe),ft.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ot.prototype.panelButtonClick=function(Tt){var vt=this,gt=-1;if(Tt!==this.activePanel){gt=this.panels.indexOf(Tt),this.panelRow.innerHTML="";var ft=Tt.getUi();ft.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ft),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=Tt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){vt.displayMode==="inline"?vt.panelRow.style.display="none":vt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(At,le){var xe,ae;At.className=vt.toolboxButtonStyleClass.name+" "+(le===gt?""+((xe=vt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:vt.toolboxActiveButtonStyleColorsClass.name):""+((ae=vt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ae!==void 0?ae:vt.toolboxButtonStyleColorsClass.name))})},Ot}(),et=function(Ot,Tt){this.title=Ot,this.icon=Tt},tt=function(Ot){function Tt(vt,gt,ft,At){var le=Ot.call(this,vt,At||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=gt,le.currentColor=ft,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,gt=document.createElement("div");return gt.style.overflow="hidden",gt.style.whiteSpace="nowrap",this.colors.forEach(function(ft){var At=vt.getColorBox(ft);gt.appendChild(At),vt.colorBoxes.push(At)}),gt},Tt.prototype.getColorBox=function(vt){var gt=this,ft=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-ft,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=At-2+"px",le.style.height=At-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(At+2)/2+"px",le.style.borderColor=vt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){gt.setCurrentColor(vt,le)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=At-2+"px",xe.style.height=At-2+"px",xe.style.backgroundColor=vt,xe.style.borderRadius=At/2+"px",vt==="transparent"&&(xe.style.fill=this.uiStyleSettings.toolboxAccentColor,xe.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),le.appendChild(xe),le},Tt.prototype.setCurrentColor=function(vt,gt){var ft=this;this.currentColor=vt,this.colorBoxes.forEach(function(At){At.style.borderColor=At===gt?ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(vt)},Tt}(et),lt=function(){function Ot(Tt,vt,gt){this._state="new",this._isSelected=!1,this._container=Tt,this._overlayContainer=vt,this.globalSettings=gt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Ot.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Ot.prototype.ownsTarget=function(Tt){return!1},Object.defineProperty(Ot.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Ot.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Ot.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Ot.prototype.pointerDown=function(Tt,vt){},Ot.prototype.dblClick=function(Tt,vt){},Ot.prototype.manipulate=function(Tt){},Ot.prototype.pointerUp=function(Tt){this.stateChanged()},Ot.prototype.dispose=function(){},Ot.prototype.addMarkerVisualToContainer=function(Tt){this.container.childNodes.length>0?this.container.insertBefore(Tt,this.container.childNodes[0]):this.container.appendChild(Tt)},Ot.prototype.getState=function(){return{typeName:Ot.typeName,state:this.state,notes:this.notes}},Ot.prototype.restoreState=function(Tt){this._state=Tt.state,this.notes=Tt.notes},Ot.prototype.scale=function(Tt,vt){},Ot.prototype.colorChanged=function(Tt){this.onColorChanged&&this.onColorChanged(Tt),this.stateChanged()},Ot.prototype.fillColorChanged=function(Tt){this.onFillColorChanged&&this.onFillColorChanged(Tt),this.stateChanged()},Ot.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Tt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Tt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Tt)&&this.onStateChanged(this)}},Ot.typeName="MarkerBase",Ot}(),rt=function(){function Ot(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Ot.prototype.findGripByVisual=function(Tt){return this.topLeft.ownsTarget(Tt)?this.topLeft:this.topCenter.ownsTarget(Tt)?this.topCenter:this.topRight.ownsTarget(Tt)?this.topRight:this.centerLeft.ownsTarget(Tt)?this.centerLeft:this.centerRight.ownsTarget(Tt)?this.centerRight:this.bottomLeft.ownsTarget(Tt)?this.bottomLeft:this.bottomCenter.ownsTarget(Tt)?this.bottomCenter:this.bottomRight.ownsTarget(Tt)?this.bottomRight:void 0},Ot}(),ht=function(){function Ot(){this.GRIP_SIZE=10,this.visual=Vt.createGroup(),this.visual.appendChild(Vt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Vt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Ot.prototype.ownsTarget=function(Tt){return Tt===this.visual||Tt===this.visual.childNodes[0]||Tt===this.visual.childNodes[1]},Ot}(),dt=function(){function Ot(){}return Ot.toITransformMatrix=function(Tt){return{a:Tt.a,b:Tt.b,c:Tt.c,d:Tt.d,e:Tt.e,f:Tt.f}},Ot.toSVGMatrix=function(Tt,vt){return Tt.a=vt.a,Tt.b=vt.b,Tt.c=vt.c,Tt.d=vt.d,Tt.e=vt.e,Tt.f=vt.f,Tt},Ot}(),xt=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.left=0,At.top=0,At.width=0,At.height=0,At.defaultSize={x:50,y:20},At.offsetX=0,At.offsetY=0,At.rotationAngle=0,At.CB_DISTANCE=10,At._suppressMarkerCreateEvent=!1,At.container.transform.baseVal.appendItem(Vt.createTransform()),At.setupControlBox(),At}return ce(Tt,Ot),Object.defineProperty(Tt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"visual",{get:function(){return this._visual},set:function(vt){this._visual=vt;var gt=Vt.createTransform();this._visual.transform.baseVal.appendItem(gt)},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(vt){return!!Ot.prototype.ownsTarget.call(this,vt)||!!(this.controlGrips.findGripByVisual(vt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(vt))},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.state==="new"&&(this.left=vt.x,this.top=vt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ft=this.unrotatePoint(vt);if(this.manipulationStartX=ft.x,this.manipulationStartY=ft.y,this.offsetX=ft.x-this.left,this.offsetY=ft.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(gt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(gt)){this.activeGrip=this.rotatorGrip;var At=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=At.x-this.width/2,this.top=At.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Tt.prototype.pointerUp=function(vt){var gt=this.state;Ot.prototype.pointerUp.call(this,vt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(vt),this._state="select",gt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Tt.prototype.moveVisual=function(vt){this.visual.style.transform="translate("+vt.x+"px, "+vt.y+"px)"},Tt.prototype.manipulate=function(vt){var gt=this.unrotatePoint(vt);this.state==="creating"?this.resize(vt):this.state==="move"?(this.left=this.manipulationStartLeft+(gt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(gt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(gt):this.state==="rotate"&&this.rotate(vt)},Tt.prototype.resize=function(vt){var gt=this.manipulationStartLeft,ft=this.manipulationStartWidth,At=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:gt=this.manipulationStartLeft+vt.x-this.manipulationStartX,ft=this.manipulationStartWidth+this.manipulationStartLeft-gt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ft=this.manipulationStartWidth+vt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:At=this.manipulationStartTop+vt.y-this.manipulationStartY,le=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+vt.y-this.manipulationStartY}ft>=0?(this.left=gt,this.width=ft):(this.left=gt+ft,this.width=-ft),le>=0?(this.top=At,this.height=le):(this.top=At+le,this.height=-le),this.setSize()},Tt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Tt.prototype.rotate=function(vt){if(Math.abs(vt.x-this.centerX)>.1){var gt=Math.sign(vt.x-this.centerX);this.rotationAngle=180*Math.atan((vt.y-this.centerY)/(vt.x-this.centerX))/Math.PI+90*gt,this.applyRotation()}},Tt.prototype.applyRotation=function(){var vt=this.container.transform.baseVal.getItem(0);vt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(vt,0)},Tt.prototype.rotatePoint=function(vt){if(this.rotationAngle===0)return vt;var gt=this.container.getCTM(),ft=Vt.createPoint(vt.x,vt.y);return{x:(ft=ft.matrixTransform(gt)).x,y:ft.y}},Tt.prototype.unrotatePoint=function(vt){if(this.rotationAngle===0)return vt;var gt=this.container.getCTM();gt=gt.inverse();var ft=Vt.createPoint(vt.x,vt.y);return{x:(ft=ft.matrixTransform(gt)).x,y:ft.y}},Tt.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=Vt.createGroup();var vt=Vt.createTransform();vt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(vt),this.container.appendChild(this.controlBox),this.controlRect=Vt.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=Vt.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 rt,this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){var vt=this.controlBox.transform.baseVal.getItem(0);vt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(vt,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()},Tt.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()},Tt.prototype.createGrip=function(){var vt=new ht;return vt.visual.transform.baseVal.appendItem(Vt.createTransform()),this.controlBox.appendChild(vt.visual),vt},Tt.prototype.positionGrips=function(){var vt=this.controlGrips.topLeft.GRIP_SIZE,gt=-vt/2,ft=gt,At=(this.width+this.CB_DISTANCE)/2-vt/2,le=(this.height+this.CB_DISTANCE)/2-vt/2,xe=this.height+this.CB_DISTANCE-vt/2,ae=this.width+this.CB_DISTANCE-vt/2;this.positionGrip(this.controlGrips.topLeft.visual,gt,ft),this.positionGrip(this.controlGrips.topCenter.visual,At,ft),this.positionGrip(this.controlGrips.topRight.visual,ae,ft),this.positionGrip(this.controlGrips.centerLeft.visual,gt,le),this.positionGrip(this.controlGrips.centerRight.visual,ae,le),this.positionGrip(this.controlGrips.bottomLeft.visual,gt,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,At,xe),this.positionGrip(this.controlGrips.bottomRight.visual,ae,xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,ft-3*this.CB_DISTANCE)},Tt.prototype.positionGrip=function(vt,gt,ft){var At=vt.transform.baseVal.getItem(0);At.setTranslate(gt,ft),vt.transform.baseVal.replaceItem(At,0)},Tt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Tt.prototype.showControlBox=function(){this.controlBox.style.display=""},Tt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Ot.prototype.getState.call(this))},Tt.prototype.restoreState=function(vt){Ot.prototype.restoreState.call(this,vt);var gt=vt;this.left=gt.left,this.top=gt.top,this.width=gt.width,this.height=gt.height,this.rotationAngle=gt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,gt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,gt.containerTransformMatrix))},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt);var ft=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:ft.x*vt,y:ft.y*gt});this.left=At.x,this.top=At.y,this.width=this.width*vt,this.height=this.height*gt,this.adjustControlBox()},Tt}(lt),Nt=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.visual)},Tt.prototype.createVisual=function(){this.visual=Vt.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)},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.state==="new"&&(this.createVisual(),this.moveVisual(vt),this._state="creating")},Tt.prototype.manipulate=function(vt){Ot.prototype.manipulate.call(this,vt)},Tt.prototype.resize=function(vt){Ot.prototype.resize.call(this,vt),this.setSize()},Tt.prototype.setSize=function(){Ot.prototype.setSize.call(this),Vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(vt){Ot.prototype.pointerUp.call(this,vt),this.setSize()},Tt.prototype.setStrokeColor=function(vt){this.strokeColor=vt,this.visual&&Vt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(vt),this.stateChanged()},Tt.prototype.setFillColor=function(vt){this.fillColor=vt,this.visual&&Vt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Tt.prototype.setStrokeWidth=function(vt){this.strokeWidth=vt,this.visual&&Vt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(vt){this.strokeDasharray=vt,this.visual&&Vt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ot.prototype.getState.call(this))},Tt.prototype.restoreState=function(vt){var gt=vt;this.fillColor=gt.fillColor,this.strokeColor=gt.strokeColor,this.strokeWidth=gt.strokeWidth,this.strokeDasharray=gt.strokeDasharray,this.opacity=gt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.setSize()},Tt.title="Rectangle marker",Tt}(xt),Ut=function(Ot){function Tt(vt,gt,ft,At){var le=Ot.call(this,vt,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=gt,le.currentWidth=ft,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,gt=document.createElement("div");return gt.style.display="flex",gt.style.overflow="hidden",gt.style.flexGrow="2",this.widths.forEach(function(ft){var At=document.createElement("div");At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=ft===vt.currentWidth?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentWidth(ft,At)}),gt.appendChild(At);var le=document.createElement("div");le.innerText=ft.toString(),le.style.marginRight="5px",At.appendChild(le);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var ae=document.createElement("hr");ae.style.minWidth="20px",ae.style.border="0px",ae.style.borderTop=ft+"px solid "+vt.uiStyleSettings.toolboxColor,ae.style.flexGrow="2",xe.appendChild(ae),At.appendChild(xe),vt.widthBoxes.push(At)}),gt},Tt.prototype.setCurrentWidth=function(vt,gt){var ft=this;this.currentWidth=vt,this.widthBoxes.forEach(function(At){At.style.borderColor=At===gt?ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Tt}(et),_t=function(Ot){function Tt(vt,gt,ft,At){var le=Ot.call(this,vt,At||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return le.styles=[],le.styleBoxes=[],le.styles=gt,le.currentStyle=ft,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,gt=document.createElement("div");return gt.style.display="flex",gt.style.overflow="hidden",gt.style.flexGrow="2",this.styles.forEach(function(ft){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/vt.styles.length-5+"%",At.style.borderColor=ft===vt.currentStyle?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentStyle(ft,At)}),gt.appendChild(At);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var xe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+vt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ft!==""?'stroke-dasharray="'+ft+'"':"")+` />
</svg>`;le.innerHTML=xe,At.appendChild(le),vt.styleBoxes.push(At)}),gt},Tt.prototype.setCurrentStyle=function(vt,gt){var ft=this;this.currentStyle=vt,this.styleBoxes.forEach(function(At){At.style.borderColor=At===gt?ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Tt}(et),oe=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.strokeColor=ft.defaultColor,At.strokeWidth=ft.defaultStrokeWidth,At.strokeDasharray=ft.defaultStrokeDasharray,At.strokePanel=new tt("Line color",ft.defaultColorSet,ft.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ut("Line width",ft.defaultStrokeWidths,ft.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new _t("Line style",ft.defaultStrokeDasharrays,ft.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Tt,Ot),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Ot.prototype.getState.call(this);return vt.typeName=Tt.typeName,vt},Tt.typeName="FrameMarker",Tt.title="Frame marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Tt}(Nt),he=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"},fe=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.x1=0,At.y1=0,At.x2=0,At.y2=0,At.defaultLength=50,At.manipulationStartX=0,At.manipulationStartY=0,At.manipulationStartX1=0,At.manipulationStartY1=0,At.manipulationStartX2=0,At.manipulationStartY2=0,At.setupControlBox(),At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!!Ot.prototype.ownsTarget.call(this,vt)||!(!this.grip1.ownsTarget(vt)&&!this.grip2.ownsTarget(vt))},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.manipulationStartX=vt.x,this.manipulationStartY=vt.y,this.state==="new"&&(this.x1=vt.x,this.y1=vt.y,this.x2=vt.x,this.y2=vt.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(gt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(gt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Tt.prototype.pointerUp=function(vt){var gt=this.state;Ot.prototype.pointerUp.call(this,vt),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(vt),this._state="select",gt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Tt.prototype.adjustVisual=function(){},Tt.prototype.manipulate=function(vt){this.state==="creating"?this.resize(vt):this.state==="move"?(this.x1=this.manipulationStartX1+vt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+vt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+vt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+vt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(vt)},Tt.prototype.resize=function(vt){switch(this.activeGrip){case this.grip1:this.x1=vt.x,this.y1=vt.y;break;case this.grip2:case void 0:this.x2=vt.x,this.y2=vt.y}this.adjustVisual(),this.adjustControlBox()},Tt.prototype.select=function(){Ot.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){Ot.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=Vt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){this.positionGrips()},Tt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Tt.prototype.createGrip=function(){var vt=new ht;return vt.visual.transform.baseVal.appendItem(Vt.createTransform()),this.controlBox.appendChild(vt.visual),vt},Tt.prototype.positionGrips=function(){var vt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-vt/2,this.y1-vt/2),this.positionGrip(this.grip2.visual,this.x2-vt/2,this.y2-vt/2)},Tt.prototype.positionGrip=function(vt,gt,ft){var At=vt.transform.baseVal.getItem(0);At.setTranslate(gt,ft),vt.transform.baseVal.replaceItem(At,0)},Tt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Ot.prototype.getState.call(this))},Tt.prototype.restoreState=function(vt){Ot.prototype.restoreState.call(this,vt);var gt=vt;this.x1=gt.x1,this.y1=gt.y1,this.x2=gt.x2,this.y2=gt.y2},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.x1=this.x1*vt,this.y1=this.y1*gt,this.x2=this.x2*vt,this.y2=this.y2*gt,this.adjustVisual(),this.adjustControlBox()},Tt}(lt),Le=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.strokeColor=ft.defaultColor,At.strokeWidth=ft.defaultStrokeWidth,At.strokeDasharray=ft.defaultStrokeDasharray,At.strokePanel=new tt("Line color",ft.defaultColorSet,ft.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ut("Line width",ft.defaultStrokeWidths,ft.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new _t("Line style",ft.defaultStrokeDasharrays,ft.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.visual&&vt!==this.selectorLine&&vt!==this.visibleLine)},Tt.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.selectorLine=Vt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Vt.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)},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Tt.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()),Vt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Vt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Vt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setStrokeColor=function(vt){this.strokeColor=vt,this.adjustVisual(),this.colorChanged(vt)},Tt.prototype.setStrokeWidth=function(vt){this.strokeWidth=vt,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(vt){this.strokeDasharray=vt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){Ot.prototype.restoreState.call(this,vt);var gt=vt;this.strokeColor=gt.strokeColor,this.strokeWidth=gt.strokeWidth,this.strokeDasharray=gt.strokeDasharray,this.createVisual(),this.adjustVisual()},Tt.typeName="LineMarker",Tt.title="Line marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Tt}(fe),te=function(Ot){function Tt(vt,gt,ft,At){var le=Ot.call(this,vt,At||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return le.fonts=[],le.fontBoxes=[],le.fonts=gt,le.currentFont=ft,le.setCurrentFont=le.setCurrentFont.bind(le),le}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,gt=document.createElement("div");return gt.style.overflow="hidden",gt.style.flexGrow="2",this.fonts.forEach(function(ft){var At=document.createElement("div");At.style.display="inline-block",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/vt.fonts.length-5+"%",At.style.borderColor=ft===vt.currentFont?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentFont(ft,At)}),gt.appendChild(At);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=ft,le.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",le.appendChild(xe),At.appendChild(le),vt.fontBoxes.push(At)}),gt},Tt.prototype.setCurrentFont=function(vt,gt){var ft=this;this.currentFont=vt,this.fontBoxes.forEach(function(At){At.style.borderColor=At===gt?ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Tt}(et),He=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.color="transparent",At.padding=5,At.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",At.text=At.DEFAULT_TEXT,At.isMoved=!1,At.color=ft.defaultColor,At.fontFamily=ft.defaultFontFamily,At.defaultSize={x:100,y:30},At.setColor=At.setColor.bind(At),At.setFont=At.setFont.bind(At),At.renderText=At.renderText.bind(At),At.sizeText=At.sizeText.bind(At),At.textEditDivClicked=At.textEditDivClicked.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.setSize=At.setSize.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.colorPanel=new tt("Color",ft.defaultColorSet,ft.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new te("Font",ft.defaultFontFamilies,ft.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){if(Ot.prototype.ownsTarget.call(this,vt)||vt===this.visual||vt===this.textElement||vt===this.bgRectangle)return!0;var gt=!1;return this.textElement.childNodes.forEach(function(ft){ft===vt&&(gt=!0)}),gt},Tt.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.bgRectangle=Vt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Vt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Vt.createTransform()),this.textElement.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.isMoved=!1,this.pointerDownPoint=vt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(vt),this._state="creating")},Tt.prototype.renderText=function(){var vt=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(gt){vt.textElement.appendChild(Vt.createTSpan(gt.trim()===""?" ":gt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Tt.prototype.getTextScale=function(){var vt=this.textElement.getBBox(),gt=1;if(vt.width>0&&vt.height>0){var ft=(1*this.width-this.width*this.padding*2/100)/vt.width,At=(1*this.height-this.height*this.padding*2/100)/vt.height;gt=Math.min(ft,At)}return gt},Tt.prototype.getTextPosition=function(vt){var gt=this.textElement.getBBox(),ft=0,At=0;return gt.width>0&&gt.height>0&&(ft=(this.width-gt.width*vt)/2,At=this.height/2-gt.height*vt/2),{x:ft,y:At}},Tt.prototype.sizeText=function(){var vt=this.textElement.getBBox(),gt=this.getTextScale(),ft=this.getTextPosition(gt);ft.y-=vt.y*gt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ft.x+"px, "+ft.y+"px) scale("+gt+", "+gt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ft.x,ft.y),this.textElement.transform.baseVal.getItem(1).setScale(gt,gt))},Tt.prototype.manipulate=function(vt){Ot.prototype.manipulate.call(this,vt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(vt.x-this.pointerDownPoint.x)>5||Math.abs(vt.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(vt){Ot.prototype.resize.call(this,vt),this.isMoved=!0,this.setSize(),this.sizeText()},Tt.prototype.setSize=function(){Ot.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Vt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Tt.prototype.pointerUp=function(vt){var gt=this.state;gt==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,vt),this.setSize(),(gt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.showTextEditor=function(){var vt=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(gt){gt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var gt=Number.parseFloat(vt.textEditor.style.fontSize);vt.textEditor.clientWidth>=Number.parseInt(vt.textEditor.style.maxWidth)&&gt>.9;)gt-=.1,vt.textEditor.style.fontSize=Math.max(gt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(gt){gt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(gt){if(gt.clipboardData){var ft=gt.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(ft)),gt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){vt.textEditDivClicked(vt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Tt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var vt=this.getTextScale(),gt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ft=this.textElement.getBBox(),At={x:ft.width*vt,y:ft.height*vt};gt.x-=At.x/2,gt.y-=At.y/2,this.textEditor.style.top=gt.y+"px",this.textEditor.style.left=gt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-gt.x+"px",this.textEditor.style.fontSize=Math.max(16*vt,12)+"px",this.textElement.style.display="none"}},Tt.prototype.textEditDivClicked=function(vt){this.text=vt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Tt.prototype.select=function(){Ot.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Tt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Ot.prototype.deselect.call(this)},Tt.prototype.dblClick=function(vt,gt){Ot.prototype.dblClick.call(this,vt,gt),this.showTextEditor()},Tt.prototype.setColor=function(vt){this.textElement&&Vt.setAttributes(this.textElement,[["fill",vt]]),this.color=vt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(vt)},Tt.prototype.setFont=function(vt){this.textElement&&Vt.setAttributes(this.textElement,[["font-family",vt]]),this.fontFamily=vt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Tt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Tt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){var gt=vt;this.color=gt.color,this.fontFamily=gt.fontFamily,this.padding=gt.padding,this.text=gt.text,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.setSize(),this.sizeText(),this.positionTextEditor()},Tt.typeName="TextMarker",Tt.title="Text marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Tt}(xt),Wt=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=ft.defaultColor,At.lineWidth=ft.defaultStrokeWidth,At.pixelRatio=ft.freehandPixelRatio,At.setColor=At.setColor.bind(At),At.addCanvas=At.addCanvas.bind(At),At.finishCreation=At.finishCreation.bind(At),At.setLineWidth=At.setLineWidth.bind(At),At.colorPanel=new tt("Color",ft.defaultColorSet,ft.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new Ut("Line width",ft.defaultStrokeWidths,ft.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.visual&&vt!==this.drawingImage)},Tt.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.drawingImage=Vt.createImage(),this.visual.appendChild(this.drawingImage);var vt=Vt.createTransform();this.visual.transform.baseVal.appendItem(vt),this.addMarkerVisualToContainer(this.visual)},Tt.prototype.pointerDown=function(vt,gt){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(vt.x,vt.y),this.drawing=!0):Ot.prototype.pointerDown.call(this,vt,gt)},Tt.prototype.manipulate=function(vt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(vt.x,vt.y),this.canvasContext.stroke()):Ot.prototype.manipulate.call(this,vt)},Tt.prototype.resize=function(vt){Ot.prototype.resize.call(this,vt),Vt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Vt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(vt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Ot.prototype.pointerUp.call(this,vt)},Tt.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)},Tt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.select.call(this)},Tt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Ot.prototype.deselect.call(this)},Tt.prototype.finishCreation=function(){for(var vt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),gt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ft=gt[0],At=gt[1],le=gt[2],xe=gt[3],ae=!1,ye=0;ye<this.canvasElement.height;ye++)for(var Oe=0;Oe<this.canvasElement.width;Oe++)vt.data[ye*this.canvasElement.width*4+4*Oe+3]>0&&(ae=!0,ye<At&&(At=ye),Oe<ft&&(ft=Oe),ye>xe&&(xe=ye),Oe>le&&(le=Oe));if(ae){this.left=ft/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(le-ft)/this.pixelRatio,this.height=(xe-At)/this.pixelRatio;var Te=document.createElement("canvas");Te.width=le-ft,Te.height=xe-At,Te.getContext("2d").putImageData(this.canvasContext.getImageData(ft,At,le-ft,xe-At),0,0),this.drawingImgUrl=Te.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Tt.prototype.setDrawingImage=function(){Vt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Vt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Tt.prototype.setColor=function(vt){this.color=vt,this.colorChanged(vt)},Tt.prototype.setLineWidth=function(vt){this.lineWidth=vt},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Object.assign({drawingImgUrl:this.drawingImgUrl},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.drawingImgUrl=vt.drawingImgUrl,this.setDrawingImage()},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.setDrawingImage()},Tt.typeName="FreehandMarker",Tt.title="Freehand marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Tt}(xt),Ke=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,ft||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return At.typeBoxes=[],At.currentType=gt,At.setCurrentType=At.setCurrentType.bind(At),At}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,gt=document.createElement("div");gt.style.display="flex",gt.style.overflow="hidden",gt.style.flexGrow="2";for(var ft=function(xe){var ae="both";switch(xe){case 0:ae="both";break;case 1:ae="start";break;case 2:ae="end";break;case 3:ae="none"}var ye=document.createElement("div");if(ye.style.display="flex",ye.style.flexGrow="2",ye.style.alignItems="center",ye.style.justifyContent="space-between",ye.style.padding="5px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderColor=ae===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){vt.setCurrentType(ae,ye)}),gt.appendChild(ye),ae==="both"||ae==="start"){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Oe.style.marginLeft="5px",ye.appendChild(Oe)}var Te=document.createElement("div");Te.style.display="flex",Te.style.alignItems="center",Te.style.minHeight="20px",Te.style.flexGrow="2";var Me=document.createElement("hr");if(Me.style.minWidth="20px",Me.style.border="0px",Me.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),Me.style.flexGrow="2",Te.appendChild(Me),ye.appendChild(Te),ae==="both"||ae==="end"){var on=document.createElement("div");on.style.display="flex",on.style.alignItems="center",on.style.minHeight="20px",on.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,on.style.marginRight="5px",ye.appendChild(on)}At.typeBoxes.push(ye)},At=this,le=0;le<4;le++)ft(le);return gt},Tt.prototype.setCurrentType=function(vt,gt){var ft=this;this.currentType=vt,this.typeBoxes.forEach(function(At){At.style.borderColor=At===gt?ft.uiStyleSettings!==void 0?ft.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Tt}(et),_e=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.arrowType="end",At.arrowBaseHeight=10,At.arrowBaseWidth=10,At.getArrowPoints=At.getArrowPoints.bind(At),At.setArrowType=At.setArrowType.bind(At),At.arrowTypePanel=new Ke("Arrow type","end"),At.arrowTypePanel.onArrowTypeChanged=At.setArrowType,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.arrow1&&vt!==this.arrow2)},Tt.prototype.getArrowPoints=function(vt,gt){var ft=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return vt-ft/2+","+(gt+At/2)+" "+vt+","+(gt-At/2)+" "+(vt+ft/2)+","+(gt+At/2)},Tt.prototype.createTips=function(){this.arrow1=Vt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Vt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.arrow2)},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(Ot.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",Vt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Vt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var vt=0;Math.abs(this.x1-this.x2)>.1&&(vt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var gt=this.arrow1.transform.baseVal.getItem(0);gt.setRotate(vt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(gt,0);var ft=this.arrow2.transform.baseVal.getItem(0);ft.setRotate(vt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ft,0)}},Tt.prototype.setArrowType=function(vt){this.arrowType=vt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Object.assign({arrowType:this.arrowType},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){Ot.prototype.restoreState.call(this,vt);var gt=vt;this.arrowType=gt.arrowType,this.createTips(),this.adjustVisual()},Tt.typeName="ArrowMarker",Tt.title="Arrow marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Tt}(Le),Ne=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.fillColor=ft.defaultFillColor,At.strokeWidth=0,At.fillPanel=new tt("Color",ft.defaultColorSet,ft.defaultFillColor),At.fillPanel.onColorChanged=At.setFillColor,At}return ce(Tt,Ot),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Ot.prototype.getState.call(this);return vt.typeName=Tt.typeName,vt},Tt.typeName="CoverMarker",Tt.title="Cover marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Tt}(Nt),Ge=function(Ot){function Tt(vt,gt,ft,At){var le=Ot.call(this,vt,At||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return le.opacities=[],le.opacityBoxes=[],le.opacities=gt,le.currentOpacity=ft,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,gt=document.createElement("div");return gt.style.display="flex",gt.style.overflow="hidden",gt.style.flexGrow="2",gt.style.justifyContent="space-between",this.opacities.forEach(function(ft){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="center",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=ft===vt.currentOpacity?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentOpacity(ft,At)}),gt.appendChild(At);var le=document.createElement("div");le.innerText=100*ft+"%",At.appendChild(le),vt.opacityBoxes.push(At)}),gt},Tt.prototype.setCurrentOpacity=function(vt,gt){var ft=this;this.currentOpacity=vt,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===gt?ft.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Tt}(et),Ue=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=ft.defaultHighlightColor,At.strokeWidth=0,At.opacity=ft.defaultHighlightOpacity,At.fillPanel=new tt("Color",ft.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new Ge("Opacity",ft.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return ce(Tt,Ot),Tt.prototype.setOpacity=function(vt){this.opacity=vt,this.visual&&Vt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Ot.prototype.getState.call(this);return vt.typeName=Tt.typeName,vt},Tt.typeName="HighlightMarker",Tt.title="Highlight marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Tt}(Ne),ve='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ne='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ce=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.bgColor="transparent",At.tipPosition={x:0,y:0},At.tipBase1Position={x:0,y:0},At.tipBase2Position={x:0,y:0},At.tipMoving=!1,At.color=ft.defaultStrokeColor,At.bgColor=ft.defaultFillColor,At.fontFamily=ft.defaultFontFamily,At.defaultSize={x:100,y:30},At.setBgColor=At.setBgColor.bind(At),At.getTipPoints=At.getTipPoints.bind(At),At.positionTip=At.positionTip.bind(At),At.setTipPoints=At.setTipPoints.bind(At),At.colorPanel=new tt("Text color",ft.defaultColorSet,At.color,ve),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new tt("Fill color",ft.defaultColorSet,At.bgColor,ne),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new te("Font",ft.defaultFontFamilies,ft.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new ht,At.tipGrip.visual.transform.baseVal.appendItem(Vt.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return Ot.prototype.ownsTarget.call(this,vt)||this.tipGrip.ownsTarget(vt)||this.tip===vt},Tt.prototype.createTip=function(){Vt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Vt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Tt.prototype.pointerDown=function(vt,gt){this.state==="new"&&Ot.prototype.pointerDown.call(this,vt,gt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(gt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,vt,gt)},Tt.prototype.pointerUp=function(vt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,vt);else{var gt=this.state==="creating";Ot.prototype.pointerUp.call(this,vt),this.setTipPoints(gt),this.positionTip()}},Tt.prototype.manipulate=function(vt){if(this.tipMoving){var gt=this.unrotatePoint(vt);this.tipPosition={x:gt.x-this.manipulationStartLeft,y:gt.y-this.manipulationStartTop},this.positionTip()}else Ot.prototype.manipulate.call(this,vt)},Tt.prototype.setBgColor=function(vt){this.bgRectangle&&this.tip&&(Vt.setAttributes(this.bgRectangle,[["fill",vt]]),Vt.setAttributes(this.tip,[["fill",vt]])),this.bgColor=vt,this.fillColorChanged(vt)},Tt.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},Tt.prototype.setTipPoints=function(vt){vt===void 0&&(vt=!1);var gt=Math.min(this.height/2,15),ft=this.height/5;vt&&(this.tipPosition={x:gt+ft/2,y:this.height+20});var At=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ft=this.width/5,gt=Math.min(this.width/2,15),this.tipBase1Position={x:gt,y:0},this.tipBase2Position={x:gt+ft,y:0}):(this.tipBase1Position={x:0,y:gt},this.tipBase2Position={x:0,y:gt+ft}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ft=this.width/5,gt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-gt-ft,y:0},this.tipBase2Position={x:this.width-gt,y:0}):(this.tipBase1Position={x:this.width,y:gt},this.tipBase2Position={x:this.width,y:gt+ft}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?At<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ft=this.width/5,gt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-gt-ft,y:this.height},this.tipBase2Position={x:this.width-gt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-gt-ft},this.tipBase2Position={x:this.width,y:this.height-gt}):At<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ft=this.width/5,gt=Math.min(this.width/2,15),this.tipBase1Position={x:gt,y:this.height},this.tipBase2Position={x:gt+ft,y:this.height}):(this.tipBase1Position={x:0,y:this.height-gt},this.tipBase2Position={x:0,y:this.height-gt-ft})},Tt.prototype.resize=function(vt){Ot.prototype.resize.call(this,vt),this.positionTip()},Tt.prototype.positionTip=function(){Vt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var vt=this.tipGrip.visual.transform.baseVal.getItem(0);vt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(vt,0)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.select=function(){this.positionTip(),Ot.prototype.select.call(this)},Tt.prototype.getState=function(){var vt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){var gt=vt;this.bgColor=gt.bgColor,this.tipPosition=gt.tipPosition,Ot.prototype.restoreState.call(this,vt),this.createTip(),this.setTipPoints()},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.tipPosition={x:this.tipPosition.x*vt,y:this.tipPosition.y*gt},this.positionTip()},Tt.typeName="CalloutMarker",Tt.title="Callout marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Tt}(He),bn=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.strokeColor=ft.defaultColor,At.strokeWidth=ft.defaultStrokeWidth,At.strokeDasharray=ft.defaultStrokeDasharray,At.fillColor=ft.defaultFillColor,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.setOpacity=At.setOpacity.bind(At),At.createVisual=At.createVisual.bind(At),At.strokePanel=new tt("Line color",ee(ft.defaultColorSet,["transparent"]),ft.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(ft.defaultColorSet,["transparent"]),At.fillColor,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ut("Line width",ft.defaultStrokeWidths,ft.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new _t("Line style",ft.defaultStrokeDasharrays,ft.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.opacityPanel=new Ge("Opacity",ft.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.visual)},Tt.prototype.createVisual=function(){this.visual=Vt.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.state==="new"&&(this.createVisual(),this.moveVisual(vt),this._state="creating")},Tt.prototype.manipulate=function(vt){Ot.prototype.manipulate.call(this,vt)},Tt.prototype.resize=function(vt){Ot.prototype.resize.call(this,vt),this.setSize()},Tt.prototype.setSize=function(){Ot.prototype.setSize.call(this),Vt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Tt.prototype.pointerUp=function(vt){Ot.prototype.pointerUp.call(this,vt),this.setSize()},Tt.prototype.setStrokeColor=function(vt){this.strokeColor=vt,this.visual&&Vt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(vt),this.stateChanged()},Tt.prototype.setFillColor=function(vt){this.fillColor=vt,this.visual&&Vt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(vt),this.stateChanged()},Tt.prototype.setStrokeWidth=function(vt){this.strokeWidth=vt,this.visual&&Vt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(vt){this.strokeDasharray=vt,this.visual&&Vt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.setOpacity=function(vt){this.opacity=vt,this.visual&&Vt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){var gt=vt;this.fillColor=gt.fillColor,this.strokeColor=gt.strokeColor,this.strokeWidth=gt.strokeWidth,this.strokeDasharray=gt.strokeDasharray,this.opacity=gt.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.setSize()},Tt.typeName="EllipseMarker",Tt.title="Ellipse marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Tt}(xt),Ln=function(Ot){function Tt(vt,gt,ft){return Ot.call(this,vt,gt,ft)||this}return ce(Tt,Ot),Object.defineProperty(Tt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.tip1&&vt!==this.tip2)},Tt.prototype.createTips=function(){this.tip1=Vt.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Vt.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Vt.createTransform()),this.visual.appendChild(this.tip2)},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(Ot.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Vt.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Vt.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var vt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),gt=this.tip1.transform.baseVal.getItem(0);gt.setRotate(vt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(gt,0);var ft=this.tip2.transform.baseVal.getItem(0);ft.setRotate(vt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ft,0)}},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Ot.prototype.getState.call(this);return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){Ot.prototype.restoreState.call(this,vt),this.createTips(),this.adjustVisual()},Tt.typeName="MeasurementMarker",Tt.title="Measurement marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Tt}(Le),Ve=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.strokePanel.colors=ft.defaultColorSet,At.fillColor="transparent",At}return ce(Tt,Ot),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Ot.prototype.getState.call(this);return vt.typeName=Tt.typeName,vt},Tt.typeName="EllipseFrameMarker",Tt.title="Ellipse frame marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Tt}(bn),Nn=function(){function Ot(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Ot.prototype.addUndoStep=function(Tt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Tt)||(this.undoStack.push(Tt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Tt)&&this.redoStack.splice(0,this.redoStack.length))},Ot.prototype.replaceLastUndoStep=function(Tt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Tt)},Ot.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Ot.prototype.undo=function(){if(this.undoStack.length>1){var Tt=this.undoStack.pop();return Tt!==void 0&&this.redoStack.push(Tt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Ot.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Ot}(),Zn=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.curveX=0,At.curveY=0,At.manipulationStartCurveX=0,At.manipulationStartCurveY=0,At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.positionGrips=At.positionGrips.bind(At),At.addControlGrips=At.addControlGrips.bind(At),At.adjustVisual=At.adjustVisual.bind(At),At.setupControlBox=At.setupControlBox.bind(At),At.resize=At.resize.bind(At),At.strokeColor=ft.defaultColor,At.strokeWidth=ft.defaultStrokeWidth,At.strokeDasharray=ft.defaultStrokeDasharray,At.strokePanel=new tt("Line color",ft.defaultColorSet,ft.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ut("Line width",ft.defaultStrokeWidths,ft.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new _t("Line style",ft.defaultStrokeDasharrays,ft.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.visual&&vt!==this.selectorCurve&&vt!==this.visibleCurve&&!this.curveGrip.ownsTarget(vt))},Tt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Tt.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.selectorCurve=Vt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Vt.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)},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=vt.x,this.curveY=vt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(gt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Tt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Vt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Vt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Vt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setupControlBox=function(){Ot.prototype.setupControlBox.call(this),this.curveControlLine1=Vt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Vt.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)},Tt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Ot.prototype.addControlGrips.call(this)},Tt.prototype.positionGrips=function(){Ot.prototype.positionGrips.call(this);var vt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-vt/2,this.curveY-vt/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()))},Tt.prototype.manipulate=function(vt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+vt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+vt.y-this.manipulationStartY),Ot.prototype.manipulate.call(this,vt)},Tt.prototype.resize=function(vt){this.activeGrip===this.curveGrip&&(this.curveX=vt.x,this.curveY=vt.y),Ot.prototype.resize.call(this,vt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Tt.prototype.setStrokeColor=function(vt){this.strokeColor=vt,this.adjustVisual(),this.colorChanged(vt)},Tt.prototype.setStrokeWidth=function(vt){this.strokeWidth=vt,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(vt){this.strokeDasharray=vt,this.adjustVisual()},Tt.prototype.scale=function(vt,gt){this.curveX=this.curveX*vt,this.curveY=this.curveY*gt,Ot.prototype.scale.call(this,vt,gt)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Ot.prototype.getState.call(this));return vt.typeName=Tt.typeName,vt},Tt.prototype.restoreState=function(vt){Ot.prototype.restoreState.call(this,vt);var gt=vt;this.strokeColor=gt.strokeColor,this.strokeWidth=gt.strokeWidth,this.strokeDasharray=gt.strokeDasharray,this.curveX=gt.curveX,this.curveY=gt.curveY,this.createVisual(),this.adjustVisual()},Tt.typeName="CurveMarker",Tt.title="Curve marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Tt}(fe),gi=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,gt,ft)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.textColor="transparent",At.fontSize="1rem",At.isMoved=!1,At.captionText="Caption",At.PADDING=5,At.captionBoxWidth=0,At.captionBoxHeight=0,At.strokeColor=ft.defaultColor,At.strokeWidth=ft.defaultStrokeWidth,At.strokeDasharray=ft.defaultStrokeDasharray,At.fillColor=ft.defaultFillColor,At.textColor=ft.defaultStrokeColor,At.fontFamily=ft.defaultFontFamily,At.fontSize=ft.defaultCaptionFontSize,At.captionText=ft.defaultCaptionText,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At.sizeCaption=At.sizeCaption.bind(At),At.setCaptionText=At.setCaptionText.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.finishTextEditing=At.finishTextEditing.bind(At),At.setFont=At.setFont.bind(At),At.setTextColor=At.setTextColor.bind(At),At.strokePanel=new tt("Line color",ee(ft.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(ft.defaultColorSet,["transparent"]),At.fillColor,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ut("Line width",ft.defaultStrokeWidths,ft.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new _t("Line style",ft.defaultStrokeDasharrays,ft.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new te("Font",ft.defaultFontFamilies,ft.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new tt("Text color",ft.defaultColorSet,At.textColor,ve),At.textColorPanel.onColorChanged=At.setTextColor,At}return ce(Tt,Ot),Tt.prototype.ownsTarget=function(vt){return!(!Ot.prototype.ownsTarget.call(this,vt)&&vt!==this.visual&&vt!==this.frame&&vt!==this.captionBg&&vt!==this.captionElement)},Tt.prototype.createVisual=function(){this.visual=Vt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Vt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Vt.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=Vt.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()},Tt.prototype.setCaptionText=function(vt){this.captionText=vt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Tt.prototype.pointerDown=function(vt,gt){Ot.prototype.pointerDown.call(this,vt,gt),this.isMoved=!1,this.pointerDownPoint=vt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(vt),this._state="creating")},Tt.prototype.manipulate=function(vt){Ot.prototype.manipulate.call(this,vt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(vt.x-this.pointerDownPoint.x)>5||Math.abs(vt.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(vt){Ot.prototype.resize.call(this,vt),this.setSize()},Tt.prototype.sizeCaption=function(){var vt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=vt.width+2*this.PADDING,this.captionBoxHeight=vt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Vt.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')"]]),Vt.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')"]])},Tt.prototype.showTextEditor=function(){var vt=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(gt){gt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(gt){gt.key==="Enter"&&vt.finishTextEditing(vt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(gt){gt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){vt.finishTextEditing(vt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){vt.finishTextEditing(vt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Tt.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"))},Tt.prototype.finishTextEditing=function(vt){this.setCaptionText(vt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Tt.prototype.setFont=function(vt){this.captionElement&&Vt.setAttributes(this.captionElement,[["font-family",vt]]),this.fontFamily=vt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Tt.prototype.setTextColor=function(vt){this.captionElement&&Vt.setAttributes(this.captionElement,[["fill",vt]]),this.textColor=vt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Tt.prototype.setSize=function(){Ot.prototype.setSize.call(this),Vt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Tt.prototype.pointerUp=function(vt){Ot.prototype.pointerUp.call(this,vt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.dblClick=function(vt,gt){Ot.prototype.dblClick.call(this,vt,gt),this.showTextEditor()},Tt.prototype.setStrokeColor=function(vt){this.strokeColor=vt,this.frame&&Vt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(vt),this.stateChanged()},Tt.prototype.setFillColor=function(vt){this.fillColor=vt,this.captionBg&&Vt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(vt),this.stateChanged()},Tt.prototype.setStrokeWidth=function(vt){this.strokeWidth=vt,this.frame&&Vt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(vt){this.strokeDasharray=vt,this.frame&&Vt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var vt=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},Ot.prototype.getState.call(this));return vt.typeName=this.typeName,vt},Tt.prototype.restoreState=function(vt){var gt=vt;this.fillColor=gt.fillColor,this.strokeColor=gt.strokeColor,this.strokeWidth=gt.strokeWidth,this.strokeDasharray=gt.strokeDasharray,this.textColor=gt.textColor,this.fontFamily=gt.fontFamily,this.captionText=gt.captionText,this.fontSize=gt.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,gt){Ot.prototype.scale.call(this,vt,gt),this.setSize()},Tt.typeName="CaptionFrameMarker",Tt.title="Caption frame marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Tt}(xt),Kn=function(){function Ot(Tt,vt){vt===void 0&&(vt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Tt,this.cancelable=vt}return Object.defineProperty(Ot.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Ot.prototype.preventDefault=function(){this._defaultPrevented=!0},Ot}(),Pi=function(Ot){function Tt(vt,gt,ft){var At=Ot.call(this,vt,!1)||this;return At.dataUrl=gt,At.state=ft,At}return ce(Tt,Ot),Tt}(Kn),tn=function(Ot){function Tt(vt,gt,ft){ft===void 0&&(ft=!1);var At=Ot.call(this,vt,ft)||this;return At.marker=gt,At}return ce(Tt,Ot),Tt}(Kn),Li=function(){function Ot(){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 Ot.prototype.addEventListener=function(Tt,vt){this[Tt].push(vt)},Ot.prototype.removeEventListener=function(Tt,vt){var gt=this[Tt].indexOf(vt);gt>-1&&this[Tt].splice(gt,1)},Ot}(),ji=function(){function Ot(Tt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new he,this._isOpen=!1,this.undoRedoManager=new Nn,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 Li,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new bt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Tt,this.targetRoot=document.body,this.width=Tt.clientWidth,this.height=Tt.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(Ot.prototype,"ALL_MARKER_TYPES",{get:function(){return[oe,Wt,_e,He,Ve,bn,Ue,Ce,Ln,Ne,Le,Zn,gi]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[oe,Wt,_e,He,bn,Ue,Ce]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[oe,Wt,_e,He,Ue]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Tt){var vt=this;this._availableMarkerTypes.splice(0),Tt.forEach(function(gt){if(typeof gt=="string"){var ft=vt.ALL_MARKER_TYPES.find(function(At){return At.typeName===gt});ft!==void 0&&vt._availableMarkerTypes.push(ft)}else vt._availableMarkerTypes.push(gt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Tt){this._zoomLevel=Tt,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(Ot.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Ot.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Mt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Ot.prototype.show=function(){var Tt=this;this.styles.styleSheetRoot===void 0&&qt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=qt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(vt){return vt(new Kn(Tt))})},Ot.prototype.render=function(){return re(this,void 0,void 0,function(){var Tt;return Ie(this,function(vt){switch(vt.label){case 0:return this.setCurrentMarker(),(Tt=new jt).naturalSize=this.renderAtNaturalSize,Tt.imageType=this.renderImageType,Tt.imageQuality=this.renderImageQuality,Tt.markersOnly=this.renderMarkersOnly,Tt.width=this.renderWidth,Tt.height=this.renderHeight,[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return vt.sent(),[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,vt.sent()]}})})},Ot.prototype.close=function(Tt){var vt=this;if(Tt===void 0&&(Tt=!1),this.isOpen){var gt=!1;Tt||this.eventListeners.beforeclose.forEach(function(ft){var At=new Kn(vt,!0);ft(At),At.defaultPrevented&&(gt=!0)}),gt||(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(ft){return ft(new Kn(vt))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var Tt,vt=[],gt=0;gt<arguments.length;gt++)vt[gt]=arguments[gt];(Tt=this._availableMarkerTypes).push.apply(Tt,vt)},Ot.prototype.addRenderEventListener=function(Tt){this.addEventListener("render",function(vt){Tt(vt.dataUrl,vt.state)})},Ot.prototype.removeRenderEventListener=function(Tt){},Ot.prototype.addCloseEventListener=function(Tt){this.addEventListener("close",function(){Tt()})},Ot.prototype.removeCloseEventListener=function(Tt){},Ot.prototype.setupResizeObserver=function(){var Tt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Tt.resize(Tt.target.clientWidth,Tt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Tt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Ot.prototype.onPopupTargetResize=function(){var Tt=1*this.target.clientWidth/this.target.clientHeight,vt=this.editorCanvas.clientWidth/Tt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Tt:this.editorCanvas.clientWidth,gt=vt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Tt;this.resize(vt,gt)},Ot.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ot.prototype.resize=function(Tt,vt){this._isResizing=!0;var gt=Tt/this.imageWidth,ft=vt/this.imageHeight;this.imageWidth=Math.round(Tt),this.imageHeight=Math.round(vt),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(gt,ft),this._isResizing=!1},Ot.prototype.scaleMarkers=function(Tt,vt){var gt,ft=this;this._currentMarker&&this._currentMarker instanceof He?this._currentMarker.scale(Tt,vt):(gt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==ft._currentMarker&&At.scale(Tt,vt)}),gt!==void 0&&this.setCurrentMarker(gt)},Ot.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Ot.prototype.setTopLeft=function(){var Tt=this.editingTarget.getBoundingClientRect(),vt=this.editorCanvas.getBoundingClientRect();this.left=Tt.left-vt.left,this.top=Tt.top-vt.top},Ot.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Ot.prototype.addDefs=function(){for(var Tt,vt=[],gt=0;gt<arguments.length;gt++)vt[gt]=arguments[gt];this.defs=Vt.createDefs(),this.addDefsToImage(),(Tt=this.defs).append.apply(Tt,vt)},Ot.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Ot.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Ot.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Ot.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Ot.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Ot.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Ot.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Ot.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Tt=document.createElement("a");Tt.href="https://markerjs.com/",Tt.target="_blank",Tt.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Tt.title="Powered by marker.js",Tt.style.display="grid",Tt.style.alignItems="center",Tt.style.justifyItems="center",Tt.style.padding="3px",Tt.style.width="20px",Tt.style.height="20px",this.logoUI.appendChild(Tt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Ot.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")},Ot.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"},Ot.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Ot.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 Tt=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=Tt+"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 Xt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ct(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Ot.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Ot.prototype.removeMarker=function(Tt){this.markerImage.removeChild(Tt.container),this.markers.indexOf(Tt)>-1&&this.markers.splice(this.markers.indexOf(Tt),1),Tt.dispose()},Ot.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())},Ot.prototype.toolbarButtonClicked=function(Tt,vt){if(Tt==="marker"&&vt!==void 0)this.createNewMarker(vt);else if(Tt==="action")switch(vt){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()}},Ot.prototype.deleteSelectedMarker=function(){var Tt=this;if(this._currentMarker!==void 0){var vt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ft){var At=new tn(Tt,Tt._currentMarker,!0);ft(At),At.defaultPrevented&&(vt=!0)}),!vt){var gt=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(ft){return ft(new tn(Tt,gt))})}}},Ot.prototype.clear=function(){var Tt=this,vt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var xe=new tn(Tt,void 0,!0);le(xe),xe.defaultPrevented&&(vt=!0)}),!vt)){this.setCurrentMarker();for(var gt=function(le){var xe=ft.markers[le];ft.setCurrentMarker(ft.markers[le]),ft._currentMarker.dispose(),ft.markerImage.removeChild(ft._currentMarker.container),ft.markers.splice(ft.markers.indexOf(ft._currentMarker),1),ft.eventListeners.markerdelete.forEach(function(ae){return ae(new tn(Tt,xe))})},ft=this,At=this.markers.length-1;At>=0;At--)gt(At);this.addUndoStep()}},Object.defineProperty(Ot.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Ot.prototype.showNotesEditor=function(){var Tt;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=(Tt=this._currentMarker.notes)!==null&&Tt!==void 0?Tt:"",this.overlayContainer.appendChild(this.notesArea))},Ot.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)},Ot.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Ot.prototype.addUndoStep=function(){var Tt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var vt=this.getState(),gt=this.undoRedoManager.getLastUndoStep();if(!gt||gt.width===vt.width&&gt.height===vt.height){var ft=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(vt),ft<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(At){return At(new Kn(Tt))})}else this.undoRedoManager.replaceLastUndoStep(vt),this.eventListeners.statechange.forEach(function(At){return At(new Kn(Tt))})}},Ot.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Ot.prototype.undoStep=function(){var Tt=this,vt=this.undoRedoManager.undo();vt!==void 0&&(this.restoreState(vt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(gt){return gt(new Kn(Tt))}))},Ot.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Ot.prototype.redoStep=function(){var Tt=this,vt=this.undoRedoManager.redo();vt!==void 0&&(this.restoreState(vt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(gt){return gt(new Kn(Tt))}))},Ot.prototype.stepZoom=function(){var Tt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Tt<this.zoomSteps.length-1?this.zoomSteps[Tt+1]:this.zoomSteps[0]},Ot.prototype.panTo=function(Tt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Tt.x,top:this.prevPanPoint.y-Tt.y}),this.prevPanPoint=Tt},Ot.prototype.startRenderAndClose=function(){return re(this,void 0,void 0,function(){var Tt,vt,gt=this;return Ie(this,function(ft){switch(ft.label){case 0:return[4,this.render()];case 1:return Tt=ft.sent(),vt=this.getState(),this.eventListeners.render.forEach(function(At){return At(new Pi(gt,Tt,vt))}),this.close(!0),[2]}})})},Ot.prototype.getState=function(Tt){Tt===!0&&this.setCurrentMarker();var vt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(gt){return vt.markers.push(gt.getState())}),vt},Ot.prototype.restoreState=function(Tt){var vt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Tt.markers.forEach(function(gt){var ft=vt._availableMarkerTypes.find(function(le){return le.typeName===gt.typeName});if(ft!==void 0){var At=vt.addNewMarker(ft);At.restoreState(gt),vt.markers.push(At)}}),Tt.width&&Tt.height&&(Tt.width!==this.imageWidth||Tt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Tt.width,this.imageHeight/Tt.height),this.eventListeners.restorestate.forEach(function(gt){return gt(new Kn(vt))})},Ot.prototype.addNewMarker=function(Tt){var vt=Vt.createGroup();return this.markerImage.appendChild(vt),new Tt(vt,this.overlayContainer,this.settings)},Ot.prototype.createNewMarker=function(Tt){var vt,gt=this;(vt=typeof Tt=="string"?this._availableMarkerTypes.find(function(ft){return ft.typeName===Tt}):Tt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(vt),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(vt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ft){return ft(new tn(gt,gt._currentMarker))}))},Ot.prototype.markerCreated=function(Tt){var vt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Tt),this.setCurrentMarker(Tt),Tt instanceof Wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(gt){return gt(new tn(vt,vt._currentMarker))})},Ot.prototype.colorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Tt,this.settings.defaultStrokeColor=Tt)},Ot.prototype.fillColorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Tt)},Ot.prototype.markerStateChanged=function(Tt){var vt=this;this.eventListeners.markerchange.forEach(function(gt){return gt(new tn(vt,Tt))})},Ot.prototype.setCurrentMarker=function(Tt){var vt=this;this._currentMarker!==Tt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(gt){return gt(new tn(vt,vt._currentMarker))})),this._currentMarker=Tt,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(gt){return gt(new tn(vt,vt._currentMarker))}))},Ot.prototype.onPointerDown=function(Tt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Tt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var vt=this.markers.find(function(gt){return gt.ownsTarget(Tt.target)});vt!==void 0?(this.setCurrentMarker(vt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Tt.clientX,y:Tt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY))},Ot.prototype.onDblClick=function(Tt){if(this._isFocused||this.focus(),this.mode==="select"){var vt=this.markers.find(function(gt){return gt.ownsTarget(Tt.target)});vt!==void 0&&vt!==this._currentMarker&&this.setCurrentMarker(vt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target):this.setCurrentMarker()}},Ot.prototype.onPointerMove=function(Tt){this.touchPoints!==1&&Tt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Tt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)):this.zoomLevel>1&&this.panTo({x:Tt.clientX,y:Tt.clientY}))},Ot.prototype.onPointerUp=function(Tt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)),this.isDragging=!1,this.addUndoStep()},Ot.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Ot.prototype.onKeyUp=function(Tt){this._currentMarker===void 0||this.notesArea!==void 0||Tt.key!=="Delete"&&Tt.key!=="Backspace"||this.deleteSelectedMarker()},Ot.prototype.clientToLocalCoordinates=function(Tt,vt){var gt=this.markerImage.getBoundingClientRect();return{x:(Tt-gt.left)/this.zoomLevel,y:(vt-gt.top)/this.zoomLevel}},Ot.prototype.onWindowResize=function(){this.positionUI()},Ot.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Tt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Tt+"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()},Ot.prototype.addLicenseKey=function(Tt){Mt.addKey(Tt)},Ot.prototype.addEventListener=function(Tt,vt){this.eventListeners.addEventListener(Tt,vt)},Ot.prototype.removeEventListener=function(Tt,vt){this.eventListeners.removeEventListener(Tt,vt)},Ot.prototype.renderState=function(Tt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Tt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Ot.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Ot.prototype.focus=function(){var Tt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(vt){return vt(new Kn(Tt))}))},Ot.prototype.blur=function(){var Tt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(vt){return vt(new Kn(Tt))}))},Ot.instanceCounter=0,Ot}()},17115:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{ZP:function(){return Mt}});var Lt=Ft(33606),ce=Ft(59301),re=Ft(47273),Ie=0,ee=(0,re.Z)();function Vt(){var jt;return ee?(jt=Ie,Ie+=1):jt="TEST_OR_SSR",jt}function Mt(jt){var qt=ce.useState(),bt=(0,Lt.Z)(qt,2),se=bt[0],Gt=bt[1];return ce.useEffect(function(){Gt("rc_select_".concat(Vt()))},[]),jt||se}},77861:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Ac:function(){return on},Xo:function(){return Yr},Wx:function(){return Ir},ZP:function(){return xi},lk:function(){return xt}});var Lt=Ft(92413),ce=Ft(26407),re=Ft(400),Ie=Ft(33708),ee=Ft(33606),Vt=Ft(37061),Mt=Ft(39559),jt=Ft(18929),qt=Ft(48736),bt=Ft(59301),se=Ft(92310),Gt=Ft.n(se),Xt=Ft(34280),Ct=Ft(49658),et=Ft(10228),tt=Ft(8654),lt=function(Ee){var Cn=Ee.className,Gn=Ee.customizeIcon,Ei=Ee.customizeIconProps,ei=Ee.onMouseDown,gn=Ee.onClick,di=Ee.children,Ni;return typeof Gn=="function"?Ni=Gn(Ei):Ni=Gn,bt.createElement("span",{className:Cn,onMouseDown:function(kn){kn.preventDefault(),ei&&ei(kn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gn,"aria-hidden":!0},Ni!==void 0?Ni:bt.createElement("span",{className:Gt()(Cn.split(/\s+/).map(function($i){return"".concat($i,"-icon")}))},di))},rt=lt;function ht(wn,Ee,Cn,Gn,Ei){var ei=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gn=arguments.length>6?arguments[6]:void 0,di=arguments.length>7?arguments[7]:void 0,Ni=bt.useMemo(function(){if((0,Mt.Z)(Gn)==="object")return Gn.clearIcon;if(Ei)return Ei},[Gn,Ei]),$i=bt.useMemo(function(){return!!(!ei&&Gn&&(Cn.length||gn)&&!(di==="combobox"&&gn===""))},[Gn,ei,Cn.length,gn,di]);return{allowClear:$i,clearIcon:bt.createElement(rt,{className:"".concat(wn,"-clear"),onMouseDown:Ee,customizeIcon:Ni},"\xD7")}}var dt=bt.createContext(null);function xt(){return bt.useContext(dt)}function Nt(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ee=bt.useState(!1),Cn=(0,ee.Z)(Ee,2),Gn=Cn[0],Ei=Cn[1],ei=bt.useRef(null),gn=function(){window.clearTimeout(ei.current)};bt.useEffect(function(){return gn},[]);var di=function($i,kn){gn(),ei.current=window.setTimeout(function(){Ei($i),kn&&kn()},wn)};return[Gn,di,gn]}function Ut(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ee=bt.useRef(null),Cn=bt.useRef(null);bt.useEffect(function(){return function(){window.clearTimeout(Cn.current)}},[]);function Gn(Ei){(Ei||Ee.current===null)&&(Ee.current=Ei),window.clearTimeout(Cn.current),Cn.current=window.setTimeout(function(){Ee.current=null},wn)}return[function(){return Ee.current},Gn]}function _t(wn,Ee,Cn,Gn){var Ei=bt.useRef(null);Ei.current={open:Ee,triggerOpen:Cn,customizedTrigger:Gn},bt.useEffect(function(){function ei(gn){var di;if(!((di=Ei.current)!==null&&di!==void 0&&di.customizedTrigger)){var Ni=gn.target;Ni.shadowRoot&&gn.composed&&(Ni=gn.composedPath()[0]||Ni),Ei.current.open&&wn().filter(function($i){return $i}).every(function($i){return!$i.contains(Ni)&&$i!==Ni})&&Ei.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ei),function(){return window.removeEventListener("mousedown",ei)}},[])}var oe=Ft(26112),he=Ft(11780),fe=function(Ee,Cn){var Gn,Ei,ei=Ee.prefixCls,gn=Ee.id,di=Ee.inputElement,Ni=Ee.disabled,$i=Ee.tabIndex,kn=Ee.autoFocus,yi=Ee.autoComplete,Br=Ee.editable,dr=Ee.activeDescendantId,zr=Ee.value,cr=Ee.maxLength,wr=Ee.onKeyDown,or=Ee.onMouseDown,xr=Ee.onChange,so=Ee.onPaste,Yi=Ee.onCompositionStart,pr=Ee.onCompositionEnd,yo=Ee.open,Ss=Ee.attrs,_o=di||bt.createElement("input",null),Dn=_o,Tr=Dn.ref,ao=Dn.props,Kr=ao.onKeyDown,qo=ao.onChange,Oo=ao.onMouseDown,wi=ao.onCompositionStart,Po=ao.onCompositionEnd,Rr=ao.style;return(0,qt.Kp)(!("maxLength"in _o.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_o=bt.cloneElement(_o,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({type:"search"},ao),{},{id:gn,ref:(0,tt.sQ)(Cn,Tr),disabled:Ni,tabIndex:$i,autoComplete:yi||"off",autoFocus:kn,className:Gt()("".concat(ei,"-selection-search-input"),(Gn=_o)===null||Gn===void 0||(Ei=Gn.props)===null||Ei===void 0?void 0:Ei.className),role:"combobox","aria-label":"Search","aria-expanded":yo||!1,"aria-haspopup":"listbox","aria-owns":"".concat(gn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(gn,"_list"),"aria-activedescendant":yo?dr:void 0},Ss),{},{value:Br?zr:"",maxLength:cr,readOnly:!Br,unselectable:Br?null:"on",style:(0,Ie.Z)((0,Ie.Z)({},Rr),{},{opacity:Br?null:0}),onKeyDown:function(Ci){wr(Ci),Kr&&Kr(Ci)},onMouseDown:function(Ci){or(Ci),Oo&&Oo(Ci)},onChange:function(Ci){xr(Ci),qo&&qo(Ci)},onCompositionStart:function(Ci){Yi(Ci),wi&&wi(Ci)},onCompositionEnd:function(Ci){pr(Ci),Po&&Po(Ci)},onPaste:so})),_o},Le=bt.forwardRef(fe);Le.displayName="Input";var te=Le;function He(wn){return Array.isArray(wn)?wn:wn!==void 0?[wn]:[]}var Wt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ke=Wt;function _e(wn){return wn!=null}function Ne(wn){return!wn&&wn!==0}function Ge(wn){return["string","number"].includes((0,Mt.Z)(wn))}function Ue(wn){var Ee=void 0;return wn&&(Ge(wn.title)?Ee=wn.title.toString():Ge(wn.label)&&(Ee=wn.label.toString())),Ee}function ve(wn,Ee){Ke?bt.useLayoutEffect(wn,Ee):bt.useEffect(wn,Ee)}function ne(wn){var Ee;return(Ee=wn.key)!==null&&Ee!==void 0?Ee:wn.value}var Ce=function(Ee){Ee.preventDefault(),Ee.stopPropagation()},bn=function(Ee){var Cn=Ee.id,Gn=Ee.prefixCls,Ei=Ee.values,ei=Ee.open,gn=Ee.searchValue,di=Ee.autoClearSearchValue,Ni=Ee.inputRef,$i=Ee.placeholder,kn=Ee.disabled,yi=Ee.mode,Br=Ee.showSearch,dr=Ee.autoFocus,zr=Ee.autoComplete,cr=Ee.activeDescendantId,wr=Ee.tabIndex,or=Ee.removeIcon,xr=Ee.maxTagCount,so=Ee.maxTagTextLength,Yi=Ee.maxTagPlaceholder,pr=Yi===void 0?function(ts){return"+ ".concat(ts.length," ...")}:Yi,yo=Ee.tagRender,Ss=Ee.onToggleOpen,_o=Ee.onRemove,Dn=Ee.onInputChange,Tr=Ee.onInputPaste,ao=Ee.onInputKeyDown,Kr=Ee.onInputMouseDown,qo=Ee.onInputCompositionStart,Oo=Ee.onInputCompositionEnd,wi=bt.useRef(null),Po=(0,bt.useState)(0),Rr=(0,ee.Z)(Po,2),kr=Rr[0],Ci=Rr[1],Lo=(0,bt.useState)(!1),Bi=(0,ee.Z)(Lo,2),Zo=Bi[0],ra=Bi[1],fs="".concat(Gn,"-selection"),ba=ei||yi==="multiple"&&di===!1||yi==="tags"?gn:"",Vs=yi==="tags"||yi==="multiple"&&di===!1||Br&&(ei||Zo);ve(function(){Ci(wi.current.scrollWidth)},[ba]);function Mo(ts,Sa,sl,Ll,ml){return bt.createElement("span",{className:Gt()("".concat(fs,"-item"),(0,re.Z)({},"".concat(fs,"-item-disabled"),sl)),title:Ue(ts)},bt.createElement("span",{className:"".concat(fs,"-item-content")},Sa),Ll&&bt.createElement(rt,{className:"".concat(fs,"-item-remove"),onMouseDown:Ce,onClick:ml,customizeIcon:or},"\xD7"))}function Ho(ts,Sa,sl,Ll,ml){var Ol=function($o){Ce($o),Ss(!ei)};return bt.createElement("span",{onMouseDown:Ol},yo({label:Sa,value:ts,disabled:sl,closable:Ll,onClose:ml}))}function ps(ts){var Sa=ts.disabled,sl=ts.label,Ll=ts.value,ml=!kn&&!Sa,Ol=sl;if(typeof so=="number"&&(typeof sl=="string"||typeof sl=="number")){var is=String(Ol);is.length>so&&(Ol="".concat(is.slice(0,so),"..."))}var $o=function(ks){ks&&ks.stopPropagation(),_o(ts)};return typeof yo=="function"?Ho(Ll,Ol,Sa,ml,$o):Mo(ts,Ol,Sa,ml,$o)}function ss(ts){var Sa=typeof pr=="function"?pr(ts):pr;return Mo({title:Sa},Sa,!1)}var gr=bt.createElement("div",{className:"".concat(fs,"-search"),style:{width:kr},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},bt.createElement(te,{ref:Ni,open:ei,prefixCls:Gn,id:Cn,inputElement:null,disabled:kn,autoFocus:dr,autoComplete:zr,editable:Vs,activeDescendantId:cr,value:ba,onKeyDown:ao,onMouseDown:Kr,onChange:Dn,onPaste:Tr,onCompositionStart:qo,onCompositionEnd:Oo,tabIndex:wr,attrs:(0,oe.Z)(Ee,!0)}),bt.createElement("span",{ref:wi,className:"".concat(fs,"-search-mirror"),"aria-hidden":!0},ba,"\xA0")),ke=bt.createElement(he.Z,{prefixCls:"".concat(fs,"-overflow"),data:Ei,renderItem:ps,renderRest:ss,suffix:gr,itemKey:ne,maxCount:xr});return bt.createElement(bt.Fragment,null,ke,!Ei.length&&!ba&&bt.createElement("span",{className:"".concat(fs,"-placeholder")},$i))},Ln=bn,Ve=function(Ee){var Cn=Ee.inputElement,Gn=Ee.prefixCls,Ei=Ee.id,ei=Ee.inputRef,gn=Ee.disabled,di=Ee.autoFocus,Ni=Ee.autoComplete,$i=Ee.activeDescendantId,kn=Ee.mode,yi=Ee.open,Br=Ee.values,dr=Ee.placeholder,zr=Ee.tabIndex,cr=Ee.showSearch,wr=Ee.searchValue,or=Ee.activeValue,xr=Ee.maxLength,so=Ee.onInputKeyDown,Yi=Ee.onInputMouseDown,pr=Ee.onInputChange,yo=Ee.onInputPaste,Ss=Ee.onInputCompositionStart,_o=Ee.onInputCompositionEnd,Dn=Ee.title,Tr=bt.useState(!1),ao=(0,ee.Z)(Tr,2),Kr=ao[0],qo=ao[1],Oo=kn==="combobox",wi=Oo||cr,Po=Br[0],Rr=wr||"";Oo&&or&&!Kr&&(Rr=or),bt.useEffect(function(){Oo&&qo(!1)},[Oo,or]);var kr=kn!=="combobox"&&!yi&&!cr?!1:!!Rr,Ci=Dn===void 0?Ue(Po):Dn,Lo=function(){if(Po)return null;var Zo=kr?{visibility:"hidden"}:void 0;return bt.createElement("span",{className:"".concat(Gn,"-selection-placeholder"),style:Zo},dr)};return bt.createElement(bt.Fragment,null,bt.createElement("span",{className:"".concat(Gn,"-selection-search")},bt.createElement(te,{ref:ei,prefixCls:Gn,id:Ei,open:yi,inputElement:Cn,disabled:gn,autoFocus:di,autoComplete:Ni,editable:wi,activeDescendantId:$i,value:Rr,onKeyDown:so,onMouseDown:Yi,onChange:function(Zo){qo(!0),pr(Zo)},onPaste:yo,onCompositionStart:Ss,onCompositionEnd:_o,tabIndex:zr,attrs:(0,oe.Z)(Ee,!0),maxLength:Oo?xr:void 0})),!Oo&&Po?bt.createElement("span",{className:"".concat(Gn,"-selection-item"),title:Ci,style:kr?{visibility:"hidden"}:void 0},Po.label):null,Lo())},Nn=Ve;function Zn(wn){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(wn)}var gi=function(Ee,Cn){var Gn=(0,bt.useRef)(null),Ei=(0,bt.useRef)(!1),ei=Ee.prefixCls,gn=Ee.open,di=Ee.mode,Ni=Ee.showSearch,$i=Ee.tokenWithEnter,kn=Ee.autoClearSearchValue,yi=Ee.onSearch,Br=Ee.onSearchSubmit,dr=Ee.onToggleOpen,zr=Ee.onInputKeyDown,cr=Ee.domRef;bt.useImperativeHandle(Cn,function(){return{focus:function(){Gn.current.focus()},blur:function(){Gn.current.blur()}}});var wr=Ut(0),or=(0,ee.Z)(wr,2),xr=or[0],so=or[1],Yi=function(Rr){var kr=Rr.which;(kr===et.Z.UP||kr===et.Z.DOWN)&&Rr.preventDefault(),zr&&zr(Rr),kr===et.Z.ENTER&&di==="tags"&&!Ei.current&&!gn&&(Br==null||Br(Rr.target.value)),Zn(kr)&&dr(!0)},pr=function(){so(!0)},yo=(0,bt.useRef)(null),Ss=function(Rr){yi(Rr,!0,Ei.current)!==!1&&dr(!0)},_o=function(){Ei.current=!0},Dn=function(Rr){Ei.current=!1,di!=="combobox"&&Ss(Rr.target.value)},Tr=function(Rr){var kr=Rr.target.value;if($i&&yo.current&&/[\r\n]/.test(yo.current)){var Ci=yo.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");kr=kr.replace(Ci,yo.current)}yo.current=null,Ss(kr)},ao=function(Rr){var kr=Rr.clipboardData,Ci=kr.getData("text");yo.current=Ci},Kr=function(Rr){var kr=Rr.target;if(kr!==Gn.current){var Ci=document.body.style.msTouchAction!==void 0;Ci?setTimeout(function(){Gn.current.focus()}):Gn.current.focus()}},qo=function(Rr){var kr=xr();Rr.target!==Gn.current&&!kr&&di!=="combobox"&&Rr.preventDefault(),(di!=="combobox"&&(!Ni||!kr)||!gn)&&(gn&&kn!==!1&&yi("",!0,!1),dr())},Oo={inputRef:Gn,onInputKeyDown:Yi,onInputMouseDown:pr,onInputChange:Tr,onInputPaste:ao,onInputCompositionStart:_o,onInputCompositionEnd:Dn},wi=di==="multiple"||di==="tags"?bt.createElement(Ln,(0,Lt.Z)({},Ee,Oo)):bt.createElement(Nn,(0,Lt.Z)({},Ee,Oo));return bt.createElement("div",{ref:cr,className:"".concat(ei,"-selector"),onClick:Kr,onMouseDown:qo},wi)},Kn=bt.forwardRef(gi);Kn.displayName="Selector";var Pi=Kn,tn=Ft(35593),Li=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ji=function(Ee){var Cn=Ee===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Cn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Cn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Cn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Cn,adjustY:1},htmlRegion:"scroll"}}},Ot=function(Ee,Cn){var Gn=Ee.prefixCls,Ei=Ee.disabled,ei=Ee.visible,gn=Ee.children,di=Ee.popupElement,Ni=Ee.animation,$i=Ee.transitionName,kn=Ee.dropdownStyle,yi=Ee.dropdownClassName,Br=Ee.direction,dr=Br===void 0?"ltr":Br,zr=Ee.placement,cr=Ee.builtinPlacements,wr=Ee.dropdownMatchSelectWidth,or=Ee.dropdownRender,xr=Ee.dropdownAlign,so=Ee.getPopupContainer,Yi=Ee.empty,pr=Ee.getTriggerDOMNode,yo=Ee.onPopupVisibleChange,Ss=Ee.onPopupMouseEnter,_o=(0,Vt.Z)(Ee,Li),Dn="".concat(Gn,"-dropdown"),Tr=di;or&&(Tr=or(di));var ao=bt.useMemo(function(){return cr||ji(wr)},[cr,wr]),Kr=Ni?"".concat(Dn,"-").concat(Ni):$i,qo=typeof wr=="number",Oo=bt.useMemo(function(){return qo?null:wr===!1?"minWidth":"width"},[wr,qo]),wi=kn;qo&&(wi=(0,Ie.Z)((0,Ie.Z)({},wi),{},{width:wr}));var Po=bt.useRef(null);return bt.useImperativeHandle(Cn,function(){return{getPopupElement:function(){return Po.current}}}),bt.createElement(tn.Z,(0,Lt.Z)({},_o,{showAction:yo?["click"]:[],hideAction:yo?["click"]:[],popupPlacement:zr||(dr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ao,prefixCls:Dn,popupTransitionName:Kr,popup:bt.createElement("div",{ref:Po,onMouseEnter:Ss},Tr),stretch:Oo,popupAlign:xr,popupVisible:ei,getPopupContainer:so,popupClassName:Gt()(yi,(0,re.Z)({},"".concat(Dn,"-empty"),Yi)),popupStyle:wi,getTriggerDOMNode:pr,onPopupVisibleChange:yo}),gn)},Tt=bt.forwardRef(Ot);Tt.displayName="SelectTrigger";var vt=Tt,gt=Ft(34589);function ft(wn,Ee){var Cn=wn.key,Gn;return"value"in wn&&(Gn=wn.value),Cn!=null?Cn:Gn!==void 0?Gn:"rc-index-key-".concat(Ee)}function At(wn,Ee){var Cn=wn||{},Gn=Cn.label,Ei=Cn.value,ei=Cn.options,gn=Cn.groupLabel,di=Gn||(Ee?"children":"label");return{label:di,value:Ei||"value",options:ei||"options",groupLabel:gn||di}}function le(wn){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Cn=Ee.fieldNames,Gn=Ee.childrenAsData,Ei=[],ei=At(Cn,!1),gn=ei.label,di=ei.value,Ni=ei.options,$i=ei.groupLabel;function kn(yi,Br){yi.forEach(function(dr){if(Br||!(Ni in dr)){var zr=dr[di];Ei.push({key:ft(dr,Ei.length),groupOption:Br,data:dr,label:dr[gn],value:zr})}else{var cr=dr[$i];cr===void 0&&Gn&&(cr=dr.label),Ei.push({key:ft(dr,Ei.length),group:!0,data:dr,label:cr}),kn(dr[Ni],!0)}})}return kn(wn,!1),Ei}function xe(wn){var Ee=(0,Ie.Z)({},wn);return"props"in Ee||Object.defineProperty(Ee,"props",{get:function(){return(0,qt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ee}}),Ee}function ae(wn,Ee){if(!Ee||!Ee.length)return null;var Cn=!1;function Gn(ei,gn){var di=(0,gt.Z)(gn),Ni=di[0],$i=di.slice(1);if(!Ni)return[ei];var kn=ei.split(Ni);return Cn=Cn||kn.length>1,kn.reduce(function(yi,Br){return[].concat((0,ce.Z)(yi),(0,ce.Z)(Gn(Br,$i)))},[]).filter(function(yi){return yi})}var Ei=Gn(wn,Ee);return Cn?Ei:null}var ye=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Oe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Te(wn){return wn==="tags"||wn==="multiple"}var Me=bt.forwardRef(function(wn,Ee){var Cn,Gn,Ei=wn.id,ei=wn.prefixCls,gn=wn.className,di=wn.showSearch,Ni=wn.tagRender,$i=wn.direction,kn=wn.omitDomProps,yi=wn.displayValues,Br=wn.onDisplayValuesChange,dr=wn.emptyOptions,zr=wn.notFoundContent,cr=zr===void 0?"Not Found":zr,wr=wn.onClear,or=wn.mode,xr=wn.disabled,so=wn.loading,Yi=wn.getInputElement,pr=wn.getRawInputElement,yo=wn.open,Ss=wn.defaultOpen,_o=wn.onDropdownVisibleChange,Dn=wn.activeValue,Tr=wn.onActiveValueChange,ao=wn.activeDescendantId,Kr=wn.searchValue,qo=wn.autoClearSearchValue,Oo=wn.onSearch,wi=wn.onSearchSplit,Po=wn.tokenSeparators,Rr=wn.allowClear,kr=wn.suffixIcon,Ci=wn.clearIcon,Lo=wn.OptionList,Bi=wn.animation,Zo=wn.transitionName,ra=wn.dropdownStyle,fs=wn.dropdownClassName,ba=wn.dropdownMatchSelectWidth,Vs=wn.dropdownRender,Mo=wn.dropdownAlign,Ho=wn.placement,ps=wn.builtinPlacements,ss=wn.getPopupContainer,gr=wn.showAction,ke=gr===void 0?[]:gr,ts=wn.onFocus,Sa=wn.onBlur,sl=wn.onKeyUp,Ll=wn.onKeyDown,ml=wn.onMouseDown,Ol=(0,Vt.Z)(wn,ye),is=Te(or),$o=(di!==void 0?di:is)||or==="combobox",wo=(0,Ie.Z)({},Ol);Oe.forEach(function(Es){delete wo[Es]}),kn==null||kn.forEach(function(Es){delete wo[Es]});var ks=bt.useState(!1),co=(0,ee.Z)(ks,2),to=co[0],Uo=co[1];bt.useEffect(function(){Uo((0,Ct.Z)())},[]);var Ki=bt.useRef(null),Ts=bt.useRef(null),zs=bt.useRef(null),Aa=bt.useRef(null),qs=bt.useRef(null),Qo=Nt(),Zs=(0,ee.Z)(Qo,3),vl=Zs[0],yl=Zs[1],Dl=Zs[2];bt.useImperativeHandle(Ee,function(){var Es,ma;return{focus:(Es=Aa.current)===null||Es===void 0?void 0:Es.focus,blur:(ma=Aa.current)===null||ma===void 0?void 0:ma.blur,scrollTo:function(Ya){var rl;return(rl=qs.current)===null||rl===void 0?void 0:rl.scrollTo(Ya)}}});var Bs=bt.useMemo(function(){var Es;if(or!=="combobox")return Kr;var ma=(Es=yi[0])===null||Es===void 0?void 0:Es.value;return typeof ma=="string"||typeof ma=="number"?String(ma):""},[Kr,or,yi]),ai=or==="combobox"&&typeof Yi=="function"&&Yi()||null,Ga=typeof pr=="function"&&pr(),mh=(0,tt.x1)(Ts,Ga==null||(Cn=Ga.props)===null||Cn===void 0?void 0:Cn.ref),ju=bt.useState(!1),su=(0,ee.Z)(ju,2),Ao=su[0],Ks=su[1];(0,Xt.Z)(function(){Ks(!0)},[]);var Ls=(0,jt.Z)(!1,{defaultValue:Ss,value:yo}),bs=(0,ee.Z)(Ls,2),Hs=bs[0],Ml=bs[1],cs=Ao?Hs:!1,Qs=!cr&&dr;(xr||Qs&&cs&&or==="combobox")&&(cs=!1);var xs=Qs?!1:cs,Gr=bt.useCallback(function(Es){var ma=Es!==void 0?Es:!cs;xr||(Ml(ma),cs!==ma&&(_o==null||_o(ma)))},[xr,cs,Ml,_o]),al=bt.useMemo(function(){return(Po||[]).some(function(Es){return[`
`,`\r
`].includes(Es)})},[Po]),Ds=function(ma,Uu,Ya){var rl=!0,Ha=ma;Tr==null||Tr(null);var da=Ya?null:ae(ma,Po);return or!=="combobox"&&da&&(Ha="",wi==null||wi(da),Gr(!1),rl=!1),Oo&&Bs!==Ha&&Oo(Ha,{source:Uu?"typing":"effect"}),rl},Su=function(ma){!ma||!ma.trim()||Oo(ma,{source:"submit"})};bt.useEffect(function(){!cs&&!is&&or!=="combobox"&&Ds("",!1,!1)},[cs]),bt.useEffect(function(){Hs&&xr&&Ml(!1),xr&&yl(!1)},[xr]);var Ku=Ut(),$l=(0,ee.Z)(Ku,2),fr=$l[0],Wa=$l[1],nl=function(ma){var Uu=fr(),Ya=ma.which;if(Ya===et.Z.ENTER&&(or!=="combobox"&&ma.preventDefault(),cs||Gr(!0)),Wa(!!Bs),Ya===et.Z.BACKSPACE&&!Uu&&is&&!Bs&&yi.length){for(var rl=(0,ce.Z)(yi),Ha=null,da=rl.length-1;da>=0;da-=1){var Ja=rl[da];if(!Ja.disabled){rl.splice(da,1),Ha=Ja;break}}Ha&&Br(rl,{type:"remove",values:[Ha]})}for(var jl=arguments.length,fc=new Array(jl>1?jl-1:0),dh=1;dh<jl;dh++)fc[dh-1]=arguments[dh];if(cs&&qs.current){var ll;(ll=qs.current).onKeyDown.apply(ll,[ma].concat(fc))}Ll==null||Ll.apply(void 0,[ma].concat(fc))},bl=function(ma){for(var Uu=arguments.length,Ya=new Array(Uu>1?Uu-1:0),rl=1;rl<Uu;rl++)Ya[rl-1]=arguments[rl];if(cs&&qs.current){var Ha;(Ha=qs.current).onKeyUp.apply(Ha,[ma].concat(Ya))}sl==null||sl.apply(void 0,[ma].concat(Ya))},au=function(ma){var Uu=yi.filter(function(Ya){return Ya!==ma});Br(Uu,{type:"remove",values:[ma]})},Xa=bt.useRef(!1),Eo=function(){yl(!0),xr||(ts&&!Xa.current&&ts.apply(void 0,arguments),ke.includes("focus")&&Gr(!0)),Xa.current=!0},Oa=function(){yl(!1,function(){Xa.current=!1,Gr(!1)}),!xr&&(Bs&&(or==="tags"?Oo(Bs,{source:"submit"}):or==="multiple"&&Oo("",{source:"blur"})),Sa&&Sa.apply(void 0,arguments))},$a=[];bt.useEffect(function(){return function(){$a.forEach(function(Es){return clearTimeout(Es)}),$a.splice(0,$a.length)}},[]);var lu=function(ma){var Uu,Ya=ma.target,rl=(Uu=zs.current)===null||Uu===void 0?void 0:Uu.getPopupElement();if(rl&&rl.contains(Ya)){var Ha=setTimeout(function(){var fc=$a.indexOf(Ha);if(fc!==-1&&$a.splice(fc,1),Dl(),!to&&!rl.contains(document.activeElement)){var dh;(dh=Aa.current)===null||dh===void 0||dh.focus()}});$a.push(Ha)}for(var da=arguments.length,Ja=new Array(da>1?da-1:0),jl=1;jl<da;jl++)Ja[jl-1]=arguments[jl];ml==null||ml.apply(void 0,[ma].concat(Ja))},Yl=bt.useState({}),Pu=(0,ee.Z)(Yl,2),bu=Pu[1];function fu(){bu({})}var nu;Ga&&(nu=function(ma){Gr(ma)}),_t(function(){var Es;return[Ki.current,(Es=zs.current)===null||Es===void 0?void 0:Es.getPopupElement()]},xs,Gr,!!Ga);var zo=bt.useMemo(function(){return(0,Ie.Z)((0,Ie.Z)({},wn),{},{notFoundContent:cr,open:cs,triggerOpen:xs,id:Ei,showSearch:$o,multiple:is,toggleOpen:Gr})},[wn,cr,xs,cs,Ei,$o,is,Gr]),Hd=!!kr||so,Eu;Hd&&(Eu=bt.createElement(rt,{className:Gt()("".concat(ei,"-arrow"),(0,re.Z)({},"".concat(ei,"-arrow-loading"),so)),customizeIcon:kr,customizeIconProps:{loading:so,searchValue:Bs,open:cs,focused:vl,showSearch:$o}}));var yd=function(){var ma;wr==null||wr(),(ma=Aa.current)===null||ma===void 0||ma.focus(),Br([],{type:"clear",values:yi}),Ds("",!1,!1)},kh=ht(ei,yd,yi,Rr,Ci,xr,Bs,or),nc=kh.allowClear,il=kh.clearIcon,Ch=bt.createElement(Lo,{ref:qs}),Qd=Gt()(ei,gn,(Gn={},(0,re.Z)(Gn,"".concat(ei,"-focused"),vl),(0,re.Z)(Gn,"".concat(ei,"-multiple"),is),(0,re.Z)(Gn,"".concat(ei,"-single"),!is),(0,re.Z)(Gn,"".concat(ei,"-allow-clear"),Rr),(0,re.Z)(Gn,"".concat(ei,"-show-arrow"),Hd),(0,re.Z)(Gn,"".concat(ei,"-disabled"),xr),(0,re.Z)(Gn,"".concat(ei,"-loading"),so),(0,re.Z)(Gn,"".concat(ei,"-open"),cs),(0,re.Z)(Gn,"".concat(ei,"-customize-input"),ai),(0,re.Z)(Gn,"".concat(ei,"-show-search"),$o),Gn)),Oc=bt.createElement(vt,{ref:zs,disabled:xr,prefixCls:ei,visible:xs,popupElement:Ch,animation:Bi,transitionName:Zo,dropdownStyle:ra,dropdownClassName:fs,direction:$i,dropdownMatchSelectWidth:ba,dropdownRender:Vs,dropdownAlign:Mo,placement:Ho,builtinPlacements:ps,getPopupContainer:ss,empty:dr,getTriggerDOMNode:function(){return Ts.current},onPopupVisibleChange:nu,onPopupMouseEnter:fu},Ga?bt.cloneElement(Ga,{ref:mh}):bt.createElement(Pi,(0,Lt.Z)({},wn,{domRef:Ts,prefixCls:ei,inputElement:ai,ref:Aa,id:Ei,showSearch:$o,autoClearSearchValue:qo,mode:or,activeDescendantId:ao,tagRender:Ni,values:yi,open:cs,onToggleOpen:Gr,activeValue:Dn,searchValue:Bs,onSearch:Ds,onSearchSubmit:Su,onRemove:au,tokenWithEnter:al}))),Dc;return Ga?Dc=Oc:Dc=bt.createElement("div",(0,Lt.Z)({className:Qd},wo,{ref:Ki,onMouseDown:lu,onKeyDown:nl,onKeyUp:bl,onFocus:Eo,onBlur:Oa}),vl&&!cs&&bt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(yi.map(function(Es){var ma=Es.label,Uu=Es.value;return["number","string"].includes((0,Mt.Z)(ma))?ma:Uu}).join(", "))),Oc,Eu,nc&&il),bt.createElement(dt.Provider,{value:zo},Dc)}),on=Me,Wn=function(wn,Ee){var Cn=bt.useRef({values:new Map,options:new Map}),Gn=bt.useMemo(function(){var ei=Cn.current,gn=ei.values,di=ei.options,Ni=wn.map(function(yi){if(yi.label===void 0){var Br;return(0,Ie.Z)((0,Ie.Z)({},yi),{},{label:(Br=gn.get(yi.value))===null||Br===void 0?void 0:Br.label})}return yi}),$i=new Map,kn=new Map;return Ni.forEach(function(yi){$i.set(yi.value,yi),kn.set(yi.value,Ee.get(yi.value)||di.get(yi.value))}),Cn.current.values=$i,Cn.current.options=kn,Ni},[wn,Ee]),Ei=bt.useCallback(function(ei){return Ee.get(ei)||Cn.current.options.get(ei)},[Ee]);return[Gn,Ei]};function sn(wn,Ee){return He(wn).join("").toUpperCase().includes(Ee)}var ln=function(wn,Ee,Cn,Gn,Ei){return bt.useMemo(function(){if(!Cn||Gn===!1)return wn;var ei=Ee.options,gn=Ee.label,di=Ee.value,Ni=[],$i=typeof Gn=="function",kn=Cn.toUpperCase(),yi=$i?Gn:function(dr,zr){return Ei?sn(zr[Ei],kn):zr[ei]?sn(zr[gn!=="children"?gn:"label"],kn):sn(zr[di],kn)},Br=$i?function(dr){return xe(dr)}:function(dr){return dr};return wn.forEach(function(dr){if(dr[ei]){var zr=yi(Cn,Br(dr));if(zr)Ni.push(dr);else{var cr=dr[ei].filter(function(wr){return yi(Cn,Br(wr))});cr.length&&Ni.push((0,Ie.Z)((0,Ie.Z)({},dr),{},(0,re.Z)({},ei,cr)))}return}yi(Cn,Br(dr))&&Ni.push(dr)}),Ni},[wn,Gn,Ei,Cn,Ee])},Bn=Ft(17115),li=Ft(11592),On=["children","value"],Di=["children"];function nr(wn){var Ee=wn,Cn=Ee.key,Gn=Ee.props,Ei=Gn.children,ei=Gn.value,gn=(0,Vt.Z)(Gn,On);return(0,Ie.Z)({key:Cn,value:ei!==void 0?ei:Cn,children:Ei},gn)}function Xi(wn){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,li.Z)(wn).map(function(Cn,Gn){if(!bt.isValidElement(Cn)||!Cn.type)return null;var Ei=Cn,ei=Ei.type.isSelectOptGroup,gn=Ei.key,di=Ei.props,Ni=di.children,$i=(0,Vt.Z)(di,Di);return Ee||!ei?nr(Cn):(0,Ie.Z)((0,Ie.Z)({key:"__RC_SELECT_GRP__".concat(gn===null?Gn:gn,"__"),label:gn},$i),{},{options:Xi(Ni)})}).filter(function(Cn){return Cn})}function Mr(wn,Ee,Cn,Gn,Ei){return bt.useMemo(function(){var ei=wn,gn=!wn;gn&&(ei=Xi(Ee));var di=new Map,Ni=new Map,$i=function(Br,dr,zr){zr&&typeof zr=="string"&&Br.set(dr[zr],dr)};function kn(yi){for(var Br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dr=0;dr<yi.length;dr+=1){var zr=yi[dr];!zr[Cn.options]||Br?(di.set(zr[Cn.value],zr),$i(Ni,zr,Cn.label),$i(Ni,zr,Gn),$i(Ni,zr,Ei)):kn(zr[Cn.options],!0)}}return kn(ei),{options:ei,valueOptions:di,labelOptions:Ni}},[wn,Ee,Cn,Gn,Ei])}function br(wn){var Ee=bt.useRef();Ee.current=wn;var Cn=bt.useCallback(function(){return Ee.current.apply(Ee,arguments)},[]);return Cn}var eo=function(){return null};eo.isSelectOptGroup=!0;var Yr=eo,qr=function(){return null};qr.isSelectOption=!0;var Ir=qr,Xr=Ft(80547),oo=Ft(2738),jo=Ft(4409),ds=bt.createContext(null),no=ds;function Is(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var xo=["disabled","title","children","style","className"];function $t(wn){return typeof wn=="string"||typeof wn=="number"}var ni=function(Ee,Cn){var Gn=xt(),Ei=Gn.prefixCls,ei=Gn.id,gn=Gn.open,di=Gn.multiple,Ni=Gn.mode,$i=Gn.searchValue,kn=Gn.toggleOpen,yi=Gn.notFoundContent,Br=Gn.onPopupScroll,dr=bt.useContext(no),zr=dr.flattenOptions,cr=dr.onActiveValue,wr=dr.defaultActiveFirstOption,or=dr.onSelect,xr=dr.menuItemSelectedIcon,so=dr.rawValues,Yi=dr.fieldNames,pr=dr.virtual,yo=dr.direction,Ss=dr.listHeight,_o=dr.listItemHeight,Dn="".concat(Ei,"-item"),Tr=(0,Xr.Z)(function(){return zr},[gn,zr],function(Mo,Ho){return Ho[0]&&Mo[1]!==Ho[1]}),ao=bt.useRef(null),Kr=function(Ho){Ho.preventDefault()},qo=function(Ho){ao.current&&ao.current.scrollTo(typeof Ho=="number"?{index:Ho}:Ho)},Oo=function(Ho){for(var ps=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ss=Tr.length,gr=0;gr<ss;gr+=1){var ke=(Ho+gr*ps+ss)%ss,ts=Tr[ke],Sa=ts.group,sl=ts.data;if(!Sa&&!sl.disabled)return ke}return-1},wi=bt.useState(function(){return Oo(0)}),Po=(0,ee.Z)(wi,2),Rr=Po[0],kr=Po[1],Ci=function(Ho){var ps=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;kr(Ho);var ss={source:ps?"keyboard":"mouse"},gr=Tr[Ho];if(!gr){cr(null,-1,ss);return}cr(gr.value,Ho,ss)};(0,bt.useEffect)(function(){Ci(wr!==!1?Oo(0):-1)},[Tr.length,$i]);var Lo=bt.useCallback(function(Mo){return so.has(Mo)&&Ni!=="combobox"},[Ni,(0,ce.Z)(so).toString(),so.size]);(0,bt.useEffect)(function(){var Mo=setTimeout(function(){if(!di&&gn&&so.size===1){var ps=Array.from(so)[0],ss=Tr.findIndex(function(gr){var ke=gr.data;return ke.value===ps});ss!==-1&&(Ci(ss),qo(ss))}});if(gn){var Ho;(Ho=ao.current)===null||Ho===void 0||Ho.scrollTo(void 0)}return function(){return clearTimeout(Mo)}},[gn,$i,zr.length]);var Bi=function(Ho){Ho!==void 0&&or(Ho,{selected:!so.has(Ho)}),di||kn(!1)};if(bt.useImperativeHandle(Cn,function(){return{onKeyDown:function(Ho){var ps=Ho.which,ss=Ho.ctrlKey;switch(ps){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var gr=0;if(ps===et.Z.UP?gr=-1:ps===et.Z.DOWN?gr=1:Is()&&ss&&(ps===et.Z.N?gr=1:ps===et.Z.P&&(gr=-1)),gr!==0){var ke=Oo(Rr+gr,gr);qo(ke),Ci(ke,!0)}break}case et.Z.ENTER:{var ts=Tr[Rr];ts&&!ts.data.disabled?Bi(ts.value):Bi(void 0),gn&&Ho.preventDefault();break}case et.Z.ESC:kn(!1),gn&&Ho.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ho){qo(Ho)}}}),Tr.length===0)return bt.createElement("div",{role:"listbox",id:"".concat(ei,"_list"),className:"".concat(Dn,"-empty"),onMouseDown:Kr},yi);var Zo=Object.keys(Yi).map(function(Mo){return Yi[Mo]}),ra=function(Ho){return Ho.label};function fs(Mo,Ho){var ps=Mo.group;return{role:ps?"presentation":"option",id:"".concat(ei,"_list_").concat(Ho)}}var ba=function(Ho){var ps=Tr[Ho];if(!ps)return null;var ss=ps.data||{},gr=ss.value,ke=ps.group,ts=(0,oe.Z)(ss,!0),Sa=ra(ps);return ps?bt.createElement("div",(0,Lt.Z)({"aria-label":typeof Sa=="string"&&!ke?Sa:null},ts,{key:Ho},fs(ps,Ho),{"aria-selected":Lo(gr)}),gr):null},Vs={role:"listbox",id:"".concat(ei,"_list")};return bt.createElement(bt.Fragment,null,pr&&bt.createElement("div",(0,Lt.Z)({},Vs,{style:{height:0,width:0,overflow:"hidden"}}),ba(Rr-1),ba(Rr),ba(Rr+1)),bt.createElement(jo.Z,{itemKey:"key",ref:ao,data:Tr,height:Ss,itemHeight:_o,fullHeight:!1,onMouseDown:Kr,onScroll:Br,virtual:pr,direction:yo,innerProps:pr?null:Vs},function(Mo,Ho){var ps,ss=Mo.group,gr=Mo.groupOption,ke=Mo.data,ts=Mo.label,Sa=Mo.value,sl=ke.key;if(ss){var Ll,ml=(Ll=ke.title)!==null&&Ll!==void 0?Ll:$t(ts)?ts.toString():void 0;return bt.createElement("div",{className:Gt()(Dn,"".concat(Dn,"-group")),title:ml},ts!==void 0?ts:sl)}var Ol=ke.disabled,is=ke.title,$o=ke.children,wo=ke.style,ks=ke.className,co=(0,Vt.Z)(ke,xo),to=(0,oo.Z)(co,Zo),Uo=Lo(Sa),Ki="".concat(Dn,"-option"),Ts=Gt()(Dn,Ki,ks,(ps={},(0,re.Z)(ps,"".concat(Ki,"-grouped"),gr),(0,re.Z)(ps,"".concat(Ki,"-active"),Rr===Ho&&!Ol),(0,re.Z)(ps,"".concat(Ki,"-disabled"),Ol),(0,re.Z)(ps,"".concat(Ki,"-selected"),Uo),ps)),zs=ra(Mo),Aa=!xr||typeof xr=="function"||Uo,qs=typeof zs=="number"?zs:zs||Sa,Qo=$t(qs)?qs.toString():void 0;return is!==void 0&&(Qo=is),bt.createElement("div",(0,Lt.Z)({},(0,oe.Z)(to),pr?{}:fs(Mo,Ho),{"aria-selected":Uo,className:Ts,title:Qo,onMouseMove:function(){Rr===Ho||Ol||Ci(Ho)},onClick:function(){Ol||Bi(Sa)},style:wo}),bt.createElement("div",{className:"".concat(Ki,"-content")},qs),bt.isValidElement(xr)||Uo,Aa&&bt.createElement(rt,{className:"".concat(Dn,"-option-state"),customizeIcon:xr,customizeIconProps:{isSelected:Uo}},Uo?"\u2713":null))}))},gs=bt.forwardRef(ni);gs.displayName="OptionList";var ua=gs;function Gs(wn){var Ee=wn.mode,Cn=wn.options,Gn=wn.children,Ei=wn.backfill,ei=wn.allowClear,gn=wn.placeholder,di=wn.getInputElement,Ni=wn.showSearch,$i=wn.onSearch,kn=wn.defaultOpen,yi=wn.autoFocus,Br=wn.labelInValue,dr=wn.value,zr=wn.inputValue,cr=wn.optionLabelProp,wr=isMultiple(Ee),or=Ni!==void 0?Ni:wr||Ee==="combobox",xr=Cn||convertChildrenToData(Gn);if(warning(Ee!=="tags"||xr.every(function(yo){return!yo.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ee==="tags"||Ee==="combobox"){var so=xr.some(function(yo){return yo.options?yo.options.some(function(Ss){return typeof("value"in Ss?Ss.value:Ss.key)=="number"}):typeof("value"in yo?yo.value:yo.key)=="number"});warning(!so,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ee!=="combobox"||!cr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ee==="combobox"||!Ei,"`backfill` only works with `combobox` mode."),warning(Ee==="combobox"||!di,"`getInputElement` only work with `combobox` mode."),noteOnce(Ee!=="combobox"||!di||!ei||!gn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),$i&&!or&&Ee!=="combobox"&&Ee!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!kn||yi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),dr!=null){var Yi=toArray(dr);warning(!Br||Yi.every(function(yo){return _typeof(yo)==="object"&&("key"in yo||"value"in yo)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!wr||Array.isArray(dr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Gn){var pr=null;toNodeArray(Gn).some(function(yo){if(!React.isValidElement(yo)||!yo.type)return!1;var Ss=yo,_o=Ss.type;if(_o.isSelectOption)return!1;if(_o.isSelectOptGroup){var Dn=toNodeArray(yo.props.children).every(function(Tr){return!React.isValidElement(Tr)||!yo.type||Tr.type.isSelectOption?!0:(pr=Tr.type,!1)});return!Dn}return pr=_o,!0}),pr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(pr.displayName||pr.name||pr,"`.")),warning(zr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ha(wn,Ee){if(wn){var Cn=function Gn(Ei){for(var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gn=0;gn<Ei.length;gn++){var di=Ei[gn];if(di[Ee==null?void 0:Ee.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ei&&Array.isArray(di[Ee==null?void 0:Ee.options])&&Gn(di[Ee==null?void 0:Ee.options],!0))break}};Cn(wn)}}var Ws=null,Hr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Xn=["inputValue"];function Hn(wn){return!wn||(0,Mt.Z)(wn)!=="object"}var Mn=bt.forwardRef(function(wn,Ee){var Cn=wn.id,Gn=wn.mode,Ei=wn.prefixCls,ei=Ei===void 0?"rc-select":Ei,gn=wn.backfill,di=wn.fieldNames,Ni=wn.inputValue,$i=wn.searchValue,kn=wn.onSearch,yi=wn.autoClearSearchValue,Br=yi===void 0?!0:yi,dr=wn.onSelect,zr=wn.onDeselect,cr=wn.dropdownMatchSelectWidth,wr=cr===void 0?!0:cr,or=wn.filterOption,xr=wn.filterSort,so=wn.optionFilterProp,Yi=wn.optionLabelProp,pr=wn.options,yo=wn.children,Ss=wn.defaultActiveFirstOption,_o=wn.menuItemSelectedIcon,Dn=wn.virtual,Tr=wn.direction,ao=wn.listHeight,Kr=ao===void 0?200:ao,qo=wn.listItemHeight,Oo=qo===void 0?20:qo,wi=wn.value,Po=wn.defaultValue,Rr=wn.labelInValue,kr=wn.onChange,Ci=(0,Vt.Z)(wn,Hr),Lo=(0,Bn.ZP)(Cn),Bi=Te(Gn),Zo=!!(!pr&&yo),ra=bt.useMemo(function(){return or===void 0&&Gn==="combobox"?!1:or},[or,Gn]),fs=bt.useMemo(function(){return At(di,Zo)},[JSON.stringify(di),Zo]),ba=(0,jt.Z)("",{value:$i!==void 0?$i:Ni,postState:function(Qs){return Qs||""}}),Vs=(0,ee.Z)(ba,2),Mo=Vs[0],Ho=Vs[1],ps=Mr(pr,yo,fs,so,Yi),ss=ps.valueOptions,gr=ps.labelOptions,ke=ps.options,ts=bt.useCallback(function(cs){var Qs=He(cs);return Qs.map(function(xs){var Gr,al,Ds,Su,Ku;if(Hn(xs))Gr=xs;else{var $l;Ds=xs.key,al=xs.label,Gr=($l=xs.value)!==null&&$l!==void 0?$l:Ds}var fr=ss.get(Gr);if(fr){var Wa;if(al===void 0&&(al=fr==null?void 0:fr[Yi||fs.label]),Ds===void 0&&(Ds=(Wa=fr==null?void 0:fr.key)!==null&&Wa!==void 0?Wa:Gr),Su=fr==null?void 0:fr.disabled,Ku=fr==null?void 0:fr.title,0)var nl}return{label:al,value:Gr,key:Ds,disabled:Su,title:Ku}})},[fs,Yi,ss]),Sa=(0,jt.Z)(Po,{value:wi}),sl=(0,ee.Z)(Sa,2),Ll=sl[0],ml=sl[1],Ol=bt.useMemo(function(){var cs,Qs=ts(Ll);return Gn==="combobox"&&Ne((cs=Qs[0])===null||cs===void 0?void 0:cs.value)?[]:Qs},[Ll,ts,Gn]),is=Wn(Ol,ss),$o=(0,ee.Z)(is,2),wo=$o[0],ks=$o[1],co=bt.useMemo(function(){if(!Gn&&wo.length===1){var cs=wo[0];if(cs.value===null&&(cs.label===null||cs.label===void 0))return[]}return wo.map(function(Qs){var xs;return(0,Ie.Z)((0,Ie.Z)({},Qs),{},{label:(xs=Qs.label)!==null&&xs!==void 0?xs:Qs.value})})},[Gn,wo]),to=bt.useMemo(function(){return new Set(wo.map(function(cs){return cs.value}))},[wo]);bt.useEffect(function(){if(Gn==="combobox"){var cs,Qs=(cs=wo[0])===null||cs===void 0?void 0:cs.value;Ho(_e(Qs)?String(Qs):"")}},[wo]);var Uo=br(function(cs,Qs){var xs,Gr=Qs!=null?Qs:cs;return xs={},(0,re.Z)(xs,fs.value,cs),(0,re.Z)(xs,fs.label,Gr),xs}),Ki=bt.useMemo(function(){if(Gn!=="tags")return ke;var cs=(0,ce.Z)(ke),Qs=function(Gr){return ss.has(Gr)};return(0,ce.Z)(wo).sort(function(xs,Gr){return xs.value<Gr.value?-1:1}).forEach(function(xs){var Gr=xs.value;Qs(Gr)||cs.push(Uo(Gr,xs.label))}),cs},[Uo,ke,ss,wo,Gn]),Ts=ln(Ki,fs,Mo,ra,so),zs=bt.useMemo(function(){return Gn!=="tags"||!Mo||Ts.some(function(cs){return cs[so||"value"]===Mo})||Ts.some(function(cs){return cs[fs.value]===Mo})?Ts:[Uo(Mo)].concat((0,ce.Z)(Ts))},[Uo,so,Gn,Ts,Mo,fs]),Aa=bt.useMemo(function(){return xr?(0,ce.Z)(zs).sort(function(cs,Qs){return xr(cs,Qs)}):zs},[zs,xr]),qs=bt.useMemo(function(){return le(Aa,{fieldNames:fs,childrenAsData:Zo})},[Aa,fs,Zo]),Qo=function(Qs){var xs=ts(Qs);if(ml(xs),kr&&(xs.length!==wo.length||xs.some(function(Ds,Su){var Ku;return((Ku=wo[Su])===null||Ku===void 0?void 0:Ku.value)!==(Ds==null?void 0:Ds.value)}))){var Gr=Rr?xs:xs.map(function(Ds){return Ds.value}),al=xs.map(function(Ds){return xe(ks(Ds.value))});kr(Bi?Gr:Gr[0],Bi?al:al[0])}},Zs=bt.useState(null),vl=(0,ee.Z)(Zs,2),yl=vl[0],Dl=vl[1],Bs=bt.useState(0),ai=(0,ee.Z)(Bs,2),Ga=ai[0],mh=ai[1],ju=Ss!==void 0?Ss:Gn!=="combobox",su=bt.useCallback(function(cs,Qs){var xs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gr=xs.source,al=Gr===void 0?"keyboard":Gr;mh(Qs),gn&&Gn==="combobox"&&cs!==null&&al==="keyboard"&&Dl(String(cs))},[gn,Gn]),Ao=function(Qs,xs,Gr){var al=function(){var Xa,Eo=ks(Qs);return[Rr?{label:Eo==null?void 0:Eo[fs.label],value:Qs,key:(Xa=Eo==null?void 0:Eo.key)!==null&&Xa!==void 0?Xa:Qs}:Qs,xe(Eo)]};if(xs&&dr){var Ds=al(),Su=(0,ee.Z)(Ds,2),Ku=Su[0],$l=Su[1];dr(Ku,$l)}else if(!xs&&zr&&Gr!=="clear"){var fr=al(),Wa=(0,ee.Z)(fr,2),nl=Wa[0],bl=Wa[1];zr(nl,bl)}},Ks=br(function(cs,Qs){var xs,Gr=Bi?Qs.selected:!0;Gr?xs=Bi?[].concat((0,ce.Z)(wo),[cs]):[cs]:xs=wo.filter(function(al){return al.value!==cs}),Qo(xs),Ao(cs,Gr),Gn==="combobox"?Dl(""):(!Te||Br)&&(Ho(""),Dl(""))}),Ls=function(Qs,xs){Qo(Qs);var Gr=xs.type,al=xs.values;(Gr==="remove"||Gr==="clear")&&al.forEach(function(Ds){Ao(Ds.value,!1,Gr)})},bs=function(Qs,xs){if(Ho(Qs),Dl(null),xs.source==="submit"){var Gr=(Qs||"").trim();if(Gr){var al=Array.from(new Set([].concat((0,ce.Z)(to),[Gr])));Qo(al),Ao(Gr,!0),Ho("")}return}xs.source!=="blur"&&(Gn==="combobox"&&Qo(Qs),kn==null||kn(Qs))},Hs=function(Qs){var xs=Qs;Gn!=="tags"&&(xs=Qs.map(function(al){var Ds=gr.get(al);return Ds==null?void 0:Ds.value}).filter(function(al){return al!==void 0}));var Gr=Array.from(new Set([].concat((0,ce.Z)(to),(0,ce.Z)(xs))));Qo(Gr),Gr.forEach(function(al){Ao(al,!0)})},Ml=bt.useMemo(function(){var cs=Dn!==!1&&wr!==!1;return(0,Ie.Z)((0,Ie.Z)({},ps),{},{flattenOptions:qs,onActiveValue:su,defaultActiveFirstOption:ju,onSelect:Ks,menuItemSelectedIcon:_o,rawValues:to,fieldNames:fs,virtual:cs,direction:Tr,listHeight:Kr,listItemHeight:Oo,childrenAsData:Zo})},[ps,qs,su,ju,Ks,_o,to,fs,Dn,wr,Kr,Oo,Zo]);return bt.createElement(no.Provider,{value:Ml},bt.createElement(on,(0,Lt.Z)({},Ci,{id:Lo,prefixCls:ei,ref:Ee,omitDomProps:Xn,mode:Gn,displayValues:co,onDisplayValuesChange:Ls,direction:Tr,searchValue:Mo,onSearch:bs,autoClearSearchValue:Br,onSearchSplit:Hs,dropdownMatchSelectWidth:wr,OptionList:ua,emptyOptions:!qs.length,activeValue:yl,activeDescendantId:"".concat(Lo,"_list_").concat(Ga)})))}),qe=Mn;qe.Option=Ir,qe.OptGroup=Yr;var pi=qe,xi=pi},9296:function(hi,Sn,Ft){"use strict";Ft.r(Sn),Ft.d(Sn,{ResizableTextArea:function(){return Le},default:function(){return Ne}});var Lt=Ft(92413),ce=Ft(33708),re=Ft(400),Ie=Ft(39559),ee=Ft(33606),Vt=Ft(37061),Mt=Ft(26407),jt=Ft(92310),qt=Ft.n(jt),bt=Ft(93681),se=Ft(5643),Gt=Ft(18929),Xt=Ft(59301),Ct=Ft(29301),et=Ft(34280),tt=Ft(16089),lt=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,rt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ht={},dt;function xt(Ge){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=Ge.getAttribute("id")||Ge.getAttribute("data-reactid")||Ge.getAttribute("name");if(Ue&&ht[ve])return ht[ve];var ne=window.getComputedStyle(Ge),Ce=ne.getPropertyValue("box-sizing")||ne.getPropertyValue("-moz-box-sizing")||ne.getPropertyValue("-webkit-box-sizing"),bn=parseFloat(ne.getPropertyValue("padding-bottom"))+parseFloat(ne.getPropertyValue("padding-top")),Ln=parseFloat(ne.getPropertyValue("border-bottom-width"))+parseFloat(ne.getPropertyValue("border-top-width")),Ve=rt.map(function(Zn){return"".concat(Zn,":").concat(ne.getPropertyValue(Zn))}).join(";"),Nn={sizingStyle:Ve,paddingSize:bn,borderSize:Ln,boxSizing:Ce};return Ue&&ve&&(ht[ve]=Nn),Nn}function Nt(Ge){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),Ge.getAttribute("wrap")?dt.setAttribute("wrap",Ge.getAttribute("wrap")):dt.removeAttribute("wrap");var Ce=xt(Ge,Ue),bn=Ce.paddingSize,Ln=Ce.borderSize,Ve=Ce.boxSizing,Nn=Ce.sizingStyle;dt.setAttribute("style","".concat(Nn,";").concat(lt)),dt.value=Ge.value||Ge.placeholder||"";var Zn=void 0,gi=void 0,Kn,Pi=dt.scrollHeight;if(Ve==="border-box"?Pi+=Ln:Ve==="content-box"&&(Pi-=bn),ve!==null||ne!==null){dt.value=" ";var tn=dt.scrollHeight-bn;ve!==null&&(Zn=tn*ve,Ve==="border-box"&&(Zn=Zn+bn+Ln),Pi=Math.max(Zn,Pi)),ne!==null&&(gi=tn*ne,Ve==="border-box"&&(gi=gi+bn+Ln),Kn=Pi>gi?"":"hidden",Pi=Math.min(gi,Pi))}var Li={height:Pi,overflowY:Kn,resize:"none"};return Zn&&(Li.minHeight=Zn),gi&&(Li.maxHeight=gi),Li}var Ut=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_t=0,oe=1,he=2,fe=Xt.forwardRef(function(Ge,Ue){var ve=Ge,ne=ve.prefixCls,Ce=ve.onPressEnter,bn=ve.defaultValue,Ln=ve.value,Ve=ve.autoSize,Nn=ve.onResize,Zn=ve.className,gi=ve.style,Kn=ve.disabled,Pi=ve.onChange,tn=ve.onInternalAutoSize,Li=(0,Vt.Z)(ve,Ut),ji=(0,Gt.Z)(bn,{value:Ln,postState:function(Yr){return Yr!=null?Yr:""}}),Ot=(0,ee.Z)(ji,2),Tt=Ot[0],vt=Ot[1],gt=function(Yr){vt(Yr.target.value),Pi==null||Pi(Yr)},ft=Xt.useRef();Xt.useImperativeHandle(Ue,function(){return{textArea:ft.current}});var At=Xt.useMemo(function(){return Ve&&(0,Ie.Z)(Ve)==="object"?[Ve.minRows,Ve.maxRows]:[]},[Ve]),le=(0,ee.Z)(At,2),xe=le[0],ae=le[1],ye=!!Ve,Oe=function(){try{if(document.activeElement===ft.current){var Yr=ft.current,qr=Yr.selectionStart,Ir=Yr.selectionEnd,Xr=Yr.scrollTop;ft.current.setSelectionRange(qr,Ir),ft.current.scrollTop=Xr}}catch(oo){}},Te=Xt.useState(he),Me=(0,ee.Z)(Te,2),on=Me[0],Wn=Me[1],sn=Xt.useState(),ln=(0,ee.Z)(sn,2),Bn=ln[0],li=ln[1],On=function(){Wn(_t)};(0,et.Z)(function(){ye&&On()},[Ln,xe,ae,ye]),(0,et.Z)(function(){if(on===_t)Wn(oe);else if(on===oe){var eo=Nt(ft.current,!1,xe,ae);Wn(he),li(eo)}else Oe()},[on]);var Di=Xt.useRef(),nr=function(){tt.Z.cancel(Di.current)},Xi=function(Yr){on===he&&(Nn==null||Nn(Yr),Ve&&(nr(),Di.current=(0,tt.Z)(function(){On()})))};Xt.useEffect(function(){return nr},[]);var Mr=ye?Bn:null,br=(0,ce.Z)((0,ce.Z)({},gi),Mr);return(on===_t||on===oe)&&(br.overflowY="hidden",br.overflowX="hidden"),Xt.createElement(Ct.Z,{onResize:Xi,disabled:!(Ve||Nn)},Xt.createElement("textarea",(0,Lt.Z)({},Li,{ref:ft,style:br,className:qt()(ne,Zn,(0,re.Z)({},"".concat(ne,"-disabled"),Kn)),disabled:Kn,value:Tt,onChange:gt})))}),Le=fe,te=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function He(Ge,Ue){return(0,Mt.Z)(Ge||"").slice(0,Ue).join("")}function Wt(Ge,Ue,ve,ne){var Ce=ve;return Ge?Ce=He(ve,ne):(0,Mt.Z)(Ue||"").length<ve.length&&(0,Mt.Z)(ve||"").length>ne&&(Ce=Ue),Ce}var Ke=Xt.forwardRef(function(Ge,Ue){var ve,ne=Ge.defaultValue,Ce=Ge.value,bn=Ge.onFocus,Ln=Ge.onBlur,Ve=Ge.onChange,Nn=Ge.allowClear,Zn=Ge.maxLength,gi=Ge.onCompositionStart,Kn=Ge.onCompositionEnd,Pi=Ge.suffix,tn=Ge.prefixCls,Li=tn===void 0?"rc-textarea":tn,ji=Ge.classes,Ot=Ge.showCount,Tt=Ge.className,vt=Ge.style,gt=Ge.disabled,ft=Ge.hidden,At=Ge.classNames,le=Ge.styles,xe=Ge.onResize,ae=(0,Vt.Z)(Ge,te),ye=(0,Gt.Z)(ne,{value:Ce,defaultValue:ne}),Oe=(0,ee.Z)(ye,2),Te=Oe[0],Me=Oe[1],on=(0,Xt.useRef)(null),Wn=Xt.useState(!1),sn=(0,ee.Z)(Wn,2),ln=sn[0],Bn=sn[1],li=Xt.useState(!1),On=(0,ee.Z)(li,2),Di=On[0],nr=On[1],Xi=Xt.useRef(),Mr=Xt.useRef(0),br=Xt.useState(null),eo=(0,ee.Z)(br,2),Yr=eo[0],qr=eo[1],Ir=function(){var Hn;(Hn=on.current)===null||Hn===void 0||Hn.textArea.focus()};(0,Xt.useImperativeHandle)(Ue,function(){return{resizableTextArea:on.current,focus:Ir,blur:function(){var Hn;(Hn=on.current)===null||Hn===void 0||Hn.textArea.blur()}}}),(0,Xt.useEffect)(function(){Bn(function(Xn){return!gt&&Xn})},[gt]);var Xr=Number(Zn)>0,oo=function(Hn){nr(!0),Xi.current=Te,Mr.current=Hn.currentTarget.selectionStart,gi==null||gi(Hn)},jo=function(Hn){nr(!1);var Mn=Hn.currentTarget.value;if(Xr){var qe,pi=Mr.current>=Zn+1||Mr.current===((qe=Xi.current)===null||qe===void 0?void 0:qe.length);Mn=Wt(pi,Xi.current,Mn,Zn)}Mn!==Te&&(Me(Mn),(0,se.rJ)(Hn.currentTarget,Hn,Ve,Mn)),Kn==null||Kn(Hn)},ds=function(Hn){var Mn=Hn.target.value;if(!Di&&Xr){var qe=Hn.target.selectionStart>=Zn+1||Hn.target.selectionStart===Mn.length||!Hn.target.selectionStart;Mn=Wt(qe,Te,Mn,Zn)}Me(Mn),(0,se.rJ)(Hn.currentTarget,Hn,Ve,Mn)},no=function(Hn){var Mn=ae.onPressEnter,qe=ae.onKeyDown;Hn.key==="Enter"&&Mn&&Mn(Hn),qe==null||qe(Hn)},Is=function(Hn){Bn(!0),bn==null||bn(Hn)},xo=function(Hn){Bn(!1),Ln==null||Ln(Hn)},$t=function(Hn){var Mn;Me(""),Ir(),(0,se.rJ)((Mn=on.current)===null||Mn===void 0?void 0:Mn.textArea,Hn,Ve)},ni=(0,se.D7)(Te);!Di&&Xr&&Ce==null&&(ni=He(ni,Zn));var gs=Pi,ua;if(Ot){var Gs=(0,Mt.Z)(ni).length;(0,Ie.Z)(Ot)==="object"?ua=Ot.formatter({value:ni,count:Gs,maxLength:Zn}):ua="".concat(Gs).concat(Xr?" / ".concat(Zn):""),gs=Xt.createElement(Xt.Fragment,null,gs,Xt.createElement("span",{className:qt()("".concat(Li,"-data-count"),At==null?void 0:At.count),style:le==null?void 0:le.count},ua))}var ha=function(Hn){var Mn;xe==null||xe(Hn),(Mn=on.current)!==null&&Mn!==void 0&&Mn.textArea.style.height&&qr(!0)},Ws=!ae.autoSize&&!Ot&&!Nn,Hr=Xt.createElement(bt.BaseInput,{value:ni,allowClear:Nn,handleReset:$t,suffix:gs,prefixCls:Li,classes:{affixWrapper:qt()(ji==null?void 0:ji.affixWrapper,(ve={},(0,re.Z)(ve,"".concat(Li,"-show-count"),Ot),(0,re.Z)(ve,"".concat(Li,"-textarea-allow-clear"),Nn),ve))},disabled:gt,focused:ln,className:Tt,style:(0,ce.Z)((0,ce.Z)({},vt),Yr&&!Ws?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ua=="string"?ua:void 0}},hidden:ft,inputElement:Xt.createElement(Le,(0,Lt.Z)({},ae,{onKeyDown:no,onChange:ds,onFocus:Is,onBlur:xo,onCompositionStart:oo,onCompositionEnd:jo,className:At==null?void 0:At.textarea,style:(0,ce.Z)((0,ce.Z)({},le==null?void 0:le.textarea),{},{resize:vt==null?void 0:vt.resize}),disabled:gt,prefixCls:Li,onResize:ha,ref:on}))});return Hr}),_e=Ke,Ne=_e},39417:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return oe}});var Lt=Ft(92413),ce=Ft(400),re=Ft(37061),Ie=Ft(33708),ee=Ft(6909),Vt=Ft(4771),Mt=Ft(25314),jt=Ft(9427),qt=Ft(25440),bt=Ft(92310),se=Ft.n(bt),Gt=Ft(26112),Xt=Ft(59301),Ct=Ft(39378),et=function(fe){for(var Le=fe.prefixCls,te=fe.level,He=fe.isStart,Wt=fe.isEnd,Ke="".concat(Le,"-indent-unit"),_e=[],Ne=0;Ne<te;Ne+=1){var Ge;_e.push(Xt.createElement("span",{key:Ne,className:se()(Ke,(Ge={},(0,ce.Z)(Ge,"".concat(Ke,"-start"),He[Ne]),(0,ce.Z)(Ge,"".concat(Ke,"-end"),Wt[Ne]),Ge))}))}return Xt.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},_e)},tt=Xt.memo(et),lt=Ft(67841),rt=Ft(71430),ht=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",xt="close",Nt="---",Ut=function(he){(0,jt.Z)(Le,he);var fe=(0,qt.Z)(Le);function Le(){var te;(0,ee.Z)(this,Le);for(var He=arguments.length,Wt=new Array(He),Ke=0;Ke<He;Ke++)Wt[Ke]=arguments[Ke];return te=fe.call.apply(fe,[this].concat(Wt)),te.state={dragNodeHighlight:!1},te.selectHandle=void 0,te.cacheIndent=void 0,te.onSelectorClick=function(_e){var Ne=te.props.context.onNodeClick;Ne(_e,(0,rt.F)(te.props)),te.isSelectable()?te.onSelect(_e):te.onCheck(_e)},te.onSelectorDoubleClick=function(_e){var Ne=te.props.context.onNodeDoubleClick;Ne(_e,(0,rt.F)(te.props))},te.onSelect=function(_e){if(!te.isDisabled()){var Ne=te.props.context.onNodeSelect;Ne(_e,(0,rt.F)(te.props))}},te.onCheck=function(_e){if(!te.isDisabled()){var Ne=te.props,Ge=Ne.disableCheckbox,Ue=Ne.checked,ve=te.props.context.onNodeCheck;if(!(!te.isCheckable()||Ge)){var ne=!Ue;ve(_e,(0,rt.F)(te.props),ne)}}},te.onMouseEnter=function(_e){var Ne=te.props.context.onNodeMouseEnter;Ne(_e,(0,rt.F)(te.props))},te.onMouseLeave=function(_e){var Ne=te.props.context.onNodeMouseLeave;Ne(_e,(0,rt.F)(te.props))},te.onContextMenu=function(_e){var Ne=te.props.context.onNodeContextMenu;Ne(_e,(0,rt.F)(te.props))},te.onDragStart=function(_e){var Ne=te.props.context.onNodeDragStart;_e.stopPropagation(),te.setState({dragNodeHighlight:!0}),Ne(_e,(0,Mt.Z)(te));try{_e.dataTransfer.setData("text/plain","")}catch(Ge){}},te.onDragEnter=function(_e){var Ne=te.props.context.onNodeDragEnter;_e.preventDefault(),_e.stopPropagation(),Ne(_e,(0,Mt.Z)(te))},te.onDragOver=function(_e){var Ne=te.props.context.onNodeDragOver;_e.preventDefault(),_e.stopPropagation(),Ne(_e,(0,Mt.Z)(te))},te.onDragLeave=function(_e){var Ne=te.props.context.onNodeDragLeave;_e.stopPropagation(),Ne(_e,(0,Mt.Z)(te))},te.onDragEnd=function(_e){var Ne=te.props.context.onNodeDragEnd;_e.stopPropagation(),te.setState({dragNodeHighlight:!1}),Ne(_e,(0,Mt.Z)(te))},te.onDrop=function(_e){var Ne=te.props.context.onNodeDrop;_e.preventDefault(),_e.stopPropagation(),te.setState({dragNodeHighlight:!1}),Ne(_e,(0,Mt.Z)(te))},te.onExpand=function(_e){var Ne=te.props,Ge=Ne.loading,Ue=Ne.context.onNodeExpand;Ge||Ue(_e,(0,rt.F)(te.props))},te.setSelectHandle=function(_e){te.selectHandle=_e},te.getNodeState=function(){var _e=te.props.expanded;return te.isLeaf()?null:_e?dt:xt},te.hasChildren=function(){var _e=te.props.eventKey,Ne=te.props.context.keyEntities,Ge=(0,lt.Z)(Ne,_e)||{},Ue=Ge.children;return!!(Ue||[]).length},te.isLeaf=function(){var _e=te.props,Ne=_e.isLeaf,Ge=_e.loaded,Ue=te.props.context.loadData,ve=te.hasChildren();return Ne===!1?!1:Ne||!Ue&&!ve||Ue&&Ge&&!ve},te.isDisabled=function(){var _e=te.props.disabled,Ne=te.props.context.disabled;return!!(Ne||_e)},te.isCheckable=function(){var _e=te.props.checkable,Ne=te.props.context.checkable;return!Ne||_e===!1?!1:Ne},te.syncLoadData=function(_e){var Ne=_e.expanded,Ge=_e.loading,Ue=_e.loaded,ve=te.props.context,ne=ve.loadData,Ce=ve.onNodeLoad;Ge||ne&&Ne&&!te.isLeaf()&&!te.hasChildren()&&!Ue&&Ce((0,rt.F)(te.props))},te.isDraggable=function(){var _e=te.props,Ne=_e.data,Ge=_e.context.draggable;return!!(Ge&&(!Ge.nodeDraggable||Ge.nodeDraggable(Ne)))},te.renderDragHandler=function(){var _e=te.props.context,Ne=_e.draggable,Ge=_e.prefixCls;return Ne!=null&&Ne.icon?Xt.createElement("span",{className:"".concat(Ge,"-draggable-icon")},Ne.icon):null},te.renderSwitcherIconDom=function(_e){var Ne=te.props.switcherIcon,Ge=te.props.context.switcherIcon,Ue=Ne||Ge;return typeof Ue=="function"?Ue((0,Ie.Z)((0,Ie.Z)({},te.props),{},{isLeaf:_e})):Ue},te.renderSwitcher=function(){var _e=te.props.expanded,Ne=te.props.context.prefixCls;if(te.isLeaf()){var Ge=te.renderSwitcherIconDom(!0);return Ge!==!1?Xt.createElement("span",{className:se()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher-noop"))},Ge):null}var Ue=se()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher_").concat(_e?dt:xt)),ve=te.renderSwitcherIconDom(!1);return ve!==!1?Xt.createElement("span",{onClick:te.onExpand,className:Ue},ve):null},te.renderCheckbox=function(){var _e=te.props,Ne=_e.checked,Ge=_e.halfChecked,Ue=_e.disableCheckbox,ve=te.props.context.prefixCls,ne=te.isDisabled(),Ce=te.isCheckable();if(!Ce)return null;var bn=typeof Ce!="boolean"?Ce:null;return Xt.createElement("span",{className:se()("".concat(ve,"-checkbox"),Ne&&"".concat(ve,"-checkbox-checked"),!Ne&&Ge&&"".concat(ve,"-checkbox-indeterminate"),(ne||Ue)&&"".concat(ve,"-checkbox-disabled")),onClick:te.onCheck},bn)},te.renderIcon=function(){var _e=te.props.loading,Ne=te.props.context.prefixCls;return Xt.createElement("span",{className:se()("".concat(Ne,"-iconEle"),"".concat(Ne,"-icon__").concat(te.getNodeState()||"docu"),_e&&"".concat(Ne,"-icon_loading"))})},te.renderSelector=function(){var _e=te.state.dragNodeHighlight,Ne=te.props,Ge=Ne.title,Ue=Ge===void 0?Nt:Ge,ve=Ne.selected,ne=Ne.icon,Ce=Ne.loading,bn=Ne.data,Ln=te.props.context,Ve=Ln.prefixCls,Nn=Ln.showIcon,Zn=Ln.icon,gi=Ln.loadData,Kn=Ln.titleRender,Pi=te.isDisabled(),tn="".concat(Ve,"-node-content-wrapper"),Li;if(Nn){var ji=ne||Zn;Li=ji?Xt.createElement("span",{className:se()("".concat(Ve,"-iconEle"),"".concat(Ve,"-icon__customize"))},typeof ji=="function"?ji(te.props):ji):te.renderIcon()}else gi&&Ce&&(Li=te.renderIcon());var Ot;typeof Ue=="function"?Ot=Ue(bn):Kn?Ot=Kn(bn):Ot=Ue;var Tt=Xt.createElement("span",{className:"".concat(Ve,"-title")},Ot);return Xt.createElement("span",{ref:te.setSelectHandle,title:typeof Ue=="string"?Ue:"",className:se()("".concat(tn),"".concat(tn,"-").concat(te.getNodeState()||"normal"),!Pi&&(ve||_e)&&"".concat(Ve,"-node-selected")),onMouseEnter:te.onMouseEnter,onMouseLeave:te.onMouseLeave,onContextMenu:te.onContextMenu,onClick:te.onSelectorClick,onDoubleClick:te.onSelectorDoubleClick},Li,Tt,te.renderDropIndicator())},te.renderDropIndicator=function(){var _e=te.props,Ne=_e.disabled,Ge=_e.eventKey,Ue=te.props.context,ve=Ue.draggable,ne=Ue.dropLevelOffset,Ce=Ue.dropPosition,bn=Ue.prefixCls,Ln=Ue.indent,Ve=Ue.dropIndicatorRender,Nn=Ue.dragOverNodeKey,Zn=Ue.direction,gi=!!ve,Kn=!Ne&&gi&&Nn===Ge,Pi=Ln!=null?Ln:te.cacheIndent;return te.cacheIndent=Ln,Kn?Ve({dropPosition:Ce,dropLevelOffset:ne,indent:Pi,prefixCls:bn,direction:Zn}):null},te}return(0,Vt.Z)(Le,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var He=this.props.selectable,Wt=this.props.context.selectable;return typeof He=="boolean"?He:Wt}},{key:"render",value:function(){var He,Wt=this.props,Ke=Wt.eventKey,_e=Wt.className,Ne=Wt.style,Ge=Wt.dragOver,Ue=Wt.dragOverGapTop,ve=Wt.dragOverGapBottom,ne=Wt.isLeaf,Ce=Wt.isStart,bn=Wt.isEnd,Ln=Wt.expanded,Ve=Wt.selected,Nn=Wt.checked,Zn=Wt.halfChecked,gi=Wt.loading,Kn=Wt.domRef,Pi=Wt.active,tn=Wt.data,Li=Wt.onMouseMove,ji=Wt.selectable,Ot=(0,re.Z)(Wt,ht),Tt=this.props.context,vt=Tt.prefixCls,gt=Tt.filterTreeNode,ft=Tt.keyEntities,At=Tt.dropContainerKey,le=Tt.dropTargetKey,xe=Tt.draggingNodeKey,ae=this.isDisabled(),ye=(0,Gt.Z)(Ot,{aria:!0,data:!0}),Oe=(0,lt.Z)(ft,Ke)||{},Te=Oe.level,Me=bn[bn.length-1],on=this.isDraggable(),Wn=!ae&&on,sn=xe===Ke,ln=ji!==void 0?{"aria-selected":!!ji}:void 0;return Xt.createElement("div",(0,Lt.Z)({ref:Kn,className:se()(_e,"".concat(vt,"-treenode"),(He={},(0,ce.Z)(He,"".concat(vt,"-treenode-disabled"),ae),(0,ce.Z)(He,"".concat(vt,"-treenode-switcher-").concat(Ln?"open":"close"),!ne),(0,ce.Z)(He,"".concat(vt,"-treenode-checkbox-checked"),Nn),(0,ce.Z)(He,"".concat(vt,"-treenode-checkbox-indeterminate"),Zn),(0,ce.Z)(He,"".concat(vt,"-treenode-selected"),Ve),(0,ce.Z)(He,"".concat(vt,"-treenode-loading"),gi),(0,ce.Z)(He,"".concat(vt,"-treenode-active"),Pi),(0,ce.Z)(He,"".concat(vt,"-treenode-leaf-last"),Me),(0,ce.Z)(He,"".concat(vt,"-treenode-draggable"),on),(0,ce.Z)(He,"dragging",sn),(0,ce.Z)(He,"drop-target",le===Ke),(0,ce.Z)(He,"drop-container",At===Ke),(0,ce.Z)(He,"drag-over",!ae&&Ge),(0,ce.Z)(He,"drag-over-gap-top",!ae&&Ue),(0,ce.Z)(He,"drag-over-gap-bottom",!ae&&ve),(0,ce.Z)(He,"filter-node",gt&&gt((0,rt.F)(this.props))),He)),style:Ne,draggable:Wn,"aria-grabbed":sn,onDragStart:Wn?this.onDragStart:void 0,onDragEnter:on?this.onDragEnter:void 0,onDragOver:on?this.onDragOver:void 0,onDragLeave:on?this.onDragLeave:void 0,onDrop:on?this.onDrop:void 0,onDragEnd:on?this.onDragEnd:void 0,onMouseMove:Li},ln,ye),Xt.createElement(tt,{prefixCls:vt,level:Te,isStart:Ce,isEnd:bn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(Xt.Component),_t=function(fe){return Xt.createElement(Ct.k.Consumer,null,function(Le){return Xt.createElement(Ut,(0,Lt.Z)({},fe,{context:Le}))})};_t.displayName="TreeNode",_t.isTreeNode=1;var oe=_t},39378:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{k:function(){return ce}});var Lt=Ft(59301),ce=Lt.createContext(null)},23130:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{O:function(){return oe.Z},Z:function(){return Tt}});var Lt=Ft(92413),ce=Ft(400),re=Ft(39559),Ie=Ft(33708),ee=Ft(26407),Vt=Ft(6909),Mt=Ft(4771),jt=Ft(25314),qt=Ft(9427),bt=Ft(25440),se=Ft(92310),Gt=Ft.n(se),Xt=Ft(10228),Ct=Ft(26112),et=Ft(48736),tt=Ft(59301),lt=Ft(39378);function rt(vt){var gt=vt.dropPosition,ft=vt.dropLevelOffset,At=vt.indent,le={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(gt){case-1:le.top=0,le.left=-ft*At;break;case 1:le.bottom=0,le.left=-ft*At;break;case 0:le.bottom=0,le.left=At;break}return tt.createElement("div",{style:le})}function ht(vt){if(vt==null)throw new TypeError("Cannot destructure "+vt)}var dt=Ft(33606),xt=Ft(37061),Nt=Ft(34280),Ut=Ft(4409),_t=Ft(77900),oe=Ft(39417);function he(vt,gt){var ft=tt.useState(!1),At=(0,dt.Z)(ft,2),le=At[0],xe=At[1];tt.useLayoutEffect(function(){if(le)return vt(),function(){gt()}},[le]),tt.useLayoutEffect(function(){return xe(!0),function(){xe(!1)}},[])}var fe=Ft(71430),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],te=function(gt,ft){var At=gt.className,le=gt.style,xe=gt.motion,ae=gt.motionNodes,ye=gt.motionType,Oe=gt.onMotionStart,Te=gt.onMotionEnd,Me=gt.active,on=gt.treeNodeRequiredProps,Wn=(0,xt.Z)(gt,Le),sn=tt.useState(!0),ln=(0,dt.Z)(sn,2),Bn=ln[0],li=ln[1],On=tt.useContext(lt.k),Di=On.prefixCls,nr=ae&&ye!=="hide";(0,Nt.Z)(function(){ae&&nr!==Bn&&li(nr)},[ae]);var Xi=function(){ae&&Oe()},Mr=tt.useRef(!1),br=function(){ae&&!Mr.current&&(Mr.current=!0,Te())};he(Xi,br);var eo=function(qr){nr===qr&&br()};return ae?tt.createElement(_t.default,(0,Lt.Z)({ref:ft,visible:Bn},xe,{motionAppear:ye==="show",onVisibleChanged:eo}),function(Yr,qr){var Ir=Yr.className,Xr=Yr.style;return tt.createElement("div",{ref:qr,className:Gt()("".concat(Di,"-treenode-motion"),Ir),style:Xr},ae.map(function(oo){var jo=(0,Lt.Z)({},(ht(oo.data),oo.data)),ds=oo.title,no=oo.key,Is=oo.isStart,xo=oo.isEnd;delete jo.children;var $t=(0,fe.H8)(no,on);return tt.createElement(oe.Z,(0,Lt.Z)({},jo,$t,{title:ds,active:Me,data:oo.data,key:no,isStart:Is,isEnd:xo}))}))}):tt.createElement(oe.Z,(0,Lt.Z)({domRef:ft,className:At,style:le},Wn,{active:Me}))};te.displayName="MotionTreeNode";var He=tt.forwardRef(te),Wt=He;function Ke(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ft=vt.length,At=gt.length;if(Math.abs(ft-At)!==1)return{add:!1,key:null};function le(xe,ae){var ye=new Map;xe.forEach(function(Te){ye.set(Te,!0)});var Oe=ae.filter(function(Te){return!ye.has(Te)});return Oe.length===1?Oe[0]:null}return ft<At?{add:!0,key:le(vt,gt)}:{add:!1,key:le(gt,vt)}}function _e(vt,gt,ft){var At=vt.findIndex(function(ye){return ye.key===ft}),le=vt[At+1],xe=gt.findIndex(function(ye){return ye.key===ft});if(le){var ae=gt.findIndex(function(ye){return ye.key===le.key});return gt.slice(xe+1,ae)}return gt.slice(xe+1)}var Ne=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Ge={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ue=function(){},ve="RC_TREE_MOTION_".concat(Math.random()),ne={key:ve},Ce={key:ve,level:0,index:0,pos:"0",node:ne,nodes:[ne]},bn={parent:null,children:[],pos:Ce.pos,data:ne,title:null,key:ve,isStart:[],isEnd:[]};function Ln(vt,gt,ft,At){return gt===!1||!ft?vt:vt.slice(0,Math.ceil(ft/At)+1)}function Ve(vt){var gt=vt.key,ft=vt.pos;return(0,fe.km)(gt,ft)}function Nn(vt){for(var gt=String(vt.data.key),ft=vt;ft.parent;)ft=ft.parent,gt="".concat(ft.data.key," > ").concat(gt);return gt}var Zn=tt.forwardRef(function(vt,gt){var ft=vt.prefixCls,At=vt.data,le=vt.selectable,xe=vt.checkable,ae=vt.expandedKeys,ye=vt.selectedKeys,Oe=vt.checkedKeys,Te=vt.loadedKeys,Me=vt.loadingKeys,on=vt.halfCheckedKeys,Wn=vt.keyEntities,sn=vt.disabled,ln=vt.dragging,Bn=vt.dragOverNodeKey,li=vt.dropPosition,On=vt.motion,Di=vt.height,nr=vt.itemHeight,Xi=vt.virtual,Mr=vt.focusable,br=vt.activeItem,eo=vt.focused,Yr=vt.tabIndex,qr=vt.onKeyDown,Ir=vt.onFocus,Xr=vt.onBlur,oo=vt.onActiveChange,jo=vt.onListChangeStart,ds=vt.onListChangeEnd,no=(0,xt.Z)(vt,Ne),Is=tt.useRef(null),xo=tt.useRef(null);tt.useImperativeHandle(gt,function(){return{scrollTo:function(yi){Is.current.scrollTo(yi)},getIndentWidth:function(){return xo.current.offsetWidth}}});var $t=tt.useState(ae),ni=(0,dt.Z)($t,2),gs=ni[0],ua=ni[1],Gs=tt.useState(At),ha=(0,dt.Z)(Gs,2),Ws=ha[0],Hr=ha[1],Xn=tt.useState(At),Hn=(0,dt.Z)(Xn,2),Mn=Hn[0],qe=Hn[1],pi=tt.useState([]),xi=(0,dt.Z)(pi,2),wn=xi[0],Ee=xi[1],Cn=tt.useState(null),Gn=(0,dt.Z)(Cn,2),Ei=Gn[0],ei=Gn[1],gn=tt.useRef(At);gn.current=At;function di(){var kn=gn.current;Hr(kn),qe(kn),Ee([]),ei(null),ds()}(0,Nt.Z)(function(){ua(ae);var kn=Ke(gs,ae);if(kn.key!==null)if(kn.add){var yi=Ws.findIndex(function(or){var xr=or.key;return xr===kn.key}),Br=Ln(_e(Ws,At,kn.key),Xi,Di,nr),dr=Ws.slice();dr.splice(yi+1,0,bn),qe(dr),Ee(Br),ei("show")}else{var zr=At.findIndex(function(or){var xr=or.key;return xr===kn.key}),cr=Ln(_e(At,Ws,kn.key),Xi,Di,nr),wr=At.slice();wr.splice(zr+1,0,bn),qe(wr),Ee(cr),ei("hide")}else Ws!==At&&(Hr(At),qe(At))},[ae,At]),tt.useEffect(function(){ln||di()},[ln]);var Ni=On?Mn:At,$i={expandedKeys:ae,selectedKeys:ye,loadedKeys:Te,loadingKeys:Me,checkedKeys:Oe,halfCheckedKeys:on,dragOverNodeKey:Bn,dropPosition:li,keyEntities:Wn};return tt.createElement(tt.Fragment,null,eo&&br&&tt.createElement("span",{style:Ge,"aria-live":"assertive"},Nn(br)),tt.createElement("div",null,tt.createElement("input",{style:Ge,disabled:Mr===!1||sn,tabIndex:Mr!==!1?Yr:null,onKeyDown:qr,onFocus:Ir,onBlur:Xr,value:"",onChange:Ue,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(ft,"-indent")},tt.createElement("div",{ref:xo,className:"".concat(ft,"-indent-unit")}))),tt.createElement(Ut.Z,(0,Lt.Z)({},no,{data:Ni,itemKey:Ve,height:Di,fullHeight:!1,virtual:Xi,itemHeight:nr,prefixCls:"".concat(ft,"-list"),ref:Is,onVisibleChange:function(yi,Br){var dr=new Set(yi),zr=Br.filter(function(cr){return!dr.has(cr)});zr.some(function(cr){return Ve(cr)===ve})&&di()}}),function(kn){var yi=kn.pos,Br=(0,Lt.Z)({},(ht(kn.data),kn.data)),dr=kn.title,zr=kn.key,cr=kn.isStart,wr=kn.isEnd,or=(0,fe.km)(zr,yi);delete Br.key,delete Br.children;var xr=(0,fe.H8)(or,$i);return tt.createElement(Wt,(0,Lt.Z)({},Br,xr,{title:dr,active:!!br&&zr===br.key,pos:yi,data:kn.data,isStart:cr,isEnd:wr,motion:On,motionNodes:zr===ve?wn:null,motionType:Ei,onMotionStart:jo,onMotionEnd:di,treeNodeRequiredProps:$i,onMouseMove:function(){oo(null)}}))}))});Zn.displayName="NodeList";var gi=Zn,Kn=Ft(35654),Pi=Ft(90782),tn=Ft(67841),Li=10,ji=function(vt){(0,qt.Z)(ft,vt);var gt=(0,bt.Z)(ft);function ft(){var At;(0,Vt.Z)(this,ft);for(var le=arguments.length,xe=new Array(le),ae=0;ae<le;ae++)xe[ae]=arguments[ae];return At=gt.call.apply(gt,[this].concat(xe)),At.destroyed=!1,At.delayedDragEnterLogic=void 0,At.loadingRetryTimes={},At.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,fe.w$)()},At.dragStartMousePosition=null,At.dragNode=void 0,At.currentMouseOverDroppableNodeKey=null,At.listRef=tt.createRef(),At.onNodeDragStart=function(ye,Oe){var Te=At.state,Me=Te.expandedKeys,on=Te.keyEntities,Wn=At.props.onDragStart,sn=Oe.props.eventKey;At.dragNode=Oe,At.dragStartMousePosition={x:ye.clientX,y:ye.clientY};var ln=(0,Kn._5)(Me,sn);At.setState({draggingNodeKey:sn,dragChildrenKeys:(0,Kn.wA)(sn,on),indent:At.listRef.current.getIndentWidth()}),At.setExpandedKeys(ln),window.addEventListener("dragend",At.onWindowDragEnd),Wn==null||Wn({event:ye,node:(0,fe.F)(Oe.props)})},At.onNodeDragEnter=function(ye,Oe){var Te=At.state,Me=Te.expandedKeys,on=Te.keyEntities,Wn=Te.dragChildrenKeys,sn=Te.flattenNodes,ln=Te.indent,Bn=At.props,li=Bn.onDragEnter,On=Bn.onExpand,Di=Bn.allowDrop,nr=Bn.direction,Xi=Oe.props,Mr=Xi.pos,br=Xi.eventKey,eo=(0,jt.Z)(At),Yr=eo.dragNode;if(At.currentMouseOverDroppableNodeKey!==br&&(At.currentMouseOverDroppableNodeKey=br),!Yr){At.resetDragState();return}var qr=(0,Kn.OM)(ye,Yr,Oe,ln,At.dragStartMousePosition,Di,sn,on,Me,nr),Ir=qr.dropPosition,Xr=qr.dropLevelOffset,oo=qr.dropTargetKey,jo=qr.dropContainerKey,ds=qr.dropTargetPos,no=qr.dropAllowed,Is=qr.dragOverNodeKey;if(Wn.indexOf(oo)!==-1||!no){At.resetDragState();return}if(At.delayedDragEnterLogic||(At.delayedDragEnterLogic={}),Object.keys(At.delayedDragEnterLogic).forEach(function(xo){clearTimeout(At.delayedDragEnterLogic[xo])}),Yr.props.eventKey!==Oe.props.eventKey&&(ye.persist(),At.delayedDragEnterLogic[Mr]=window.setTimeout(function(){if(At.state.draggingNodeKey!==null){var xo=(0,ee.Z)(Me),$t=(0,tn.Z)(on,Oe.props.eventKey);$t&&($t.children||[]).length&&(xo=(0,Kn.L0)(Me,Oe.props.eventKey)),"expandedKeys"in At.props||At.setExpandedKeys(xo),On==null||On(xo,{node:(0,fe.F)(Oe.props),expanded:!0,nativeEvent:ye.nativeEvent})}},800)),Yr.props.eventKey===oo&&Xr===0){At.resetDragState();return}At.setState({dragOverNodeKey:Is,dropPosition:Ir,dropLevelOffset:Xr,dropTargetKey:oo,dropContainerKey:jo,dropTargetPos:ds,dropAllowed:no}),li==null||li({event:ye,node:(0,fe.F)(Oe.props),expandedKeys:Me})},At.onNodeDragOver=function(ye,Oe){var Te=At.state,Me=Te.dragChildrenKeys,on=Te.flattenNodes,Wn=Te.keyEntities,sn=Te.expandedKeys,ln=Te.indent,Bn=At.props,li=Bn.onDragOver,On=Bn.allowDrop,Di=Bn.direction,nr=(0,jt.Z)(At),Xi=nr.dragNode;if(Xi){var Mr=(0,Kn.OM)(ye,Xi,Oe,ln,At.dragStartMousePosition,On,on,Wn,sn,Di),br=Mr.dropPosition,eo=Mr.dropLevelOffset,Yr=Mr.dropTargetKey,qr=Mr.dropContainerKey,Ir=Mr.dropAllowed,Xr=Mr.dropTargetPos,oo=Mr.dragOverNodeKey;Me.indexOf(Yr)!==-1||!Ir||(Xi.props.eventKey===Yr&&eo===0?At.state.dropPosition===null&&At.state.dropLevelOffset===null&&At.state.dropTargetKey===null&&At.state.dropContainerKey===null&&At.state.dropTargetPos===null&&At.state.dropAllowed===!1&&At.state.dragOverNodeKey===null||At.resetDragState():br===At.state.dropPosition&&eo===At.state.dropLevelOffset&&Yr===At.state.dropTargetKey&&qr===At.state.dropContainerKey&&Xr===At.state.dropTargetPos&&Ir===At.state.dropAllowed&&oo===At.state.dragOverNodeKey||At.setState({dropPosition:br,dropLevelOffset:eo,dropTargetKey:Yr,dropContainerKey:qr,dropTargetPos:Xr,dropAllowed:Ir,dragOverNodeKey:oo}),li==null||li({event:ye,node:(0,fe.F)(Oe.props)}))}},At.onNodeDragLeave=function(ye,Oe){At.currentMouseOverDroppableNodeKey===Oe.props.eventKey&&!ye.currentTarget.contains(ye.relatedTarget)&&(At.resetDragState(),At.currentMouseOverDroppableNodeKey=null);var Te=At.props.onDragLeave;Te==null||Te({event:ye,node:(0,fe.F)(Oe.props)})},At.onWindowDragEnd=function(ye){At.onNodeDragEnd(ye,null,!0),window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDragEnd=function(ye,Oe){var Te=At.props.onDragEnd;At.setState({dragOverNodeKey:null}),At.cleanDragState(),Te==null||Te({event:ye,node:(0,fe.F)(Oe.props)}),At.dragNode=null,window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDrop=function(ye,Oe){var Te,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,on=At.state,Wn=on.dragChildrenKeys,sn=on.dropPosition,ln=on.dropTargetKey,Bn=on.dropTargetPos,li=on.dropAllowed;if(li){var On=At.props.onDrop;if(At.setState({dragOverNodeKey:null}),At.cleanDragState(),ln!==null){var Di=(0,Ie.Z)((0,Ie.Z)({},(0,fe.H8)(ln,At.getTreeNodeRequiredProps())),{},{active:((Te=At.getActiveItem())===null||Te===void 0?void 0:Te.key)===ln,data:(0,tn.Z)(At.state.keyEntities,ln).node}),nr=Wn.indexOf(ln)!==-1;(0,et.ZP)(!nr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Xi=(0,Kn.yx)(Bn),Mr={event:ye,node:(0,fe.F)(Di),dragNode:At.dragNode?(0,fe.F)(At.dragNode.props):null,dragNodesKeys:[At.dragNode.props.eventKey].concat(Wn),dropToGap:sn!==0,dropPosition:sn+Number(Xi[Xi.length-1])};Me||On==null||On(Mr),At.dragNode=null}}},At.cleanDragState=function(){var ye=At.state.draggingNodeKey;ye!==null&&At.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),At.dragStartMousePosition=null,At.currentMouseOverDroppableNodeKey=null},At.triggerExpandActionExpand=function(ye,Oe){var Te=At.state,Me=Te.expandedKeys,on=Te.flattenNodes,Wn=Oe.expanded,sn=Oe.key,ln=Oe.isLeaf;if(!(ln||ye.shiftKey||ye.metaKey||ye.ctrlKey)){var Bn=on.filter(function(On){return On.key===sn})[0],li=(0,fe.F)((0,Ie.Z)((0,Ie.Z)({},(0,fe.H8)(sn,At.getTreeNodeRequiredProps())),{},{data:Bn.data}));At.setExpandedKeys(Wn?(0,Kn._5)(Me,sn):(0,Kn.L0)(Me,sn)),At.onNodeExpand(ye,li)}},At.onNodeClick=function(ye,Oe){var Te=At.props,Me=Te.onClick,on=Te.expandAction;on==="click"&&At.triggerExpandActionExpand(ye,Oe),Me==null||Me(ye,Oe)},At.onNodeDoubleClick=function(ye,Oe){var Te=At.props,Me=Te.onDoubleClick,on=Te.expandAction;on==="doubleClick"&&At.triggerExpandActionExpand(ye,Oe),Me==null||Me(ye,Oe)},At.onNodeSelect=function(ye,Oe){var Te=At.state.selectedKeys,Me=At.state,on=Me.keyEntities,Wn=Me.fieldNames,sn=At.props,ln=sn.onSelect,Bn=sn.multiple,li=Oe.selected,On=Oe[Wn.key],Di=!li;Di?Bn?Te=(0,Kn.L0)(Te,On):Te=[On]:Te=(0,Kn._5)(Te,On);var nr=Te.map(function(Xi){var Mr=(0,tn.Z)(on,Xi);return Mr?Mr.node:null}).filter(function(Xi){return Xi});At.setUncontrolledState({selectedKeys:Te}),ln==null||ln(Te,{event:"select",selected:Di,node:Oe,selectedNodes:nr,nativeEvent:ye.nativeEvent})},At.onNodeCheck=function(ye,Oe,Te){var Me=At.state,on=Me.keyEntities,Wn=Me.checkedKeys,sn=Me.halfCheckedKeys,ln=At.props,Bn=ln.checkStrictly,li=ln.onCheck,On=Oe.key,Di,nr={event:"check",node:Oe,checked:Te,nativeEvent:ye.nativeEvent};if(Bn){var Xi=Te?(0,Kn.L0)(Wn,On):(0,Kn._5)(Wn,On),Mr=(0,Kn._5)(sn,On);Di={checked:Xi,halfChecked:Mr},nr.checkedNodes=Xi.map(function(Xr){return(0,tn.Z)(on,Xr)}).filter(function(Xr){return Xr}).map(function(Xr){return Xr.node}),At.setUncontrolledState({checkedKeys:Xi})}else{var br=(0,Pi.S)([].concat((0,ee.Z)(Wn),[On]),!0,on),eo=br.checkedKeys,Yr=br.halfCheckedKeys;if(!Te){var qr=new Set(eo);qr.delete(On);var Ir=(0,Pi.S)(Array.from(qr),{checked:!1,halfCheckedKeys:Yr},on);eo=Ir.checkedKeys,Yr=Ir.halfCheckedKeys}Di=eo,nr.checkedNodes=[],nr.checkedNodesPositions=[],nr.halfCheckedKeys=Yr,eo.forEach(function(Xr){var oo=(0,tn.Z)(on,Xr);if(oo){var jo=oo.node,ds=oo.pos;nr.checkedNodes.push(jo),nr.checkedNodesPositions.push({node:jo,pos:ds})}}),At.setUncontrolledState({checkedKeys:eo},!1,{halfCheckedKeys:Yr})}li==null||li(Di,nr)},At.onNodeLoad=function(ye){var Oe=ye.key,Te=new Promise(function(Me,on){At.setState(function(Wn){var sn=Wn.loadedKeys,ln=sn===void 0?[]:sn,Bn=Wn.loadingKeys,li=Bn===void 0?[]:Bn,On=At.props,Di=On.loadData,nr=On.onLoad;if(!Di||ln.indexOf(Oe)!==-1||li.indexOf(Oe)!==-1)return null;var Xi=Di(ye);return Xi.then(function(){var Mr=At.state.loadedKeys,br=(0,Kn.L0)(Mr,Oe);nr==null||nr(br,{event:"load",node:ye}),At.setUncontrolledState({loadedKeys:br}),At.setState(function(eo){return{loadingKeys:(0,Kn._5)(eo.loadingKeys,Oe)}}),Me()}).catch(function(Mr){if(At.setState(function(eo){return{loadingKeys:(0,Kn._5)(eo.loadingKeys,Oe)}}),At.loadingRetryTimes[Oe]=(At.loadingRetryTimes[Oe]||0)+1,At.loadingRetryTimes[Oe]>=Li){var br=At.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),At.setUncontrolledState({loadedKeys:(0,Kn.L0)(br,Oe)}),Me()}on(Mr)}),{loadingKeys:(0,Kn.L0)(li,Oe)}})});return Te.catch(function(){}),Te},At.onNodeMouseEnter=function(ye,Oe){var Te=At.props.onMouseEnter;Te==null||Te({event:ye,node:Oe})},At.onNodeMouseLeave=function(ye,Oe){var Te=At.props.onMouseLeave;Te==null||Te({event:ye,node:Oe})},At.onNodeContextMenu=function(ye,Oe){var Te=At.props.onRightClick;Te&&(ye.preventDefault(),Te({event:ye,node:Oe}))},At.onFocus=function(){var ye=At.props.onFocus;At.setState({focused:!0});for(var Oe=arguments.length,Te=new Array(Oe),Me=0;Me<Oe;Me++)Te[Me]=arguments[Me];ye==null||ye.apply(void 0,Te)},At.onBlur=function(){var ye=At.props.onBlur;At.setState({focused:!1}),At.onActiveChange(null);for(var Oe=arguments.length,Te=new Array(Oe),Me=0;Me<Oe;Me++)Te[Me]=arguments[Me];ye==null||ye.apply(void 0,Te)},At.getTreeNodeRequiredProps=function(){var ye=At.state,Oe=ye.expandedKeys,Te=ye.selectedKeys,Me=ye.loadedKeys,on=ye.loadingKeys,Wn=ye.checkedKeys,sn=ye.halfCheckedKeys,ln=ye.dragOverNodeKey,Bn=ye.dropPosition,li=ye.keyEntities;return{expandedKeys:Oe||[],selectedKeys:Te||[],loadedKeys:Me||[],loadingKeys:on||[],checkedKeys:Wn||[],halfCheckedKeys:sn||[],dragOverNodeKey:ln,dropPosition:Bn,keyEntities:li}},At.setExpandedKeys=function(ye){var Oe=At.state,Te=Oe.treeData,Me=Oe.fieldNames,on=(0,fe.oH)(Te,ye,Me);At.setUncontrolledState({expandedKeys:ye,flattenNodes:on},!0)},At.onNodeExpand=function(ye,Oe){var Te=At.state.expandedKeys,Me=At.state,on=Me.listChanging,Wn=Me.fieldNames,sn=At.props,ln=sn.onExpand,Bn=sn.loadData,li=Oe.expanded,On=Oe[Wn.key];if(!on){var Di=Te.indexOf(On),nr=!li;if((0,et.ZP)(li&&Di!==-1||!li&&Di===-1,"Expand state not sync with index check"),nr?Te=(0,Kn.L0)(Te,On):Te=(0,Kn._5)(Te,On),At.setExpandedKeys(Te),ln==null||ln(Te,{node:Oe,expanded:nr,nativeEvent:ye.nativeEvent}),nr&&Bn){var Xi=At.onNodeLoad(Oe);Xi&&Xi.then(function(){var Mr=(0,fe.oH)(At.state.treeData,Te,Wn);At.setUncontrolledState({flattenNodes:Mr})}).catch(function(){var Mr=At.state.expandedKeys,br=(0,Kn._5)(Mr,On);At.setExpandedKeys(br)})}}},At.onListChangeStart=function(){At.setUncontrolledState({listChanging:!0})},At.onListChangeEnd=function(){setTimeout(function(){At.setUncontrolledState({listChanging:!1})})},At.onActiveChange=function(ye){var Oe=At.state.activeKey,Te=At.props.onActiveChange;Oe!==ye&&(At.setState({activeKey:ye}),ye!==null&&At.scrollTo({key:ye}),Te==null||Te(ye))},At.getActiveItem=function(){var ye=At.state,Oe=ye.activeKey,Te=ye.flattenNodes;return Oe===null?null:Te.find(function(Me){var on=Me.key;return on===Oe})||null},At.offsetActiveKey=function(ye){var Oe=At.state,Te=Oe.flattenNodes,Me=Oe.activeKey,on=Te.findIndex(function(ln){var Bn=ln.key;return Bn===Me});on===-1&&ye<0&&(on=Te.length),on=(on+ye+Te.length)%Te.length;var Wn=Te[on];if(Wn){var sn=Wn.key;At.onActiveChange(sn)}else At.onActiveChange(null)},At.onKeyDown=function(ye){var Oe=At.state,Te=Oe.activeKey,Me=Oe.expandedKeys,on=Oe.checkedKeys,Wn=Oe.fieldNames,sn=At.props,ln=sn.onKeyDown,Bn=sn.checkable,li=sn.selectable;switch(ye.which){case Xt.Z.UP:{At.offsetActiveKey(-1),ye.preventDefault();break}case Xt.Z.DOWN:{At.offsetActiveKey(1),ye.preventDefault();break}}var On=At.getActiveItem();if(On&&On.data){var Di=At.getTreeNodeRequiredProps(),nr=On.data.isLeaf===!1||!!(On.data[Wn.children]||[]).length,Xi=(0,fe.F)((0,Ie.Z)((0,Ie.Z)({},(0,fe.H8)(Te,Di)),{},{data:On.data,active:!0}));switch(ye.which){case Xt.Z.LEFT:{nr&&Me.includes(Te)?At.onNodeExpand({},Xi):On.parent&&At.onActiveChange(On.parent.key),ye.preventDefault();break}case Xt.Z.RIGHT:{nr&&!Me.includes(Te)?At.onNodeExpand({},Xi):On.children&&On.children.length&&At.onActiveChange(On.children[0].key),ye.preventDefault();break}case Xt.Z.ENTER:case Xt.Z.SPACE:{Bn&&!Xi.disabled&&Xi.checkable!==!1&&!Xi.disableCheckbox?At.onNodeCheck({},Xi,!on.includes(Te)):!Bn&&li&&!Xi.disabled&&Xi.selectable!==!1&&At.onNodeSelect({},Xi);break}}}ln==null||ln(ye)},At.setUncontrolledState=function(ye){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!At.destroyed){var Me=!1,on=!0,Wn={};Object.keys(ye).forEach(function(sn){if(sn in At.props){on=!1;return}Me=!0,Wn[sn]=ye[sn]}),Me&&(!Oe||on)&&At.setState((0,Ie.Z)((0,Ie.Z)({},Wn),Te))}},At.scrollTo=function(ye){At.listRef.current.scrollTo(ye)},At}return(0,Mt.Z)(ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var le=this.props.activeKey;le!==void 0&&le!==this.state.activeKey&&(this.setState({activeKey:le}),le!==null&&this.scrollTo({key:le}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var le,xe=this.state,ae=xe.focused,ye=xe.flattenNodes,Oe=xe.keyEntities,Te=xe.draggingNodeKey,Me=xe.activeKey,on=xe.dropLevelOffset,Wn=xe.dropContainerKey,sn=xe.dropTargetKey,ln=xe.dropPosition,Bn=xe.dragOverNodeKey,li=xe.indent,On=this.props,Di=On.prefixCls,nr=On.className,Xi=On.style,Mr=On.showLine,br=On.focusable,eo=On.tabIndex,Yr=eo===void 0?0:eo,qr=On.selectable,Ir=On.showIcon,Xr=On.icon,oo=On.switcherIcon,jo=On.draggable,ds=On.checkable,no=On.checkStrictly,Is=On.disabled,xo=On.motion,$t=On.loadData,ni=On.filterTreeNode,gs=On.height,ua=On.itemHeight,Gs=On.virtual,ha=On.titleRender,Ws=On.dropIndicatorRender,Hr=On.onContextMenu,Xn=On.onScroll,Hn=On.direction,Mn=On.rootClassName,qe=On.rootStyle,pi=(0,Ct.Z)(this.props,{aria:!0,data:!0}),xi;return jo&&((0,re.Z)(jo)==="object"?xi=jo:typeof jo=="function"?xi={nodeDraggable:jo}:xi={}),tt.createElement(lt.k.Provider,{value:{prefixCls:Di,selectable:qr,showIcon:Ir,icon:Xr,switcherIcon:oo,draggable:xi,draggingNodeKey:Te,checkable:ds,checkStrictly:no,disabled:Is,keyEntities:Oe,dropLevelOffset:on,dropContainerKey:Wn,dropTargetKey:sn,dropPosition:ln,dragOverNodeKey:Bn,indent:li,direction:Hn,dropIndicatorRender:Ws,loadData:$t,filterTreeNode:ni,titleRender:ha,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},tt.createElement("div",{role:"tree",className:Gt()(Di,nr,Mn,(le={},(0,ce.Z)(le,"".concat(Di,"-show-line"),Mr),(0,ce.Z)(le,"".concat(Di,"-focused"),ae),(0,ce.Z)(le,"".concat(Di,"-active-focused"),Me!==null),le)),style:qe},tt.createElement(gi,(0,Lt.Z)({ref:this.listRef,prefixCls:Di,style:Xi,data:ye,disabled:Is,selectable:qr,checkable:!!ds,motion:xo,dragging:Te!==null,height:gs,itemHeight:ua,virtual:Gs,focusable:br,focused:ae,tabIndex:Yr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Hr,onScroll:Xn},this.getTreeNodeRequiredProps(),pi))))}}],[{key:"getDerivedStateFromProps",value:function(le,xe){var ae=xe.prevProps,ye={prevProps:le};function Oe(br){return!ae&&br in le||ae&&ae[br]!==le[br]}var Te,Me=xe.fieldNames;if(Oe("fieldNames")&&(Me=(0,fe.w$)(le.fieldNames),ye.fieldNames=Me),Oe("treeData")?Te=le.treeData:Oe("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Te=(0,fe.zn)(le.children)),Te){ye.treeData=Te;var on=(0,fe.I8)(Te,{fieldNames:Me});ye.keyEntities=(0,Ie.Z)((0,ce.Z)({},ve,Ce),on.keyEntities)}var Wn=ye.keyEntities||xe.keyEntities;if(Oe("expandedKeys")||ae&&Oe("autoExpandParent"))ye.expandedKeys=le.autoExpandParent||!ae&&le.defaultExpandParent?(0,Kn.r7)(le.expandedKeys,Wn):le.expandedKeys;else if(!ae&&le.defaultExpandAll){var sn=(0,Ie.Z)({},Wn);delete sn[ve],ye.expandedKeys=Object.keys(sn).map(function(br){return sn[br].key})}else!ae&&le.defaultExpandedKeys&&(ye.expandedKeys=le.autoExpandParent||le.defaultExpandParent?(0,Kn.r7)(le.defaultExpandedKeys,Wn):le.defaultExpandedKeys);if(ye.expandedKeys||delete ye.expandedKeys,Te||ye.expandedKeys){var ln=(0,fe.oH)(Te||xe.treeData,ye.expandedKeys||xe.expandedKeys,Me);ye.flattenNodes=ln}if(le.selectable&&(Oe("selectedKeys")?ye.selectedKeys=(0,Kn.BT)(le.selectedKeys,le):!ae&&le.defaultSelectedKeys&&(ye.selectedKeys=(0,Kn.BT)(le.defaultSelectedKeys,le))),le.checkable){var Bn;if(Oe("checkedKeys")?Bn=(0,Kn.E6)(le.checkedKeys)||{}:!ae&&le.defaultCheckedKeys?Bn=(0,Kn.E6)(le.defaultCheckedKeys)||{}:Te&&(Bn=(0,Kn.E6)(le.checkedKeys)||{checkedKeys:xe.checkedKeys,halfCheckedKeys:xe.halfCheckedKeys}),Bn){var li=Bn,On=li.checkedKeys,Di=On===void 0?[]:On,nr=li.halfCheckedKeys,Xi=nr===void 0?[]:nr;if(!le.checkStrictly){var Mr=(0,Pi.S)(Di,!0,Wn);Di=Mr.checkedKeys,Xi=Mr.halfCheckedKeys}ye.checkedKeys=Di,ye.halfCheckedKeys=Xi}}return Oe("loadedKeys")&&(ye.loadedKeys=le.loadedKeys),ye}}]),ft}(tt.Component);ji.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:rt,allowDrop:function(){return!0},expandAction:!1},ji.TreeNode=oe.Z;var Ot=ji,Tt=Ot},35654:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{BT:function(){return tt},E6:function(){return ht},L0:function(){return bt},OM:function(){return et},_5:function(){return qt},r7:function(){return dt},wA:function(){return Gt},yx:function(){return se}});var Lt=Ft(26407),ce=Ft(39559),re=Ft(48736),Ie=Ft(59301),ee=Ft(39417),Vt=Ft(67841),Mt=Ft(71430),jt=null;function qt(xt,Nt){if(!xt)return[];var Ut=xt.slice(),_t=Ut.indexOf(Nt);return _t>=0&&Ut.splice(_t,1),Ut}function bt(xt,Nt){var Ut=(xt||[]).slice();return Ut.indexOf(Nt)===-1&&Ut.push(Nt),Ut}function se(xt){return xt.split("-")}function Gt(xt,Nt){var Ut=[],_t=(0,Vt.Z)(Nt,xt);function oe(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];he.forEach(function(fe){var Le=fe.key,te=fe.children;Ut.push(Le),oe(te)})}return oe(_t.children),Ut}function Xt(xt){if(xt.parent){var Nt=se(xt.pos);return Number(Nt[Nt.length-1])===xt.parent.children.length-1}return!1}function Ct(xt){var Nt=se(xt.pos);return Number(Nt[Nt.length-1])===0}function et(xt,Nt,Ut,_t,oe,he,fe,Le,te,He){var Wt,Ke=xt.clientX,_e=xt.clientY,Ne=xt.target.getBoundingClientRect(),Ge=Ne.top,Ue=Ne.height,ve=(He==="rtl"?-1:1)*(((oe==null?void 0:oe.x)||0)-Ke),ne=(ve-12)/_t,Ce=(0,Vt.Z)(Le,Ut.props.eventKey);if(_e<Ge+Ue/2){var bn=fe.findIndex(function(Tt){return Tt.key===Ce.key}),Ln=bn<=0?0:bn-1,Ve=fe[Ln].key;Ce=(0,Vt.Z)(Le,Ve)}var Nn=Ce.key,Zn=Ce,gi=Ce.key,Kn=0,Pi=0;if(!te.includes(Nn))for(var tn=0;tn<ne&&Xt(Ce);tn+=1)Ce=Ce.parent,Pi+=1;var Li=Nt.props.data,ji=Ce.node,Ot=!0;return Ct(Ce)&&Ce.level===0&&_e<Ge+Ue/2&&he({dragNode:Li,dropNode:ji,dropPosition:-1})&&Ce.key===Ut.props.eventKey?Kn=-1:(Zn.children||[]).length&&te.includes(gi)?he({dragNode:Li,dropNode:ji,dropPosition:0})?Kn=0:Ot=!1:Pi===0?ne>-1.5?he({dragNode:Li,dropNode:ji,dropPosition:1})?Kn=1:Ot=!1:he({dragNode:Li,dropNode:ji,dropPosition:0})?Kn=0:he({dragNode:Li,dropNode:ji,dropPosition:1})?Kn=1:Ot=!1:he({dragNode:Li,dropNode:ji,dropPosition:1})?Kn=1:Ot=!1,{dropPosition:Kn,dropLevelOffset:Pi,dropTargetKey:Ce.key,dropTargetPos:Ce.pos,dragOverNodeKey:gi,dropContainerKey:Kn===0?null:((Wt=Ce.parent)===null||Wt===void 0?void 0:Wt.key)||null,dropAllowed:Ot}}function tt(xt,Nt){if(xt){var Ut=Nt.multiple;return Ut?xt.slice():xt.length?[xt[0]]:xt}}var lt=function(Nt){return Nt};function rt(xt,Nt){if(!xt)return[];var Ut=Nt||{},_t=Ut.processProps,oe=_t===void 0?lt:_t,he=Array.isArray(xt)?xt:[xt];return he.map(function(fe){var Le=fe.children,te=_objectWithoutProperties(fe,jt),He=rt(Le,Nt);return React.createElement(TreeNode,_extends({key:te.key},oe(te)),He)})}function ht(xt){if(!xt)return null;var Nt;if(Array.isArray(xt))Nt={checkedKeys:xt,halfCheckedKeys:void 0};else if((0,ce.Z)(xt)==="object")Nt={checkedKeys:xt.checked||void 0,halfCheckedKeys:xt.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Nt}function dt(xt,Nt){var Ut=new Set;function _t(oe){if(!Ut.has(oe)){var he=(0,Vt.Z)(Nt,oe);if(he){Ut.add(oe);var fe=he.parent,Le=he.node;Le.disabled||fe&&_t(fe.key)}}}return(xt||[]).forEach(function(oe){_t(oe)}),(0,Lt.Z)(Ut)}},90782:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{S:function(){return Mt}});var Lt=Ft(48736),ce=Ft(67841);function re(jt,qt){var bt=new Set;return jt.forEach(function(se){qt.has(se)||bt.add(se)}),bt}function Ie(jt){var qt=jt||{},bt=qt.disabled,se=qt.disableCheckbox,Gt=qt.checkable;return!!(bt||se)||Gt===!1}function ee(jt,qt,bt,se){for(var Gt=new Set(jt),Xt=new Set,Ct=0;Ct<=bt;Ct+=1){var et=qt.get(Ct)||new Set;et.forEach(function(ht){var dt=ht.key,xt=ht.node,Nt=ht.children,Ut=Nt===void 0?[]:Nt;Gt.has(dt)&&!se(xt)&&Ut.filter(function(_t){return!se(_t.node)}).forEach(function(_t){Gt.add(_t.key)})})}for(var tt=new Set,lt=bt;lt>=0;lt-=1){var rt=qt.get(lt)||new Set;rt.forEach(function(ht){var dt=ht.parent,xt=ht.node;if(!(se(xt)||!ht.parent||tt.has(ht.parent.key))){if(se(ht.parent.node)){tt.add(dt.key);return}var Nt=!0,Ut=!1;(dt.children||[]).filter(function(_t){return!se(_t.node)}).forEach(function(_t){var oe=_t.key,he=Gt.has(oe);Nt&&!he&&(Nt=!1),!Ut&&(he||Xt.has(oe))&&(Ut=!0)}),Nt&&Gt.add(dt.key),Ut&&Xt.add(dt.key),tt.add(dt.key)}})}return{checkedKeys:Array.from(Gt),halfCheckedKeys:Array.from(re(Xt,Gt))}}function Vt(jt,qt,bt,se,Gt){for(var Xt=new Set(jt),Ct=new Set(qt),et=0;et<=se;et+=1){var tt=bt.get(et)||new Set;tt.forEach(function(dt){var xt=dt.key,Nt=dt.node,Ut=dt.children,_t=Ut===void 0?[]:Ut;!Xt.has(xt)&&!Ct.has(xt)&&!Gt(Nt)&&_t.filter(function(oe){return!Gt(oe.node)}).forEach(function(oe){Xt.delete(oe.key)})})}Ct=new Set;for(var lt=new Set,rt=se;rt>=0;rt-=1){var ht=bt.get(rt)||new Set;ht.forEach(function(dt){var xt=dt.parent,Nt=dt.node;if(!(Gt(Nt)||!dt.parent||lt.has(dt.parent.key))){if(Gt(dt.parent.node)){lt.add(xt.key);return}var Ut=!0,_t=!1;(xt.children||[]).filter(function(oe){return!Gt(oe.node)}).forEach(function(oe){var he=oe.key,fe=Xt.has(he);Ut&&!fe&&(Ut=!1),!_t&&(fe||Ct.has(he))&&(_t=!0)}),Ut||Xt.delete(xt.key),_t&&Ct.add(xt.key),lt.add(xt.key)}})}return{checkedKeys:Array.from(Xt),halfCheckedKeys:Array.from(re(Ct,Xt))}}function Mt(jt,qt,bt,se){var Gt=[],Xt;se?Xt=se:Xt=Ie;var Ct=new Set(jt.filter(function(rt){var ht=!!(0,ce.Z)(bt,rt);return ht||Gt.push(rt),ht})),et=new Map,tt=0;Object.keys(bt).forEach(function(rt){var ht=bt[rt],dt=ht.level,xt=et.get(dt);xt||(xt=new Set,et.set(dt,xt)),xt.add(ht),tt=Math.max(tt,dt)}),(0,Lt.ZP)(!Gt.length,"Tree missing follow keys: ".concat(Gt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return qt===!0?lt=ee(Ct,et,tt,Xt):lt=Vt(Ct,qt.halfCheckedKeys,et,tt,Xt),lt}},67841:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Lt}});function Lt(ce,re){return ce[re]}},71430:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{F:function(){return dt},H8:function(){return ht},I8:function(){return rt},km:function(){return Gt},oH:function(){return tt},w$:function(){return Xt},zn:function(){return et}});var Lt=Ft(39559),ce=Ft(26407),re=Ft(33708),Ie=Ft(37061),ee=Ft(11592),Vt=Ft(2738),Mt=Ft(48736),jt=Ft(67841),qt=["children"];function bt(xt,Nt){return"".concat(xt,"-").concat(Nt)}function se(xt){return xt&&xt.type&&xt.type.isTreeNode}function Gt(xt,Nt){return xt!=null?xt:Nt}function Xt(xt){var Nt=xt||{},Ut=Nt.title,_t=Nt._title,oe=Nt.key,he=Nt.children,fe=Ut||"title";return{title:fe,_title:_t||[fe],key:oe||"key",children:he||"children"}}function Ct(xt,Nt){var Ut=new Map;function _t(oe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(oe||[]).forEach(function(fe){var Le=fe[Nt.key],te=fe[Nt.children];warning(Le!=null,"Tree node must have a certain key: [".concat(he).concat(Le,"]"));var He=String(Le);warning(!Ut.has(He)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(He)),Ut.set(He,!0),_t(te,"".concat(he).concat(He," > "))})}_t(xt)}function et(xt){function Nt(Ut){var _t=(0,ee.Z)(Ut);return _t.map(function(oe){if(!se(oe))return(0,Mt.ZP)(!oe,"Tree/TreeNode can only accept TreeNode as children."),null;var he=oe.key,fe=oe.props,Le=fe.children,te=(0,Ie.Z)(fe,qt),He=(0,re.Z)({key:he},te),Wt=Nt(Le);return Wt.length&&(He.children=Wt),He}).filter(function(oe){return oe})}return Nt(xt)}function tt(xt,Nt,Ut){var _t=Xt(Ut),oe=_t._title,he=_t.key,fe=_t.children,Le=new Set(Nt===!0?[]:Nt),te=[];function He(Wt){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Wt.map(function(_e,Ne){for(var Ge=bt(Ke?Ke.pos:"0",Ne),Ue=Gt(_e[he],Ge),ve,ne=0;ne<oe.length;ne+=1){var Ce=oe[ne];if(_e[Ce]!==void 0){ve=_e[Ce];break}}var bn=(0,re.Z)((0,re.Z)({},(0,Vt.Z)(_e,[].concat((0,ce.Z)(oe),[he,fe]))),{},{title:ve,key:Ue,parent:Ke,pos:Ge,children:null,data:_e,isStart:[].concat((0,ce.Z)(Ke?Ke.isStart:[]),[Ne===0]),isEnd:[].concat((0,ce.Z)(Ke?Ke.isEnd:[]),[Ne===Wt.length-1])});return te.push(bn),Nt===!0||Le.has(Ue)?bn.children=He(_e[fe]||[],bn):bn.children=[],bn})}return He(xt),te}function lt(xt,Nt,Ut){var _t={};(0,Lt.Z)(Ut)==="object"?_t=Ut:_t={externalGetKey:Ut},_t=_t||{};var oe=_t,he=oe.childrenPropName,fe=oe.externalGetKey,Le=oe.fieldNames,te=Xt(Le),He=te.key,Wt=te.children,Ke=he||Wt,_e;fe?typeof fe=="string"?_e=function(Ue){return Ue[fe]}:typeof fe=="function"&&(_e=function(Ue){return fe(Ue)}):_e=function(Ue,ve){return Gt(Ue[He],ve)};function Ne(Ge,Ue,ve,ne){var Ce=Ge?Ge[Ke]:xt,bn=Ge?bt(ve.pos,Ue):"0",Ln=Ge?[].concat((0,ce.Z)(ne),[Ge]):[];if(Ge){var Ve=_e(Ge,bn),Nn={node:Ge,index:Ue,pos:bn,key:Ve,parentPos:ve.node?ve.pos:null,level:ve.level+1,nodes:Ln};Nt(Nn)}Ce&&Ce.forEach(function(Zn,gi){Ne(Zn,gi,{node:Ge,pos:bn,level:ve?ve.level+1:-1},Ln)})}Ne(null)}function rt(xt){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=Nt.initWrapper,_t=Nt.processEntity,oe=Nt.onProcessFinished,he=Nt.externalGetKey,fe=Nt.childrenPropName,Le=Nt.fieldNames,te=arguments.length>2?arguments[2]:void 0,He=he||te,Wt={},Ke={},_e={posEntities:Wt,keyEntities:Ke};return Ut&&(_e=Ut(_e)||_e),lt(xt,function(Ne){var Ge=Ne.node,Ue=Ne.index,ve=Ne.pos,ne=Ne.key,Ce=Ne.parentPos,bn=Ne.level,Ln=Ne.nodes,Ve={node:Ge,nodes:Ln,index:Ue,key:ne,pos:ve,level:bn},Nn=Gt(ne,ve);Wt[ve]=Ve,Ke[Nn]=Ve,Ve.parent=Wt[Ce],Ve.parent&&(Ve.parent.children=Ve.parent.children||[],Ve.parent.children.push(Ve)),_t&&_t(Ve,_e)},{externalGetKey:He,childrenPropName:fe,fieldNames:Le}),oe&&oe(_e),_e}function ht(xt,Nt){var Ut=Nt.expandedKeys,_t=Nt.selectedKeys,oe=Nt.loadedKeys,he=Nt.loadingKeys,fe=Nt.checkedKeys,Le=Nt.halfCheckedKeys,te=Nt.dragOverNodeKey,He=Nt.dropPosition,Wt=Nt.keyEntities,Ke=(0,jt.Z)(Wt,xt),_e={eventKey:xt,expanded:Ut.indexOf(xt)!==-1,selected:_t.indexOf(xt)!==-1,loaded:oe.indexOf(xt)!==-1,loading:he.indexOf(xt)!==-1,checked:fe.indexOf(xt)!==-1,halfChecked:Le.indexOf(xt)!==-1,pos:String(Ke?Ke.pos:""),dragOver:te===xt&&He===0,dragOverGapTop:te===xt&&He===-1,dragOverGapBottom:te===xt&&He===1};return _e}function dt(xt){var Nt=xt.data,Ut=xt.expanded,_t=xt.selected,oe=xt.checked,he=xt.loaded,fe=xt.loading,Le=xt.halfChecked,te=xt.dragOver,He=xt.dragOverGapTop,Wt=xt.dragOverGapBottom,Ke=xt.pos,_e=xt.active,Ne=xt.eventKey,Ge=(0,re.Z)((0,re.Z)({},Nt),{},{expanded:Ut,selected:_t,checked:oe,loaded:he,loading:fe,halfChecked:Le,dragOver:te,dragOverGapTop:He,dragOverGapBottom:Wt,pos:Ke,active:_e,key:Ne});return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,Mt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),xt}}),Ge}},8224:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return ce}});var Lt=Ft(4676);function ce(re,Ie,ee,Vt){var Mt=Lt.unstable_batchedUpdates?function(qt){Lt.unstable_batchedUpdates(ee,qt)}:ee;return re!=null&&re.addEventListener&&re.addEventListener(Ie,Mt,Vt),{remove:function(){re!=null&&re.removeEventListener&&re.removeEventListener(Ie,Mt,Vt)}}}},55468:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{g1:function(){return se},os:function(){return Xt}});var Lt=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function Ie(Ct){return Ct.nodeType===1?Ct.ownerDocument.defaultView.getComputedStyle(Ct,null):{}}function ee(Ct,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return Ct.offsetHeight;if(et==="width")return Ct.offsetWidth}return et in ce||(ce[et]=Lt.test(et)),ce[et]?parseFloat(tt)||0:tt}function Vt(Ct,et){var tt=arguments.length,lt=Ie(Ct);return et=re[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,tt===1?lt:ee(Ct,et,lt[et]||Ct.style[et])}function Mt(Ct,et,tt){var lt=arguments.length;if(et=re[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,lt===3)return typeof tt=="number"&&Lt.test(et)&&(tt="".concat(tt,"px")),Ct.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&Mt(Ct,rt,et[rt]);return Ie(Ct)}function jt(Ct){return Ct===document.body?document.documentElement.clientWidth:Ct.offsetWidth}function qt(Ct){return Ct===document.body?window.innerHeight||document.documentElement.clientHeight:Ct.offsetHeight}function bt(){var Ct=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ct,height:et}}function se(){var Ct=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Ct,height:et}}function Gt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Xt(Ct){var et=Ct.getBoundingClientRect(),tt=document.documentElement;return{left:et.left+(window.pageXOffset||tt.scrollLeft)-(tt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||tt.scrollTop)-(tt.clientTop||document.body.clientTop||0)}}},24514:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{G:function(){return Ie}});var Lt=Ft(47273),ce=function(Vt){if((0,Lt.Z)()&&window.document.documentElement){var Mt=Array.isArray(Vt)?Vt:[Vt],jt=window.document.documentElement;return Mt.some(function(qt){return qt in jt.style})}return!1},re=function(Vt,Mt){if(!ce(Vt))return!1;var jt=document.createElement("div"),qt=jt.style[Vt];return jt.style[Vt]=Mt,jt.style[Vt]!==qt};function Ie(ee,Vt){return!Array.isArray(ee)&&Vt!==void 0?re(ee,Vt):ce(ee)}},4409:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return Ot}});var Lt=Ft(92413),ce=Ft(39559),re=Ft(33708),Ie=Ft(400),ee=Ft(33606),Vt=Ft(37061),Mt=Ft(92310),jt=Ft.n(Mt),qt=Ft(29301),bt=Ft(70425),se=Ft(34280),Gt=Ft(59301),Xt=Ft(4676),Ct=Gt.forwardRef(function(Tt,vt){var gt=Tt.height,ft=Tt.offsetY,At=Tt.offsetX,le=Tt.children,xe=Tt.prefixCls,ae=Tt.onInnerResize,ye=Tt.innerProps,Oe=Tt.rtl,Te=Tt.extra,Me={},on={display:"flex",flexDirection:"column"};return ft!==void 0&&(Me={height:gt,position:"relative",overflow:"hidden"},on=(0,re.Z)((0,re.Z)({},on),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(ft,"px)")},Oe?"marginRight":"marginLeft",-At),"position","absolute"),"left",0),"right",0),"top",0))),Gt.createElement("div",{style:Me},Gt.createElement(qt.Z,{onResize:function(sn){var ln=sn.offsetHeight;ln&&ae&&ae()}},Gt.createElement("div",(0,Lt.Z)({style:on,className:jt()((0,Ie.Z)({},"".concat(xe,"-holder-inner"),xe)),ref:vt},ye),le,Te)))});Ct.displayName="Filler";var et=Ct;function tt(Tt){var vt=Tt.children,gt=Tt.setRef,ft=Gt.useCallback(function(At){gt(At)},[]);return Gt.cloneElement(vt,{ref:ft})}function lt(Tt,vt,gt,ft,At,le,xe,ae){var ye=ae.getKey;return Tt.slice(vt,gt+1).map(function(Oe,Te){var Me=vt+Te,on=xe(Oe,Me,{style:{width:ft},offsetX:At}),Wn=ye(Oe);return Gt.createElement(tt,{key:Wn,setRef:function(ln){return le(Oe,ln)}},on)})}function rt(Tt,vt,gt,ft){var At=gt-Tt,le=vt-gt,xe=Math.min(At,le)*2;if(ft<=xe){var ae=Math.floor(ft/2);return ft%2?gt+ae+1:gt-ae}return At>le?gt-(ft-le):gt+(ft-At)}function ht(Tt,vt,gt){var ft=Tt.length,At=vt.length,le,xe;if(ft===0&&At===0)return null;ft<At?(le=Tt,xe=vt):(le=vt,xe=Tt);var ae={__EMPTY_ITEM__:!0};function ye(sn){return sn!==void 0?gt(sn):ae}for(var Oe=null,Te=Math.abs(ft-At)!==1,Me=0;Me<xe.length;Me+=1){var on=ye(le[Me]),Wn=ye(xe[Me]);if(on!==Wn){Oe=Me,Te=Te||on!==ye(xe[Me+1]);break}}return Oe===null?null:{index:Oe,multiple:Te}}function dt(Tt,vt,gt){var ft=Gt.useState(Tt),At=(0,ee.Z)(ft,2),le=At[0],xe=At[1],ae=Gt.useState(null),ye=(0,ee.Z)(ae,2),Oe=ye[0],Te=ye[1];return Gt.useEffect(function(){var Me=ht(le||[],Tt||[],vt);(Me==null?void 0:Me.index)!==void 0&&(gt==null||gt(Me.index),Te(Tt[Me.index])),xe(Tt)},[Tt]),[Oe]}var xt=Ft(16089),Nt=(typeof navigator=="undefined"?"undefined":(0,ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ut=Nt,_t=function(Tt,vt,gt,ft){var At=(0,Gt.useRef)(!1),le=(0,Gt.useRef)(null);function xe(){clearTimeout(le.current),At.current=!0,le.current=setTimeout(function(){At.current=!1},50)}var ae=(0,Gt.useRef)({top:Tt,bottom:vt,left:gt,right:ft});return ae.current.top=Tt,ae.current.bottom=vt,ae.current.left=gt,ae.current.right=ft,function(ye,Oe){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Me=ye?Oe<0&&ae.current.left||Oe>0&&ae.current.right:Oe<0&&ae.current.top||Oe>0&&ae.current.bottom;return Te&&Me?(clearTimeout(le.current),At.current=!1):(!Me||At.current)&&xe(),!At.current&&Me}};function oe(Tt,vt,gt,ft,At,le,xe){var ae=(0,Gt.useRef)(0),ye=(0,Gt.useRef)(null),Oe=(0,Gt.useRef)(null),Te=(0,Gt.useRef)(!1),Me=_t(vt,gt,ft,At);function on(On,Di){if(xt.Z.cancel(ye.current),!Me(!1,Di)){var nr=On;if(!nr._virtualHandled)nr._virtualHandled=!0;else return;ae.current+=Di,Oe.current=Di,Ut||nr.preventDefault(),ye.current=(0,xt.Z)(function(){var Xi=Te.current?10:1;xe(ae.current*Xi,!1),ae.current=0})}}function Wn(On,Di){xe(Di,!0),Ut||On.preventDefault()}var sn=(0,Gt.useRef)(null),ln=(0,Gt.useRef)(null);function Bn(On){if(Tt){xt.Z.cancel(ln.current),ln.current=(0,xt.Z)(function(){sn.current=null},2);var Di=On.deltaX,nr=On.deltaY,Xi=On.shiftKey,Mr=Di,br=nr;(sn.current==="sx"||!sn.current&&Xi&&nr&&!Di)&&(Mr=nr,br=0,sn.current="sx");var eo=Math.abs(Mr),Yr=Math.abs(br);sn.current===null&&(sn.current=le&&eo>Yr?"x":"y"),sn.current==="y"?on(On,br):Wn(On,Mr)}}function li(On){Tt&&(Te.current=On.detail===Oe.current)}return[Bn,li]}function he(Tt,vt,gt,ft){var At=Gt.useMemo(function(){return[new Map,[]]},[Tt,gt.id,ft]),le=(0,ee.Z)(At,2),xe=le[0],ae=le[1],ye=function(Te){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te,on=xe.get(Te),Wn=xe.get(Me);if(on===void 0||Wn===void 0)for(var sn=Tt.length,ln=ae.length;ln<sn;ln+=1){var Bn,li=Tt[ln],On=vt(li);xe.set(On,ln);var Di=(Bn=gt.get(On))!==null&&Bn!==void 0?Bn:ft;if(ae[ln]=(ae[ln-1]||0)+Di,On===Te&&(on=ln),On===Me&&(Wn=ln),on!==void 0&&Wn!==void 0)break}return{top:ae[on-1]||0,bottom:ae[Wn]}};return ye}var fe=Ft(76846),Le=Ft(6909),te=Ft(4771),He=function(){function Tt(){(0,Le.Z)(this,Tt),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,te.Z)(Tt,[{key:"set",value:function(gt,ft){this.maps[gt]=ft,this.id+=1,this.diffKeys.add(gt)}},{key:"get",value:function(gt){return this.maps[gt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Tt}(),Wt=He;function Ke(Tt){var vt=parseFloat(Tt);return isNaN(vt)?0:vt}function _e(Tt,vt,gt){var ft=Gt.useState(0),At=(0,ee.Z)(ft,2),le=At[0],xe=At[1],ae=(0,Gt.useRef)(new Map),ye=(0,Gt.useRef)(new Wt),Oe=(0,Gt.useRef)(0);function Te(){Oe.current+=1}function Me(){var Wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te();var sn=function(){var li=!1;ae.current.forEach(function(On,Di){if(On&&On.offsetParent){var nr=(0,fe.ZP)(On),Xi=nr.offsetHeight,Mr=getComputedStyle(nr),br=Mr.marginTop,eo=Mr.marginBottom,Yr=Ke(br),qr=Ke(eo),Ir=Xi+Yr+qr;ye.current.get(Di)!==Ir&&(ye.current.set(Di,Ir),li=!0)}}),li&&xe(function(On){return On+1})};if(Wn)sn();else{Oe.current+=1;var ln=Oe.current;Promise.resolve().then(function(){ln===Oe.current&&sn()})}}function on(Wn,sn){var ln=Tt(Wn),Bn=ae.current.get(ln);sn?(ae.current.set(ln,sn),Me()):ae.current.delete(ln),!Bn!=!sn&&(sn?vt==null||vt(Wn):gt==null||gt(Wn))}return(0,Gt.useEffect)(function(){return Te},[]),[on,Me,ye.current,le]}var Ne=14/15;function Ge(Tt,vt,gt){var ft=(0,Gt.useRef)(!1),At=(0,Gt.useRef)(0),le=(0,Gt.useRef)(0),xe=(0,Gt.useRef)(null),ae=(0,Gt.useRef)(null),ye,Oe=function(Wn){if(ft.current){var sn=Math.ceil(Wn.touches[0].pageX),ln=Math.ceil(Wn.touches[0].pageY),Bn=At.current-sn,li=le.current-ln,On=Math.abs(Bn)>Math.abs(li);On?At.current=sn:le.current=ln;var Di=gt(On,On?Bn:li,!1,Wn);Di&&Wn.preventDefault(),clearInterval(ae.current),Di&&(ae.current=setInterval(function(){On?Bn*=Ne:li*=Ne;var nr=Math.floor(On?Bn:li);(!gt(On,nr,!0)||Math.abs(nr)<=.1)&&clearInterval(ae.current)},16))}},Te=function(){ft.current=!1,ye()},Me=function(Wn){ye(),Wn.touches.length===1&&!ft.current&&(ft.current=!0,At.current=Math.ceil(Wn.touches[0].pageX),le.current=Math.ceil(Wn.touches[0].pageY),xe.current=Wn.target,xe.current.addEventListener("touchmove",Oe,{passive:!1}),xe.current.addEventListener("touchend",Te,{passive:!0}))};ye=function(){xe.current&&(xe.current.removeEventListener("touchmove",Oe),xe.current.removeEventListener("touchend",Te))},(0,se.Z)(function(){return Tt&&vt.current.addEventListener("touchstart",Me,{passive:!0}),function(){var on;(on=vt.current)===null||on===void 0||on.removeEventListener("touchstart",Me),ye(),clearInterval(ae.current)}},[Tt])}function Ue(Tt){return Math.floor(Math.pow(Tt,.5))}function ve(Tt,vt){var gt="touches"in Tt?Tt.touches[0]:Tt;return gt[vt?"pageX":"pageY"]-window[vt?"scrollX":"scrollY"]}function ne(Tt,vt,gt){Gt.useEffect(function(){var ft=vt.current;if(Tt&&ft){var At=!1,le,xe,ae=function(){xt.Z.cancel(le)},ye=function on(){ae(),le=(0,xt.Z)(function(){gt(xe),on()})},Oe=function(Wn){if(!Wn.target.draggable){var sn=Wn;sn._virtualHandled||(sn._virtualHandled=!0,At=!0)}},Te=function(){At=!1,ae()},Me=function(Wn){if(At){var sn=ve(Wn,!1),ln=ft.getBoundingClientRect(),Bn=ln.top,li=ln.bottom;if(sn<=Bn){var On=Bn-sn;xe=-Ue(On),ye()}else if(sn>=li){var Di=sn-li;xe=Ue(Di),ye()}else ae()}};return ft.addEventListener("mousedown",Oe),ft.ownerDocument.addEventListener("mouseup",Te),ft.ownerDocument.addEventListener("mousemove",Me),function(){ft.removeEventListener("mousedown",Oe),ft.ownerDocument.removeEventListener("mouseup",Te),ft.ownerDocument.removeEventListener("mousemove",Me),ae()}}},[Tt])}var Ce=10;function bn(Tt,vt,gt,ft,At,le,xe,ae){var ye=Gt.useRef(),Oe=Gt.useState(null),Te=(0,ee.Z)(Oe,2),Me=Te[0],on=Te[1];return(0,se.Z)(function(){if(Me&&Me.times<Ce){if(!Tt.current){on(function($t){return(0,re.Z)({},$t)});return}le();var Wn=Me.targetAlign,sn=Me.originAlign,ln=Me.index,Bn=Me.offset,li=Tt.current.clientHeight,On=!1,Di=Wn,nr=null;if(li){for(var Xi=Wn||sn,Mr=0,br=0,eo=0,Yr=Math.min(vt.length-1,ln),qr=0;qr<=Yr;qr+=1){var Ir=At(vt[qr]);br=Mr;var Xr=gt.get(Ir);eo=br+(Xr===void 0?ft:Xr),Mr=eo}for(var oo=Xi==="top"?Bn:li-Bn,jo=Yr;jo>=0;jo-=1){var ds=At(vt[jo]),no=gt.get(ds);if(no===void 0){On=!0;break}if(oo-=no,oo<=0)break}switch(Xi){case"top":nr=br-Bn;break;case"bottom":nr=eo-li+Bn;break;default:{var Is=Tt.current.scrollTop,xo=Is+li;br<Is?Di="top":eo>xo&&(Di="bottom")}}nr!==null&&xe(nr),nr!==Me.lastTop&&(On=!0)}On&&on((0,re.Z)((0,re.Z)({},Me),{},{times:Me.times+1,targetAlign:Di,lastTop:nr}))}},[Me,Tt.current]),function(Wn){if(Wn==null){ae();return}if(xt.Z.cancel(ye.current),typeof Wn=="number")xe(Wn);else if(Wn&&(0,ce.Z)(Wn)==="object"){var sn,ln=Wn.align;"index"in Wn?sn=Wn.index:sn=vt.findIndex(function(On){return At(On)===Wn.key});var Bn=Wn.offset,li=Bn===void 0?0:Bn;on({times:0,index:sn,offset:li,originAlign:ln})}}}var Ln=Gt.forwardRef(function(Tt,vt){var gt=Tt.prefixCls,ft=Tt.rtl,At=Tt.scrollOffset,le=Tt.scrollRange,xe=Tt.onStartMove,ae=Tt.onStopMove,ye=Tt.onScroll,Oe=Tt.horizontal,Te=Tt.spinSize,Me=Tt.containerSize,on=Tt.style,Wn=Tt.thumbStyle,sn=Tt.showScrollBar,ln=Gt.useState(!1),Bn=(0,ee.Z)(ln,2),li=Bn[0],On=Bn[1],Di=Gt.useState(null),nr=(0,ee.Z)(Di,2),Xi=nr[0],Mr=nr[1],br=Gt.useState(null),eo=(0,ee.Z)(br,2),Yr=eo[0],qr=eo[1],Ir=!ft,Xr=Gt.useRef(),oo=Gt.useRef(),jo=Gt.useState(sn),ds=(0,ee.Z)(jo,2),no=ds[0],Is=ds[1],xo=Gt.useRef(),$t=function(){sn===!0||sn===!1||(clearTimeout(xo.current),Is(!0),xo.current=setTimeout(function(){Is(!1)},3e3))},ni=le-Me||0,gs=Me-Te||0,ua=Gt.useMemo(function(){if(At===0||ni===0)return 0;var pi=At/ni;return pi*gs},[At,ni,gs]),Gs=function(xi){xi.stopPropagation(),xi.preventDefault()},ha=Gt.useRef({top:ua,dragging:li,pageY:Xi,startTop:Yr});ha.current={top:ua,dragging:li,pageY:Xi,startTop:Yr};var Ws=function(xi){On(!0),Mr(ve(xi,Oe)),qr(ha.current.top),xe(),xi.stopPropagation(),xi.preventDefault()};Gt.useEffect(function(){var pi=function(Cn){Cn.preventDefault()},xi=Xr.current,wn=oo.current;return xi.addEventListener("touchstart",pi,{passive:!1}),wn.addEventListener("touchstart",Ws,{passive:!1}),function(){xi.removeEventListener("touchstart",pi),wn.removeEventListener("touchstart",Ws)}},[]);var Hr=Gt.useRef();Hr.current=ni;var Xn=Gt.useRef();Xn.current=gs,Gt.useEffect(function(){if(li){var pi,xi=function(Cn){var Gn=ha.current,Ei=Gn.dragging,ei=Gn.pageY,gn=Gn.startTop;xt.Z.cancel(pi);var di=Xr.current.getBoundingClientRect(),Ni=Me/(Oe?di.width:di.height);if(Ei){var $i=(ve(Cn,Oe)-ei)*Ni,kn=gn;!Ir&&Oe?kn-=$i:kn+=$i;var yi=Hr.current,Br=Xn.current,dr=Br?kn/Br:0,zr=Math.ceil(dr*yi);zr=Math.max(zr,0),zr=Math.min(zr,yi),pi=(0,xt.Z)(function(){ye(zr,Oe)})}},wn=function(){On(!1),ae()};return window.addEventListener("mousemove",xi,{passive:!0}),window.addEventListener("touchmove",xi,{passive:!0}),window.addEventListener("mouseup",wn,{passive:!0}),window.addEventListener("touchend",wn,{passive:!0}),function(){window.removeEventListener("mousemove",xi),window.removeEventListener("touchmove",xi),window.removeEventListener("mouseup",wn),window.removeEventListener("touchend",wn),xt.Z.cancel(pi)}}},[li]),Gt.useEffect(function(){return $t(),function(){clearTimeout(xo.current)}},[At]),Gt.useImperativeHandle(vt,function(){return{delayHidden:$t}});var Hn="".concat(gt,"-scrollbar"),Mn={position:"absolute",visibility:no?null:"hidden"},qe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Oe?(Mn.height=8,Mn.left=0,Mn.right=0,Mn.bottom=0,qe.height="100%",qe.width=Te,Ir?qe.left=ua:qe.right=ua):(Mn.width=8,Mn.top=0,Mn.bottom=0,Ir?Mn.right=0:Mn.left=0,qe.width="100%",qe.height=Te,qe.top=ua),Gt.createElement("div",{ref:Xr,className:jt()(Hn,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Hn,"-horizontal"),Oe),"".concat(Hn,"-vertical"),!Oe),"".concat(Hn,"-visible"),no)),style:(0,re.Z)((0,re.Z)({},Mn),on),onMouseDown:Gs,onMouseMove:$t},Gt.createElement("div",{ref:oo,className:jt()("".concat(Hn,"-thumb"),(0,Ie.Z)({},"".concat(Hn,"-thumb-moving"),li)),style:(0,re.Z)((0,re.Z)({},qe),Wn),onMouseDown:Ws}))}),Ve=Ln,Nn=20;function Zn(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,gt=Tt/vt*Tt;return isNaN(gt)&&(gt=0),gt=Math.max(gt,Nn),Math.floor(gt)}var gi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Kn=[],Pi={overflowY:"auto",overflowAnchor:"none"};function tn(Tt,vt){var gt=Tt.prefixCls,ft=gt===void 0?"rc-virtual-list":gt,At=Tt.className,le=Tt.height,xe=Tt.itemHeight,ae=Tt.fullHeight,ye=ae===void 0?!0:ae,Oe=Tt.style,Te=Tt.data,Me=Tt.children,on=Tt.itemKey,Wn=Tt.virtual,sn=Tt.direction,ln=Tt.scrollWidth,Bn=Tt.component,li=Bn===void 0?"div":Bn,On=Tt.onScroll,Di=Tt.onVirtualScroll,nr=Tt.onVisibleChange,Xi=Tt.innerProps,Mr=Tt.extraRender,br=Tt.styles,eo=Tt.showScrollBar,Yr=eo===void 0?"optional":eo,qr=(0,Vt.Z)(Tt,gi),Ir=Gt.useCallback(function(is){return typeof on=="function"?on(is):is==null?void 0:is[on]},[on]),Xr=_e(Ir,null,null),oo=(0,ee.Z)(Xr,4),jo=oo[0],ds=oo[1],no=oo[2],Is=oo[3],xo=!!(Wn!==!1&&le&&xe),$t=Gt.useMemo(function(){return Object.values(no.maps).reduce(function(is,$o){return is+$o},0)},[no.id,no.maps]),ni=xo&&Te&&(Math.max(xe*Te.length,$t)>le||!!ln),gs=sn==="rtl",ua=jt()(ft,(0,Ie.Z)({},"".concat(ft,"-rtl"),gs),At),Gs=Te||Kn,ha=(0,Gt.useRef)(),Ws=(0,Gt.useRef)(),Hr=(0,Gt.useRef)(),Xn=(0,Gt.useState)(0),Hn=(0,ee.Z)(Xn,2),Mn=Hn[0],qe=Hn[1],pi=(0,Gt.useState)(0),xi=(0,ee.Z)(pi,2),wn=xi[0],Ee=xi[1],Cn=(0,Gt.useState)(!1),Gn=(0,ee.Z)(Cn,2),Ei=Gn[0],ei=Gn[1],gn=function(){ei(!0)},di=function(){ei(!1)},Ni={getKey:Ir};function $i(is){qe(function($o){var wo;typeof is=="function"?wo=is($o):wo=is;var ks=wi(wo);return ha.current.scrollTop=ks,ks})}var kn=(0,Gt.useRef)({start:0,end:Gs.length}),yi=(0,Gt.useRef)(),Br=dt(Gs,Ir),dr=(0,ee.Z)(Br,1),zr=dr[0];yi.current=zr;var cr=Gt.useMemo(function(){if(!xo)return{scrollHeight:void 0,start:0,end:Gs.length-1,offset:void 0};if(!ni){var is;return{scrollHeight:((is=Ws.current)===null||is===void 0?void 0:is.offsetHeight)||0,start:0,end:Gs.length-1,offset:void 0}}for(var $o=0,wo,ks,co,to=Gs.length,Uo=0;Uo<to;Uo+=1){var Ki=Gs[Uo],Ts=Ir(Ki),zs=no.get(Ts),Aa=$o+(zs===void 0?xe:zs);Aa>=Mn&&wo===void 0&&(wo=Uo,ks=$o),Aa>Mn+le&&co===void 0&&(co=Uo),$o=Aa}return wo===void 0&&(wo=0,ks=0,co=Math.ceil(le/xe)),co===void 0&&(co=Gs.length-1),co=Math.min(co+1,Gs.length-1),{scrollHeight:$o,start:wo,end:co,offset:ks}},[ni,xo,Mn,Gs,Is,le]),wr=cr.scrollHeight,or=cr.start,xr=cr.end,so=cr.offset;kn.current.start=or,kn.current.end=xr,Gt.useLayoutEffect(function(){var is=no.getRecord();if(is.size===1){var $o=Array.from(is)[0],wo=Ir(Gs[or]);if(wo===$o){var ks=no.get($o),co=ks-xe;$i(function(to){return to+co})}}no.resetRecord()},[wr]);var Yi=Gt.useState({width:0,height:le}),pr=(0,ee.Z)(Yi,2),yo=pr[0],Ss=pr[1],_o=function($o){Ss({width:$o.offsetWidth,height:$o.offsetHeight})},Dn=(0,Gt.useRef)(),Tr=(0,Gt.useRef)(),ao=Gt.useMemo(function(){return Zn(yo.width,ln)},[yo.width,ln]),Kr=Gt.useMemo(function(){return Zn(yo.height,wr)},[yo.height,wr]),qo=wr-le,Oo=(0,Gt.useRef)(qo);Oo.current=qo;function wi(is){var $o=is;return Number.isNaN(Oo.current)||($o=Math.min($o,Oo.current)),$o=Math.max($o,0),$o}var Po=Mn<=0,Rr=Mn>=qo,kr=wn<=0,Ci=wn>=ln,Lo=_t(Po,Rr,kr,Ci),Bi=function(){return{x:gs?-wn:wn,y:Mn}},Zo=(0,Gt.useRef)(Bi()),ra=(0,bt.useEvent)(function(is){if(Di){var $o=(0,re.Z)((0,re.Z)({},Bi()),is);(Zo.current.x!==$o.x||Zo.current.y!==$o.y)&&(Di($o),Zo.current=$o)}});function fs(is,$o){var wo=is;$o?((0,Xt.flushSync)(function(){Ee(wo)}),ra()):$i(wo)}function ba(is){var $o=is.currentTarget.scrollTop;$o!==Mn&&$i($o),On==null||On(is),ra()}var Vs=function($o){var wo=$o,ks=ln?ln-yo.width:0;return wo=Math.max(wo,0),wo=Math.min(wo,ks),wo},Mo=(0,bt.useEvent)(function(is,$o){$o?((0,Xt.flushSync)(function(){Ee(function(wo){var ks=wo+(gs?-is:is);return Vs(ks)})}),ra()):$i(function(wo){var ks=wo+is;return ks})}),Ho=oe(xo,Po,Rr,kr,Ci,!!ln,Mo),ps=(0,ee.Z)(Ho,2),ss=ps[0],gr=ps[1];Ge(xo,ha,function(is,$o,wo,ks){var co=ks;return Lo(is,$o,wo)?!1:!co||!co._virtualHandled?(co&&(co._virtualHandled=!0),ss({preventDefault:function(){},deltaX:is?$o:0,deltaY:is?0:$o}),!0):!1}),ne(ni,ha,function(is){$i(function($o){return $o+is})}),(0,se.Z)(function(){function is(wo){var ks=Po&&wo.detail<0,co=Rr&&wo.detail>0;xo&&!ks&&!co&&wo.preventDefault()}var $o=ha.current;return $o.addEventListener("wheel",ss,{passive:!1}),$o.addEventListener("DOMMouseScroll",gr,{passive:!0}),$o.addEventListener("MozMousePixelScroll",is,{passive:!1}),function(){$o.removeEventListener("wheel",ss),$o.removeEventListener("DOMMouseScroll",gr),$o.removeEventListener("MozMousePixelScroll",is)}},[xo,Po,Rr]),(0,se.Z)(function(){if(ln){var is=Vs(wn);Ee(is),ra({x:is})}},[yo.width,ln]);var ke=function(){var $o,wo;($o=Dn.current)===null||$o===void 0||$o.delayHidden(),(wo=Tr.current)===null||wo===void 0||wo.delayHidden()},ts=bn(ha,Gs,no,xe,Ir,function(){return ds(!0)},$i,ke);Gt.useImperativeHandle(vt,function(){return{nativeElement:Hr.current,getScrollInfo:Bi,scrollTo:function($o){function wo(ks){return ks&&(0,ce.Z)(ks)==="object"&&("left"in ks||"top"in ks)}wo($o)?($o.left!==void 0&&Ee(Vs($o.left)),ts($o.top)):ts($o)}}}),(0,se.Z)(function(){if(nr){var is=Gs.slice(or,xr+1);nr(is,Gs)}},[or,xr,Gs]);var Sa=he(Gs,Ir,no,xe),sl=Mr==null?void 0:Mr({start:or,end:xr,virtual:ni,offsetX:wn,offsetY:so,rtl:gs,getSize:Sa}),Ll=lt(Gs,or,xr,ln,wn,jo,Me,Ni),ml=null;le&&(ml=(0,re.Z)((0,Ie.Z)({},ye?"height":"maxHeight",le),Pi),xo&&(ml.overflowY="hidden",ln&&(ml.overflowX="hidden"),Ei&&(ml.pointerEvents="none")));var Ol={};return gs&&(Ol.dir="rtl"),Gt.createElement("div",(0,Lt.Z)({ref:Hr,style:(0,re.Z)((0,re.Z)({},Oe),{},{position:"relative"}),className:ua},Ol,qr),Gt.createElement(qt.Z,{onResize:_o},Gt.createElement(li,{className:"".concat(ft,"-holder"),style:ml,ref:ha,onScroll:ba,onMouseEnter:ke},Gt.createElement(et,{prefixCls:ft,height:wr,offsetX:wn,offsetY:so,scrollWidth:ln,onInnerResize:ds,ref:Ws,innerProps:Xi,rtl:gs,extra:sl},Ll))),ni&&wr>le&&Gt.createElement(Ve,{ref:Dn,prefixCls:ft,scrollOffset:Mn,scrollRange:wr,rtl:gs,onScroll:fs,onStartMove:gn,onStopMove:di,spinSize:Kr,containerSize:yo.height,style:br==null?void 0:br.verticalScrollBar,thumbStyle:br==null?void 0:br.verticalScrollBarThumb,showScrollBar:Yr}),ni&&ln>yo.width&&Gt.createElement(Ve,{ref:Tr,prefixCls:ft,scrollOffset:wn,scrollRange:ln,rtl:gs,onScroll:fs,onStartMove:gn,onStopMove:di,spinSize:ao,containerSize:yo.width,horizontal:!0,style:br==null?void 0:br.horizontalScrollBar,thumbStyle:br==null?void 0:br.horizontalScrollBarThumb,showScrollBar:Yr}))}var Li=Gt.forwardRef(tn);Li.displayName="List";var ji=Li,Ot=ji},2637:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Object.defineProperty(Sn,"DraggableCore",{enumerable:!0,get:function(){return jt.default}}),Sn.default=void 0;var Lt=Gt(Ft(59301)),ce=bt(Ft(12708)),re=bt(Ft(4676)),Ie=bt(Ft(57780)),ee=Ft(13957),Vt=Ft(60976),Mt=Ft(36641),jt=bt(Ft(80486)),qt=bt(Ft(94187));function bt(rt){return rt&&rt.__esModule?rt:{default:rt}}function se(rt){if(typeof WeakMap!="function")return null;var ht=new WeakMap,dt=new WeakMap;return(se=function(xt){return xt?dt:ht})(rt)}function Gt(rt,ht){if(!ht&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var dt=se(ht);if(dt&&dt.has(rt))return dt.get(rt);var xt={},Nt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ut in rt)if(Ut!=="default"&&Object.prototype.hasOwnProperty.call(rt,Ut)){var _t=Nt?Object.getOwnPropertyDescriptor(rt,Ut):null;_t&&(_t.get||_t.set)?Object.defineProperty(xt,Ut,_t):xt[Ut]=rt[Ut]}return xt.default=rt,dt&&dt.set(rt,xt),xt}function Xt(){return Xt=Object.assign?Object.assign.bind():function(rt){for(var ht=1;ht<arguments.length;ht++){var dt=arguments[ht];for(var xt in dt)Object.prototype.hasOwnProperty.call(dt,xt)&&(rt[xt]=dt[xt])}return rt},Xt.apply(this,arguments)}function Ct(rt,ht,dt){return ht=et(ht),ht in rt?Object.defineProperty(rt,ht,{value:dt,enumerable:!0,configurable:!0,writable:!0}):rt[ht]=dt,rt}function et(rt){var ht=tt(rt,"string");return typeof ht=="symbol"?ht:String(ht)}function tt(rt,ht){if(typeof rt!="object"||rt===null)return rt;var dt=rt[Symbol.toPrimitive];if(dt!==void 0){var xt=dt.call(rt,ht||"default");if(typeof xt!="object")return xt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ht==="string"?String:Number)(rt)}class lt extends Lt.Component{static getDerivedStateFromProps(ht,dt){let{position:xt}=ht,{prevPropsPosition:Nt}=dt;return xt&&(!Nt||xt.x!==Nt.x||xt.y!==Nt.y)?((0,qt.default)("Draggable: getDerivedStateFromProps %j",{position:xt,prevPropsPosition:Nt}),{x:xt.x,y:xt.y,prevPropsPosition:xg({},xt)}):null}constructor(ht){super(ht),Ct(this,"onDragStart",(dt,xt)=>{if((0,qt.default)("Draggable: onDragStart: %j",xt),this.props.onStart(dt,(0,Vt.createDraggableData)(this,xt))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ct(this,"onDrag",(dt,xt)=>{if(!this.state.dragging)return!1;(0,qt.default)("Draggable: onDrag: %j",xt);const Nt=(0,Vt.createDraggableData)(this,xt),Ut={x:Nt.x,y:Nt.y,slackX:0,slackY:0};if(this.props.bounds){const{x:oe,y:he}=Ut;Ut.x+=this.state.slackX,Ut.y+=this.state.slackY;const[fe,Le]=(0,Vt.getBoundPosition)(this,Ut.x,Ut.y);Ut.x=fe,Ut.y=Le,Ut.slackX=this.state.slackX+(oe-Ut.x),Ut.slackY=this.state.slackY+(he-Ut.y),Nt.x=Ut.x,Nt.y=Ut.y,Nt.deltaX=Ut.x-this.state.x,Nt.deltaY=Ut.y-this.state.y}if(this.props.onDrag(dt,Nt)===!1)return!1;this.setState(Ut)}),Ct(this,"onDragStop",(dt,xt)=>{if(!this.state.dragging||this.props.onStop(dt,(0,Vt.createDraggableData)(this,xt))===!1)return!1;(0,qt.default)("Draggable: onDragStop: %j",xt);const Ut={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:oe,y:he}=this.props.position;Ut.x=oe,Ut.y=he}this.setState(Ut)}),this.state={dragging:!1,dragged:!1,x:ht.position?ht.position.x:ht.defaultPosition.x,y:ht.position?ht.position.y:ht.defaultPosition.y,prevPropsPosition:xg({},ht.position),slackX:0,slackY:0,isElementSVG:!1},ht.position&&!(ht.onDrag||ht.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var ht,dt;return(ht=(dt=this.props)===null||dt===void 0||(dt=dt.nodeRef)===null||dt===void 0?void 0:dt.current)!==null&&ht!==void 0?ht:re.default.findDOMNode(this)}render(){const ve=this.props,{axis:ht,bounds:dt,children:xt,defaultPosition:Nt,defaultClassName:Ut,defaultClassNameDragging:_t,defaultClassNameDragged:oe,position:he,positionOffset:fe,scale:Le}=ve,te=Pw(ve,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let He={},Wt=null;const _e=!!!he||this.state.dragging,Ne=he||Nt,Ge={x:(0,Vt.canDragX)(this)&&_e?this.state.x:Ne.x,y:(0,Vt.canDragY)(this)&&_e?this.state.y:Ne.y};this.state.isElementSVG?Wt=(0,ee.createSVGTransform)(Ge,fe):He=(0,ee.createCSSTransform)(Ge,fe);const Ue=(0,Ie.default)(xt.props.className||"",Ut,{[_t]:this.state.dragging,[oe]:this.state.dragged});return Lt.createElement(jt.default,Xt({},te,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Lt.cloneElement(Lt.Children.only(xt),{className:Ue,style:xg(xg({},xt.props.style),He),transform:Wt}))}}Sn.default=lt,Ct(lt,"displayName","Draggable"),Ct(lt,"propTypes",Iy(xg({},jt.default.propTypes),{axis:ce.default.oneOf(["both","x","y","none"]),bounds:ce.default.oneOfType([ce.default.shape({left:ce.default.number,right:ce.default.number,top:ce.default.number,bottom:ce.default.number}),ce.default.string,ce.default.oneOf([!1])]),defaultClassName:ce.default.string,defaultClassNameDragging:ce.default.string,defaultClassNameDragged:ce.default.string,defaultPosition:ce.default.shape({x:ce.default.number,y:ce.default.number}),positionOffset:ce.default.shape({x:ce.default.oneOfType([ce.default.number,ce.default.string]),y:ce.default.oneOfType([ce.default.number,ce.default.string])}),position:ce.default.shape({x:ce.default.number,y:ce.default.number}),className:Mt.dontSetMe,style:Mt.dontSetMe,transform:Mt.dontSetMe})),Ct(lt,"defaultProps",Iy(xg({},jt.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var Lt=bt(Ft(59301)),ce=jt(Ft(12708)),re=jt(Ft(4676)),Ie=Ft(13957),ee=Ft(60976),Vt=Ft(36641),Mt=jt(Ft(94187));function jt(lt){return lt&&lt.__esModule?lt:{default:lt}}function qt(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ht=new WeakMap;return(qt=function(dt){return dt?ht:rt})(lt)}function bt(lt,rt){if(!rt&&lt&&lt.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ht=qt(rt);if(ht&&ht.has(lt))return ht.get(lt);var dt={},xt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Nt in lt)if(Nt!=="default"&&Object.prototype.hasOwnProperty.call(lt,Nt)){var Ut=xt?Object.getOwnPropertyDescriptor(lt,Nt):null;Ut&&(Ut.get||Ut.set)?Object.defineProperty(dt,Nt,Ut):dt[Nt]=lt[Nt]}return dt.default=lt,ht&&ht.set(lt,dt),dt}function se(lt,rt,ht){return rt=Gt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ht,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ht,lt}function Gt(lt){var rt=Xt(lt,"string");return typeof rt=="symbol"?rt:String(rt)}function Xt(lt,rt){if(typeof lt!="object"||lt===null)return lt;var ht=lt[Symbol.toPrimitive];if(ht!==void 0){var dt=ht.call(lt,rt||"default");if(typeof dt!="object")return dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(rt==="string"?String:Number)(lt)}const Ct={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=Ct.mouse;class tt extends Lt.Component{constructor(){super(...arguments),se(this,"dragging",!1),se(this,"lastX",NaN),se(this,"lastY",NaN),se(this,"touchIdentifier",null),se(this,"mounted",!1),se(this,"handleDragStart",rt=>{if(this.props.onMouseDown(rt),!this.props.allowAnyClick&&typeof rt.button=="number"&&rt.button!==0)return!1;const ht=this.findDOMNode();if(!ht||!ht.ownerDocument||!ht.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:dt}=ht;if(this.props.disabled||!(rt.target instanceof dt.defaultView.Node)||this.props.handle&&!(0,Ie.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ht)||this.props.cancel&&(0,Ie.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ht))return;rt.type==="touchstart"&&rt.preventDefault();const xt=(0,Ie.getTouchIdentifier)(rt);this.touchIdentifier=xt;const Nt=(0,ee.getControlPosition)(rt,xt,this);if(Nt==null)return;const{x:Ut,y:_t}=Nt,oe=(0,ee.createCoreData)(this,Ut,_t);(0,Mt.default)("DraggableCore: handleDragStart: %j",oe),(0,Mt.default)("calling",this.props.onStart),!(this.props.onStart(rt,oe)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ie.addUserSelectStyles)(dt),this.dragging=!0,this.lastX=Ut,this.lastY=_t,(0,Ie.addEvent)(dt,et.move,this.handleDrag),(0,Ie.addEvent)(dt,et.stop,this.handleDragStop))}),se(this,"handleDrag",rt=>{const ht=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:xt}=ht;if(Array.isArray(this.props.grid)){let _t=dt-this.lastX,oe=xt-this.lastY;if([_t,oe]=(0,ee.snapToGrid)(this.props.grid,_t,oe),!_t&&!oe)return;dt=this.lastX+_t,xt=this.lastY+oe}const Nt=(0,ee.createCoreData)(this,dt,xt);if((0,Mt.default)("DraggableCore: handleDrag: %j",Nt),this.props.onDrag(rt,Nt)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(_t){const oe=document.createEvent("MouseEvents");oe.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(oe)}return}this.lastX=dt,this.lastY=xt}),se(this,"handleDragStop",rt=>{if(!this.dragging)return;const ht=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:xt}=ht;if(Array.isArray(this.props.grid)){let oe=dt-this.lastX||0,he=xt-this.lastY||0;[oe,he]=(0,ee.snapToGrid)(this.props.grid,oe,he),dt=this.lastX+oe,xt=this.lastY+he}const Nt=(0,ee.createCoreData)(this,dt,xt);if(this.props.onStop(rt,Nt)===!1||this.mounted===!1)return!1;const _t=this.findDOMNode();_t&&this.props.enableUserSelectHack&&(0,Ie.removeUserSelectStyles)(_t.ownerDocument),(0,Mt.default)("DraggableCore: handleDragStop: %j",Nt),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,_t&&((0,Mt.default)("DraggableCore: Removing handlers"),(0,Ie.removeEvent)(_t.ownerDocument,et.move,this.handleDrag),(0,Ie.removeEvent)(_t.ownerDocument,et.stop,this.handleDragStop))}),se(this,"onMouseDown",rt=>(et=Ct.mouse,this.handleDragStart(rt))),se(this,"onMouseUp",rt=>(et=Ct.mouse,this.handleDragStop(rt))),se(this,"onTouchStart",rt=>(et=Ct.touch,this.handleDragStart(rt))),se(this,"onTouchEnd",rt=>(et=Ct.touch,this.handleDragStop(rt)))}componentDidMount(){this.mounted=!0;const rt=this.findDOMNode();rt&&(0,Ie.addEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ht}=rt;(0,Ie.removeEvent)(ht,Ct.mouse.move,this.handleDrag),(0,Ie.removeEvent)(ht,Ct.touch.move,this.handleDrag),(0,Ie.removeEvent)(ht,Ct.mouse.stop,this.handleDragStop),(0,Ie.removeEvent)(ht,Ct.touch.stop,this.handleDragStop),(0,Ie.removeEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ie.removeUserSelectStyles)(ht)}}findDOMNode(){var rt,ht;return(rt=this.props)!==null&&rt!==void 0&&rt.nodeRef?(ht=this.props)===null||ht===void 0||(ht=ht.nodeRef)===null||ht===void 0?void 0:ht.current:re.default.findDOMNode(this)}render(){return Lt.cloneElement(Lt.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Sn.default=tt,se(tt,"displayName","DraggableCore"),se(tt,"propTypes",{allowAnyClick:ce.default.bool,children:ce.default.node.isRequired,disabled:ce.default.bool,enableUserSelectHack:ce.default.bool,offsetParent:function(lt,rt){if(lt[rt]&&lt[rt].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ce.default.arrayOf(ce.default.number),handle:ce.default.string,cancel:ce.default.string,nodeRef:ce.default.object,onStart:ce.default.func,onDrag:ce.default.func,onStop:ce.default.func,onMouseDown:ce.default.func,scale:ce.default.number,className:Vt.dontSetMe,style:Vt.dontSetMe,transform:Vt.dontSetMe}),se(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(hi,Sn,Ft){"use strict";const{default:Lt,DraggableCore:ce}=Ft(2637);hi.exports=Lt,hi.exports.default=Lt,hi.exports.DraggableCore=ce},13957:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.addClassName=Nt,Sn.addEvent=jt,Sn.addUserSelectStyles=dt,Sn.createCSSTransform=et,Sn.createSVGTransform=tt,Sn.getTouch=rt,Sn.getTouchIdentifier=ht,Sn.getTranslation=lt,Sn.innerHeight=Gt,Sn.innerWidth=Xt,Sn.matchesSelector=Vt,Sn.matchesSelectorAndParentsTo=Mt,Sn.offsetXYFromParent=Ct,Sn.outerHeight=bt,Sn.outerWidth=se,Sn.removeClassName=Ut,Sn.removeEvent=qt,Sn.removeUserSelectStyles=xt;var Lt=Ft(36641),ce=Ie(Ft(1750));function re(_t){if(typeof WeakMap!="function")return null;var oe=new WeakMap,he=new WeakMap;return(re=function(fe){return fe?he:oe})(_t)}function Ie(_t,oe){if(!oe&&_t&&_t.__esModule)return _t;if(_t===null||typeof _t!="object"&&typeof _t!="function")return{default:_t};var he=re(oe);if(he&&he.has(_t))return he.get(_t);var fe={},Le=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in _t)if(te!=="default"&&Object.prototype.hasOwnProperty.call(_t,te)){var He=Le?Object.getOwnPropertyDescriptor(_t,te):null;He&&(He.get||He.set)?Object.defineProperty(fe,te,He):fe[te]=_t[te]}return fe.default=_t,he&&he.set(_t,fe),fe}let ee="";function Vt(_t,oe){return ee||(ee=(0,Lt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(he){return(0,Lt.isFunction)(_t[he])})),(0,Lt.isFunction)(_t[ee])?_t[ee](oe):!1}function Mt(_t,oe,he){let fe=_t;do{if(Vt(fe,oe))return!0;if(fe===he)return!1;fe=fe.parentNode}while(fe);return!1}function jt(_t,oe,he,fe){if(!_t)return;const Le=xg({capture:!0},fe);_t.addEventListener?_t.addEventListener(oe,he,Le):_t.attachEvent?_t.attachEvent("on"+oe,he):_t["on"+oe]=he}function qt(_t,oe,he,fe){if(!_t)return;const Le=xg({capture:!0},fe);_t.removeEventListener?_t.removeEventListener(oe,he,Le):_t.detachEvent?_t.detachEvent("on"+oe,he):_t["on"+oe]=null}function bt(_t){let oe=_t.clientHeight;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return oe+=(0,Lt.int)(he.borderTopWidth),oe+=(0,Lt.int)(he.borderBottomWidth),oe}function se(_t){let oe=_t.clientWidth;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return oe+=(0,Lt.int)(he.borderLeftWidth),oe+=(0,Lt.int)(he.borderRightWidth),oe}function Gt(_t){let oe=_t.clientHeight;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return oe-=(0,Lt.int)(he.paddingTop),oe-=(0,Lt.int)(he.paddingBottom),oe}function Xt(_t){let oe=_t.clientWidth;const he=_t.ownerDocument.defaultView.getComputedStyle(_t);return oe-=(0,Lt.int)(he.paddingLeft),oe-=(0,Lt.int)(he.paddingRight),oe}function Ct(_t,oe,he){const Le=oe===oe.ownerDocument.body?{left:0,top:0}:oe.getBoundingClientRect(),te=(_t.clientX+oe.scrollLeft-Le.left)/he,He=(_t.clientY+oe.scrollTop-Le.top)/he;return{x:te,y:He}}function et(_t,oe){const he=lt(_t,oe,"px");return{[(0,ce.browserPrefixToKey)("transform",ce.default)]:he}}function tt(_t,oe){return lt(_t,oe,"")}function lt(_t,oe,he){let{x:fe,y:Le}=_t,te="translate(".concat(fe).concat(he,",").concat(Le).concat(he,")");if(oe){const He="".concat(typeof oe.x=="string"?oe.x:oe.x+he),Wt="".concat(typeof oe.y=="string"?oe.y:oe.y+he);te="translate(".concat(He,", ").concat(Wt,")")+te}return te}function rt(_t,oe){return _t.targetTouches&&(0,Lt.findInArray)(_t.targetTouches,he=>oe===he.identifier)||_t.changedTouches&&(0,Lt.findInArray)(_t.changedTouches,he=>oe===he.identifier)}function ht(_t){if(_t.targetTouches&&_t.targetTouches[0])return _t.targetTouches[0].identifier;if(_t.changedTouches&&_t.changedTouches[0])return _t.changedTouches[0].identifier}function dt(_t){if(!_t)return;let oe=_t.getElementById("react-draggable-style-el");oe||(oe=_t.createElement("style"),oe.type="text/css",oe.id="react-draggable-style-el",oe.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,oe.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,_t.getElementsByTagName("head")[0].appendChild(oe)),_t.body&&Nt(_t.body,"react-draggable-transparent-selection")}function xt(_t){if(_t)try{if(_t.body&&Ut(_t.body,"react-draggable-transparent-selection"),_t.selection)_t.selection.empty();else{const oe=(_t.defaultView||window).getSelection();oe&&oe.type!=="Caret"&&oe.removeAllRanges()}}catch(oe){}}function Nt(_t,oe){_t.classList?_t.classList.add(oe):_t.className.match(new RegExp("(?:^|\\s)".concat(oe,"(?!\\S)")))||(_t.className+=" ".concat(oe))}function Ut(_t,oe){_t.classList?_t.classList.remove(oe):_t.className=_t.className.replace(new RegExp("(?:^|\\s)".concat(oe,"(?!\\S)"),"g"),"")}},1750:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.browserPrefixToKey=ce,Sn.browserPrefixToStyle=re,Sn.default=void 0,Sn.getPrefix=Lt;const Ft=["Moz","Webkit","O","ms"];function Lt(){var Vt;let Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const jt=(Vt=window.document)===null||Vt===void 0||(Vt=Vt.documentElement)===null||Vt===void 0?void 0:Vt.style;if(!jt||Mt in jt)return"";for(let qt=0;qt<Ft.length;qt++)if(ce(Mt,Ft[qt])in jt)return Ft[qt];return""}function ce(Vt,Mt){return Mt?"".concat(Mt).concat(Ie(Vt)):Vt}function re(Vt,Mt){return Mt?"-".concat(Mt.toLowerCase(),"-").concat(Vt):Vt}function Ie(Vt){let Mt="",jt=!0;for(let qt=0;qt<Vt.length;qt++)jt?(Mt+=Vt[qt].toUpperCase(),jt=!1):Vt[qt]==="-"?jt=!0:Mt+=Vt[qt];return Mt}var ee=Sn.default=Lt()},94187:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=Ft;function Ft(){}},60976:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.canDragX=ee,Sn.canDragY=Vt,Sn.createCoreData=jt,Sn.createDraggableData=qt,Sn.getBoundPosition=re,Sn.getControlPosition=Mt,Sn.snapToGrid=Ie;var Lt=Ft(36641),ce=Ft(13957);function re(Gt,Xt,Ct){if(!Gt.props.bounds)return[Xt,Ct];let{bounds:et}=Gt.props;et=typeof et=="string"?et:bt(et);const tt=se(Gt);if(typeof et=="string"){const{ownerDocument:lt}=tt,rt=lt.defaultView;let ht;if(et==="parent"?ht=tt.parentNode:ht=lt.querySelector(et),!(ht instanceof rt.HTMLElement))throw new Error('Bounds selector "'+et+'" could not find an element.');const dt=ht,xt=rt.getComputedStyle(tt),Nt=rt.getComputedStyle(dt);et={left:-tt.offsetLeft+(0,Lt.int)(Nt.paddingLeft)+(0,Lt.int)(xt.marginLeft),top:-tt.offsetTop+(0,Lt.int)(Nt.paddingTop)+(0,Lt.int)(xt.marginTop),right:(0,ce.innerWidth)(dt)-(0,ce.outerWidth)(tt)-tt.offsetLeft+(0,Lt.int)(Nt.paddingRight)-(0,Lt.int)(xt.marginRight),bottom:(0,ce.innerHeight)(dt)-(0,ce.outerHeight)(tt)-tt.offsetTop+(0,Lt.int)(Nt.paddingBottom)-(0,Lt.int)(xt.marginBottom)}}return(0,Lt.isNum)(et.right)&&(Xt=Math.min(Xt,et.right)),(0,Lt.isNum)(et.bottom)&&(Ct=Math.min(Ct,et.bottom)),(0,Lt.isNum)(et.left)&&(Xt=Math.max(Xt,et.left)),(0,Lt.isNum)(et.top)&&(Ct=Math.max(Ct,et.top)),[Xt,Ct]}function Ie(Gt,Xt,Ct){const et=Math.round(Xt/Gt[0])*Gt[0],tt=Math.round(Ct/Gt[1])*Gt[1];return[et,tt]}function ee(Gt){return Gt.props.axis==="both"||Gt.props.axis==="x"}function Vt(Gt){return Gt.props.axis==="both"||Gt.props.axis==="y"}function Mt(Gt,Xt,Ct){const et=typeof Xt=="number"?(0,ce.getTouch)(Gt,Xt):null;if(typeof Xt=="number"&&!et)return null;const tt=se(Ct),lt=Ct.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ce.offsetXYFromParent)(et||Gt,lt,Ct.props.scale)}function jt(Gt,Xt,Ct){const et=!(0,Lt.isNum)(Gt.lastX),tt=se(Gt);return et?{node:tt,deltaX:0,deltaY:0,lastX:Xt,lastY:Ct,x:Xt,y:Ct}:{node:tt,deltaX:Xt-Gt.lastX,deltaY:Ct-Gt.lastY,lastX:Gt.lastX,lastY:Gt.lastY,x:Xt,y:Ct}}function qt(Gt,Xt){const Ct=Gt.props.scale;return{node:Xt.node,x:Gt.state.x+Xt.deltaX/Ct,y:Gt.state.y+Xt.deltaY/Ct,deltaX:Xt.deltaX/Ct,deltaY:Xt.deltaY/Ct,lastX:Gt.state.x,lastY:Gt.state.y}}function bt(Gt){return{left:Gt.left,top:Gt.top,right:Gt.right,bottom:Gt.bottom}}function se(Gt){const Xt=Gt.findDOMNode();if(!Xt)throw new Error("<DraggableCore>: Unmounted during event!");return Xt}},36641:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.dontSetMe=Ie,Sn.findInArray=Ft,Sn.int=re,Sn.isFunction=Lt,Sn.isNum=ce;function Ft(ee,Vt){for(let Mt=0,jt=ee.length;Mt<jt;Mt++)if(Vt.apply(Vt,[ee[Mt],Mt,ee]))return ee[Mt]}function Lt(ee){return typeof ee=="function"||Object.prototype.toString.call(ee)==="[object Function]"}function ce(ee){return typeof ee=="number"&&!isNaN(ee)}function re(ee){return parseInt(ee,10)}function Ie(ee,Vt,Mt){if(ee[Vt])return new Error("Invalid prop ".concat(Vt," passed to ").concat(Mt," - do not set this, set it on the child."))}},27774:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.SizeSensorId=Sn.SensorTabIndex=Sn.SensorClassName=void 0;var Ft="size-sensor-id";Sn.SizeSensorId=Ft;var Lt="size-sensor-object";Sn.SensorClassName=Lt;var ce="-1";Sn.SensorTabIndex=ce},79301:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var Ft=function(ce){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Ie=null;return function(){for(var ee=this,Vt=arguments.length,Mt=new Array(Vt),jt=0;jt<Vt;jt++)Mt[jt]=arguments[jt];clearTimeout(Ie),Ie=setTimeout(function(){ce.apply(ee,Mt)},re)}};Sn.default=Ft},79789:function(hi,Sn){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var Ft=1,Lt=function(){return"".concat(Ft++)};Sn.default=Lt},47242:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.ver=Sn.clear=Sn.bind=void 0;var Lt=Ft(95270),ce=function(Vt,Mt){var jt=(0,Lt.getSensor)(Vt);return jt.bind(Mt),function(){jt.unbind(Mt)}};Sn.bind=ce;var re=function(Vt){var Mt=(0,Lt.getSensor)(Vt);(0,Lt.removeSensor)(Mt)};Sn.clear=re;var Ie="1.0.2";Sn.ver=Ie},95270:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.removeSensor=Sn.getSensor=Sn.Sensors=void 0;var Lt=Ie(Ft(79789)),ce=Ft(57829),re=Ft(27774);function Ie(qt){return qt&&qt.__esModule?qt:{default:qt}}var ee={};Sn.Sensors=ee;function Vt(qt){qt&&ee[qt]&&delete ee[qt]}var Mt=function(bt){var se=bt.getAttribute(re.SizeSensorId);if(se&&ee[se])return ee[se];var Gt=(0,Lt.default)();bt.setAttribute(re.SizeSensorId,Gt);var Xt=(0,ce.createSensor)(bt,function(){return Vt(Gt)});return ee[Gt]=Xt,Xt};Sn.getSensor=Mt;var jt=function(bt){var se=bt.element.getAttribute(re.SizeSensorId);bt.destroy(),Vt(se)};Sn.removeSensor=jt},57829:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.createSensor=void 0;var Lt=Ft(20953),ce=Ft(55202),re=typeof ResizeObserver!="undefined"?ce.createSensor:Lt.createSensor;Sn.createSensor=re},20953:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.createSensor=void 0;var Lt=re(Ft(79301)),ce=Ft(27774);function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var Ie=function(Vt,Mt){var jt=void 0,qt=[],bt=function(){getComputedStyle(Vt).position==="static"&&(Vt.style.position="relative");var tt=document.createElement("object");return tt.onload=function(){tt.contentDocument.defaultView.addEventListener("resize",se),se()},tt.style.display="block",tt.style.position="absolute",tt.style.top="0",tt.style.left="0",tt.style.height="100%",tt.style.width="100%",tt.style.overflow="hidden",tt.style.pointerEvents="none",tt.style.zIndex="-1",tt.style.opacity="0",tt.setAttribute("class",ce.SensorClassName),tt.setAttribute("tabindex",ce.SensorTabIndex),tt.type="text/html",Vt.appendChild(tt),tt.data="about:blank",tt},se=(0,Lt.default)(function(){qt.forEach(function(et){et(Vt)})}),Gt=function(tt){jt||(jt=bt()),qt.indexOf(tt)===-1&&qt.push(tt)},Xt=function(){jt&&jt.parentNode&&(jt.contentDocument&&jt.contentDocument.defaultView.removeEventListener("resize",se),jt.parentNode.removeChild(jt),Vt.removeAttribute(ce.SizeSensorId),jt=void 0,qt=[],Mt&&Mt())},Ct=function(tt){var lt=qt.indexOf(tt);lt!==-1&&qt.splice(lt,1),qt.length===0&&jt&&Xt()};return{element:Vt,bind:Gt,destroy:Xt,unbind:Ct}};Sn.createSensor=Ie},55202:function(hi,Sn,Ft){"use strict";Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.createSensor=void 0;var Lt=Ft(27774),ce=re(Ft(79301));function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var Ie=function(Vt,Mt){var jt=void 0,qt=[],bt=(0,ce.default)(function(){qt.forEach(function(et){et(Vt)})}),se=function(){var tt=new ResizeObserver(bt);return tt.observe(Vt),bt(),tt},Gt=function(tt){jt||(jt=se()),qt.indexOf(tt)===-1&&qt.push(tt)},Xt=function(){jt.disconnect(),qt=[],jt=void 0,Vt.removeAttribute(Lt.SizeSensorId),Mt&&Mt()},Ct=function(tt){var lt=qt.indexOf(tt);lt!==-1&&qt.splice(lt,1),qt.length===0&&jt&&Xt()};return{element:Vt,bind:Gt,destroy:Xt,unbind:Ct}};Sn.createSensor=Ie},93314:function(hi){"use strict";hi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(hi){"use strict";hi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(hi){"use strict";hi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(hi){"use strict";hi.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(hi,Sn,Ft){"use strict";Ft.d(Sn,{Z:function(){return jt}});const Lt=qt=>typeof qt=="object"&&qt!=null&&qt.nodeType===1,ce=(qt,bt)=>(!bt||qt!=="hidden")&&qt!=="visible"&&qt!=="clip",re=(qt,bt)=>{if(qt.clientHeight<qt.scrollHeight||qt.clientWidth<qt.scrollWidth){const se=getComputedStyle(qt,null);return ce(se.overflowY,bt)||ce(se.overflowX,bt)||(Gt=>{const Xt=(Ct=>{if(!Ct.ownerDocument||!Ct.ownerDocument.defaultView)return null;try{return Ct.ownerDocument.defaultView.frameElement}catch(et){return null}})(Gt);return!!Xt&&(Xt.clientHeight<Gt.scrollHeight||Xt.clientWidth<Gt.scrollWidth)})(qt)}return!1},Ie=(qt,bt,se,Gt,Xt,Ct,et,tt)=>Ct<qt&&et>bt||Ct>qt&&et<bt?0:Ct<=qt&&tt<=se||et>=bt&&tt>=se?Ct-qt-Gt:et>bt&&tt<se||Ct<qt&&tt>se?et-bt+Xt:0,ee=qt=>{const bt=qt.parentElement;return bt==null?qt.getRootNode().host||null:bt},Vt=(qt,bt)=>{var se,Gt,Xt,Ct;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ht}=bt,dt=typeof rt=="function"?rt:Ln=>Ln!==rt;if(!Lt(qt))throw new TypeError("Invalid target");const xt=document.scrollingElement||document.documentElement,Nt=[];let Ut=qt;for(;Lt(Ut)&&dt(Ut);){if(Ut=ee(Ut),Ut===xt){Nt.push(Ut);break}Ut!=null&&Ut===document.body&&re(Ut)&&!re(document.documentElement)||Ut!=null&&re(Ut,ht)&&Nt.push(Ut)}const _t=(Gt=(se=window.visualViewport)==null?void 0:se.width)!=null?Gt:innerWidth,oe=(Ct=(Xt=window.visualViewport)==null?void 0:Xt.height)!=null?Ct:innerHeight,{scrollX:he,scrollY:fe}=window,{height:Le,width:te,top:He,right:Wt,bottom:Ke,left:_e}=qt.getBoundingClientRect(),{top:Ne,right:Ge,bottom:Ue,left:ve}=(Ln=>{const Ve=window.getComputedStyle(Ln);return{top:parseFloat(Ve.scrollMarginTop)||0,right:parseFloat(Ve.scrollMarginRight)||0,bottom:parseFloat(Ve.scrollMarginBottom)||0,left:parseFloat(Ve.scrollMarginLeft)||0}})(qt);let ne=tt==="start"||tt==="nearest"?He-Ne:tt==="end"?Ke+Ue:He+Le/2-Ne+Ue,Ce=lt==="center"?_e+te/2-ve+Ge:lt==="end"?Wt+Ge:_e-ve;const bn=[];for(let Ln=0;Ln<Nt.length;Ln++){const Ve=Nt[Ln],{height:Nn,width:Zn,top:gi,right:Kn,bottom:Pi,left:tn}=Ve.getBoundingClientRect();if(et==="if-needed"&&He>=0&&_e>=0&&Ke<=oe&&Wt<=_t&&(Ve===xt&&!re(Ve)||He>=gi&&Ke<=Pi&&_e>=tn&&Wt<=Kn))return bn;const Li=getComputedStyle(Ve),ji=parseInt(Li.borderLeftWidth,10),Ot=parseInt(Li.borderTopWidth,10),Tt=parseInt(Li.borderRightWidth,10),vt=parseInt(Li.borderBottomWidth,10);let gt=0,ft=0;const At="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-ji-Tt:0,le="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-Ot-vt:0,xe="offsetWidth"in Ve?Ve.offsetWidth===0?0:Zn/Ve.offsetWidth:0,ae="offsetHeight"in Ve?Ve.offsetHeight===0?0:Nn/Ve.offsetHeight:0;if(xt===Ve)gt=tt==="start"?ne:tt==="end"?ne-oe:tt==="nearest"?Ie(fe,fe+oe,oe,Ot,vt,fe+ne,fe+ne+Le,Le):ne-oe/2,ft=lt==="start"?Ce:lt==="center"?Ce-_t/2:lt==="end"?Ce-_t:Ie(he,he+_t,_t,ji,Tt,he+Ce,he+Ce+te,te),gt=Math.max(0,gt+fe),ft=Math.max(0,ft+he);else{gt=tt==="start"?ne-gi-Ot:tt==="end"?ne-Pi+vt+le:tt==="nearest"?Ie(gi,Pi,Nn,Ot,vt+le,ne,ne+Le,Le):ne-(gi+Nn/2)+le/2,ft=lt==="start"?Ce-tn-ji:lt==="center"?Ce-(tn+Zn/2)+At/2:lt==="end"?Ce-Kn+Tt+At:Ie(tn,Kn,Zn,ji,Tt+At,Ce,Ce+te,te);const{scrollLeft:ye,scrollTop:Oe}=Ve;gt=ae===0?0:Math.max(0,Math.min(Oe+gt/ae,Ve.scrollHeight-Nn/ae+le)),ft=xe===0?0:Math.max(0,Math.min(ye+ft/xe,Ve.scrollWidth-Zn/xe+At)),ne+=Oe-gt,Ce+=ye-ft}bn.push({el:Ve,top:gt,left:ft})}return bn},Mt=qt=>qt===!1?{block:"end",inline:"nearest"}:(bt=>bt===Object(bt)&&Object.keys(bt).length!==0)(qt)?qt:{block:"start",inline:"nearest"};function jt(qt,bt){if(!qt.isConnected||!(Xt=>{let Ct=Xt;for(;Ct&&Ct.parentNode;){if(Ct.parentNode===document)return!0;Ct=Ct.parentNode instanceof ShadowRoot?Ct.parentNode.host:Ct.parentNode}return!1})(qt))return;const se=(Xt=>{const Ct=window.getComputedStyle(Xt);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(qt);if((Xt=>typeof Xt=="object"&&typeof Xt.behavior=="function")(bt))return bt.behavior(Vt(qt,bt));const Gt=typeof bt=="boolean"||bt==null?void 0:bt.behavior;for(const{el:Xt,top:Ct,left:et}of Vt(qt,Mt(bt))){const tt=Ct-se.top+se.bottom,lt=et-se.left+se.right;Xt.scroll({top:tt,left:lt,behavior:Gt})}}}}]);
}());