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,Cn,Ft)=>Cn in hi?sx(hi,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):hi[Cn]=Ft,xg=(hi,Cn)=>{for(var Ft in Cn||(Cn={}))Cw.call(Cn,Ft)&&Sw(hi,Ft,Cn[Ft]);if(vv)for(var Ft of vv(Cn))Bw.call(Cn,Ft)&&Sw(hi,Ft,Cn[Ft]);return hi},Iy=(hi,Cn)=>ax(hi,lx(Cn));var Pw=(hi,Cn)=>{var Ft={};for(var Lt in hi)Cw.call(hi,Lt)&&Cn.indexOf(Lt)<0&&(Ft[Lt]=hi[Lt]);if(hi!=null&&vv)for(var Lt of vv(hi))Cn.indexOf(Lt)<0&&Bw.call(hi,Lt)&&(Ft[Lt]=hi[Lt]);return Ft};(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},89489:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},59477:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},40001:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},26227:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},49198:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},87169:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},73331:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},15277:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},52671:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},8657:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},56082:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},33853:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},15075:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},43531:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},61485:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},38819:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},47472:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},95869:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(Pt,oe){return ce.createElement(ee.Z,(0,Lt.Z)({},Pt,{ref:oe,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt},78780:function(){"use strict"},19136:function(){"use strict"},11570:function(hi,Cn){"use strict";Cn.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 Cn=[];function Ft(Ct,et){var tt=Cn.pop();return tt===void 0?new go.Point(Ct,et):(tt.x=Ct,tt.y=et,tt)}function Lt(){var Ct=Cn.pop();return Ct===void 0?new go.Point:Ct}function ce(Ct){Cn.push(Ct)}function re(Ct,et,tt,lt,rt,ht,dt,xt,Nt){Nt||(Nt=new go.Point);var Ut=Ct-tt,Gt=rt-dt,se=NaN,le=NaN;if(Ut===0)if(Gt===0)Ct===tt&&(se=Ct,le=et);else{var Ae=(ht-xt)/Gt,Pe=ht-Ae*rt;se=Ct,le=Ae*se+Pe}else if(Gt===0){var qt=(et-lt)/Ut,ze=et-qt*Ct;se=rt,le=qt*se+ze}else{var qt=(et-lt)/Ut,Ae=(ht-xt)/Gt,ze=et-qt*Ct,Pe=ht-Ae*rt;se=(Pe-ze)/(qt-Ae),le=qt*se+ze}return Nt.x=se,Nt.y=le,Nt}function ke(Ct,et,tt,lt,rt,ht,dt,xt,Nt,Ut,Gt,se,le,Ae){var Pe=1-Nt,qt=Nt,ze=Ct*Pe+tt*qt,Wt=et*Pe+lt*qt,Ge=tt*Pe+rt*qt,_e=lt*Pe+ht*qt,Ne=rt*Pe+dt*qt,We=ht*Pe+xt*qt,Re=ze*Pe+Ge*qt,ve=Wt*Pe+_e*qt,ne=Ge*Pe+Ne*qt,Ce=_e*Pe+We*qt,bn=Re*Pe+ne*qt,Ln=ve*Pe+Ce*qt;Ut.x=ze,Ut.y=Wt,Gt.x=Re,Gt.y=ve,se.x=bn,se.y=Ln,le.x=ne,le.y=Ce,Ae.x=Ne,Ae.y=We}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 te(){var Ct=jt.pop();return Ct===void 0?[]:Ct}function Pt(Ct){Ct.length=0,jt.push(Ct)}function oe(Ct){for(var et=te(),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 Kt(Ct){var et=$t(Ct),tt=te();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 Pt(et),tt}function $t(Ct){for(var et=oe(Ct),tt=te(),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],Gt=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,Gt.x,Gt.y,new go.Point)}return tt[tt.length]=tt[0],Pt(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(Ct,et,tt){var lt=oe(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()),Pt(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=oe(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()),Pt(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=oe(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()),Pt(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=oe(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()),Pt(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=oe(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()),Pt(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=oe(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()),Pt(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=oe(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()),Pt(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=$t(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()),Pt(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=$t(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()),Pt(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=$t(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()),Pt(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=$t(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()),Pt(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=$t(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()),Pt(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=$t(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()),Pt(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=Kt(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(),Pt(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=Kt(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(),Pt(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=Kt(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(),Pt(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=Kt(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(),Pt(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=Kt(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(),Pt(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=Kt(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(),Pt(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,Gt=new go.PathFigure(Nt,0,!0);return rt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,ht,.2*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,et-Nt,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,Ut)),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Ut)),Gt.add(new go.PathSegment(go.PathSegment.Line,et-Nt,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,ht,.8*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,Nt,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Ut)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Gt.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(),Gt=Lt(),se=Lt(),le=Lt();ke(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.42,Ut,Gt,se,le,le);var Ae=Lt(),Pe=Lt(),qt=Lt();ke(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.58,le,le,qt,Ae,Pe);var ze=Lt(),Wt=Lt(),Ge=Lt();ke(dt,xt+ht,dt-rt,xt+ht,dt-ht,xt+rt,dt-ht,xt,.42,ze,Wt,Ge,le,le);var _e=Lt(),Ne=Lt(),We=Lt();return ke(dt,xt+ht,dt-rt,xt+ht,dt-ht,xt+rt,dt-ht,xt,.58,le,le,We,_e,Ne),Nt.add(new go.PathSegment(go.PathSegment.Move,We.x*et,We.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,se.x*et,se.y*tt,Ut.x*et,Ut.y*tt,Gt.x*et,Gt.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,We.x*et,We.y*tt).close()),Nt.add(new go.PathSegment(go.PathSegment.Move,Ge.x*et,Ge.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Line,qt.x*et,qt.y*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,Ae.x*et,Ae.y*tt,Pe.x*et,Pe.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,Ge.x*et,Ge.y*tt,ze.x*et,ze.y*tt,Wt.x*et,Wt.y*tt).close()),ce(Ut),ce(Gt),ce(se),ce(le),ce(Ae),ce(Pe),ce(qt),ce(ze),ce(Wt),ce(Ge),ce(_e),ce(Ne),ce(We),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(),Gt=Lt(),se=Lt(),le=new go.PathFigure((dt-ht)*et,xt*tt,!1);lt.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt)),ke(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.44,Gt,se,Ut,Nt,Nt),le.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt));var Ae=Ft(Ut.x,Ut.y);ke(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.56,Nt,Nt,Ut,Gt,se);var Pe=Ft(Ut.x,Ut.y);le.add(new go.PathSegment(go.PathSegment.Line,(Ae.x*.1+.95*.9)*et,Ae.y*.1*tt)),le.add(new go.PathSegment(go.PathSegment.Line,.85*et,Ae.y*.1*tt)),le.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),le.add(new go.PathSegment(go.PathSegment.Line,et,0)),le.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),le.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*et,.15*tt)),le.add(new go.PathSegment(go.PathSegment.Line,(Pe.x*.1+.9)*et,(Pe.y*.1+.05*.9)*tt)),le.add(new go.PathSegment(go.PathSegment.Line,Pe.x*et,Pe.y*tt)),le.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt)),le.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),le.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 qt=new go.PathFigure(dt*et,(xt-ht)*tt,!1);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),qt.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 ze=new go.PathFigure((dt-ht)*et,xt*tt,!1);return lt.add(ze),ce(Nt),ce(Ut),ce(Gt),ce(se),ce(Ae),ce(Pe),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 Gt=re(0,xt/tt,1,xt/tt,ht/et,1,1,.5,Lt());return Nt.spot2=new go.Spot(Gt.x,Gt.y),ce(Gt),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 Gt=re(0,xt/tt,1,xt/tt,ht/et,1,1,.5,Lt());return Nt.spot2=new go.Spot(Gt.x,Gt.y),ce(Gt),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,Gt=new go.PathFigure(et,.5*tt,!0);Ut.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,xt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,xt).close());var se=re(0,.5,.3,xt/tt,0,ht/tt,1,ht/tt,Lt());return Ut.spot1=new go.Spot(se.x,se.y),se=re(.7,Nt/tt,1,.5,0,dt/tt,1,dt/tt,se),Ut.spot2=new go.Spot(se.x,se.y),ce(se),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,Gt=new go.PathFigure(et,.5*tt,!0);Ut.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,Nt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,xt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,xt)),Gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,xt).close()),Ut.spot1=new go.Spot(0,ht/tt);var se=re(.7,Nt/tt,1,.5,0,dt/tt,1,dt/tt,Lt());return Ut.spot2=new go.Spot(se.x,se.y),ce(se),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,Gt=new go.PathFigure(Nt*et,(Ut+ht)*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-rt)*et,Ut*tt,(Nt-dt)*et,(Ut+ht)*tt,(Nt-rt)*et,(Ut+xt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-ht)*tt,(Nt-rt)*et,(Ut-xt)*tt,(Nt-dt)*et,(Ut-ht)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+rt)*et,Ut*tt,(Nt+dt)*et,(Ut-ht)*tt,(Nt+rt)*et,(Ut-xt)*tt)),Gt.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 se=.05,le=Mt*se;Nt=.05,Ut=.25;var Ae=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),Nt=.95,Ut=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+se)*et,Ut*tt,(Nt+le)*et,(Ut-se)*tt,(Nt+se)*et,(Ut-le)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),se=.025,le=Mt*se,Nt=.825,Ut=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-se)*tt,(Nt+se)*et,(Ut-le)*tt,(Nt+le)*et,(Ut-se)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-se)*et,Ut*tt,(Nt-le)*et,(Ut-se)*tt,(Nt-se)*et,(Ut-le)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),se=.05,le=Mt*se,Nt=.5,Ut=.7,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-se)*tt,(Nt+se)*et,(Ut-le)*tt,(Nt+le)*et,(Ut-se)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-se)*et,Ut*tt,(Nt-le)*et,(Ut-se)*tt,(Nt-se)*et,(Ut-le)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),se=.025,le=Mt*se,Nt=.175,Ut=.35,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-se)*tt,(Nt+se)*et,(Ut-le)*tt,(Nt+le)*et,(Ut-se)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-se)*et,Ut*tt,(Nt-le)*et,(Ut-se)*tt,(Nt-se)*et,(Ut-le)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),se=.05,le=Mt*se,Nt=.05,Ut=.25,Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-se)*tt,(Nt-se)*et,(Ut-le)*tt,(Nt-le)*et,(Ut-se)*tt)),Ae.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,Gt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ht)*tt,(.4+rt)*et,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ht)*tt));var se=new go.PathFigure((Nt+xt)*et,Ut*tt,!0);return lt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+xt)*tt,(Nt+xt)*et,(Ut+dt)*tt,(Nt+dt)*et,(Ut+xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et,Ut*tt,(Nt-dt)*et,(Ut+xt)*tt,(Nt-xt)*et,(Ut+dt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-xt)*tt,(Nt-xt)*et,(Ut-dt)*tt,(Nt-dt)*et,(Ut-xt)*tt)),se.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 Gt=new go.PathFigure((dt-rt)*et,xt*tt,!0);return lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt-rt)*tt,(dt-rt)*et,(xt-ht)*tt,(dt-ht)*et,(xt-rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,xt*tt,(dt+ht)*et,(xt-rt)*tt,(dt+rt)*et,(xt-ht)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),Gt.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,Gt=(rt-et)/2,se=(ht-tt)/2,le=new go.PathFigure(Nt*et+Gt,(Ut+xt)*tt+se,!0);lt.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et+Gt,Ut*tt+se,(Nt-dt)*et+Gt,(Ut+xt)*tt+se,(Nt-xt)*et+Gt,(Ut+dt)*tt+se)),le.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut-xt)*tt+se,(Nt-xt)*et+Gt,(Ut-dt)*tt+se,(Nt-dt)*et+Gt,(Ut-xt)*tt+se)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt+dt*.5)*et+Gt,Ut*tt+se,Nt*et+Gt,(Ut-xt)*tt+se,(Nt-xt+dt*.5)*et+Gt,(Ut-dt)*tt+se)),le.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut+xt)*tt+se,(Nt-xt+dt*.5)*et+Gt,(Ut+dt)*tt+se,Nt*et+Gt,(Ut+xt)*tt+se).close()),dt=Mt*.4,xt=.4,Nt=.2,Ut=.5;var Ae=new go.PathFigure(Nt*et+Gt,(Ut+xt)*tt+se,!0);lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et+Gt,Ut*tt+se,(Nt-dt)*et+Gt,(Ut+xt)*tt+se,(Nt-xt)*et+Gt,(Ut+dt)*tt+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut-xt)*tt+se,(Nt-xt)*et+Gt,(Ut-dt)*tt+se,(Nt-dt)*et+Gt,(Ut-xt)*tt+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt+dt*.5)*et+Gt,Ut*tt+se,Nt*et+Gt,(Ut-xt)*tt+se,(Nt-xt+dt*.5)*et+Gt,(Ut-dt)*tt+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut+xt)*tt+se,(Nt-xt+dt*.5)*et+Gt,(Ut+dt)*tt+se,Nt*et+Gt,(Ut+xt)*tt+se).close()),dt=Mt*.2,xt=.2,Nt=.5,Ut=.5;var Pe=new go.PathFigure((Nt-xt)*et+Gt,Ut*tt+se,!0);lt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut-xt)*tt+se,(Nt-xt)*et+Gt,(Ut-dt)*tt+se,(Nt-dt)*et+Gt,(Ut-xt)*tt+se)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et+Gt,Ut*tt+se,(Nt+dt)*et+Gt,(Ut-xt)*tt+se,(Nt+xt)*et+Gt,(Ut-dt)*tt+se)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut+xt)*tt+se,(Nt+xt)*et+Gt,(Ut+dt)*tt+se,(Nt+dt)*et+Gt,(Ut+xt)*tt+se)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Nt-xt)*et+Gt,Ut*tt+se,(Nt-dt)*et+Gt,(Ut+xt)*tt+se,(Nt-xt)*et+Gt,(Ut+dt)*tt+se)),dt=Mt*.4,xt=.4,Nt=.8,Ut=.5;var qt=new go.PathFigure(Nt*et+Gt,(Ut-xt)*tt+se,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et+Gt,Ut*tt+se,(Nt+dt)*et+Gt,(Ut-xt)*tt+se,(Nt+xt)*et+Gt,(Ut-dt)*tt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut+xt)*tt+se,(Nt+xt)*et+Gt,(Ut+dt)*tt+se,(Nt+dt)*et+Gt,(Ut+xt)*tt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt-dt*.5)*et+Gt,Ut*tt+se,Nt*et+Gt,(Ut+xt)*tt+se,(Nt+xt-dt*.5)*et+Gt,(Ut+dt)*tt+se)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut-xt)*tt+se,(Nt+xt-dt*.5)*et+Gt,(Ut-dt)*tt+se,Nt*et+Gt,(Ut-xt)*tt+se).close()),dt=Mt*.8,xt=.8,Nt=1,Ut=.5;var ze=new go.PathFigure(Nt*et+Gt,(Ut-xt)*tt+se,!0);return lt.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt)*et+Gt,Ut*tt+se,(Nt+dt)*et+Gt,(Ut-xt)*tt+se,(Nt+xt)*et+Gt,(Ut-dt)*tt+se)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut+xt)*tt+se,(Nt+xt)*et+Gt,(Ut+dt)*tt+se,(Nt+dt)*et+Gt,(Ut+xt)*tt+se)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+xt-dt*.5)*et+Gt,Ut*tt+se,Nt*et+Gt,(Ut+xt)*tt+se,(Nt+xt-dt*.5)*et+Gt,(Ut+dt)*tt+se)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et+Gt,(Ut-xt)*tt+se,(Nt+xt-dt*.5)*et+Gt,(Ut-dt)*tt+se,Nt*et+Gt,(Ut-xt)*tt+se).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(),Gt=Lt(),se=Lt();ke(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.5,Nt,Nt,Ut,Gt,se);var le=Ft(Ut.x,Ut.y),Ae=new go.PathFigure(Ut.x*et,Ut.y*tt,!0);lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt,(dt+rt)*et,(xt+ht)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,(dt-rt)*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt)),ke(dt-ht,xt,dt-ht,xt-rt,dt-rt,xt-ht,dt,xt-ht,.5,Gt,se,Ut,Nt,Nt),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Gt.x*et,Gt.y*tt,se.x*et,se.y*tt)),rt=Mt*.3,ht=.3,ke(dt-ht,xt,dt-ht,xt-rt,dt-rt,xt-ht,dt,xt-ht,.5,Gt,se,Ut,Nt,Nt),Ae.add(new go.PathSegment(go.PathSegment.Line,Ut.x*et,Ut.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,xt*tt,se.x*et,se.y*tt,Gt.x*et,Gt.y*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(xt+ht)*tt,(dt-ht)*et,(xt+rt)*tt,(dt-rt)*et,(xt+ht)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,xt*tt,(dt+rt)*et,(xt+ht)*tt,(dt+ht)*et,(xt+rt)*tt)),ke(dt,xt-ht,dt+rt,xt-ht,dt+ht,xt-rt,dt+ht,xt,.5,Nt,Nt,Ut,Gt,se),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,se.x*et,se.y*tt,Gt.x*et,Gt.y*tt).close());var Ae=new go.PathFigure(.45*et,0,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),Ae.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ce(Nt),ce(Ut),ce(Gt),ce(se),ce(le),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,Gt=1,se=.5,le=.5,Ae=0,Pe=new go.PathFigure(Nt*et,(1-Ut)*tt,!1);return lt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,se*tt,Gt*et,.7*tt,Gt*et,se*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(le+ht)*et,(Ae+ht)*tt,(.5+rt+ht)*et,(.5-xt+ht)*tt,(.5+xt+ht)*et,(.5-rt+ht)*tt)),Pe.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)),Pe.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)),Pe.add(new go.PathSegment(go.PathSegment.Move,(.25+ht)*et,.8*tt)),Pe.add(new go.PathSegment(go.PathSegment.Line,(.35+ht)*et,.9*tt)),Pe.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,Gt=4*(1-Math.cos(Ut))/(3*Math.sin(Ut)),se=Gt*.5,le=dt,Ae=dt,Pe=Gt*le,qt=Gt*Ae;ht.add(new go.PathSegment(go.PathSegment.Bezier,(xt-le)*et,Nt*tt,(xt-(Pe+le)/2)*et,(Nt+(Ae+qt)/2)*tt,(xt-le)*et,(Nt+qt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,xt*et,(Nt-Ae)*tt,(xt-le)*et,(Nt-qt)*tt,(xt-Pe)*et,(Nt-Ae)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(xt+le)*et,Nt*tt,(xt+Pe)*et,(Nt-Ae)*tt,(xt+le)*et,(Nt-qt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(xt+le)*et,(Nt+qt)*tt,(xt+(Pe+le)/2)*et,(Nt+(Ae+qt)/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 ze=new go.PathFigure(.2*et,tt,!1);lt.add(ze),ze.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,Gt=new go.PathFigure((Nt-dt)*et,Ut*tt,!0);lt.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-dt)*tt,(Nt-dt)*et,(Ut-xt)*tt,(Nt-xt)*et,(Ut-dt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+dt)*et,Ut*tt,(Nt+xt)*et,(Ut-dt)*tt,(Nt+dt)*et,(Ut-xt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+dt)*tt,(Nt+dt)*et,(Ut+xt)*tt,(Nt+xt)*et,(Ut+dt)*tt)),Gt.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 se=new go.PathFigure((Nt-dt)*et,Ut*tt,!0);return lt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut-dt)*tt,(Nt-dt)*et,(Ut-xt)*tt,(Nt-xt)*et,(Ut-dt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Nt+dt)*et,Ut*tt,(Nt+xt)*et,(Ut-dt)*tt,(Nt+dt)*et,(Ut-xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Nt*et,(Ut+dt)*tt,(Nt+dt)*et,(Ut+xt)*tt,(Nt+xt)*et,(Ut+dt)*tt)),se.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,Gt=.1,se=.9,le=new go.PathFigure((Gt-Nt)*et,se*tt,!0);lt.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se-Nt)*tt,(Gt-Nt)*et,(se-Ut)*tt,(Gt-Ut)*et,(se-Nt)*tt)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Nt)*et,se*tt,(Gt+Ut)*et,(se-Nt)*tt,(Gt+Nt)*et,(se-Ut)*tt)),le.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se+Nt)*tt,(Gt+Nt)*et,(se+Ut)*tt,(Gt+Ut)*et,(se+Nt)*tt)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Nt)*et,se*tt,(Gt-Ut)*et,(se+Nt)*tt,(Gt-Nt)*et,(se+Ut)*tt)),Nt=.1,Ut=Mt*.1,Gt=.4,se=.9;var Ae=new go.PathFigure((Gt-Nt)*et,se*tt,!0);return lt.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se-Nt)*tt,(Gt-Nt)*et,(se-Ut)*tt,(Gt-Ut)*et,(se-Nt)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt+Nt)*et,se*tt,(Gt+Ut)*et,(se-Nt)*tt,(Gt+Nt)*et,(se-Ut)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Gt*et,(se+Nt)*tt,(Gt+Nt)*et,(se+Ut)*tt,(Gt+Ut)*et,(se+Nt)*tt)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Gt-Nt)*et,se*tt,(Gt-Ut)*et,(se+Nt)*tt,(Gt-Nt)*et,(se+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 Gt=.05,se=Mt*.05,le=.175,Ae=.95,xt=new go.PathFigure((le-Gt)*et,Ae*tt,!0);lt.add(xt),xt.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae-Gt)*tt,(le-Gt)*et,(Ae-se)*tt,(le-se)*et,(Ae-Gt)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(le+Gt)*et,Ae*tt,(le+se)*et,(Ae-Gt)*tt,(le+Gt)*et,(Ae-se)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae+Gt)*tt,(le+Gt)*et,(Ae+se)*tt,(le+se)*et,(Ae+Gt)*tt)),xt.add(new go.PathSegment(go.PathSegment.Bezier,(le-Gt)*et,Ae*tt,(le-se)*et,(Ae+Gt)*tt,(le-Gt)*et,(Ae+se)*tt));var Gt=.05,se=Mt*.05,le=.375,Ae=.95,Nt=new go.PathFigure((le-Gt)*et,Ae*tt,!0);lt.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae-Gt)*tt,(le-Gt)*et,(Ae-se)*tt,(le-se)*et,(Ae-Gt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(le+Gt)*et,Ae*tt,(le+se)*et,(Ae-Gt)*tt,(le+Gt)*et,(Ae-se)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae+Gt)*tt,(le+Gt)*et,(Ae+se)*tt,(le+se)*et,(Ae+Gt)*tt)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(le-Gt)*et,Ae*tt,(le-se)*et,(Ae+Gt)*tt,(le-Gt)*et,(Ae+se)*tt));var Gt=.05,se=Mt*.05,le=.625,Ae=.95,Ut=new go.PathFigure((le-Gt)*et,Ae*tt,!0);lt.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae-Gt)*tt,(le-Gt)*et,(Ae-se)*tt,(le-se)*et,(Ae-Gt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(le+Gt)*et,Ae*tt,(le+se)*et,(Ae-Gt)*tt,(le+Gt)*et,(Ae-se)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae+Gt)*tt,(le+Gt)*et,(Ae+se)*tt,(le+se)*et,(Ae+Gt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(le-Gt)*et,Ae*tt,(le-se)*et,(Ae+Gt)*tt,(le-Gt)*et,(Ae+se)*tt));var Gt=.05,se=Mt*.05,le=.825,Ae=.95,Pe=new go.PathFigure((le-Gt)*et,Ae*tt,!0);lt.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae-Gt)*tt,(le-Gt)*et,(Ae-se)*tt,(le-se)*et,(Ae-Gt)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(le+Gt)*et,Ae*tt,(le+se)*et,(Ae-Gt)*tt,(le+Gt)*et,(Ae-se)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,le*et,(Ae+Gt)*tt,(le+Gt)*et,(Ae+se)*tt,(le+se)*et,(Ae+Gt)*tt)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(le-Gt)*et,Ae*tt,(le-se)*et,(Ae+Gt)*tt,(le-Gt)*et,(Ae+se)*tt).close());var qt=new go.PathFigure(0,tt,!1);return lt.add(qt),qt.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,Gt=.775,se=new go.PathFigure((Ut-xt)*et,Gt*tt,!0);return lt.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(Gt-xt)*tt,(Ut-xt)*et,(Gt-Nt)*tt,(Ut-Nt)*et,(Gt-xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Ut+xt)*et,Gt*tt,(Ut+Nt)*et,(Gt-xt)*tt,(Ut+xt)*et,(Gt-Nt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,Ut*et,(Gt+xt)*tt,(Ut+xt)*et,(Gt+Nt)*tt,(Ut+Nt)*et,(Gt+xt)*tt)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Ut-xt)*et,Gt*tt,(Ut-Nt)*et,(Gt+xt)*tt,(Ut-xt)*et,(Gt+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={},Cn="5.0",Ft={},Lt=null,ce=!1,re=!1,ke=null,ee=!1,Vt=null,Mt=null,jt=0;jt<arguments.length;jt++){var te=arguments[jt];if(te!==null)switch(typeof te){case"number":Cn=te.toFixed(1);break;case"string":te.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=te:ke=te;break;case"object":typeof te.is3D!="undefined"?Lt=te:Ft=te;break;case"boolean":ce=te,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)),ke!==null&&Ft.id===void 0&&(Ft.id=ke);var Pt="",oe="",Kt=!1,$t=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(Ze){return parseFloat(Ze)>4?parseFloat(Ze):5};hi.setHTML5Codebase=function(Ze,Mn){Mt=Ze,Ce(Ze,Mn)},hi.setJavaCodebase=hi.setJavaCodebaseVersion=hi.isCompiledInstalled=hi.setPreCompiledScriptPath=hi.setPreCompiledResourcePath=function(){},hi.setHTML5CodebaseVersion=function(Ze,Mn){var Vn=parseFloat(Ze);if(Vn!==NaN&&Vn<5){console.log("The GeoGebra HTML5 codebase version "+Vn+" is deprecated. Using version latest instead.");return}Vt=Ze,ne(Ze,Mn)},hi.getHTML5CodebaseVersion=function(){return Ct},hi.getParameters=function(){return Ft},hi.setFontsCSSURL=function(Ze){dt=Ze},hi.setGiacJSURL=function(Ze){},hi.setJNLPFile=function(Ze){Pt=Ze},hi.setJNLPBaseDir=function(Ze){},hi.inject=function(){function Ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Mn="auto",Vn=Ft.id,fi,Kn=!1,Bi=0;Bi<arguments.length;Bi++){var en=arguments[Bi];typeof en=="string"?(en=en.toLowerCase(),en.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Mn=en:Vn=arguments[Bi]):typeof en=="boolean"?Kn=en:en instanceof HTMLElement&&(fi=en)}Fi();function Fi(){if(!ee){setTimeout(Fi,200);return}Mn=Re(Mn);var Oi=fi||document.getElementById(Vn);if(!Oi){console.log("possibly bug on ajax loading? ");return}if(hi.removeExistingApplet(Oi,!1),Ft.width===void 0&&Oi.clientWidth&&(Ft.width=Oi.clientWidth),Ft.height===void 0&&Oi.clientHeight&&(Ft.height=Oi.clientHeight),!(Ft.width&&Ft.height)&&Mn==="html5"&&(delete Ft.width,delete Ft.height),$t=Mn,Mn==="screenshot")Wt(Oi,Ft);else{var Ot=!1;Ft.hasOwnProperty("playButton")&&Ft.playButton||Ft.hasOwnProperty("clickToLoad")&&Ft.clickToLoad?Ot=!0:Ft.hasOwnProperty("playButtonAutoDecide")&&Ft.playButtonAutoDecide&&(Ot=(!Ut()||Ze())&&Gt()),Ot?($t="screenshot",_e(Oi,Ft,Kn,Mn)):ze(Oi,Ft,Kn)}}};function Ut(){try{return window.self!==window.top}catch(Ze){return!0}}function Gt(){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 se=function(Ze){var Mn=function(Bi){var en=JSON.parse(Bi),Fi=function(Tt){return Tt.type=="G"||Tt.type=="E"},Oi=en.elements?en.elements.filter(Fi)[0]:en;if(!Oi||!Oi.url){Vn();return}Ft.fileName=Oi.url,le(Oi.settings||{}),Lt.is3D=!0;var Ot="https://www.geogebra.org/images/";hi.setPreviewImage(lt||Oi.previewUrl,Ot+"GeoGebra_loading.png",Ot+"applet_play.png"),Ze()},Vn=function(){Ft.onError&&Ft.onError(),bn("Error: Fetching material (id "+Ft.material_id+") failed.",Ft)},fi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Kn="/materials/"+Ft.material_id+"?scope=basic";Ae("https://"+fi+"/api/proxy.php?path="+encodeURIComponent(Kn),Mn,Vn)};function le(Ze){var Mn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Vn){Ze[Vn]=!!Ze[Vn]}),Mn.forEach(function(Vn){Ft[Vn]===void 0&&Ze[Vn]!==void 0&&(Ft[Vn]=Ze[Vn])}),Ft.showToolBarHelp===void 0&&(Ft.showToolBarHelp=Ft.showToolBar)}function Ae(Ze,Mn,Vn){var fi=new XMLHttpRequest;fi.open("GET",Ze),fi.onload=function(){Mn(fi.responseText)},fi.onerror=Vn,fi.send()}hi.isHTML5Installed=function(){return!0},hi.getLoadedAppletType=function(){return $t},hi.setPreviewImage=function(Ze,Mn,Vn){lt=Ze,rt=Mn,ht=Vn},hi.removeExistingApplet=function(Ze,Mn){var Vn;typeof Ze=="string"&&(Ze=document.getElementById(Ze)),$t=null;var fi=null;for(Vn=0;Vn<Ze.childNodes.length;Vn++){var Kn=Ze.childNodes[Vn],Bi=Kn.className;Bi==="applet_screenshot"?Mn?(Kn.style.display="block",$t="screenshot"):Kn.style.display="none":Bi!=="applet_scaler prerender"&&(Ze.removeChild(Kn),fi=Bi&&Bi.indexOf("appletParameters")!=-1?Kn.id:null,Vn--)}var en=Ft.id!==void 0?Ft.id:fi,Fi=window[en];Fi&&typeof Fi.getBase64=="function"&&(Fi.remove(),window[en]=null)},hi.refreshHitPoints=function(){if(Nt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ze=hi.getAppletObject();return Ze&&typeof Ze.recalculateEnvironments=="function"?(Ze.recalculateEnvironments(),!0):!1},hi.startAnimation=function(){var Ze=hi.getAppletObject();return Ze&&typeof Ze.startAnimation=="function"?(Ze.startAnimation(),!0):!1},hi.stopAnimation=function(){var Ze=hi.getAppletObject();return Ze&&typeof Ze.stopAnimation=="function"?(Ze.stopAnimation(),!0):!1},hi.getAppletObject=function(){var Ze=Ft.id!==void 0?Ft.id:"ggbApplet";return window[Ze]},hi.resize=function(){};var Pe=function(Ze,Mn,Vn){var fi=document.createElement("param");fi.setAttribute("name",Mn),fi.setAttribute("value",Vn),Ze.appendChild(fi)},qt=function(Ze){return Ze&&Ze!=="false"},ze=function(Ze,Mn,Vn){Nt(Ct)<=4.2&&(Vn=!0);var fi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ct||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(fi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Kn=document.createElement("div");Kn.classList.add("appletParameters","notranslate");var Bi=Mn.width,en=Mn.height;if(Mn.disableAutoScale=Mn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Mn.disableAutoScale,Mn.width!==void 0)if(Nt(Ct)<=4.4)qt(Mn.showToolBar)&&(Mn.height-=7),qt(Mn.showAlgebraInput)&&(Mn.height-=37),Mn.width<605&&qt(Mn.showToolBar)&&(Mn.width=605,Bi=605);else{var Fi=100;(qt(Mn.showToolBar)||qt(Mn.showMenuBar))&&(Mn.hasOwnProperty("customToolBar")&&(Mn.customToolbar=Mn.customToolBar),Fi=qt(Mn.showMenuBar)?245:155),Bi<Fi&&(Mn.width=Fi,Bi=Fi)}Kn.style.border="none",Kn.style.display="inline-block";for(var Oi in Mn)Mn.hasOwnProperty(Oi)&&Oi!=="appletOnLoad"&&Kn.setAttribute("data-param-"+Oi,Mn[Oi]);dt&&Kn.setAttribute("data-param-fontscssurl",dt),hi.resize=function(){GGBAppletUtils.responsiveResize(Ze,Mn)},window.addEventListener("resize",function(Me){hi.resize()});var Ot=typeof Mn.appletOnLoad=="function"?Mn.appletOnLoad:function(){};if(!Vn&&Mn.width!==void 0){Mn.hasOwnProperty("showSplash")||Kn.setAttribute("data-param-showSplash","false");var Tt=Ze.querySelector(".applet_scaler.prerender"),vt=Tt!==null;if(vt)var ft=Tt.querySelector(".ggb_preview");else{var ft=We(Bi,en,Mn.borderColor,!1);Tt=document.createElement("div"),Tt.className="applet_scaler",Tt.style.position="relative",Tt.style.display="block",Tt.style.width=Bi+"px",Tt.style.height=en+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),Nt(Ct)>=5?(Mn.appletOnLoad=function(Me){var sn=Ze.querySelector(".ggb_preview");sn&&sn.parentNode.removeChild(sn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ot(Me)},vt||Tt.appendChild(ft)):Kn.appendChild(ft),Tt.appendChild(Kn),vt||Ze.appendChild(Tt),setTimeout(function(){hi.resize()},1)}else{var gt=document.createElement("div");gt.className="applet_scaler",gt.style.position="relative",gt.style.display="block",gt.appendChild(Kn),Ze.appendChild(gt),Mn.appletOnLoad=function(Me){hi.resize(),Ot(Me)}}function At(Me,sn){sn&&typeof sn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Me,sn.appletOnLoad):renderGGBElement(Me),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",sn)}function ue(Me,sn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Me,params:sn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gn){At(Gn.article,Gn.params)}),html5AppletsToProcess=null)},Nt(Ct)<5&&(Me.className+=" geogebraweb")):At(Me,sn)}if(fi){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 Te=document.createElement("script"),De=function(){ue(Kn,Mn)};Te.src=oe+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=Ct,ggbHTML5LoadedScript=Te.src,bn("GeoGebra HTML5 codebase loaded: '"+oe+"'.",Mn),!Mt&&(!Vt||Vt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),De()):oe.requirejs?__webpack_require__.e(777).then(function(){var Me=[__webpack_require__(70777)];De.apply(null,Me)}.bind(this)).catch(__webpack_require__.oe):(Te.onload=De,Ze.appendChild(Te))}else ue(Kn,Mn);Mn.height=en,Mn.width=Bi},Wt=function(Ze,Mn,Vn){var fi=We(Mn.width,Mn.height,Mn.borderColor,Vn),Kn=document.createElement("div");Kn.style.position="relative",Kn.style.display="block",Kn.style.width=Mn.width+"px",Kn.style.height=Mn.height+"px",Kn.className="applet_screenshot applet_scaler"+(Vn?" applet_screenshot_play":""),Kn.appendChild(fi);var Bi=GGBAppletUtils.getScale(Mn,Ze,Vn);Vn?(Ze.appendChild(Ne()),window.GGBT_wsf_view||(Ze.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Kn,"66%"),Ze.appendChild(Kn),Bi!==1&&!isNaN(Bi)&&(GGBAppletUtils.scaleElement(Kn,Bi),Kn.style.width=Mn.width+"px",Kn.style.height=Mn.height+"px",Kn.parentNode.style.width=Mn.width*Bi+"px",Kn.parentNode.style.height=Mn.height*Bi+"px"),hi.resize=function(){Ge(Ze,fi,Kn,Vn)},window.addEventListener("resize",function(en){hi.resize()}),hi.resize()};function Ge(Ze,Mn,Vn,fi){if(Ze.contains(Mn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ze)}var Kn=GGBAppletUtils.getScale(Ft,Ze,fi);Vn.parentNode!==null&&(!isNaN(Kn)&&Kn!==1?(GGBAppletUtils.scaleElement(Vn,Kn),Vn.parentNode.style.width=Ft.width*Kn+"px",Vn.parentNode.style.height=Ft.height*Kn+"px"):(GGBAppletUtils.scaleElement(Vn,1),Vn.parentNode.style.width=Ft.width+"px",Vn.parentNode.style.height=Ft.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ze),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}hi.onExitFullscreen=function(Ze,Mn){Mn.appendChild(Ze)};var _e=function(Ze,Mn,Vn,fi){Wt(Ze,Mn,!0);for(var Kn=function(){var Fi=[];for(en=0;en<Ze.childNodes.length;en++)Fi.push(Ze.childNodes[en]);if(window.GGBT_wsf_view){var Oi=window.GGBT_wsf_view.renderFullScreen(Ze,Mn.id),Ot=document.getElementById("fullscreencontainer"),Tt=jQuery(Ze).find(".fullscreencontent");Tt.length>0?(Oi.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(Ot).append(Tt),window.dispatchEvent(new Event("resize"))):ze(Oi,Mn,!1),window.GGBT_wsf_view.launchFullScreen(Ot)}else $t=fi,ze(Ze,Mn,!1);if(!window.GGBT_wsf_view)for(en=0;en<Fi.length;en++)Ze.removeChild(Fi[en])},Bi=Ze.getElementsByClassName("ggb_preview_play"),en=0;en<Bi.length;en++)Bi[en].addEventListener("click",Kn,!1),Bi[en].addEventListener("ontouchstart",Kn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ze),Gt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var Ze=document.createElement("div");if(Ze.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Mn='.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");}',Vn=document.createElement("style");Vn.styleSheet?Vn.styleSheet.cssText=Mn:Vn.appendChild(document.createTextNode(Mn)),document.getElementsByTagName("head")[0].appendChild(Vn)}return Ze},We=function(Ze,Mn,Vn,fi){var Kn=document.createElement("div");Kn.className="ggb_preview",Kn.style.position="absolute",Kn.style.zIndex="90",Kn.style.width=Ze-2+"px",Kn.style.height=Mn-2+"px",Kn.style.top="0px",Kn.style.left="0px",Kn.style.overflow="hidden",Kn.style.backgroundColor="white";var Bi="lightgrey";Vn!==void 0&&(Vn==="none"?Bi="transparent":Bi=Vn),Kn.style.border="1px solid "+Bi;var en=document.createElement("img");if(en.style.position="relative",en.style.zIndex="1000",en.style.top="-1px",en.style.left="-1px",lt!==null&&en.setAttribute("src",lt),en.style.opacity=.7,rt!==null){var Fi,Oi,Ot;if(!fi){Fi=document.createElement("img"),Fi.style.position="absolute",Fi.style.zIndex="1001",Fi.style.opacity=1,en.style.opacity=.3,Oi=360,Oi>Ze/4*3&&(Oi=Ze/4*3),Ot=Oi/5.8,Fi.setAttribute("src",rt),Fi.setAttribute("width",Oi),Fi.setAttribute("height",Ot);var Tt=(Ze-Oi)/2,vt=(Mn-Ot)/2;Fi.style.left=Tt+"px",Fi.style.top=vt+"px",Kn.appendChild(Fi)}}return Kn.appendChild(en),Kn},Re=function(Ze){return Ze=Ze.toLowerCase(),Ze==="html5"||Ze==="screenshot"?Ze:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ne=function(Ze,Mn){if(Ct=Ze,Mn){Ce(Ct,!0);return}var Vn=!ce;if(Vn){var fi=Nt(Ct);!isNaN(fi)&&fi<4.4&&(Vn=!1)}var Kn,Bi;window.location.protocol.substr(0,4)==="http"?Kn=window.location.protocol:Kn="http:";var en=Ct.indexOf("//");en>0?Bi=Ct:en===0?Bi=Kn+Ct:Bi="https://www.geogebra.org/apps/5.2.814.0/";for(var Fi in ve)if(Ct.slice(ve[Fi].length*-1)===ve[Fi]||Ct.slice((ve[Fi].length+1)*-1)===ve[Fi]+"/"){Ce(Bi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Vn&&!Lt.is3D&&!Lt.AV&&!Lt.SV&&!Lt.CV&&!Lt.EV2&&!Lt.CP&&!Lt.PC&&!Lt.DA&&!Lt.FI&&!Lt.PV&&!qt(Ft.showToolBar)&&!qt(Ft.showMenuBar)&&!qt(Ft.showAlgebraInput)&&!qt(Ft.enableRightClick)&&(!Ft.appName||Ft.appName=="classic")?Bi+="webSimple/":Bi+="web3d/",Ce(Bi,!1)},Ce=function(Ze,Mn){if(Ze.requirejs){oe=Ze;return}Ze.slice(-1)!=="/"&&(Ze+="/"),oe=Ze,Mn===null&&(Mn=Ze.indexOf("http")===-1),Kt=Mn,et="web.nocache.js",tt=!1;var Vn=oe.split("/");Vn.length>1&&(!Mn&&Vn[Vn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):ve.indexOf(Vn[Vn.length-2])>=0&&(et=Vn[Vn.length-2]+".nocache.js")),Vn=Ze.split("/"),Ct=Vn[Vn.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 fi=parseFloat(Ct);fi!==NaN&&fi<5&&Ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+fi+" is deprecated. Using version latest instead."),ne("5.0",Mn))},bn=function(Ze,Mn){window.console&&window.console.log&&(!Mn||typeof Mn.showLogging=="undefined"||Mn.showLogging&&Mn.showLogging!=="false")&&console.log(Ze)};Ft.material_id!==void 0?se(Ln):Ln();function Ln(){var Ze=Cn;Vt!==null?Ze=Vt:parseFloat(Ze)<5&&(Ze="5.0"),ne(Ze,!1),Mt!==null&&Ce(Mt,Kt),ee=!0}return hi},GGBAppletUtils=function(){"use strict";function hi(){return window.GGBT_wsf_edit!==void 0}function Cn(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,te,Pt){var oe=null;if(Pt!=null&&Pt!="")for(var Kt=ee.parentNode;Kt!=null;)if((" "+Kt.className+" ").indexOf(" "+Pt+" ")>-1){oe=Kt;break}else Kt=Kt.parentNode;var $t=0,Ct=0,et=0,tt=0,lt=0,rt=0,ht=0;if(oe)$t=oe.offsetWidth,Ct=Math.max(jt?oe.offsetWidth:0,oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?($t=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),et=$t):($t=window.innerWidth,Ct=window.innerHeight,et=window.innerWidth),ee){var dt=ee.getBoundingClientRect();dt.left>0&&dt.left<=$t&&(te===void 0||!te)&&(document.dir==="rtl"?(lt=$t-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<$t?$t=Vt:$t-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Mt===void 0||!Mt)&&(Ct-=ht)),{width:$t,height:Ct}}function Lt(ee,Vt,Mt,jt,te){if(ee.isScreenshoGenerator)return 1;var Pt=jt!==void 0&&jt,oe=ee.noScaleMargin!=null&&ee.noScaleMargin,Kt=function(xt){return xt&&xt!=="false"},$t=Kt(ee.autoHeight),Ct=Ft(Vt,ee.width,Mt,$t,Pt&&window.GGBT_wsf_view||oe,te),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=Pt?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,te,Pt=!1;if(ee.hasOwnProperty("allowUpscale")&&(Pt=ee.allowUpscale),ee.hasOwnProperty("scale")&&(jt=parseFloat(ee.scale),(isNaN(jt)||jt===null||jt===0)&&(jt=1),jt>1&&(Pt=!0)),Vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pt=!0),!(ee.hasOwnProperty("disableAutoScale")&&ee.disableAutoScale))te=Lt(ee,Vt,Pt,Mt,ee.scaleContainerClass);else return jt;return Pt&&(!ee.hasOwnProperty("scale")||jt===1)?te:Math.min(jt,te)}function re(ee){var Vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Mt=Math.min(window.innerHeight,document.documentElement.clientHeight),jt=ee.getBoundingClientRect(),te=(Vt-jt.width)/2,Pt=(Mt-jt.height)/2;Pt<0&&(Pt=0),ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te<40?ee.style.left="40px":ee.style.left=te+"px",ee.style.top=Pt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Pt<40?ee.style.top="40px":ee.style.top=Pt+"px",ee.style.left=te+"px")}function ke(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 te=null,Pt=0;Pt<ee.childNodes.length;Pt++)if(ee.childNodes[Pt].className!==void 0&&ee.childNodes[Pt].className.match(/^applet_scaler/)){te=ee.childNodes[Pt];break}if(te!==null&&te.querySelector(".noscale")!==null)return;var oe=Vt.id!==void 0?Vt.id:"ggbApplet",Kt=window[oe];(Kt==null||!Kt.recalculateEnvironments)&&te!==null&&!te.className.match(/fullscreen/)&&(te.parentNode.style.transform="",!isNaN(jt)&&jt!==1?(te.parentNode.style.width=Vt.width*jt+"px",te.parentNode.style.height=Vt.height*jt+"px",Cn(te,jt)):(Cn(te,1),te.parentNode.style.width=Vt.width+"px",te.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:ke,isFlexibleWorksheetEditor:hi,positionCenter:re,getScale:ce,scaleElement:Cn}}();__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,Cn){}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 Cn=s[L].bindings;s[L].bindings=function(){for(var Ft=Cn?Cn():{},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 Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(hi){function Cn(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 ke(){if(!re){if(!ce())return;re=!0,Lt(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),ee&&clearInterval(ee)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var ee=setInterval(function(){ke()},$)}function Ft(Lt){var ce=u(),re=ce.body,ke=ce.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=Lt,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+Lt))}),re.appendChild(ke)}Cn(function(){Ft(hi)})}webModule.__startLoadingFragment=function(hi){return C(hi)},webModule.__installRunAsyncCode=function(hi){var Cn=u(),Ft=Cn.body,Lt=Cn.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 Cn=c[hi];return Cn==null?null:Cn},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 Cn(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 ke=Ft();return ke==W&&(ke=Lt()),ke==W&&(ke=ce()),ke==W&&re()&&(ke=hi(o.location.href)),ke=Cn(ke),ke}function C(hi){return hi.match(/^\//)||hi.match(/^[a-zA-Z]+:\/\//)?hi:webModule.__moduleBase+hi}function D(){var hi=[],Cn=O,Ft=[],Lt=[];function ce(ee){var Vt=Lt[ee](),Mt=Ft[ee];if(Vt in Mt)return Vt;var jt=[];for(var te in Mt)jt[Mt[te]]=te;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 ke=re.indexOf(Db);ke!=-1&&(Cn=parseInt(re.substring(ke+P),$),re=re.substring(O,ke))}catch(ee){}return webModule.__softPermutationId=Cn,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,Cn,Ft){"use strict";Ft.d(Cn,{Ax:function(){return ke},Ds:function(){return ee},KI:function(){return Mt},SI:function(){return re},f1:function(){return ce}});var Lt=Ft(38446);function ce(jt){let te=!0;if(jt.length>0){for(let Pt=0;Pt<jt.length;Pt++)if(jt[Pt].compile_success==0||!jt[Pt].compile_success){te=!1;break}}else te=!1;return te}function re(jt,te=""){let Pt=[];for(let oe=0;oe<jt.length;oe++){let Kt=jt[oe],$t=te?`${te}/${Kt.name}`:`${Kt.name}`;Pt.push({title:Kt.name,type:Kt.type,isLeaf:Kt.type!=="tree",key:$t})}return Pt}function ke(jt,te,Pt){for(let oe=0;oe<jt.length;oe++){let Kt=jt[oe];if(Kt.key===te){Kt.children=Pt;break}Kt.children&&ke(Kt.children,te,Pt)}return jt}function ee(jt,te,Pt){let oe;return function(){let Kt=this,$t=arguments,Ct=function(){oe=null,Pt||jt.apply(Kt,$t)},et=Pt&&!oe;clearTimeout(oe),oe=setTimeout(Ct,te),et&&jt.apply(Kt,$t)}}const Vt=!0,Mt=Lt.Z.API_SERVER},3545:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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),ke=Ft.n(re),ee=Ft(42441),Vt=Ft(6848),Mt=Ft(61621),jt=Ft(71418),te=Ft(57816),Pt=Ft(38446),oe=Object.defineProperty,Kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(Nt,Ut,Gt)=>Ut in Nt?oe(Nt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Nt[Ut]=Gt,tt=(Nt,Ut)=>{for(var Gt in Ut||(Ut={}))$t.call(Ut,Gt)&&et(Nt,Gt,Ut[Gt]);if(Kt)for(var Gt of Kt(Ut))Ct.call(Ut,Gt)&&et(Nt,Gt,Ut[Gt]);return Nt};const lt=(Nt={})=>{var Ut,Gt,se,le;let Ae=(Ut=Nt==null?void 0:Nt.emotion)==null?void 0:Ut.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),Pe=(Gt=Nt==null?void 0:Nt.focus)==null?void 0:Gt.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),qt=(se=Nt==null?void 0:Nt.action)==null?void 0:se.map(Wt=>tt({value:Wt==null?void 0:Wt.rate},Wt)),ze=(le=Nt==null?void 0:Nt.intention)==null?void 0:le.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:Ae||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Pe||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:qt||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:ze||[]}]},rt=({className:Nt,dataSource:Ut=[],col:Gt=4,right:se,bottom:le=23,precision:Ae=0,wrapWidth:Pe=1200})=>{const qt=(Wt="",Ge,_e="--")=>Wt?(Wt==null?void 0:Wt.length)>Ge?(Wt==null?void 0:Wt.slice(0,Ge-1))+"...":Wt:_e,ze=Math.floor((Pe-(Gt-1)*se)/Gt);return Lt.createElement("div",{className:ke()(ce.list,Nt)},!!(Ut!=null&&Ut.length)&&(Ut==null?void 0:Ut.map((Wt,Ge)=>{const{cover_pic:_e,created_at:Ne,emotion:We,action:Re,intention:ve,focus:ne}=Wt;return Lt.createElement("div",{key:Ge,className:ce.wrap,style:{width:ze,marginRight:(1+Ge)%Gt===0?0:se+Ae,marginBottom:le}},Lt.createElement("div",{className:ce.img},Lt.createElement("img",{src:`${Pt.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:We},Lt.createElement("span",{className:"c-grey-333"},qt(We,4))))),Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-hangwei"}),Lt.createElement("span",null,"\u884C\u4E3A\uFF1A",Lt.createElement(Vt.Z,{title:Re},Lt.createElement("span",{className:"c-grey-333"},qt(Re,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"},qt(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"},qt(ne,3))))))))})))},ht=({className:Nt,style:Ut,title:Gt,hideBar:se=!1,children:le,customText:Ae="",noDataText:Pe="",emptyData:qt=[],loading:ze,actionAnalysis:Wt})=>{var Ge,_e;const Ne=((Ge=qt==null?void 0:qt[0])==null?void 0:Ge.every(Re=>{var ve;return!((ve=Re==null?void 0:Re.data)!=null&&ve.length)}))&&!((_e=qt==null?void 0:qt[1])!=null&&_e.length)||!Wt,We=Wt?Pe:Ae;return Lt.createElement(Mt.Z,{loading:ze,active:!0},Ne&&Lt.createElement("div",{className:ke()(ce.noData,Nt),style:Ut},!!Gt&&Lt.createElement("div",{className:ce.title},!se&&Lt.createElement("b",null),Lt.createElement("span",null,Gt)),Lt.createElement("div",{className:ce.itemWrap},Lt.createElement(te.Z,{customText:We}))),!Ne&&le)};var xt=({className:Nt,style:Ut,data:Gt=[],title:se,hideBar:le=!1,loading:Ae=!1})=>Lt.createElement("div",{className:ke()(ce.analysis,Nt),style:Ut},!!se&&Lt.createElement("div",{className:ce.title},!le&&Lt.createElement("b",null),Lt.createElement("span",null,se)),Lt.createElement(jt.Z,{spinning:Ae},Lt.createElement("div",{className:ce.itemWrap},Gt==null?void 0:Gt.map((Pe,qt)=>Lt.createElement("div",{className:ce.item,key:qt},Lt.createElement(ee.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:Pe==null?void 0:Pe.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ze){for(let Wt in Pe==null?void 0:Pe.data)if(ze==(Pe==null?void 0:Pe.data[Wt].name))return ze+" "+(Pe==null?void 0:Pe.data[Wt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Pe==null?void 0:Pe.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Pe==null?void 0:Pe.data}]},style:{height:145}}))))))},14573:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return oe}});var Lt=Ft(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},re=Ft(92310),ke=Ft.n(re),ee=Ft(71418),Vt=Ft(2859),Mt=Ft(7660),jt=Ft(88230),te=(Kt,$t,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(Kt,$t)).next())}),oe=({data:Kt,className:$t,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),[Gt,se]=(0,Lt.useState)(!1),[le,Ae]=(0,Lt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Lt.useEffect)(()=>{Nt.current||(Nt.current=document.createElement("style"),document.head.appendChild(Nt.current)),Kt!=null&&Kt.visible?(document.body.setAttribute("data-custom","y-hidden"),Nt.current.innerHTML=" html { overflow-y: hidden; }",Kt!=null&&Kt.src&&Pe()):(document.body.removeAttribute("data-custom"),Nt.current&&(document.head.removeChild(Nt.current),Nt.current=null))},[Kt==null?void 0:Kt.visible]);const Pe=()=>te(void 0,null,function*(){se(!0),Ae("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ge=yield(0,jt.ZJ)(Kt==null?void 0:Kt.src);dt.current.src="",dt.current.src=Ge,dt.current.onload=function(){Wt()},se(!1),Ae("")}),qt=Ge=>te(void 0,null,function*(){se(!0),Ae("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _e=yield(0,Mt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Kt.title,file:Ge.dataUrl}});_e!=null&&_e.id&&!ht?(yield(0,Mt.ZP)(`/api/attachments/${Kt.id}/add_subitem.json`,{method:"post",body:{subitem_id:_e==null?void 0:_e.id,settings:JSON.stringify(Ge.state)}})).status===0&&lt():_e!=null&&_e.id&&lt(_e),se(!1),Ae("")}),ze=()=>{const Ge=document.querySelector('a[href="https://markerjs.com/"]');Ge&&Ge.parentNode&&(Ge.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 We=document.querySelector(Ne.name);We&&We.setAttribute("title",Ne.title)})},Wt=()=>{xt.current=new Vt.hP(dt.current),xt.current.targetRoot=Ut.current,xt.current.addEventListener("render",qt),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(),Kt!=null&&Kt.snapshotData&&xt.current.restoreState(Kt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ze()},300)};return Lt.createElement(Lt.Fragment,null,(Kt==null?void 0:Kt.visible)&&Lt.createElement(ee.Z,{spinning:Gt,tip:le,style:{position:"absolute"}},Lt.createElement("div",{ref:Ut,className:ke()(ce.imageDimensions,$t,Ct?ce.fullWidth:""),style:et},Lt.createElement("img",{className:ce.img,ref:dt}))))}},46531:function(hi,Cn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(95237),re=Ft(43604),ke=Ft(99313),ee=Ft(3113),Vt=Ft(99325),Mt=Ft(11570),jt=Ft(48136),te=Ft(59301);const Pt=(0,Lt.forwardRef)(({callback:oe,showSaveButton:Kt,value:$t=""},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:te.createElement(ce.Z,{className:Mt.Z.lists,gutter:[10,10]},tt.map((xt,Nt)=>te.createElement(re.Z,{flex:"110px",className:Mt.Z.item},te.createElement("div",null,te.createElement(Vt.Z,{value:`$$${xt.value}$$`}),xt.name),te.createElement("div",{className:Mt.Z.children},xt.children.map((Ut,Gt)=>te.createElement("div",{key:Gt},te.createElement("h1",null,Ut.name),te.createElement(ce.Z,{gutter:[10,10]},Ut.data.map((se,le)=>te.createElement(re.Z,{key:le,onClick:()=>rt(se),className:Mt.Z.diamond},te.createElement(Vt.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:te.createElement(ce.Z,{className:Mt.Z.lists,gutter:[10,10]},lt.map((xt,Nt)=>te.createElement(re.Z,{flex:"110px",className:Mt.Z.item},te.createElement("div",null,te.createElement(Vt.Z,{value:"`$$"+xt.value+"$$`"}),xt.name),te.createElement("div",{className:Mt.Z.children},xt.children.map((Ut,Gt)=>te.createElement("div",{key:Gt},Ut.name&&te.createElement("h1",null,Ut.name),te.createElement(ce.Z,{gutter:[10,10]},Ut.data.map((se,le)=>te.createElement(re.Z,{key:le,onClick:()=>rt(se),className:Mt.Z.diamond},te.createElement(Vt.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],dt=()=>{var xt=document.createElement("div");xt.innerHTML=et.current.getValue();var Nt=xt.innerText;return oe&&oe(Nt),Nt};return(0,Lt.useImperativeHandle)(Ct,()=>({getData:dt})),te.createElement("div",{className:Mt.Z.mathWrap},te.createElement(ke.default,{defaultActiveKey:"1",items:ht}),te.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}},$t||""),Kt&&te.createElement("div",{className:Mt.Z.button},te.createElement(ee.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=Pt},57816:function(hi,Cn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(93314),re=Ft(3113),ke=Object.defineProperty,ee=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Pt=(Ct,et,tt)=>et in Ct?ke(Ct,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ct[et]=tt,oe=(Ct,et)=>{for(var tt in et||(et={}))jt.call(et,tt)&&Pt(Ct,tt,et[tt]);if(Mt)for(var tt of Mt(et))te.call(et,tt)&&Pt(Ct,tt,et[tt]);return Ct},Kt=(Ct,et)=>ee(Ct,Vt(et));const $t=({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:oe(oe({},{color:"#999",margin:"100px auto",visibility:Ut?"hidden":"visible"}),tt)},Lt.createElement("img",{src:Ct||ce,style:Kt(oe({},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,oe({className:dt,onClick:ht},et),rt),xt&&xt);Cn.Z=$t},90853:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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),ke=Ft(70557),ee=Ft(57800),Vt=Ft(6848),Mt=Ft(88230),jt=Ft(30897),te=Ft(57816),Pt=Ft(38446),oe=Ft(89282),Kt=Ft(59301),$t=Object.defineProperty,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(xt,Nt,Ut)=>Nt in xt?$t(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((Gt,se)=>{var le=qt=>{try{Pe(Ut.next(qt))}catch(ze){se(ze)}},Ae=qt=>{try{Pe(Ut.throw(qt))}catch(ze){se(ze)}},Pe=qt=>qt.done?Gt(qt.value):Promise.resolve(qt.value).then(le,Ae);Pe((Ut=Ut.apply(xt,Nt)).next())}),dt=({editOffice:xt="view",data:Nt,theme:Ut,type:Gt,filename:se,monacoEditor:le,className:Ae,style:Pe,close:qt,onClose:ze,hasMask:Wt,disabledDownload:Ge,onImgDimensions:_e,showNodata:Ne,recordInfo:We})=>{const[Re,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)(),Ze=window.ENV==="build"?"/react/build":"",Mn=location.host.startsWith("localhost")?Pt.Z.PROXY_SERVER:Pt.Z.API_SERVER,fi=10*(1024*1024),Kn=(0,Lt.useRef)();Nt!=null&&Nt.startsWith("/api")&&Gt!=="txt"&&(Nt=Pt.Z.API_SERVER+Nt);const Bi=Ot=>Ot.substring(Ot.lastIndexOf("/")+1).split(".").pop();se&&le&&(le.filename=se),(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(ft=>{let gt=ft.split("=");gt[0]==="_educoder_session"&&Ce(gt[1])})},[]),(0,Lt.useEffect)(()=>{Gt==="office"&&(Nt.indexOf("bigfilescdn.")>-1||Nt.indexOf("bigfiles1")>-1?Ln({url:Nt,fileType:Bi(Nt),model:Nt.indexOf("model=edit")?"edit":"view"}):en())},[Gt,Nt]);const en=()=>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=Mn+vt.url,Ln(vt)}),Fi=()=>{if(Nt.startsWith("http")||Nt.startsWith("blob:")){Oi();return}(0,Mt.Sv)(se||"educoder",Nt,se)},Oi=()=>{We&&(0,oe.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,Mt.Nd)(se||"educoder",decodeURIComponent(Nt))};return Kt.createElement("div",{style:rt({},Pe||{}),className:`${Wt&&ce.bgBlack} ${Gt?ce.wrp:"hide"}`},qt&&Kt.createElement("div",{className:ce.close,ref:Kn},!!_e&&Kt.createElement(Vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Kn.current},Kt.createElement("span",{onClick:()=>{ze(),_e()}},Kt.createElement("i",{className:"icon-yulanpizhu"}))),!Ge&&Kt.createElement(Vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Kn.current},Kt.createElement("span",{onClick:Oi},Kt.createElement("i",{className:"icon-quxiaozhiding"}))),Kt.createElement(Vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Kn.current},Kt.createElement("span",{className:"",onClick:ze},Kt.createElement("i",{className:"icon-guanbi1"})))),Kt.createElement("div",{className:`${ce[Ae]} ${Ae} ${ce.monaco} ${Gt==="txt"?"show":"hide"}`},Gt==="txt"&&Kt.createElement(Kt.Fragment,null,Kt.createElement(ee.ZP,rt({},le)))),Gt==="audio"&&Kt.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}),Gt==="video"&&Kt.createElement(Kt.Fragment,null,(Nt==null?void 0:Nt.indexOf("http"))>-1?Kt.createElement("video",{controls:!0,src:`${Nt}`,autoPlay:!0}):Kt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Nt}`,autoPlay:!0})),Gt==="office"&&bn&&Kt.createElement("iframe",{src:`${Ze}/office.html?key=${bn.key}&url=${btoa(bn.url)}&callbackUrl=${Mn+(bn.callbackUrl||"")}&fileType=${bn.fileType}&title=${bn.title||""}&model=${xt}&officeServer=${Pt.Z.ONLYOFFICE}&disabledDownload=${!!Ge}`}),Gt==="html"&&Kt.createElement("iframe",{src:Nt+"&disposition=inline"}),Gt==="pdf"&&Kt.createElement("iframe",{src:`${Ze}/js/pdfview/index.html?filename=${se||"educoder.pdf"}&url=${encodeURIComponent(Nt)}&disabledDownload=${!!Ge}`}),Gt==="image"&&Kt.createElement("img",{src:`${(Nt==null?void 0:Nt.indexOf("http://"))>-1||(Nt==null?void 0:Nt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Nt}`}),(Gt==="other"||Gt==="download")&&Kt.createElement(Kt.Fragment,null,Ne?Kt.createElement(te.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Kt.createElement(re.ZP,{icon:Kt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fi,disabled:Ge},"\u4E0B\u8F7D")}):Kt.createElement(re.ZP,{type:"primary",size:"middle",onClick:Fi,disabled:Ge},Kt.createElement(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},99325:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{z:function(){return Gt},Z:function(){return se}});var Lt=Ft(59301),ce=Ft(2878),re=Ft(85187),ke=Ft(64018),ee=Ft(40846),Vt=Ft(38446),Mt=Ft(88230),jt=Ft(15342),te=Ft(1012),Pt=Ft(90853),oe=Ft(59301),$t=({html:le})=>{const Ae=(0,Lt.useRef)(null),Pe=(0,Lt.useRef)(null),qt=`.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 ze=Ae.current.attachShadow({mode:"open"});Pe.current=document.createElement("div"),Pe.current.className="markdown-body",Pe.current.innerHTML=le,ze.appendChild(Pe.current);const Wt=document.createElement("style");return Wt.textContent=qt,ze.appendChild(Wt),()=>{ze.innerHTML=""}},[]),(0,Lt.useEffect)(()=>{Pe.current&&(Pe.current.innerHTML=le)},[le]),oe.createElement("div",{ref:Ae})},Ct=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(le,Ae,Pe)=>Ae in le?Ct(le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Ae]=Pe,ht=(le,Ae)=>{for(var Pe in Ae||(Ae={}))tt.call(Ae,Pe)&&rt(le,Pe,Ae[Pe]);if(et)for(var Pe of et(Ae))lt.call(Ae,Pe)&&rt(le,Pe,Ae[Pe]);return le};const dt="@\u2581\u2581@",xt="@\u2581@",Nt=/<pre[^>]*>/g;function Ut(le){let Ae=document.createElement("div");return Ae.innerHTML=le,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const Gt=(le,Ae)=>{le=le||"";const Pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\(\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 Ae?le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Pe,(Ge,_e,Ne,We,Re,ve,ne)=>{const Ce=_e||We||ve,bn=Ne||Re||ne||"?";return Vt.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Mt.Jn)(Ce,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(le=le.replace(Wt,(Ge,_e,Ne,We,Re,ve,ne)=>{const Ce=_e||We||ve,bn=Ne||Re||ne||"?";return Vt.Z.API_SERVER+"/attachments/download/"+Ce+bn+"&t="+(0,Mt.Jn)(Ce,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(Pe,(Ge,_e,Ne,We,Re,ve,ne)=>{const Ce=_e||We||ve,bn=Ne||Re||ne||"?";return Vt.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Mt.Jn)(Ce,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(qt,(Ge,_e,Ne,We,Re)=>{const ve=_e||We,ne=Ne||Re||"";return'"'+Vt.Z.API_SERVER+"/api/attachments/"+ve+ne+ve+ne+"&t="+(0,Mt.Jn)(ve,Date.now())}).replace(ze,(Ge,_e,Ne,We,Re)=>{const ve=_e||We,ne=Ne||Re||"";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,`
`),le)};var se=({value:le="",className:Ae,showTextOnly:Pe,showLines:qt,style:ze={},stylesPrev:Wt={},highlightKeywords:Ge,showProgramFill:_e,isProgramFill:Ne,disabledFill:We=!1,programFillValue:Re,onFillChange:ve=bn=>{},onFillBlur:ne=()=>{},onFillFocus:Ce=()=>{}})=>{let bn=String(le);const[Ln,Ze]=(0,Lt.useState)(""),[Mn,Vn]=(0,Lt.useState)("office"),[fi,Kn]=(0,Lt.useState)([]),Bi=(0,Lt.useRef)("a"+(0,te.Z)()),en={},Fi=(Te,De,Me)=>{const sn=document.createElement(Te===xt?"input":"textarea");sn.style.width="100%",sn.style.height=Te===xt?"40px":"151px",sn.rows=5,sn.spellcheck=!1,sn.name="edu-program-fill",sn.placeholder="\u8BF7\u8F93\u5165",sn.dataset.id=De;const Gn=Object.keys(en).length;return en[Gn]=sn,`<span class="edu-program-fill-wrap ${Te===xt?"":"show"}" style="width:${Te===xt?"400px":"100%"}" title=${Me||""}><span>${sn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Oi(Te){return Te=Te.replace(/!\[.*?\]\(.*?\)/g,""),Te=Te.replace(/\[.*?\]\(.*?\)/g,""),Te=Te.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Te=Te.replace(/<embed.*?>/g,""),Te=Te.replace(/<img.*?>/g,""),Te=Te.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Te=Te.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Te=Te.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Te=Te.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Te}const Ot=Te=>Te.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(De,Me){let sn=Me.replace(/(\n|\r)/g,"").split("}"),Gn=[];return sn.map(an=>{an!=""&&Gn.push(`.${Bi.current} ${an}`)}),`<style>${Gn.join("}")}</style>`}),Tt=(0,Lt.useMemo)(()=>{try{const sn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Gn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,an=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,un=/\(\/attachments\/download\//g;bn=bn.replace(un,"("+Vt.Z.API_SERVER+"/attachments/download/").replace(sn,"("+Vt.Z.API_SERVER+"/api/attachments/").replace(Gn,'"'+Vt.Z.API_SERVER+"/api/attachments/").replace(an,'"'+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(sn){}if(_e){let sn=-1;return bn=bn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Gn,an,un){var Bn;return++sn,Fi(Gn,sn,(Bn=Re==null?void 0:Re[sn])==null?void 0:Bn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ot(bn||"")}</pre>`}let Te=Ot(bn);Te=(0,re.ZP)(Te);const De=(0,re.ez)();bn.match(/\[TOC\]/)&&(Te=Te.replace("<p>[TOC]</p>",(0,re.Qv)()),(0,re.Iy)()),Te=Te.replace(/(__special_katext_id_\d+__)/g,(sn,Gn)=>{const{type:an,expression:un}=De[Gn];return(0,jt.renderToString)(Ut(un)||"",{displayMode:an==="block",throwOnError:!1,output:"html"})}),Te=Te.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,re.AL)();const Me=document.createElement("div");if(Me.innerHTML=Te,Pe)return Me.innerText;if(Ge){const sn=Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return At(Me,sn),Me.innerHTML}return setTimeout(()=>ae(),500),Me.innerHTML},[bn,Ge]);(0,Lt.useEffect)(()=>{ue.current&&ue.current.querySelectorAll(["input","textarea"]).forEach(De=>{De.oninput=vt,De.onblur=ft,De.onfocus=gt})},[fi]),(0,Lt.useEffect)(()=>{var Te,De,Me,sn,Gn;if(Re!=null&&Re.length)try{const an=ue.current.querySelectorAll(".edu-program-fill-score"),un=ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Bn,ai]of un.entries())ai.value=((Te=Re==null?void 0:Re[Bn])==null?void 0:Te.value)||"",((De=Re==null?void 0:Re[Bn])==null?void 0:De.type)==="warning"?ai.className="program-fill-warning":((Me=Re==null?void 0:Re[Bn])==null?void 0:Me.type)==="success"?ai.className="program-fill-success":ai.className="";for(const[Bn,ai]of an.entries())ai.innerHTML=(sn=Re==null?void 0:Re[Bn])!=null&&sn.score?`${(Gn=Re==null?void 0:Re[Bn])==null?void 0:Gn.score}\u5206`:"";Kn(Re)}catch(an){console.log(an,"error")}},[Re]);const vt=Te=>{fi[Te.target.dataset.id]=fi[Te.target.dataset.id]||{},fi[Te.target.dataset.id].value=Te.target.value,Kn([...fi]),ve(fi,Te.target.dataset.id)},ft=Te=>{fi[Te.target.dataset.id]=fi[Te.target.dataset.id]||{},fi[Te.target.dataset.id].value=Te.target.value,Kn([...fi]),ne(fi,Te.target.dataset.id)},gt=Te=>{fi[Te.target.dataset.id]=fi[Te.target.dataset.id]||{},fi[Te.target.dataset.id].value=Te.target.value,Kn([...fi]),Ce(fi,Te.target.dataset.id)};function At(Te,De){return Te.childNodes.forEach(Me=>{var sn;if(Me.childNodes.length>0)At(Me,De);else if(Me.nodeName!=="IMG")if(Me.innerHTML)Me.innerHTML=(sn=Me.innerHTML)==null?void 0:sn.replace(new RegExp(De,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Gn=document.createElement("span");Gn.innerHTML=Me.textContent.replace(new RegExp(De,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Me.replaceWith(Gn)}})}const ue=(0,Lt.useRef)();re.jb.WebkitLineClamp=qt,qt&&(ze=ht(ht({},ze),re.jb));function xe(Te){let De=Te.target;if(De.tagName.toUpperCase()==="A"){let Me=De.getAttribute("href");if(Me.indexOf("office")>-1)Te.preventDefault(),Ze(Me),Vn("office");else if(Me.indexOf("application/pdf")>-1)Te.preventDefault(),Ze(Me),Vn("pdf");else if(Me.indexOf("text/html")>-1)Te.preventDefault(),Ze(Me),Vn("html");else if(Me.startsWith("#")){Te.preventDefault();let sn=document.getElementById(Me.replace("#",""));sn&&sn.scrollIntoView(!0)}}}const ae=()=>{var Te;const De=(Te=ue.current)==null?void 0:Te.querySelectorAll("video");De==null||De.forEach(Me=>{if(Me.oncontextmenu=()=>!1,Me.src.indexOf(".m3u8")>-1&&!Me.canPlayType("application/vnd.apple.mpegurl")){if(ee.ZP.isSupported()){var sn=new ee.ZP;sn.loadSource(Me.src),sn.attachMedia(Me)}}})};(0,Lt.useEffect)(()=>{if(ue.current&&Tt&&Tt.match(Nt)&&window.PR.prettyPrint(),ue.current)return ue.current.addEventListener("click",xe),()=>{var Te;(Te=ue.current)==null||Te.removeEventListener("click",xe),(0,re.AL)(),(0,re.Iy)()}},[Tt,ue.current,xe]),(0,Lt.useEffect)(()=>{var Te;const De=Me=>{Me.preventDefault(),Me.clipboardData.setData("text",window.getSelection().toString())};return(Te=ue.current)==null||Te.addEventListener("copy",De),()=>{var Me;(Me=ue.current)==null||Me.removeEventListener("copy",De)}},[ue.current]);const ye=Te=>/<style[\s\S]*?>/i.test(Te||"");return Lt.createElement(Lt.Fragment,null,Pe&&Lt.createElement("div",{ref:ue},Tt),!Pe&&!ye(Tt)&&Lt.createElement("div",{ref:ue,style:ht({},ze),className:`${Ae||""} ${We?"disabled-fill":""} markdown-body ${Bi.current}`,dangerouslySetInnerHTML:{__html:Tt}}),!Pe&&ye(Tt)&&Lt.createElement($t,{html:Tt}),Lt.createElement(Pt.Z,{close:!0,data:Ln,type:Ln!=null&&Ln.length?Mn:"",style:ht({},Wt),onClose:()=>Ze("")}))}},33471:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ze}});var Lt=Ft(59301),ce=Ft(24459),re=Ft(43418),ke=Ft(78241),ee=Ft(8591),Vt=Ft(71418),Mt=Ft(17574),jt=Ft(95237),te=Ft(43604),Pt=Ft(6848),oe=Ft(92832),Kt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},$t=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,Ge,_e)=>Ge in Wt?lt(Wt,Ge,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Wt[Ge]=_e,Gt=(Wt,Ge)=>{for(var _e in Ge||(Ge={}))xt.call(Ge,_e)&&Ut(Wt,_e,Ge[_e]);if(dt)for(var _e of dt(Ge))Nt.call(Ge,_e)&&Ut(Wt,_e,Ge[_e]);return Wt},se=(Wt,Ge)=>rt(Wt,ht(Ge)),le=(Wt,Ge)=>{var _e={};for(var Ne in Wt)xt.call(Wt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&dt)for(var Ne of dt(Wt))Ge.indexOf(Ne)<0&&Nt.call(Wt,Ne)&&(_e[Ne]=Wt[Ne]);return _e},Ae=(Wt,Ge,_e)=>new Promise((Ne,We)=>{var Re=Ce=>{try{ne(_e.next(Ce))}catch(bn){We(bn)}},ve=Ce=>{try{ne(_e.throw(Ce))}catch(bn){We(bn)}},ne=Ce=>Ce.done?Ne(Ce.value):Promise.resolve(Ce.value).then(Re,ve);ne((_e=_e.apply(Wt,Ge)).next())});const Pe=(Wt=[])=>Wt==null?void 0:Wt.map(Ge=>se(Gt({},Ge),{title:(Ge==null?void 0:Ge.value)||"",key:Ge==null?void 0:Ge.id,isLeaf:!0})),qt=Wt=>{var Ge=Wt,{user:_e,children:Ne,isShowComponent:We=!0,ModalProps:Re={},onDataSelect:ve}=Ge,ne=le(Ge,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Ce,bn]=re.default.useModal(),[Ln]=ke.default.useForm(),[Ze,Mn]=(0,Lt.useState)([]),[Vn,fi]=(0,Lt.useState)(!1),[Kn,Bi]=(0,Lt.useState)(!1),[,en,Fi,Oi]=(0,$t.U)(Ct.qE,{page:1,limit:9999}),[,,Ot]=(0,$t.U)(Ct.V8,{}),[,,Tt]=(0,$t.U)(Ct.B$,{}),[,,vt]=(0,$t.U)(Ct.DH,{}),[,,ft]=(0,$t.U)(Ct.bJ,{}),gt=()=>{fi(!1),Ln.resetFields(),Bi(!1)},At=xe=>Ae(void 0,null,function*(){const{node:ae,dragNode:ye,event:Te}=xe,De=xe.node.pos.split("-"),Me=xe.dropPosition-Number(De[De.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 sn=yield ft({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});(sn==null?void 0:sn.status)===0&&(ee.ZP.success("\u79FB\u52A8\u6210\u529F"),Fi({},!0))}),ue=xe=>Ae(void 0,null,function*(){let ae={};Kn?ae=yield Tt(Gt({},xe)):ae=yield vt(Gt({},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")),Fi({},!0),gt())});return(0,Lt.useEffect)(()=>{Re!=null&&Re.open&&Fi({},!0)},[Re==null?void 0:Re.open]),(0,Lt.useEffect)(()=>{var xe;Mn(Pe((xe=Oi==null?void 0:Oi.data)==null?void 0:xe.list))},[Oi]),We?Lt.createElement(Lt.Fragment,null,bn,Ne,Lt.createElement(re.default,Gt({},Gt({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Re)),Lt.createElement(Vt.Z,{spinning:en},(Ze==null?void 0:Ze.length)>0?Lt.createElement(Lt.Fragment,null,Lt.createElement(Mt.default.DirectoryTree,{height:500,className:Kt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:ve,treeData:Ze,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:`${Kt.EditDom}`},Lt.createElement(jt.Z,{wrap:!1,align:"middle",gutter:16},Lt.createElement(te.Z,null,Lt.createElement(Pt.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},Lt.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Kt.currentPrimary}`}))),Lt.createElement(te.Z,null,Lt.createElement(Pt.Z,{title:"\u7F16\u8F91"},Lt.createElement("i",{className:`iconfont icon-bianji11 font12 ${Kt.currentPrimary}`,onClick:ae=>{ae.stopPropagation(),Ln.setFieldsValue(Gt({},xe)),fi(!0)}}))),Lt.createElement(te.Z,null,Lt.createElement(Pt.Z,{title:"\u5220\u9664"},Lt.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Kt.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:()=>Ae(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"),Fi({},!0))})})}}))))))}),Lt.createElement(tt.op,{className:"ml20 mt20",icon:Lt.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{Bi(!0),fi(!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:()=>{Bi(!0),fi(!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:Vn,okText:Kn?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{gt()},onOk:()=>{Ln.submit()}},Lt.createElement(ke.default,{form:Ln,onFinish:ue},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(ke.default.Item,{hidden:!0,name:"id"}),Lt.createElement(ke.default.Item,{className:"mt10",name:"value"},Lt.createElement(oe.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 ze=(0,ce.connect)(({loading:Wt,user:Ge})=>({user:Ge,loading:Wt.effects}))(qt)},73278:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{h:function(){return xt}});var Lt=Ft(59301),ce=Ft(57809),re=Ft(78241),ke=Ft(3113),ee=Ft(89780),Vt=Ft.n(ee),Mt=Ft(78780),jt=Ft(19136),te=Object.defineProperty,Pt=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(Nt,Ut,Gt)=>Ut in Nt?te(Nt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Nt[Ut]=Gt,tt=(Nt,Ut)=>{for(var Gt in Ut||(Ut={}))$t.call(Ut,Gt)&&et(Nt,Gt,Ut[Gt]);if(Kt)for(var Gt of Kt(Ut))Ct.call(Ut,Gt)&&et(Nt,Gt,Ut[Gt]);return Nt},lt=(Nt,Ut)=>Pt(Nt,oe(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"]};Cn.Z=({callback:Nt,onCancel:Ut})=>{const[Gt,se]=(0,Lt.useState)("python");function le(Pe){se(dt[Pe][1])}function Ae(Pe){Nt(Pe)}return Lt.createElement(re.default,lt(tt({},ht),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ae,style:{width:500}}),Lt.createElement(re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Lt.createElement(ce.default,{getPopupContainer:Pe=>Pe.parentNode,onChange:le},Object.keys(dt).map(Pe=>Lt.createElement(rt,{key:Pe,value:Pe},dt[Pe][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:Gt})),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(ke.ZP,{type:"ghost",onClick:Ut},"\u53D6\u6D88")))};function xt({value:Nt,onChange:Ut,mode:Gt,options:se={}}){const le=(0,Lt.useRef)(),[Ae,Pe]=(0,Lt.useState)();return(0,Lt.useEffect)(()=>{if(Ae){let qt=function(ze){const Wt=ze.getValue();Ut&&Ut(Wt)};return Ae.on("change",qt),()=>{Ae.off("change",qt)}}},[Ae,Ut]),(0,Lt.useEffect)(()=>{Ae&&Ae.setOption("mode",Gt)},[Ae,Gt]),(0,Lt.useEffect)(()=>{Ae&&(Nt!==Ae.getValue()||Nt==="")&&setTimeout(()=>{Ae.setValue(Nt||"")},300)},[Ae,Nt]),(0,Lt.useEffect)(()=>{if(le.current&&!Ae){const qt=Vt().fromTextArea(le.current,tt({mode:Gt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Pe(qt)}},[le.current,Ae]),Lt.createElement("div",{className:"my-codemirror-container"},Lt.createElement("textarea",{ref:le}))}},64726:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return _r}});var Lt=Ft(59301),ce=Ft(89780),re=Ft.n(ce),ke=Ft(76374),ee=Ft(78780),Vt=Ft(6313),Mt=Ft(25717),jt=Ft(99498),te=Ft(25419),Pt=Ft(67549),oe=Ft(99325),Kt=({value:Dn="",className:Nn,showTextOnly:je,showLines:ei,style:xi={}})=>{const dn=(0,Lt.useMemo)(()=>"",[Dn]);return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{dangerouslySetInnerHTML:{__html:dn}}))},$t=Ft(59301),Ct=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,dt=(Dn,Nn,je)=>Nn in Dn?Ct(Dn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:je}):Dn[Nn]=je,xt=(Dn,Nn)=>{for(var je in Nn||(Nn={}))rt.call(Nn,je)&&dt(Dn,je,Nn[je]);if(lt)for(var je of lt(Nn))ht.call(Nn,je)&&dt(Dn,je,Nn[je]);return Dn},Nt=(Dn,Nn)=>et(Dn,tt(Nn));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 Gt({onActionCallback:Dn,title:Nn,icon:je,actionName:ei,className:xi="",children:dn}){function Fe(){Dn(ei)}return $t.createElement("a",{title:Nn,className:xi,onClick:Fe},$t.createElement("i",{className:`${je}`}),dn)}var se=({watch:Dn,showNullButton:Nn,showNullProgramButton:je,onActionCallback:ei,fullScreen:xi,insertTemp:dn,hidetoolBar:Fe,extraUse:wn})=>{const Hn=[...Ut,{title:`${Dn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Dn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return $t.createElement("ul",{className:"markdown-toolbar-container"},!Fe&&Hn.map((Si,Di)=>$t.createElement("li",{key:Di},Si.actionName?$t.createElement(Gt,Nt(xt({},Si),{onActionCallback:ei})):$t.createElement("span",{className:"v-line"}))),Nn?$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ei},$t.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,je?$t.createElement($t.Fragment,null,$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ei},$t.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ei},$t.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dn&&$t.createElement("li",null,$t.createElement(Gt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dn}`,onActionCallback:ei},$t.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),wn&&$t.createElement("li",null,wn),$t.createElement("li",{className:"btn-full-screen"},$t.createElement(Gt,{icon:`${xi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:xi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ei})))},le=Ft(19647),Ae=Ft(78241),Pe=Ft(92832),qt=Ft(3113),ze=Object.defineProperty,Wt=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Re=(Dn,Nn,je)=>Nn in Dn?ze(Dn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:je}):Dn[Nn]=je,ve=(Dn,Nn)=>{for(var je in Nn||(Nn={}))Ne.call(Nn,je)&&Re(Dn,je,Nn[je]);if(_e)for(var je of _e(Nn))We.call(Nn,je)&&Re(Dn,je,Nn[je]);return Dn},ne=(Dn,Nn)=>Wt(Dn,Ge(Nn));const Ce={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:Dn,onCancel:Nn})=>{function je(ei){Dn(ei)}return Lt.createElement(Ae.default,ne(ve({},Ce),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:je,style:{width:500}}),Lt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Lt.createElement(Pe.default,null)),Lt.createElement(Ae.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Lt.createElement(Pe.default,null)),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(qt.ZP,{type:"ghost",onClick:Nn},"\u53D6\u6D88")))},Ln=Ft(73278),Ze=Ft(56030),Mn=Ft(43418),Vn=Ft(95237),fi=Ft(14573),Kn=Ft(59301),Bi=({callback:Dn,onCancel:Nn})=>{const je=document.createElement("canvas"),ei=je.getContext("2d");je.width=1e3,je.height=800,ei.fillStyle="#ffffff",ei.fillRect(0,0,je.width,je.height);const xi=je.toDataURL("image/png");return Kn.createElement(Mn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Kn.createElement(Vn.Z,{style:{height:"100vh"}},Kn.createElement(fi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:xi,visible:!0,title:String(Date.now())},onOk:dn=>{Dn({src:dn.url})},onClose:Nn})))},en=Ft(12378);function Fi(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Fi,go.CommandHandler),Fi.prototype.canAlignSelection=function(){var Dn=this.diagram;return!(Dn===null||Dn.isReadOnly||Dn.isModelReadOnly||Dn.selection.count<2)},Fi.prototype.alignLeft=function(){var Dn=this.diagram;Dn.startTransaction("aligning left");var Nn=1/0;Dn.selection.each(function(je){je instanceof go.Link||(Nn=Math.min(je.position.x,Nn))}),Dn.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(Nn,je.position.y))}),Dn.commitTransaction("aligning left")},Fi.prototype.alignRight=function(){var Dn=this.diagram;Dn.startTransaction("aligning right");var Nn=-1/0;Dn.selection.each(function(je){if(!(je instanceof go.Link)){var ei=je.actualBounds.x+je.actualBounds.width;Nn=Math.max(ei,Nn)}}),Dn.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(Nn-je.actualBounds.width,je.position.y))}),Dn.commitTransaction("aligning right")},Fi.prototype.alignTop=function(){var Dn=this.diagram;Dn.startTransaction("alignTop");var Nn=1/0;Dn.selection.each(function(je){je instanceof go.Link||(Nn=Math.min(je.position.y,Nn))}),Dn.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.position.x,Nn))}),Dn.commitTransaction("alignTop")},Fi.prototype.alignBottom=function(){var Dn=this.diagram;Dn.startTransaction("aligning bottom");var Nn=-1/0;Dn.selection.each(function(je){if(!(je instanceof go.Link)){var ei=je.actualBounds.y+je.actualBounds.height;Nn=Math.max(ei,Nn)}}),Dn.selection.each(function(je){je instanceof go.Link||je.move(new go.Point(je.actualBounds.x,Nn-je.actualBounds.height))}),Dn.commitTransaction("aligning bottom")},Fi.prototype.alignCenterX=function(){var Dn=this.diagram,Nn=Dn.selection.first();if(Nn){Dn.startTransaction("aligning Center X");var je=Nn.actualBounds.x+Nn.actualBounds.width/2;Dn.selection.each(function(ei){ei instanceof go.Link||ei.move(new go.Point(je-ei.actualBounds.width/2,ei.actualBounds.y))}),Dn.commitTransaction("aligning Center X")}},Fi.prototype.alignCenterY=function(){var Dn=this.diagram,Nn=Dn.selection.first();if(Nn){Dn.startTransaction("aligning Center Y");var je=Nn.actualBounds.y+Nn.actualBounds.height/2;Dn.selection.each(function(ei){ei instanceof go.Link||ei.move(new go.Point(ei.actualBounds.x,je-ei.actualBounds.height/2))}),Dn.commitTransaction("aligning Center Y")}},Fi.prototype.alignColumn=function(Dn){var Nn=this.diagram;Nn.startTransaction("align Column"),Dn===void 0&&(Dn=0),Dn=parseFloat(Dn);var je=new Array;Nn.selection.each(function(wn){wn instanceof go.Link||je.push(wn)});for(var ei=0;ei<je.length-1;ei++){var xi=je[ei],dn=xi.actualBounds.y+xi.actualBounds.height+Dn,Fe=je[ei+1];Fe.move(new go.Point(xi.actualBounds.x,dn))}Nn.commitTransaction("align Column")},Fi.prototype.alignRow=function(Dn){Dn===void 0&&(Dn=0),Dn=parseFloat(Dn);var Nn=this.diagram;Nn.startTransaction("align Row");var je=new Array;Nn.selection.each(function(wn){wn instanceof go.Link||je.push(wn)});for(var ei=0;ei<je.length-1;ei++){var xi=je[ei],dn=xi.actualBounds.x+xi.actualBounds.width+Dn,Fe=je[ei+1];Fe.move(new go.Point(dn,xi.actualBounds.y))}Nn.commitTransaction("align Row")},Fi.prototype.canRotate=function(Dn){var Nn=this.diagram;return!(Nn===null||Nn.isReadOnly||Nn.isModelReadOnly||Nn.selection.count<1)},Fi.prototype.rotate=function(Dn){Dn===void 0&&(Dn=90);var Nn=this.diagram;Nn.startTransaction("rotate "+Dn.toString());var Nn=this.diagram;Nn.selection.each(function(je){je instanceof go.Link||je instanceof go.Group||(je.angle+=Dn)}),Nn.commitTransaction("rotate "+Dn.toString())},Fi.prototype.pullToFront=function(){var Dn=this.diagram;Dn.startTransaction("pullToFront");var Nn=new go.Map;Dn.selection.each(function(je){Nn.set(je.layer,0)}),Nn.iteratorKeys.each(function(je){var ei=0;je.parts.each(function(xi){if(!xi.isSelected){var dn=xi.zOrder;isNaN(dn)?xi.zOrder=0:ei=Math.max(ei,dn)}}),Nn.set(je,ei)}),Dn.selection.each(function(je){Fi._assignZOrder(je,Nn.get(je.layer)+1)}),Dn.commitTransaction("pullToFront")},Fi.prototype.pushToBack=function(){var Dn=this.diagram;Dn.startTransaction("pushToBack");var Nn=new go.Map;Dn.selection.each(function(je){Nn.set(je.layer,0)}),Nn.iteratorKeys.each(function(je){var ei=0;je.parts.each(function(xi){if(!xi.isSelected){var dn=xi.zOrder;isNaN(dn)?xi.zOrder=0:ei=Math.min(ei,dn)}}),Nn.set(je,ei)}),Dn.selection.each(function(je){Fi._assignZOrder(je,Nn.get(je.layer)-1-Fi._findGroupDepth(je))}),Dn.commitTransaction("pushToBack")},Fi._assignZOrder=function(Dn,Nn,je){je===void 0&&(je=Dn),Dn.layer===je.layer&&(Dn.zOrder=Nn),Dn instanceof go.Group&&Dn.memberParts.each(function(ei){Fi._assignZOrder(ei,Nn+1,je)})},Fi._findGroupDepth=function(Dn){if(Dn instanceof go.Group){var Nn=0;return Dn.memberParts.each(function(je){Nn=Math.max(Nn,Fi._findGroupDepth(je))}),Nn+1}else return 0},Fi.prototype.doKeyDown=function(){var Dn=this.diagram;if(Dn!==null){var Nn=Dn.lastInput;if(Nn.key==="Up"||Nn.key==="Down"||Nn.key==="Left"||Nn.key==="Right"){var je=this.arrowKeyBehavior;if(je==="none")return;if(je==="select"){this._arrowKeySelect();return}else if(je==="move"){this._arrowKeyMove();return}else if(je==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Fi.prototype._getAllParts=function(){var Dn=new Array;return this.diagram.nodes.each(function(Nn){Dn.push(Nn)}),this.diagram.parts.each(function(Nn){Dn.push(Nn)}),Dn},Fi.prototype._arrowKeyMove=function(){var Dn=this.diagram,Nn=Dn.lastInput,je=0,ei=0;if(Nn.control||Nn.meta)je=1,ei=1;else if(Dn.grid!==null){var xi=Dn.grid.gridCellSize;ei=xi.width,je=xi.height}Dn.startTransaction("arrowKeyMove"),Dn.selection.each(function(dn){Nn.key==="Up"?dn.move(new go.Point(dn.actualBounds.x,dn.actualBounds.y-je)):Nn.key==="Down"?dn.move(new go.Point(dn.actualBounds.x,dn.actualBounds.y+je)):Nn.key==="Left"?dn.move(new go.Point(dn.actualBounds.x-ei,dn.actualBounds.y)):Nn.key==="Right"&&dn.move(new go.Point(dn.actualBounds.x+ei,dn.actualBounds.y))}),Dn.commitTransaction("arrowKeyMove")},Fi.prototype._arrowKeySelect=function(){var Dn=this.diagram,Nn=Dn.lastInput,je=null;Nn.key==="Up"?je=this._findNearestPartTowards(270):Nn.key==="Down"?je=this._findNearestPartTowards(90):Nn.key==="Left"?je=this._findNearestPartTowards(180):Nn.key==="Right"&&(je=this._findNearestPartTowards(0)),je!==null&&(Nn.shift?je.isSelected=!0:Nn.control||Nn.meta?je.isSelected=!je.isSelected:Dn.select(je))},Fi.prototype._findNearestPartTowards=function(Dn){var Nn=this.diagram.selection.first();if(Nn===null)return null;for(var je=Nn.actualBounds.center,ei=this._getAllParts(),xi=1/0,dn=Nn,Fe=0;Fe<ei.length;Fe++){var wn=ei[Fe];if(wn!==Nn&&wn.canSelect()){var Hn=wn.actualBounds.center,Si=je.directionPoint(Hn),Di=this._angleCloseness(Si,Dn);if(Di<=45){var tn=je.distanceSquaredPoint(Hn);tn*=1+Math.sin(Di*Math.PI/180),tn<xi&&(xi=tn,dn=wn)}}}return dn},Fi.prototype._angleCloseness=function(Dn,Nn){return Math.min(Math.abs(Nn-Dn),Math.min(Math.abs(Nn+360-Dn),Math.abs(Nn-360-Dn)))},Fi.prototype._arrowKeyTree=function(){var Dn=this.diagram,Nn=Dn.selection.first();if(Nn instanceof go.Node){var je=Dn.lastInput;if(je.key==="Right"){if(!Nn.isTreeLeaf)if(!Nn.isTreeExpanded)Dn.commandHandler.canExpandTree(Nn)&&Dn.commandHandler.expandTree(Nn);else{var ei=this._sortTreeChildrenByY(Nn).first();ei!==null&&Dn.select(ei)}}else if(je.key==="Left")if(!Nn.isTreeLeaf&&Nn.isTreeExpanded)Dn.commandHandler.canCollapseTree(Nn)&&Dn.commandHandler.collapseTree(Nn);else{var xi=Nn.findTreeParentNode();xi!==null&&Dn.select(xi)}else if(je.key==="Up"){var xi=Nn.findTreeParentNode();if(xi!==null){var dn=this._sortTreeChildrenByY(xi),Fe=dn.indexOf(Nn);if(Fe>0){for(var wn=dn.elt(Fe-1);wn!==null&&wn.isTreeExpanded&&!wn.isTreeLeaf;){var Hn=this._sortTreeChildrenByY(wn);wn=Hn.last()}wn!==null&&Dn.select(wn)}else Dn.select(xi)}}else if(je.key==="Down")if(Nn.isTreeExpanded&&!Nn.isTreeLeaf){var ei=this._sortTreeChildrenByY(Nn).first();ei!==null&&Dn.select(ei)}else for(;Nn!==null;){var xi=Nn.findTreeParentNode();if(xi===null)break;var dn=this._sortTreeChildrenByY(xi),Fe=dn.indexOf(Nn);if(Fe<dn.length-1){Dn.select(dn.elt(Fe+1));break}else Nn=xi}var Si=Dn.selection.first();Si!==null&&Dn.scrollToRect(Si.actualBounds)}},Fi.prototype._sortTreeChildrenByY=function(Dn){var Nn=new go.List().addAll(Dn.findTreeChildrenNodes());return Nn.sort(function(je,ei){var xi=je.location,dn=ei.location;return xi.y<dn.y?-1:xi.y>dn.y?1:xi.x<dn.x?-1:xi.x>dn.x?1:0}),Nn},Fi.prototype.copyToClipboard=function(Dn){go.CommandHandler.prototype.copyToClipboard.call(this,Dn),this._lastPasteOffset.set(this.pasteOffset)},Fi.prototype.pasteFromClipboard=function(){var Dn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Dn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Dn},Object.defineProperty(Fi.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Dn){if(Dn!=="move"&&Dn!=="select"&&Dn!=="scroll"&&Dn!=="tree"&&Dn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Dn);this._arrowKeyBehavior=Dn}}),Object.defineProperty(Fi.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Dn){if(!(Dn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Dn);this._pasteOffset.set(Dn)}});var Oi=Fi,Ot=Ft(29277),Tt=Ft(43604),vt=Ft(7660),ft={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},gt=Ft(73898),At=Ft(59301),ue=(Dn,Nn,je)=>new Promise((ei,xi)=>{var dn=Hn=>{try{wn(je.next(Hn))}catch(Si){xi(Si)}},Fe=Hn=>{try{wn(je.throw(Hn))}catch(Si){xi(Si)}},wn=Hn=>Hn.done?ei(Hn.value):Promise.resolve(Hn.value).then(dn,Fe);wn((je=je.apply(Dn,Nn)).next())});function xe({onCancel:Dn,callback:Nn}){let je=(0,Lt.useRef)(),ei=(0,Lt.useRef)(),xi=(0,Lt.useRef)(),dn=(0,Lt.useRef)(!1);const Fe=(0,Lt.useRef)(!1),[wn,Hn]=(0,Lt.useState)(0);function Si(){const tn=en.bx.make,oi={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"};je.current=new en.S0(ei.current,{padding:20,grid:tn(en.s_,"Grid",tn(en.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tn(en.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:or=>{var Hr=or.diagram.commandHandler.addTopLevelParts(or.diagram.selection,!0);Hr||or.diagram.currentTool.doCancel()},commandHandler:tn(Oi),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:or=>{var Hr=or.subject;Hr.location=Hr.location.copy().snapToGridPoint(or.diagram.grid.gridOrigin,or.diagram.grid.gridCellSize),setTimeout(()=>{or.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:or=>{var Hr=or.subject;setTimeout(()=>{or.diagram.commandHandler.editTextBlock()})},LinkRelinked:or=>{var Hr=or.parameter.part;Hr.invalidateConnectedLinks();var uo=or.subject;or.diagram.toolManager.linkingTool.isForwards?uo.toNode.invalidateConnectedLinks():uo.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),je.current.nodeTemplate=tn(en.NB,"Auto",{locationSpot:en.z6.Center,locationObjectName:"SHAPE",desiredSize:new en.$u(120,60),minSize:new en.$u(40,40),resizable:!0,resizeCellSize:new en.$u(10,10),rotatable:!0},new en.KX("location","loc",en.E9.parse).makeTwoWay(en.E9.stringify),new en.KX("desiredSize","size",en.$u.parse).makeTwoWay(en.$u.stringify),tn(en.bn,{name:"SHAPE",fill:oi.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:en.z6.AllSides,toSpot:en.z6.AllSides},new en.KX("figure"),new en.KX("fill"),new en.KX("stroke","borderColor"),new en.KX("strokeWidth","thickness"),new en.KX("strokeDashArray","dash")),tn(en.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),tn(en.al,{margin:1,textAlign:"center",overflow:en.al.OverflowEllipsis,editable:!0},new en.KX("text").makeTwoWay(),new en.KX("stroke","color"))),je.current.nodeTemplate.toolTip=tn("ToolTip",tn(en.s_,"Vertical",{maxSize:new en.$u(200,NaN)},tn(en.al,{font:"bold 10pt sans-serif",textAlign:"center"},new en.KX("text")),tn(en.al,{font:"10pt sans-serif",textAlign:"center"},new en.KX("text","details"))));function Li(or,Hr){var uo=(to,Fo)=>{to.handled=!0,to.diagram.model.commit(mi=>{var wo=Fo.part.adornedPart,Dr=new en.E9().setRectSpot(wo.actualBounds,or);Dr.subtract(wo.location),Dr.scale(2,2),Dr.x+=Math.sign(Dr.x)*130,Dr.y+=Math.sign(Dr.y)*130,Dr.add(wo.location),Dr.snapToGridPoint(to.diagram.grid.gridOrigin,to.diagram.grid.gridCellSize);var Br=mi.copyNodeData(wo.data);mi.setGroupKeyForNodeData(Br,mi.getGroupKeyForNodeData(wo.data)),mi.addNodeData(Br);var Pi={from:wo.key,to:mi.getKeyForNodeData(Br)};mi.addLinkData(Pi);var bo=to.diagram.findNodeForData(Br);bo.location=Dr,to.diagram.select(bo),setTimeout(()=>{to.diagram.commandHandler.editTextBlock()},20)})};return tn(en.bn,{figure:Hr,alignment:or,alignmentFocus:or.opposite(),width:or.equals(en.z6.Top)||or.equals(en.z6.Bottom)?25:18,height:or.equals(en.z6.Top)||or.equals(en.z6.Bottom)?18:25,fill:"orange",stroke:oi.white,strokeWidth:4,mouseEnter:(to,Fo)=>Fo.fill="dodgerblue",mouseLeave:(to,Fo)=>Fo.fill="orange",isActionable:!0,click:uo,contextClick:uo})}function tr(or){return tn(en.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:(Hr,uo)=>uo.fill="dodgerblue",mouseLeave:(Hr,uo)=>uo.fill="orange",click:(Hr,uo)=>{Hr.diagram.commandHandler.showContextMenu(uo.part.adornedPart)}},or||{})}je.current.nodeTemplate.selectionAdornmentTemplate=tn(en.uz,"Spot",tn(en.Vm,{padding:10}),Li(en.z6.Top,"TriangleUp"),Li(en.z6.Left,"TriangleLeft"),Li(en.z6.Right,"TriangleRight"),Li(en.z6.Bottom,"TriangleDown"),tr({alignment:new en.z6(.75,0)}));function kn(or,Hr){return(uo,to)=>{uo.handled=!0,uo.diagram.model.commit(Fo=>{Fo.set(to.part.adornedPart.data,or,Hr)})}}function ui(or,Hr){return Hr||(Hr="color"),tn(en.bn,{width:16,height:16,stroke:"lightgray",fill:or,margin:1,background:"transparent",mouseEnter:(uo,to)=>to.stroke="dodgerblue",mouseLeave:(uo,to)=>to.stroke="lightgray",click:kn(Hr,or),contextClick:kn(Hr,or)})}function Sr(){return[tn("ContextMenuButton",tn(en.s_,"Horizontal",ui(oi.white,"fill"),ui(oi.beige,"fill"),ui(oi.extralightblue,"fill"),ui(oi.extralightred,"fill"))),tn("ContextMenuButton",tn(en.s_,"Horizontal",ui(oi.lightgray,"fill"),ui(oi.lightgreen,"fill"),ui(oi.lightblue,"fill"),ui(oi.lightred,"fill")))]}function cr(){return[tn("ContextMenuButton",tn(en.s_,"Horizontal",ui(oi.black),ui(oi.green),ui(oi.blue),ui(oi.red))),tn("ContextMenuButton",tn(en.s_,"Horizontal",ui(oi.white),ui(oi.magenta),ui(oi.purple),ui(oi.orange)))]}function zr(or,Hr){return Hr||(Hr="thickness"),tn(en.bn,"LineH",{width:16,height:16,strokeWidth:or,margin:1,background:"transparent",mouseEnter:(uo,to)=>to.background="dodgerblue",mouseLeave:(uo,to)=>to.background="transparent",click:kn(Hr,or),contextClick:kn(Hr,or)})}function dr(or,Hr){return Hr||(Hr="dash"),tn(en.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:or,margin:1,background:"transparent",mouseEnter:(uo,to)=>to.background="dodgerblue",mouseLeave:(uo,to)=>to.background="transparent",click:kn(Hr,or),contextClick:kn(Hr,or)})}function Mr(){return[tn("ContextMenuButton",tn(en.s_,"Horizontal",zr(1),zr(2),zr(3),zr(4))),tn("ContextMenuButton",tn(en.s_,"Horizontal",dr(null),dr([2,4]),dr([4,4])))]}function nr(or,Hr){return Hr||(Hr="figure"),tn(en.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:or,margin:1,background:"transparent",mouseEnter:(uo,to)=>to.fill="dodgerblue",mouseLeave:(uo,to)=>to.fill="lightgray",click:kn(Hr,or),contextClick:kn(Hr,or)})}je.current.nodeTemplate.contextMenu=tn("ContextMenu",tn("ContextMenuButton",tn(en.s_,"Horizontal",nr("Rectangle"),nr("RoundedRectangle"),nr("Ellipse"),nr("Diamond"))),tn("ContextMenuButton",tn(en.s_,"Horizontal",nr("Parallelogram2"),nr("ManualOperation"),nr("Procedure"),nr("Cylinder1"))),tn("ContextMenuButton",tn(en.s_,"Horizontal",nr("Terminator"),nr("CreateRequest"),nr("Document"),nr("TriangleDown"))),Sr(),cr(),Mr()),je.current.groupTemplate=tn(en.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:en.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(or,Hr)=>{var uo=Hr.addMembers(Hr.diagram.selection,!0);uo||Hr.diagram.currentTool.doCancel()},avoidable:!1},new en.KX("location","loc",en.E9.parse).makeTwoWay(en.E9.stringify),tn(en.s_,"Auto",{name:"BODY"},tn(en.bn,{parameter1:10,fill:oi.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:en.z6.AllSides,toSpot:en.z6.AllSides},new en.KX("fill"),new en.KX("stroke","color"),new en.KX("strokeWidth","thickness"),new en.KX("strokeDashArray","dash")),tn(en.Vm,{background:"transparent",margin:20})),tn(en.al,{alignment:en.z6.Top,alignmentFocus:en.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new en.KX("text"),new en.KX("stroke","color"))),je.current.groupTemplate.selectionAdornmentTemplate=tn(en.uz,"Spot",tn(en.s_,"Auto",tn(en.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),tn(en.Vm,{margin:1.5})),tr({alignment:en.z6.TopRight,alignmentFocus:en.z6.BottomRight})),je.current.groupTemplate.contextMenu=tn("ContextMenu",Sr(),cr(),Mr()),je.current.linkTemplate=tn(en.rU,{layerName:"Foreground",routing:en.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new en.KX("fromSpot","fromSpot",en.z6.parse),new en.KX("toSpot","toSpot",en.z6.parse),new en.KX("fromShortLength","dir",or=>or>=1?10:0),new en.KX("toShortLength","dir",or=>or>=1?10:0),new en.KX("points").makeTwoWay(),tn(en.bn,{strokeWidth:2},new en.KX("stroke","color"),new en.KX("strokeWidth","thickness"),new en.KX("strokeDashArray","dash")),tn(en.bn,{segmentIndex:0,segmentOffset:new en.E9(15,0),segmentOrientation:en.rU.OrientAlong,alignmentFocus:en.z6.Right,figure:"circle",width:10,strokeWidth:0},new en.KX("fill","color"),new en.KX("visible","dir",or=>or===1)),tn(en.bn,{segmentIndex:-1,segmentOffset:new en.E9(-10,6),segmentOrientation:en.rU.OrientPlus90,alignmentFocus:en.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new en.KX("fill","color"),new en.KX("visible","dir",or=>or>=1),new en.KX("width","thickness",or=>7+3*or),new en.KX("height","thickness",or=>7+3*or),new en.KX("segmentOffset","thickness",or=>new en.E9(-15,4+1.5*or))),tn(en.bn,{segmentIndex:0,segmentOffset:new en.E9(15,-6),segmentOrientation:en.rU.OrientMinus90,alignmentFocus:en.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new en.KX("fill","color"),new en.KX("visible","dir",or=>or===2),new en.KX("width","thickness",or=>7+3*or),new en.KX("height","thickness",or=>7+3*or),new en.KX("segmentOffset","thickness",or=>new en.E9(-15,4+1.5*or))),tn(en.al,{alignmentFocus:new en.z6(0,1,-4,0),editable:!0},new en.KX("text").makeTwoWay(),new en.KX("stroke","color"))),je.current.linkTemplate.selectionAdornmentTemplate=tn(en.uz,tn(en.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Cr(2)},new en.KX("pathPattern","thickness",Cr)),tr({alignmentFocus:new en.z6(0,0,-6,-4)}));function Cr(or){return tn(en.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(or+4).toString()+" H3"})}function no(or){var Hr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return or===0?Hr="M0 0 M16 16 M0 8 L16 8":or===2&&(Hr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),tn(en.bn,{geometryString:Hr,margin:2,background:"transparent",mouseEnter:(uo,to)=>to.background="dodgerblue",mouseLeave:(uo,to)=>to.background="transparent",click:kn("dir",or),contextClick:kn("dir",or)})}function Ro(or){var Hr=(uo,to)=>{uo.handled=!0,uo.diagram.model.commit(Fo=>{var mi=to.part.adornedPart;Fo.set(mi.data,or?"toSpot":"fromSpot",en.z6.stringify(en.z6.AllSides)),(or?mi.toNode:mi.fromNode).invalidateConnectedLinks()})};return tn(en.bn,{width:12,height:12,fill:"transparent",mouseEnter:(uo,to)=>to.background="dodgerblue",mouseLeave:(uo,to)=>to.background="transparent",click:Hr,contextClick:Hr})}function yi(or,Hr){var uo=0,to=en.z6.RightSide;or.equals(en.z6.Top)?(uo=270,to=en.z6.TopSide):or.equals(en.z6.Left)?(uo=180,to=en.z6.LeftSide):or.equals(en.z6.Bottom)&&(uo=90,to=en.z6.BottomSide),Hr||(uo-=180);var Fo=(mi,wo)=>{mi.handled=!0,mi.diagram.model.commit(Dr=>{var Br=wo.part.adornedPart;Dr.set(Br.data,Hr?"toSpot":"fromSpot",en.z6.stringify(to)),(Hr?Br.toNode:Br.fromNode).invalidateConnectedLinks()})};return tn(en.bn,{alignment:or,alignmentFocus:or.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:uo,background:"transparent",mouseEnter:(mi,wo)=>wo.background="dodgerblue",mouseLeave:(mi,wo)=>wo.background="transparent",click:Fo,contextClick:Fo})}je.current.linkTemplate.contextMenu=tn("ContextMenu",cr(),Mr(),tn("ContextMenuButton",tn(en.s_,"Horizontal",no(0),no(1),no(2))),tn("ContextMenuButton",tn(en.s_,"Horizontal",tn(en.s_,"Spot",Ro(!1),yi(en.z6.Top,!1),yi(en.z6.Left,!1),yi(en.z6.Right,!1),yi(en.z6.Bottom,!1)),tn(en.s_,"Spot",{margin:new en.Zt(0,0,0,2)},Ro(!0),yi(en.z6.Top,!0),yi(en.z6.Left,!0),yi(en.z6.Right,!0),yi(en.z6.Bottom,!0)))));const Po=`{ "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 ws=["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 Zo(or){return console.log("shapeName:",or),ws.indexOf(or)>=0}var pi=new en.YI(xi.current,{maxSelectionCount:1,linkTemplate:tn(en.rU,{locationSpot:en.z6.Center,selectionAdornmentTemplate:tn(en.uz,"Link",{locationSpot:en.z6.Center},tn(en.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),tn(en.bn,{toArrow:"Standard",stroke:null}))},{routing:en.rU.AvoidsNodes,curve:en.rU.JumpOver,corner:5,toShortLength:4},new en.KX("points"),tn(en.bn,{isPanelMain:!0,strokeWidth:2}),tn(en.bn,{toArrow:"Standard",stroke:null})),model:new en.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...en.bn.getFigureGenerators().toArray().map(or=>({text:"\u672A\u547D\u540D",size:"100 100",figure:or.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return je.current.addDiagramListener("TextEdited",function(or){var Hr;const uo=or.subject.part;var to=(Hr=document.activeElement)==null?void 0:Hr.value;typeof to=="string"&&to.trim()===""&&je.current.model.commit(function(Fo){Fo.set(uo.data,"text","\u672A\u547D\u540D"),je.current.commandHandler.stopCommand()},"increment")}),pi.nodeTemplate=tn(en.NB,"Auto",{locationSpot:en.z6.Center},new en.KX("location","location",en.E9.parse).makeTwoWay(en.E9.stringify),tn(en.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 en.KX("stroke").makeTwoWay(),new en.KX("fill").makeTwoWay(),new en.KX("figure")),tn(en.al,{margin:new en.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new en.$u(16,16),maxSize:new en.$u(10,NaN),textAlign:"center",editable:!0},new en.KX("key").makeTwoWay())),setTimeout(()=>{je.current.grid=tn(en.s_,"Grid",tn(en.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),tn(en.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),je.current.grid.visible=!0,je.current.grid.gridCellStroke="darkgray",je.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=je.current,je.current}const Di=()=>ue(this,null,function*(){var tn,oi=je.current.makeImage();const Li=yield(0,vt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:oi.src,file_data:JSON.stringify({login:(tn=(0,gt.eY)())==null?void 0:tn.login,data:JSON.parse(je.current.model.toJson())})}});Nn({src:Li.url})});return(0,Lt.useEffect)(()=>(setTimeout(()=>{Si()},500),Hn(wn+1),()=>{je.current=null}),[]),At.createElement("div",{ref:Fe,className:dn.current?`${ft.maxH60} body-overflow-initial`:"body-overflow-initial"},At.createElement(Mn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!wn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:At.createElement(Vn.Z,null,At.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),At.createElement(Tt.Z,{onClick:()=>{var tn,oi,Li=je.current.selection.first();if(dn.current=!dn.current,document.activeElement&&Li){let tr=(oi=(tn=document.activeElement)==null?void 0:tn.value)==null?void 0:oi.trim();typeof tr=="string"&&je.current.model.commit(function(kn){kn.set(Li.data,"text",tr||"\u672A\u547D\u540D"),je.current.commandHandler.stopCommand()},"increment")}Hn(wn+1)}},At.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Dn},At.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ft.flowChartWrp},At.createElement("div",{style:{display:"flex",height:"100%"}},At.createElement("div",{style:{width:"300px",height:"100%"}},At.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),At.createElement("div",{style:{height:"calc(100% - 50px)"},className:ft.myPaletteDiv,ref:xi})),At.createElement("div",{style:{flex:1,position:"relative"}},At.createElement("div",{ref:ei,style:{height:"80vh"}}))),At.createElement("div",{className:"tr"},At.createElement(qt.ZP,{size:"large",onClick:Di,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ae=xe,ye=Ft(5112),Te=Ft(5871);const De=ye.ZP.Group,Me={margin:"0 8px"};var sn=({callback:Dn,onCancel:Nn})=>{function je(ei){Dn(ei)}return Lt.createElement(Ae.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:je},Lt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Lt.createElement("span",{style:Me},"\u5355\u5143\u683C\u6570\uFF1A"),Lt.createElement("span",{style:Me},"\u884C\u6570"),Lt.createElement(Ae.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Lt.createElement(Te.Z,null)),Lt.createElement("span",{style:Me},"\u5217\u6570"),Lt.createElement(Ae.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Lt.createElement(Te.Z,null))),Lt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Lt.createElement("span",{style:Me},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Lt.createElement(Ae.default.Item,{name:"align"},Lt.createElement(De,null,Lt.createElement(ye.ZP,{value:"default"},Lt.createElement("i",{className:"fa fa-align-justify"})),Lt.createElement(ye.ZP,{value:"left"},Lt.createElement("i",{className:"fa fa-align-left"})),Lt.createElement(ye.ZP,{value:"center"},Lt.createElement("i",{className:"fa fa-align-center"})),Lt.createElement(ye.ZP,{value:"right"},Lt.createElement("i",{className:"fa fa-align-right"}))))),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(qt.ZP,{type:"ghost",onClick:Nn},"\u53D6\u6D88")))},Gn=Ft(78673),an=Ft(5559),un=Ft.n(an),ai=(0,Lt.forwardRef)(({use3d:Dn,width:Nn,height:je,callback:ei,showSaveButton:xi},dn)=>{const Fe=(0,Lt.useRef)(),wn=(0,Lt.useRef)(),[Hn,Si]=(0,Lt.useState)(!1),Di=(0,Lt.useRef)({id:Fe,appName:"graphing",width:Nn||1e3,height:je||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)(()=>{wn.current=new(un())(Di.current,!0),window.onload=function(){wn.current.inject("applet_container")}},[]);const tn=()=>{var oi=window.ggbApplet.getPNGBase64(1,!0,72);return ei&&ei(oi),oi};return(0,Lt.useEffect)(()=>{Di.current.appName=Hn?"3D":"graphing",wn.current.inject("applet_container")},[Hn]),(0,Lt.useEffect)(()=>{Si(Dn)},[Dn]),(0,Lt.useImperativeHandle)(dn,()=>({getImgData:tn})),Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Fe}),Lt.createElement(Vn.Z,{align:"middle"},Lt.createElement(Tt.Z,{flex:1},Lt.createElement(Gn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Hn,onChange:oi=>Si(oi)})),Lt.createElement(Tt.Z,null,Lt.createElement(qt.ZP,{size:"large",onClick:tn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),On=Ft(46531),ji=Ft(8591);const er="link",Ji="upload-image",Fr="add-flowchart",vr="draw-image",so="add-flowchart",Yr="code-block",Jr="add-table",Lr="------------",Zr={default:Lr,left:`:${Lr}`,center:`:${Lr}:`,right:`${Lr}:`};var oo=Ft(50505);function Uo(){}let fs=0;const eo=1e4,Os="\u2581",yo="@\u2581\u2581@",Xt="@\u2581@",ti=`
**\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`,gs=["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 ia(Dn){return/^\d+$/.test(Dn)?`${Dn}px`:Dn}const la=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xs={[la+"-B"]:"bold",[la+"-I"]:"italic"},Rr={[er]:"\u6DFB\u52A0\u94FE\u63A5",[Yr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ji]:"\u6DFB\u52A0\u56FE\u7247",[vr]:"\u6DFB\u52A0\u753B\u56FE",[Fr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Jr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _r=({defaultValue:Dn="",onChange:Nn,width:je="100%",height:ei=400,miniToolbar:xi=!1,isFocus:dn=!1,watch:Fe,insertTemp:wn,mode:Hn="markdown",id:Si="markdown-editor-id",showResizeBar:Di=!1,noStorage:tn=!1,showNullButton:oi=!1,showNullProgramButton:Li=!1,hidetoolBar:tr=!1,fullScreen:kn=!1,onBlur:ui,onCMBeforeChange:Sr,onFullScreen:cr,className:zr="",disablePaste:dr=!1,disabled:Mr=!1,disabledFill:nr=!1,placeholder:Cr="",values:no="",extraUse:Ro})=>{const[yi,Po]=(0,Lt.useState)(null),[ws,Zo]=(0,Lt.useState)(Dn),[pi,or]=(0,Lt.useState)(Fe),[Hr,uo]=(0,Lt.useState)(kn),[to,Fo]=(0,Lt.useState)(""),[mi,wo]=(0,Lt.useState)(0),[Dr,Br]=(0,Lt.useState)(ei),[Pi,bo]=(0,Lt.useState)(!1),[Ci,Xo]=(0,Lt.useState)(0),[ra,xs]=(0,Lt.useState)(0),va=(0,Lt.useRef)(),Gs=(0,Lt.useRef)(),Io=(0,Lt.useRef)(),_o=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{const fo=window.scrollY||window.pageYOffset;Zo(no),yi==null||yi.setValue(no),window.scrollTo(0,fo)},[no]),(0,Lt.useEffect)(()=>{cr==null||cr(Hr)},[Hr]),(0,Lt.useEffect)(()=>{if(va.current){let fo=function(Vi,Lo){var Bs;if(dr){Lo.preventDefault();return}const Js=Lo.clipboardData;if(Js){const ua=Js.types.toString(),Ho=Js.items;if(ua==="Files"||Js.types.indexOf("Files")>-1){if(Lo.preventDefault(),Hn=="stex")return;try{let Ks=Ho[1];((Bs=Ho[0])==null?void 0:Bs.kind)==="file"&&(Ks=Ho[0]);const Na=Ks.getAsFile(),Tl=Na.name.split(".").pop();(0,Ze.I)(Na,Va=>{var Ps,si,Ia;Va.id?((Ps=Na==null?void 0:Na.type)==null?void 0:Ps.indexOf("image"))>-1?co.replaceSelection(`<img width="100%" src="/api/attachments/${Va.id}?type=${Va.content_type})" alt="" />`):((si=Na==null?void 0:Na.type)==null?void 0:si.indexOf("video"))>-1?co.replaceSelection(`<video width="100%" controls src="/api/attachments/${Va.id}"></video>`):((Ia=Na==null?void 0:Na.type)==null?void 0:Ia.indexOf("pdf"))>-1?co.replaceSelection(`<a href="/api/attachments/${Va.id}?type=${Na.type}&disposition=inline" target="_blank">${Na.name}</a>`):gs.includes(Tl)?co.replaceSelection(`<a href="/api/attachments/${Va.id}?type=office&disposition=inline" target="_blank">${Na.name}</a>`):co.replaceSelection(`[${Na.name}](/api/attachments/${Va.id}?type=${Va.content_type})`):(Va==null?void 0:Va.status)===401&&(document.location.href="/user/login")})}catch(Ks){ji.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const co=re().fromTextArea(va.current,{mode:Hn,lineNumbers:!xi,lineWrapping:!0,value:Dn,autoCloseTags:!0,autoCloseBrackets:!0});return co.on("keyup",function(Vi,Lo){Lo.keyCode===8&&(Vi.getValue()==""?co.setOption("placeholder",Cr):co.setOption("placeholder",null))}),co.on("keydown",function(Vi,Lo){if(Lo.keyCode===8){var Bs=ls(Vi);Bs&&Lo.preventDefault()}}),dn&&co.focus(),co.on("paste",fo),Mr&&co.on("beforeChange",function(Vi,Lo){(Lo.origin==="paste"||Lo.origin==="+input")&&Lo.cancel()}),Po(co),()=>{co.off("paste",fo)}}},[]);const As=(0,Lt.useCallback)(()=>{if(Gs.current)try{}catch(fo){console.log(fo,"---- to set md editor body height")}},[Dr,Gs,Hr]);(0,Lt.useEffect)(()=>{function fo(){let co=new ke.Z(Vi=>{for(let Lo of Vi)(Lo.target.offsetHeight>0||Lo.target.offsetWidth>0)&&(As(),yi.setSize("100%","100%"),yi.refresh())});return co.observe(va.current.parentElement),co}if(yi){const co=fo();return()=>{var Vi,Lo;(Vi=va.current)!=null&&Vi.parentElement&&co.unobserve((Lo=va.current)==null?void 0:Lo.parentElement)}}},[yi,As]),(0,Lt.useEffect)(()=>{if(yi){let fo=[];for(const[co,Vi]of Object.entries(Xs)){let Lo={[co]:()=>{wr(Vi)}};fo.push(Lo),yi.addKeyMap(Lo)}return()=>{for(let co of fo)yi.removeKeyMap(co)}}},[yi]),(0,Lt.useEffect)(()=>{kn!==Hr&&uo(kn)},[kn]),(0,oo.Z)(()=>{if(!tn&&mi>0){let fo=new Date().getTime(),co=window.sessionStorage.getItem(Si);fo>=mi+eo&&(!co||co!==ws)&&(window.sessionStorage.setItem(Si,ws),bo(!0))}},eo),(0,Lt.useEffect)(()=>{or(Fe)},[yi,Fe]),(0,Lt.useEffect)(()=>{yi&&dn&&yi.focus()},[yi,dn]),(0,Lt.useEffect)(()=>{if(pi&&yi){let fo=function(Vi){let Lo=Vi.target;if(_o.current){let Bs=Lo.scrollTop/Lo.scrollHeight;_o.current.scrollTop=_o.current.scrollHeight*Bs}};const co=yi.getScrollerElement();return co.addEventListener("scroll",fo),()=>{co.removeEventListener("scroll",fo)}}},[yi,pi]),(0,Lt.useEffect)(()=>{if(yi&&Sr){let fo=function(co,Vi){Sr(co,Vi)};return yi.on("beforeChange",fo),()=>{yi.off("beforeChange",fo)}}},[yi,Sr]),(0,Lt.useEffect)(()=>{if(yi&&ui){let fo=function(){ui(yi.getValue())};return yi.on("blur",fo),()=>{yi.off("blur",fo)}}},[yi,ui]);function ls(fo,co){var Vi=fo.getDoc(),Lo=Vi.getCursor(),Bs=Vi.getLine(Lo.line),Js=Bs.charAt(Lo.ch-1),ua=Bs.lastIndexOf("@\u2581@",Lo.ch),Ho=Bs.lastIndexOf("@\u2581\u2581@",Lo.ch),Ks=ua>Ho?ua:Ho,Na=ua>Ho?3:4;if(yo.indexOf(Js)===-1)return null;if(console.log("change1:",co,fo,Bs,Lo,Ks,ua,Ho,Js),Ks>=0&&Lo.ch-Ks<5){var Tl=Ks+Na;return Vi.replaceRange("",{line:Lo.line,ch:Ks},{line:Lo.line,ch:Tl}),{line:Lo.line,ch:Tl}}return null}(0,Lt.useEffect)(()=>{if(yi){let fo=function(co,Vi){const Lo=co.getValue();Zo(Lo),wo(new Date().getTime()),co.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Nn&&(Li?Nn(Lo,ns(Lo)):Nn(Lo))};return yi.on("change",fo),()=>{yi.off("change",fo)}}},[yi,Nn]),(0,Lt.useEffect)(()=>{if(yi)if(Dn==null)yi.setValue(""),Zo("");else{const fo=window.scrollY||window.pageYOffset;Dn!==yi.getValue()&&(yi.setValue(Dn),Zo(Dn),yi.setCursor(Mr?1:yi.lineCount(),0),window.scrollTo(0,fo))}},[yi,Dn]);const wr=(0,Lt.useCallback)(fo=>{const co=yi.getCursor(),Vi=yi.getSelection();let Lo=Vi.split(`
`);switch(fo){case"bold":return yi.replaceSelection("**"+Vi+"**"),Vi===""&&yi.setCursor(co.line,co.ch+2),yi.focus();case"italic":return yi.replaceSelection("*"+Vi+"*"),Vi===""&&yi.setCursor(co.line,co.ch+1),yi.focus();case"code":return yi.replaceSelection("`"+Vi+"`"),Vi===""&&yi.setCursor(co.line,co.ch+1),yi.focus();case"inline-latex":return Fo("inline-latex"),yi.focus();case"latex":return yi.replaceSelection("```latex\n"+Vi+"\n```"),yi.setCursor(co.line+1,Vi.length+1),yi.focus();case"line-break":return yi.replaceSelection(`<br/>
`),yi.focus();case"list-ul":return Vi===""?yi.replaceSelection("- "+Vi):yi.replaceSelection(Lo.map(Bs=>Bs===""?"":`- ${Bs}`).join(`
`)),yi.focus();case"list-ol":return Vi===""?yi.replaceSelection("1. "+Vi):yi.replaceSelection(Lo.map((Bs,Js)=>Bs===""?"":`${Js+1}. ${Bs}`).join(`
`)),yi.focus();case"add-null-ch":return Vi===""&&yi.setCursor(co.line,co.ch),yi.replaceSelection(Os),yi.focus();case"add-signal":return Vi===""&&yi.setCursor(co.line,co.ch),yi.replaceSelection(Xt),yi.focus();case"add-multiple":return Vi===""&&yi.setCursor(co.line,co.ch),yi.replaceSelection(yo),yi.focus();case"inster-template-1":return Vi===""&&yi.setCursor(co.line,co.ch),yi.replaceSelection(ti),yi.focus();case"eraser":return yi.setValue(""),yi.focus();case"trigger-watch":return or(!pi),yi.focus();case"trigger-full-screen":return uo(!Hr),yi.focus();case er:Fo(er);return;case Yr:Fo(Yr);return;case Ji:Fo(Ji);return;case vr:Fo(vr);return;case"maths-latex":Fo("maths-latex");return;case Fr:Fo(Fr);return;case Jr:Fo(Jr);return;default:throw new Error}},[yi,pi,Hr]),Ie=(0,Lt.useCallback)((fo,co)=>{var Vi,Lo,Bs,Js,ua,Ho;switch(Fo(""),to){case er:const{title:Ps,link:si}=fo;return yi.replaceSelection(`[${Ps}](${si})`),yi.focus();case Yr:const{language:Ia,content:Ac}=fo;return yi.replaceSelection(["```"+Ia,Ac,"```"].join(`
`)),yi.focus();case"maths-latex":for(var Ks=atob(fo),Na=new Uint8Array(Ks.length),Tl=0;Tl<Ks.length;Tl++)Na[Tl]=Ks.charCodeAt(Tl);var Va=new Blob([Na],{type:"image/png"});(0,Ze.I)(Va,Jo=>{Jo.id?yi.replaceSelection(`![,](/api/attachments/${Jo.id}?type=${Jo.content_type})`):(Jo==null?void 0:Jo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":yi.replaceSelection("`$$"+fo+"$$`");break;case Ji:case vr:case so:const{src:du,alt:Hh}=fo,$r=co,Qs=(Bs=(Lo=(Vi=$r==null?void 0:$r.name)==null?void 0:Vi.split("."))==null?void 0:Lo.pop)==null?void 0:Bs.call(Lo);return((Js=$r==null?void 0:$r.type)==null?void 0:Js.indexOf("image"))>-1||!($r!=null&&$r.type)?$r.align||$r.width?yi.replaceSelection(`<p style="text-align:${$r.align||"initial"}"><img width="${$r.width?$r.width+"%":"initial"}" src="${du}" alt="${Hh||""}" /></p>`):yi.replaceSelection(`<img width="100%" src="${du}" alt="${Hh||""}" />`):((ua=$r==null?void 0:$r.type)==null?void 0:ua.indexOf("video"))>-1?yi.replaceSelection(`<video width="100%" controls src="${du}"></video>`):((Ho=$r==null?void 0:$r.type)==null?void 0:Ho.indexOf("pdf"))>-1?yi.replaceSelection(`<a href="${du}?type=${$r.type}&disposition=inline" target="_blank">${$r.name}</a>`):gs.includes(Qs)?yi.replaceSelection(`<a href="${du}?type=office&disposition=inline" target="_blank">${$r.name}</a>`):yi.replaceSelection(`[${$r.name}](${du})`),yi.focus();case Jr:const{row:Ms,col:bs,align:zs}=fo;let Au=`
`;for(let Jo=0;Jo<Ms;Jo++){let Hs=[],Ss=[];for(let Qr=0;Qr<bs;Qr++)Jo===1&&Ss.push(Zr[zs]),Hs.push(" ");Jo===1&&(Au+=`| ${Ss.join(" | ")} |
`),Au+=`| ${Hs.join(bs===1?"":" | ")} |
`}return yi.replaceSelection(Au+`
`),yi.focus();default:throw new Error}},[yi,to]),cs=(0,Lt.useMemo)(()=>{switch(to){case er:return Lt.createElement(bn,{callback:Ie,onCancel:oa});case Yr:return Lt.createElement(Ln.Z,{callback:Ie,onCancel:oa});case Ji:return Lt.createElement(Ze.Z,{callback:Ie,onCancel:oa});case Fr:return Lt.createElement(ae,{callback:Ie,onCancel:oa});case Jr:return Lt.createElement(sn,{callback:Ie,onCancel:oa});case"maths-latex":return Lt.createElement(ai,{showSaveButton:!0,callback:Ie});case"inline-latex":return Lt.createElement(On.Z,{showSaveButton:!0,callback:Ie});default:return null}},[to]);function oa(){Fo("")}(0,Lt.useEffect)(()=>{if(Io.current){let fo=function(ua){Bs=!0,Js=ua.pageY},co=function(){Bs=!1},Vi=function(ua){if(Bs){let Ho=ua.pageY-Js;Ho<0&&(Ho=0),Ho>300&&(Ho=300);let Ks=ei+Ho+"px";Br(Ks)}},Lo=Io.current,Bs=!1,Js=0;return Lo.addEventListener("mousedown",fo),document.addEventListener("mousemove",Vi),document.addEventListener("mouseup",co),()=>{Lo.removeEventListener("mousedown",fo),document.removeEventListener("mousemove",Vi),document.removeEventListener("mouseup",co)}}},[yi,Io]),(0,Lt.useEffect)(()=>{Br(ei)},[ei]);const ll=ia(je),Ll=ia(Dr),fl={width:ll,height:Ll},_l=(0,Lt.useMemo)(()=>{if(mi){let fo=new Date(mi),co=fo.getHours(),Vi=fo.getMinutes(),Lo=fo.getSeconds();return co=co<10?"0"+co:co,Vi=Vi<10?"0"+Vi:Vi,Lo=Lo<10?"0"+Lo:Lo,`${co}:${Vi}:${Lo}`}return 0},[mi]),ns=fo=>{const co=[];if(Li){let Vi=-1;fo=fo.replace(/(@▁▁@|@▁@)/g,function(Lo,Bs,Js){co.push({multiLine:Lo!==Xt})})}return co};function Yo(){window.sessionStorage.removeItem(Si),bo(!1),wo(0)}function xo(){bo(!1),wo(0),yi.setValue(window.sessionStorage.getItem(Si))}(0,Lt.useEffect)(()=>{Rr[to]&&to!==vr&&to!==Fr&&setTimeout(()=>{const fo=document.getElementsByClassName("markdown-popup-form")[0],co=window.innerWidth/2-fo.offsetWidth/2,Vi=window.innerHeight/2-fo.offsetHeight/2;Xo(co),xs(Vi)},0)},[to]);const ks=fo=>{fo.preventDefault();const co=fo.clientX-Ci,Vi=fo.clientY-ra;document.body.onmousemove=Lo=>{let Bs=Lo.clientX-co,Js=Lo.clientY-Vi;const ua=document.getElementsByClassName("markdown-popup-form")[0],Ho=window.innerWidth-ua.offsetWidth,Ks=window.innerHeight-ua.offsetHeight;Bs=Math.max(0,Math.min(Bs,Ho)),Js=Math.max(0,Math.min(Js,Ks)),fa(Lo.clientX,Lo.clientY,co,Vi)&&(Xo(Bs),xs(Js))},document.body.onmouseup=function(){document.body.onmousemove=null}},fa=(fo,co,Vi,Lo)=>{const Bs=document.body.clientHeight,Js=document.body.clientWidth;return fo<20&&Vi>fo||fo>Js-20&&Vi<fo||co<20&&Lo>co||co>Bs-20&&Lo<co?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:"markdown-editor-wrapper",ref:Gs},Lt.createElement("div",{className:`markdown-editor-container ${zr} ${pi?"on-preview":""} ${xi?"mini":""} ${Hr?"full-screen":""}`,style:fl},Lt.createElement(se,{insertTemp:wn,watch:pi,fullScreen:Hr,showNullButton:oi,showNullProgramButton:Li,onActionCallback:wr,hidetoolBar:tr,extraUse:Ro}),Lt.createElement("div",{className:"markdown-editor-body"},Lt.createElement("div",{className:"codemirror-container"},Lt.createElement("textarea",{ref:va,placeholder:Cr})),pi?Lt.createElement("div",{ref:_o,className:"preview-container"},Hn==="stex"&&Lt.createElement(Kt,{value:ws}),Hn!=="stex"&&Lt.createElement(oe.Z,{disabledFill:nr,showProgramFill:Li,value:ws})):null))),Di?Lt.createElement("a",{ref:Io,className:"editor-resize"}):null,to===vr&&Lt.createElement(Bi,{callback:Ie,onCancel:oa}),to===Fr&&Lt.createElement(ae,{callback:Ie,onCancel:oa}),Lt.createElement(le.Z,null,Rr[to]&&to!==vr&&to!==Fr?Lt.createElement(Mn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ci,top:ra},title:Lt.createElement("div",{style:{cursor:"move"},onMouseDown:ks},Rr[to]),open:!0,onCancel:oa,footer:null,destroyOnClose:!0,width:to===Fr?"1200px":null,height:to===Fr?"80vh":null,className:"markdown-popup-form"},cs):null))}},56030:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Ut},I:function(){return se}});var Lt=Ft(78241),ce=Ft(8591),re=Ft(92832),ke=Ft(81327),ee=Ft(5871),Vt=Ft(5112),Mt=Ft(3113),jt=Ft(49291),te=Ft(59301),Pt=Ft(59301),oe=Object.defineProperty,Kt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(le,Ae,Pe)=>Ae in le?oe(le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Ae]=Pe,rt=(le,Ae)=>{for(var Pe in Ae||(Ae={}))et.call(Ae,Pe)&&lt(le,Pe,Ae[Pe]);if(Ct)for(var Pe of Ct(Ae))tt.call(Ae,Pe)&&lt(le,Pe,Ae[Pe]);return le},ht=(le,Ae)=>Kt(le,$t(Ae));const{useForm:dt}=Lt.default,xt={width:280,marginRight:10},Nt={labelCol:{span:5},wrapperCol:{span:19}};var Ut=({callback:le,onCancel:Ae})=>{const[Pe]=dt();let qt=(0,te.useRef)();function ze(_e){qt.current.width=Pe.getFieldValue("width"),qt.current.align=Pe.getFieldValue("align"),le(_e,qt.current)}function Wt(_e,Ne){if(_e.status===-1){ce.ZP.error(_e.message);return}Pe.setFieldsValue({src:`/api/attachments/${_e.id}`,type:Ne.type})}function Ge(_e){let Ne=_e.target.files[0];qt.current=Ne,se(Ne,Wt)}return Pt.createElement(Lt.default,ht(rt({form:Pe},Nt),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),Pt.createElement(Lt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Pt.createElement("div",{className:"flex-container"},Pt.createElement(Lt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Pt.createElement(re.default,{style:xt})),Pt.createElement(Gt,{onFileChange:Ge}))),Pt.createElement(Lt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Pt.createElement(re.default,{style:{width:264}})),Pt.createElement(Lt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Pt.createElement(ke.Z,null,Pt.createElement(Lt.default.Item,{name:"width",style:{margin:0}},Pt.createElement(ee.Z,{style:{width:264}})),Pt.createElement("span",{className:"ml8"},"%"))),Pt.createElement(Lt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Pt.createElement(Vt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Pt.createElement("aside",null,Pt.createElement(Lt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Pt.createElement(Mt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(Mt.ZP,{type:"default",onClick:Ae},"\u53D6\u6D88"))))};function Gt({onFileChange:le}){return Pt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Pt.createElement("input",{type:"file",onChange:le}))}function se(le,Ae){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");let Pe=new FormData;Pe.append("editormd-image-file",le),Pe.append("file_param_name","editormd-image-file"),Pe.append("byxhr","true");var qt=new window.XMLHttpRequest;qt.withCredentials=!0,qt.addEventListener("load",function(ze){Ae(JSON.parse(ze.target.responseText),le)},!1),qt.addEventListener("error",function(ze){console.error(ze)},!1),qt.open("POST",`${jt.KI}/api/attachments.json`),qt.send(Pe)}},19647:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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,Cn,Ft){"use strict";Ft.d(Cn,{SV:function(){return ue},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"]},ke={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),te=Ft.n(jt),Pt=Object.defineProperty,oe=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(xe,ae,ye)=>ae in xe?Pt(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($t)for(var ye of $t(ae))et.call(ae,ye)&&tt(xe,ye,ae[ye]);return xe},rt=(xe,ae)=>oe(xe,Kt(ae)),ht=(xe,ae,ye)=>new Promise((Te,De)=>{var Me=an=>{try{Gn(ye.next(an))}catch(un){De(un)}},sn=an=>{try{Gn(ye.throw(an))}catch(un){De(un)}},Gn=an=>an.done?Te(an.value):Promise.resolve(an.value).then(Me,sn);Gn((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(Te=>({label:Te,kind:ae.languages.CompletionItemKind.Field,insertText:Te})):[]};function Gt(xe,ae,ye,Te,De){let Me=ae.getWordUntilPosition(ye),sn={startLineNumber:ye.lineNumber,endLineNumber:ye.lineNumber,startColumn:Me.startColumn,endColumn:Me.endColumn},Gn=Te.map(an=>({label:an,kind:xe.languages.CompletionItemKind.Keyword,insertText:an,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:sn}));return De.map(an=>{Gn.push(rt(lt({},an),{range:sn}))}),Gn}var se=xe=>{dt.languages.map(De=>(xe.languages.registerDocumentFormattingEditProvider(De,{provideDocumentFormattingEdits(Me,sn,Gn){return ht(this,null,function*(){const an=te()(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:an}]})}}),De));const ae=ee.quickKey.map(De=>({label:De.label,kind:xe.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ye=Vt.quickKey.map(De=>({label:De.label,kind:xe.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Te=ke.quickKey.map(De=>({label:De.label,kind:xe.languages.CompletionItemKind.Method,insertText:De.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet}));xe.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(De,Me){var sn=De.getWordUntilPosition(Me),Gn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:sn.startColumn,endColumn:sn.endColumn},an=De.getLineContent(Me.lineNumber).substring(sn.startColumn-2,sn.endColumn);return{suggestions:[...ee.keywords.map(un=>({label:un,kind:xe.languages.CompletionItemKind.Function,documentation:un,insertText:un,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...ee.quickKey.map(un=>({label:un.label,kind:xe.languages.CompletionItemKind.Function,documentation:un.content,insertText:an.startsWith("#")?un.content.replace(/#/,""):un.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),xe.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(De,Me){var sn=De.getWordUntilPosition(Me),Gn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:sn.startColumn,endColumn:sn.endColumn};return{suggestions:[...re.keywords.map(an=>({label:an,kind:xe.languages.CompletionItemKind.Function,documentation:an,insertText:an,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),xe.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(De,Me){var sn=De.getWordUntilPosition(Me),Gn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:sn.startColumn,endColumn:sn.endColumn},an=De.getLineContent(Me.lineNumber).substring(sn.startColumn-2,sn.endColumn);return{suggestions:[...ke.keywords.map(un=>({label:un,kind:xe.languages.CompletionItemKind.Function,documentation:un,insertText:un,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...ke.quickKey.map(un=>({label:un.label,kind:xe.languages.CompletionItemKind.Function,documentation:un.content,insertText:an.startsWith("#")?un.content.replace(/#/,""):un.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),xe.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(De,Me){var sn=De.getWordUntilPosition(Me),Gn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:sn.startColumn,endColumn:sn.endColumn},an=De.getLineContent(Me.lineNumber).substring(sn.startColumn-2,sn.endColumn);return{suggestions:[...Mt.keywords.map(un=>({label:un,kind:xe.languages.CompletionItemKind.Function,documentation:un,insertText:un,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Mt.quickKey.map(un=>({label:un.label,kind:xe.languages.CompletionItemKind.Function,documentation:un.content,insertText:an.startsWith("#")?un.content.replace(/#/,""):un.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),xe.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(De,Me){var sn=De.getWordUntilPosition(Me),Gn={startLineNumber:Me.lineNumber,endLineNumber:Me.lineNumber,startColumn:sn.startColumn,endColumn:sn.endColumn},an=De.getLineContent(Me.lineNumber).substring(sn.startColumn-2,sn.endColumn);return{suggestions:[...Vt.keywords.map(un=>({label:un,kind:xe.languages.CompletionItemKind.Function,documentation:un,insertText:un,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Vt.quickKey.map(un=>({label:un.label,kind:xe.languages.CompletionItemKind.Function,documentation:un.content,insertText:an.startsWith("#")?un.content.replace(/#/,""):un.content,insertTextRules:xe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}})};const le="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ae=Object.defineProperty,Pe=(xe,ae,ye)=>ae in xe?Ae(xe,ae,{enumerable:!0,configurable:!0,writable:!0,value:ye}):xe[ae]=ye,qt=(xe,ae,ye)=>Pe(xe,typeof ae!="symbol"?ae+"":ae,ye);const ze=class bw{constructor(ae,ye,Te){this.placeholder=ae,this.editor=ye,this.monaco=Te,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)}};qt(ze,"ID","editor.widget.placeholderHint");var Ge=ze,_e=Ft(96236),Ne=Ft(8591),We=Ft(6848),Re=Ft(89392),ve=Ft(50484),ne=Ft(56102),Ce=Object.defineProperty,bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,fi=(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={}))Mn.call(ae,ye)&&fi(xe,ye,ae[ye]);if(Ze)for(var ye of Ze(ae))Vn.call(ae,ye)&&fi(xe,ye,ae[ye]);return xe},Bi=(xe,ae)=>bn(xe,Ln(ae)),en=(xe,ae)=>{var ye={};for(var Te in xe)Mn.call(xe,Te)&&ae.indexOf(Te)<0&&(ye[Te]=xe[Te]);if(xe!=null&&Ze)for(var Te of Ze(xe))ae.indexOf(Te)<0&&Vn.call(xe,Te)&&(ye[Te]=xe[Te]);return ye},Fi=(xe,ae,ye)=>new Promise((Te,De)=>{var Me=an=>{try{Gn(ye.next(an))}catch(un){De(un)}},sn=an=>{try{Gn(ye.throw(an))}catch(un){De(un)}},Gn=an=>an.done?Te(an.value):Promise.resolve(an.value).then(Me,sn);Gn((ye=ye.apply(xe,ae)).next())});function Oi(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 ft(xe=[]){let ae=xe;if(Array.isArray(xe)){for(let ye=0;ye<xe.length;ye++){let Te=vt[xe[ye]];if(Te)return Te}return ae[0]}return vt[ae]||ae}let gt=null;var At=xe=>{var ae=xe,{width:ye="100%",height:Te="100%",value:De,language:Me="javascript",style:sn={},options:Gn={},overrideServices:an={},theme:un="vs-dark",onEditBlur:Bn,isCopy:ai=!1,onSave:On,autoHeight:ji=!1,forbidCopy:er=!1,onChange:Ji=Ot,editorDidMount:Fr=Ot,onFocus:vr=Ot,onBreakPoint:so=Ot,breakPointValue:Yr=[],filename:Jr="educoder.txt",errorLine:Lr,errorContent:Zr="",highlightLine:oo,openBreakPoint:Uo=!1,placeholder:fs=""}=ae,eo=en(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 Os=(0,Lt.useRef)(),yo=(0,Lt.useRef)({}),Xt=(0,Lt.useRef)(),ti=(0,Lt.useRef)(),gs=(0,Lt.useRef)([]),ia=(0,Lt.useRef)(!1),Zs=(0,Lt.useRef)(),la=(0,Lt.useRef)(),Xs=(0,Lt.useRef)(!1),[Rr,_r]=(0,Lt.useState)(!1);function Dn(){let kn;return Os.current&&(kn=new ce.Z(ui=>{for(let Sr of ui)(Sr.target.offsetHeight>0||Sr.target.offsetWidth>0)&&yo.current.instance.layout()}),kn.observe(Os.current)),kn}function Nn(){Ne.ZP.warning({content:decodeURIComponent(le),key:"monaco-editor-tip"})}const je=()=>{let kn=yo.current.instance;if(De!=null&&kn&&Rr){const ui=kn.getModel();ui&&De!==ui.getValue()&&(Tt=!0,ui.setValue(De),kn.layout(),Tt=!1)}};(0,Lt.useEffect)(()=>{const kn=ve.Z.subscribe("formatDocument",ui=>{var Sr;let cr=yo.current.instance;(Sr=cr==null?void 0:cr.getAction)==null||Sr.call(cr,"editor.action.formatDocument").run()});return window.updateMonacoValue=ui=>{Ji(ui)},kn},[]),(0,Lt.useEffect)(()=>{var kn;let ui=yo.current.instance;ti.current&&clearTimeout(ti.current),ti.current=setTimeout(()=>{je()},500),De&&(De!=null&&De.length)&&((kn=ui==null?void 0:ui.updateOptions)==null||kn.call(ui,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(De.split(/\r\n|\r|\n/g).length))+3,5)}))},[De,Rr,yo.current]),(0,Lt.useEffect)(()=>{if(Lr&&yo.current&&yo.current.instance){let ui=yo.current.instance;ui.changeViewZones(function(Sr){var cr=document.createElement("div");cr.style.padding="10px 20px",cr.style.width="calc(100% - 20px)",cr.className="my-error-line-wrp",cr.innerHTML=Zr,Sr.addZone({afterLineNumber:Lr||11,heightInLines:3,domNode:cr})});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}};ui.addOverlayWidget(kn),ui.revealPositionInCenter({lineNumber:20,column:1})}},[Lr,yo.current,Rr]);const ei=(kn="",ui)=>{if(!kn||kn.trim()==="")return!0;const cr=yo.current.instance.getModel().getLineTokens(ui);let zr=!1;for(let dr=0;dr<2;dr++)cr.getStandardTokenType(dr)===1&&(zr=!0);return zr};(0,Lt.useEffect)(()=>{var kn;const ui=(kn=yo.current)==null?void 0:kn.instance;if(ui&&Rr&&er){const Sr=ui.onDidBlurEditorWidget(()=>{Xs.current=!1}),cr=ui.onDidFocusEditorText(()=>{Xs.current=!0});return()=>{Sr.dispose(),cr.dispose()}}},[yo.current,Rr,er]),(0,Lt.useEffect)(()=>{var kn;if((kn=yo.current)!=null&&kn.instance&&Rr&&Uo){let ui=yo.current.instance,Sr=ui.getModel();if(!Sr)return;(()=>{var Zo;let pi=[],or=[];const Hr=Sr.getAllDecorations();for(let to of Hr)to.options.className==="highlighted-line"&&(pi.push((Zo=to==null?void 0:to.range)==null?void 0:Zo.startLineNumber),or.push(to==null?void 0:to.id));if(oo===pi[0])return;Sr.deltaDecorations(or,[]);const uo=Sr.getLineCount();oo&&oo<=uo&&(ui.deltaDecorations([],[{range:new gt.Range(oo,1,oo,Sr.getLineMaxColumn(oo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ui.revealLineInCenter(oo))})();const zr=(Zo=!1)=>{var pi;let or=[],Hr=[];const uo=Sr.getAllDecorations();for(let to of uo)to.options.linesDecorationsClassName==="breakpoints-select"&&(or.push((pi=to==null?void 0:to.range)==null?void 0:pi.startLineNumber),Hr.push(to==null?void 0:to.id));if(Zo)return{lines:or,ids:Hr};so(or)},dr=Zo=>Fi(void 0,null,function*(){let pi={range:new gt.Range(Zo,1,Zo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Sr.deltaDecorations([],[pi]),zr()}),Mr=Zo=>Fi(void 0,null,function*(){let pi=[];const or=ui.getLineDecorations(Zo);for(let Hr of or)Hr.options.linesDecorationsClassName==="breakpoints-select"&&pi.push(Hr.id);yield Sr.deltaDecorations(pi,[]),zr()}),nr=Zo=>{let pi=ui.getLineDecorations(Zo);for(let or of pi)if(or.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Re.isEqual)(Yr,zr(!0).lines)){Sr.deltaDecorations(zr(!0).ids,[]);const Zo=Yr.map(pi=>({range:new gt.Range(pi,1,pi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Sr.deltaDecorations([],Zo)}const Cr=ui.onDidChangeModelContent(Zo=>{let pi=ui.getPosition();if(pi){let or=pi.lineNumber;clearTimeout(la.current),la.current=setTimeout(()=>{ei(Sr.getLineContent(or),or)?Mr(or):nr(or)?(Mr(or),dr(or)):zr()},100)}}),no=ui.onMouseDown(Zo=>{var pi,or,Hr;if(Zo.target.detail&&((Hr=(or=(pi=Zo.target)==null?void 0:pi.element)==null?void 0:or.className)!=null&&Hr.includes("line-numbers"))){let uo=Zo.target.position.lineNumber;if(ei(Sr.getLineContent(uo),uo))return;nr(uo)?Mr(uo):dr(uo)}}),Ro=Zo=>{let pi={range:new gt.Range(Zo,1,Zo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};gs.current=ui.deltaDecorations(gs.current,[pi])},yi=()=>{gs.current=ui.deltaDecorations(gs.current,[])},Po=ui.onMouseMove(Zo=>{var pi,or,Hr;if(yi(),Zo.target.detail&&((Hr=(or=(pi=Zo.target)==null?void 0:pi.element)==null?void 0:or.className)!=null&&Hr.includes("line-numbers"))){let uo=Zo.target.position.lineNumber;if(ei(Sr.getLineContent(uo),uo))return;Ro(uo)}}),ws=ui.onMouseLeave(()=>{yi()});return()=>{Cr.dispose(),no.dispose(),Po.dispose(),ws.dispose()}}},[yo.current,Rr,Yr,oo,Uo,Me]),(0,Lt.useEffect)(()=>{var kn;(kn=yo.current)!=null&&kn.instance&&Uo&&yo.current.instance.setPosition({lineNumber:0,column:0})},[oo]);function xi(){let kn=yo.current.instance;if(kn){const ui=kn.getSelection(),Sr=yo.current.pastePos||{},cr=new gt.Range(Sr.startLineNumber||ui.endLineNumber,Sr.startColumn||ui.endColumn,Sr.endLineNumber||ui.endLineNumber,Sr.endColumn||ui.endColumn);setTimeout(()=>{kn.executeEdits("",[{range:cr,text:""}])},300)}}function dn(kn){(window.navigator.platform.match("Mac")?kn.metaKey:kn.ctrlKey)&&kn.keyCode==83&&(kn.preventDefault(),On())}const Fe=()=>{if(ji&&yo.current.instance){const kn=yo.current.instance.getContentHeight();Li(kn<Te?Te:kn)}else Li(Te)};function wn(kn){var ui=document.createEvent("MouseEvents");ui.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kn.dispatchEvent(ui)}const Hn=kn=>{if(!Xs.current)return;const{keyCode:ui,ctrlKey:Sr,metaKey:cr,target:zr,type:dr}=kn;return(dr==="paste"||(ui===67||ui===86)&&(cr||Sr))&&zr.nodeName==="TEXTAREA"&&(Nn(),kn.preventDefault()),!1};function Si(kn,ui){var Sr=window.URL||window.webkitURL||window,cr=new Blob([ui]),zr=document.createElementNS("http://www.w3.org/1999/xhtml","a");zr.href=Sr.createObjectURL(cr),zr.download=kn,wn(zr)}(0,Lt.useEffect)(()=>{Fe()},[Fe]),(0,Lt.useEffect)(()=>{Os.current&&!Rr&&Promise.all([Ft.e(8909),Ft.e(6894)]).then(Ft.bind(Ft,71448)).then(kn=>{try{gt=kn,yo.current.instance=gt.editor.create(Os.current,{value:De,language:ft(Me),theme:un,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},an);const ui=yo.current.instance;let zr=[..._e.BH._menuItems].find(Cr=>Cr[0]._debugName=="EditorContext")[1],dr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Mr=(Cr,no)=>{var Ro,yi;let Po=Cr._first;do no.includes((yi=(Ro=Po.element)==null?void 0:Ro.command)==null?void 0:yi.id)&&Cr._remove(Po);while(Po=Po.next)};if(Fr(ui,gt),setTimeout(()=>{Fe(),yo.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Si(Jr||"educoder.txt",ui.getValue())}})},500),yo.current.subscription=ui.onDidChangeModelContent(Cr=>{ia.current?clearTimeout(Zs.current):(Fe(),Ji(ui.getValue(),Cr)),Zs.current=setTimeout(()=>{ia.current=!1},500)}),window.Monaco||se(gt,ft(Me)),er&&(Mr(zr,dr),Os.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Hn),window.removeEventListener("paste",Hn),window.addEventListener("keydown",Hn),window.addEventListener("paste",Hn)),window.Monaco=gt,Bn&&ui.onDidBlurEditorWidget(()=>{Bn(ui.getValue())}),vr&&ui.onDidFocusEditorText(()=>{vr(ui.getValue())}),er)try{ui.onDidPaste(Cr=>{const no=ui.getSelection(),Ro=yo.current.pastePos||{},yi=new gt.Range(Ro.startLineNumber||no.endLineNumber,Ro.startColumn||no.endColumn,Ro.endLineNumber||no.endLineNumber,Ro.endColumn||no.endColumn);ui.executeEdits("",[{range:Cr.range,text:""}])})}catch(Cr){}let nr=Dn();return fs&&typeof fs=="string"&&new Ge(fs,ui,gt),_r(!0),()=>{const Cr=yo.current.instance;Cr.dispose();const no=Cr.getModel();no&&no.dispose(),yo.current.subscription&&yo.current.subscription.dispose(),nr.unobserve(Os.current)}}catch(ui){}})},[]),(0,Lt.useEffect)(()=>{if(yo.current.instance&&Rr)return document.addEventListener("keydown",dn,!1),()=>{document.removeEventListener("keydown",dn)}},[On,Rr]),(0,Lt.useEffect)(()=>{let kn=yo.current.instance;if(kn&&Rr){let ui=ft(Me);gt.editor.setModelLanguage(kn.getModel(),ui)}},[Me,Rr]),(0,Lt.useEffect)(()=>{yo.current.instance&&Rr&&gt.editor.setTheme(un)},[un,Rr]),(0,Lt.useEffect)(()=>{let kn=yo.current.instance;Xt.current=Gn,kn&&Rr&&(kn.updateOptions(Kn({},Gn)),setTimeout(()=>{kn.getModel().updateOptions(Kn({},Gn))},200))},[JSON.stringify(Gn),Rr]),(0,Lt.useEffect)(()=>{let kn=yo.current.instance;kn&&Rr&&kn.layout()},[ye,Te,Rr]);const[Di,tn]=(0,Lt.useState)(Oi(ye)),[oi,Li]=(0,Lt.useState)(Oi(Te)),tr=Bi(Kn({},sn),{width:Di,height:oi,position:"relative"});return Lt.createElement("div",{className:"my-monaco-editor",ref:Os,style:tr},ai&&Lt.createElement(ne.CopyToClipboard,{text:De,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},Lt.createElement(We.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 ue({width:xe="100%",height:ae="100%",original:ye,modified:Te,language:De,options:Me={}}){const sn=(0,Lt.useRef)(),[Gn,an]=(0,Lt.useState)(null);function un(ji){let er;return sn.current&&(er=new ce.Z(Ji=>{for(let Fr of Ji)(Fr.target.offsetHeight>0||Fr.target.offsetWidth>0)&&ji.layout()}),er.observe(sn.current)),er}(0,Lt.useEffect)(()=>(sn.current&&Promise.all([Ft.e(8909),Ft.e(9404)]).then(Ft.bind(Ft,2550)).then(ji=>{gt=ji;const er=gt.editor.createDiffEditor(sn.current,Bi(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}));an(er);let Ji=un(er);return()=>{er.dispose();const Fr=er.getModel();Fr&&Fr.dispose(),Ji.unobserve(sn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Lt.useEffect)(()=>{Gn&&Gn.setModel({original:gt.editor.createModel(ye,De),modified:gt.editor.createModel(Te,De)})},[ye,Te,De,Gn]);const Bn=Oi(xe),ai=Oi(ae),On={width:Bn,height:ai};return Lt.createElement("div",{className:"my-diff-editor",ref:sn,style:On})}},15965:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{jL:function(){return ee},w9:function(){return Mn},QD:function(){return Ji},cQ:function(){return ne},op:function(){return un},O5:function(){return Xs},_b:function(){return Lr},t7:function(){return rt},Gi:function(){return Fi},YG:function(){return Bi},qp:function(){return oe},vr:function(){return so},qE:function(){return On},Je:function(){return xt},wb:function(){return _e},cq:function(){return gt},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:Rr=[],img:_r,imgWidth:Dn=346,title:Nn,sunTitle:je,bannerExtraContent:ei})=>Lt.createElement("div",{className:ce.banner},Lt.createElement("div",{className:ce.content},Lt.createElement("aside",null,Lt.createElement("p",null,Lt.createElement("b",null,Nn),Lt.createElement("span",null,je)),Rr.length>0&&Lt.createElement("div",{className:ce.btns},Rr.map((xi,dn)=>Lt.createElement("div",{key:dn,onClick:xi.click},xi.name,xi.sign?Lt.createElement("img",{src:re,width:39}):null))),ei),_r&&Lt.createElement("img",{style:{marginTop:33,marginRight:38},src:_r,width:Dn}))),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),te=Ft(89392),oe=({dataSource:Rr=[],value:_r,onChange:Dn,onTitleChange:Nn,className:je,title:ei,titleWidth:xi=41,style:dn={},fontColor:Fe="#6A7283",showCount:wn})=>{const[Hn,Si]=(0,Lt.useState)(0),[Di,tn]=(0,Lt.useState)(!1),oi=(0,Lt.useRef)(null),Li=(0,Lt.useRef)(null);return(0,Lt.useEffect)(()=>{var tr;Rr.length!==0&&(((tr=oi==null?void 0:oi.current)==null?void 0:tr.clientHeight)>97?Si(1):Si(0)),Rr.length===0&&Si(0),tn(!1)},[Rr]),Lt.createElement("div",{className:jt()(Vt.row,je),style:dn},Lt.createElement("div",{onClick:(0,te.throttle)(()=>Nn==null?void 0:Nn(),2e3),style:{width:xi,marginTop:Di?12:4},className:`${Vt.title} ${Nn?"current":""}`},ei),Lt.createElement("div",{className:Di?`${Vt.tagsWrap} ${Vt.tagsBorderWrap}`:Vt.tagsWrap},Lt.createElement("div",{className:Vt.bar,ref:Li,style:Hn>0?{height:Hn===1?97:"auto",overflow:Hn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Lt.createElement("div",{className:Vt.tag,ref:oi},Rr==null?void 0:Rr.map(tr=>Lt.createElement("span",{onClick:()=>Dn(tr.id),key:tr.id,style:{color:Fe},className:_r===tr.id?Vt.active:""},Lt.createElement("span",{title:tr.name,className:Vt.name},tr.name),!!wn&&Lt.createElement("span",{className:Vt.num},tr.count))))),!!Hn&&Lt.createElement(Lt.Fragment,null,Hn===1?Lt.createElement("div",{onClick:()=>{var tr;Si(2),((tr=oi==null?void 0:oi.current)==null?void 0:tr.clientHeight)>245?tn(!0):tn(!1)},className:Vt.action},"\u5C55\u5F00",Lt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Lt.createElement("div",{onClick:()=>{Li.current.scrollTop=0,Si(1),tn(!1)},className:Vt.action},"\u6536\u8D77",Lt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Kt={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:Rr=[],value:_r,onChange:Dn,className:Nn,style:je={}})=>Lt.createElement("div",{style:je,className:jt()(Kt.tabs,Nn)},Rr.map(ei=>Lt.createElement("span",{onClick:()=>Dn(ei.id),className:_r===ei.id?Kt.active:"",key:ei.id},ei.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:Rr=[],value:_r="",onChange:Dn,onInputChange:Nn=()=>{},className:je,style:ei={},placeholder:xi,allowClear:dn=!1})=>{var Fe;const[wn,Hn]=(0,Lt.useState)(""),[Si,Di]=(0,Lt.useState)("");(0,Lt.useEffect)(()=>{var Li;let tr=_r;(Li=JSON.stringify(_r))!=null&&Li.includes("{")&&(Hn(_r.id),tr=_r.value||"");try{Di(decodeURIComponent(tr||""))}catch(kn){Di(decodeURIComponent(tr||""))}},[_r]);const tn=()=>{Dn(encodeURIComponent(Si),wn||null)},oi=Li=>{Li!==wn&&(Hn(Li),Dn(encodeURIComponent(Si),Li))};return Lt.createElement("div",{className:jt()(et.input,je),style:ei},!!Rr.length&&Lt.createElement("div",{className:et.dropdown},Lt.createElement("div",{className:et.text},(Fe=Rr.find(Li=>Li.id===wn))==null?void 0:Fe.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},Rr.map((Li,tr)=>Lt.createElement("div",{key:tr,onClick:()=>oi(Li.id)},Li.name)))),Lt.createElement(tt.default,{onPressEnter:tn,value:Si,onChange:Li=>{Di(Li.target.value),Nn(encodeURIComponent(Li.target.value),wn||null)},bordered:!1,placeholder:xi}),Lt.createElement("i",{onClick:tn,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:Rr,onChange:_r,className:Dn,total:Nn,pageSize:je,style:ei={}})=>{const xi=Rr<2,dn=Rr>=Math.ceil(Nn/je);return Nn<=je?Lt.createElement(Lt.Fragment,null):Lt.createElement("div",{className:jt()(ht.quickPager,Dn),style:ei},Lt.createElement("div",{onClick:()=>{xi||_r(Rr-1,"prev")},className:xi?ht.disabled:""},"\u4E0A\u4E00\u9875"),Lt.createElement("div",{onClick:()=>{dn||_r(Rr+1,"next")},className:dn?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),Gt=Ft(6848),se=Ft(13570),le=Ft(38446),Ae=Ft(88230),Pe=Ft(96908),qt=Ft(57177),ze=Ft(81378),Wt=Ft(57816),_e=({className:Rr,dataSource:_r=[],col:Dn=4,right:Nn,bottom:je=23,precision:ei=0,wrapWidth:xi=1200,trackEventItems:dn,loading:Fe})=>{const wn=Math.floor((xi-(Dn-1)*Nn)/Dn);return Lt.createElement(Ut.Z,{spinning:Fe},Lt.createElement("div",{className:jt()(Nt.list,Rr)},!!_r.length&&_r.map((Hn,Si)=>{const{name:Di,id:tn,identifier:oi,power:Li,cover_image_id:tr,pic:kn}=Hn;return Lt.createElement("div",{className:Nt.wrap,key:tn,style:{width:wn,marginRight:(1+Si)%Dn===0?0:Nn+ei,marginBottom:je}},Lt.createElement("a",{target:"_blank",href:`/shixuns/${oi}/challenges`,className:Nt.li,onClick:ui=>{ui.preventDefault(),dn&&(0,Ae.L9)([dn]),Li&&(0,Ae.xg)(`/shixuns/${oi}/challenges`)}},Lt.createElement("div",{className:Nt.img},Lt.createElement("img",{className:Nt.cover,src:`${kn}`}),Hn.is_jupyter&&Lt.createElement("img",{className:Nt.sign,src:Pe}),Hn.is_jupyter_lab&&Lt.createElement("img",{className:Nt.sign,src:qt}),Hn.is_unity_3d&&Lt.createElement("img",{className:Nt.sign,src:ze})),Lt.createElement("div",{className:Nt.name},Lt.createElement(Gt.Z,{title:Di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Lt.createElement("span",{className:Nt.e},Di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Lt.createElement("div",{className:Nt.tags},Lt.createElement(Gt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Lt.createElement("span",null,Hn.challenges_count))),!!Hn.myshixuns_count&&Lt.createElement(Gt.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,Hn.myshixuns_count))),Lt.createElement(Gt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Lt.createElement("span",null,Lt.createElement("span",null,Hn.level))),Lt.createElement("div",{className:Nt.rate},Lt.createElement(se.Z,{allowHalf:!0,disabled:!0,defaultValue:Hn.score_info}),Lt.createElement("span",null,"\xA0",Hn.score_info?`${Hn.score_info}\u5206`:"5\u5206")))),!Li&&Lt.createElement("div",{className:Nt.lockWrap},Lt.createElement("img",{src:`${le.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")))}),!_r.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"},We=Ft(73898),Re=Ft(59301),ne=({className:Rr,dataSource:_r=[],col:Dn=4,right:Nn,bottom:je=23,precision:ei=0,wrapWidth:xi=1200,trackEventItems:dn,loading:Fe,onRemove:wn=()=>{},isCurrent:Hn=!0,showAlias:Si=!1})=>{const Di=Math.floor((xi-(Dn-1)*Nn)/Dn),tn=[{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 Re.createElement(Ut.Z,{spinning:Fe},Re.createElement("div",{className:jt()(Ne.list,Rr)},!!(_r!=null&&_r.length)&&(_r==null?void 0:_r.map((oi,Li)=>{var tr;const{name:kn,id:ui,identifier:Sr,featured:cr,school_name:zr,image_url:dr,excellent:Mr,is_plan:nr}=oi;return Re.createElement("div",{key:ui,className:Ne.wrap,style:{width:Di,marginRight:(1+Li)%Dn===0?0:Nn+ei,marginBottom:je}},Re.createElement("a",{className:Ne.li,onClick:Cr=>{Cr.preventDefault(),Cr.stopPropagation(),dn&&(0,Ae.L9)([dn]),(0,Ae.xg)(`/paths/${Sr}`)}},Re.createElement("div",{className:Ne.img},Re.createElement("img",{className:Ne.cover,src:`${dr}`}),Hn&&(0,We.bg)()&&(oi==null?void 0:oi.studying)&&Re.createElement("div",{className:`${Ne.movebq} user-path-items`,onClick:Cr=>{Cr.stopPropagation(),wn(oi)}},Re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(tr=oi==null?void 0:oi.subject_tags)==null?void 0:tr.map((Cr,no)=>{var Ro,yi;if(no===0){const ws=(Ro=tn.find(Zo=>Zo.name==Cr))==null?void 0:Ro.swimg;return Re.createElement("img",{className:Ne.sign,src:ws,style:{left:"-4px"}})}const Po=(yi=tn.find(ws=>ws.name==Cr))==null?void 0:yi.ptimg;return Re.createElement("img",{className:Ne.sign,src:Po,style:{left:`${48+52*(no-1)+2*no}px`}})}),Re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(oi==null?void 0:oi.excellent)&&Re.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Re.createElement("div",{className:Ne.name},Re.createElement(Gt.Z,{title:Si&&(oi!=null&&oi.excellent_alias_name)?Re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${kn}`,Re.createElement("br",null),Re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${oi==null?void 0:oi.excellent_alias_name}`)):kn},Re.createElement("span",{className:Ne.e},Si&&(oi==null?void 0:oi.excellent_alias_name)||kn))),Re.createElement(Gt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${zr}`},Re.createElement("div",{className:Ne.unit},Re.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),zr)),Re.createElement("div",{className:Ne.tags},Re.createElement("div",null,Re.createElement(Gt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Re.createElement("span",null,oi.stages_count))),Re.createElement(Gt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Re.createElement("span",null,oi.members_count)))))))})),!_r.length&&Re.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),Mn=({className:Rr,dataSource:_r=[],col:Dn=4,right:Nn,bottom:je=23,precision:ei=0,wrapWidth:xi=1200,trackEventItems:dn,loading:Fe,handleVery:wn=()=>{}})=>{const Hn=Math.floor((xi-(Dn-1)*Nn)/Dn);return Ln.createElement(Ut.Z,{spinning:Fe},Ln.createElement("div",{className:jt()(Ce.list,Rr)},!!_r.length&&_r.map((Si,Di)=>{const{subject_identifier:tn,id:oi,identifier:Li,power:tr}=Si,kn=Si.is_public!=0&&Si.is_public;return Ln.createElement("div",{className:Ce.wrap,key:oi,style:{width:Hn,marginRight:(1+Di)%Dn===0?0:Nn+ei,marginBottom:je}},Ln.createElement("a",{className:Ce.li,onClick:ui=>{ui.preventDefault(),wn(Si==null?void 0:Si.first_category_url)}},Ln.createElement("div",{className:Ce.top},Ln.createElement(Gt.Z,{title:Si.name},Ln.createElement("div",{className:Ce.name},Si.name)),Ln.createElement("img",{className:Ce.img,src:le.Z.IMG_SERVER+"/images/"+Si.avatar_url}),Ln.createElement("div",{className:Ce.text,title:Si.creator},Si.creator),tn&&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},Si.visits>0&&Ln.createElement(Gt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-liulanyan"}),Ln.createElement("span",null,Si.visits))),Si.course_members_count>0&&Ln.createElement(Gt.Z,{title:"\u6210\u5458",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-chengyuan"}),Si.course_members_count)),Si.tasks_count>0&&Ln.createElement(Gt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-zuoye"}),Si.tasks_count)),Si.is_end?Ln.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ln.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Si.is_accessible&&Ln.createElement("div",{className:Ce.lockWrap},Ln.createElement("img",{src:`${le.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")))}),!_r.length&&Ln.createElement(Wt.Z,null)))},Vn={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"},fi=Ft(24459),Bi=({dataSource:Rr=[],value:_r,onChange:Dn,className:Nn,style:je={},tabBarExtraContent:ei})=>Lt.createElement("div",{className:jt()(Vn.tabs,Nn),style:je},Lt.createElement("div",{className:Vn.tabsWrap},Rr.map((xi,dn)=>!(xi!=null&&xi.hide)&&Lt.createElement("aside",{className:Vn.tab,onClick:()=>{Dn(xi.id),xi.link&&fi.history.push(xi.link)},key:dn},Lt.createElement("div",{className:_r===xi.id?Vn.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(Gt.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:Vn.tabBar},ei)),Fi=({className:Rr,style:_r={},children:Dn})=>Lt.createElement("div",{className:jt()(Rr),style:_r},Dn),Oi={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 gt=({sortValue:Rr,dropValue:_r,className:Dn,onSort:Nn,onDrop:je,dataSource:ei=vt})=>{var xi;return Lt.createElement("div",{className:jt()(Oi.orderWrap,Dn)},Lt.createElement(Ot.Z,{dropdownRender:()=>Lt.createElement(Tt.default,null,ei.map((dn,Fe)=>Lt.createElement(Tt.default.Item,{key:Fe,onClick:()=>je(dn.id)},dn.name)))},Lt.createElement("span",{className:Oi.orderTextWrap},(xi=ei.find(dn=>_r===dn.id))==null?void 0:xi.name)),Lt.createElement("span",{className:Oi.orderIconWrap},Lt.createElement("span",{className:Oi.orderAsc},Lt.createElement("i",{className:Rr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Oi.cursorPointer} ${Oi.active}`:`iconfont icon-sanjiaoxing-up font12 ${Oi.cursorPointer}`,onClick:()=>Nn(Rr==="asc"?"desc":"asc")})),Lt.createElement("span",{className:Oi.orderDesc},Lt.createElement("i",{className:Rr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Oi.cursorPointer} ${Oi.active}`:`iconfont icon-sanjiaoxing-down font12 ${Oi.cursorPointer}`,onClick:()=>Nn(Rr==="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"},ue=Ft(3113),xe=Object.defineProperty,ae=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,De=(Rr,_r,Dn)=>_r in Rr?xe(Rr,_r,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Rr[_r]=Dn,Me=(Rr,_r)=>{for(var Dn in _r||(_r={}))ye.call(_r,Dn)&&De(Rr,Dn,_r[Dn]);if(ae)for(var Dn of ae(_r))Te.call(_r,Dn)&&De(Rr,Dn,_r[Dn]);return Rr},sn=(Rr,_r)=>{var Dn={};for(var Nn in Rr)ye.call(Rr,Nn)&&_r.indexOf(Nn)<0&&(Dn[Nn]=Rr[Nn]);if(Rr!=null&&ae)for(var Nn of ae(Rr))_r.indexOf(Nn)<0&&Te.call(Rr,Nn)&&(Dn[Nn]=Rr[Nn]);return Dn},Gn=(Rr,_r,Dn)=>new Promise((Nn,je)=>{var ei=Fe=>{try{dn(Dn.next(Fe))}catch(wn){je(wn)}},xi=Fe=>{try{dn(Dn.throw(Fe))}catch(wn){je(wn)}},dn=Fe=>Fe.done?Nn(Fe.value):Promise.resolve(Fe.value).then(ei,xi);dn((Dn=Dn.apply(Rr,_r)).next())}),un=Rr=>{var _r=Rr,{className:Dn,style:Nn,children:je,loading:ei=!1,openLoading:xi,onClick:dn=()=>{},size:Fe="middle",shape:wn="round"}=_r,Hn=sn(_r,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Si,Di]=(0,Lt.useState)(!1);return Lt.createElement(ue.ZP,Me({onClick:(0,te.throttle)(tn=>Gn(void 0,null,function*(){xi&&Di(!0);try{yield dn(tn)}catch(oi){console.log("error",oi)}xi&&Di(!1)}),2e3,{leading:!0,trailing:!1}),className:jt()(At.btn,At[`${Fe}-${wn}`],Dn),style:Nn,size:Fe,shape:wn,loading:Si||ei},Hn),je)},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:Rr,style:_r,children:Dn=null,onClick:Nn,title:je})=>Lt.createElement("div",{className:jt()(Bn.head,Rr),style:_r},Lt.createElement("span",{className:"primary-hover",onClick:Nn},Lt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Lt.createElement("b",{title:je},je),Lt.createElement("div",{className:Bn.node},Dn)),ji={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"},Ji=({confirmShow:Rr=!0,confirmTitle:_r,confirmClick:Dn,cancelShow:Nn=!0,cancelTitle:je,cancelClick:ei,className:xi,style:dn,confirmLoading:Fe=!1})=>Lt.createElement("div",{className:jt()(ji.btns,xi),style:dn},Rr&&Lt.createElement(ue.ZP,{loading:Fe,onClick:Dn,type:"primary",className:ji.confirm},_r),Nn&&Lt.createElement(ue.ZP,{onClick:ei,className:ji.cancel},je)),Fr={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"},so=({className:Rr,style:_r={},LeftContent:Dn,children:Nn,RightContent:je})=>Lt.createElement("div",{className:jt()(Fr.fixedBottom,Rr),style:_r},Lt.createElement("div",{className:Fr.wrap},Lt.createElement("div",{className:Fr.left},Dn),Lt.createElement("div",{className:Fr.center},Nn),Lt.createElement("div",{className:Fr.right},je))),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"},Lr=({className:Rr,style:_r={},dataSource:Dn=[]})=>Lt.createElement("div",{className:jt()(Yr.crumbs,Rr),style:_r},Dn.map((Nn,je)=>je<Dn.length-1?Lt.createElement(Lt.Fragment,{key:je},Nn.path||Nn.onClick?Lt.createElement("span",{className:Yr.hover,onClick:Nn!=null&&Nn.onClick?Nn.onClick:()=>fi.history.push(Nn.path)},Nn.name):Lt.createElement("span",null,Nn.name),Lt.createElement("span",null,"\xA0",">","\xA0")):Lt.createElement("span",{key:je,style:{color:"#5F6368"}},Nn.name))),Zr=Ft(31797),oo=Object.defineProperty,Uo=Object.defineProperties,fs=Object.getOwnPropertyDescriptors,eo=Object.getOwnPropertySymbols,Os=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Xt=(Rr,_r,Dn)=>_r in Rr?oo(Rr,_r,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Rr[_r]=Dn,ti=(Rr,_r)=>{for(var Dn in _r||(_r={}))Os.call(_r,Dn)&&Xt(Rr,Dn,_r[Dn]);if(eo)for(var Dn of eo(_r))yo.call(_r,Dn)&&Xt(Rr,Dn,_r[Dn]);return Rr},gs=(Rr,_r)=>Uo(Rr,fs(_r)),ia=(Rr,_r)=>{var Dn={};for(var Nn in Rr)Os.call(Rr,Nn)&&_r.indexOf(Nn)<0&&(Dn[Nn]=Rr[Nn]);if(Rr!=null&&eo)for(var Nn of eo(Rr))_r.indexOf(Nn)<0&&yo.call(Rr,Nn)&&(Dn[Nn]=Rr[Nn]);return Dn};const{Countdown:Zs}=Zr.default;var Xs=Rr=>{var _r=Rr,{onChange:Dn}=_r,Nn=ia(_r,["onChange"]);const[je,ei]=(0,Lt.useState)(null);(0,Lt.useEffect)(()=>{typeof je=="number"&&je>=0&&Dn(je)},[je]);const xi=dn=>{const Fe=Math.floor(dn/1e3);ei(Fe)};return Lt.createElement(Zs,gs(ti({},Nn),{onChange:xi}))}},50505:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Lt=Ft(59301);function ce(re,ke){const ee=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{ee.current=re}),(0,Lt.useEffect)(()=>{function Vt(){ee.current()}if(ke!==null){let Mt=setInterval(Vt,ke);return()=>clearInterval(Mt)}},[ke])}},27653:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{default:function(){return dn}});var Lt=Ft(59301),ce=Ft(61186),re=Ft.n(ce),ke=Ft(86129),ee=Ft.n(ke),Vt=Ft(7660),Mt=Ft(24459),jt=Ft(43418),te=Ft(8591),Pt=Ft(61621),oe=Ft(66104),Kt=Ft(95237),$t=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),Gt=Ft(26227),se=Ft(38446),le=Ft(73898),Ae=Ft(88230),Pe=Ft(42441),qt={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"},ze={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Wt=({shixunHomeworks:Fe,data:wn,globalSetting:Hn,loading:Si,dispatch:Di})=>{var tn;const{shixunWorkReport:oi}=Fe;let Li=((tn=wn==null?void 0:wn.efficiency_list)==null?void 0:tn.length)-parseInt(wn==null?void 0:wn.myself_eff[0]);const tr=()=>({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(ui){return ui.name===oi.username?"\u59D3\u540D\uFF1A"+oi.username+"<br/>\u5B66\u53F7\uFF1A "+oi.user_id+"<br/>\u6548\u7387\uFF1A"+(wn==null?void 0:wn.myself_eff[1]):ui.name+":"+ui.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:wn==null?void 0:wn.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:oi.username,xAxis:Li,yAxis:wn==null?void 0:wn.myself_eff[1],value:wn==null?void 0:wn.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(ui){var Sr=ui.value;if(ui.name===oi.username)return"\u59D3\u540D\uFF1A"+oi.username+"<br/>\u5B66\u53F7\uFF1A "+oi.user_id+"<br/>\u5F97\u5206\uFF1A"+(wn==null?void 0:wn.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:ze,data:wn==null?void 0:wn.consume_list,symbolSize:function(ui){return Math.round(ui[2])},markPoint:{data:[{name:oi.username,xAxis:wn==null?void 0:wn.myself_object[0],yAxis:wn==null?void 0:wn.myself_object[1],value:wn==null?void 0:wn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return Lt.createElement(Lt.Fragment,null,Lt.createElement("aside",{className:"ml60 pr30"},Lt.createElement(Kt.Z,null,Lt.createElement($t.Z,{flex:"800px"},Lt.createElement(Pe.Z,{style:{width:750,height:580},option:tr()})),Lt.createElement($t.Z,{flex:"1"},Lt.createElement("aside",{className:qt.rightInfo},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("span",null,"\u59D3\u540D")," ",Lt.createElement("span",{className:"ml30"},oi.username)),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u53F7")," ",Lt.createElement("span",{className:"ml30"},oi.student_id||"--")),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",Lt.createElement("span",{className:"ml30 c-orange"},wn==null?void 0:wn.myself_eff[1])),Lt.createElement("li",null,Lt.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",Lt.createElement("span",{className:"ml30 c-orange"},wn==null?void 0:wn.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(Kt.Z,null,Lt.createElement($t.Z,{flex:"800px"},Lt.createElement(Pe.Z,{style:{width:750,height:580},option:kn()})),Lt.createElement($t.Z,{flex:"1"},Lt.createElement("aside",{className:qt.rightInfo},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("span",null,"\u59D3\u540D")," ",Lt.createElement("span",{className:"ml30"},oi.username)),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u53F7")," ",Lt.createElement("span",{className:"ml30"},oi.student_id||"--")),Lt.createElement("li",null,Lt.createElement("span",null,"\u80FD\u529B")," ",Lt.createElement("span",{className:"ml30 c-orange"},wn==null?void 0:wn.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 Ge=(0,Mt.connect)(({shixunHomeworks:Fe,loading:wn,globalSetting:Hn})=>({shixunHomeworks:Fe,globalSetting:Hn,loading:wn.effects}))(Wt),_e=Ft(57800),Ne=Ft(5871),We=({defaultValue:Fe,onBlur:wn,max:Hn,className:Si="game-score"})=>{const[Di,tn]=(0,Lt.useState)(Fe);(0,Lt.useEffect)(()=>{tn(Fe)},[Fe]);function oi(tr){tn(tr)}function Li(){Di!==Fe&&wn(Di>Hn?Hn:Di)}return Lt.createElement(Ne.Z,{max:Hn,min:0,className:Si,value:Di,onChange:oi,onBlur:Li})},Re=Ft(64726),ve={md:"md___TEmcT"},ne=Ft(59301),Ce=Object.defineProperty,bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Vn=Object.prototype.propertyIsEnumerable,fi=(Fe,wn,Hn)=>wn in Fe?Ce(Fe,wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):Fe[wn]=Hn,Kn=(Fe,wn)=>{for(var Hn in wn||(wn={}))Mn.call(wn,Hn)&&fi(Fe,Hn,wn[Hn]);if(Ze)for(var Hn of Ze(wn))Vn.call(wn,Hn)&&fi(Fe,Hn,wn[Hn]);return Fe},Bi=(Fe,wn)=>bn(Fe,Ln(wn));const en=ht.default.Option,Fi={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var Oi=(Fe=>(Fe[Fe.SET_PATH=0]="SET_PATH",Fe[Fe.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Fe))(Oi||{});function Ot(Fe,wn){switch(wn.type){case 0:return Bi(Kn({},Fe),{selectedPath:wn.payload});case 1:return Bi(Kn({},Fe),{passedContent:wn.payload});default:throw new Error}}var Tt=({path:Fe,game_id:wn,onPathChange:Hn,autoHeight:Si,diff_code_count:Di,data:tn,game_codes_cn:oi})=>{var Li,tr,kn,ui;const Sr=Fe.split("\uFF1B").filter(no=>!!no),[cr,zr]=(0,Lt.useReducer)(Ot,{selectedPath:Sr[0],passedContent:{language:"python",content:""}}),{selectedPath:dr,passedContent:Mr}=cr;function nr(no){zr({type:0,payload:no})}const Cr={\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,oi,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"}))),Di&&ne.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",Di),ne.createElement("span",null,ne.createElement(ht.default,{style:{width:200},value:dr,onChange:nr}," ",Sr.map(no=>ne.createElement(en,{key:no,value:no},no))," "))," "),(dr==null?void 0:dr.split(".")[1])==="md"&&ne.createElement(Re.Z,{height:300,autoHeight:Si,defaultValue:((tr=(Li=tn==null?void 0:tn.filter(no=>no.path===dr))==null?void 0:Li[0])==null?void 0:tr.content)||"",className:ve.md}),(dr==null?void 0:dr.split(".")[1])!=="md"&&ne.createElement(_e.ZP,{height:300,language:Mr.language,value:((ui=(kn=tn==null?void 0:tn.filter(no=>no.path===dr))==null?void 0:kn[0])==null?void 0:ui.content)||"",autoHeight:Si,theme:"default",isCopy:!0,options:Fi}))},vt=Ft(94811),ft=Ft(12911),gt=Ft.n(ft),At=Object.defineProperty,ue=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ye=(Fe,wn,Hn)=>wn in Fe?At(Fe,wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):Fe[wn]=Hn,Te=(Fe,wn)=>{for(var Hn in wn||(wn={}))xe.call(wn,Hn)&&ye(Fe,Hn,wn[Hn]);if(ue)for(var Hn of ue(wn))ae.call(wn,Hn)&&ye(Fe,Hn,wn[Hn]);return Fe},De=(Fe,wn,Hn)=>new Promise((Si,Di)=>{var tn=tr=>{try{Li(Hn.next(tr))}catch(kn){Di(kn)}},oi=tr=>{try{Li(Hn.throw(tr))}catch(kn){Di(kn)}},Li=tr=>tr.done?Si(tr.value):Promise.resolve(tr.value).then(tn,oi);Li((Hn=Hn.apply(Fe,wn)).next())});const Me=({shixunHomeworks:Fe,autoHeight:wn,classroomList:Hn,dispatch:Si})=>{var Di,tn,oi,Li,tr,kn,ui;const{shixunWorkReport:Sr}=Fe,{stage_list:cr,work_id:zr}=Sr,[dr,Mr]=(0,Lt.useState)(!1),[nr,Cr]=(0,Lt.useState)(!0),[no,Ro]=(0,Lt.useState)({left:0,top:0,bottom:0,right:0}),yi=(0,Lt.useRef)(null),[Po,ws]=(0,Lt.useState)(!1),Zo=(Dr,Br)=>{var Pi;const{clientWidth:bo,clientHeight:Ci}=window.document.documentElement,Xo=(Pi=yi.current)==null?void 0:Pi.getBoundingClientRect();Xo&&Ro({left:-Xo.left+Br.x,right:bo-(Xo.right-Br.x),top:-Xo.top+Br.y,bottom:Ci-(Xo.bottom-Br.y)})},pi=(0,Mt.useParams)(),or=(0,le.GJ)(),Hr={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,Lt.useEffect)(()=>{console.log(pi)},[]);const uo=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(Dr,Br,Pi)=>Lt.createElement("div",null,Dr,Br.is_work_end_evaluate&&Lt.createElement(Ae.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:Dr=>re()(Dr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(Dr,Br)=>Lt.createElement("span",{className:"c-blue current",onClick:()=>De(void 0,null,function*(){var Pi,bo;const Ci=yield(0,vt.Lk)(Br.game_identifier,{path:(bo=(Pi=Br.path)==null?void 0:Pi.replace(/\/g,";"))==null?void 0:bo.split(";")[0],query_index:Br.query_index,homework_common_id:pi.categoryId});(Ci==null?void 0:Ci.status)===0&&(ws(Ci),Mr(!0))})},Br.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],to=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(Dr,Br)=>{var Pi;return Lt.createElement("span",null,Lt.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:se.Z.IMG_SERVER+"/images/"+((Pi=Br==null?void 0:Br.user)==null?void 0:Pi.image_url)}),Dr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:Dr=>Lt.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",Dr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:Dr=>Lt.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",Dr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:Dr=>Lt.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",Dr?re()(Dr).format("YYYY-MM-DD HH:mm"):"--")}];function Fo(Dr,Br){return De(this,null,function*(){const{challenge_id:Pi}=cr[Dr],bo=yield Si({type:"shixunHomeworks/changeScore",payload:{categoryId:pi.homeworkId,type:"report",score:Br,challenge_id:Pi}});yield Si({type:"shixunHomeworks/getShixunWorkReport",payload:Te({},pi)}),bo.status===0&&te.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function mi(Dr,Br){return(0,Vt.U2)(`student_works/${zr}/rep_passed_content.json`,{path:Br,game_id:Dr})}const wo=Sr.shixun_detail;return Lt.createElement(Lt.Fragment,null,wo==null?void 0:wo.map(function(Dr,Br){var Pi,bo;return Lt.createElement("div",{key:Br},Lt.createElement("aside",{className:"pl30 pr30",key:Br},Lt.createElement("div",{className:`${qt.shixunTitle} mt10`},Lt.createElement("div",null,Lt.createElement("span",{className:"fa fa-code "}),Lt.createElement("strong",{className:"c-black"},"\u7B2C",Br+1,"\u5173 ",Lt.createElement(Mt.Link,{className:"c-black",target:"_blank",to:`/tasks/${pi.coursesId}/${pi.categoryId}/${Dr.game_identifier}`},Dr.subject))),or?Lt.createElement("span",null,"\u8C03\u5206\uFF1A",Lt.createElement(We,{className:"game-score",max:cr[Br].game_score_full,defaultValue:cr[Br].game_score,onBlur:Ci=>{var Xo;if((0,le.Rm)()&&!((Xo=Hn.AssistantObject.practice)!=null&&Xo.can_appraise)){te.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}Fo(Br,Ci)}})):null),Lt.createElement("div",{className:"font16 mt10"},Dr.st===0&&(Dr.path?typeof(Dr==null?void 0:Dr.game_codes_cn)=="string"?Lt.createElement("aside",{className:qt.shixunWrp},Lt.createElement(Tt,{game_codes_cn:Dr==null?void 0:Dr.game_codes_cn,autoHeight:wn,path:Dr.path,game_id:Dr.id,data:Dr.game_codes,diff_code_count:Dr.diff_code_count,onPathChange:mi})):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"),Dr.st===1&&(Dr.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"},(Pi=Dr.outputs)!=null&&Pi.length?Lt.createElement(rt.default,{columns:uo,pagination:{hideOnSinglePage:!0},dataSource:Dr.outputs.map(Ci=>Te(Te({},Dr),Ci))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),Lt.createElement("aside",{className:"mt10 font16"},((bo=Dr==null?void 0:Dr.adjust_review_score_list)==null?void 0:bo.length)>0&&(0,le.GJ)()&&Lt.createElement("div",null,Lt.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),Lt.createElement(rt.default,{columns:to,pagination:{hideOnSinglePage:!0},dataSource:Dr.adjust_review_score_list,showHeader:!1})))))}),Lt.createElement(jt.default,{open:dr,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{ws({}),Mr(!1)},onCancel:()=>{ws({}),Mr(!1)},title:Lt.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{nr&&Cr(!1)},onMouseOut:()=>{Cr(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:Dr=>Lt.createElement(gt(),{disabled:nr,bounds:no,nodeRef:yi,onStart:(Br,Pi)=>Zo(Br,Pi)},Lt.createElement("div",{ref:yi},Dr))},Lt.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},Lt.createElement("div",{style:{display:"flex",alignItems:"center"}},((Di=Po==null?void 0:Po.data)==null?void 0:Di.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:((tn=Po==null?void 0:Po.data)==null?void 0:tn.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(oi=Po==null?void 0:Po.data)==null?void 0:oi.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()((Li=Po==null?void 0:Po.data)==null?void 0:Li.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"}},(tr=Po==null?void 0:Po.data)==null?void 0:tr.ts_time,"s")),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(kn=Po==null?void 0:Po.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"}},((ui=Po==null?void 0:Po.data)==null?void 0:ui.test_set_passed_rate)*100,"%")))),Lt.createElement(_e.ZP,{height:500,autoHeight:wn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Po==null?void 0:Po.content)||""))),options:Hr})))};var sn=(0,Mt.connect)(({shixunHomeworks:Fe,loading:wn,globalSetting:Hn,classroomList:Si})=>({shixunHomeworks:Fe,globalSetting:Hn,loading:wn.effects,classroomList:Si}))(Me),Gn=Ft(78241),an={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},un=Ft(33471),Bn=Ft(59301),ai=Object.defineProperty,On=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,Ji=(Fe,wn,Hn)=>wn in Fe?ai(Fe,wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):Fe[wn]=Hn,Fr=(Fe,wn)=>{for(var Hn in wn||(wn={}))ji.call(wn,Hn)&&Ji(Fe,Hn,wn[Hn]);if(On)for(var Hn of On(wn))er.call(wn,Hn)&&Ji(Fe,Hn,wn[Hn]);return Fe},vr=(Fe,wn,Hn)=>new Promise((Si,Di)=>{var tn=tr=>{try{Li(Hn.next(tr))}catch(kn){Di(kn)}},oi=tr=>{try{Li(Hn.throw(tr))}catch(kn){Di(kn)}},Li=tr=>tr.done?Si(tr.value):Promise.resolve(tr.value).then(tn,oi);Li((Hn=Hn.apply(Fe,wn)).next())});const so=({shixunHomeworks:Fe,dispatch:wn,classroomList:Hn})=>{const{shixunWorkReport:Si}=Fe,Di=(0,Mt.useParams)(),[tn,oi]=(0,Lt.useState)(!1),[Li]=Gn.default.useForm(),[tr,kn]=jt.default.useModal(),[ui,Sr]=(0,Lt.useState)(!1),[cr,zr]=(0,Lt.useState)(!1);(0,Lt.useEffect)(()=>{var nr,Cr,no,Ro;Fe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Li.setFieldsValue({comment:(Cr=(nr=Fe.actionTabs.selectArrs)==null?void 0:nr.data)==null?void 0:Cr.work_comment,hidden_comment:(Ro=(no=Fe.actionTabs.selectArrs)==null?void 0:no.data)==null?void 0:Ro.work_comment_hidden})},[Fe.actionTabs.key]);const dr=()=>vr(void 0,null,function*(){const nr=Li.getFieldsValue();(yield(0,Vt.ZP)(`/api/student_works/${Di.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:nr.hidden_comment,comment:nr.comment}})).status===0&&(te.ZP.success("\u8BC4\u9605\u6210\u529F"),Li.resetFields(),wn({type:"shixunHomeworks/setActionTabs",payload:{}}),wn({type:"shixunHomeworks/getShixunWorkReport",payload:Fr({},Di)}))}),Mr=[{title:"\u5173\u5361",dataIndex:"name",render:(nr,Cr,no)=>no+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(nr,Cr,no)=>Bn.createElement("div",null,nr,Cr.complete_status===4&&Bn.createElement(Ae.vA,{status:Cr.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:nr=>nr?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(nr,Cr)=>Bn.createElement("div",null,Bn.createElement("span",{style:{color:parseFloat(Cr.game_score_full)!==parseFloat(nr)?"#E30000":"#53C41B"}},nr),"/",Cr.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(nr,Cr)=>(0,le.GJ)()?Bn.createElement(We,{max:Cr.game_score_full,defaultValue:parseFloat(nr),onBlur:no=>vr(void 0,null,function*(){var Ro,yi;if((0,le.Rm)()&&!((Ro=Hn.AssistantObject.practice)!=null&&Ro.can_appraise)){te.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 Po=yield wn({type:"shixunHomeworks/changeScore",payload:{categoryId:Di.homeworkId,type:"report",score:no,challenge_id:Cr.challenge_id}});(yi=Fe==null?void 0:Fe.actionTabs)==null||yi.fn(),yield wn({type:"shixunHomeworks/getShixunWorkReport",payload:Fr({},Di)}),Po.status===0&&te.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):nr}];return Bn.createElement(Bn.Fragment,null,kn,Bn.createElement(jt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:Fe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>vr(void 0,null,function*(){var nr;if((0,le.Rm)()&&!((nr=Hn.AssistantObject.practice)!=null&&nr.can_appraise)){te.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 Cr=Li.getFieldsValue();JSON.stringify(Cr)==="{}"||Cr.hidden_comment===""&&Cr.comment===""?oi(!0):dr()}),onCancel:()=>{wn({type:"shixunHomeworks/setActionTabs",payload:{}})}},Bn.createElement(Kt.Z,{justify:"space-between",className:an.info},Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u59D3\u540D"),Bn.createElement("span",{className:an.blackContent},Si==null?void 0:Si.username)),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u5B66\u53F7"),Bn.createElement("span",{className:an.blackContent},(Si==null?void 0:Si.student_id)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u73ED\u7EA7"),Bn.createElement("span",{className:an.blackContent},(Si==null?void 0:Si.group_name)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u5173\u5361\u5F97\u5206"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.challenge_score)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u6548\u7387\u5206"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.eff_score)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u8865\u4EA4\u6263\u5206"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.late_penalty)||"--")),Bn.createElement($t.Z,null,Bn.createElement("span",{className:`${an.label} ${an.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),Bn.createElement("span",{className:an.orangeContent},(Si==null?void 0:Si.work_score)||"--"))),Bn.createElement(Gn.default,{form:Li,onChange:()=>{tn&&oi(!1)}},Bn.createElement(Kt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement($t.Z,null,Bn.createElement("div",{className:`${an.inputLabel} ${an.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement($t.Z,null,Bn.createElement(un.Z,{isShowComponent:(0,le.G5)(),ModalProps:{open:ui,onCancel:()=>{Sr(!1)}},onDataSelect:(nr,Cr)=>vr(void 0,[nr,Cr],function*(no,{node:Ro}){const yi=()=>{Li.setFieldsValue({comment:Ro==null?void 0:Ro.value}),Sr(!1)};if(Li.getFieldValue("comment")){tr.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:yi});return}yi()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:nr=>{Sr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Gn.default.Item,{name:"comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),Bn.createElement(Kt.Z,{wrap:!1,align:"middle",justify:"space-between"},Bn.createElement($t.Z,null,Bn.createElement("div",{className:`${an.inputLabel} ${an.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),Bn.createElement($t.Z,null,Bn.createElement(un.Z,{isShowComponent:(0,le.G5)(),ModalProps:{open:cr,onCancel:()=>{zr(!1)}},onDataSelect:(nr,Cr)=>vr(void 0,[nr,Cr],function*(no,{node:Ro}){const yi=()=>{Li.setFieldsValue({hidden_comment:Ro==null?void 0:Ro.value}),zr(!1)};if(Li.getFieldValue("hidden_comment")){tr.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:yi});return}yi()})},Bn.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:Bn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:nr=>{zr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),Bn.createElement(Gn.default.Item,{name:"hidden_comment"},Bn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),tn&&Bn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Bn.createElement("div",{className:an.tableTitle},"\u5173\u5361\u6210\u7EE9"),Bn.createElement(rt.default,{className:an.scoreTable,dataSource:Si.stage_list,rowKey:"challenge_id",pagination:!1,columns:Mr,scroll:{x:"max-content"}})))};var Yr=(0,Mt.connect)(({shixunHomeworks:Fe,classroomList:wn})=>({shixunHomeworks:Fe,classroomList:wn}))(so),Jr=Ft(9491),Lr=Ft(99325),Zr=Ft(32186),oo=Ft(44164),Uo=Ft.n(oo),fs={wrap:"wrap___LZOi9",line:"line___oju0L"},eo=Ft(3545),yo=({detailData:Fe})=>{var wn;return Lt.createElement("div",{className:fs.wrap},Lt.createElement(eo.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,eo.Uf)(Fe),(Fe==null?void 0:Fe.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},Lt.createElement(eo.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,eo.Uf)(Fe)}),!!((wn=Fe==null?void 0:Fe.photos)!=null&&wn.length)&&Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:fs.line}),Lt.createElement(eo._s,{dataSource:Fe==null?void 0:Fe.photos,right:21,col:4,wrapWidth:1140}))))},Xt=Ft(63529),ti=Ft(59301),gs=Object.defineProperty,ia=Object.defineProperties,Zs=Object.getOwnPropertyDescriptors,la=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,_r=(Fe,wn,Hn)=>wn in Fe?gs(Fe,wn,{enumerable:!0,configurable:!0,writable:!0,value:Hn}):Fe[wn]=Hn,Dn=(Fe,wn)=>{for(var Hn in wn||(wn={}))Xs.call(wn,Hn)&&_r(Fe,Hn,wn[Hn]);if(la)for(var Hn of la(wn))Rr.call(wn,Hn)&&_r(Fe,Hn,wn[Hn]);return Fe},Nn=(Fe,wn)=>ia(Fe,Zs(wn)),je=(Fe,wn)=>{var Hn={};for(var Si in Fe)Xs.call(Fe,Si)&&wn.indexOf(Si)<0&&(Hn[Si]=Fe[Si]);if(Fe!=null&&la)for(var Si of la(Fe))wn.indexOf(Si)<0&&Rr.call(Fe,Si)&&(Hn[Si]=Fe[Si]);return Hn},ei=(Fe,wn,Hn)=>new Promise((Si,Di)=>{var tn=tr=>{try{Li(Hn.next(tr))}catch(kn){Di(kn)}},oi=tr=>{try{Li(Hn.throw(tr))}catch(kn){Di(kn)}},Li=tr=>tr.done?Si(tr.value):Promise.resolve(tr.value).then(tn,oi);Li((Hn=Hn.apply(Fe,wn)).next())});const xi=Fe=>{var wn=Fe,{shixunHomeworks:Hn,classroomList:Si,globalSetting:Di,loading:tn,user:oi,dispatch:Li}=wn,tr=je(wn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),kn,ui,Sr;const[cr,zr]=(0,Lt.useState)(Dn({},(0,Mt.useParams)())),dr=(0,Mt.useParams)(),[Mr,nr]=(0,Lt.useState)({page:1,page_size:10}),Cr=(0,Mt.useLocation)(),[]=(0,Lt.useState)([]),[no,Ro]=(0,Lt.useState)(),yi=(0,Lt.useRef)(),Po=(0,Lt.useRef)(),[ws,Zo]=(0,Lt.useState)(!1),[pi,or]=(0,Lt.useState)(!0),[Hr,uo]=(0,Lt.useState)(!1),[to,Fo]=(0,Lt.useState)(!1),{shixunWorkReport:mi}=Hn,[wo,Dr]=(0,Lt.useState)(),[Br,Pi]=(0,Lt.useState)([]),[bo,Ci]=(0,Lt.useState)(),[Xo,ra]=(0,Lt.useState)("all"),xs=(0,le.GJ)(),[va,Gs]=(0,Lt.useState)(new(ee())),[Io,_o]=(0,Lt.useState)(0),[As,ls]=(0,Lt.useState)(!1),[wr,Ie]=(0,Lt.useState)(!1),[cs,oa]=(0,Lt.useState)(!1),[ll,Ll]=(0,Lt.useState)(""),[fl,_l]=(0,Lt.useState)(!1),[ns,Yo]=(0,Lt.useState)(!0),[xo,ks]=(0,Lt.useState)(0),fa=(0,Lt.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),fo=(0,Lt.useRef)(),co=()=>ei(void 0,null,function*(){(oi.userInfo.is_teacher||oi.userInfo.admin)&&(_l(!0),Yo(!1))});(0,Lt.useEffect)(()=>{var $r;(0,le.Rm)()&&Si.AssistantObject.practice&&!(($r=Si.AssistantObject.practice)!=null&&$r.can_view)&&Mt.history.replace("/403")},[(kn=Si.AssistantObject.practice)==null?void 0:kn.can_view]),(0,Lt.useEffect)(()=>{co(),console.log("\u6253\u5370\u7684------",mi),fo.current=mi==null?void 0:mi.next_student_work_id,Ll(mi.repeat_minus_score)},[mi,oi]),(0,Lt.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",mi.work_score),ks(mi.work_score)},[mi.work_score,ll]),(0,Lt.useEffect)(()=>(Li({type:"globalSetting/footerToggle",payload:!1}),()=>{Li({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Lt.useEffect)(()=>{var $r;if(mi){let Qs=[];($r=mi==null?void 0:mi.target_test_sets)==null||$r.map((Ms,bs)=>{var zs;(zs=Ms==null?void 0:Ms.targets)==null||zs.map((Au,Jo)=>{var Hs;Au.name=Ms==null?void 0:Ms.name,Au.total_target_score=Ms==null?void 0:Ms.total_target_score,Au.actual_target_score=Ms==null?void 0:Ms.actual_target_score,Au.rowSpan=Jo===0?(Hs=Ms==null?void 0:Ms.targets)==null?void 0:Hs.length:0,Au.order=bs+1,Qs.push(Au)})}),Dr(Qs),(0,le.Rm)()&&Li({type:"classroomList/getAssistantPermissions",payload:{course_id:cr.coursesId}})}},[mi]),(0,Lt.useEffect)(()=>{Hn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(mi==null?void 0:mi.students_count)>0&&!pi&&setTimeout(()=>{Na("all")},800)},[mi==null?void 0:mi.homework_common_id,pi]),(0,Lt.useEffect)(()=>{zr(Dn({},dr))},[Cr.pathname]);const Vi=()=>{document.body.scrollIntoView()},Lo=$r=>{Mr.page=$r,nr(Dn({},Mr)),Bs(Mr,Xo)},Bs=($r,Qs)=>ei(void 0,null,function*(){uo(!0);const Ms=yield(0,Vt.ZP)(`/api/student_works/${cr==null?void 0:cr.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Nn(Dn({},$r),{challenge_id:Qs=="all"?null:Qs})});(Ms==null?void 0:Ms.status)===0&&(Pi(Ms==null?void 0:Ms.list),Ci(Ms==null?void 0:Ms.count)),uo(!1)});function Js(){return ei(this,null,function*(){fa.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const ua=()=>{document.querySelectorAll("canvas").forEach($r=>{(!$r.clientWidth||!$r.clientHeight)&&$r.remove()})},Ho=()=>{yi.current.offsetHeight>62e3?Fo(!1):Fo(!0)},Ks=$r=>ei(void 0,null,function*(){const Qs=yield(0,Zr.t1)({homeworkId:$r||cr.homeworkId});Ro(Qs==null?void 0:Qs.data)}),Na=$r=>ei(void 0,null,function*(){var Qs,Ms,bs,zs;let Au=0,Jo;Jo=jt.default.info({width:460,title:ti.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",ti.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ti.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ti.createElement("span",{className:"c-blue"},Au+1),"/",$r!=="all"?1:mi==null?void 0:mi.students_count,ti.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:qt.modal,onOk:()=>{}});const Hs={margin:[0,0],filename:`${mi!=null&&mi.student_id&&(mi==null?void 0:mi.student_id)!="--"?mi==null?void 0:mi.student_id:""}${mi.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},Ss=va.folder(mi==null?void 0:mi.shixun_name);function Qr(ul){return ei(this,null,function*(){yield Ks(ul||fo.current);const Ds=yield Li({type:"shixunHomeworks/getShixunWorkReport",payload:Dn({homeworkId:ul||fo.current},fa.current||{})});fo.current=Ds==null?void 0:Ds.next_student_work_id,Vi(),Au++,setTimeout(()=>ei(this,null,function*(){var Su,zu,Xl,fr;ua();const rl=Ss.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 ou=Uo()();for(let Ya=0;Ya<bl.length;Ya++)yield ou.set(Hs).from(bl[Ya]).toContainer().toCanvas().toPdf().get("pdf").then(Mo=>ei(this,null,function*(){Ya<bl.length-1&&(yield Mo.addPage())}));if(rl.file(`${Ds!=null&&Ds.student_id&&(Ds==null?void 0:Ds.student_id)!="--"?Ds.student_id+"+":""}${Ds==null?void 0:Ds.username}.pdf`,ou.output("blob")),((Su=Ds==null?void 0:Ds.shixun_detail)==null?void 0:Su.length)>0&&((Xl=(zu=Ds==null?void 0:Ds.shixun_detail)==null?void 0:zu.filter(Ya=>{var Mo;return((Mo=Ya==null?void 0:Ya.game_codes)==null?void 0:Mo.length)>0}))==null?void 0:Xl.length)>0){const Ya=rl.folder("\u4EE3\u7801\u6587\u4EF6");(fr=Ds==null?void 0:Ds.shixun_detail)==null||fr.map((Mo,ja)=>{var Ja,su;if(((Ja=Mo==null?void 0:Mo.game_codes)==null?void 0:Ja.length)>0){const $l=Ya.folder(`\u7B2C${ja+1}\u5173-${Mo.subject}-${Mo.id}`);(su=Mo==null?void 0:Mo.game_codes)==null||su.map(Pu=>{$l.file(`${Pu.filename}.txt`,Pu==null?void 0:Pu.content)})}})}Jo.update({content:ti.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ti.createElement("span",{className:"c-blue"},Au),"/",Ds==null?void 0:Ds.students_count,ti.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Au==(Ds==null?void 0:Ds.students_count)?(Jo.destroy(),Tl()):Qr()}),2200)})}if($r!=="all"||(mi==null?void 0:mi.students_count)<2){ua(),Vi();const ul=Po.current.children;let Ds=Uo()();const zu=Ss.folder(`${mi==null?void 0:mi.group_name}`).folder(`${mi!=null&&mi.student_id&&(mi==null?void 0:mi.student_id)!="--"?(mi==null?void 0:mi.student_id)+"+":""}${mi==null?void 0:mi.username}`);for(let Xl=0;Xl<ul.length;Xl++)yield Ds.set(Hs).from(ul[Xl]).toContainer().toCanvas().toPdf().get("pdf").then(fr=>ei(void 0,null,function*(){Xl<ul.length-1&&(yield fr.addPage())}));if(Zo(!1),zu.file(`${mi!=null&&mi.student_id&&(mi==null?void 0:mi.student_id)!="--"?(mi==null?void 0:mi.student_id)+"+":""}${mi.username}.pdf`,Ds.output("blob"),{base64:!1}),((Qs=mi==null?void 0:mi.shixun_detail)==null?void 0:Qs.length)>0&&((bs=(Ms=mi==null?void 0:mi.shixun_detail)==null?void 0:Ms.filter(Xl=>{var fr;return((fr=Xl==null?void 0:Xl.game_codes)==null?void 0:fr.length)>0}))==null?void 0:bs.length)>0){const Xl=zu.folder("\u4EE3\u7801\u6587\u4EF6");(zs=mi==null?void 0:mi.shixun_detail)==null||zs.map((fr,Za)=>{var rl,bl;if(((rl=fr==null?void 0:fr.game_codes)==null?void 0:rl.length)>0){const ou=Xl.folder(`\u7B2C${Za+1}\u5173-${fr.subject}-${fr.id}`);(bl=fr==null?void 0:fr.game_codes)==null||bl.map(Ya=>{ou.file(`${Ya.filename}.txt`,Ya==null?void 0:Ya.content)})}})}Jo.destroy(),Tl();return}else Qr(mi==null?void 0:mi.first_student_work_id)}),Tl=()=>{va.generateAsync({type:"blob"}).then(function($r){console.log(mi,"shixunWorkReport");const Qs=document.createElement("a");Qs.href=window.URL.createObjectURL($r),Qs.download=(mi==null?void 0:mi.shixun_name)+".zip",document.body.appendChild(Qs);const Ms=document.createEvent("MouseEvents");Ms.initEvent("click",!1,!1),Qs.dispatchEvent(Ms),document.body.removeChild(Qs),Gs(new(ee()))}),Fo(!1)};(0,Lt.useEffect)(()=>{Va()},[cr.homeworkId]);const Va=()=>ei(void 0,null,function*(){or(!0),yield Li({type:"shixunHomeworks/getShixunWorkReport",payload:Dn(Dn({},cr),fa.current||{})}),Ks(),(0,le.GJ)()&&Js(),or(!1)}),Ps=[{title:"\u5173\u5361",dataIndex:"name",render:($r,Qs,Ms)=>Ms+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:($r,Qs,Ms)=>ti.createElement("div",null,$r,Qs.complete_status===4&&ti.createElement(Ae.vA,{status:Qs.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:($r,Qs,Ms)=>$r||"- -"},{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:$r=>$r?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:($r,Qs)=>ti.createElement("div",null,ti.createElement("span",{style:{color:parseFloat(Qs.myself_experience)!==parseFloat($r)?"red":"green"}},Qs.myself_experience),"/",$r)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:($r,Qs)=>ti.createElement("div",null,ti.createElement("span",{style:{color:parseFloat(Qs.game_score_full)!==parseFloat($r)?"red":"green"}},$r),"/",Qs.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:($r,Qs)=>xs?ti.createElement(We,{max:Qs.game_score_full,defaultValue:parseFloat($r),onBlur:Ms=>ei(void 0,null,function*(){var bs;if((0,le.Rm)()&&!((bs=Si.AssistantObject.practice)!=null&&bs.can_appraise)){te.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 zs=yield Li({type:"shixunHomeworks/changeScore",payload:{categoryId:cr.homeworkId,type:"report",score:Ms,challenge_id:Qs.challenge_id}});Bs({page:1,page_size:10},"all"),yield Li({type:"shixunHomeworks/getShixunWorkReport",payload:Dn(Dn({},cr),fa.current||{})}),zs.status===0&&te.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):$r}];let si=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:($r,Qs,Ms)=>({children:$r,props:{rowSpan:Qs.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:($r,Qs,Ms)=>({children:$r,props:{rowSpan:Qs.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:($r,Qs,Ms)=>ti.createElement("div",null,ti.createElement("span",{style:{color:parseFloat(Qs.actual_test_score)!==parseFloat($r)?"red":"green"}},Qs.actual_test_score),"/",$r)},{title:"\u6307\u6807\u603B\u5206",render:($r,Qs,Ms)=>({children:ti.createElement("div",null,ti.createElement("span",{style:{color:parseFloat(Qs.actual_target_score)!==parseFloat($r)?"red":"green"}},Qs.actual_target_score),"/",$r),props:{rowSpan:Qs.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Ia=[{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:$r=>ti.createElement("span",null,$r?re()($r).format("YYYY-MM-DD HH:mm"):"--")}],Ac=$r=>{Li({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{$r==="next"?Mt.history.push(`/classrooms/${cr.coursesId}/shixun_homework/${cr.categoryId}/${mi==null?void 0:mi.next_student_work_id}/comment`):Mt.history.push(`/classrooms/${cr.coursesId}/shixun_homework/${cr.categoryId}/${mi==null?void 0:mi.pre_student_work_id}/comment`)},200)},du=$r=>{Ll(""),$r.target.value&&(console.log("\u8FDB\u6765",mi),$r.target.value=$r.target.value>mi.repeat_setting_score?mi.repeat_setting_score:$r.target.value,Ll($r.target.value))},Hh=()=>ei(void 0,null,function*(){const $r=yield(0,Vt.ZP)(`/api/student_works/${mi==null?void 0:mi.work_id}/update_repeat_score`,{method:"put",body:{score:ll}});yield Li({type:"shixunHomeworks/getShixunWorkReport",payload:Dn(Dn({},cr),fa.current||{})}),$r.status===0&&te.ZP.info("\u64CD\u4F5C\u6210\u529F")});return ti.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},ti.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},ti.createElement(Pt.Z,{loading:tn["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},ti.createElement("div",{className:"edu-container"},mi.course_id&&ti.createElement("section",{className:"animated fadeIn"},ti.createElement("aside",{className:""},mi.category&&ti.createElement(oe.Z,{separator:">"},ti.createElement(oe.Z.Item,null,ti.createElement(Mt.Link,{to:`/classrooms/${mi.course_id}/shixun_homework`},mi.course_name)),ti.createElement(oe.Z.Item,null,ti.createElement(Mt.Link,{to:`/classrooms/${mi.course_id}/shixun_homework/${mi.category.main?"":mi.category.category_id}`},mi.category.category_name)),ti.createElement(oe.Z.Item,null,ti.createElement(Mt.Link,{to:`/classrooms/${mi.course_id}/shixun_homework/${mi.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),ti.createElement(oe.Z.Item,null,mi.username))),ti.createElement("aside",{className:[qt.title1,"mt20"].join(" ")},ti.createElement(Kt.Z,{align:"middle"},ti.createElement($t.Z,{flex:1},ti.createElement(Mt.Link,{to:`/classrooms/${mi.course_id}/shixun_homework/${mi.homework_common_id}/detail`},ti.createElement(xt.Z,{className:"font16 c-black"})),ti.createElement("strong",{className:"font20 ml5"},mi==null?void 0:mi.homework_name),ti.createElement(Ae.VV,{temporary:!0,status:mi.homework_status})),ti.createElement($t.Z,{className:qt.title1_right},mi.view_tpi&&ti.createElement(Ct.ZP,{onClick:()=>{var $r,Qs;(0,Ae.xg)(`/tasks/${mi==null?void 0:mi.course_id}/${mi==null?void 0:mi.homework_common_id}/${(Qs=($r=mi==null?void 0:mi.shixun_detail)==null?void 0:$r[0])==null?void 0:Qs.game_identifier}`)}},ti.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,le.GJ)()&&mi.homework_end===!1&&!!mi.myshixun_id&&ti.createElement(Ct.ZP,{className:"ml10",onClick:()=>ei(void 0,null,function*(){yield Li({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:mi.myshixun_identifier},homework_common_id:dr.categoryId}})})},ti.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),ti.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var $r;if((0,le.Rm)()&&!(($r=Si.AssistantObject.practice)!=null&&$r.can_download)){te.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}Na("")},loading:ws},ti.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,le.GJ)()&&(mi==null?void 0:mi.students_count)>1&&ti.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var $r;if((0,le.Rm)()&&!(($r=Si.AssistantObject.practice)!=null&&$r.can_download)){te.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:ti.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:ti.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:()=>{Na("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Xt.jj)({categoryId:cr.categoryId,coursesId:cr.coursesId},"shixun_report")}}})}},ti.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),ti.createElement("aside",{className:"mt30 relative"})),ti.createElement("aside",{className:"edu-container bg-white",ref:yi},ti.createElement("div",{id:"export-all",ref:Po},ti.createElement("div",{id:"export-all-1"},ti.createElement("div",{className:qt.title},ti.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),ti.createElement("div",null,(0,le.GJ)()&&ti.createElement(Ct.ZP,{className:"mr20",type:"primary",onClick:()=>{Li({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:mi.user_id,data:Dn({},mi)},fn:()=>Bs({page:1,page_size:10},"all")}})}},ti.createElement(Nt.Z,null),mi.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),ti.createElement(tt.Z,{style:{marginTop:0}}),ti.createElement(Kt.Z,{className:"pl30 pr30"},ti.createElement($t.Z,null,ti.createElement("img",{className:qt.userPic,src:`${se.Z.IMG_SERVER}/images/${mi.image_url}`,alt:mi.username})),ti.createElement($t.Z,null,ti.createElement("span",{className:"font16 ml40"},mi.username),ti.createElement(Ae.vA,{status:mi.compelete_status}),ti.createElement("ul",{className:qt.userInfo},ti.createElement("li",null,"\u5B66\u53F7\uFF1A",mi.student_id||"--"),ti.createElement("li",null,"\u5206\u73ED\uFF1A",mi.group_name||"--"),ti.createElement("br",null),ti.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",ti.createElement("span",{className:"c-red"},mi.complete_count),"/",ti.createElement("span",{className:"c-red"},mi.challenges_count)),ti.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",ti.createElement("span",{className:"c-red"},mi.current_complete_count||"-"),"/",ti.createElement("span",{className:"c-red"},mi.challenges_count)),ti.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",mi&&mi.efficiency===null?"--":mi&&mi.efficiency),ti.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",mi&&mi.max_efficiency===null?"--":mi&&mi.max_efficiency))),ti.createElement("ul",{className:[qt.listItem,"mt10"].join(" ")},ti.createElement("li",null,ti.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),ti.createElement("div",{className:"c-light-black mt20"},mi&&mi.passed_time===null||mi&&mi.passed_time==="--"?"--":re()(mi&&mi.passed_time).format("YYYY-MM-DD HH:mm"))),ti.createElement("li",null,ti.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",ti.createElement("i",{onClick:$r=>{$r.stopPropagation(),$r.preventDefault(),ls(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ti.createElement("div",{className:"c-light-black mt20"},mi==null?void 0:mi.human_training_time_rules)),ti.createElement("li",null,ti.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",ti.createElement("i",{onClick:$r=>{$r.stopPropagation(),$r.preventDefault(),Ie(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ti.createElement("div",{className:"c-light-black mt20"},mi.time_consuming)),ti.createElement("li",null,ti.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),ti.createElement("div",{className:"mt20"},mi.evaluate_count)),(mi==null?void 0:mi.eff_score_full)&&ti.createElement(ti.Fragment,null,ti.createElement("li",null,ti.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),ti.createElement("div",{className:"mt20"},ti.createElement("span",{className:"c-orange"},mi.challenge_score),"/",ti.createElement("span",{className:"c-light-black"},mi.challenge_score_full))),ti.createElement("li",null,ti.createElement("strong",null,"\u6548\u7387\u5206"),ti.createElement("div",{className:"mt20"},ti.createElement("span",{className:"c-orange"},mi.eff_score),"/",ti.createElement("span",{className:"c-light-black"},mi.eff_score_full)))),(mi==null?void 0:mi.have_repeat)&&(mi==null?void 0:mi.repeat_minus_score)!==0&&ti.createElement("li",{style:{position:"relative"}},ti.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ti.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ti.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},mi!=null&&mi.review_rate?ti.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(mi!=null&&mi.review_id&&fl)localStorage.setItem("studentDetial",window.location.pathname),Mt.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${cr.categoryId}/review_detail/${mi==null?void 0:mi.review_id}`});else return}},mi.review_rate.toFixed(1),"%"):ti.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),fl?ti.createElement("div",{className:"mt20"},ti.createElement(lt.default,{style:{width:"45px",height:"22px"},value:ll,onChange:$r=>{du($r)},onBlur:Hh,disabled:ns})," / ",mi==null?void 0:mi.repeat_setting_score):ti.createElement("div",{className:"mt20"},mi==null?void 0:mi.repeat_minus_score," / ",mi==null?void 0:mi.repeat_setting_score)),console.log("sssssssssssssssssssssss",mi==null?void 0:mi.have_repeat,mi==null?void 0:mi.repeat_minus_score),(mi==null?void 0:mi.have_repeat)&&(mi==null?void 0:mi.repeat_minus_score)===0&&ti.createElement("li",null,ti.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ti.createElement("div",{className:"mt20"}," - -")),!(mi!=null&&mi.have_repeat)&&ti.createElement("li",null,ti.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ti.createElement("div",{className:"mt20"}," - -")),ti.createElement("li",null,ti.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),ti.createElement("div",{className:"mt20"},ti.createElement("span",null,mi.late_penalty||"- -"))),ti.createElement("li",null,ti.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),ti.createElement("div",{className:"mt20"},ti.createElement("span",{className:"c-orange"},xo),"/",ti.createElement("span",{className:"c-light-black"},mi.all_work_score))),ti.createElement("li",null,ti.createElement("strong",null,"\u603B\u8BC4"),ti.createElement("div",{className:"mt20"},ti.createElement("span",{className:"c-orange"},mi.overall_appraisal))))),ti.createElement(tt.Z,{style:{margin:0}}),(mi.work_comment_hidden||mi.work_comment)&&ti.createElement("div",null,ti.createElement(Kt.Z,{align:"middle"},ti.createElement($t.Z,{flex:1},ti.createElement("h1",{className:qt.title},"\u70B9\u8BC4\u5185\u5BB9")),ti.createElement($t.Z,{className:"pr30"},(0,le.GJ)()&&ti.createElement(Ct.ZP,{onClick:()=>ei(void 0,null,function*(){jt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:ti.createElement(Ut.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return ei(this,null,function*(){(yield(0,Zr.gZ)({comment_id:mi.comment_id,homeworkId:cr.homeworkId})).status===0&&(te.ZP.success("\u5220\u9664\u6210\u529F"),Li({type:"shixunHomeworks/getShixunWorkReport",payload:Dn(Dn({},cr),fa.current||{})}))})}})})},ti.createElement(Gt.Z,null),"\u5220\u9664"))),ti.createElement(tt.Z,{style:{margin:0}}),mi.work_comment&&ti.createElement("aside",{className:"pl30 pr30 mt20"},ti.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ti.createElement("br",null),ti.createElement(Lr.Z,{value:mi.work_comment})),mi.work_comment_hidden&&ti.createElement("aside",{className:"pl30 pr30 mt20"},ti.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ti.createElement("br",null),ti.createElement(Lr.Z,{value:mi.work_comment_hidden}))),(mi==null?void 0:mi.action_analysis)&&ti.createElement(yo,{detailData:mi}),ti.createElement("div",{className:qt.score},ti.createElement("h1",{className:qt.title},"\u9636\u6BB5\u6210\u7EE9"),(mi==null?void 0:mi.adjust_review_score_count)>0&&(0,le.GJ)()&&ti.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{oa(!0),Bs({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",mi==null?void 0:mi.adjust_review_score_count,"\u6B21\uFF09")),ti.createElement("aside",{className:"pl30 pr30"},ti.createElement(rt.default,{dataSource:mi.stage_list,rowKey:$r=>$r==null?void 0:$r.challenge_id,pagination:!1,columns:Ps})),((ui=mi==null?void 0:mi.target_test_sets)==null?void 0:ui.length)>0&&ti.createElement("div",null,ti.createElement("h1",{className:qt.title},"\u6307\u6807\u6210\u7EE9"),ti.createElement("aside",{className:"pl30 pr30"},ti.createElement(rt.default,{dataSource:wo,rowKey:$r=>$r==null?void 0:$r.challenge_id,pagination:!1,bordered:!0,columns:si}))),(mi==null?void 0:mi.work_description)&&ti.createElement(ti.Fragment,null,ti.createElement("h1",{className:qt.title},"\u4E2A\u4EBA\u603B\u7ED3"),ti.createElement("aside",{className:"pl30 pr30"},ti.createElement(Lr.Z,{value:mi==null?void 0:mi.work_description}))),ti.createElement("h1",{className:qt.title},"\u56FE\u5F62\u7EDF\u8BA1"),ti.createElement(Ge,{data:no}),ti.createElement("h1",{className:qt.title},"\u5B9E\u8BAD\u8BE6\u60C5")),ti.createElement(sn,{autoHeight:to}))),(0,le.GJ)()&&ti.createElement("aside",{className:`${qt.footerBar} ${ws?qt.footerBarStatic:""}`},ti.createElement("aside",{className:"edu-container"},ti.createElement(Kt.Z,{align:"middle"},ti.createElement($t.Z,{flex:"1"},ti.createElement(Mt.Link,{className:qt.exitComment,to:`/classrooms/${cr.coursesId}/shixun_homework/${cr.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),ti.createElement($t.Z,{flex:"1",className:"tr"},ti.createElement(Ct.ZP,{type:"default",disabled:!(mi!=null&&mi.pre_student_work_id),onClick:()=>Ac()},"\u4E0A\u4E00\u4E2A"),ti.createElement(Ct.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(mi!=null&&mi.next_student_work_id),onClick:()=>Ac("next")},"\u4E0B\u4E00\u4E2A"),(0,le.GJ)()&&ti.createElement(Ct.ZP,{type:"primary",onClick:()=>ei(void 0,null,function*(){Li({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:mi.user_id,data:Dn({},mi)},fn:()=>Bs({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),ti.createElement(Yr,null),ti.createElement(Jr.Z,null),ti.createElement(jt.default,{open:As,width:860,centered:!0,onCancel:()=>{ls(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},ti.createElement("div",{style:{color:"#333333",fontWeight:400}},ti.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),ti.createElement("br",null),ti.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"),ti.createElement("br",null),ti.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"),ti.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 "),ti.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")),ti.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ti.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),ti.createElement("br",null),ti.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 "),ti.createElement("br",null),ti.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"),ti.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 "),ti.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"),ti.createElement("br",null),ti.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")),ti.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ti.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),ti.createElement("br",null),ti.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")),ti.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ti.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),ti.createElement("br",null),ti.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"))),ti.createElement(jt.default,{open:wr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Ie(!1)},width:600},ti.createElement("div",{style:{fontWeight:400,color:"#333333"}},ti.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ti.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"),ti.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ti.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"),ti.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ti.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"))),ti.createElement(jt.default,{open:cs,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{ra("all"),oa(!1)},destroyOnClose:!0,width:900},ti.createElement("div",{style:{fontWeight:400,color:"#333333"}},ti.createElement("div",null,ti.createElement("span",null,"\u5173\u5361\uFF1A"),ti.createElement(ht.default,{style:{width:300},value:Xo,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:$r=>ei(void 0,null,function*(){ra($r),Bs({page:1,page_size:10},$r)})},ti.createElement(ht.default.Option,{value:"all"}," \u5168\u90E8 "),(Sr=mi==null?void 0:mi.stage_list)==null?void 0:Sr.map(($r,Qs)=>ti.createElement(ht.default.Option,{key:Qs,value:$r==null?void 0:$r.challenge_id},"\u7B2C",(0,Ae.EM)(Qs+1),"\u5173")))),ti.createElement("div",{className:"mt20"},ti.createElement(rt.default,{dataSource:Br,rowKey:$r=>$r==null?void 0:$r.id,pagination:!1,columns:Ia,loading:Hr})),ti.createElement("div",{className:qt.footer},ti.createElement("div",null,ti.createElement("span",{style:{color:"#656F87"}},"\u5171",ti.createElement("span",{className:"c-light-primary"},bo),"\u6761\u6570\u636E")),ti.createElement(dt.Z,{defaultCurrent:1,defaultPageSize:10,current:(Mr==null?void 0:Mr.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:bo,onChange:Lo})))))};var dn=(0,Mt.connect)(({shixunHomeworks:Fe,classroomList:wn,loading:Hn,globalSetting:Si,user:Di})=>({shixunHomeworks:Fe,classroomList:wn,globalSetting:Si,loading:Hn.effects,user:Di}))(xi)},9491:function(hi,Cn,Ft){"use strict";var Lt=Ft(43418),ce=Ft(8591),re=Ft(7660),ke=Ft(24459),ee=Ft(73898),Vt=Ft(59301),Mt=(te,Pt,oe)=>new Promise((Kt,$t)=>{var Ct=lt=>{try{tt(oe.next(lt))}catch(rt){$t(rt)}},et=lt=>{try{tt(oe.throw(lt))}catch(rt){$t(rt)}},tt=lt=>lt.done?Kt(lt.value):Promise.resolve(lt.value).then(Ct,et);tt((oe=oe.apply(te,Pt)).next())});const jt=({shixunHomeworks:te,classroomList:Pt,dispatch:oe})=>{const Kt=(0,ke.useParams)();return Vt.createElement(Lt.default,{centered:!0,title:"\u63D0\u793A",open:te.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Mt(void 0,null,function*(){var $t,Ct,et,tt;if((0,ee.Rm)()&&!(($t=Pt.AssistantObject.practice)!=null&&$t.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/${te.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Kt.coursesId,homework_common_id:te.actionTabs.homework_common_id}});if(lt.shixun_identifier){ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),oe({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}`===Kt.categoryId))==null?void 0:et.id;if((0,ee.Rm)()&&!((tt=Pt.AssistantObject.practice)!=null&&tt.can_view))return;ke.history.replace(`/classrooms/${Kt.coursesId}/shixun_homework/${Kt.categoryId}/${rt}/comment`)}}),onCancel:()=>{oe({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?"))};Cn.Z=(0,ke.connect)(({shixunHomeworks:te,classroomList:Pt})=>({shixunHomeworks:te,classroomList:Pt}))(jt)},63529:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{AD:function(){return Ge},D9:function(){return ne},Hp:function(){return Ut},IM:function(){return bn},Iy:function(){return se},KM:function(){return Oi},MJ:function(){return Gt},Ne:function(){return Ce},ON:function(){return fi},Uj:function(){return en},VY:function(){return Mn},YO:function(){return Bi},YX:function(){return Kn},Zn:function(){return et},_g:function(){return dt},_k:function(){return Re},c6:function(){return ze},cr:function(){return tt},eV:function(){return Wt},fi:function(){return lt},gh:function(){return Pe},hS:function(){return Ln},iA:function(){return rt},j6:function(){return xt},je:function(){return We},jj:function(){return Nt},kS:function(){return Vn},o6:function(){return qt},pO:function(){return Fi},rQ:function(){return _e},sA:function(){return Ae},xm:function(){return ve},xo:function(){return Ze},y8:function(){return Ne},yd:function(){return ht}});var Lt=Ft(94811),ce=Ft(24459),re=Ft(88230),ke=Ft(8591),ee=Ft(38446),Vt=Object.defineProperty,Mt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,Pt=(Ot,Tt,vt)=>Tt in Ot?Vt(Ot,Tt,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Ot[Tt]=vt,oe=(Ot,Tt)=>{for(var vt in Tt||(Tt={}))jt.call(Tt,vt)&&Pt(Ot,vt,Tt[vt]);if(Mt)for(var vt of Mt(Tt))te.call(Tt,vt)&&Pt(Ot,vt,Tt[vt]);return Ot},Kt=(Ot,Tt,vt)=>new Promise((ft,gt)=>{var At=ae=>{try{xe(vt.next(ae))}catch(ye){gt(ye)}},ue=ae=>{try{xe(vt.throw(ae))}catch(ye){gt(ye)}},xe=ae=>ae.done?ft(ae.value):Promise.resolve(ae.value).then(At,ue);xe((vt=vt.apply(Ot,Tt)).next())});const $t=()=>{(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=>Kt(void 0,null,function*(){$t(),(yield(0,Lt.YR)(oe({},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=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.yS)(oe({},Ot));if(Tt.status===0)ke.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=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.W0)(oe({},Ot));if(Tt.status===0)ke.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=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.Nl)(oe({},Ot));if(Tt.status===0)ke.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=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.IU)(oe({},Ot));if(Tt.status===0)ke.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=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.td)(oe({},Ot));if(Tt.status===0)ke.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=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.QX)(oe({},Ot));if(Tt.status===0)ke.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)=>Kt(void 0,null,function*(){const vt=yield(0,Lt.o_)(oe({},Ot));vt.status===0?(ke.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)=>Kt(void 0,null,function*(){const vt=yield(0,Lt.ZL)(oe({},Ot));vt.status===0?(ke.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}`))}),Gt=(Ot,Tt)=>Kt(void 0,null,function*(){const vt=yield(0,Lt.vV)(oe({},Ot));vt.status===0?(ke.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}`))}),se=(Ot,Tt)=>Kt(void 0,null,function*(){const vt=yield(0,Lt.aP)(oe({},Ot));vt.status===0?(ke.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}`))}),le=Ot=>Kt(void 0,null,function*(){$t(),(yield exportCourseWorkListAppendix(oe({},Ot))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${Ot.categoryId}/works_list.zip`,query:Ot}))),Ct()}),Ae=Ot=>Kt(void 0,null,function*(){$t(),yield(0,re.QH)("",ee.Z.API_SERVER+`/api/polls/${Ot.categoryId}/commit_result.xlsx`),Ct()}),Pe=Ot=>Kt(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}))}),qt=Ot=>Kt(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}))}),ze=Ot=>Kt(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=>Kt(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}))}),Ge=Ot=>Kt(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=>Kt(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=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:Ot}))}),We=Ot=>Kt(void 0,null,function*(){const Tt=yield(0,Lt.Uy)(oe({},Ot));Tt.status===0?(ke.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`))}),Re=Ot=>Kt(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=>Kt(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=>Kt(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=>Kt(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=>Kt(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=>Kt(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}))}),Ze=Ot=>Kt(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}))}),Mn=Ot=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:Ot}))}),Vn=Ot=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Ot}))}),fi=Ot=>Kt(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=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Ot.categoryId}.json`,query:Ot}))}),Bi=Ot=>Kt(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}))}),en=Ot=>Kt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/paths/get_task_pass.json",query:Ot}))}),Fi=(Ot,Tt)=>Kt(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}))}),Oi=Ot=>Kt(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,Cn,Ft){"use strict";Ft.d(Cn,{U:function(){return te}});var Lt=Ft(59301),ce=Object.defineProperty,re=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Vt=(Pt,oe,Kt)=>oe in Pt?ce(Pt,oe,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):Pt[oe]=Kt,Mt=(Pt,oe)=>{for(var Kt in oe||(oe={}))ke.call(oe,Kt)&&Vt(Pt,Kt,oe[Kt]);if(re)for(var Kt of re(oe))ee.call(oe,Kt)&&Vt(Pt,Kt,oe[Kt]);return Pt},jt=(Pt,oe,Kt)=>new Promise(($t,Ct)=>{var et=rt=>{try{lt(Kt.next(rt))}catch(ht){Ct(ht)}},tt=rt=>{try{lt(Kt.throw(rt))}catch(ht){Ct(ht)}},lt=rt=>rt.done?$t(rt.value):Promise.resolve(rt.value).then(et,tt);lt((Kt=Kt.apply(Pt,oe)).next())});function te(Pt,oe){const[Kt,$t]=(0,Lt.useState)(oe),[Ct,et]=(0,Lt.useState)(!1),[tt,lt]=(0,Lt.useState)();return[Kt,Ct,(ht,dt=!1)=>jt(this,null,function*(){const xt=dt?oe:Mt(Mt({},Kt),ht);et(!0),$t(xt);const Nt=yield Pt(xt);return et(!1),lt(Nt),Nt}),tt,lt]}},85187:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{AL:function(){return xt},Iy:function(){return oe},Qv:function(){return Ct},ez:function(){return dt},jb:function(){return Kt}});var Lt=Ft(32834),ce=Ft.n(Lt),re=Ft(11690),ke=Ft.n(re);let ee=1;function Vt(le,Ae){const Pe=le.match(/^(\s+)(?:```)/);if(Pe===null)return Ae;const qt=Pe[1];return Ae.split(`
`).map(ze=>{const Wt=ze.match(/^\s+/);if(Wt===null)return ze;const[Ge]=Wt;return Ge.length>=qt.length?ze.slice(qt.length):ze}).join(`
`)}let Mt=[],jt=["<ul>"];const te=new(ce()).Renderer,Pt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function oe(){Mt.length=0,jt=["<ul>"]}const Kt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function $t(le,Ae,Pe,qt){if(Ae>=le.length||le[Ae].level<=Pe)return Ae;var ze=le[Ae];qt.push("<li><a href='#"+ee+ze.anchor+"'>"+ze.text+"</a>"),Ae++;var Wt=[];return Ae=$t(le,Ae,ze.level,Wt),Wt.length>0&&(qt.push("<ul>"),Wt.forEach(function(Ge){qt.push(Ge)}),qt.push("</ul>")),qt.push("</li>"),Ae=$t(le,Ae,Pe,qt),Ae}function Ct(){return $t(Mt,0,0,jt),jt.push("</ul>"),jt.join("")}const et={heading(le){const Ae=Pt.exec(le);if(ee+=1,Ae)return{type:"heading",raw:Ae[0],depth:Ae[1].length,text:Ae[2]}},fences(le){const Ae=this.rules.block.fences.exec(le);if(Ae){const Pe=Ae[0];let qt=Vt(Pe,Ae[3]||"");const ze=Ae[2]?Ae[2].trim():Ae[2];if(["latex","katex","math"].indexOf(ze)>=0){const Wt=rt(),Ge=qt;qt=Wt,ht[Wt]={type:"block",expression:Ge}}return{type:"code",raw:Pe,lang:ze,text:qt}}}},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(le){return le=le.replace(tt,(Ae,Pe)=>{const qt=rt();return ht[qt]={type:"inline",expression:Pe},qt}),le}const Ut=te.listitem;te.listitem=function(le){return Ut(Nt(le))};const Gt=te.paragraph;te.paragraph=function(le){return Gt(Nt(le))};const se=te.tablecell;te.tablecell=function(le,Ae){return se(Nt(le),Ae)},te.code=function(le,Ae,Pe){const qt=(Ae||"").match(/\S*/)[0];return qt?["latex","katex","math"].indexOf(qt)>=0?`<p class='editormd-tex'>${le}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ae}">${Pe?le:(0,re.escape)(le,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Pe?le:(0,re.escape)(le,!0))+"</code></pre>"},te.heading=function(le,Ae,Pe){let qt=this.options.headerPrefix+Pe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Mt.push({anchor:qt,level:Ae,text:le}),"<h"+Ae+' id="'+ee+qt+'">'+le+"</h"+Ae+">"},ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),ce().use({tokenizer:et,renderer:te}),Cn.ZP=ce()},50371:function(hi,Cn){"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(ke=>{const ee=re[ke];ee!==void 0&&(Lt[ke]=ee)})}return Lt}Cn.Z=Ft},13845:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{F:function(){return Lt},Z:function(){return ce}});function Lt(re){return re!=null&&re===re.window}function ce(re,ke){var ee,Vt;if(typeof window=="undefined")return 0;const Mt=ke?"scrollTop":"scrollLeft";let jt=0;return Lt(re)?jt=re[ke?"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,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Lt=Ft(59301);function ce(){const[,re]=Lt.useReducer(ke=>ke+1,0);return re}},68031:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ke}});var Lt=Ft(16089);function ce(ee,Vt,Mt,jt){const te=Mt-Vt;return ee/=jt/2,ee<1?te/2*ee*ee*ee+Vt:te/2*((ee-=2)*ee*ee+2)+Vt}var re=Ft(13845);function ke(ee){let Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Mt=()=>window,callback:jt,duration:te=450}=Vt,Pt=Mt(),oe=(0,re.Z)(Pt,!0),Kt=Date.now(),$t=()=>{const et=Date.now()-Kt,tt=ce(et>te?te:et,oe,ee,te);(0,re.F)(Pt)?Pt.scrollTo(window.pageXOffset,tt):Pt instanceof Document||Pt.constructor.name==="HTMLDocument"?Pt.documentElement.scrollTop=tt:Pt.scrollTop=tt,et<te?(0,Lt.Z)($t):typeof jt=="function"&&jt()};(0,Lt.Z)($t)}},66104:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Ge}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(11592),ke=Ft(26112),ee=Ft(59301),Vt=Ft(92343),Mt=Ft(36355),jt=Ft(84105),te=Ft(91857);const Pt=_e=>{let{children:Ne}=_e;const{getPrefixCls:We}=ee.useContext(Mt.E_),Re=We("breadcrumb");return ee.createElement("li",{className:`${Re}-separator`,"aria-hidden":"true"},Ne===""?Ne:Ne||"/")};Pt.__ANT_BREADCRUMB_SEPARATOR=!0;var oe=Pt,Kt=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};function $t(_e,Ne){if(_e.title===void 0||_e.title===null)return null;const We=Object.keys(Ne).join("|");return typeof _e.title=="object"?_e.title:String(_e.title).replace(new RegExp(`:(${We})`,"g"),(Re,ve)=>Ne[ve]||Re)}function Ct(_e,Ne,We,Re){if(We==null)return null;const{className:ve,onClick:ne}=Ne,Ce=Kt(Ne,["className","onClick"]),bn=Object.assign(Object.assign({},(0,ke.Z)(Ce,{data:!0,aria:!0})),{onClick:ne});return Re!==void 0?ee.createElement("a",Object.assign({},bn,{className:ce()(`${_e}-link`,ve),href:Re}),We):ee.createElement("span",Object.assign({},bn,{className:ce()(`${_e}-link`,ve)}),We)}function et(_e,Ne){return(Re,ve,ne,Ce,bn)=>{if(Ne)return Ne(Re,ve,ne,Ce);const Ln=$t(Re,ve);return Ct(_e,Re,Ln,bn)}}var tt=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};const lt=_e=>{const{prefixCls:Ne,separator:We="/",children:Re,menu:ve,overlay:ne,dropdownProps:Ce,href:bn}=_e,Ze=(Mn=>{if(ve||ne){const Vn=Object.assign({},Ce);if(ve){const fi=ve||{},{items:Kn}=fi,Bi=tt(fi,["items"]);Vn.menu=Object.assign(Object.assign({},Bi),{items:Kn==null?void 0:Kn.map((en,Fi)=>{var{key:Oi,title:Ot,label:Tt,path:vt}=en,ft=tt(en,["key","title","label","path"]);let gt=Tt!=null?Tt:Ot;return vt&&(gt=ee.createElement("a",{href:`${bn}${vt}`},gt)),Object.assign(Object.assign({},ft),{key:Oi!=null?Oi:Fi,label:gt})})})}else ne&&(Vn.overlay=ne);return ee.createElement(te.Z,Object.assign({placement:"bottom"},Vn),ee.createElement("span",{className:`${Ne}-overlay-link`},Mn,ee.createElement(jt.Z,null)))}return Mn})(Re);return Ze!=null?ee.createElement(ee.Fragment,null,ee.createElement("li",null,Ze),We&&ee.createElement(oe,null,We)):null},rt=_e=>{const{prefixCls:Ne,children:We,href:Re}=_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,We,Re))};rt.__ANT_BREADCRUMB_ITEM=!0;var ht=rt,dt=Ft(17313),xt=Ft(83116),Nt=Ft(37613);const Ut=_e=>{const{componentCls:Ne,iconCls:We}=_e;return{[Ne]:Object.assign(Object.assign({},(0,dt.Wf)(_e)),{color:_e.itemColor,fontSize:_e.fontSize,[We]:{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`]:{[`
> ${We} + span,
> ${We} + 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,[`> ${We}`]:{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 Gt=(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})),se=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};function le(_e){const{breadcrumbName:Ne,children:We}=_e,Re=se(_e,["breadcrumbName","children"]),ve=Object.assign({title:Ne},Re);return We&&(ve.menu={items:We.map(ne=>{var{breadcrumbName:Ce}=ne,bn=se(ne,["breadcrumbName"]);return Object.assign(Object.assign({},bn),{title:Ce})})}),ve}function Ae(_e,Ne){return(0,ee.useMemo)(()=>_e||(Ne?Ne.map(le):null),[_e,Ne])}var Pe=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};const qt=(_e,Ne)=>{if(Ne===void 0)return Ne;let We=(Ne||"").replace(/^\//,"");return Object.keys(_e).forEach(Re=>{We=We.replace(`:${Re}`,_e[Re])}),We},ze=_e=>{const{prefixCls:Ne,separator:We="/",style:Re,className:ve,rootClassName:ne,routes:Ce,items:bn,children:Ln,itemRender:Ze,params:Mn={}}=_e,Vn=Pe(_e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:fi,direction:Kn,breadcrumb:Bi}=ee.useContext(Mt.E_);let en;const Fi=fi("breadcrumb",Ne),[Oi,Ot]=Gt(Fi),Tt=Ae(bn,Ce),vt=et(Fi,Ze);if(Tt&&Tt.length>0){const At=[],ue=bn||Ce;en=Tt.map((xe,ae)=>{const{path:ye,key:Te,type:De,menu:Me,overlay:sn,onClick:Gn,className:an,separator:un,dropdownProps:Bn}=xe,ai=qt(Mn,ye);ai!==void 0&&At.push(ai);const On=Te!=null?Te:ae;if(De==="separator")return ee.createElement(oe,{key:On},un);const ji={},er=ae===Tt.length-1;Me?ji.menu=Me:sn&&(ji.overlay=sn);let{href:Ji}=xe;return At.length&&ai!==void 0&&(Ji=`#/${At.join("/")}`),ee.createElement(lt,Object.assign({key:On},ji,(0,ke.Z)(xe,{data:!0,aria:!0}),{className:an,dropdownProps:Bn,href:Ji,separator:er?"":We,onClick:Gn,prefixCls:Fi}),vt(xe,Mn,ue,At,Ji))})}else if(Ln){const At=(0,re.Z)(Ln).length;en=(0,re.Z)(Ln).map((ue,xe)=>{if(!ue)return ue;const ae=xe===At-1;return(0,Vt.Tm)(ue,{separator:ae?"":We,key:xe})})}const ft=ce()(Fi,Bi==null?void 0:Bi.className,{[`${Fi}-rtl`]:Kn==="rtl"},ve,ne,Ot),gt=Object.assign(Object.assign({},Bi==null?void 0:Bi.style),Re);return Oi(ee.createElement("nav",Object.assign({className:ft,style:gt},Vn),ee.createElement("ol",null,en)))};ze.Item=ht,ze.Separator=oe;var Wt=ze,Ge=Wt},24905:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Gt}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(5630),ke=Ft(59301),ee=Ft(36355),Vt=Ft(1684),Mt=Ft(32441),te=ke.createContext(null),Pt=Ft(98447),oe=Ft(14088),Kt=Ft(4572),$t=function(se,le){var Ae={};for(var Pe in se)Object.prototype.hasOwnProperty.call(se,Pe)&&le.indexOf(Pe)<0&&(Ae[Pe]=se[Pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Pe=Object.getOwnPropertySymbols(se);qt<Pe.length;qt++)le.indexOf(Pe[qt])<0&&Object.prototype.propertyIsEnumerable.call(se,Pe[qt])&&(Ae[Pe[qt]]=se[Pe[qt]]);return Ae};const Ct=(se,le)=>{var Ae;const{prefixCls:Pe,className:qt,rootClassName:ze,children:Wt,indeterminate:Ge=!1,style:_e,onMouseEnter:Ne,onMouseLeave:We,skipGroup:Re=!1,disabled:ve}=se,ne=$t(se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ce,direction:bn,checkbox:Ln}=ke.useContext(ee.E_),Ze=ke.useContext(te),{isFormItemInput:Mn}=ke.useContext(Mt.aM),Vn=ke.useContext(Vt.Z),fi=(Ae=(Ze==null?void 0:Ze.disabled)||ve)!==null&&Ae!==void 0?Ae:Vn,Kn=ke.useRef(ne.value);ke.useEffect(()=>{Ze==null||Ze.registerValue(ne.value)},[]),ke.useEffect(()=>{if(!Re)return ne.value!==Kn.current&&(Ze==null||Ze.cancelValue(Kn.current),Ze==null||Ze.registerValue(ne.value),Kn.current=ne.value),()=>Ze==null?void 0:Ze.cancelValue(ne.value)},[ne.value]);const Bi=Ce("checkbox",Pe),[en,Fi]=(0,Pt.ZP)(Bi),Oi=Object.assign({},ne);Ze&&!Re&&(Oi.onChange=function(){ne.onChange&&ne.onChange.apply(ne,arguments),Ze.toggleOption&&Ze.toggleOption({label:Wt,value:ne.value})},Oi.name=Ze.name,Oi.checked=Ze.value.includes(ne.value));const Ot=ce()(`${Bi}-wrapper`,{[`${Bi}-rtl`]:bn==="rtl",[`${Bi}-wrapper-checked`]:Oi.checked,[`${Bi}-wrapper-disabled`]:fi,[`${Bi}-wrapper-in-form-item`]:Mn},Ln==null?void 0:Ln.className,qt,ze,Fi),Tt=ce()({[`${Bi}-indeterminate`]:Ge},Kt.A,Fi),vt=Ge?"mixed":void 0;return en(ke.createElement(oe.Z,{component:"Checkbox",disabled:fi},ke.createElement("label",{className:Ot,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),_e),onMouseEnter:Ne,onMouseLeave:We},ke.createElement(re.Z,Object.assign({"aria-checked":vt},Oi,{prefixCls:Bi,className:Tt,disabled:fi,ref:le})),Wt!==void 0&&ke.createElement("span",null,Wt))))};var tt=ke.forwardRef(Ct),lt=Ft(26407),rt=Ft(2738),ht=function(se,le){var Ae={};for(var Pe in se)Object.prototype.hasOwnProperty.call(se,Pe)&&le.indexOf(Pe)<0&&(Ae[Pe]=se[Pe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Pe=Object.getOwnPropertySymbols(se);qt<Pe.length;qt++)le.indexOf(Pe[qt])<0&&Object.prototype.propertyIsEnumerable.call(se,Pe[qt])&&(Ae[Pe[qt]]=se[Pe[qt]]);return Ae};const dt=(se,le)=>{const{defaultValue:Ae,children:Pe,options:qt=[],prefixCls:ze,className:Wt,rootClassName:Ge,style:_e,onChange:Ne}=se,We=ht(se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Re,direction:ve}=ke.useContext(ee.E_),[ne,Ce]=ke.useState(We.value||Ae||[]),[bn,Ln]=ke.useState([]);ke.useEffect(()=>{"value"in We&&Ce(We.value||[])},[We.value]);const Ze=ke.useMemo(()=>qt.map(ft=>typeof ft=="string"||typeof ft=="number"?{label:ft,value:ft}:ft),[qt]),Mn=ft=>{Ln(gt=>gt.filter(At=>At!==ft))},Vn=ft=>{Ln(gt=>[].concat((0,lt.Z)(gt),[ft]))},fi=ft=>{const gt=ne.indexOf(ft.value),At=(0,lt.Z)(ne);gt===-1?At.push(ft.value):At.splice(gt,1),"value"in We||Ce(At),Ne==null||Ne(At.filter(ue=>bn.includes(ue)).sort((ue,xe)=>{const ae=Ze.findIndex(Te=>Te.value===ue),ye=Ze.findIndex(Te=>Te.value===xe);return ae-ye}))},Kn=Re("checkbox",ze),Bi=`${Kn}-group`,[en,Fi]=(0,Pt.ZP)(Kn),Oi=(0,rt.Z)(We,["value","disabled"]),Ot=qt.length?Ze.map(ft=>ke.createElement(tt,{prefixCls:Kn,key:ft.value.toString(),disabled:"disabled"in ft?ft.disabled:We.disabled,value:ft.value,checked:ne.includes(ft.value),onChange:ft.onChange,className:`${Bi}-item`,style:ft.style,title:ft.title},ft.label)):Pe,Tt={toggleOption:fi,value:ne,disabled:We.disabled,name:We.name,registerValue:Vn,cancelValue:Mn},vt=ce()(Bi,{[`${Bi}-rtl`]:ve==="rtl"},Wt,Ge,Fi);return en(ke.createElement("div",Object.assign({className:vt,style:_e},Oi,{ref:le}),ke.createElement(te.Provider,{value:Tt},Ot)))},xt=ke.forwardRef(dt);var Nt=ke.memo(xt);const Ut=tt;Ut.Group=Nt,Ut.__ANT_CHECKBOX=!0;var Gt=Ut},98447:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{C2:function(){return ee}});var Lt=Ft(17313),ce=Ft(37613),re=Ft(83116);const ke=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[ke(jt)]}Cn.ZP=(0,re.Z)("Checkbox",(Vt,Mt)=>{let{prefixCls:jt}=Mt;return[ee(jt,Vt)]})},93891:function(hi,Cn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(36355),re=Ft(64165);const ke=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)}};Cn.Z=ke},28103:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Kt}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),ke=Ft(36355),ee=Ft(17313),Vt=Ft(83116),Mt=Ft(37613);const jt=$t=>{const{componentCls:Ct,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ht,verticalMarginInline:dt}=$t;return{[Ct]:Object.assign(Object.assign({},(0,ee.Wf)($t)),{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:`${$t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Ct}-with-text`]:{display:"flex",alignItems:"center",margin:`${$t.dividerHorizontalWithTextGutterMargin}px 0`,color:$t.colorTextHeading,fontWeight:500,fontSize:$t.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:$t.colorText,fontWeight:"normal",fontSize:$t.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 te=(0,Vt.Z)("Divider",$t=>{const Ct=(0,Mt.TS)($t,{dividerHorizontalWithTextGutterMargin:$t.margin,dividerHorizontalGutterMargin:$t.marginLG,sizePaddingEdgeHorizontal:0});return[jt(Ct)]},$t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:$t.marginXS})),Pt=function($t,Ct){var et={};for(var tt in $t)Object.prototype.hasOwnProperty.call($t,tt)&&Ct.indexOf(tt)<0&&(et[tt]=$t[tt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols($t);lt<tt.length;lt++)Ct.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call($t,tt[lt])&&(et[tt[lt]]=$t[tt[lt]]);return et},Kt=$t=>{const{getPrefixCls:Ct,direction:et,divider:tt}=re.useContext(ke.E_),{prefixCls:lt,type:rt="horizontal",orientation:ht="center",orientationMargin:dt,className:xt,rootClassName:Nt,children:Ut,dashed:Gt,plain:se,style:le}=$t,Ae=Pt($t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Pe=Ct("divider",lt),[qt,ze]=te(Pe),Wt=ht.length>0?`-${ht}`:ht,Ge=!!Ut,_e=ht==="left"&&dt!=null,Ne=ht==="right"&&dt!=null,We=ce()(Pe,tt==null?void 0:tt.className,ze,`${Pe}-${rt}`,{[`${Pe}-with-text`]:Ge,[`${Pe}-with-text${Wt}`]:Ge,[`${Pe}-dashed`]:!!Gt,[`${Pe}-plain`]:!!se,[`${Pe}-rtl`]:et==="rtl",[`${Pe}-no-default-orientation-margin-left`]:_e,[`${Pe}-no-default-orientation-margin-right`]:Ne},xt,Nt),Re=re.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),ve=Object.assign(Object.assign({},_e&&{marginLeft:Re}),Ne&&{marginRight:Re});return qt(re.createElement("div",Object.assign({className:We,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),le)},Ae,{role:"separator"}),Ut&&rt!=="vertical"&&re.createElement("span",{className:`${Pe}-inner-text`,style:ve},Ut)))}},91857:function(hi,Cn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(38819),re=Ft(92310),ke=Ft.n(re),ee=Ft(31561),Vt=Ft(70425),Mt=Ft(18929),jt=Ft(2738),te=Ft(79676),Pt=Ft(53487),oe=Ft(92343),Kt=Ft(36355),$t=Ft(20834),Ct=Ft(40875),et=Ft(88088),tt=Ft(47211);const lt=null,rt=Nt=>{const{menu:Ut,arrow:Gt,prefixCls:se,children:le,trigger:Ae,disabled:Pe,dropdownRender:qt,getPopupContainer:ze,overlayClassName:Wt,rootClassName:Ge,open:_e,onOpenChange:Ne,visible:We,onVisibleChange:Re,mouseEnterDelay:ve=.15,mouseLeaveDelay:ne=.1,autoAdjustOverflow:Ce=!0,placement:bn="",overlay:Ln,transitionName:Ze}=Nt,{getPopupContainer:Mn,getPrefixCls:Vn,direction:fi}=Lt.useContext(Kt.E_),Kn=Lt.useMemo(()=>{const Me=Vn();return Ze!==void 0?Ze:bn.includes("top")?`${Me}-slide-down`:`${Me}-slide-up`},[Vn,bn,Ze]),Bi=Lt.useMemo(()=>bn?bn.includes("Center")?bn.slice(0,bn.indexOf("Center")):bn:fi==="rtl"?"bottomRight":"bottomLeft",[bn,fi]),en=Vn("dropdown",se),[Fi,Oi]=(0,tt.Z)(en),[,Ot]=(0,et.Z)(),Tt=Lt.Children.only(le),vt=(0,oe.Tm)(Tt,{className:ke()(`${en}-trigger`,{[`${en}-rtl`]:fi==="rtl"},Tt.props.className),disabled:Pe}),ft=Pe?[]:Ae;let gt;ft&&ft.includes("contextMenu")&&(gt=!0);const[At,ue]=(0,Mt.Z)(!1,{value:_e!=null?_e:We}),xe=(0,Vt.useEvent)(Me=>{Ne==null||Ne(Me),Re==null||Re(Me),ue(Me)}),ae=ke()(Wt,Ge,Oi,{[`${en}-rtl`]:fi==="rtl"}),ye=(0,te.Z)({arrowPointAtCenter:typeof Gt=="object"&&Gt.pointAtCenter,autoAdjustOverflow:Ce,offset:Ot.marginXXS,arrowWidth:Gt?Ot.sizePopupArrow:0,borderRadius:Ot.borderRadius}),Te=Lt.useCallback(()=>{ue(!1)},[]),De=()=>{let Me;return Ut!=null&&Ut.items?Me=Lt.createElement($t.default,Object.assign({},Ut)):typeof Ln=="function"?Me=Ln():Me=Ln,qt&&(Me=qt(Me)),Me=Lt.Children.only(typeof Me=="string"?Lt.createElement("span",null,Me):Me),Lt.createElement(Ct.J,{prefixCls:`${en}-menu`,expandIcon:Lt.createElement("span",{className:`${en}-menu-submenu-arrow`},Lt.createElement(ce.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Te,validator:sn=>{let{mode:Gn}=sn}},Me)};return Fi(Lt.createElement(ee.Z,Object.assign({alignPoint:gt},(0,jt.Z)(Nt,["rootClassName"]),{mouseEnterDelay:ve,mouseLeaveDelay:ne,visible:At,builtinPlacements:ye,arrow:!!Gt,overlayClassName:ae,prefixCls:en,getPopupContainer:ze||Mn,transitionName:Kn,trigger:ft,overlay:De,placement:Bi,onVisibleChange:xe}),vt))};function ht(Nt){return Object.assign(Object.assign({},Nt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,Pt.Z)(rt,"dropdown",Nt=>Nt,ht),xt=Nt=>Lt.createElement(dt,Object.assign({},Nt),Lt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=xt,Cn.Z=rt},38854:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return et}});var Lt=Ft(91857),ce=Ft(92310),re=Ft.n(ce),ke=Ft(59301),ee=Ft(18785),Vt=Ft(3113),Mt=Ft(36355),jt=Ft(81327),te=Ft(33234),Pt=Ft(47211),oe=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 Kt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ht}=ke.useContext(Mt.E_),{prefixCls:dt,type:xt="default",danger:Nt,disabled:Ut,loading:Gt,onClick:se,htmlType:le,children:Ae,className:Pe,menu:qt,arrow:ze,autoFocus:Wt,overlay:Ge,trigger:_e,align:Ne,open:We,onOpenChange:Re,placement:ve,getPopupContainer:ne,href:Ce,icon:bn=ke.createElement(ee.Z,null),title:Ln,buttonsRender:Ze=De=>De,mouseEnterDelay:Mn,mouseLeaveDelay:Vn,overlayClassName:fi,overlayStyle:Kn,destroyPopupOnHide:Bi,dropdownRender:en}=tt,Fi=oe(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"]),Oi=rt("dropdown",dt),Ot=`${Oi}-button`,[Tt,vt]=(0,Pt.Z)(Oi),ft={menu:qt,arrow:ze,autoFocus:Wt,align:Ne,disabled:Ut,trigger:Ut?[]:_e,onOpenChange:Re,getPopupContainer:ne||lt,mouseEnterDelay:Mn,mouseLeaveDelay:Vn,overlayClassName:fi,overlayStyle:Kn,destroyPopupOnHide:Bi,dropdownRender:en},{compactSize:gt,compactItemClassnames:At}=(0,te.ri)(Oi,ht),ue=re()(Ot,At,Pe,vt);"overlay"in tt&&(ft.overlay=Ge),"open"in tt&&(ft.open=We),"placement"in tt?ft.placement=ve:ft.placement=ht==="rtl"?"bottomLeft":"bottomRight";const xe=ke.createElement(Vt.ZP,{type:xt,danger:Nt,disabled:Ut,loading:Gt,onClick:se,htmlType:le,href:Ce,title:Ln},Ae),ae=ke.createElement(Vt.ZP,{type:xt,danger:Nt,icon:bn}),[ye,Te]=Ze([xe,ae]);return Tt(ke.createElement(jt.Z.Compact,Object.assign({className:ue,size:gt,block:!0},Fi),ye,ke.createElement(Lt.Z,Object.assign({},ft),Te)))};Kt.__ANT_BUTTON=!0;var $t=Kt;const Ct=Lt.Z;Ct.Button=$t;var et=Ct},47211:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return oe}});var Lt=Ft(17313),ce=Ft(13826),re=Ft(92899),ke=Ft(29878),ee=Ft(19447),Vt=Ft(83116),Mt=Ft(37613),te=Kt=>{const{componentCls:$t,menuCls:Ct,colorError:et,colorTextLightSolid:tt}=Kt,lt=`${Ct}-item`;return{[`${$t}, ${$t}-menu-submenu`]:{[`${Ct} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const Pt=Kt=>{const{componentCls:$t,menuCls:Ct,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ht,motionDurationMid:dt,dropdownPaddingVertical:xt,fontSize:Nt,dropdownEdgeChildPadding:Ut,colorTextDisabled:Gt,fontSizeIcon:se,controlPaddingHorizontal:le,colorBgElevated:Ae}=Kt;return[{[$t]:Object.assign(Object.assign({},(0,Lt.Wf)(Kt)),{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:se}},[`${$t}-wrap`]:{position:"relative",[`${rt}-btn > ${ht}-down`]:{fontSize:se},[`${ht}-down::before`]:{transition:`transform ${dt}`}},[`${$t}-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${$t}-placement-bottomLeft,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${$t}-placement-bottomLeft,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${$t}-placement-bottom,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${$t}-placement-bottom,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${$t}-placement-bottomRight,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${$t}-placement-bottomRight`]:{animationName:ce.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${$t}-placement-topLeft,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${$t}-placement-topLeft,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${$t}-placement-top,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${$t}-placement-top,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${$t}-placement-topRight,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${$t}-placement-topRight`]:{animationName:ce.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${$t}-placement-bottomLeft,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${$t}-placement-bottom,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${$t}-placement-bottomRight`]:{animationName:ce.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${$t}-placement-topLeft,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${$t}-placement-top,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${$t}-placement-topRight`]:{animationName:ce.ly}})},(0,ee.ZP)(Kt,{colorBg:Ae,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${$t} ${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}},[`${$t}, ${$t}-menu-submenu`]:{[Ct]:Object.assign(Object.assign({padding:Ut,listStyleType:"none",backgroundColor:Ae,backgroundClip:"padding-box",borderRadius:Kt.borderRadiusLG,outline:"none",boxShadow:Kt.boxShadowSecondary},(0,Lt.Qy)(Kt)),{[`${Ct}-item-group-title`]:{padding:`${xt}px ${le}px`,color:Kt.colorTextDescription,transition:`all ${dt}`},[`${Ct}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ct}-item-icon`]:{minWidth:Nt,marginInlineEnd:Kt.marginXS,fontSize:Kt.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 ${le}px`,color:Kt.colorText,fontWeight:"normal",fontSize:Nt,lineHeight:Kt.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Kt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Kt.controlItemBgHover}},(0,Lt.Qy)(Kt)),{"&-selected":{color:Kt.colorPrimary,backgroundColor:Kt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Kt.controlItemBgActiveHover}},"&-disabled":{color:Gt,cursor:"not-allowed","&:hover":{color:Gt,backgroundColor:Ae,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Kt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Kt.colorSplit},[`${$t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Kt.paddingXS,[`${$t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Kt.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Ct}-item-group-list`]:{margin:`0 ${Kt.marginXS}px`,padding:0,listStyle:"none"},[`${Ct}-submenu-title`]:{paddingInlineEnd:le+Kt.fontSizeSM},[`${Ct}-submenu-vertical`]:{position:"relative"},[`${Ct}-submenu${Ct}-submenu-disabled ${$t}-menu-submenu-title`]:{[`&, ${$t}-menu-submenu-arrow-icon`]:{color:Gt,backgroundColor:Ae,cursor:"not-allowed"}},[`${Ct}-submenu-selected ${$t}-menu-submenu-title`]:{color:Kt.colorPrimary}})}},[(0,ce.oN)(Kt,"slide-up"),(0,ce.oN)(Kt,"slide-down"),(0,re.Fm)(Kt,"move-up"),(0,re.Fm)(Kt,"move-down"),(0,ke._y)(Kt,"zoom-big")]]};var oe=(0,Vt.Z)("Dropdown",(Kt,$t)=>{let{rootPrefixCls:Ct}=$t;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ht,paddingXXS:dt,componentCls:xt,borderRadiusLG:Nt}=Kt,Ut=(lt-rt*ht)/2,{dropdownArrowOffset:Gt}=(0,ee.fS)({contentRadius:Nt}),se=(0,Mt.TS)(Kt,{menuCls:`${xt}-menu`,rootPrefixCls:Ct,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Gt,dropdownPaddingVertical:Ut,dropdownEdgeChildPadding:dt});return[Pt(se),te(se)]},Kt=>({zIndexPopup:Kt.zIndexPopupBase+50}))},64165:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return dt}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),ke=Ft(36355),ee=Ft(9763),Vt=Ft(64993),Mt=Ft(88088),te=()=>{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"}))))},oe=()=>{const[,xt]=(0,Mt.Z)(),{colorFill:Nt,colorFillTertiary:Ut,colorFillQuaternary:Gt,colorBgContainer:se}=xt,{borderColor:le,shadowColor:Ae,contentColor:Pe}=(0,re.useMemo)(()=>({borderColor:new Vt.C(Nt).onBackground(se).toHexShortString(),shadowColor:new Vt.C(Ut).onBackground(se).toHexShortString(),contentColor:new Vt.C(Gt).onBackground(se).toHexShortString()}),[Nt,Ut,Gt,se]);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:Ae,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:le},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:Pe}))))},Kt=Ft(83116),$t=Ft(37613);const Ct=xt=>{const{componentCls:Nt,margin:Ut,marginXS:Gt,marginXL:se,fontSize:le,lineHeight:Ae}=xt;return{[Nt]:{marginInline:Gt,fontSize:le,lineHeight:Ae,textAlign:"center",[`${Nt}-image`]:{height:xt.emptyImgHeight,marginBottom:Gt,opacity:xt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Nt}-description`]:{color:xt.colorText},[`${Nt}-footer`]:{marginTop:Ut},"&-normal":{marginBlock:se,color:xt.colorTextDisabled,[`${Nt}-description`]:{color:xt.colorTextDisabled},[`${Nt}-image`]:{height:xt.emptyImgHeightMD}},"&-small":{marginBlock:Gt,color:xt.colorTextDisabled,[`${Nt}-image`]:{height:xt.emptyImgHeightSM}}}}};var et=(0,Kt.Z)("Empty",xt=>{const{componentCls:Nt,controlHeightLG:Ut}=xt,Gt=(0,$t.TS)(xt,{emptyImgCls:`${Nt}-img`,emptyImgHeight:Ut*2.5,emptyImgHeightMD:Ut,emptyImgHeightSM:Ut*.875});return[Ct(Gt)]}),tt=function(xt,Nt){var Ut={};for(var Gt in xt)Object.prototype.hasOwnProperty.call(xt,Gt)&&Nt.indexOf(Gt)<0&&(Ut[Gt]=xt[Gt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Gt=Object.getOwnPropertySymbols(xt);se<Gt.length;se++)Nt.indexOf(Gt[se])<0&&Object.prototype.propertyIsEnumerable.call(xt,Gt[se])&&(Ut[Gt[se]]=xt[Gt[se]]);return Ut};const lt=re.createElement(te,null),rt=re.createElement(oe,null),ht=xt=>{var{className:Nt,rootClassName:Ut,prefixCls:Gt,image:se=lt,description:le,children:Ae,imageStyle:Pe,style:qt}=xt,ze=tt(xt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Wt,direction:Ge,empty:_e}=re.useContext(ke.E_),Ne=Wt("empty",Gt),[We,Re]=et(Ne),[ve]=(0,ee.Z)("Empty"),ne=typeof le!="undefined"?le:ve==null?void 0:ve.description,Ce=typeof ne=="string"?ne:"empty";let bn=null;return typeof se=="string"?bn=re.createElement("img",{alt:Ce,src:se}):bn=se,We(re.createElement("div",Object.assign({className:ce()(Re,Ne,_e==null?void 0:_e.className,{[`${Ne}-normal`]:se===rt,[`${Ne}-rtl`]:Ge==="rtl"},Nt,Ut),style:Object.assign(Object.assign({},_e==null?void 0:_e.style),qt)},ze),re.createElement("div",{className:`${Ne}-image`,style:Pe},bn),ne&&re.createElement("div",{className:`${Ne}-description`},ne),Ae&&re.createElement("div",{className:`${Ne}-footer`},Ae)))};ht.PRESENTED_IMAGE_DEFAULT=lt,ht.PRESENTED_IMAGE_SIMPLE=rt;var dt=ht},78241:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Nn}});var Lt=Ft(26407),ce=Ft(92310),re=Ft.n(ce),ke=Ft(77900),ee=Ft(59301),Vt=Ft(62892),Mt=Ft(32441);function jt(je){const[ei,xi]=ee.useState(je);return ee.useEffect(()=>{const dn=setTimeout(()=>{xi(je)},je.length?0:10);return()=>{clearTimeout(dn)}},[je]),ei}var te=Ft(17313),Pt=Ft(29878),oe=Ft(8378),Kt=Ft(37613),$t=Ft(83116),et=je=>{const{componentCls:ei}=je,xi=`${ei}-show-help`,dn=`${ei}-show-help-item`;return{[xi]:{transition:`opacity ${je.motionDurationSlow} ${je.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[dn]:{overflow:"hidden",transition:`height ${je.motionDurationSlow} ${je.motionEaseInOut},
opacity ${je.motionDurationSlow} ${je.motionEaseInOut},
transform ${je.motionDurationSlow} ${je.motionEaseInOut} !important`,[`&${dn}-appear, &${dn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${dn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=je=>({legend:{display:"block",width:"100%",marginBottom:je.marginLG,padding:0,color:je.colorTextDescription,fontSize:je.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${je.lineWidth}px ${je.lineType} ${je.colorBorder}`},label:{fontSize:je.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 ${je.controlOutlineWidth}px ${je.controlOutline}`},output:{display:"block",paddingTop:15,color:je.colorText,fontSize:je.fontSize,lineHeight:je.lineHeight}}),lt=(je,ei)=>{const{formItemCls:xi}=je;return{[xi]:{[`${xi}-label > label`]:{height:ei},[`${xi}-control-input`]:{minHeight:ei}}}},rt=je=>{const{componentCls:ei}=je;return{[je.componentCls]:Object.assign(Object.assign(Object.assign({},(0,te.Wf)(je)),tt(je)),{[`${ei}-text`]:{display:"inline-block",paddingInlineEnd:je.paddingSM},"&-small":Object.assign({},lt(je,je.controlHeightSM)),"&-large":Object.assign({},lt(je,je.controlHeightLG))})}},ht=je=>{const{formItemCls:ei,iconCls:xi,componentCls:dn,rootPrefixCls:Fe,labelRequiredMarkColor:wn,labelColor:Hn,labelFontSize:Si,labelHeight:Di,labelColonMarginInlineStart:tn,labelColonMarginInlineEnd:oi,itemMarginBottom:Li}=je;return{[ei]:Object.assign(Object.assign({},(0,te.Wf)(je)),{marginBottom:Li,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Fe}-row`]:{display:"none"},"&-has-warning":{[`${ei}-split`]:{color:je.colorError}},"&-has-error":{[`${ei}-split`]:{color:je.colorWarning}},[`${ei}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${je.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Di,color:Hn,fontSize:Si,[`> ${xi}`]:{fontSize:je.fontSize,verticalAlign:"top"},[`&${ei}-required:not(${ei}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:je.marginXXS,color:wn,fontSize:je.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${dn}-hide-required-mark &`]:{display:"none"}},[`${ei}-optional`]:{display:"inline-block",marginInlineStart:je.marginXXS,color:je.colorTextDescription,[`${dn}-hide-required-mark &`]:{display:"none"}},[`${ei}-tooltip`]:{color:je.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:je.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:tn,marginInlineEnd:oi},[`&${ei}-no-colon::after`]:{content:'"\\a0"'}}},[`${ei}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Fe}-col-'"]):not([class*="' ${Fe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:je.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ei]:{"&-explain, &-extra":{clear:"both",color:je.colorTextDescription,fontSize:je.fontSize,lineHeight:je.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:je.controlHeightSM,transition:`color ${je.motionDurationMid} ${je.motionEaseOut}`},"&-explain":{"&-error":{color:je.colorError},"&-warning":{color:je.colorWarning}}},[`&-with-help ${ei}-explain`]:{height:"auto",opacity:1},[`${ei}-feedback-icon`]:{fontSize:je.fontSize,textAlign:"center",visibility:"visible",animationName:Pt.kr,animationDuration:je.motionDurationMid,animationTimingFunction:je.motionEaseOutBack,pointerEvents:"none","&-success":{color:je.colorSuccess},"&-error":{color:je.colorError},"&-warning":{color:je.colorWarning},"&-validating":{color:je.colorPrimary}}})}},dt=je=>{const{componentCls:ei,formItemCls:xi}=je;return{[`${ei}-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=je=>{const{componentCls:ei,formItemCls:xi}=je;return{[`${ei}-inline`]:{display:"flex",flexWrap:"wrap",[xi]:{flex:"none",marginInlineEnd:je.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${xi}-label,
> ${xi}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${xi}-label`]:{flex:"none"},[`${ei}-text`]:{display:"inline-block"},[`${xi}-has-feedback`]:{display:"inline-block"}}}}},Nt=je=>({padding:je.verticalLabelPadding,margin:je.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ut=je=>{const{componentCls:ei,formItemCls:xi,rootPrefixCls:dn}=je;return{[`${xi} ${xi}-label`]:Nt(je),[ei]:{[xi]:{flexWrap:"wrap",[`${xi}-label, ${xi}-control`]:{[`&:not([class*=" ${dn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Gt=je=>{const{componentCls:ei,formItemCls:xi,rootPrefixCls:dn}=je;return{[`${ei}-vertical`]:{[xi]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ei}-item-control`]:{width:"100%"}}},[`${ei}-vertical ${xi}-label,
.${dn}-col-24${xi}-label,
.${dn}-col-xl-24${xi}-label`]:Nt(je),[`@media (max-width: ${je.screenXSMax}px)`]:[Ut(je),{[ei]:{[`.${dn}-col-xs-24${xi}-label`]:Nt(je)}}],[`@media (max-width: ${je.screenSMMax}px)`]:{[ei]:{[`.${dn}-col-sm-24${xi}-label`]:Nt(je)}},[`@media (max-width: ${je.screenMDMax}px)`]:{[ei]:{[`.${dn}-col-md-24${xi}-label`]:Nt(je)}},[`@media (max-width: ${je.screenLGMax}px)`]:{[ei]:{[`.${dn}-col-lg-24${xi}-label`]:Nt(je)}}}},se=(je,ei)=>(0,Kt.TS)(je,{formItemCls:`${je.componentCls}-item`,rootPrefixCls:ei});var le=(0,$t.Z)("Form",(je,ei)=>{let{rootPrefixCls:xi}=ei;const dn=se(je,xi);return[rt(dn),ht(dn),et(dn),dt(dn),xt(dn),Gt(dn),(0,oe.Z)(dn),Pt.kr]},je=>({labelRequiredMarkColor:je.colorError,labelColor:je.colorTextHeading,labelFontSize:je.fontSize,labelHeight:je.controlHeight,labelColonMarginInlineStart:je.marginXXS/2,labelColonMarginInlineEnd:je.marginXS,itemMarginBottom:je.marginLG,verticalLabelPadding:`0 0 ${je.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ae=[];function Pe(je,ei,xi){let dn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof je=="string"?je:`${ei}-${dn}`,error:je,errorStatus:xi}}var ze=je=>{let{help:ei,helpStatus:xi,errors:dn=Ae,warnings:Fe=Ae,className:wn,fieldId:Hn,onVisibleChanged:Si}=je;const{prefixCls:Di}=ee.useContext(Mt.Rk),tn=`${Di}-item-explain`,[,oi]=le(Di),Li=(0,ee.useMemo)(()=>(0,Vt.Z)(Di),[Di]),tr=jt(dn),kn=jt(Fe),ui=ee.useMemo(()=>ei!=null?[Pe(ei,"help",xi)]:[].concat((0,Lt.Z)(tr.map((cr,zr)=>Pe(cr,"error","error",zr))),(0,Lt.Z)(kn.map((cr,zr)=>Pe(cr,"warning","warning",zr)))),[ei,xi,tr,kn]),Sr={};return Hn&&(Sr.id=`${Hn}_help`),ee.createElement(ke.default,{motionDeadline:Li.motionDeadline,motionName:`${Di}-show-help`,visible:!!ui.length,onVisibleChanged:Si},cr=>{const{className:zr,style:dr}=cr;return ee.createElement("div",Object.assign({},Sr,{className:re()(tn,zr,wn,oi),style:dr,role:"alert"}),ee.createElement(ke.CSSMotionList,Object.assign({keys:ui},(0,Vt.Z)(Di),{motionName:`${Di}-show-help-item`,component:!1}),Mr=>{const{key:nr,error:Cr,errorStatus:no,className:Ro,style:yi}=Mr;return ee.createElement("div",{key:nr,className:re()(Ro,{[`${tn}-${no}`]:no}),style:yi},Cr)}))})},Wt=Ft(95013),Ge=Ft(36355),_e=Ft(1684),Ne=Ft(52946),We=Ft(19716),Re=Ft(16722);const ve=["parentNode"],ne="form_item";function Ce(je){return je===void 0||je===!1?[]:Array.isArray(je)?je:[je]}function bn(je,ei){if(!je.length)return;const xi=je.join("_");return ei?`${ei}_${xi}`:ve.includes(xi)?`${ne}_${xi}`:xi}function Ln(je,ei,xi,dn,Fe,wn){let Hn=dn;return wn!==void 0?Hn=wn:xi.validating?Hn="validating":je.length?Hn="error":ei.length?Hn="warning":(xi.touched||Fe&&xi.validated)&&(Hn="success"),Hn}function Ze(je){return Ce(je).join("_")}function Mn(je){const[ei]=(0,Wt.useForm)(),xi=ee.useRef({}),dn=ee.useMemo(()=>je!=null?je:Object.assign(Object.assign({},ei),{__INTERNAL__:{itemRef:Fe=>wn=>{const Hn=Ze(Fe);wn?xi.current[Hn]=wn:delete xi.current[Hn]}},scrollToField:function(Fe){let wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Hn=Ce(Fe),Si=bn(Hn,dn.__INTERNAL__.name),Di=Si?document.getElementById(Si):null;Di&&(0,Re.Z)(Di,Object.assign({scrollMode:"if-needed",block:"nearest"},wn))},getFieldInstance:Fe=>{const wn=Ze(Fe);return xi.current[wn]}}),[je,ei]);return[dn]}var Vn=Ft(28726),fi=function(je,ei){var xi={};for(var dn in je)Object.prototype.hasOwnProperty.call(je,dn)&&ei.indexOf(dn)<0&&(xi[dn]=je[dn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,dn=Object.getOwnPropertySymbols(je);Fe<dn.length;Fe++)ei.indexOf(dn[Fe])<0&&Object.prototype.propertyIsEnumerable.call(je,dn[Fe])&&(xi[dn[Fe]]=je[dn[Fe]]);return xi};const Kn=(je,ei)=>{const xi=ee.useContext(_e.Z),{getPrefixCls:dn,direction:Fe,form:wn}=ee.useContext(Ge.E_),{prefixCls:Hn,className:Si,rootClassName:Di,size:tn,disabled:oi=xi,form:Li,colon:tr,labelAlign:kn,labelWrap:ui,labelCol:Sr,wrapperCol:cr,hideRequiredMark:zr,layout:dr="horizontal",scrollToFirstError:Mr,requiredMark:nr,onFinishFailed:Cr,name:no,style:Ro,feedbackIcons:yi}=je,Po=fi(je,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ws=(0,We.Z)(tn),Zo=ee.useContext(Vn.Z),pi=(0,ee.useMemo)(()=>nr!==void 0?nr:wn&&wn.requiredMark!==void 0?wn.requiredMark:!zr,[zr,nr,wn]),or=tr!=null?tr:wn==null?void 0:wn.colon,Hr=dn("form",Hn),[uo,to]=le(Hr),Fo=re()(Hr,`${Hr}-${dr}`,{[`${Hr}-hide-required-mark`]:pi===!1,[`${Hr}-rtl`]:Fe==="rtl",[`${Hr}-${ws}`]:ws},to,wn==null?void 0:wn.className,Si,Di),[mi]=Mn(Li),{__INTERNAL__:wo}=mi;wo.name=no;const Dr=(0,ee.useMemo)(()=>({name:no,labelAlign:kn,labelCol:Sr,labelWrap:ui,wrapperCol:cr,vertical:dr==="vertical",colon:or,requiredMark:pi,itemRef:wo.itemRef,form:mi,feedbackIcons:yi}),[no,kn,Sr,cr,dr,or,pi,mi,yi]);ee.useImperativeHandle(ei,()=>mi);const Br=(bo,Ci)=>{if(bo){let Xo={block:"nearest"};typeof bo=="object"&&(Xo=bo),mi.scrollToField(Ci,Xo)}},Pi=bo=>{if(Cr==null||Cr(bo),bo.errorFields.length){const Ci=bo.errorFields[0].name;if(Mr!==void 0){Br(Mr,Ci);return}wn&&wn.scrollToFirstError!==void 0&&Br(wn.scrollToFirstError,Ci)}};return uo(ee.createElement(_e.n,{disabled:oi},ee.createElement(Ne.q,{size:ws},ee.createElement(Mt.RV,Object.assign({},{validateMessages:Zo}),ee.createElement(Mt.q3.Provider,{value:Dr},ee.createElement(Wt.default,Object.assign({id:no},Po,{name:no,onFinishFailed:Pi,form:mi,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),Ro),className:Fo})))))))};var en=ee.forwardRef(Kn),Fi=Ft(41799),Oi=Ft(8654),Ot=Ft(92343),Tt=Ft(11592);function vt(je){if(typeof je=="function")return je;const ei=(0,Tt.Z)(je);return ei.length<=1?ei[0]:ei}const ft=()=>{const{status:je,errors:ei=[],warnings:xi=[]}=(0,ee.useContext)(Mt.aM);return{status:je,errors:ei,warnings:xi}};ft.Context=Mt.aM;var gt=ft,At=Ft(16089);function ue(je){const[ei,xi]=ee.useState(je),dn=(0,ee.useRef)(null),Fe=(0,ee.useRef)([]),wn=(0,ee.useRef)(!1);ee.useEffect(()=>(wn.current=!1,()=>{wn.current=!0,At.Z.cancel(dn.current),dn.current=null}),[]);function Hn(Si){wn.current||(dn.current===null&&(Fe.current=[],dn.current=(0,At.Z)(()=>{dn.current=null,xi(Di=>{let tn=Di;return Fe.current.forEach(oi=>{tn=oi(tn)}),tn})})),Fe.current.push(Si))}return[ei,Hn]}function xe(){const{itemRef:je}=ee.useContext(Mt.q3),ei=ee.useRef({});function xi(dn,Fe){const wn=Fe&&typeof Fe=="object"&&Fe.ref,Hn=dn.join("_");return(ei.current.name!==Hn||ei.current.originRef!==wn)&&(ei.current.name=Hn,ei.current.originRef=wn,ei.current.ref=(0,Oi.sQ)(je(dn),wn)),ei.current.ref}return xi}var ae=Ft(29194),ye=Ft(34280),Te=Ft(2738),De=Ft(27382),Me=Ft(37028);const sn=je=>{const{formItemCls:ei}=je;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ei}-control`]:{display:"flex"}}}};var Gn=(0,$t.b)(["Form","item-item"],(je,ei)=>{let{rootPrefixCls:xi}=ei;const dn=se(je,xi);return[sn(dn)]}),un=je=>{const{prefixCls:ei,status:xi,wrapperCol:dn,children:Fe,errors:wn,warnings:Hn,_internalItemRender:Si,extra:Di,help:tn,fieldId:oi,marginBottom:Li,onErrorVisibleChanged:tr}=je,kn=`${ei}-item`,ui=ee.useContext(Mt.q3),Sr=dn||ui.wrapperCol||{},cr=re()(`${kn}-control`,Sr.className),zr=ee.useMemo(()=>Object.assign({},ui),[ui]);delete zr.labelCol,delete zr.wrapperCol;const dr=ee.createElement("div",{className:`${kn}-control-input`},ee.createElement("div",{className:`${kn}-control-input-content`},Fe)),Mr=ee.useMemo(()=>({prefixCls:ei,status:xi}),[ei,xi]),nr=Li!==null||wn.length||Hn.length?ee.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ee.createElement(Mt.Rk.Provider,{value:Mr},ee.createElement(ze,{fieldId:oi,errors:wn,warnings:Hn,help:tn,helpStatus:xi,className:`${kn}-explain-connected`,onVisibleChanged:tr})),!!Li&&ee.createElement("div",{style:{width:0,height:Li}})):null,Cr={};oi&&(Cr.id=`${oi}_extra`);const no=Di?ee.createElement("div",Object.assign({},Cr,{className:`${kn}-extra`}),Di):null,Ro=Si&&Si.mark==="pro_table_render"&&Si.render?Si.render(je,{input:dr,errorList:nr,extra:no}):ee.createElement(ee.Fragment,null,dr,nr,no);return ee.createElement(Mt.q3.Provider,{value:zr},ee.createElement(Me.Z,Object.assign({},Sr,{className:cr}),Ro),ee.createElement(Gn,{prefixCls:ei}))},Bn=Ft(61485),ai=Ft(31724),On=Ft(9763),ji=Ft(6848),er=function(je,ei){var xi={};for(var dn in je)Object.prototype.hasOwnProperty.call(je,dn)&&ei.indexOf(dn)<0&&(xi[dn]=je[dn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,dn=Object.getOwnPropertySymbols(je);Fe<dn.length;Fe++)ei.indexOf(dn[Fe])<0&&Object.prototype.propertyIsEnumerable.call(je,dn[Fe])&&(xi[dn[Fe]]=je[dn[Fe]]);return xi};function Ji(je){return je?typeof je=="object"&&!ee.isValidElement(je)?je:{title:je}:null}var vr=je=>{let{prefixCls:ei,label:xi,htmlFor:dn,labelCol:Fe,labelAlign:wn,colon:Hn,required:Si,requiredMark:Di,tooltip:tn}=je;var oi;const[Li]=(0,On.Z)("Form"),{vertical:tr,labelAlign:kn,labelCol:ui,labelWrap:Sr,colon:cr}=ee.useContext(Mt.q3);if(!xi)return null;const zr=Fe||ui||{},dr=wn||kn,Mr=`${ei}-item-label`,nr=re()(Mr,dr==="left"&&`${Mr}-left`,zr.className,{[`${Mr}-wrap`]:!!Sr});let Cr=xi;const no=Hn===!0||cr!==!1&&Hn!==!1;no&&!tr&&typeof xi=="string"&&xi.trim()!==""&&(Cr=xi.replace(/[:|]\s*$/,""));const yi=Ji(tn);if(yi){const{icon:pi=ee.createElement(Bn.Z,null)}=yi,or=er(yi,["icon"]),Hr=ee.createElement(ji.Z,Object.assign({},or),ee.cloneElement(pi,{className:`${ei}-item-tooltip`,title:""}));Cr=ee.createElement(ee.Fragment,null,Cr,Hr)}const Po=Di==="optional",ws=typeof Di=="function";ws?Cr=Di(Cr,{required:!!Si}):Po&&!Si&&(Cr=ee.createElement(ee.Fragment,null,Cr,ee.createElement("span",{className:`${ei}-item-optional`,title:""},(Li==null?void 0:Li.optional)||((oi=ai.Z.Form)===null||oi===void 0?void 0:oi.optional))));const Zo=re()({[`${ei}-item-required`]:Si,[`${ei}-item-required-mark-optional`]:Po||ws,[`${ei}-item-no-colon`]:!no});return ee.createElement(Me.Z,Object.assign({},zr,{className:nr}),ee.createElement("label",{htmlFor:dn,className:Zo,title:typeof xi=="string"?xi:""},Cr))},so=Ft(29679),Yr=Ft(19248),Jr=Ft(96512),Lr=Ft(58617);const Zr={success:so.Z,warning:Jr.Z,error:Yr.Z,validating:Lr.Z};function oo(je){let{children:ei,errors:xi,warnings:dn,hasFeedback:Fe,validateStatus:wn,prefixCls:Hn,meta:Si,noStyle:Di}=je;const tn=`${Hn}-item`,{feedbackIcons:oi}=ee.useContext(Mt.q3),Li=Ln(xi,dn,Si,null,!!Fe,wn),{isFormItemInput:tr,status:kn}=ee.useContext(Mt.aM),ui=ee.useMemo(()=>{var Sr;let cr;if(Fe){const Mr=Fe!==!0&&Fe.icons||oi,nr=Li&&((Sr=Mr==null?void 0:Mr({status:Li,errors:xi,warnings:dn}))===null||Sr===void 0?void 0:Sr[Li]),Cr=Li&&Zr[Li];cr=nr!==!1&&Cr?ee.createElement("span",{className:re()(`${tn}-feedback-icon`,`${tn}-feedback-icon-${Li}`)},nr||ee.createElement(Cr,null)):null}let zr=!0,dr=Li||"";return Di&&(zr=tr,dr=(Li!=null?Li:kn)||""),{status:dr,errors:xi,warnings:dn,hasFeedback:!!Fe,feedbackIcon:cr,isFormItemInput:zr}},[Li,Fe,Di,tr,kn]);return ee.createElement(Mt.aM.Provider,{value:ui},ei)}var Uo=function(je,ei){var xi={};for(var dn in je)Object.prototype.hasOwnProperty.call(je,dn)&&ei.indexOf(dn)<0&&(xi[dn]=je[dn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,dn=Object.getOwnPropertySymbols(je);Fe<dn.length;Fe++)ei.indexOf(dn[Fe])<0&&Object.prototype.propertyIsEnumerable.call(je,dn[Fe])&&(xi[dn[Fe]]=je[dn[Fe]]);return xi};function fs(je){const{prefixCls:ei,className:xi,rootClassName:dn,style:Fe,help:wn,errors:Hn,warnings:Si,validateStatus:Di,meta:tn,hasFeedback:oi,hidden:Li,children:tr,fieldId:kn,required:ui,isRequired:Sr,onSubItemMetaChange:cr}=je,zr=Uo(je,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),dr=`${ei}-item`,{requiredMark:Mr}=ee.useContext(Mt.q3),nr=ee.useRef(null),Cr=jt(Hn),no=jt(Si),Ro=wn!=null,yi=!!(Ro||Hn.length||Si.length),Po=!!nr.current&&(0,ae.Z)(nr.current),[ws,Zo]=ee.useState(null);(0,ye.Z)(()=>{if(yi&&nr.current){const to=getComputedStyle(nr.current);Zo(parseInt(to.marginBottom,10))}},[yi,Po]);const pi=to=>{to||Zo(null)},Hr=function(){let to=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Fo=to?Cr:tn.errors,mi=to?no:tn.warnings;return Ln(Fo,mi,tn,"",!!oi,Di)}(),uo=re()(dr,xi,dn,{[`${dr}-with-help`]:Ro||Cr.length||no.length,[`${dr}-has-feedback`]:Hr&&oi,[`${dr}-has-success`]:Hr==="success",[`${dr}-has-warning`]:Hr==="warning",[`${dr}-has-error`]:Hr==="error",[`${dr}-is-validating`]:Hr==="validating",[`${dr}-hidden`]:Li});return ee.createElement("div",{className:uo,style:Fe,ref:nr},ee.createElement(De.Z,Object.assign({className:`${dr}-row`},(0,Te.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(vr,Object.assign({htmlFor:kn},je,{requiredMark:Mr,required:ui!=null?ui:Sr,prefixCls:ei})),ee.createElement(un,Object.assign({},je,tn,{errors:Cr,warnings:no,prefixCls:ei,status:Hr,help:wn,marginBottom:ws,onErrorVisibleChanged:pi}),ee.createElement(Mt.qI.Provider,{value:cr},ee.createElement(oo,{prefixCls:ei,meta:tn,errors:tn.errors,warnings:tn.warnings,hasFeedback:oi,validateStatus:Hr},tr)))),!!ws&&ee.createElement("div",{className:`${dr}-margin-offset`,style:{marginBottom:-ws}}))}const eo="__SPLIT__",Os=null,yo=ee.memo(je=>{let{children:ei}=je;return ei},(je,ei)=>je.value===ei.value&&je.update===ei.update&&je.childProps.length===ei.childProps.length&&je.childProps.every((xi,dn)=>xi===ei.childProps[dn]));function Xt(je){return je!=null}function ti(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gs(je){const{name:ei,noStyle:xi,className:dn,dependencies:Fe,prefixCls:wn,shouldUpdate:Hn,rules:Si,children:Di,required:tn,label:oi,messageVariables:Li,trigger:tr="onChange",validateTrigger:kn,hidden:ui,help:Sr}=je,{getPrefixCls:cr}=ee.useContext(Ge.E_),{name:zr}=ee.useContext(Mt.q3),dr=vt(Di),Mr=typeof dr=="function",nr=ee.useContext(Mt.qI),{validateTrigger:Cr}=ee.useContext(Wt.FieldContext),no=kn!==void 0?kn:Cr,Ro=Xt(ei),yi=cr("form",wn),[Po,ws]=le(yi),Zo=ee.useContext(Wt.ListContext),pi=ee.useRef(),[or,Hr]=ue({}),[uo,to]=(0,Fi.Z)(()=>ti()),Fo=Ci=>{const Xo=Zo==null?void 0:Zo.getKey(Ci.name);if(to(Ci.destroy?ti():Ci,!0),xi&&Sr!==!1&&nr){let ra=Ci.name;if(Ci.destroy)ra=pi.current||ra;else if(Xo!==void 0){const[xs,va]=Xo;ra=[xs].concat((0,Lt.Z)(va)),pi.current=ra}nr(Ci,ra)}},mi=(Ci,Xo)=>{Hr(ra=>{const xs=Object.assign({},ra),Gs=[].concat((0,Lt.Z)(Ci.name.slice(0,-1)),(0,Lt.Z)(Xo)).join(eo);return Ci.destroy?delete xs[Gs]:xs[Gs]=Ci,xs})},[wo,Dr]=ee.useMemo(()=>{const Ci=(0,Lt.Z)(uo.errors),Xo=(0,Lt.Z)(uo.warnings);return Object.values(or).forEach(ra=>{Ci.push.apply(Ci,(0,Lt.Z)(ra.errors||[])),Xo.push.apply(Xo,(0,Lt.Z)(ra.warnings||[]))}),[Ci,Xo]},[or,uo.errors,uo.warnings]),Br=xe();function Pi(Ci,Xo,ra){return xi&&!ui?ee.createElement(oo,{prefixCls:yi,hasFeedback:je.hasFeedback,validateStatus:je.validateStatus,meta:uo,errors:wo,warnings:Dr,noStyle:!0},Ci):ee.createElement(fs,Object.assign({key:"row"},je,{className:re()(dn,ws),prefixCls:yi,fieldId:Xo,isRequired:ra,errors:wo,warnings:Dr,meta:uo,onSubItemMetaChange:mi}),Ci)}if(!Ro&&!Mr&&!Fe)return Po(Pi(dr));let bo={};return typeof oi=="string"?bo.label=oi:ei&&(bo.label=String(ei)),Li&&(bo=Object.assign(Object.assign({},bo),Li)),Po(ee.createElement(Wt.Field,Object.assign({},je,{messageVariables:bo,trigger:tr,validateTrigger:no,onMetaChange:Fo}),(Ci,Xo,ra)=>{const xs=Ce(ei).length&&Xo?Xo.name:[],va=bn(xs,zr),Gs=tn!==void 0?tn:!!(Si&&Si.some(As=>{if(As&&typeof As=="object"&&As.required&&!As.warningOnly)return!0;if(typeof As=="function"){const ls=As(ra);return ls&&ls.required&&!ls.warningOnly}return!1})),Io=Object.assign({},Ci);let _o=null;if(Array.isArray(dr)&&Ro)_o=dr;else if(!(Mr&&(!(Hn||Fe)||Ro))){if(!(Fe&&!Mr&&!Ro))if((0,Ot.l$)(dr)){const As=Object.assign(Object.assign({},dr.props),Io);if(As.id||(As.id=va),Sr||wo.length>0||Dr.length>0||je.extra){const Ie=[];(Sr||wo.length>0)&&Ie.push(`${va}_help`),je.extra&&Ie.push(`${va}_extra`),As["aria-describedby"]=Ie.join(" ")}wo.length>0&&(As["aria-invalid"]="true"),Gs&&(As["aria-required"]="true"),(0,Oi.Yr)(dr)&&(As.ref=Br(xs,dr)),new Set([].concat((0,Lt.Z)(Ce(tr)),(0,Lt.Z)(Ce(no)))).forEach(Ie=>{As[Ie]=function(){for(var cs,oa,ll,Ll,fl,_l=arguments.length,ns=new Array(_l),Yo=0;Yo<_l;Yo++)ns[Yo]=arguments[Yo];(ll=Io[Ie])===null||ll===void 0||(cs=ll).call.apply(cs,[Io].concat(ns)),(fl=(Ll=dr.props)[Ie])===null||fl===void 0||(oa=fl).call.apply(oa,[Ll].concat(ns))}});const wr=[As["aria-required"],As["aria-invalid"],As["aria-describedby"]];_o=ee.createElement(yo,{value:Io[je.valuePropName||"value"],update:dr,childProps:wr},(0,Ot.Tm)(dr,As))}else Mr&&(Hn||Fe)&&!Ro?_o=dr(ra):_o=dr}return Pi(_o,va,Gs)}))}const ia=gs;ia.useStatus=gt;var Zs=ia,la=function(je,ei){var xi={};for(var dn in je)Object.prototype.hasOwnProperty.call(je,dn)&&ei.indexOf(dn)<0&&(xi[dn]=je[dn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,dn=Object.getOwnPropertySymbols(je);Fe<dn.length;Fe++)ei.indexOf(dn[Fe])<0&&Object.prototype.propertyIsEnumerable.call(je,dn[Fe])&&(xi[dn[Fe]]=je[dn[Fe]]);return xi},Rr=je=>{var{prefixCls:ei,children:xi}=je,dn=la(je,["prefixCls","children"]);const{getPrefixCls:Fe}=ee.useContext(Ge.E_),wn=Fe("form",ei),Hn=ee.useMemo(()=>({prefixCls:wn,status:"error"}),[wn]);return ee.createElement(Wt.List,Object.assign({},dn),(Si,Di,tn)=>ee.createElement(Mt.Rk.Provider,{value:Hn},xi(Si.map(oi=>Object.assign(Object.assign({},oi),{fieldKey:oi.key})),Di,{errors:tn.errors,warnings:tn.warnings})))};function _r(){const{form:je}=(0,ee.useContext)(Mt.q3);return je}const Dn=en;Dn.Item=Zs,Dn.List=Rr,Dn.ErrorList=ze,Dn.useForm=Mn,Dn.useFormInstance=_r,Dn.useWatch=Wt.useWatch,Dn.Provider=Mt.RV,Dn.create=()=>{};var Nn=Dn},8628:function(hi,Cn,Ft){"use strict";var Lt=Ft(59301),ce=Ft(34280),re=Ft(56762),ke=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)(),te=(0,ke.ZP)();return(0,ce.Z)(()=>{const Pt=te.subscribe(oe=>{Mt.current=oe,Vt&&jt()});return()=>te.unsubscribe(Pt)},[]),Mt.current}Cn.Z=ee},9432:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ht},n:function(){return lt}});var Lt=Ft(19248),ce=Ft(92310),re=Ft.n(ce),ke=Ft(93681),ee=Ft(8654),Vt=Ft(59301),Mt=Ft(19080),jt=Ft(36355),te=Ft(1684),Pt=Ft(19716),oe=Ft(32441),Kt=Ft(33234),$t=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 Gt=0,Ut=Object.getOwnPropertySymbols(dt);Gt<Ut.length;Gt++)xt.indexOf(Ut[Gt])<0&&Object.prototype.propertyIsEnumerable.call(dt,Ut[Gt])&&(Nt[Ut[Gt]]=dt[Ut[Gt]]);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:Gt=!0,status:se,size:le,disabled:Ae,onBlur:Pe,onFocus:qt,suffix:ze,allowClear:Wt,addonAfter:Ge,addonBefore:_e,className:Ne,style:We,styles:Re,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:Ze,input:Mn}=Vt.useContext(jt.E_),Vn=Ln("input",Ut),fi=(0,Vt.useRef)(null),[Kn,Bi]=(0,Ct.ZP)(Vn),{compactSize:en,compactItemClassnames:Fi}=(0,Kt.ri)(Vn,Ze),Oi=(0,Pt.Z)(Gn=>{var an;return(an=le!=null?le:en)!==null&&an!==void 0?an:Gn}),Ot=Vt.useContext(te.Z),Tt=Ae!=null?Ae:Ot,{status:vt,hasFeedback:ft,feedbackIcon:gt}=(0,Vt.useContext)(oe.aM),At=(0,Mt.F)(vt,se),ue=et(dt)||!!ft,xe=(0,Vt.useRef)(ue);(0,Vt.useEffect)(()=>{var Gn;ue&&xe.current,xe.current=ue},[ue]);const ae=(0,$t.Z)(fi,!0),ye=Gn=>{ae(),Pe==null||Pe(Gn)},Te=Gn=>{ae(),qt==null||qt(Gn)},De=Gn=>{ae(),ne==null||ne(Gn)},Me=(ft||ze)&&Vt.createElement(Vt.Fragment,null,ze,ft&&gt);let sn;return typeof Wt=="object"&&(Wt!=null&&Wt.clearIcon)?sn=Wt:Wt&&(sn={clearIcon:Vt.createElement(Lt.Z,null)}),Kn(Vt.createElement(ke.default,Object.assign({ref:(0,ee.sQ)(xt,fi),prefixCls:Vn,autoComplete:Mn==null?void 0:Mn.autoComplete},bn,{disabled:Tt,onBlur:ye,onFocus:Te,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),We),styles:Object.assign(Object.assign({},Mn==null?void 0:Mn.styles),Re),suffix:Me,allowClear:sn,className:re()(Ne,ve,Fi,Mn==null?void 0:Mn.className),onChange:De,addonAfter:Ge&&Vt.createElement(Kt.BR,null,Vt.createElement(oe.Ux,{override:!0,status:!0},Ge)),addonBefore:_e&&Vt.createElement(Kt.BR,null,Vt.createElement(oe.Ux,{override:!0,status:!0},_e)),classNames:Object.assign(Object.assign(Object.assign({},Ce),Mn==null?void 0:Mn.classNames),{input:re()({[`${Vn}-sm`]:Oi==="small",[`${Vn}-lg`]:Oi==="large",[`${Vn}-rtl`]:Ze==="rtl",[`${Vn}-borderless`]:!Gt},!ue&&(0,Mt.Z)(Vn,At),Ce==null?void 0:Ce.input,(Nt=Mn==null?void 0:Mn.classNames)===null||Nt===void 0?void 0:Nt.input,Bi)}),classes:{affixWrapper:re()({[`${Vn}-affix-wrapper-sm`]:Oi==="small",[`${Vn}-affix-wrapper-lg`]:Oi==="large",[`${Vn}-affix-wrapper-rtl`]:Ze==="rtl",[`${Vn}-affix-wrapper-borderless`]:!Gt},(0,Mt.Z)(`${Vn}-affix-wrapper`,At,ft),Bi),wrapper:re()({[`${Vn}-group-rtl`]:Ze==="rtl"},Bi),group:re()({[`${Vn}-group-wrapper-sm`]:Oi==="small",[`${Vn}-group-wrapper-lg`]:Oi==="large",[`${Vn}-group-wrapper-rtl`]:Ze==="rtl",[`${Vn}-group-wrapper-disabled`]:Tt},(0,Mt.Z)(`${Vn}-group-wrapper`,At,ft),Bi)}})))})},1643:function(hi,Cn,Ft){"use strict";var Lt=Ft(19248),ce=Ft(92310),re=Ft.n(ce),ke=Ft(9296),ee=Ft(59301),Vt=Ft(19080),Mt=Ft(36355),jt=Ft(1684),te=Ft(19716),Pt=Ft(32441),oe=Ft(9432),Kt=Ft(9937),$t=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:Gt,rootClassName:se,className:le}=et,Ae=$t(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Pe,direction:qt}=ee.useContext(Mt.E_),ze=(0,te.Z)(ht),Wt=ee.useContext(jt.Z),Ge=dt!=null?dt:Wt,{status:_e,hasFeedback:Ne,feedbackIcon:We}=ee.useContext(Pt.aM),Re=(0,Vt.F)(_e,xt),ve=ee.useRef(null);ee.useImperativeHandle(tt,()=>{var Ze;return{resizableTextArea:(Ze=ve.current)===null||Ze===void 0?void 0:Ze.resizableTextArea,focus:Mn=>{var Vn,fi;(0,oe.n)((fi=(Vn=ve.current)===null||Vn===void 0?void 0:Vn.resizableTextArea)===null||fi===void 0?void 0:fi.textArea,Mn)},blur:()=>{var Mn;return(Mn=ve.current)===null||Mn===void 0?void 0:Mn.blur()}}});const ne=Pe("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,Kt.ZP)(ne);return bn(ee.createElement(ke.default,Object.assign({},Ae,{disabled:Ge,allowClear:Ce,className:re()(le,se),classes:{affixWrapper:re()(`${ne}-textarea-affix-wrapper`,{[`${ne}-affix-wrapper-rtl`]:qt==="rtl",[`${ne}-affix-wrapper-borderless`]:!rt,[`${ne}-affix-wrapper-sm`]:ze==="small",[`${ne}-affix-wrapper-lg`]:ze==="large",[`${ne}-textarea-show-count`]:Ut},(0,Vt.Z)(`${ne}-affix-wrapper`,Re),Ln)},classNames:Object.assign(Object.assign({},Gt),{textarea:re()({[`${ne}-borderless`]:!rt,[`${ne}-sm`]:ze==="small",[`${ne}-lg`]:ze==="large"},(0,Vt.Z)(ne,Re),Ln,Gt==null?void 0:Gt.textarea)}),prefixCls:ne,suffix:Ne&&ee.createElement("span",{className:`${ne}-textarea-suffix`},We),showCount:Ut,ref:ve})))});Cn.Z=Ct},59412:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Lt=Ft(59301);function ce(re,ke){const ee=(0,Lt.useRef)([]),Vt=()=>{ee.current.push(setTimeout(()=>{var Mt,jt,te,Pt;!((Mt=re.current)===null||Mt===void 0)&&Mt.input&&((jt=re.current)===null||jt===void 0?void 0:jt.input.getAttribute("type"))==="password"&&(!((te=re.current)===null||te===void 0)&&te.input.hasAttribute("value"))&&((Pt=re.current)===null||Pt===void 0||Pt.input.removeAttribute("value"))}))};return(0,Lt.useEffect)(()=>(ke&&Vt(),()=>ee.current.forEach(Mt=>{Mt&&clearTimeout(Mt)})),[]),Vt}},92832:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return ze}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),ke=Ft(36355),ee=Ft(32441),Vt=Ft(9937),jt=Wt=>{const{getPrefixCls:Ge,direction:_e}=(0,re.useContext)(ke.E_),{prefixCls:Ne,className:We}=Wt,Re=Ge("input-group",Ne),ve=Ge("input"),[ne,Ce]=(0,Vt.ZP)(ve),bn=ce()(Re,{[`${Re}-lg`]:Wt.size==="large",[`${Re}-sm`]:Wt.size==="small",[`${Re}-compact`]:Wt.compact,[`${Re}-rtl`]:_e==="rtl"},Ce,We),Ln=(0,re.useContext)(ee.aM),Ze=(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:Ze},Wt.children)))},te=Ft(9432),Pt=Ft(73331),oe=Ft(15277),Kt=Ft(2738),$t=Ft(8654),Ct=Ft(59412),et=function(Wt,Ge){var _e={};for(var Ne in Wt)Object.prototype.hasOwnProperty.call(Wt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ne=Object.getOwnPropertySymbols(Wt);We<Ne.length;We++)Ge.indexOf(Ne[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ne[We])&&(_e[Ne[We]]=Wt[Ne[We]]);return _e};const tt=Wt=>Wt?re.createElement(oe.Z,null):re.createElement(Pt.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ht=re.forwardRef((Wt,Ge)=>{const{visibilityToggle:_e=!0}=Wt,Ne=typeof _e=="object"&&_e.visible!==void 0,[We,Re]=(0,re.useState)(()=>Ne?_e.visible:!1),ve=(0,re.useRef)(null);re.useEffect(()=>{Ne&&Re(_e.visible)},[Ne,_e]);const ne=(0,Ct.Z)(ve),Ce=()=>{const{disabled:Tt}=Wt;Tt||(We&&ne(),Re(vt=>{var ft;const gt=!vt;return typeof _e=="object"&&((ft=_e.onVisibleChange)===null||ft===void 0||ft.call(_e,gt)),gt}))},bn=Tt=>{const{action:vt="click",iconRender:ft=tt}=Wt,gt=lt[vt]||"",At=ft(We),ue={[gt]: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),ue)},{className:Ln,prefixCls:Ze,inputPrefixCls:Mn,size:Vn}=Wt,fi=et(Wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Kn}=re.useContext(ke.E_),Bi=Kn("input",Mn),en=Kn("input-password",Ze),Fi=_e&&bn(en),Oi=ce()(en,Ln,{[`${en}-${Vn}`]:!!Vn}),Ot=Object.assign(Object.assign({},(0,Kt.Z)(fi,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:Oi,prefixCls:Bi,suffix:Fi});return Vn&&(Ot.size=Vn),re.createElement(te.Z,Object.assign({ref:(0,$t.sQ)(Ge,ve)},Ot))}),dt=Ft(47472),xt=Ft(92343),Nt=Ft(3113),Ut=Ft(19716),Gt=Ft(33234),se=function(Wt,Ge){var _e={};for(var Ne in Wt)Object.prototype.hasOwnProperty.call(Wt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ne=Object.getOwnPropertySymbols(Wt);We<Ne.length;We++)Ge.indexOf(Ne[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ne[We])&&(_e[Ne[We]]=Wt[Ne[We]]);return _e},Ae=re.forwardRef((Wt,Ge)=>{const{prefixCls:_e,inputPrefixCls:Ne,className:We,size:Re,suffix:ve,enterButton:ne=!1,addonAfter:Ce,loading:bn,disabled:Ln,onSearch:Ze,onChange:Mn,onCompositionStart:Vn,onCompositionEnd:fi}=Wt,Kn=se(Wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Bi,direction:en}=re.useContext(ke.E_),Fi=re.useRef(!1),Oi=Bi("input-search",_e),Ot=Bi("input",Ne),{compactSize:Tt}=(0,Gt.ri)(Oi,en),vt=(0,Ut.Z)(un=>{var Bn;return(Bn=Re!=null?Re:Tt)!==null&&Bn!==void 0?Bn:un}),ft=re.useRef(null),gt=un=>{un&&un.target&&un.type==="click"&&Ze&&Ze(un.target.value,un,{source:"clear"}),Mn&&Mn(un)},At=un=>{var Bn;document.activeElement===((Bn=ft.current)===null||Bn===void 0?void 0:Bn.input)&&un.preventDefault()},ue=un=>{var Bn,ai;Ze&&Ze((ai=(Bn=ft.current)===null||Bn===void 0?void 0:Bn.input)===null||ai===void 0?void 0:ai.value,un,{source:"input"})},xe=un=>{Fi.current||bn||ue(un)},ae=typeof ne=="boolean"?re.createElement(dt.Z,null):null,ye=`${Oi}-button`;let Te;const De=ne||{},Me=De.type&&De.type.__ANT_BUTTON===!0;Me||De.type==="button"?Te=(0,xt.Tm)(De,Object.assign({onMouseDown:At,onClick:un=>{var Bn,ai;(ai=(Bn=De==null?void 0:De.props)===null||Bn===void 0?void 0:Bn.onClick)===null||ai===void 0||ai.call(Bn,un),ue(un)},key:"enterButton"},Me?{className:ye,size:vt}:{})):Te=re.createElement(Nt.ZP,{className:ye,type:ne?"primary":void 0,size:vt,disabled:Ln,key:"enterButton",onMouseDown:At,onClick:ue,loading:bn,icon:ae},ne),Ce&&(Te=[Te,(0,xt.Tm)(Ce,{key:"addonAfter"})]);const sn=ce()(Oi,{[`${Oi}-rtl`]:en==="rtl",[`${Oi}-${vt}`]:!!vt,[`${Oi}-with-button`]:!!ne},We),Gn=un=>{Fi.current=!0,Vn==null||Vn(un)},an=un=>{Fi.current=!1,fi==null||fi(un)};return re.createElement(te.Z,Object.assign({ref:(0,$t.sQ)(ft,Ge),onPressEnter:xe},Kn,{size:vt,onCompositionStart:Gn,onCompositionEnd:an,prefixCls:Ot,addonAfter:Te,suffix:ve,onChange:gt,className:sn,disabled:Ln}))}),Pe=Ft(1643);const qt=te.Z;qt.Group=jt,qt.Search=Ae,qt.TextArea=Pe.Z,qt.Password=ht;var ze=qt},45818:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(se,le){return ce.createElement(ee.Z,(0,Lt.Z)({},se,{ref:le,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt,te=Ft(33853),Pt=Ft(38819),oe=Ft(92310),Kt=Ft.n(oe),$t=Ft(2738),et=Gt=>!isNaN(parseFloat(Gt))&&isFinite(Gt),tt=Ft(36355),lt=Ft(84966),rt=function(Gt,se){var le={};for(var Ae in Gt)Object.prototype.hasOwnProperty.call(Gt,Ae)&&se.indexOf(Ae)<0&&(le[Ae]=Gt[Ae]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Gt);Pe<Ae.length;Pe++)se.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Ae[Pe])&&(le[Ae[Pe]]=Gt[Ae[Pe]]);return le};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 Gt=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Gt+=1,`${se}${Gt}`}})();var Ut=ce.forwardRef((Gt,se)=>{const{prefixCls:le,className:Ae,trigger:Pe,children:qt,defaultCollapsed:ze=!1,theme:Wt="dark",style:Ge={},collapsible:_e=!1,reverseArrow:Ne=!1,width:We=200,collapsedWidth:Re=80,zeroWidthTriggerStyle:ve,breakpoint:ne,onCollapse:Ce,onBreakpoint:bn}=Gt,Ln=rt(Gt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ze}=(0,ce.useContext)(lt.Gs),[Mn,Vn]=(0,ce.useState)("collapsed"in Gt?Gt.collapsed:ze),[fi,Kn]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in Gt&&Vn(Gt.collapsed)},[Gt.collapsed]);const Bi=(vt,ft)=>{"collapsed"in Gt||Vn(vt),Ce==null||Ce(vt,ft)},en=(0,ce.useRef)();en.current=vt=>{Kn(vt.matches),bn==null||bn(vt.matches),Mn!==vt.matches&&Bi(vt.matches,"responsive")},(0,ce.useEffect)(()=>{function vt(gt){return en.current(gt)}let ft;if(typeof window!="undefined"){const{matchMedia:gt}=window;if(gt&&ne&&ne in ht){ft=gt(`(max-width: ${ht[ne]})`);try{ft.addEventListener("change",vt)}catch(At){ft.addListener(vt)}vt(ft)}}return()=>{try{ft==null||ft.removeEventListener("change",vt)}catch(gt){ft==null||ft.removeListener(vt)}}},[ne]),(0,ce.useEffect)(()=>{const vt=xt("ant-sider-");return Ze.addSider(vt),()=>Ze.removeSider(vt)},[]);const Fi=()=>{Bi(!Mn,"clickTrigger")},{getPrefixCls:Oi}=(0,ce.useContext)(tt.E_),Ot=()=>{const vt=Oi("layout-sider",le),ft=(0,$t.Z)(Ln,["collapsed"]),gt=Mn?Re:We,At=et(gt)?`${gt}px`:String(gt),ue=parseFloat(String(Re||0))===0?ce.createElement("span",{onClick:Fi,className:Kt()(`${vt}-zero-width-trigger`,`${vt}-zero-width-trigger-${Ne?"right":"left"}`),style:ve},Pe||ce.createElement(jt,null)):null,ye={expanded:Ne?ce.createElement(Pt.Z,null):ce.createElement(te.Z,null),collapsed:Ne?ce.createElement(te.Z,null):ce.createElement(Pt.Z,null)}[Mn?"collapsed":"expanded"],Te=Pe!==null?ue||ce.createElement("div",{className:`${vt}-trigger`,onClick:Fi,style:{width:At}},Pe||ye):null,De=Object.assign(Object.assign({},Ge),{flex:`0 0 ${At}`,maxWidth:At,minWidth:At,width:At}),Me=Kt()(vt,`${vt}-${Wt}`,{[`${vt}-collapsed`]:!!Mn,[`${vt}-has-trigger`]:_e&&Pe!==null&&!ue,[`${vt}-below`]:!!fi,[`${vt}-zero-width`]:parseFloat(At)===0},Ae);return ce.createElement("aside",Object.assign({className:Me},ft,{style:De,ref:se}),ce.createElement("div",{className:`${vt}-children`},qt),_e||fi&&ue?Te:null)},Tt=ce.useMemo(()=>({siderCollapsed:Mn}),[Mn]);return ce.createElement(dt.Provider,{value:Tt},Ot())})},84966:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{VY:function(){return dt},$_:function(){return ht},h4:function(){return rt},Gs:function(){return $t},ZP:function(){return xt}});var Lt=Ft(26407),ce=Ft(92310),re=Ft.n(ce),ke=Ft(2738),ee=Ft(59301),Vt=Ft(36355),Mt=Ft(83116),te=Nt=>{const{componentCls:Ut,bodyBg:Gt,lightSiderBg:se,lightTriggerBg:le,lightTriggerColor:Ae}=Nt;return{[`${Ut}-sider-light`]:{background:se,[`${Ut}-sider-trigger`]:{color:Ae,background:le},[`${Ut}-sider-zero-width-trigger`]:{color:Ae,background:le,border:`1px solid ${Gt}`,borderInlineStart:0}}}};const Pt=Nt=>{const{antCls:Ut,componentCls:Gt,colorText:se,triggerColor:le,footerBg:Ae,triggerBg:Pe,headerHeight:qt,headerPadding:ze,headerColor:Wt,footerPadding:Ge,triggerHeight:_e,zeroTriggerHeight:Ne,zeroTriggerWidth:We,motionDurationMid:Re,motionDurationSlow:ve,fontSize:ne,borderRadius:Ce,bodyBg:bn,headerBg:Ln,siderBg:Ze}=Nt;return{[Gt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{boxSizing:"border-box"},[`&${Gt}-has-sider`]:{flexDirection:"row",[`> ${Gt}, > ${Gt}-content`]:{width:0}},[`${Gt}-header, &${Gt}-footer`]:{flex:"0 0 auto"},[`${Gt}-sider`]:{position:"relative",minWidth:0,background:Ze,transition:`all ${Re}, 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:le,lineHeight:`${_e}px`,textAlign:"center",background:Pe,cursor:"pointer",transition:`all ${Re}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:qt,insetInlineEnd:-We,zIndex:1,width:We,height:Ne,color:le,fontSize:Nt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ze,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:-We,borderStartStartRadius:Ce,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce}}}}},te(Nt)),{"&-rtl":{direction:"rtl"}}),[`${Gt}-header`]:{height:qt,padding:ze,color:Wt,lineHeight:`${qt}px`,background:Ln,[`${Ut}-menu`]:{lineHeight:"inherit"}},[`${Gt}-footer`]:{padding:Ge,color:se,fontSize:ne,background:Ae},[`${Gt}-content`]:{flex:"auto",minHeight:0}}};var oe=(0,Mt.Z)("Layout",Nt=>[Pt(Nt)],Nt=>{const{colorBgLayout:Ut,controlHeight:Gt,controlHeightLG:se,colorText:le,controlHeightSM:Ae,marginXXS:Pe,colorTextLightSolid:qt,colorBgContainer:ze}=Nt,Wt=se*1.25;return{colorBgHeader:"#001529",colorBgBody:Ut,colorBgTrigger:"#002140",bodyBg:Ut,headerBg:"#001529",headerHeight:Gt*2,headerPadding:`0 ${Wt}px`,headerColor:le,footerPadding:`${Ae}px ${Wt}px`,footerBg:Ut,siderBg:"#001529",triggerHeight:se+Pe*2,triggerBg:"#002140",triggerColor:qt,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:ze,lightTriggerBg:ze,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Kt=function(Nt,Ut){var Gt={};for(var se in Nt)Object.prototype.hasOwnProperty.call(Nt,se)&&Ut.indexOf(se)<0&&(Gt[se]=Nt[se]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,se=Object.getOwnPropertySymbols(Nt);le<se.length;le++)Ut.indexOf(se[le])<0&&Object.prototype.propertyIsEnumerable.call(Nt,se[le])&&(Gt[se[le]]=Nt[se[le]]);return Gt};const $t=ee.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ct(Nt){let{suffixCls:Ut,tagName:Gt,displayName:se}=Nt;return le=>ee.forwardRef((Pe,qt)=>ee.createElement(le,Object.assign({ref:qt,suffixCls:Ut,tagName:Gt},Pe)))}const et=ee.forwardRef((Nt,Ut)=>{const{prefixCls:Gt,suffixCls:se,className:le,tagName:Ae}=Nt,Pe=Kt(Nt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:qt}=ee.useContext(Vt.E_),ze=qt("layout",Gt),[Wt,Ge]=oe(ze),_e=se?`${ze}-${se}`:ze;return Wt(ee.createElement(Ae,Object.assign({className:re()(Gt||_e,le,Ge),ref:Ut},Pe)))}),tt=ee.forwardRef((Nt,Ut)=>{const{direction:Gt}=ee.useContext(Vt.E_),[se,le]=ee.useState([]),{prefixCls:Ae,className:Pe,rootClassName:qt,children:ze,hasSider:Wt,tagName:Ge,style:_e}=Nt,Ne=Kt(Nt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,ke.Z)(Ne,["suffixCls"]),{getPrefixCls:Re,layout:ve}=ee.useContext(Vt.E_),ne=Re("layout",Ae),[Ce,bn]=oe(ne),Ln=re()(ne,{[`${ne}-has-sider`]:typeof Wt=="boolean"?Wt:se.length>0,[`${ne}-rtl`]:Gt==="rtl"},ve==null?void 0:ve.className,Pe,qt,bn),Ze=ee.useMemo(()=>({siderHook:{addSider:Mn=>{le(Vn=>[].concat((0,Lt.Z)(Vn),[Mn]))},removeSider:Mn=>{le(Vn=>Vn.filter(fi=>fi!==Mn))}}}),[]);return Ce(ee.createElement($t.Provider,{value:Ze},ee.createElement(Ge,Object.assign({ref:Ut,className:Ln,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),_e)},We),ze)))}),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,Cn,Ft){"use strict";Ft.d(Cn,{J:function(){return Vt}});var Lt=Ft(59301),ce=Ft(33234),re=Ft(70425),ke=function(Mt,jt){var te={};for(var Pt in Mt)Object.prototype.hasOwnProperty.call(Mt,Pt)&&jt.indexOf(Pt)<0&&(te[Pt]=Mt[Pt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Pt=Object.getOwnPropertySymbols(Mt);oe<Pt.length;oe++)jt.indexOf(Pt[oe])<0&&Object.prototype.propertyIsEnumerable.call(Mt,Pt[oe])&&(te[Pt[oe]]=Mt[Pt[oe]]);return te};const ee=Lt.createContext(null),Vt=Lt.forwardRef((Mt,jt)=>{const{children:te}=Mt,Pt=ke(Mt,["children"]),oe=Lt.useContext(ee),Kt=Lt.useMemo(()=>Object.assign(Object.assign({},oe),Pt),[oe,Pt.prefixCls,Pt.mode,Pt.selectable]);return Lt.createElement(ee.Provider,{value:Kt},Lt.createElement(ce.BR,null,(0,re.supportNodeRef)(te)?Lt.cloneElement(te,{ref:jt}):te))});Cn.Z=ee},20834:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Tt}});var Lt=Ft(15285),ce=Ft(59301),re=Ft(45818),ke=Ft(92310),ee=Ft.n(ke),Vt=Ft(36355),Mt=function(vt,ft){var gt={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&ft.indexOf(At)<0&&(gt[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,At=Object.getOwnPropertySymbols(vt);ue<At.length;ue++)ft.indexOf(At[ue])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[ue])&&(gt[At[ue]]=vt[At[ue]]);return gt},te=vt=>{const{prefixCls:ft,className:gt,dashed:At}=vt,ue=Mt(vt,["prefixCls","className","dashed"]),{getPrefixCls:xe}=ce.useContext(Vt.E_),ae=xe("menu",ft),ye=ee()({[`${ae}-item-divider-dashed`]:!!At},gt);return ce.createElement(Lt.iz,Object.assign({className:ye},ue))},Pt=Ft(11592),oe=Ft(2738),Kt=Ft(6848),$t=Ft(92343),et=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=vt=>{var ft;const{className:gt,children:At,icon:ue,title:xe,danger:ae}=vt,{prefixCls:ye,firstLevel:Te,direction:De,disableMenuItemTitleTooltip:Me,inlineCollapsed:sn}=ce.useContext(et),Gn=ji=>{const er=ce.createElement("span",{className:`${ye}-title-content`},At);return(!ue||(0,$t.l$)(At)&&At.type==="span")&&At&&ji&&Te&&typeof At=="string"?ce.createElement("div",{className:`${ye}-inline-collapsed-noicon`},At.charAt(0)):er},{siderCollapsed:an}=ce.useContext(re.D);let un=xe;typeof xe=="undefined"?un=Te?At:"":xe===!1&&(un="");const Bn={title:un};!an&&!sn&&(Bn.title=null,Bn.open=!1);const ai=(0,Pt.Z)(At).length;let On=ce.createElement(Lt.ck,Object.assign({},(0,oe.Z)(vt,["title","icon","danger"]),{className:ee()({[`${ye}-item-danger`]:ae,[`${ye}-item-only-child`]:(ue?ai+1:ai)===1},gt),title:typeof xe=="string"?xe:void 0}),(0,$t.Tm)(ue,{className:ee()((0,$t.l$)(ue)?(ft=ue.props)===null||ft===void 0?void 0:ft.className:"",`${ye}-item-icon`)}),Gn(sn));return Me||(On=ce.createElement(Kt.Z,Object.assign({},Bn,{placement:De==="rtl"?"left":"right",overlayClassName:`${ye}-inline-collapsed-tooltip`}),On)),On},ht=vt=>{var ft;const{popupClassName:gt,icon:At,title:ue,theme:xe}=vt,ae=ce.useContext(et),{prefixCls:ye,inlineCollapsed:Te,theme:De}=ae,Me=(0,Lt.Xl)();let sn;if(!At)sn=Te&&!Me.length&&ue&&typeof ue=="string"?ce.createElement("div",{className:`${ye}-inline-collapsed-noicon`},ue.charAt(0)):ce.createElement("span",{className:`${ye}-title-content`},ue);else{const an=(0,$t.l$)(ue)&&ue.type==="span";sn=ce.createElement(ce.Fragment,null,(0,$t.Tm)(At,{className:ee()((0,$t.l$)(At)?(ft=At.props)===null||ft===void 0?void 0:ft.className:"",`${ye}-item-icon`)}),an?ue:ce.createElement("span",{className:`${ye}-title-content`},ue))}const Gn=ce.useMemo(()=>Object.assign(Object.assign({},ae),{firstLevel:!1}),[ae]);return ce.createElement(et.Provider,{value:Gn},ce.createElement(Lt.Wd,Object.assign({},(0,oe.Z)(vt,["icon"]),{title:sn,popupClassName:ee()(ye,gt,`${ye}-${xe||De}`)})))},dt=Ft(18785),xt=Ft(70425),Nt=Ft(62892),Ut=Ft(40875),Gt=function(vt,ft){var gt={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&ft.indexOf(At)<0&&(gt[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,At=Object.getOwnPropertySymbols(vt);ue<At.length;ue++)ft.indexOf(At[ue])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[ue])&&(gt[At[ue]]=vt[At[ue]]);return gt};function se(vt){return(vt||[]).map((ft,gt)=>{if(ft&&typeof ft=="object"){const At=ft,{label:ue,children:xe,key:ae,type:ye}=At,Te=Gt(At,["label","children","key","type"]),De=ae!=null?ae:`tmp-${gt}`;return xe||ye==="group"?ye==="group"?ce.createElement(Lt.BW,Object.assign({key:De},Te,{title:ue}),se(xe)):ce.createElement(ht,Object.assign({key:De},Te,{title:ue}),se(xe)):ye==="divider"?ce.createElement(te,Object.assign({key:De},Te)):ce.createElement(lt,Object.assign({key:De},Te),ue)}return null}).filter(ft=>ft)}function le(vt){return ce.useMemo(()=>vt&&se(vt),[vt])}var Ae=Ft(64993),Pe=Ft(17313),qt=Ft(8378),ze=Ft(13826),Wt=Ft(29878),Ge=Ft(83116),_e=Ft(37613),We=vt=>{const{componentCls:ft,motionDurationSlow:gt,horizontalLineHeight:At,colorSplit:ue,lineWidth:xe,lineType:ae,itemPaddingInline:ye}=vt;return{[`${ft}-horizontal`]:{lineHeight:At,border:0,borderBottom:`${xe}px ${ae} ${ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ft}-item, ${ft}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ye},[`> ${ft}-item:hover,
> ${ft}-item-active,
> ${ft}-submenu ${ft}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ft}-item, ${ft}-submenu-title`]:{transition:[`border-color ${gt}`,`background ${gt}`].join(",")},[`${ft}-submenu-arrow`]:{display:"none"}}}},ve=vt=>{let{componentCls:ft,menuArrowOffset:gt}=vt;return{[`${ft}-rtl`]:{direction:"rtl"},[`${ft}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ft}-rtl${ft}-vertical,
${ft}-submenu-rtl ${ft}-vertical`]:{[`${ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${gt})`},"&::after":{transform:`rotate(45deg) translateY(${gt})`}}}}};const ne=vt=>Object.assign({},(0,Pe.oN)(vt));var bn=(vt,ft)=>{const{componentCls:gt,itemColor:At,itemSelectedColor:ue,groupTitleColor:xe,itemBg:ae,subMenuItemBg:ye,itemSelectedBg:Te,activeBarHeight:De,activeBarWidth:Me,activeBarBorderWidth:sn,motionDurationSlow:Gn,motionEaseInOut:an,motionEaseOut:un,itemPaddingInline:Bn,motionDurationMid:ai,itemHoverColor:On,lineType:ji,colorSplit:er,itemDisabledColor:Ji,dangerItemColor:Fr,dangerItemHoverColor:vr,dangerItemSelectedColor:so,dangerItemActiveBg:Yr,dangerItemSelectedBg:Jr,itemHoverBg:Lr,itemActiveBg:Zr,menuSubMenuBg:oo,horizontalItemSelectedColor:Uo,horizontalItemSelectedBg:fs,horizontalItemBorderRadius:eo,horizontalItemHoverBg:Os,popupBg:yo}=vt;return{[`${gt}-${ft}, ${gt}-${ft} > ${gt}`]:{color:At,background:ae,[`&${gt}-root:focus-visible`]:Object.assign({},ne(vt)),[`${gt}-item-group-title`]:{color:xe},[`${gt}-submenu-selected`]:{[`> ${gt}-submenu-title`]:{color:ue}},[`${gt}-item-disabled, ${gt}-submenu-disabled`]:{color:`${Ji} !important`},[`${gt}-item:not(${gt}-item-selected):not(${gt}-submenu-selected)`]:{[`&:hover, > ${gt}-submenu-title:hover`]:{color:On}},[`&:not(${gt}-horizontal)`]:{[`${gt}-item:not(${gt}-item-selected)`]:{"&:hover":{backgroundColor:Lr},"&:active":{backgroundColor:Zr}},[`${gt}-submenu-title`]:{"&:hover":{backgroundColor:Lr},"&:active":{backgroundColor:Zr}}},[`${gt}-item-danger`]:{color:Fr,[`&${gt}-item:hover`]:{[`&:not(${gt}-item-selected):not(${gt}-submenu-selected)`]:{color:vr}},[`&${gt}-item:active`]:{background:Yr}},[`${gt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${gt}-item-selected`]:{color:ue,[`&${gt}-item-danger`]:{color:so},"a, a:hover":{color:"inherit"}},[`& ${gt}-item-selected`]:{backgroundColor:Te,[`&${gt}-item-danger`]:{backgroundColor:Jr}},[`${gt}-item, ${gt}-submenu-title`]:{[`&:not(${gt}-item-disabled):focus-visible`]:Object.assign({},ne(vt))},[`&${gt}-submenu > ${gt}`]:{backgroundColor:oo},[`&${gt}-popup > ${gt}`]:{backgroundColor:yo},[`&${gt}-horizontal`]:Object.assign(Object.assign({},ft==="dark"?{borderBottom:0}:{}),{[`> ${gt}-item, > ${gt}-submenu`]:{top:sn,marginTop:-sn,marginBottom:0,borderRadius:eo,"&::after":{position:"absolute",insetInline:Bn,bottom:0,borderBottom:`${De}px solid transparent`,transition:`border-color ${Gn} ${an}`,content:'""'},"&:hover, &-active, &-open":{background:Os,"&::after":{borderBottomWidth:De,borderBottomColor:Uo}},"&-selected":{color:Uo,backgroundColor:fs,"&:hover":{backgroundColor:fs},"&::after":{borderBottomWidth:De,borderBottomColor:Uo}}}}),[`&${gt}-root`]:{[`&${gt}-inline, &${gt}-vertical`]:{borderInlineEnd:`${sn}px ${ji} ${er}`}},[`&${gt}-inline`]:{[`${gt}-sub${gt}-inline`]:{background:ye},[`${gt}-item, ${gt}-submenu-title`]:sn&&Me?{width:`calc(100% + ${sn}px)`}:{},[`${gt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Me}px solid ${ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ai} ${un}`,`opacity ${ai} ${un}`].join(","),content:'""'},[`&${gt}-item-danger`]:{"&::after":{borderInlineEndColor:so}}},[`${gt}-selected, ${gt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ai} ${an}`,`opacity ${ai} ${an}`].join(",")}}}}}};const Ln=vt=>{const{componentCls:ft,itemHeight:gt,itemMarginInline:At,padding:ue,menuArrowSize:xe,marginXS:ae,itemMarginBlock:ye}=vt,Te=ue+xe+ae;return{[`${ft}-item`]:{position:"relative",overflow:"hidden"},[`${ft}-item, ${ft}-submenu-title`]:{height:gt,lineHeight:`${gt}px`,paddingInline:ue,overflow:"hidden",textOverflow:"ellipsis",marginInline:At,marginBlock:ye,width:`calc(100% - ${At*2}px)`},[`> ${ft}-item,
> ${ft}-submenu > ${ft}-submenu-title`]:{height:gt,lineHeight:`${gt}px`},[`${ft}-item-group-list ${ft}-submenu-title,
${ft}-submenu-title`]:{paddingInlineEnd:Te}}};var Mn=vt=>{const{componentCls:ft,iconCls:gt,itemHeight:At,colorTextLightSolid:ue,dropdownWidth:xe,controlHeightLG:ae,motionDurationMid:ye,motionEaseOut:Te,paddingXL:De,itemMarginInline:Me,fontSizeLG:sn,motionDurationSlow:Gn,paddingXS:an,boxShadowSecondary:un,collapsedWidth:Bn,collapsedIconSize:ai}=vt,On={height:At,lineHeight:`${At}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ft]:{"&-inline, &-vertical":Object.assign({[`&${ft}-root`]:{boxShadow:"none"}},Ln(vt))},[`${ft}-submenu-popup`]:{[`${ft}-vertical`]:Object.assign(Object.assign({},Ln(vt)),{boxShadow:un})}},{[`${ft}-submenu-popup ${ft}-vertical${ft}-sub`]:{minWidth:xe,maxHeight:`calc(100vh - ${ae*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ft}-inline`]:{width:"100%",[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gn}`,`background ${Gn}`,`padding ${ye} ${Te}`].join(","),[`> ${ft}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ft}-sub${ft}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ft}-submenu > ${ft}-submenu-title`]:On,[`& ${ft}-item-group-title`]:{paddingInlineStart:De}},[`${ft}-item`]:On}},{[`${ft}-inline-collapsed`]:{width:Bn,[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu ${ft}-submenu-title`]:{[`> ${ft}-inline-collapsed-noicon`]:{fontSize:sn,textAlign:"center"}}},[`> ${ft}-item,
> ${ft}-item-group > ${ft}-item-group-list > ${ft}-item,
> ${ft}-item-group > ${ft}-item-group-list > ${ft}-submenu > ${ft}-submenu-title,
> ${ft}-submenu > ${ft}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${sn/2}px - ${Me}px)`,textOverflow:"clip",[`
${ft}-submenu-arrow,
${ft}-submenu-expand-icon
`]:{opacity:0},[`${ft}-item-icon, ${gt}`]:{margin:0,fontSize:ai,lineHeight:`${At}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ft}-item-icon, ${gt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ft}-item-icon, ${gt}`]:{display:"none"},"a, a:hover":{color:ue}},[`${ft}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:an})}}]};const Vn=vt=>{const{componentCls:ft,motionDurationSlow:gt,motionDurationMid:At,motionEaseInOut:ue,motionEaseOut:xe,iconCls:ae,iconSize:ye,iconMarginInlineEnd:Te}=vt;return{[`${ft}-item, ${ft}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${gt}`,`background ${gt}`,`padding ${gt} ${ue}`].join(","),[`${ft}-item-icon, ${ae}`]:{minWidth:ye,fontSize:ye,transition:[`font-size ${At} ${xe}`,`margin ${gt} ${ue}`,`color ${gt}`].join(","),"+ span":{marginInlineStart:Te,opacity:1,transition:[`opacity ${gt} ${ue}`,`margin ${gt}`,`color ${gt}`].join(",")}},[`${ft}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${ft}-item-only-child`]:{[`> ${ae}, > ${ft}-item-icon`]:{marginInlineEnd:0}}},[`${ft}-item-disabled, ${ft}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ft}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},fi=vt=>{const{componentCls:ft,motionDurationSlow:gt,motionEaseInOut:At,borderRadius:ue,menuArrowSize:xe,menuArrowOffset:ae}=vt;return{[`${ft}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:vt.margin,width:xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${gt} ${At}, opacity ${gt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xe*.6,height:xe*.15,backgroundColor:"currentcolor",borderRadius:ue,transition:[`background ${gt} ${At}`,`transform ${gt} ${At}`,`top ${gt} ${At}`,`color ${gt} ${At}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ae})`},"&::after":{transform:`rotate(-45deg) translateY(${ae})`}}}}},Kn=vt=>{const{antCls:ft,componentCls:gt,fontSize:At,motionDurationSlow:ue,motionDurationMid:xe,motionEaseInOut:ae,paddingXS:ye,padding:Te,colorSplit:De,lineWidth:Me,zIndexPopup:sn,borderRadiusLG:Gn,subMenuItemBorderRadius:an,menuArrowSize:un,menuArrowOffset:Bn,lineType:ai,menuPanelMaskInset:On,groupTitleLineHeight:ji,groupTitleFontSize:er}=vt;return[{"":{[`${gt}`]:Object.assign(Object.assign({},(0,Pe.dF)()),{"&-hidden":{display:"none"}})},[`${gt}-submenu-hidden`]:{display:"none"}},{[gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(vt)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:At,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${gt}-item`]:{flex:"none"}},[`${gt}-item, ${gt}-submenu, ${gt}-submenu-title`]:{borderRadius:vt.itemBorderRadius},[`${gt}-item-group-title`]:{padding:`${ye}px ${Te}px`,fontSize:er,lineHeight:ji,transition:`all ${ue}`},[`&-horizontal ${gt}-submenu`]:{transition:[`border-color ${ue} ${ae}`,`background ${ue} ${ae}`].join(",")},[`${gt}-submenu, ${gt}-submenu-inline`]:{transition:[`border-color ${ue} ${ae}`,`background ${ue} ${ae}`,`padding ${xe} ${ae}`].join(",")},[`${gt}-submenu ${gt}-sub`]:{cursor:"initial",transition:[`background ${ue} ${ae}`,`padding ${ue} ${ae}`].join(",")},[`${gt}-title-content`]:{transition:`color ${ue}`},[`${gt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${gt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:De,borderStyle:ai,borderWidth:0,borderTopWidth:Me,marginBlock:Me,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Vn(vt)),{[`${gt}-item-group`]:{[`${gt}-item-group-list`]:{margin:0,padding:0,[`${gt}-item, ${gt}-submenu-title`]:{paddingInline:`${At*2}px ${Te}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:sn,borderRadius:Gn,boxShadow:"none",transformOrigin:"0 0",[`&${gt}-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},[`> ${gt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gn},Vn(vt)),fi(vt)),{[`${gt}-item, ${gt}-submenu > ${gt}-submenu-title`]:{borderRadius:an},[`${gt}-submenu-title::after`]:{transition:`transform ${ue} ${ae}`}})}}),fi(vt)),{[`&-inline-collapsed ${gt}-submenu-arrow,
&-inline ${gt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bn})`},"&::after":{transform:`rotate(45deg) translateX(-${Bn})`}},[`${gt}-submenu-open${gt}-submenu-inline > ${gt}-submenu-title > ${gt}-submenu-arrow`]:{transform:`translateY(-${un*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bn})`},"&::before":{transform:`rotate(45deg) translateX(${Bn})`}}})},{[`${ft}-layout-header`]:{[gt]:{lineHeight:"inherit"}}}]};var Bi=(vt,ft)=>(0,Ge.Z)("Menu",At=>{if(ft===!1)return[];const{colorBgElevated:ue,colorPrimary:xe,colorTextLightSolid:ae,controlHeightLG:ye,fontSize:Te,darkItemColor:De,darkDangerItemColor:Me,darkItemBg:sn,darkSubMenuItemBg:Gn,darkItemSelectedColor:an,darkItemSelectedBg:un,darkDangerItemSelectedBg:Bn,darkItemHoverBg:ai,darkGroupTitleColor:On,darkItemHoverColor:ji,darkItemDisabledColor:er,darkDangerItemHoverColor:Ji,darkDangerItemSelectedColor:Fr,darkDangerItemActiveBg:vr}=At,so=Te/7*5,Yr=(0,_e.TS)(At,{menuArrowSize:so,menuHorizontalHeight:ye*1.15,menuArrowOffset:`${so*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ue}),Jr=(0,_e.TS)(Yr,{itemColor:De,itemHoverColor:ji,groupTitleColor:On,itemSelectedColor:an,itemBg:sn,popupBg:sn,subMenuItemBg:Gn,itemActiveBg:"transparent",itemSelectedBg:un,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ai,itemDisabledColor:er,dangerItemColor:Me,dangerItemHoverColor:Ji,dangerItemSelectedColor:Fr,dangerItemActiveBg:vr,dangerItemSelectedBg:Bn,menuSubMenuBg:Gn,horizontalItemSelectedColor:ae,horizontalItemSelectedBg:xe});return[Kn(Yr),We(Yr),Mn(Yr),bn(Yr,"light"),bn(Jr,"dark"),ve(Yr),(0,qt.Z)(Yr),(0,ze.oN)(Yr,"slide-up"),(0,ze.oN)(Yr,"slide-down"),(0,Wt._y)(Yr,"zoom-big")]},At=>{const{colorPrimary:ue,colorError:xe,colorTextDisabled:ae,colorErrorBg:ye,colorText:Te,colorTextDescription:De,colorBgContainer:Me,colorFillAlter:sn,colorFillContent:Gn,lineWidth:an,lineWidthBold:un,controlItemBgActive:Bn,colorBgTextHover:ai,controlHeightLG:On,lineHeight:ji,colorBgElevated:er,marginXXS:Ji,padding:Fr,fontSize:vr,controlHeightSM:so,fontSizeLG:Yr,colorTextLightSolid:Jr,colorErrorHover:Lr}=At,Zr=new Ae.C(Jr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:At.zIndexPopupBase+50,radiusItem:At.borderRadiusLG,itemBorderRadius:At.borderRadiusLG,radiusSubMenuItem:At.borderRadiusSM,subMenuItemBorderRadius:At.borderRadiusSM,colorItemText:Te,itemColor:Te,colorItemTextHover:Te,itemHoverColor:Te,colorItemTextHoverHorizontal:ue,horizontalItemHoverColor:ue,colorGroupTitle:De,groupTitleColor:De,colorItemTextSelected:ue,itemSelectedColor:ue,colorItemTextSelectedHorizontal:ue,horizontalItemSelectedColor:ue,colorItemBg:Me,itemBg:Me,colorItemBgHover:ai,itemHoverBg:ai,colorItemBgActive:Gn,itemActiveBg:Bn,colorSubItemBg:sn,subMenuItemBg:sn,colorItemBgSelected:Bn,itemSelectedBg:Bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:un,activeBarHeight:un,colorActiveBarBorderSize:an,activeBarBorderWidth:an,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:ji,collapsedWidth:On*2,popupBg:er,itemMarginBlock:Ji,itemPaddingInline:Fr,horizontalLineHeight:`${On*1.15}px`,iconSize:vr,iconMarginInlineEnd:so-vr,collapsedIconSize:Yr,groupTitleFontSize:vr,darkItemDisabledColor:new Ae.C(Jr).setAlpha(.25).toRgbString(),darkItemColor:Zr,darkDangerItemColor:xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Jr,darkItemSelectedBg:ue,darkDangerItemSelectedBg:xe,darkItemHoverBg:"transparent",darkGroupTitleColor:Zr,darkItemHoverColor:Jr,darkDangerItemHoverColor:Lr,darkDangerItemSelectedColor:Jr,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),en=function(vt,ft){var gt={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&ft.indexOf(At)<0&&(gt[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,At=Object.getOwnPropertySymbols(vt);ue<At.length;ue++)ft.indexOf(At[ue])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[ue])&&(gt[At[ue]]=vt[At[ue]]);return gt},Oi=(0,ce.forwardRef)((vt,ft)=>{var gt,At;const ue=ce.useContext(Ut.Z),xe=ue||{},{getPrefixCls:ae,getPopupContainer:ye,direction:Te,menu:De}=ce.useContext(Vt.E_),Me=ae(),{prefixCls:sn,className:Gn,style:an,theme:un="light",expandIcon:Bn,_internalDisableMenuItemTitleTooltip:ai,inlineCollapsed:On,siderCollapsed:ji,items:er,children:Ji,rootClassName:Fr,mode:vr,selectable:so,onClick:Yr,overflowedIndicatorPopupClassName:Jr}=vt,Lr=en(vt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zr=(0,oe.Z)(Lr,["collapsedWidth"]),oo=le(er)||Ji;(gt=xe.validator)===null||gt===void 0||gt.call(xe,{mode:vr});const Uo=(0,xt.useEvent)(function(){var Xs;Yr==null||Yr.apply(void 0,arguments),(Xs=xe.onClick)===null||Xs===void 0||Xs.call(xe)}),fs=xe.mode||vr,eo=so!=null?so:xe.selectable,Os=ce.useMemo(()=>ji!==void 0?ji:On,[On,ji]),yo={horizontal:{motionName:`${Me}-slide-up`},inline:(0,Nt.Z)(Me),other:{motionName:`${Me}-zoom-big`}},Xt=ae("menu",sn||xe.prefixCls),[ti,gs]=Bi(Xt,!ue),ia=ee()(`${Xt}-${un}`,De==null?void 0:De.className,Gn);let Zs;if(typeof Bn=="function")Zs=Bn;else if(Bn===null||Bn===!1)Zs=null;else if(xe.expandIcon===null||xe.expandIcon===!1)Zs=null;else{const Xs=Bn!=null?Bn:xe.expandIcon;Zs=(0,$t.Tm)(Xs,{className:ee()(`${Xt}-submenu-expand-icon`,(0,$t.l$)(Xs)?(At=Xs.props)===null||At===void 0?void 0:At.className:"")})}const la=ce.useMemo(()=>({prefixCls:Xt,inlineCollapsed:Os||!1,direction:Te,firstLevel:!0,theme:un,mode:fs,disableMenuItemTitleTooltip:ai}),[Xt,Os,Te,ai,un]);return ti(ce.createElement(Ut.Z.Provider,{value:null},ce.createElement(et.Provider,{value:la},ce.createElement(Lt.ZP,Object.assign({getPopupContainer:ye,overflowedIndicator:ce.createElement(dt.Z,null),overflowedIndicatorPopupClassName:ee()(Xt,`${Xt}-${un}`,Jr),mode:fs,selectable:eo,onClick:Uo},Zr,{inlineCollapsed:Os,style:Object.assign(Object.assign({},De==null?void 0:De.style),an),className:ia,prefixCls:Xt,direction:Te,defaultMotions:yo,expandIcon:Zs,ref:ft,rootClassName:ee()(Fr,gs)}),oo))))});const Ot=(0,ce.forwardRef)((vt,ft)=>{const gt=(0,ce.useRef)(null),At=ce.useContext(re.D);return(0,ce.useImperativeHandle)(ft,()=>({menu:gt.current,focus:ue=>{var xe;(xe=gt.current)===null||xe===void 0||xe.focus(ue)}})),ce.createElement(Oi,Object.assign({ref:gt},vt,At))});Ot.Item=lt,Ot.SubMenu=ht,Ot.Divider=te,Ot.ItemGroup=Lt.BW;var Tt=Ot},58421:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(ye,Te){return ce.createElement(ee.Z,(0,Lt.Z)({},ye,{ref:Te,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt,te=Ft(49198),Pt=Ft(33853),oe=Ft(38819),Kt=Ft(92310),$t=Ft.n(Kt),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),Gt=function(ae){(0,rt.Z)(Te,ae);var ye=(0,ht.Z)(Te);function Te(){var De;(0,tt.Z)(this,Te);for(var Me=arguments.length,sn=new Array(Me),Gn=0;Gn<Me;Gn++)sn[Gn]=arguments[Gn];return De=ye.call.apply(ye,[this].concat(sn)),De.state={goInputText:""},De.getValidValue=function(){var an=De.state.goInputText;return!an||Number.isNaN(an)?void 0:Number(an)},De.buildOptionText=function(an){return"".concat(an," ").concat(De.props.locale.items_per_page)},De.changeSize=function(an){De.props.changeSize(Number(an))},De.handleChange=function(an){De.setState({goInputText:an.target.value})},De.handleBlur=function(an){var un=De.props,Bn=un.goButton,ai=un.quickGo,On=un.rootPrefixCls,ji=De.state.goInputText;Bn||ji===""||(De.setState({goInputText:""}),!(an.relatedTarget&&(an.relatedTarget.className.indexOf("".concat(On,"-item-link"))>=0||an.relatedTarget.className.indexOf("".concat(On,"-item"))>=0))&&ai(De.getValidValue()))},De.go=function(an){var un=De.state.goInputText;un!==""&&(an.keyCode===Nt.ENTER||an.type==="click")&&(De.setState({goInputText:""}),De.props.quickGo(De.getValidValue()))},De}return(0,lt.Z)(Te,[{key:"getPageSizeOptions",value:function(){var Me=this.props,sn=Me.pageSize,Gn=Me.pageSizeOptions;return Gn.some(function(an){return an.toString()===sn.toString()})?Gn:Gn.concat([sn.toString()]).sort(function(an,un){var Bn=Number.isNaN(Number(an))?0:Number(an),ai=Number.isNaN(Number(un))?0:Number(un);return Bn-ai})}},{key:"render",value:function(){var Me=this,sn=this.props,Gn=sn.pageSize,an=sn.locale,un=sn.rootPrefixCls,Bn=sn.changeSize,ai=sn.quickGo,On=sn.goButton,ji=sn.selectComponentClass,er=sn.buildOptionText,Ji=sn.selectPrefixCls,Fr=sn.disabled,vr=this.state.goInputText,so="".concat(un,"-options"),Yr=ji,Jr=null,Lr=null,Zr=null;if(!Bn&&!ai)return null;var oo=this.getPageSizeOptions();if(Bn&&Yr){var Uo=oo.map(function(fs,eo){return ce.createElement(Yr.Option,{key:eo,value:fs.toString()},(er||Me.buildOptionText)(fs))});Jr=ce.createElement(Yr,{disabled:Fr,prefixCls:Ji,showSearch:!1,className:"".concat(so,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Gn||oo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(eo){return eo.parentNode},"aria-label":an.page_size,defaultOpen:!1},Uo)}return ai&&(On&&(Zr=typeof On=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Fr,className:"".concat(so,"-quick-jumper-button")},an.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},On)),Lr=ce.createElement("div",{className:"".concat(so,"-quick-jumper")},an.jump_to,ce.createElement("input",{disabled:Fr,type:"text",value:vr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":an.page}),an.page,Zr)),ce.createElement("li",{className:"".concat(so)},Jr,Lr)}}]),Te}(ce.Component);Gt.defaultProps={pageSizeOptions:["10","20","50","100"]};var se=Gt,le=function(ye){var Te,De=ye.rootPrefixCls,Me=ye.page,sn=ye.active,Gn=ye.className,an=ye.showTitle,un=ye.onClick,Bn=ye.onKeyPress,ai=ye.itemRender,On="".concat(De,"-item"),ji=$t()(On,"".concat(On,"-").concat(Me),(Te={},(0,Ct.Z)(Te,"".concat(On,"-active"),sn),(0,Ct.Z)(Te,"".concat(On,"-disabled"),!Me),(0,Ct.Z)(Te,ye.className,Gn),Te)),er=function(){un(Me)},Ji=function(so){Bn(so,un,Me)},Fr=ai(Me,"page",ce.createElement("a",{rel:"nofollow"},Me));return Fr?ce.createElement("li",{title:an?Me.toString():null,className:ji,onClick:er,onKeyPress:Ji,tabIndex:0},Fr):null},Ae=le;function Pe(){}function qt(ae){var ye=Number(ae);return typeof ye=="number"&&!Number.isNaN(ye)&&isFinite(ye)&&Math.floor(ye)===ye}var ze=function(ye,Te,De){return De};function Wt(ae,ye,Te){var De=typeof ae=="undefined"?ye.pageSize:ae;return Math.floor((Te.total-1)/De)+1}var Ge=function(ae){(0,rt.Z)(Te,ae);var ye=(0,ht.Z)(Te);function Te(De){var Me;(0,tt.Z)(this,Te),Me=ye.call(this,De),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,ai){var On=Me.props.prefixCls,ji=Bn||ce.createElement("button",{type:"button","aria-label":ai,className:"".concat(On,"-item-link")});return typeof Bn=="function"&&(ji=ce.createElement(Bn,(0,et.Z)({},Me.props))),ji},Me.isValid=function(Bn){var ai=Me.props.total;return qt(Bn)&&Bn!==Me.state.current&&qt(ai)&&ai>0},Me.shouldDisplayQuickJumper=function(){var Bn=Me.props,ai=Bn.showQuickJumper,On=Bn.total,ji=Me.state.pageSize;return On<=ji?!1:ai},Me.handleKeyDown=function(Bn){(Bn.keyCode===Nt.ARROW_UP||Bn.keyCode===Nt.ARROW_DOWN)&&Bn.preventDefault()},Me.handleKeyUp=function(Bn){var ai=Me.getValidValue(Bn),On=Me.state.currentInputValue;ai!==On&&Me.setState({currentInputValue:ai}),Bn.keyCode===Nt.ENTER?Me.handleChange(ai):Bn.keyCode===Nt.ARROW_UP?Me.handleChange(ai-1):Bn.keyCode===Nt.ARROW_DOWN&&Me.handleChange(ai+1)},Me.handleBlur=function(Bn){var ai=Me.getValidValue(Bn);Me.handleChange(ai)},Me.changePageSize=function(Bn){var ai=Me.state.current,On=Wt(Bn,Me.state,Me.props);ai=ai>On?On:ai,On===0&&(ai=Me.state.current),typeof Bn=="number"&&("pageSize"in Me.props||Me.setState({pageSize:Bn}),"current"in Me.props||Me.setState({current:ai,currentInputValue:ai})),Me.props.onShowSizeChange(ai,Bn),"onChange"in Me.props&&Me.props.onChange&&Me.props.onChange(ai,Bn)},Me.handleChange=function(Bn){var ai=Me.props,On=ai.disabled,ji=ai.onChange,er=Me.state,Ji=er.pageSize,Fr=er.current,vr=er.currentInputValue;if(Me.isValid(Bn)&&!On){var so=Wt(void 0,Me.state,Me.props),Yr=Bn;return Bn>so?Yr=so:Bn<1&&(Yr=1),"current"in Me.props||Me.setState({current:Yr}),Yr!==vr&&Me.setState({currentInputValue:Yr}),ji(Yr,Ji),Yr}return Fr},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,ai){if(Bn.key==="Enter"||Bn.charCode===13){for(var On=arguments.length,ji=new Array(On>2?On-2:0),er=2;er<On;er++)ji[er-2]=arguments[er];ai.apply(void 0,ji)}},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 ai=Me.props,On=ai.prevIcon,ji=ai.itemRender,er=ji(Bn,"prev",Me.getItemIcon(On,"prev page")),Ji=!Me.hasPrev();return(0,ce.isValidElement)(er)?(0,ce.cloneElement)(er,{disabled:Ji}):er},Me.renderNext=function(Bn){var ai=Me.props,On=ai.nextIcon,ji=ai.itemRender,er=ji(Bn,"next",Me.getItemIcon(On,"next page")),Ji=!Me.hasNext();return(0,ce.isValidElement)(er)?(0,ce.cloneElement)(er,{disabled:Ji}):er};var sn=De.onChange!==Pe,Gn="current"in De;Gn&&!sn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var an=De.defaultCurrent;"current"in De&&(an=De.current);var un=De.defaultPageSize;return"pageSize"in De&&(un=De.pageSize),an=Math.min(an,Wt(un,void 0,De)),Me.state={current:an,currentInputValue:an,pageSize:un},Me}return(0,lt.Z)(Te,[{key:"componentDidUpdate",value:function(Me,sn){var Gn=this.props.prefixCls;if(sn.current!==this.state.current&&this.paginationNode.current){var an=this.paginationNode.current.querySelector(".".concat(Gn,"-item-").concat(sn.current));if(an&&document.activeElement===an){var un;an==null||(un=an.blur)===null||un===void 0||un.call(an)}}}},{key:"getValidValue",value:function(Me){var sn=Me.target.value,Gn=Wt(void 0,this.state,this.props),an=this.state.currentInputValue,un;return sn===""?un=sn:Number.isNaN(Number(sn))?un=an:sn>=Gn?un=Gn:un=Number(sn),un}},{key:"getShowSizeChanger",value:function(){var Me=this.props,sn=Me.showSizeChanger,Gn=Me.total,an=Me.totalBoundaryShowSizeChanger;return typeof sn!="undefined"?sn:Gn>an}},{key:"render",value:function(){var Me=this.props,sn=Me.prefixCls,Gn=Me.className,an=Me.style,un=Me.disabled,Bn=Me.hideOnSinglePage,ai=Me.total,On=Me.locale,ji=Me.showQuickJumper,er=Me.showLessItems,Ji=Me.showTitle,Fr=Me.showTotal,vr=Me.simple,so=Me.itemRender,Yr=Me.showPrevNextJumpers,Jr=Me.jumpPrevIcon,Lr=Me.jumpNextIcon,Zr=Me.selectComponentClass,oo=Me.selectPrefixCls,Uo=Me.pageSizeOptions,fs=this.state,eo=fs.current,Os=fs.pageSize,yo=fs.currentInputValue;if(Bn===!0&&ai<=Os)return null;var Xt=Wt(void 0,this.state,this.props),ti=[],gs=null,ia=null,Zs=null,la=null,Xs=null,Rr=ji&&ji.goButton,_r=er?1:2,Dn=eo-1>0?eo-1:0,Nn=eo+1<Xt?eo+1:Xt,je=(0,dt.Z)(this.props,{aria:!0,data:!0}),ei=Fr&&ce.createElement("li",{className:"".concat(sn,"-total-text")},Fr(ai,[ai===0?0:(eo-1)*Os+1,eo*Os>ai?ai:eo*Os]));if(vr){Rr&&(typeof Rr=="boolean"?Xs=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},On.jump_to_confirm):Xs=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Rr),Xs=ce.createElement("li",{title:Ji?"".concat(On.jump_to).concat(eo,"/").concat(Xt):null,className:"".concat(sn,"-simple-pager")},Xs));var xi=this.renderPrev(Dn);return ce.createElement("ul",(0,Lt.Z)({className:$t()(sn,"".concat(sn,"-simple"),(0,Ct.Z)({},"".concat(sn,"-disabled"),un),Gn),style:an,ref:this.paginationNode},je),ei,xi?ce.createElement("li",{title:Ji?On.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:$t()("".concat(sn,"-prev"),(0,Ct.Z)({},"".concat(sn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},xi):null,ce.createElement("li",{title:Ji?"".concat(eo,"/").concat(Xt):null,className:"".concat(sn,"-simple-pager")},ce.createElement("input",{type:"text",value:yo,disabled:un,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(sn,"-slash")},"/"),Xt),ce.createElement("li",{title:Ji?On.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:$t()("".concat(sn,"-next"),(0,Ct.Z)({},"".concat(sn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Nn)),Xs)}if(Xt<=3+_r*2){var dn={locale:On,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ji,itemRender:so};Xt||ti.push(ce.createElement(Ae,(0,Lt.Z)({},dn,{key:"noPager",page:1,className:"".concat(sn,"-item-disabled")})));for(var Fe=1;Fe<=Xt;Fe+=1){var wn=eo===Fe;ti.push(ce.createElement(Ae,(0,Lt.Z)({},dn,{key:Fe,page:Fe,active:wn})))}}else{var Hn=er?On.prev_3:On.prev_5,Si=er?On.next_3:On.next_5,Di=so(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Jr,"prev page")),tn=so(this.getJumpNextPage(),"jump-next",this.getItemIcon(Lr,"next page"));Yr&&(gs=Di?ce.createElement("li",{title:Ji?Hn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:$t()("".concat(sn,"-jump-prev"),(0,Ct.Z)({},"".concat(sn,"-jump-prev-custom-icon"),!!Jr))},Di):null,ia=tn?ce.createElement("li",{title:Ji?Si:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:$t()("".concat(sn,"-jump-next"),(0,Ct.Z)({},"".concat(sn,"-jump-next-custom-icon"),!!Lr))},tn):null),la=ce.createElement(Ae,{locale:On,last:!0,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Xt,page:Xt,active:!1,showTitle:Ji,itemRender:so}),Zs=ce.createElement(Ae,{locale:On,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ji,itemRender:so});var oi=Math.max(1,eo-_r),Li=Math.min(eo+_r,Xt);eo-1<=_r&&(Li=1+_r*2),Xt-eo<=_r&&(oi=Xt-_r*2);for(var tr=oi;tr<=Li;tr+=1){var kn=eo===tr;ti.push(ce.createElement(Ae,{locale:On,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:tr,page:tr,active:kn,showTitle:Ji,itemRender:so}))}eo-1>=_r*2&&eo!==3&&(ti[0]=(0,ce.cloneElement)(ti[0],{className:"".concat(sn,"-item-after-jump-prev")}),ti.unshift(gs)),Xt-eo>=_r*2&&eo!==Xt-2&&(ti[ti.length-1]=(0,ce.cloneElement)(ti[ti.length-1],{className:"".concat(sn,"-item-before-jump-next")}),ti.push(ia)),oi!==1&&ti.unshift(Zs),Li!==Xt&&ti.push(la)}var ui=!this.hasPrev()||!Xt,Sr=!this.hasNext()||!Xt,cr=this.renderPrev(Dn),zr=this.renderNext(Nn);return ce.createElement("ul",(0,Lt.Z)({className:$t()(sn,Gn,(0,Ct.Z)({},"".concat(sn,"-disabled"),un)),style:an,ref:this.paginationNode},je),ei,cr?ce.createElement("li",{title:Ji?On.prev_page:null,onClick:this.prev,tabIndex:ui?null:0,onKeyPress:this.runIfEnterPrev,className:$t()("".concat(sn,"-prev"),(0,Ct.Z)({},"".concat(sn,"-disabled"),ui)),"aria-disabled":ui},cr):null,ti,zr?ce.createElement("li",{title:Ji?On.next_page:null,onClick:this.next,tabIndex:Sr?null:0,onKeyPress:this.runIfEnterNext,className:$t()("".concat(sn,"-next"),(0,Ct.Z)({},"".concat(sn,"-disabled"),Sr)),"aria-disabled":Sr},zr):null,ce.createElement(se,{disabled:un,locale:On,rootPrefixCls:sn,selectComponentClass:Zr,selectPrefixCls:oo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:eo,pageSize:Os,pageSizeOptions:Uo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Rr}))}}],[{key:"getDerivedStateFromProps",value:function(Me,sn){var Gn={};if("current"in Me&&(Gn.current=Me.current,Me.current!==sn.current&&(Gn.currentInputValue=Gn.current)),"pageSize"in Me&&Me.pageSize!==sn.pageSize){var an=sn.current,un=Wt(Me.pageSize,sn,Me);an=an>un?un:an,"current"in Me||(Gn.current=an,Gn.currentInputValue=an),Gn.pageSize=Me.pageSize}return Gn}}]),Te}(ce.Component);Ge.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Pe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Pe,locale:Ut.Z,style:{},itemRender:ze,totalBoundaryShowSizeChanger:50};var _e=Ge,Ne=Ft(22075),We=Ft(36355),Re=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 Ze=Ft(9937),Mn=Ft(17313),Vn=Ft(83116),fi=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"}}}}}},Bi=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,Ze.x0)(ae)),{width:ae.paginationMiniQuickJumperInputWidth,height:ae.controlHeightSM})}}}},en=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"}}}}},Fi=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,Ze.ik)(ae)),{width:ae.controlHeightLG*1.25,height:ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ae.marginXS,marginInlineEnd:ae.marginXS})}}}},Oi=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,Mn.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"}}),Oi(ae)),Fi(ae)),en(ae)),Bi(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,Mn.Qy)(ae)),[`${ye}-jump-prev, ${ye}-jump-next`]:{"&:focus-visible":Object.assign({[`${ye}-item-link-icon`]:{opacity:1},[`${ye}-item-ellipsis`]:{opacity:0}},(0,Mn.oN)(ae))},[`${ye}-prev, ${ye}-next`]:{[`&:focus-visible ${ye}-item-link`]:Object.assign({},(0,Mn.oN)(ae))}}}};var ft=(0,Vn.Z)("Pagination",ae=>{const ye=(0,fi.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,Ze.e5)(ae),(0,Ze.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})),gt=function(ae,ye){var Te={};for(var De in ae)Object.prototype.hasOwnProperty.call(ae,De)&&ye.indexOf(De)<0&&(Te[De]=ae[De]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,De=Object.getOwnPropertySymbols(ae);Me<De.length;Me++)ye.indexOf(De[Me])<0&&Object.prototype.propertyIsEnumerable.call(ae,De[Me])&&(Te[De[Me]]=ae[De[Me]]);return Te},ue=ae=>{const{prefixCls:ye,selectPrefixCls:Te,className:De,rootClassName:Me,style:sn,size:Gn,locale:an,selectComponentClass:un,responsive:Bn,showSizeChanger:ai}=ae,On=gt(ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ji}=(0,ve.Z)(Bn),{getPrefixCls:er,direction:Ji,pagination:Fr={}}=ce.useContext(We.E_),vr=er("pagination",ye),[so,Yr]=ft(vr),Jr=ai!=null?ai:Fr.showSizeChanger,Lr=ce.useMemo(()=>{const Xt=ce.createElement("span",{className:`${vr}-item-ellipsis`},"\u2022\u2022\u2022"),ti=ce.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(oe.Z,null):ce.createElement(Pt.Z,null)),gs=ce.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(Pt.Z,null):ce.createElement(oe.Z,null)),ia=ce.createElement("a",{className:`${vr}-item-link`},ce.createElement("div",{className:`${vr}-item-container`},Ji==="rtl"?ce.createElement(te.Z,{className:`${vr}-item-link-icon`}):ce.createElement(jt,{className:`${vr}-item-link-icon`}),Xt)),Zs=ce.createElement("a",{className:`${vr}-item-link`},ce.createElement("div",{className:`${vr}-item-container`},Ji==="rtl"?ce.createElement(jt,{className:`${vr}-item-link-icon`}):ce.createElement(te.Z,{className:`${vr}-item-link-icon`}),Xt));return{prevIcon:ti,nextIcon:gs,jumpPrevIcon:ia,jumpNextIcon:Zs}},[Ji,vr]),[Zr]=(0,ne.Z)("Pagination",Ne.Z),oo=Object.assign(Object.assign({},Zr),an),Uo=(0,Re.Z)(Gn),fs=Uo==="small"||!!(ji&&!Uo&&Bn),eo=er("select",Te),Os=$t()({[`${vr}-mini`]:fs,[`${vr}-rtl`]:Ji==="rtl"},Fr==null?void 0:Fr.className,De,Me,Yr),yo=Object.assign(Object.assign({},Fr==null?void 0:Fr.style),sn);return so(ce.createElement(_e,Object.assign({},Lr,On,{style:yo,prefixCls:vr,selectPrefixCls:eo,className:Os,selectComponentClass:un||(fs?bn:Ln),locale:oo,showSizeChanger:Jr})))},xe=ue},13570:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(bn,Ln){return ce.createElement(ee.Z,(0,Lt.Z)({},bn,{ref:Ln,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt,te=Ft(92310),Pt=Ft.n(te),oe=Ft(400),Kt=Ft(33606),$t=Ft(37061),Ct=Ft(18929),et=Ft(10228),tt=Ft(26112);function lt(Ce,bn){var Ln=Ce.disabled,Ze=Ce.prefixCls,Mn=Ce.character,Vn=Ce.characterRender,fi=Ce.index,Kn=Ce.count,Bi=Ce.value,en=Ce.allowHalf,Fi=Ce.focused,Oi=Ce.onHover,Ot=Ce.onClick,Tt=function(ye){Oi(ye,fi)},vt=function(ye){Ot(ye,fi)},ft=function(ye){ye.keyCode===et.Z.ENTER&&Ot(ye,fi)},gt=fi+1,At=new Set([Ze]);Bi===0&&fi===0&&Fi?At.add("".concat(Ze,"-focused")):en&&Bi+.5>=gt&&Bi<gt?(At.add("".concat(Ze,"-half")),At.add("".concat(Ze,"-active")),Fi&&At.add("".concat(Ze,"-focused"))):(gt<=Bi?At.add("".concat(Ze,"-full")):At.add("".concat(Ze,"-zero")),gt===Bi&&Fi&&At.add("".concat(Ze,"-focused")));var ue=typeof Mn=="function"?Mn(Ce):Mn,xe=ce.createElement("li",{className:Pt()(Array.from(At)),ref:bn},ce.createElement("div",{onClick:Ln?null:vt,onKeyDown:Ln?null:ft,onMouseMove:Ln?null:Tt,role:"radio","aria-checked":Bi>fi?"true":"false","aria-posinset":fi+1,"aria-setsize":Kn,tabIndex:Ln?-1:0},ce.createElement("div",{className:"".concat(Ze,"-first")},ue),ce.createElement("div",{className:"".concat(Ze,"-second")},ue)));return Vn&&(xe=Vn(xe,Ce)),xe}var rt=ce.forwardRef(lt);function ht(){var Ce=ce.useRef({});function bn(Ze){return Ce.current[Ze]}function Ln(Ze){return function(Mn){Ce.current[Ze]=Mn}}return[bn,Ln]}function dt(Ce){var bn=Ce.pageXOffset,Ln="scrollLeft";if(typeof bn!="number"){var Ze=Ce.document;bn=Ze.documentElement[Ln],typeof bn!="number"&&(bn=Ze.body[Ln])}return bn}function xt(Ce){var bn,Ln,Ze=Ce.ownerDocument,Mn=Ze.body,Vn=Ze&&Ze.documentElement,fi=Ce.getBoundingClientRect();return bn=fi.left,Ln=fi.top,bn-=Vn.clientLeft||Mn.clientLeft||0,Ln-=Vn.clientTop||Mn.clientTop||0,{left:bn,top:Ln}}function Nt(Ce){var bn=xt(Ce),Ln=Ce.ownerDocument,Ze=Ln.defaultView||Ln.parentWindow;return bn.left+=dt(Ze),bn.left}var Ut=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Gt(Ce,bn){var Ln,Ze=Ce.prefixCls,Mn=Ze===void 0?"rc-rate":Ze,Vn=Ce.className,fi=Ce.defaultValue,Kn=Ce.value,Bi=Ce.count,en=Bi===void 0?5:Bi,Fi=Ce.allowHalf,Oi=Fi===void 0?!1:Fi,Ot=Ce.allowClear,Tt=Ot===void 0?!0:Ot,vt=Ce.character,ft=vt===void 0?"\u2605":vt,gt=Ce.characterRender,At=Ce.disabled,ue=Ce.direction,xe=ue===void 0?"ltr":ue,ae=Ce.tabIndex,ye=ae===void 0?0:ae,Te=Ce.autoFocus,De=Ce.onHoverChange,Me=Ce.onChange,sn=Ce.onFocus,Gn=Ce.onBlur,an=Ce.onKeyDown,un=Ce.onMouseLeave,Bn=(0,$t.Z)(Ce,Ut),ai=ht(),On=(0,Kt.Z)(ai,2),ji=On[0],er=On[1],Ji=ce.useRef(null),Fr=function(){if(!At){var Fe;(Fe=Ji.current)===null||Fe===void 0||Fe.focus()}};ce.useImperativeHandle(bn,function(){return{focus:Fr,blur:function(){if(!At){var Fe;(Fe=Ji.current)===null||Fe===void 0||Fe.blur()}}}});var vr=(0,Ct.Z)(fi||0,{value:Kn}),so=(0,Kt.Z)(vr,2),Yr=so[0],Jr=so[1],Lr=(0,Ct.Z)(null),Zr=(0,Kt.Z)(Lr,2),oo=Zr[0],Uo=Zr[1],fs=function(Fe,wn){var Hn=xe==="rtl",Si=Fe+1;if(Oi){var Di=ji(Fe),tn=Nt(Di),oi=Di.clientWidth;(Hn&&wn-tn>oi/2||!Hn&&wn-tn<oi/2)&&(Si-=.5)}return Si},eo=function(Fe){Jr(Fe),Me==null||Me(Fe)},Os=ce.useState(!1),yo=(0,Kt.Z)(Os,2),Xt=yo[0],ti=yo[1],gs=function(){ti(!0),sn==null||sn()},ia=function(){ti(!1),Gn==null||Gn()},Zs=ce.useState(null),la=(0,Kt.Z)(Zs,2),Xs=la[0],Rr=la[1],_r=function(Fe,wn){var Hn=fs(wn,Fe.pageX);Hn!==oo&&(Rr(Hn),Uo(null)),De==null||De(Hn)},Dn=function(Fe){At||(Rr(null),Uo(null),De==null||De(void 0)),Fe&&(un==null||un(Fe))},Nn=function(Fe,wn){var Hn=fs(wn,Fe.pageX),Si=!1;Tt&&(Si=Hn===Yr),Dn(),eo(Si?0:Hn),Uo(Si?Hn:null)},je=function(Fe){var wn=Fe.keyCode,Hn=xe==="rtl",Si=Yr;wn===et.Z.RIGHT&&Si<en&&!Hn?(Oi?Si+=.5:Si+=1,eo(Si),Fe.preventDefault()):wn===et.Z.LEFT&&Si>0&&!Hn||wn===et.Z.RIGHT&&Si>0&&Hn?(Oi?Si-=.5:Si-=1,eo(Si),Fe.preventDefault()):wn===et.Z.LEFT&&Si<en&&Hn&&(Oi?Si+=.5:Si+=1,eo(Si),Fe.preventDefault()),an==null||an(Fe)};ce.useEffect(function(){Te&&!At&&Fr()},[]);var ei=new Array(en).fill(0).map(function(dn,Fe){return ce.createElement(rt,{ref:er(Fe),index:Fe,count:en,disabled:At,prefixCls:"".concat(Mn,"-star"),allowHalf:Oi,value:Xs===null?Yr:Xs,onClick:Nn,onHover:_r,key:dn||Fe,character:ft,characterRender:gt,focused:Xt})}),xi=Pt()(Mn,Vn,(Ln={},(0,oe.Z)(Ln,"".concat(Mn,"-disabled"),At),(0,oe.Z)(Ln,"".concat(Mn,"-rtl"),xe==="rtl"),Ln));return ce.createElement("ul",(0,Lt.Z)({className:xi,onMouseLeave:Dn,tabIndex:At?-1:ye,onFocus:At?null:gs,onBlur:At?null:ia,onKeyDown:At?null:je,ref:Ji,role:"radiogroup"},(0,tt.Z)(Bn,{aria:!0,data:!0,attr:!0})),ei)}var se=ce.forwardRef(Gt),le=se,Ae=Ft(36355),Pe=Ft(6848),qt=Ft(17313),ze=Ft(83116),Wt=Ft(37613);const Ge=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,qt.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)"}}}),Ge(Ce)),{[`+ ${bn}-text`]:{display:"inline-block",marginInlineStart:Ce.marginXS,fontSize:Ce.fontSize}}),_e(Ce))}};var We=(0,ze.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})),Re=function(Ce,bn){var Ln={};for(var Ze in Ce)Object.prototype.hasOwnProperty.call(Ce,Ze)&&bn.indexOf(Ze)<0&&(Ln[Ze]=Ce[Ze]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,Ze=Object.getOwnPropertySymbols(Ce);Mn<Ze.length;Mn++)bn.indexOf(Ze[Mn])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ze[Mn])&&(Ln[Ze[Mn]]=Ce[Ze[Mn]]);return Ln},ne=ce.forwardRef((Ce,bn)=>{const{prefixCls:Ln,className:Ze,rootClassName:Mn,style:Vn,tooltips:fi,character:Kn=ce.createElement(jt,null)}=Ce,Bi=Re(Ce,["prefixCls","className","rootClassName","style","tooltips","character"]),en=(At,ue)=>{let{index:xe}=ue;return fi?ce.createElement(Pe.Z,{title:fi[xe]},At):At},{getPrefixCls:Fi,direction:Oi,rate:Ot}=ce.useContext(Ae.E_),Tt=Fi("rate",Ln),[vt,ft]=We(Tt),gt=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Vn);return vt(ce.createElement(le,Object.assign({ref:bn,character:Kn,characterRender:en},Bi,{className:Pt()(Ze,Mn,ft,Ot==null?void 0:Ot.className),style:gt,prefixCls:Tt,direction:Oi})))})},57809:function(hi,Cn,Ft){"use strict";var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(77861),ke=Ft(2738),ee=Ft(59301),Vt=Ft(53487),Mt=Ft(62892),jt=Ft(19080),te=Ft(36355),Pt=Ft(1684),oe=Ft(93891),Kt=Ft(19716),$t=Ft(32441),Ct=Ft(33234),et=Ft(14154),tt=Ft(58582),lt=Ft(84443),rt=Ft(66339),ht=function(Gt,se){var le={};for(var Ae in Gt)Object.prototype.hasOwnProperty.call(Gt,Ae)&&se.indexOf(Ae)<0&&(le[Ae]=Gt[Ae]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Gt);Pe<Ae.length;Pe++)se.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Gt,Ae[Pe])&&(le[Ae[Pe]]=Gt[Ae[Pe]]);return le};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",xt=(Gt,se)=>{var le,{prefixCls:Ae,bordered:Pe=!0,className:qt,rootClassName:ze,getPopupContainer:Wt,popupClassName:Ge,dropdownClassName:_e,listHeight:Ne=256,placement:We,listItemHeight:Re=24,size:ve,disabled:ne,notFoundContent:Ce,status:bn,builtinPlacements:Ln,dropdownMatchSelectWidth:Ze,popupMatchSelectWidth:Mn,direction:Vn,style:fi,allowClear:Kn}=Gt,Bi=ht(Gt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:en,getPrefixCls:Fi,renderEmpty:Oi,direction:Ot,virtual:Tt,popupMatchSelectWidth:vt,popupOverflow:ft,select:gt}=ee.useContext(te.E_),At=Fi("select",Ae),ue=Fi(),xe=Vn!=null?Vn:Ot,{compactSize:ae,compactItemClassnames:ye}=(0,Ct.ri)(At,xe),[Te,De]=(0,et.Z)(At),Me=ee.useMemo(()=>{const{mode:yo}=Bi;if(yo!=="combobox")return yo===dt?"combobox":yo},[Bi.mode]),sn=Me==="multiple"||Me==="tags",Gn=(0,lt.Z)(Bi.suffixIcon,Bi.showArrow),an=(le=Mn!=null?Mn:Ze)!==null&&le!==void 0?le:vt,{status:un,hasFeedback:Bn,isFormItemInput:ai,feedbackIcon:On}=ee.useContext($t.aM),ji=(0,jt.F)(un,bn);let er;Ce!==void 0?er=Ce:Me==="combobox"?er=null:er=(Oi==null?void 0:Oi("Select"))||ee.createElement(oe.Z,{componentName:"Select"});const{suffixIcon:Ji,itemIcon:Fr,removeIcon:vr,clearIcon:so}=(0,rt.Z)(Object.assign(Object.assign({},Bi),{multiple:sn,hasFeedback:Bn,feedbackIcon:On,showSuffixIcon:Gn,prefixCls:At,showArrow:Bi.showArrow,componentName:"Select"})),Yr=Kn===!0?{clearIcon:so}:Kn,Jr=(0,ke.Z)(Bi,["suffixIcon","itemIcon"]),Lr=ce()(Ge||_e,{[`${At}-dropdown-${xe}`]:xe==="rtl"},ze,De),Zr=(0,Kt.Z)(yo=>{var Xt;return(Xt=ve!=null?ve:ae)!==null&&Xt!==void 0?Xt:yo}),oo=ee.useContext(Pt.Z),Uo=ne!=null?ne:oo,fs=ce()({[`${At}-lg`]:Zr==="large",[`${At}-sm`]:Zr==="small",[`${At}-rtl`]:xe==="rtl",[`${At}-borderless`]:!Pe,[`${At}-in-form-item`]:ai},(0,jt.Z)(At,ji,Bn),ye,gt==null?void 0:gt.className,qt,ze,De),eo=ee.useMemo(()=>We!==void 0?We:xe==="rtl"?"bottomRight":"bottomLeft",[We,xe]),Os=(0,tt.Z)(Ln,ft);return Te(ee.createElement(re.ZP,Object.assign({ref:se,virtual:Tt,showSearch:gt==null?void 0:gt.showSearch},Jr,{style:Object.assign(Object.assign({},gt==null?void 0:gt.style),fi),dropdownMatchSelectWidth:an,builtinPlacements:Os,transitionName:(0,Mt.m)(ue,"slide-up",Bi.transitionName),listHeight:Ne,listItemHeight:Re,mode:Me,prefixCls:At,placement:eo,direction:xe,suffixIcon:Ji,menuItemSelectedIcon:Fr,removeIcon:vr,allowClear:Yr,notFoundContent:er,className:fs,getPopupContainer:Wt||en,dropdownClassName:Lr,disabled:Uo})))},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,Cn.default=Nt},14154:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Nt}});var Lt=Ft(17313),ce=Ft(74207),re=Ft(37613),ke=Ft(83116),ee=Ft(13826),Vt=Ft(92899);const Mt=Ut=>{const{optionHeight:Gt,optionFontSize:se,optionLineHeight:le,optionPadding:Ae}=Ut;return{position:"relative",display:"block",minHeight:Gt,padding:Ae,color:Ut.colorText,fontWeight:"normal",fontSize:se,lineHeight:le,boxSizing:"border-box"}};var te=Ut=>{const{antCls:Gt,componentCls:se}=Ut,le=`${se}-item`,Ae=`&${Gt}-slide-up-enter${Gt}-slide-up-enter-active`,Pe=`&${Gt}-slide-up-appear${Gt}-slide-up-appear-active`,qt=`&${Gt}-slide-up-leave${Gt}-slide-up-leave-active`,ze=`${se}-dropdown-placement-`;return[{[`${se}-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,[`
${Ae}${ze}bottomLeft,
${Pe}${ze}bottomLeft
`]:{animationName:ee.fJ},[`
${Ae}${ze}topLeft,
${Pe}${ze}topLeft,
${Ae}${ze}topRight,
${Pe}${ze}topRight
`]:{animationName:ee.Qt},[`${qt}${ze}bottomLeft`]:{animationName:ee.Uw},[`
${qt}${ze}topLeft,
${qt}${ze}topRight
`]:{animationName:ee.ly},"&-hidden":{display:"none"},[`${le}`]: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(${le}-option-disabled)`]:{backgroundColor:Ut.optionActiveBg},[`&-selected:not(${le}-option-disabled)`]:{color:Ut.optionSelectedColor,fontWeight:Ut.optionSelectedFontWeight,backgroundColor:Ut.optionSelectedBg,[`${le}-option-state`]:{color:Ut.colorPrimary}},"&-disabled":{[`&${le}-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 Pt=2,oe=Ut=>{let{controlHeightSM:Gt,controlHeight:se,lineWidth:le}=Ut;const Ae=(se-Gt)/2-le,Pe=Math.ceil(Ae/2);return[Ae,Pe]};function Kt(Ut,Gt){const{componentCls:se,iconCls:le}=Ut,Ae=`${se}-selection-overflow`,Pe=Ut.multipleSelectItemHeight,[qt]=oe(Ut),ze=Gt?`${se}-${Gt}`:"";return{[`${se}-multiple${ze}`]:{fontSize:Ut.fontSize,[Ae]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${se}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${qt-Pt}px ${Pt*2}px`,borderRadius:Ut.borderRadius,[`${se}-show-search&`]:{cursor:"text"},[`${se}-disabled&`]:{background:Ut.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Pt}px 0`,lineHeight:`${Pe}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${se}-show-arrow ${se}-selector,
&${se}-allow-clear ${se}-selector
`]:{paddingInlineEnd:Ut.fontSizeIcon+Ut.controlPaddingHorizontal},[`${se}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Pe,marginTop:Pt,marginBottom:Pt,lineHeight:`${Pe-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:Pt*2,paddingInlineStart:Ut.paddingXS,paddingInlineEnd:Ut.paddingXS/2,[`${se}-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",[`> ${le}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ut.colorIconHover}})},[`${Ae}-item + ${Ae}-item`]:{[`${se}-selection-search`]:{marginInlineStart:0}},[`${se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ut.inputPaddingHorizontalBase-qt,"\n &-input,\n &-mirror\n ":{height:Pe,fontFamily:Ut.fontFamily,lineHeight:`${Pe}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"}},[`${se}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ut.inputPaddingHorizontalBase,insetInlineEnd:Ut.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ut.motionDurationSlow}`}}}}var Ct=Ut=>{const{componentCls:Gt}=Ut,se=(0,re.TS)(Ut,{controlHeight:Ut.controlHeightSM,multipleSelectItemHeight:Ut.controlHeightXS,borderRadius:Ut.borderRadiusSM,borderRadiusSM:Ut.borderRadiusXS}),le=(0,re.TS)(Ut,{fontSize:Ut.fontSizeLG,controlHeight:Ut.controlHeightLG,multipleSelectItemHeight:Ut.multipleItemHeightLG,borderRadius:Ut.borderRadiusLG,borderRadiusSM:Ut.borderRadius}),[,Ae]=oe(Ut);return[Kt(Ut),Kt(se,"sm"),{[`${Gt}-multiple${Gt}-sm`]:{[`${Gt}-selection-placeholder`]:{insetInline:Ut.controlPaddingHorizontalSM-Ut.lineWidth},[`${Gt}-selection-search`]:{marginInlineStart:Ae}}},Kt(le,"lg")]};function et(Ut,Gt){const{componentCls:se,inputPaddingHorizontalBase:le,borderRadius:Ae}=Ut,Pe=Ut.controlHeight-Ut.lineWidth*2,qt=Math.ceil(Ut.fontSize*1.25),ze=Gt?`${se}-${Gt}`:"";return{[`${se}-single${ze}`]:{fontSize:Ut.fontSize,[`${se}-selector`]:Object.assign(Object.assign({},(0,Lt.Wf)(Ut)),{display:"flex",borderRadius:Ae,[`${se}-selection-search`]:{position:"absolute",top:0,insetInlineStart:le,insetInlineEnd:le,bottom:0,"&-input":{width:"100%"}},[`
${se}-selection-item,
${se}-selection-placeholder
`]:{padding:0,lineHeight:`${Pe}px`,transition:`all ${Ut.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Pe}px`}},[`${se}-selection-item`]:{position:"relative",userSelect:"none"},[`${se}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${se}-selection-item:after`,`${se}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${se}-show-arrow ${se}-selection-item,
&${se}-show-arrow ${se}-selection-placeholder
`]:{paddingInlineEnd:qt},[`&${se}-open ${se}-selection-item`]:{color:Ut.colorTextPlaceholder},[`&:not(${se}-customize-input)`]:{[`${se}-selector`]:{width:"100%",height:Ut.controlHeight,padding:`0 ${le}px`,[`${se}-selection-search-input`]:{height:Pe},"&:after":{lineHeight:`${Pe}px`}}},[`&${se}-customize-input`]:{[`${se}-selector`]:{"&:after":{display:"none"},[`${se}-selection-search`]:{position:"static",width:"100%"},[`${se}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${le}px`,"&:after":{display:"none"}}}}}}}function tt(Ut){const{componentCls:Gt}=Ut,se=Ut.controlPaddingHorizontalSM-Ut.lineWidth;return[et(Ut),et((0,re.TS)(Ut,{controlHeight:Ut.controlHeightSM,borderRadius:Ut.borderRadiusSM}),"sm"),{[`${Gt}-single${Gt}-sm`]:{[`&:not(${Gt}-customize-input)`]:{[`${Gt}-selection-search`]:{insetInlineStart:se,insetInlineEnd:se},[`${Gt}-selector`]:{padding:`0 ${se}px`},[`&${Gt}-show-arrow ${Gt}-selection-search`]:{insetInlineEnd:se+Ut.fontSize*1.5},[`
&${Gt}-show-arrow ${Gt}-selection-item,
&${Gt}-show-arrow ${Gt}-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:Gt,selectorBg:se}=Ut;return{position:"relative",backgroundColor:se,border:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.colorBorder}`,transition:`all ${Ut.motionDurationMid} ${Ut.motionEaseInOut}`,input:{cursor:"pointer"},[`${Gt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Gt}-disabled&`]:{color:Ut.colorTextDisabled,background:Ut.colorBgContainerDisabled,cursor:"not-allowed",[`${Gt}-multiple&`]:{background:Ut.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Ut,Gt){let se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:le,borderHoverColor:Ae,outlineColor:Pe,antCls:qt}=Gt,ze=se?{[`${le}-selector`]:{borderColor:Ae}}:{};return{[Ut]:{[`&:not(${le}-disabled):not(${le}-customize-input):not(${qt}-pagination-size-changer)`]:Object.assign(Object.assign({},ze),{[`${le}-focused& ${le}-selector`]:{borderColor:Ae,boxShadow:`0 0 0 ${Gt.controlOutlineWidth}px ${Pe}`,outline:0},[`&:hover ${le}-selector`]:{borderColor:Ae}})}}},ht=Ut=>{const{componentCls:Gt}=Ut;return{[`${Gt}-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:Gt,inputPaddingHorizontalBase:se,iconCls:le}=Ut;return{[Gt]:Object.assign(Object.assign({},(0,Lt.Wf)(Ut)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Gt}-customize-input) ${Gt}-selector`]:Object.assign(Object.assign({},lt(Ut)),ht(Ut)),[`${Gt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Lt.vS),[`${Gt}-selection-placeholder`]:Object.assign(Object.assign({},Lt.vS),{flex:1,color:Ut.colorTextPlaceholder,pointerEvents:"none"}),[`${Gt}-arrow`]:Object.assign(Object.assign({},(0,Lt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,height:Ut.fontSizeIcon,marginTop:-Ut.fontSizeIcon/2,color:Ut.colorTextQuaternary,fontSize:Ut.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[le]:{verticalAlign:"top",transition:`transform ${Ut.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Gt}-suffix)`]:{pointerEvents:"auto"}},[`${Gt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Gt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:se,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":{[`${Gt}-clear`]:{opacity:1}}}),[`${Gt}-has-feedback`]:{[`${Gt}-clear`]:{insetInlineEnd:se+Ut.fontSize+Ut.paddingXS}}}},xt=Ut=>{const{componentCls:Gt}=Ut;return[{[Gt]:{[`&-borderless ${Gt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Gt}-in-form-item`]:{width:"100%"}}},dt(Ut),tt(Ut),Ct(Ut),te(Ut),{[`${Gt}-rtl`]:{direction:"rtl"}},rt(Gt,(0,re.TS)(Ut,{borderHoverColor:Ut.colorPrimaryHover,outlineColor:Ut.controlOutline})),rt(`${Gt}-status-error`,(0,re.TS)(Ut,{borderHoverColor:Ut.colorErrorHover,outlineColor:Ut.colorErrorOutline}),!0),rt(`${Gt}-status-warning`,(0,re.TS)(Ut,{borderHoverColor:Ut.colorWarningHover,outlineColor:Ut.colorWarningOutline}),!0),(0,ce.c)(Ut,{borderElCls:`${Gt}-selector`,focusElCls:`${Gt}-focused`})]};var Nt=(0,ke.Z)("Select",(Ut,Gt)=>{let{rootPrefixCls:se}=Gt;const le=(0,re.TS)(Ut,{rootPrefixCls:se,inputPaddingHorizontalBase:Ut.paddingSM-1,multipleSelectItemHeight:Ut.multipleItemHeight});return[xt(le)]},Ut=>{const{fontSize:Gt,lineHeight:se,controlHeight:le,controlPaddingHorizontal:Ae,zIndexPopupBase:Pe,colorText:qt,fontWeightStrong:ze,controlItemBgActive:Wt,controlItemBgHover:Ge,colorBgContainer:_e,colorFillSecondary:Ne,controlHeightLG:We,controlHeightSM:Re,colorBgContainerDisabled:ve,colorTextDisabled:ne}=Ut;return{zIndexPopup:Pe+50,optionSelectedColor:qt,optionSelectedFontWeight:ze,optionSelectedBg:Wt,optionActiveBg:Ge,optionPadding:`${(le-Gt*se)/2}px ${Ae}px`,optionFontSize:Gt,optionLineHeight:se,optionHeight:le,selectorBg:_e,clearBg:_e,singleItemHeightLG:We,multipleItemBg:Ne,multipleItemBorderColor:"transparent",multipleItemHeight:Re,multipleItemHeightLG:le,multipleSelectorBgDisabled:ve,multipleItemColorDisabled:ne,multipleItemBorderColorDisabled:"transparent"}})},58582:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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,ke){return re||Lt(ke)}},84443:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Lt}});function Lt(ce,re){return re!==void 0?re:ce!==null}},66339:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});var Lt=Ft(40001),ce=Ft(19248),re=Ft(99267),ke=Ft(84105),ee=Ft(58617),Vt=Ft(47472),Mt=Ft(59301);function jt(te){let{suffixIcon:Pt,clearIcon:oe,menuItemSelectedIcon:Kt,removeIcon:$t,loading:Ct,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ht,showArrow:dt,componentName:xt}=te;const Nt=oe!=null?oe:Mt.createElement(ce.Z,null),Ut=Ae=>Pt===null&&!tt&&!dt?null:Mt.createElement(Mt.Fragment,null,rt!==!1&&Ae,tt&&ht);let Gt=null;if(Pt!==void 0)Gt=Ut(Pt);else if(Ct)Gt=Ut(Mt.createElement(ee.Z,{spin:!0}));else{const Ae=`${lt}-suffix`;Gt=Pe=>{let{open:qt,showSearch:ze}=Pe;return Ut(qt&&ze?Mt.createElement(Vt.Z,{className:Ae}):Mt.createElement(ke.Z,{className:Ae}))}}let se=null;Kt!==void 0?se=Kt:et?se=Mt.createElement(Lt.Z,null):se=null;let le=null;return $t!==void 0?le=$t:le=Mt.createElement(re.Z,null),{clearIcon:Nt,suffixIcon:Gt,itemIcon:se,removeIcon:le}}},61621:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ft}});var Lt=Ft(92310),ce=Ft.n(Lt),re=Ft(59301),ke=Ft(36355),ee=Ft(2738),Mt=gt=>{const{prefixCls:At,className:ue,style:xe,size:ae,shape:ye}=gt,Te=ce()({[`${At}-lg`]:ae==="large",[`${At}-sm`]:ae==="small"}),De=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,Te,De,ue),style:Object.assign(Object.assign({},Me),xe)})},jt=Ft(93083),te=Ft(83116),Pt=Ft(37613);const oe=new jt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Kt=gt=>({height:gt,lineHeight:`${gt}px`}),$t=gt=>Object.assign({width:gt},Kt(gt)),Ct=gt=>({background:gt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:oe,animationDuration:gt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=gt=>Object.assign({width:gt*5,minWidth:gt*5},Kt(gt)),tt=gt=>{const{skeletonAvatarCls:At,gradientFromColor:ue,controlHeight:xe,controlHeightLG:ae,controlHeightSM:ye}=gt;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue},$t(xe)),[`${At}${At}-circle`]:{borderRadius:"50%"},[`${At}${At}-lg`]:Object.assign({},$t(ae)),[`${At}${At}-sm`]:Object.assign({},$t(ye))}},lt=gt=>{const{controlHeight:At,borderRadiusSM:ue,skeletonInputCls:xe,controlHeightLG:ae,controlHeightSM:ye,gradientFromColor:Te}=gt;return{[`${xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Te,borderRadius:ue},et(At)),[`${xe}-lg`]:Object.assign({},et(ae)),[`${xe}-sm`]:Object.assign({},et(ye))}},rt=gt=>Object.assign({width:gt},Kt(gt)),ht=gt=>{const{skeletonImageCls:At,imageSizeBase:ue,gradientFromColor:xe,borderRadiusSM:ae}=gt;return{[`${At}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:xe,borderRadius:ae},rt(ue*2)),{[`${At}-path`]:{fill:"#bfbfbf"},[`${At}-svg`]:Object.assign(Object.assign({},rt(ue)),{maxWidth:ue*4,maxHeight:ue*4}),[`${At}-svg${At}-svg-circle`]:{borderRadius:"50%"}}),[`${At}${At}-circle`]:{borderRadius:"50%"}}},dt=(gt,At,ue)=>{const{skeletonButtonCls:xe}=gt;return{[`${ue}${xe}-circle`]:{width:At,minWidth:At,borderRadius:"50%"},[`${ue}${xe}-round`]:{borderRadius:At}}},xt=gt=>Object.assign({width:gt*2,minWidth:gt*2},Kt(gt)),Nt=gt=>{const{borderRadiusSM:At,skeletonButtonCls:ue,controlHeight:xe,controlHeightLG:ae,controlHeightSM:ye,gradientFromColor:Te}=gt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Te,borderRadius:At,width:xe*2,minWidth:xe*2},xt(xe))},dt(gt,xe,ue)),{[`${ue}-lg`]:Object.assign({},xt(ae))}),dt(gt,ae,`${ue}-lg`)),{[`${ue}-sm`]:Object.assign({},xt(ye))}),dt(gt,ye,`${ue}-sm`))},Ut=gt=>{const{componentCls:At,skeletonAvatarCls:ue,skeletonTitleCls:xe,skeletonParagraphCls:ae,skeletonButtonCls:ye,skeletonInputCls:Te,skeletonImageCls:De,controlHeight:Me,controlHeightLG:sn,controlHeightSM:Gn,gradientFromColor:an,padding:un,marginSM:Bn,borderRadius:ai,titleHeight:On,blockRadius:ji,paragraphLiHeight:er,controlHeightXS:Ji,paragraphMarginTop:Fr}=gt;return{[`${At}`]:{display:"table",width:"100%",[`${At}-header`]:{display:"table-cell",paddingInlineEnd:un,verticalAlign:"top",[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:an},$t(Me)),[`${ue}-circle`]:{borderRadius:"50%"},[`${ue}-lg`]:Object.assign({},$t(sn)),[`${ue}-sm`]:Object.assign({},$t(Gn))},[`${At}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${xe}`]:{width:"100%",height:On,background:an,borderRadius:ji,[`+ ${ae}`]:{marginBlockStart:Gn}},[`${ae}`]:{padding:0,"> li":{width:"100%",height:er,listStyle:"none",background:an,borderRadius:ji,"+ li":{marginBlockStart:Ji}}},[`${ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${At}-content`]:{[`${xe}, ${ae} > li`]:{borderRadius:ai}}},[`${At}-with-avatar ${At}-content`]:{[`${xe}`]:{marginBlockStart:Bn,[`+ ${ae}`]:{marginBlockStart:Fr}}},[`${At}${At}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Nt(gt)),tt(gt)),lt(gt)),ht(gt)),[`${At}${At}-block`]:{width:"100%",[`${ye}`]:{width:"100%"},[`${Te}`]:{width:"100%"}},[`${At}${At}-active`]:{[`
${xe},
${ae} > li,
${ue},
${ye},
${Te},
${De}
`]:Object.assign({},Ct(gt))}}};var Gt=(0,te.Z)("Skeleton",gt=>{const{componentCls:At}=gt,ue=(0,Pt.TS)(gt,{skeletonAvatarCls:`${At}-avatar`,skeletonTitleCls:`${At}-title`,skeletonParagraphCls:`${At}-paragraph`,skeletonButtonCls:`${At}-button`,skeletonInputCls:`${At}-input`,skeletonImageCls:`${At}-image`,imageSizeBase:gt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${gt.gradientFromColor} 25%, ${gt.gradientToColor} 37%, ${gt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ut(ue)]},gt=>{const{colorFillContent:At,colorFill:ue}=gt,xe=At,ae=ue;return{color:xe,colorGradientEnd:ae,gradientFromColor:xe,gradientToColor:ae,titleHeight:gt.controlHeight/2,blockRadius:gt.borderRadiusSM,paragraphMarginTop:gt.marginLG+gt.marginXXS,paragraphLiHeight:gt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),le=gt=>{const{prefixCls:At,className:ue,rootClassName:xe,active:ae,shape:ye="circle",size:Te="default"}=gt,{getPrefixCls:De}=re.useContext(ke.E_),Me=De("skeleton",At),[sn,Gn]=Gt(Me),an=(0,ee.Z)(gt,["prefixCls","className"]),un=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ae},ue,xe,Gn);return sn(re.createElement("div",{className:un},re.createElement(Mt,Object.assign({prefixCls:`${Me}-avatar`,shape:ye,size:Te},an))))},Pe=gt=>{const{prefixCls:At,className:ue,rootClassName:xe,active:ae,block:ye=!1,size:Te="default"}=gt,{getPrefixCls:De}=re.useContext(ke.E_),Me=De("skeleton",At),[sn,Gn]=Gt(Me),an=(0,ee.Z)(gt,["prefixCls"]),un=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ae,[`${Me}-block`]:ye},ue,xe,Gn);return sn(re.createElement("div",{className:un},re.createElement(Mt,Object.assign({prefixCls:`${Me}-button`,size:Te},an))))};const qt="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=gt=>{const{prefixCls:At,className:ue,rootClassName:xe,style:ae,active:ye}=gt,{getPrefixCls:Te}=re.useContext(ke.E_),De=Te("skeleton",At),[Me,sn]=Gt(De),Gn=ce()(De,`${De}-element`,{[`${De}-active`]:ye},ue,xe,sn);return Me(re.createElement("div",{className:Gn},re.createElement("div",{className:ce()(`${De}-image`,ue),style:ae},re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${De}-image-svg`},re.createElement("path",{d:qt,className:`${De}-image-path`})))))},_e=gt=>{const{prefixCls:At,className:ue,rootClassName:xe,active:ae,block:ye,size:Te="default"}=gt,{getPrefixCls:De}=re.useContext(ke.E_),Me=De("skeleton",At),[sn,Gn]=Gt(Me),an=(0,ee.Z)(gt,["prefixCls"]),un=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ae,[`${Me}-block`]:ye},ue,xe,Gn);return sn(re.createElement("div",{className:un},re.createElement(Mt,Object.assign({prefixCls:`${Me}-input`,size:Te},an))))},Ne=Ft(92413),We={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"},Re=We,ve=Ft(7657),ne=function(At,ue){return re.createElement(ve.Z,(0,Ne.Z)({},At,{ref:ue,icon:Re}))},Ce=re.forwardRef(ne),bn=Ce,Ze=gt=>{const{prefixCls:At,className:ue,rootClassName:xe,style:ae,active:ye,children:Te}=gt,{getPrefixCls:De}=re.useContext(ke.E_),Me=De("skeleton",At),[sn,Gn]=Gt(Me),an=ce()(Me,`${Me}-element`,{[`${Me}-active`]:ye},Gn,ue,xe),un=Te!=null?Te:re.createElement(bn,null);return sn(re.createElement("div",{className:an},re.createElement("div",{className:ce()(`${Me}-image`,ue),style:ae},un)))},Mn=Ft(26407),fi=gt=>{const At=De=>{const{width:Me,rows:sn=2}=gt;if(Array.isArray(Me))return Me[De];if(sn-1===De)return Me},{prefixCls:ue,className:xe,style:ae,rows:ye}=gt,Te=(0,Mn.Z)(Array(ye)).map((De,Me)=>re.createElement("li",{key:Me,style:{width:At(Me)}}));return re.createElement("ul",{className:ce()(ue,xe),style:ae},Te)},Bi=gt=>{let{prefixCls:At,className:ue,width:xe,style:ae}=gt;return re.createElement("h3",{className:ce()(At,ue),style:Object.assign({width:xe},ae)})};function en(gt){return gt&&typeof gt=="object"?gt:{}}function Fi(gt,At){return gt&&!At?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Oi(gt,At){return!gt&&At?{width:"38%"}:gt&&At?{width:"50%"}:{}}function Ot(gt,At){const ue={};return(!gt||!At)&&(ue.width="61%"),!gt&&At?ue.rows=3:ue.rows=2,ue}const Tt=gt=>{const{prefixCls:At,loading:ue,className:xe,rootClassName:ae,style:ye,children:Te,avatar:De=!1,title:Me=!0,paragraph:sn=!0,active:Gn,round:an}=gt,{getPrefixCls:un,direction:Bn,skeleton:ai}=re.useContext(ke.E_),On=un("skeleton",At),[ji,er]=Gt(On);if(ue||!("loading"in gt)){const Ji=!!De,Fr=!!Me,vr=!!sn;let so;if(Ji){const Lr=Object.assign(Object.assign({prefixCls:`${On}-avatar`},Fi(Fr,vr)),en(De));so=re.createElement("div",{className:`${On}-header`},re.createElement(Mt,Object.assign({},Lr)))}let Yr;if(Fr||vr){let Lr;if(Fr){const oo=Object.assign(Object.assign({prefixCls:`${On}-title`},Oi(Ji,vr)),en(Me));Lr=re.createElement(Bi,Object.assign({},oo))}let Zr;if(vr){const oo=Object.assign(Object.assign({prefixCls:`${On}-paragraph`},Ot(Ji,Fr)),en(sn));Zr=re.createElement(fi,Object.assign({},oo))}Yr=re.createElement("div",{className:`${On}-content`},Lr,Zr)}const Jr=ce()(On,{[`${On}-with-avatar`]:Ji,[`${On}-active`]:Gn,[`${On}-rtl`]:Bn==="rtl",[`${On}-round`]:an},ai==null?void 0:ai.className,xe,ae,er);return ji(re.createElement("div",{className:Jr,style:Object.assign(Object.assign({},ai==null?void 0:ai.style),ye)},so,Yr))}return typeof Te!="undefined"?Te:null};Tt.Button=Pe,Tt.Avatar=le,Tt.Input=_e,Tt.Image=Wt,Tt.Node=Ze;var vt=Tt,ft=vt},81327:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return lt}});var Lt=Ft(59301),ce=Ft(92310),re=Ft.n(ce),ke=Ft(11592),ee=Ft(36355),Vt=Ft(33234);const Mt=Lt.createContext({latestIndex:0}),jt=Mt.Provider;var Pt=rt=>{let{className:ht,index:dt,children:xt,split:Nt,style:Ut}=rt;const{latestIndex:Gt}=Lt.useContext(Mt);return xt==null?null:Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:ht,style:Ut},xt),dt<Gt&&Nt&&Lt.createElement("span",{className:`${ht}-split`},Nt))},oe=Ft(2856);function Kt(rt){return["small","middle","large"].includes(rt)}function $t(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:Gt}=Lt.useContext(ee.E_),{size:se=(Ut==null?void 0:Ut.size)||"small",align:le,className:Ae,rootClassName:Pe,children:qt,direction:ze="horizontal",prefixCls:Wt,split:Ge,style:_e,wrap:Ne=!1,classNames:We,styles:Re}=rt,ve=Ct(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ne,Ce]=Array.isArray(se)?se:[se,se],bn=Kt(Ce),Ln=Kt(ne),Ze=$t(Ce),Mn=$t(ne),Vn=(0,ke.Z)(qt,{keepEmpty:!0}),fi=le===void 0&&ze==="horizontal"?"center":le,Kn=Nt("space",Wt),[Bi,en]=(0,oe.Z)(Kn),Fi=re()(Kn,Ut==null?void 0:Ut.className,en,`${Kn}-${ze}`,{[`${Kn}-rtl`]:Gt==="rtl",[`${Kn}-align-${fi}`]:fi,[`${Kn}-gap-row-${Ce}`]:bn,[`${Kn}-gap-col-${ne}`]:Ln},Ae,Pe),Oi=re()(`${Kn}-item`,(dt=We==null?void 0:We.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=Vn.map((gt,At)=>{var ue,xe;gt!=null&&(Ot=At);const ae=gt&&gt.key||`${Oi}-${At}`;return Lt.createElement(Pt,{className:Oi,key:ae,index:At,split:Ge,style:(ue=Re==null?void 0:Re.item)!==null&&ue!==void 0?ue:(xe=Ut==null?void 0:Ut.styles)===null||xe===void 0?void 0:xe.item},gt)}),vt=Lt.useMemo(()=>({latestIndex:Ot}),[Ot]);if(Vn.length===0)return null;const ft={};return Ne&&(ft.flexWrap="wrap"),!Ln&&Mn&&(ft.columnGap=ne),!bn&&Ze&&(ft.rowGap=Ce),Bi(Lt.createElement("div",Object.assign({ref:ht,className:Fi,style:Object.assign(Object.assign(Object.assign({},ft),Ut==null?void 0:Ut.style),_e)},ve),Lt.createElement(jt,{value:vt},Tt)))});tt.Compact=Vt.ZP;var lt=tt},31797:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return Gt}});var Lt=Ft(59301),ce=Ft(56762),re=Ft(92343),ke=Ft(92310),ee=Ft.n(ke),Vt=Ft(36355),Mt=Ft(61621),te=se=>{const{value:le,formatter:Ae,precision:Pe,decimalSeparator:qt,groupSeparator:ze="",prefixCls:Wt}=se;let Ge;if(typeof Ae=="function")Ge=Ae(le);else{const _e=String(le),Ne=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ne||_e==="-")Ge=_e;else{const We=Ne[1];let Re=Ne[2]||"0",ve=Ne[4]||"";Re=Re.replace(/\B(?=(\d{3})+(?!\d))/g,ze),typeof Pe=="number"&&(ve=ve.padEnd(Pe,"0").slice(0,Pe>0?Pe:0)),ve&&(ve=`${qt}${ve}`),Ge=[Lt.createElement("span",{key:"int",className:`${Wt}-content-value-int`},We,Re),ve&&Lt.createElement("span",{key:"decimal",className:`${Wt}-content-value-decimal`},ve)]}}return Lt.createElement("span",{className:`${Wt}-content-value`},Ge)},Pt=Ft(17313),oe=Ft(83116),Kt=Ft(37613);const $t=se=>{const{componentCls:le,marginXXS:Ae,padding:Pe,colorTextDescription:qt,titleFontSize:ze,colorTextHeading:Wt,contentFontSize:Ge,fontFamily:_e}=se;return{[`${le}`]:Object.assign(Object.assign({},(0,Pt.Wf)(se)),{[`${le}-title`]:{marginBottom:Ae,color:qt,fontSize:ze},[`${le}-skeleton`]:{paddingTop:Pe},[`${le}-content`]:{color:Wt,fontSize:Ge,fontFamily:_e,[`${le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${le}-content-prefix, ${le}-content-suffix`]:{display:"inline-block"},[`${le}-content-prefix`]:{marginInlineEnd:Ae},[`${le}-content-suffix`]:{marginInlineStart:Ae}}})}};var Ct=(0,oe.Z)("Statistic",se=>{const le=(0,Kt.TS)(se,{});return[$t(le)]},se=>{const{fontSizeHeading3:le,fontSize:Ae}=se;return{titleFontSize:Ae,contentFontSize:le}}),tt=se=>{const{prefixCls:le,className:Ae,rootClassName:Pe,style:qt,valueStyle:ze,value:Wt=0,title:Ge,valueRender:_e,prefix:Ne,suffix:We,loading:Re=!1,onMouseEnter:ve,onMouseLeave:ne,decimalSeparator:Ce=".",groupSeparator:bn=","}=se,{getPrefixCls:Ln,direction:Ze,statistic:Mn}=Lt.useContext(Vt.E_),Vn=Ln("statistic",le),[fi,Kn]=Ct(Vn),Bi=Lt.createElement(te,Object.assign({decimalSeparator:Ce,groupSeparator:bn,prefixCls:Vn},se,{value:Wt})),en=ee()(Vn,{[`${Vn}-rtl`]:Ze==="rtl"},Mn==null?void 0:Mn.className,Ae,Pe,Kn);return fi(Lt.createElement("div",{className:en,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),qt),onMouseEnter:ve,onMouseLeave:ne},Ge&&Lt.createElement("div",{className:`${Vn}-title`},Ge),Lt.createElement(Mt.Z,{paragraph:!1,loading:Re,className:`${Vn}-skeleton`},Lt.createElement("div",{style:ze,className:`${Vn}-content`},Ne&&Lt.createElement("span",{className:`${Vn}-content-prefix`},Ne),_e?_e(Bi):Bi,We&&Lt.createElement("span",{className:`${Vn}-content-suffix`},We)))))};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(se,le){let Ae=se;const Pe=/\[[^\]]*]/g,qt=(le.match(Pe)||[]).map(_e=>_e.slice(1,-1)),ze=le.replace(Pe,"[]"),Wt=lt.reduce((_e,Ne)=>{let[We,Re]=Ne;if(_e.includes(We)){const ve=Math.floor(Ae/Re);return Ae-=ve*Re,_e.replace(new RegExp(`${We}+`,"g"),ne=>{const Ce=ne.length;return ve.toString().padStart(Ce,"0")})}return _e},ze);let Ge=0;return Wt.replace(Pe,()=>{const _e=qt[Ge];return Ge+=1,_e})}function ht(se,le){const{format:Ae=""}=le,Pe=new Date(se).getTime(),qt=Date.now(),ze=Math.max(Pe-qt,0);return rt(ze,Ae)}const dt=1e3/30;function xt(se){return new Date(se).getTime()}const Nt=se=>{const{value:le,format:Ae="HH:mm:ss",onChange:Pe,onFinish:qt}=se,ze=(0,ce.Z)(),Wt=Lt.useRef(null),Ge=()=>{qt==null||qt(),Wt.current&&(clearInterval(Wt.current),Wt.current=null)},_e=()=>{const Re=xt(le);Re>=Date.now()&&(Wt.current=setInterval(()=>{ze(),Pe==null||Pe(Re-Date.now()),Re<Date.now()&&Ge()},dt))};Lt.useEffect(()=>(_e(),()=>{Wt.current&&(clearInterval(Wt.current),Wt.current=null)}),[le]);const Ne=(Re,ve)=>ht(Re,Object.assign(Object.assign({},ve),{format:Ae})),We=Re=>(0,re.Tm)(Re,{title:void 0});return Lt.createElement(tt,Object.assign({},se,{valueRender:We,formatter:Ne}))};var Ut=Lt.memo(Nt);tt.Countdown=Ut;var Gt=tt},15969:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ze}});var Lt=Ft(58617),ce=Ft(92310),re=Ft.n(ce),ke=Ft(92413),ee=Ft(400),Vt=Ft(33606),Mt=Ft(37061),jt=Ft(59301),te=Ft(18929),Pt=Ft(10228),oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Kt=jt.forwardRef(function(Wt,Ge){var _e,Ne=Wt.prefixCls,We=Ne===void 0?"rc-switch":Ne,Re=Wt.className,ve=Wt.checked,ne=Wt.defaultChecked,Ce=Wt.disabled,bn=Wt.loadingIcon,Ln=Wt.checkedChildren,Ze=Wt.unCheckedChildren,Mn=Wt.onClick,Vn=Wt.onChange,fi=Wt.onKeyDown,Kn=(0,Mt.Z)(Wt,oe),Bi=(0,te.Z)(!1,{value:ve,defaultValue:ne}),en=(0,Vt.Z)(Bi,2),Fi=en[0],Oi=en[1];function Ot(gt,At){var ue=Fi;return Ce||(ue=gt,Oi(ue),Vn==null||Vn(ue,At)),ue}function Tt(gt){gt.which===Pt.Z.LEFT?Ot(!1,gt):gt.which===Pt.Z.RIGHT&&Ot(!0,gt),fi==null||fi(gt)}function vt(gt){var At=Ot(!Fi,gt);Mn==null||Mn(At,gt)}var ft=re()(We,Re,(_e={},(0,ee.Z)(_e,"".concat(We,"-checked"),Fi),(0,ee.Z)(_e,"".concat(We,"-disabled"),Ce),_e));return jt.createElement("button",(0,ke.Z)({},Kn,{type:"button",role:"switch","aria-checked":Fi,disabled:Ce,className:ft,ref:Ge,onKeyDown:Tt,onClick:vt}),bn,jt.createElement("span",{className:"".concat(We,"-inner")},jt.createElement("span",{className:"".concat(We,"-inner-checked")},Ln),jt.createElement("span",{className:"".concat(We,"-inner-unchecked")},Ze)))});Kt.displayName="Switch";var $t=Kt,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:Ge,trackHeightSM:_e,trackPadding:Ne,trackMinWidthSM:We,innerMinMarginSM:Re,innerMaxMarginSM:ve,handleSizeSM:ne}=Wt,Ce=`${Ge}-inner`;return{[Ge]:{[`&${Ge}-small`]:{minWidth:We,height:_e,lineHeight:`${_e}px`,[`${Ge}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Re,[`${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}},[`${Ge}-handle`]:{width:ne,height:ne},[`${Ge}-loading-icon`]:{top:(ne-Wt.switchLoadingIconSize)/2,fontSize:Wt.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:Re,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)`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${ne+Ne}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:Wt.marginXXS/2,marginInlineEnd:-Wt.marginXXS/2}},[`&${Ge}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:-Wt.marginXXS/2,marginInlineEnd:Wt.marginXXS/2}}}}}}},Ut=Wt=>{const{componentCls:Ge,handleSize:_e}=Wt;return{[Ge]:{[`${Ge}-loading-icon${Wt.iconCls}`]:{position:"relative",top:(_e-Wt.fontSize)/2,color:Wt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:Wt.switchColor}}}},Gt=Wt=>{const{componentCls:Ge,motion:_e,trackPadding:Ne,handleBg:We,handleShadow:Re,handleSize:ve}=Wt,ne=`${Ge}-handle`;return{[Ge]:{[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:We,borderRadius:ve/2,boxShadow:Re,transition:`all ${Wt.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${ne}`]:{insetInlineStart:`calc(100% - ${ve+Ne}px)`},[`&:not(${Ge}-disabled):active`]:_e?{[`${ne}::before`]:{insetInlineEnd:Wt.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${ne}::before`]:{insetInlineEnd:0,insetInlineStart:Wt.switchHandleActiveInset}}:{}}}},se=Wt=>{const{componentCls:Ge,trackHeight:_e,trackPadding:Ne,innerMinMargin:We,innerMaxMargin:Re,handleSize:ve}=Wt,ne=`${Ge}-inner`;return{[Ge]:{[ne]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Re,paddingInlineEnd:We,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 - ${Re*2}px)`,marginInlineEnd:`calc(100% - ${ve+Ne*2}px + ${Re*2}px)`},[`${ne}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${ne}`]:{paddingInlineStart:We,paddingInlineEnd:Re,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${ve+Ne*2}px + ${Re*2}px)`,marginInlineEnd:`calc(-100% + ${ve+Ne*2}px - ${Re*2}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:Ne*2,marginInlineEnd:-Ne*2}},[`&${Ge}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:-Ne*2,marginInlineEnd:Ne*2}}}}}},le=Wt=>{const{componentCls:Ge,trackHeight:_e,trackMinWidth:Ne}=Wt;return{[Ge]: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(${Ge}-disabled)`]:{background:Wt.colorTextTertiary}}),(0,ht.Qy)(Wt)),{[`&${Ge}-checked`]:{background:Wt.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:Wt.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:Wt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}};var Ae=(0,dt.Z)("Switch",Wt=>{const Ge=(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[le(Ge),se(Ge),Gt(Ge),Ut(Ge),Nt(Ge)]},Wt=>{const{fontSize:Ge,lineHeight:_e,controlHeight:Ne,colorWhite:We}=Wt,Re=Ge*_e,ve=Ne/2,ne=2,Ce=Re-ne*2,bn=ve-ne*2;return{trackHeight:Re,trackHeightSM:ve,trackMinWidth:Ce*2+ne*4,trackMinWidthSM:bn*2+ne*2,trackPadding:ne,handleBg:We,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}}),Pe=function(Wt,Ge){var _e={};for(var Ne in Wt)Object.prototype.hasOwnProperty.call(Wt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Wt[Ne]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ne=Object.getOwnPropertySymbols(Wt);We<Ne.length;We++)Ge.indexOf(Ne[We])<0&&Object.prototype.propertyIsEnumerable.call(Wt,Ne[We])&&(_e[Ne[We]]=Wt[Ne[We]]);return _e};const qt=jt.forwardRef((Wt,Ge)=>{const{prefixCls:_e,size:Ne,disabled:We,loading:Re,className:ve,rootClassName:ne,style:Ce}=Wt,bn=Pe(Wt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Ln,direction:Ze,switch:Mn}=jt.useContext(et.E_),Vn=jt.useContext(tt.Z),fi=(We!=null?We:Vn)||Re,Kn=Ln("switch",_e),Bi=jt.createElement("div",{className:`${Kn}-handle`},Re&&jt.createElement(Lt.Z,{className:`${Kn}-loading-icon`})),[en,Fi]=Ae(Kn),Oi=(0,lt.Z)(Ne),Ot=re()(Mn==null?void 0:Mn.className,{[`${Kn}-small`]:Oi==="small",[`${Kn}-loading`]:Re,[`${Kn}-rtl`]:Ze==="rtl"},ve,ne,Fi),Tt=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ce);return en(jt.createElement(Ct.Z,{component:"Switch"},jt.createElement($t,Object.assign({},bn,{prefixCls:Kn,className:Ot,style:Tt,disabled:fi,ref:Ge,loadingIcon:Bi}))))});qt.__ANT_SWITCH=!0;var ze=qt},1710:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return ii}});var Lt={},ce="rc-table-internal-hook",re=Ft(33606),ke=Ft(6089),ee=Ft(34280),Vt=Ft(13697),Mt=Ft(59301),jt=Ft(4676);function te(pe){var me=Mt.createContext(void 0),Xe=function(vn){var nn=vn.value,Tn=vn.children,Un=Mt.useRef(nn);Un.current=nn;var Yn=Mt.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),Qe=(0,re.Z)(Yn,1),hn=Qe[0];return(0,ee.Z)(function(){(0,jt.unstable_batchedUpdates)(function(){hn.listeners.forEach(function(mn){mn(nn)})})},[nn]),Mt.createElement(me.Provider,{value:hn},Tn)};return{Context:me,Provider:Xe,defaultValue:pe}}function Pt(pe,me){var Xe=(0,ke.Z)(typeof me=="function"?me:function(mn){if(me===void 0)return mn;if(!Array.isArray(me))return mn[me];var Qn={};return me.forEach(function(Zn){Qn[Zn]=mn[Zn]}),Qn}),Je=Mt.useContext(pe==null?void 0:pe.Context),vn=Je||{},nn=vn.listeners,Tn=vn.getValue,Un=Mt.useRef();Un.current=Xe(Je?Tn():pe==null?void 0:pe.defaultValue);var Yn=Mt.useState({}),Qe=(0,re.Z)(Yn,2),hn=Qe[1];return(0,ee.Z)(function(){if(!Je)return;function mn(Qn){var Zn=Xe(Qn);(0,Vt.Z)(Un.current,Zn,!0)||hn({})}return nn.add(mn),function(){nn.delete(mn)}},[Je]),Un.current}var oe=Ft(92413),Kt=Ft(8654);function $t(){var pe=Mt.createContext(null);function me(){return Mt.useContext(pe)}function Xe(vn,nn){var Tn=(0,Kt.Yr)(vn),Un=function(Qe,hn){var mn=Tn?{ref:hn}:{},Qn=Mt.useRef(0),Zn=Mt.useRef(Qe),ni=me();return ni!==null?Mt.createElement(vn,(0,oe.Z)({},Qe,mn)):((!nn||nn(Zn.current,Qe))&&(Qn.current+=1),Zn.current=Qe,Mt.createElement(pe.Provider,{value:Qn.current},Mt.createElement(vn,(0,oe.Z)({},Qe,mn))))};return Tn?Mt.forwardRef(Un):Un}function Je(vn,nn){var Tn=(0,Kt.Yr)(vn),Un=function(Qe,hn){var mn=Tn?{ref:hn}:{};return me(),Mt.createElement(vn,(0,oe.Z)({},Qe,mn))};return Tn?Mt.memo(Mt.forwardRef(Un),nn):Mt.memo(Un,nn)}return{makeImmutable:Xe,responseImmutable:Je,useImmutableMark:me}}var Ct=$t(),et=Ct.makeImmutable,tt=Ct.responseImmutable,lt=Ct.useImmutableMark,rt=$t(),ht=rt.makeImmutable,dt=rt.responseImmutable,xt=rt.useImmutableMark,Nt=te(),Ut=Nt;function Gt(pe,me){var Xe=Mt.useRef(0);Xe.current+=1;var Je=Mt.useRef(pe),vn=[];Object.keys(pe||{}).map(function(Tn){var Un;(pe==null?void 0:pe[Tn])!==((Un=Je.current)===null||Un===void 0?void 0:Un[Tn])&&vn.push(Tn)}),Je.current=pe;var nn=Mt.useRef([]);return vn.length&&(nn.current=vn),Mt.useDebugValue(Xe.current),Mt.useDebugValue(nn.current.join(", ")),me&&console.log("".concat(me,":"),Xe.current,nn.current),Xe.current}var se=null,le=Mt.memo(function(){var pe=Gt();return Mt.createElement("h1",null,"Render Times: ",pe)});le.displayName="RenderBlock";var Ae=Ft(39559),Pe=Ft(33708),qt=Ft(400),ze=Ft(92310),Wt=Ft.n(ze),Ge=Ft(80547),_e=Ft(97938),Ne=Ft(48736),We=Mt.createContext({renderWithProps:!1}),Re=We,ve="RC_TABLE_KEY";function ne(pe){return pe==null?[]:Array.isArray(pe)?pe:[pe]}function Ce(pe){var me=[],Xe={};return pe.forEach(function(Je){for(var vn=Je||{},nn=vn.key,Tn=vn.dataIndex,Un=nn||ne(Tn).join("-")||ve;Xe[Un];)Un="".concat(Un,"_next");Xe[Un]=!0,me.push(Un)}),me}function bn(pe){return pe!=null}function Ln(pe){return pe&&(0,Ae.Z)(pe)==="object"&&!Array.isArray(pe)&&!Mt.isValidElement(pe)}function Ze(pe,me,Xe,Je,vn,nn){var Tn=Mt.useContext(Re),Un=xt(),Yn=(0,Ge.Z)(function(){if(bn(Je))return[Je];var Qe=me==null||me===""?[]:Array.isArray(me)?me:[me],hn=(0,_e.Z)(pe,Qe),mn=hn,Qn=void 0;if(vn){var Zn=vn(hn,pe,Xe);Ln(Zn)?(mn=Zn.children,Qn=Zn.props,Tn.renderWithProps=!0):mn=Zn}return[mn,Qn]},[Un,pe,Je,me,vn,Xe],function(Qe,hn){if(nn){var mn=(0,re.Z)(Qe,2),Qn=mn[1],Zn=(0,re.Z)(hn,2),ni=Zn[1];return nn(ni,Qn)}return Tn.renderWithProps?!0:!(0,Vt.Z)(Qe,hn,!0)});return Yn}function Mn(pe,me,Xe,Je){var vn=pe+me-1;return pe<=Je&&vn>=Xe}function Vn(pe,me){return Pt(Ut,function(Xe){var Je=Mn(pe,me||1,Xe.hoverStartRow,Xe.hoverEndRow);return[Je,Xe.onHover]})}var fi=function(me){var Xe=me.ellipsis,Je=me.rowType,vn=me.children,nn,Tn=Xe===!0?{showTitle:!0}:Xe;return Tn&&(Tn.showTitle||Je==="header")&&(typeof vn=="string"||typeof vn=="number"?nn=vn.toString():Mt.isValidElement(vn)&&typeof vn.props.children=="string"&&(nn=vn.props.children)),nn};function Kn(pe){var me,Xe,Je,vn,nn,Tn,Un,Yn,Qe=pe.component,hn=pe.children,mn=pe.ellipsis,Qn=pe.scope,Zn=pe.prefixCls,ni=pe.className,Ei=pe.align,li=pe.record,Xi=pe.render,Zi=pe.dataIndex,Ar=pe.renderIndex,br=pe.shouldCellUpdate,io=pe.index,Ii=pe.rowType,Xn=pe.colSpan,Bo=pe.rowSpan,Pr=pe.fixLeft,sr=pe.fixRight,ar=pe.firstFixLeft,qi=pe.lastFixLeft,pr=pe.firstFixRight,Wr=pe.lastFixRight,ho=pe.appendNode,po=pe.additionalProps,Ur=po===void 0?{}:po,jo=pe.isSticky,us="".concat(Zn,"-cell"),qo=Pt(Ut,["supportSticky","allColumnsFixedLeft"]),is=qo.supportSticky,So=qo.allColumnsFixedLeft,wa=Ze(li,Zi,Ar,hn,Xi,br),Vo=(0,re.Z)(wa,2),rs=Vo[0],Cs=Vo[1],qs={},Ua=typeof Pr=="number"&&is,$s=typeof sr=="number"&&is;Ua&&(qs.position="sticky",qs.left=Pr),$s&&(qs.position="sticky",qs.right=sr);var Ko=(me=(Xe=(Je=Cs==null?void 0:Cs.colSpan)!==null&&Je!==void 0?Je:Ur.colSpan)!==null&&Xe!==void 0?Xe:Xn)!==null&&me!==void 0?me:1,Go=(vn=(nn=(Tn=Cs==null?void 0:Cs.rowSpan)!==null&&Tn!==void 0?Tn:Ur.rowSpan)!==null&&nn!==void 0?nn:Bo)!==null&&vn!==void 0?vn:1,ds=Vn(io,Go),es=(0,re.Z)(ds,2),Ts=es[0],ro=es[1],Wo=function(Ao){var Ra;li&&ro(io,io+Go-1),Ur==null||(Ra=Ur.onMouseEnter)===null||Ra===void 0||Ra.call(Ur,Ao)},ha=function(Ao){var Ra;li&&ro(-1,-1),Ur==null||(Ra=Ur.onMouseLeave)===null||Ra===void 0||Ra.call(Ur,Ao)};if(Ko===0||Go===0)return null;var Us=(Un=Ur.title)!==null&&Un!==void 0?Un:fi({rowType:Ii,ellipsis:mn,children:rs}),Ql=Wt()(us,ni,(Yn={},(0,qt.Z)(Yn,"".concat(us,"-fix-left"),Ua&&is),(0,qt.Z)(Yn,"".concat(us,"-fix-left-first"),ar&&is),(0,qt.Z)(Yn,"".concat(us,"-fix-left-last"),qi&&is),(0,qt.Z)(Yn,"".concat(us,"-fix-left-all"),qi&&So&&is),(0,qt.Z)(Yn,"".concat(us,"-fix-right"),$s&&is),(0,qt.Z)(Yn,"".concat(us,"-fix-right-first"),pr&&is),(0,qt.Z)(Yn,"".concat(us,"-fix-right-last"),Wr&&is),(0,qt.Z)(Yn,"".concat(us,"-ellipsis"),mn),(0,qt.Z)(Yn,"".concat(us,"-with-append"),ho),(0,qt.Z)(Yn,"".concat(us,"-fix-sticky"),(Ua||$s)&&jo&&is),(0,qt.Z)(Yn,"".concat(us,"-row-hover"),!Cs&&Ts),Yn),Ur.className,Cs==null?void 0:Cs.className),Fl={};Ei&&(Fl.textAlign=Ei);var Es=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},qs),Ur.style),Fl),Cs==null?void 0:Cs.style),da=rs;return(0,Ae.Z)(da)==="object"&&!Array.isArray(da)&&!Mt.isValidElement(da)&&(da=null),mn&&(qi||pr)&&(da=Mt.createElement("span",{className:"".concat(us,"-content")},da)),Mt.createElement(Qe,(0,oe.Z)({},Cs,Ur,{className:Ql,style:Es,title:Us,scope:Qn,onMouseEnter:Wo,onMouseLeave:ha,colSpan:Ko!==1?Ko:null,rowSpan:Go!==1?Go:null}),ho,da)}var Bi=Mt.memo(Kn);function en(pe,me,Xe,Je,vn,nn){var Tn=Xe[pe]||{},Un=Xe[me]||{},Yn,Qe;Tn.fixed==="left"?Yn=Je.left[vn==="rtl"?me:pe]:Un.fixed==="right"&&(Qe=Je.right[vn==="rtl"?pe:me]);var hn=!1,mn=!1,Qn=!1,Zn=!1,ni=Xe[me+1],Ei=Xe[pe-1],li=!(nn!=null&&nn.children);if(vn==="rtl"){if(Yn!==void 0){var Xi=Ei&&Ei.fixed==="left";Zn=!Xi&&li}else if(Qe!==void 0){var Zi=ni&&ni.fixed==="right";Qn=!Zi&&li}}else if(Yn!==void 0){var Ar=ni&&ni.fixed==="left";hn=!Ar&&li}else if(Qe!==void 0){var br=Ei&&Ei.fixed==="right";mn=!br&&li}return{fixLeft:Yn,fixRight:Qe,lastFixLeft:hn,firstFixRight:mn,lastFixRight:Qn,firstFixLeft:Zn,isSticky:Je.isSticky}}var Fi=Mt.createContext({}),Oi=Fi;function Ot(pe){var me=pe.className,Xe=pe.index,Je=pe.children,vn=pe.colSpan,nn=vn===void 0?1:vn,Tn=pe.rowSpan,Un=pe.align,Yn=Pt(Ut,["prefixCls","direction"]),Qe=Yn.prefixCls,hn=Yn.direction,mn=Mt.useContext(Oi),Qn=mn.scrollColumnIndex,Zn=mn.stickyOffsets,ni=mn.flattenColumns,Ei=mn.columns,li=Xe+nn-1,Xi=li+1===Qn?nn+1:nn,Zi=en(Xe,Xe+Xi-1,ni,Zn,hn,Ei==null?void 0:Ei[Xe]);return Mt.createElement(Bi,(0,oe.Z)({className:me,index:Xe,component:"td",prefixCls:Qe,record:null,dataIndex:null,align:Un,colSpan:Xi,rowSpan:Tn,render:function(){return Je}},Zi))}var Tt=Ft(37061),vt=["children"];function ft(pe){var me=pe.children,Xe=(0,Tt.Z)(pe,vt);return Mt.createElement("tr",Xe,me)}function gt(pe){var me=pe.children;return me}gt.Row=ft,gt.Cell=Ot;var At=gt;function ue(pe){var me=pe.children,Xe=pe.stickyOffsets,Je=pe.flattenColumns,vn=pe.columns,nn=Pt(Ut,"prefixCls"),Tn=Je.length-1,Un=Je[Tn],Yn=Mt.useMemo(function(){return{stickyOffsets:Xe,flattenColumns:Je,scrollColumnIndex:Un!=null&&Un.scrollbar?Tn:null,columns:vn}},[Un,Je,Tn,Xe,vn]);return Mt.createElement(Oi.Provider,{value:Yn},Mt.createElement("tfoot",{className:"".concat(nn,"-summary")},me))}var xe=dt(ue),ae=At,ye=Ft(70425),Te=Ft(29301),De=Ft(29194),Me=Ft(24514),sn=Ft(75152),Gn=Ft(26112);function an(pe,me,Xe,Je,vn,nn,Tn){pe.push({record:me,indent:Xe,index:Tn});var Un=nn(me),Yn=vn==null?void 0:vn.has(Un);if(me&&Array.isArray(me[Je])&&Yn)for(var Qe=0;Qe<me[Je].length;Qe+=1)an(pe,me[Je][Qe],Xe+1,Je,vn,nn,Qe)}function un(pe,me,Xe,Je){var vn=Mt.useMemo(function(){if(Xe!=null&&Xe.size){for(var nn=[],Tn=0;Tn<(pe==null?void 0:pe.length);Tn+=1){var Un=pe[Tn];an(nn,Un,0,me,Xe,Je,Tn)}return nn}return pe==null?void 0:pe.map(function(Yn,Qe){return{record:Yn,indent:0,index:Qe}})},[pe,me,Xe,Je]);return vn}function Bn(pe){var me=pe.prefixCls,Xe=pe.children,Je=pe.component,vn=pe.cellComponent,nn=pe.className,Tn=pe.expanded,Un=pe.colSpan,Yn=pe.isEmpty,Qe=Pt(Ut,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),hn=Qe.scrollbarSize,mn=Qe.fixHeader,Qn=Qe.fixColumn,Zn=Qe.componentWidth,ni=Qe.horizonScroll,Ei=Xe;return(Yn?ni&&Zn:Qn)&&(Ei=Mt.createElement("div",{style:{width:Zn-(mn?hn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},Ei)),Mt.createElement(Je,{className:nn,style:{display:Tn?null:"none"}},Mt.createElement(Bi,{component:vn,prefixCls:me,colSpan:Un},Ei))}var ai=Bn;function On(pe,me,Xe,Je){var vn=Pt(Ut,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),nn=vn.flattenColumns,Tn=vn.expandableType,Un=vn.expandedKeys,Yn=vn.childrenColumnName,Qe=vn.onTriggerExpand,hn=vn.rowExpandable,mn=vn.onRow,Qn=vn.expandRowByClick,Zn=vn.rowClassName,ni=Tn==="nest",Ei=Tn==="row"&&(!hn||hn(pe)),li=Ei||ni,Xi=Un&&Un.has(me),Zi=Yn&&pe&&pe[Yn],Ar=(0,ye.useEvent)(Qe),br=mn==null?void 0:mn(pe,Xe),io=br==null?void 0:br.onClick,Ii=function(sr){Qn&&li&&Qe(pe,sr);for(var ar=arguments.length,qi=new Array(ar>1?ar-1:0),pr=1;pr<ar;pr++)qi[pr-1]=arguments[pr];io==null||io.apply(void 0,[sr].concat(qi))},Xn;typeof Zn=="string"?Xn=Zn:typeof Zn=="function"&&(Xn=Zn(pe,Xe,Je));var Bo=Ce(nn);return(0,Pe.Z)((0,Pe.Z)({},vn),{},{columnsKey:Bo,nestExpandable:ni,expanded:Xi,hasNestChildren:Zi,record:pe,onTriggerExpand:Ar,rowSupportExpand:Ei,expandable:li,rowProps:(0,Pe.Z)((0,Pe.Z)({},br),{},{className:Wt()(Xn,br==null?void 0:br.className),onClick:Ii})})}function ji(pe,me,Xe,Je,vn){var nn=pe.record,Tn=pe.prefixCls,Un=pe.columnsKey,Yn=pe.fixedInfoList,Qe=pe.expandIconColumnIndex,hn=pe.nestExpandable,mn=pe.indentSize,Qn=pe.expandIcon,Zn=pe.expanded,ni=pe.hasNestChildren,Ei=pe.onTriggerExpand,li=Un[Xe],Xi=Yn[Xe],Zi;Xe===(Qe||0)&&hn&&(Zi=Mt.createElement(Mt.Fragment,null,Mt.createElement("span",{style:{paddingLeft:"".concat(mn*Je,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(Je)}),Qn({prefixCls:Tn,expanded:Zn,expandable:ni,record:nn,onExpand:Ei})));var Ar;return me.onCell&&(Ar=me.onCell(nn,vn)),{key:li,fixedInfo:Xi,appendCellNode:Zi,additionalCellProps:Ar||{}}}function er(pe){var me=pe.className,Xe=pe.style,Je=pe.record,vn=pe.index,nn=pe.renderIndex,Tn=pe.rowKey,Un=pe.indent,Yn=Un===void 0?0:Un,Qe=pe.rowComponent,hn=pe.cellComponent,mn=pe.scopeCellComponent,Qn=On(Je,Tn,vn,Yn),Zn=Qn.prefixCls,ni=Qn.flattenColumns,Ei=Qn.expandedRowClassName,li=Qn.expandedRowRender,Xi=Qn.rowProps,Zi=Qn.expanded,Ar=Qn.rowSupportExpand,br=Mt.useState(!1),io=(0,re.Z)(br,2),Ii=io[0],Xn=io[1];Mt.useEffect(function(){Zi&&Xn(!0)},[Zi]);var Bo=Mt.createElement(Qe,(0,oe.Z)({},Xi,{"data-row-key":Tn,className:Wt()(me,"".concat(Zn,"-row"),"".concat(Zn,"-row-level-").concat(Yn),Xi==null?void 0:Xi.className),style:(0,Pe.Z)((0,Pe.Z)({},Xe),Xi==null?void 0:Xi.style)}),ni.map(function(qi,pr){var Wr=qi.render,ho=qi.dataIndex,po=qi.className,Ur=ji(Qn,qi,pr,Yn,vn),jo=Ur.key,us=Ur.fixedInfo,qo=Ur.appendCellNode,is=Ur.additionalCellProps;return Mt.createElement(Bi,(0,oe.Z)({className:po,ellipsis:qi.ellipsis,align:qi.align,scope:qi.rowScope,component:qi.rowScope?mn:hn,prefixCls:Zn,key:jo,record:Je,index:vn,renderIndex:nn,dataIndex:ho,render:Wr,shouldCellUpdate:qi.shouldCellUpdate},us,{appendNode:qo,additionalProps:is}))})),Pr;if(Ar&&(Ii||Zi)){var sr=li(Je,vn,Yn+1,Zi),ar=Ei&&Ei(Je,vn,Yn);Pr=Mt.createElement(ai,{expanded:Zi,className:Wt()("".concat(Zn,"-expanded-row"),"".concat(Zn,"-expanded-row-level-").concat(Yn+1),ar),prefixCls:Zn,component:Qe,cellComponent:hn,colSpan:ni.length,isEmpty:!1},sr)}return Mt.createElement(Mt.Fragment,null,Bo,Pr)}er.displayName="BodyRow";var Ji=dt(er);function Fr(pe){var me=pe.columnKey,Xe=pe.onColumnResize,Je=Mt.useRef();return Mt.useEffect(function(){Je.current&&Xe(me,Je.current.offsetWidth)},[]),Mt.createElement(Te.Z,{data:me},Mt.createElement("td",{ref:Je,style:{padding:0,border:0,height:0}},Mt.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function vr(pe){var me=pe.prefixCls,Xe=pe.columnsKey,Je=pe.onColumnResize;return Mt.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0}},Mt.createElement(Te.Z.Collection,{onBatchResize:function(nn){nn.forEach(function(Tn){var Un=Tn.data,Yn=Tn.size;Je(Un,Yn.offsetWidth)})}},Xe.map(function(vn){return Mt.createElement(Fr,{key:vn,columnKey:vn,onColumnResize:Je})})))}function so(pe){var me=pe.data,Xe=pe.measureColumnWidth,Je=Pt(Ut,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),vn=Je.prefixCls,nn=Je.getComponent,Tn=Je.onColumnResize,Un=Je.flattenColumns,Yn=Je.getRowKey,Qe=Je.expandedKeys,hn=Je.childrenColumnName,mn=Je.emptyNode,Qn=un(me,hn,Qe,Yn),Zn=Mt.useRef({renderWithProps:!1}),ni=nn(["body","wrapper"],"tbody"),Ei=nn(["body","row"],"tr"),li=nn(["body","cell"],"td"),Xi=nn(["body","cell"],"th"),Zi;me.length?Zi=Qn.map(function(br,io){var Ii=br.record,Xn=br.indent,Bo=br.index,Pr=Yn(Ii,io);return Mt.createElement(Ji,{key:Pr,rowKey:Pr,record:Ii,index:io,renderIndex:Bo,rowComponent:Ei,cellComponent:li,scopeCellComponent:Xi,getRowKey:Yn,indent:Xn})}):Zi=Mt.createElement(ai,{expanded:!0,className:"".concat(vn,"-placeholder"),prefixCls:vn,component:Ei,cellComponent:li,colSpan:Un.length,isEmpty:!0},mn);var Ar=Ce(Un);return Mt.createElement(Re.Provider,{value:Zn.current},Mt.createElement(ni,{className:"".concat(vn,"-tbody")},Xe&&Mt.createElement(vr,{prefixCls:vn,columnsKey:Ar,onColumnResize:Tn}),Zi))}so.displayName="Body";var Yr=dt(so),Jr=["expandable"],Lr="RC_TABLE_INTERNAL_COL_DEFINE";function Zr(pe){var me=pe.expandable,Xe=(0,Tt.Z)(pe,Jr),Je;return"expandable"in pe?Je=(0,Pe.Z)((0,Pe.Z)({},Xe),me):Je=Xe,Je.showExpandColumn===!1&&(Je.expandIconColumnIndex=-1),Je}var oo=["columnType"];function Uo(pe){for(var me=pe.colWidths,Xe=pe.columns,Je=pe.columCount,vn=[],nn=Je||Xe.length,Tn=!1,Un=nn-1;Un>=0;Un-=1){var Yn=me[Un],Qe=Xe&&Xe[Un],hn=Qe&&Qe[Lr];if(Yn||hn||Tn){var mn=hn||{},Qn=mn.columnType,Zn=(0,Tt.Z)(mn,oo);vn.unshift(Mt.createElement("col",(0,oe.Z)({key:Un,style:{width:Yn}},Zn))),Tn=!0}}return Mt.createElement("colgroup",null,vn)}var fs=Uo,eo=Ft(26407),Os=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function yo(pe,me){return(0,Mt.useMemo)(function(){for(var Xe=[],Je=0;Je<me;Je+=1){var vn=pe[Je];if(vn!==void 0)Xe[Je]=vn;else return null}return Xe},[pe.join("_"),me])}var Xt=Mt.forwardRef(function(pe,me){var Xe=pe.className,Je=pe.noData,vn=pe.columns,nn=pe.flattenColumns,Tn=pe.colWidths,Un=pe.columCount,Yn=pe.stickyOffsets,Qe=pe.direction,hn=pe.fixHeader,mn=pe.stickyTopOffset,Qn=pe.stickyBottomOffset,Zn=pe.stickyClassName,ni=pe.onScroll,Ei=pe.maxContentScroll,li=pe.children,Xi=(0,Tt.Z)(pe,Os),Zi=Pt(Ut,["prefixCls","scrollbarSize","isSticky"]),Ar=Zi.prefixCls,br=Zi.scrollbarSize,io=Zi.isSticky,Ii=io&&!hn?0:br,Xn=Mt.useRef(null),Bo=Mt.useCallback(function(po){(0,Kt.mH)(me,po),(0,Kt.mH)(Xn,po)},[]);Mt.useEffect(function(){var po;function Ur(jo){var us=jo,qo=us.currentTarget,is=us.deltaX;is&&(ni({currentTarget:qo,scrollLeft:qo.scrollLeft+is}),jo.preventDefault())}return(po=Xn.current)===null||po===void 0||po.addEventListener("wheel",Ur),function(){var jo;(jo=Xn.current)===null||jo===void 0||jo.removeEventListener("wheel",Ur)}},[]);var Pr=Mt.useMemo(function(){return nn.every(function(po){return po.width})},[nn]),sr=nn[nn.length-1],ar={fixed:sr?sr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ar,"-cell-scrollbar")}}},qi=(0,Mt.useMemo)(function(){return Ii?[].concat((0,eo.Z)(vn),[ar]):vn},[Ii,vn]),pr=(0,Mt.useMemo)(function(){return Ii?[].concat((0,eo.Z)(nn),[ar]):nn},[Ii,nn]),Wr=(0,Mt.useMemo)(function(){var po=Yn.right,Ur=Yn.left;return(0,Pe.Z)((0,Pe.Z)({},Yn),{},{left:Qe==="rtl"?[].concat((0,eo.Z)(Ur.map(function(jo){return jo+Ii})),[0]):Ur,right:Qe==="rtl"?po:[].concat((0,eo.Z)(po.map(function(jo){return jo+Ii})),[0]),isSticky:io})},[Ii,Yn,io]),ho=yo(Tn,Un);return Mt.createElement("div",{style:(0,Pe.Z)({overflow:"hidden"},io?{top:mn,bottom:Qn}:{}),ref:Bo,className:Wt()(Xe,(0,qt.Z)({},Zn,!!Zn))},Mt.createElement("table",{style:{tableLayout:"fixed",visibility:Je||ho?null:"hidden"}},(!Je||!Ei||Pr)&&Mt.createElement(fs,{colWidths:ho?[].concat((0,eo.Z)(ho),[Ii]):[],columCount:Un+1,columns:pr}),li((0,Pe.Z)((0,Pe.Z)({},Xi),{},{stickyOffsets:Wr,columns:qi,flattenColumns:pr}))))});Xt.displayName="FixedHolder";var ti=Mt.memo(Xt);function gs(pe){var me=pe.cells,Xe=pe.stickyOffsets,Je=pe.flattenColumns,vn=pe.rowComponent,nn=pe.cellComponent,Tn=pe.tdCellComponent,Un=pe.onHeaderRow,Yn=pe.index,Qe=Pt(Ut,["prefixCls","direction"]),hn=Qe.prefixCls,mn=Qe.direction,Qn;Un&&(Qn=Un(me.map(function(ni){return ni.column}),Yn));var Zn=Ce(me.map(function(ni){return ni.column}));return Mt.createElement(vn,Qn,me.map(function(ni,Ei){var li=ni.column,Xi=en(ni.colStart,ni.colEnd,Je,Xe,mn,li),Zi;return li&&li.onHeaderCell&&(Zi=ni.column.onHeaderCell(li)),Mt.createElement(Bi,(0,oe.Z)({},ni,{scope:li.title?ni.colSpan>1?"colgroup":"col":null,ellipsis:li.ellipsis,align:li.align,component:li.title?nn:Tn,prefixCls:hn,key:Zn[Ei]},Xi,{additionalProps:Zi,rowType:"header"}))}))}gs.displayName="HeaderRow";var ia=gs;function Zs(pe){var me=[];function Xe(Tn,Un){var Yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[Yn]=me[Yn]||[];var Qe=Un,hn=Tn.filter(Boolean).map(function(mn){var Qn={key:mn.key,className:mn.className||"",children:mn.title,column:mn,colStart:Qe},Zn=1,ni=mn.children;return ni&&ni.length>0&&(Zn=Xe(ni,Qe,Yn+1).reduce(function(Ei,li){return Ei+li},0),Qn.hasSubColumns=!0),"colSpan"in mn&&(Zn=mn.colSpan),"rowSpan"in mn&&(Qn.rowSpan=mn.rowSpan),Qn.colSpan=Zn,Qn.colEnd=Qn.colStart+Zn-1,me[Yn].push(Qn),Qe+=Zn,Zn});return hn}Xe(pe,0);for(var Je=me.length,vn=function(Un){me[Un].forEach(function(Yn){!("rowSpan"in Yn)&&!Yn.hasSubColumns&&(Yn.rowSpan=Je-Un)})},nn=0;nn<Je;nn+=1)vn(nn);return me}function la(pe){var me=pe.stickyOffsets,Xe=pe.columns,Je=pe.flattenColumns,vn=pe.onHeaderRow,nn=Pt(Ut,["prefixCls","getComponent"]),Tn=nn.prefixCls,Un=nn.getComponent,Yn=Mt.useMemo(function(){return Zs(Xe)},[Xe]),Qe=Un(["header","wrapper"],"thead"),hn=Un(["header","row"],"tr"),mn=Un(["header","cell"],"th"),Qn=Un(["header","cell"],"td");return Mt.createElement(Qe,{className:"".concat(Tn,"-thead")},Yn.map(function(Zn,ni){var Ei=Mt.createElement(ia,{key:ni,flattenColumns:Je,cells:Zn,stickyOffsets:me,rowComponent:hn,cellComponent:mn,tdCellComponent:Qn,onHeaderRow:vn,index:ni});return Ei}))}var Xs=dt(la),Rr=Ft(11592);function _r(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 Dn(pe,me){return Mt.useMemo(function(){if(me&&me>0){var Xe=0,Je=0;pe.forEach(function(Qe){var hn=_r(me,Qe.width);hn?Xe+=hn:Je+=1});var vn=me-Xe,nn=Je,Tn=vn/Je,Un=0,Yn=pe.map(function(Qe){var hn=(0,Pe.Z)({},Qe),mn=_r(me,hn.width);if(mn)hn.width=mn;else{var Qn=Math.floor(Tn);hn.width=nn===1?vn:Qn,vn-=Qn,nn-=1}return Un+=hn.width,hn});return[Yn,Un]}return[pe,me]},[pe,me])}var Nn=["children"],je=["fixed"];function ei(pe){return(0,Rr.Z)(pe).filter(function(me){return Mt.isValidElement(me)}).map(function(me){var Xe=me.key,Je=me.props,vn=Je.children,nn=(0,Tt.Z)(Je,Nn),Tn=(0,Pe.Z)({key:Xe},nn);return vn&&(Tn.children=ei(vn)),Tn})}function xi(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return pe.filter(function(Xe){return Xe&&(0,Ae.Z)(Xe)==="object"}).reduce(function(Xe,Je,vn){var nn=Je.fixed,Tn=nn===!0?"left":nn,Un="".concat(me,"-").concat(vn),Yn=Je.children;return Yn&&Yn.length>0?[].concat((0,eo.Z)(Xe),(0,eo.Z)(xi(Yn,Un).map(function(Qe){return(0,Pe.Z)({fixed:Tn},Qe)}))):[].concat((0,eo.Z)(Xe),[(0,Pe.Z)((0,Pe.Z)({key:Un},Je),{},{fixed:Tn})])},[])}function dn(pe){for(var me=!0,Xe=0;Xe<pe.length;Xe+=1){var Je=pe[Xe];if(me&&Je.fixed!=="left")me=!1;else if(!me&&Je.fixed==="left"){warning(!1,"Index ".concat(Xe-1," of `columns` missing `fixed='left'` prop."));break}}for(var vn=!0,nn=pe.length-1;nn>=0;nn-=1){var Tn=pe[nn];if(vn&&Tn.fixed!=="right")vn=!1;else if(!vn&&Tn.fixed==="right"){warning(!1,"Index ".concat(nn+1," of `columns` missing `fixed='right'` prop."));break}}}function Fe(pe){return pe.map(function(me){var Xe=me.fixed,Je=(0,Tt.Z)(me,je),vn=Xe;return Xe==="left"?vn="right":Xe==="right"&&(vn="left"),(0,Pe.Z)({fixed:vn},Je)})}function wn(pe,me){var Xe=pe.prefixCls,Je=pe.columns,vn=pe.children,nn=pe.expandable,Tn=pe.expandedKeys,Un=pe.columnTitle,Yn=pe.getRowKey,Qe=pe.onTriggerExpand,hn=pe.expandIcon,mn=pe.rowExpandable,Qn=pe.expandIconColumnIndex,Zn=pe.direction,ni=pe.expandRowByClick,Ei=pe.columnWidth,li=pe.fixed,Xi=pe.scrollWidth,Zi=Mt.useMemo(function(){return Je||ei(vn)},[Je,vn]),Ar=Mt.useMemo(function(){if(nn){var sr,ar=Zi.slice();if(!ar.includes(Lt)){var qi=Qn||0;qi>=0&&ar.splice(qi,0,Lt)}var pr=ar.indexOf(Lt);ar=ar.filter(function(Ur,jo){return Ur!==Lt||jo===pr});var Wr=Zi[pr],ho;(li==="left"||li)&&!Qn?ho="left":(li==="right"||li)&&Qn===Zi.length?ho="right":ho=Wr?Wr.fixed:null;var po=(sr={},(0,qt.Z)(sr,Lr,{className:"".concat(Xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,qt.Z)(sr,"title",Un),(0,qt.Z)(sr,"fixed",ho),(0,qt.Z)(sr,"className","".concat(Xe,"-row-expand-icon-cell")),(0,qt.Z)(sr,"width",Ei),(0,qt.Z)(sr,"render",function(jo,us,qo){var is=Yn(us,qo),So=Tn.has(is),wa=mn?mn(us):!0,Vo=hn({prefixCls:Xe,expanded:So,expandable:wa,record:us,onExpand:Qe});return ni?Mt.createElement("span",{onClick:function(Cs){return Cs.stopPropagation()}},Vo):Vo}),sr);return ar.map(function(Ur){return Ur===Lt?po:Ur})}return Zi.filter(function(Ur){return Ur!==Lt})},[nn,Zi,Yn,Tn,hn,Zn]),br=Mt.useMemo(function(){var sr=Ar;return me&&(sr=me(sr)),sr.length||(sr=[{render:function(){return null}}]),sr},[me,Ar,Zn]),io=Mt.useMemo(function(){return Zn==="rtl"?Fe(xi(br)):xi(br)},[br,Zn,Xi]),Ii=Dn(io,Xi),Xn=(0,re.Z)(Ii,2),Bo=Xn[0],Pr=Xn[1];return[br,Bo,Pr]}var Hn=wn;function Si(pe){var me,Xe=pe.prefixCls,Je=pe.record,vn=pe.onExpand,nn=pe.expanded,Tn=pe.expandable,Un="".concat(Xe,"-row-expand-icon");if(!Tn)return Mt.createElement("span",{className:Wt()(Un,"".concat(Xe,"-row-spaced"))});var Yn=function(hn){vn(Je,hn),hn.stopPropagation()};return Mt.createElement("span",{className:Wt()(Un,(me={},(0,qt.Z)(me,"".concat(Xe,"-row-expanded"),nn),(0,qt.Z)(me,"".concat(Xe,"-row-collapsed"),!nn),me)),onClick:Yn})}function Di(pe,me,Xe){var Je=[];function vn(nn){(nn||[]).forEach(function(Tn,Un){Je.push(me(Tn,Un)),vn(Tn[Xe])})}return vn(pe),Je}function tn(pe,me,Xe){var Je=Zr(pe),vn=Je.expandIcon,nn=Je.expandedRowKeys,Tn=Je.defaultExpandedRowKeys,Un=Je.defaultExpandAllRows,Yn=Je.expandedRowRender,Qe=Je.onExpand,hn=Je.onExpandedRowsChange,mn=Je.childrenColumnName,Qn=vn||Si,Zn=mn||"children",ni=Mt.useMemo(function(){return Yn?"row":pe.expandable&&pe.internalHooks===ce&&pe.expandable.__PARENT_RENDER_ICON__||me.some(function(io){return io&&(0,Ae.Z)(io)==="object"&&io[Zn]})?"nest":!1},[!!Yn,me]),Ei=Mt.useState(function(){return Tn||(Un?Di(me,Xe,Zn):[])}),li=(0,re.Z)(Ei,2),Xi=li[0],Zi=li[1],Ar=Mt.useMemo(function(){return new Set(nn||Xi||[])},[nn,Xi]),br=Mt.useCallback(function(io){var Ii=Xe(io,me.indexOf(io)),Xn,Bo=Ar.has(Ii);Bo?(Ar.delete(Ii),Xn=(0,eo.Z)(Ar)):Xn=[].concat((0,eo.Z)(Ar),[Ii]),Zi(Xn),Qe&&Qe(!Bo,io),hn&&hn(Xn)},[Xe,Ar,me,Qe,hn]);return[Je,ni,Ar,Qn,Zn,br]}function oi(pe,me,Xe,Je){var vn=pe.map(function(nn,Tn){return en(Tn,Tn,pe,me,Xe,Je==null?void 0:Je[Tn])});return(0,Ge.Z)(function(){return vn},[vn],function(nn,Tn){return!(0,Vt.Z)(nn,Tn)})}function Li(pe){var me=(0,Mt.useRef)(pe),Xe=(0,Mt.useState)({}),Je=(0,re.Z)(Xe,2),vn=Je[1],nn=(0,Mt.useRef)(null),Tn=(0,Mt.useRef)([]);function Un(Yn){Tn.current.push(Yn);var Qe=Promise.resolve();nn.current=Qe,Qe.then(function(){if(nn.current===Qe){var hn=Tn.current,mn=me.current;Tn.current=[],hn.forEach(function(Qn){me.current=Qn(me.current)}),nn.current=null,mn!==me.current&&vn({})}})}return(0,Mt.useEffect)(function(){return function(){nn.current=null}},[]),[me.current,Un]}function tr(pe){var me=(0,Mt.useRef)(pe||null),Xe=(0,Mt.useRef)();function Je(){window.clearTimeout(Xe.current)}function vn(Tn){me.current=Tn,Je(),Xe.current=window.setTimeout(function(){me.current=null,Xe.current=void 0},100)}function nn(){return me.current}return(0,Mt.useEffect)(function(){return Je},[]),[vn,nn]}function kn(){var pe=Mt.useState(-1),me=(0,re.Z)(pe,2),Xe=me[0],Je=me[1],vn=Mt.useState(-1),nn=(0,re.Z)(vn,2),Tn=nn[0],Un=nn[1],Yn=Mt.useCallback(function(Qe,hn){Je(Qe),Un(hn)},[]);return[Xe,Tn,Yn]}var ui=Ft(47273),Sr=(0,ui.Z)()?window:null;function cr(pe,me){var Xe=(0,Ae.Z)(pe)==="object"?pe:{},Je=Xe.offsetHeader,vn=Je===void 0?0:Je,nn=Xe.offsetSummary,Tn=nn===void 0?0:nn,Un=Xe.offsetScroll,Yn=Un===void 0?0:Un,Qe=Xe.getContainer,hn=Qe===void 0?function(){return Sr}:Qe,mn=hn()||Sr;return Mt.useMemo(function(){var Qn=!!pe;return{isSticky:Qn,stickyClassName:Qn?"".concat(me,"-sticky-holder"):"",offsetHeader:vn,offsetSummary:Tn,offsetScroll:Yn,container:mn}},[Yn,vn,Tn,me,mn])}function zr(pe,me,Xe){var Je=(0,Mt.useMemo)(function(){for(var vn=[],nn=[],Tn=0,Un=0,Yn=0;Yn<me;Yn+=1)if(Xe==="rtl"){nn[Yn]=Un,Un+=pe[Yn]||0;var Qe=me-Yn-1;vn[Qe]=Tn,Tn+=pe[Qe]||0}else{vn[Yn]=Tn,Tn+=pe[Yn]||0;var hn=me-Yn-1;nn[hn]=Un,Un+=pe[hn]||0}return{left:vn,right:nn}},[pe,me,Xe]);return Je}var dr=zr;function Mr(pe){var me=pe.className,Xe=pe.children;return Mt.createElement("div",{className:me},Xe)}var nr=Mr,Cr=Ft(8224),no=Ft(55468),Ro=function(me,Xe){var Je,vn,nn=me.scrollBodyRef,Tn=me.onScroll,Un=me.offsetScroll,Yn=me.container,Qe=Pt(Ut,"prefixCls"),hn=((Je=nn.current)===null||Je===void 0?void 0:Je.scrollWidth)||0,mn=((vn=nn.current)===null||vn===void 0?void 0:vn.clientWidth)||0,Qn=hn&&mn*(mn/hn),Zn=Mt.useRef(),ni=Li({scrollLeft:0,isHiddenScrollBar:!1}),Ei=(0,re.Z)(ni,2),li=Ei[0],Xi=Ei[1],Zi=Mt.useRef({delta:0,x:0}),Ar=Mt.useState(!1),br=(0,re.Z)(Ar,2),io=br[0],Ii=br[1],Xn=function(){Ii(!1)},Bo=function(pr){pr.persist(),Zi.current.delta=pr.pageX-li.scrollLeft,Zi.current.x=0,Ii(!0),pr.preventDefault()},Pr=function(pr){var Wr,ho=pr||((Wr=window)===null||Wr===void 0?void 0:Wr.event),po=ho.buttons;if(!io||po===0){io&&Ii(!1);return}var Ur=Zi.current.x+pr.pageX-Zi.current.x-Zi.current.delta;Ur<=0&&(Ur=0),Ur+Qn>=mn&&(Ur=mn-Qn),Tn({scrollLeft:Ur/mn*(hn+2)}),Zi.current.x=pr.pageX},sr=function(){if(nn.current){var pr=(0,no.os)(nn.current).top,Wr=pr+nn.current.offsetHeight,ho=Yn===window?document.documentElement.scrollTop+window.innerHeight:(0,no.os)(Yn).top+Yn.clientHeight;Wr-(0,sn.Z)()<=ho||pr>=ho-Un?Xi(function(po){return(0,Pe.Z)((0,Pe.Z)({},po),{},{isHiddenScrollBar:!0})}):Xi(function(po){return(0,Pe.Z)((0,Pe.Z)({},po),{},{isHiddenScrollBar:!1})})}},ar=function(pr){Xi(function(Wr){return(0,Pe.Z)((0,Pe.Z)({},Wr),{},{scrollLeft:pr/hn*mn||0})})};return Mt.useImperativeHandle(Xe,function(){return{setScrollLeft:ar}}),Mt.useEffect(function(){var qi=(0,Cr.Z)(document.body,"mouseup",Xn,!1),pr=(0,Cr.Z)(document.body,"mousemove",Pr,!1);return sr(),function(){qi.remove(),pr.remove()}},[Qn,io]),Mt.useEffect(function(){var qi=(0,Cr.Z)(Yn,"scroll",sr,!1),pr=(0,Cr.Z)(window,"resize",sr,!1);return function(){qi.remove(),pr.remove()}},[Yn]),Mt.useEffect(function(){li.isHiddenScrollBar||Xi(function(qi){var pr=nn.current;return pr?(0,Pe.Z)((0,Pe.Z)({},qi),{},{scrollLeft:pr.scrollLeft/pr.scrollWidth*pr.clientWidth}):qi})},[li.isHiddenScrollBar]),hn<=mn||!Qn||li.isHiddenScrollBar?null:Mt.createElement("div",{style:{height:(0,sn.Z)(),width:mn,bottom:Un},className:"".concat(Qe,"-sticky-scroll")},Mt.createElement("div",{onMouseDown:Bo,ref:Zn,className:Wt()("".concat(Qe,"-sticky-scroll-bar"),(0,qt.Z)({},"".concat(Qe,"-sticky-scroll-bar-active"),io)),style:{width:"".concat(Qn,"px"),transform:"translate3d(".concat(li.scrollLeft,"px, 0, 0)")}}))},yi=Mt.forwardRef(Ro);function Po(pe){return null}var ws=Po;function Zo(pe){return null}var pi=Zo,or="rc-table",Hr=[],uo={};function to(){return"No Data"}function Fo(pe){var me,Xe=(0,Pe.Z)({rowKey:"key",prefixCls:or,emptyText:to},pe),Je=Xe.prefixCls,vn=Xe.className,nn=Xe.rowClassName,Tn=Xe.style,Un=Xe.data,Yn=Xe.rowKey,Qe=Xe.scroll,hn=Xe.tableLayout,mn=Xe.direction,Qn=Xe.title,Zn=Xe.footer,ni=Xe.summary,Ei=Xe.caption,li=Xe.id,Xi=Xe.showHeader,Zi=Xe.components,Ar=Xe.emptyText,br=Xe.onRow,io=Xe.onHeaderRow,Ii=Xe.internalHooks,Xn=Xe.transformColumns,Bo=Xe.internalRefs,Pr=Xe.tailor,sr=Xe.sticky,ar=Un||Hr,qi=!!ar.length,pr=Ii===ce,Wr=Mt.useCallback(function(Oa,$a){return(0,_e.Z)(Zi,Oa)||$a},[Zi]),ho=Mt.useMemo(function(){return typeof Yn=="function"?Yn:function(Oa){var $a=Oa&&Oa[Yn];return $a}},[Yn]),po=Wr(["body"]),Ur=kn(),jo=(0,re.Z)(Ur,3),us=jo[0],qo=jo[1],is=jo[2],So=tn(Xe,ar,ho),wa=(0,re.Z)(So,6),Vo=wa[0],rs=wa[1],Cs=wa[2],qs=wa[3],Ua=wa[4],$s=wa[5],Ko=Qe==null?void 0:Qe.x,Go=Mt.useState(0),ds=(0,re.Z)(Go,2),es=ds[0],Ts=ds[1],ro=Hn((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Xe),Vo),{},{expandable:!!Vo.expandedRowRender,columnTitle:Vo.columnTitle,expandedKeys:Cs,getRowKey:ho,onTriggerExpand:$s,expandIcon:qs,expandIconColumnIndex:Vo.expandIconColumnIndex,direction:mn,scrollWidth:pr&&Pr&&typeof Ko=="number"?Ko:null}),pr?Xn:null),Wo=(0,re.Z)(ro,3),ha=Wo[0],Us=Wo[1],Ql=Wo[2],Fl=Ql!=null?Ql:Ko,Es=Mt.useMemo(function(){return{columns:ha,flattenColumns:Us}},[ha,Us]),da=Mt.useRef(),Dl=Mt.useRef(),Ao=Mt.useRef(),Ra=Mt.useRef(),Kl=Mt.useRef(),ta=Mt.useState(!1),ca=(0,re.Z)(ta,2),ka=ca[0],Xa=ca[1],al=Mt.useState(!1),Rs=(0,re.Z)(al,2),Ta=Rs[0],xl=Rs[1],pu=Li(new Map),au=(0,re.Z)(pu,2),Uu=au[0],Xu=au[1],dh=Ce(Us),$u=dh.map(function(Oa){return Uu.get(Oa)}),_a=Mt.useMemo(function(){return $u},[$u.join("_")]),Bu=dr(_a,Us.length,mn),jl=Qe&&bn(Qe.y),nl=Qe&&bn(Fl)||!!Vo.fixed,ph=nl&&Us.some(function(Oa){var $a=Oa.fixed;return $a}),Cc=Mt.useRef(),mh=cr(sr,Je),ic=mh.isSticky,rc=mh.offsetHeader,vh=mh.offsetSummary,ga=mh.offsetScroll,Sl=mh.stickyClassName,Ba=mh.container,pl=Mt.useMemo(function(){return ni==null?void 0:ni(ar)},[ni,ar]),pa=(jl||ic)&&Mt.isValidElement(pl)&&pl.type===At&&pl.props.fixed,lu,Fu,zh;jl&&(Fu={overflowY:"scroll",maxHeight:Qe.y}),nl&&(lu={overflowX:"auto"},jl||(Fu={overflowY:"hidden"}),zh={width:Fl===!0?"auto":Fl,minWidth:"100%"});var Ih=Mt.useCallback(function(Oa,$a){(0,De.Z)(da.current)&&Xu(function(Mu){if(Mu.get(Oa)!==$a){var Ah=new Map(Mu);return Ah.set(Oa,$a),Ah}return Mu})},[]),_n=tr(null),Ru=(0,re.Z)(_n,2),kh=Ru[0],lA=Ru[1];function nd(Oa,$a){$a&&(typeof $a=="function"?$a(Oa):$a.scrollLeft!==Oa&&($a.scrollLeft=Oa,$a.scrollLeft!==Oa&&setTimeout(function(){$a.scrollLeft=Oa},0)))}var gc=(0,ke.Z)(function(Oa){var $a=Oa.currentTarget,Mu=Oa.scrollLeft,Ah=mn==="rtl",Ph=typeof Mu=="number"?Mu:$a.scrollLeft,Zd=$a||uo;if(!lA()||lA()===Zd){var Bc;kh(Zd),nd(Ph,Dl.current),nd(Ph,Ao.current),nd(Ph,Kl.current),nd(Ph,(Bc=Cc.current)===null||Bc===void 0?void 0:Bc.setScrollLeft)}var Pd=$a||Dl.current;if(Pd){var Vu=Pd.scrollWidth,yh=Pd.clientWidth;if(Vu===yh){Xa(!1),xl(!1);return}Ah?(Xa(-Ph<Vu-yh),xl(-Ph>0)):(Xa(Ph>0),xl(Ph<Vu-yh))}}),xd=function(){nl&&Ao.current?gc({currentTarget:Ao.current}):(Xa(!1),xl(!1))},SA=function($a){var Mu=$a.width;Mu!==es&&(xd(),Ts(da.current?da.current.offsetWidth:Mu))},Lu=Mt.useRef(!1);Mt.useEffect(function(){Lu.current&&xd()},[nl,Un,ha.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),Yu=Sd[0],sh=Sd[1];Mt.useEffect(function(){(!Pr||!pr)&&(Ao.current instanceof Element?CA((0,sn.o)(Ao.current).width):CA((0,sn.o)(Ra.current).width)),sh((0,Me.G)("position","sticky"))},[]),Mt.useEffect(function(){pr&&Bo&&(Bo.body.current=Ao.current)});var Wu=Mt.useCallback(function(Oa){return Mt.createElement(Mt.Fragment,null,Mt.createElement(Xs,Oa),pa==="top"&&Mt.createElement(xe,Oa,pl))},[pa,pl]),BA=Mt.useCallback(function(Oa){return Mt.createElement(xe,Oa,pl)},[pl]),Kh=Wr(["table"],"table"),na=Mt.useMemo(function(){return hn||(ph?Fl==="max-content"?"auto":"fixed":jl||ic||Us.some(function(Oa){var $a=Oa.ellipsis;return $a})?"fixed":"auto")},[jl,ph,Us,hn,ic]),Cd,rd={colWidths:_a,columCount:Us.length,stickyOffsets:Bu,onHeaderRow:io,fixHeader:jl,scroll:Qe},mu=Mt.useMemo(function(){return qi?null:typeof Ar=="function"?Ar():Ar},[qi,Ar]),Gd=Mt.createElement(Yr,{data:ar,measureColumnWidth:jl||nl||ic}),Wd=Mt.createElement(fs,{colWidths:Us.map(function(Oa){var $a=Oa.width;return $a}),columns:Us}),Ju=Ei!=null?Mt.createElement("caption",{className:"".concat(Je,"-caption")},Ei):void 0,Rc=(0,Gn.Z)(Xe,{data:!0}),Bd=(0,Gn.Z)(Xe,{aria:!0});if(jl||ic){var Vd;typeof po=="function"?(Vd=po(ar,{scrollbarSize:id,ref:Ao,onScroll:gc}),rd.colWidths=Us.map(function(Oa,$a){var Mu=Oa.width,Ah=$a===Us.length-1?Mu-id:Mu;return typeof Ah=="number"&&!Number.isNaN(Ah)?Ah:0})):Vd=Mt.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},lu),Fu),onScroll:gc,ref:Ao,className:Wt()("".concat(Je,"-body"))},Mt.createElement(Kh,(0,oe.Z)({style:(0,Pe.Z)((0,Pe.Z)({},zh),{},{tableLayout:na})},Bd),Ju,Wd,Gd,!pa&&pl&&Mt.createElement(xe,{stickyOffsets:Bu,flattenColumns:Us,columns:ha},pl)));var uu=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({noData:!ar.length,maxContentScroll:nl&&Fl==="max-content"},rd),Es),{},{direction:mn,stickyClassName:Sl,onScroll:gc});Cd=Mt.createElement(Mt.Fragment,null,Xi!==!1&&Mt.createElement(ti,(0,oe.Z)({},uu,{stickyTopOffset:rc,className:"".concat(Je,"-header"),ref:Dl}),Wu),Vd,pa&&pa!=="top"&&Mt.createElement(ti,(0,oe.Z)({},uu,{stickyBottomOffset:vh,className:"".concat(Je,"-summary"),ref:Kl}),BA),ic&&Mt.createElement(yi,{ref:Cc,offsetScroll:ga,scrollBodyRef:Ao,onScroll:gc,container:Ba}))}else Cd=Mt.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},lu),Fu),className:Wt()("".concat(Je,"-content")),onScroll:gc,ref:Ao},Mt.createElement(Kh,(0,oe.Z)({style:(0,Pe.Z)((0,Pe.Z)({},zh),{},{tableLayout:na})},Bd),Ju,Wd,Xi!==!1&&Mt.createElement(Xs,(0,oe.Z)({},rd,Es)),Gd,pl&&Mt.createElement(xe,{stickyOffsets:Bu,flattenColumns:Us,columns:ha},pl)));var vu=Mt.createElement("div",(0,oe.Z)({className:Wt()(Je,vn,(me={},(0,qt.Z)(me,"".concat(Je,"-rtl"),mn==="rtl"),(0,qt.Z)(me,"".concat(Je,"-ping-left"),ka),(0,qt.Z)(me,"".concat(Je,"-ping-right"),Ta),(0,qt.Z)(me,"".concat(Je,"-layout-fixed"),hn==="fixed"),(0,qt.Z)(me,"".concat(Je,"-fixed-header"),jl),(0,qt.Z)(me,"".concat(Je,"-fixed-column"),ph),(0,qt.Z)(me,"".concat(Je,"-scroll-horizontal"),nl),(0,qt.Z)(me,"".concat(Je,"-has-fix-left"),Us[0]&&Us[0].fixed),(0,qt.Z)(me,"".concat(Je,"-has-fix-right"),Us[Us.length-1]&&Us[Us.length-1].fixed==="right"),me)),style:Tn,id:li,ref:da},Rc),Qn&&Mt.createElement(nr,{className:"".concat(Je,"-title")},Qn(ar)),Mt.createElement("div",{ref:Ra,className:"".concat(Je,"-container")},Cd),Zn&&Mt.createElement(nr,{className:"".concat(Je,"-footer")},Zn(ar)));nl&&(vu=Mt.createElement(Te.Z,{onResize:SA},vu));var _c=oi(Us,Bu,mn,ha),Ul=Mt.useMemo(function(){return{scrollX:Fl,prefixCls:Je,getComponent:Wr,scrollbarSize:id,direction:mn,fixedInfoList:_c,isSticky:ic,supportSticky:Yu,componentWidth:es,fixHeader:jl,fixColumn:ph,horizonScroll:nl,tableLayout:na,rowClassName:nn,expandedRowClassName:Vo.expandedRowClassName,expandIcon:qs,expandableType:rs,expandRowByClick:Vo.expandRowByClick,expandedRowRender:Vo.expandedRowRender,onTriggerExpand:$s,expandIconColumnIndex:Vo.expandIconColumnIndex,indentSize:Vo.indentSize,allColumnsFixedLeft:Us.every(function(Oa){return Oa.fixed==="left"}),emptyNode:mu,columns:ha,flattenColumns:Us,onColumnResize:Ih,hoverStartRow:us,hoverEndRow:qo,onHover:is,rowExpandable:Vo.rowExpandable,onRow:br,getRowKey:ho,expandedKeys:Cs,childrenColumnName:Ua}},[Fl,Je,Wr,id,mn,_c,ic,Yu,es,jl,ph,nl,na,nn,Vo.expandedRowClassName,qs,rs,Vo.expandRowByClick,Vo.expandedRowRender,$s,Vo.expandIconColumnIndex,Vo.indentSize,mu,ha,Us,Ih,us,qo,is,Vo.rowExpandable,br,ho,Cs,Ua]);return Mt.createElement(Ut.Provider,{value:Ul},vu)}function mi(pe){return ht(Fo,pe)}var wo=mi();wo.EXPAND_COLUMN=Lt,wo.INTERNAL_HOOKS=ce,wo.Column=ws,wo.ColumnGroup=pi,wo.Summary=ae;var Dr=wo,Br=Ft(4409),Pi=te(null),bo=te(null);function Ci(pe,me,Xe){var Je=me||1;return Xe[pe+Je]-(Xe[pe]||0)}function Xo(pe){var me=pe.rowInfo,Xe=pe.column,Je=pe.colIndex,vn=pe.indent,nn=pe.index,Tn=pe.renderIndex,Un=pe.record,Yn=pe.style,Qe=pe.className,hn=pe.inverse,mn=pe.getHeight,Qn=Xe.render,Zn=Xe.dataIndex,ni=Xe.className,Ei=Xe.width,li=Pt(bo,["columnsOffset"]),Xi=li.columnsOffset,Zi=ji(me,Xe,Je,vn,nn),Ar=Zi.key,br=Zi.fixedInfo,io=Zi.appendCellNode,Ii=Zi.additionalCellProps,Xn=Ii.style,Bo=Ii.colSpan,Pr=Bo===void 0?1:Bo,sr=Ii.rowSpan,ar=sr===void 0?1:sr,qi=Je-1,pr=Ci(qi,Pr,Xi),Wr=Pr>1?Ei-pr:0,ho=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Xn),Yn),{},{flex:"0 0 ".concat(pr,"px"),width:"".concat(pr,"px"),marginRight:Wr,pointerEvents:"auto"}),po=Mt.useMemo(function(){return hn?ar<=1:Pr===0||ar===0||ar>1},[ar,Pr,hn]);po?ho.visibility="hidden":hn&&(ho.height=mn==null?void 0:mn(ar));var Ur=po?function(){return null}:Qn,jo={};return(ar===0||Pr===0)&&(jo.rowSpan=1,jo.colSpan=1),Mt.createElement(Bi,(0,oe.Z)({className:Wt()(ni,Qe),ellipsis:Xe.ellipsis,align:Xe.align,scope:Xe.rowScope,component:"div",prefixCls:me.prefixCls,key:Ar,record:Un,index:nn,renderIndex:Tn,dataIndex:Zn,render:Ur,shouldCellUpdate:Xe.shouldCellUpdate},br,{appendNode:io,additionalProps:(0,Pe.Z)((0,Pe.Z)({},Ii),{},{style:ho},jo)}))}var ra=Xo,xs=["data","index","className","rowKey","style","extra","getHeight"],va=Mt.forwardRef(function(pe,me){var Xe=pe.data,Je=pe.index,vn=pe.className,nn=pe.rowKey,Tn=pe.style,Un=pe.extra,Yn=pe.getHeight,Qe=(0,Tt.Z)(pe,xs),hn=Xe.record,mn=Xe.indent,Qn=Xe.index,Zn=Pt(Ut,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ni=Zn.scrollX,Ei=Zn.flattenColumns,li=Zn.prefixCls,Xi=Zn.fixColumn,Zi=Zn.componentWidth,Ar=On(hn,nn,Je,mn),br=Ar.rowSupportExpand,io=Ar.expanded,Ii=Ar.rowProps,Xn=Ar.expandedRowRender,Bo=Ar.expandedRowClassName,Pr;if(br&&io){var sr=Xn(hn,Je,mn+1,io),ar=Bo==null?void 0:Bo(hn,Je,mn),qi={};Xi&&(qi={style:(0,qt.Z)({},"--virtual-width","".concat(Zi,"px"))});var pr="".concat(li,"-expanded-row-cell");Pr=Mt.createElement("div",{className:Wt()("".concat(li,"-expanded-row"),"".concat(li,"-expanded-row-level-").concat(mn+1),ar)},Mt.createElement(Bi,{component:"div",prefixCls:li,className:Wt()(pr,(0,qt.Z)({},"".concat(pr,"-fixed"),Xi)),additionalProps:qi},sr))}var Wr=(0,Pe.Z)((0,Pe.Z)({},Tn),{},{width:ni});Un&&(Wr.position="absolute",Wr.pointerEvents="none");var ho=Mt.createElement("div",(0,oe.Z)({},Ii,Qe,{ref:br?null:me,className:Wt()(vn,"".concat(li,"-row"),Ii==null?void 0:Ii.className,(0,qt.Z)({},"".concat(li,"-row-extra"),Un)),style:(0,Pe.Z)((0,Pe.Z)({},Wr),Ii==null?void 0:Ii.style)}),Ei.map(function(po,Ur){return Mt.createElement(ra,{key:Ur,rowInfo:Ar,column:po,colIndex:Ur,indent:mn,index:Je,renderIndex:Qn,record:hn,inverse:Un,getHeight:Yn})}));return br?Mt.createElement("div",{ref:me},ho,Pr):ho}),Gs=dt(va),Io=Gs,_o=Mt.forwardRef(function(pe,me){var Xe=pe.data,Je=pe.onScroll,vn=Pt(Ut,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),nn=vn.flattenColumns,Tn=vn.onColumnResize,Un=vn.getRowKey,Yn=vn.expandedKeys,Qe=vn.prefixCls,hn=vn.childrenColumnName,mn=vn.emptyNode,Qn=vn.scrollX,Zn=Pt(Pi),ni=Zn.scrollY,Ei=Zn.listItemHeight,li=Mt.useRef(),Xi=un(Xe,hn,Yn,Un),Zi=Mt.useMemo(function(){var Pr=0;return nn.map(function(sr){var ar=sr.width,qi=sr.key;return Pr+=ar,[qi,ar,Pr]})},[nn]),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],qi=sr[1];Tn(ar,qi)})},[Zi]),Mt.useImperativeHandle(me,function(){var Pr={};return Object.defineProperty(Pr,"scrollLeft",{get:function(){var ar;return((ar=li.current)===null||ar===void 0?void 0:ar.getScrollInfo().x)||0},set:function(ar){var qi;(qi=li.current)===null||qi===void 0||qi.scrollTo({left:ar})}}),Pr});var br=function(sr,ar){var qi,pr=(qi=Xi[ar])===null||qi===void 0?void 0:qi.record,Wr=sr.onCell;if(Wr){var ho,po=Wr(pr,ar);return(ho=po==null?void 0:po.rowSpan)!==null&&ho!==void 0?ho:1}return 1},io=function(sr){var ar=sr.start,qi=sr.end,pr=sr.getSize,Wr=sr.offsetY;if(qi<0)return null;for(var ho=nn.filter(function(Ko){return br(Ko,ar)===0}),po=ar,Ur=function(Go){if(ho=ho.filter(function(ds){return br(ds,Go)===0}),!ho.length)return po=Go,"break"},jo=ar;jo>=0;jo-=1){var us=Ur(jo);if(us==="break")break}for(var qo=nn.filter(function(Ko){return br(Ko,qi)!==1}),is=qi,So=function(Go){if(qo=qo.filter(function(ds){return br(ds,Go)!==1}),!qo.length)return is=Math.max(Go-1,qi),"break"},wa=qi;wa<Xi.length;wa+=1){var Vo=So(wa);if(Vo==="break")break}for(var rs=[],Cs=function(Go){var ds=Xi[Go];if(!ds)return"continue";nn.some(function(es){return br(es,Go)>1})&&rs.push(Go)},qs=po;qs<=is;qs+=1)var Ua=Cs(qs);var $s=rs.map(function(Ko){var Go=Xi[Ko],ds=Un(Go.record,Ko),es=function(Wo){var ha=Ko+Wo-1,Us=Un(Xi[ha].record,ha),Ql=pr(ds,Us);return Ql.bottom-Ql.top},Ts=pr(ds);return Mt.createElement(Io,{key:Ko,data:Go,rowKey:ds,index:Ko,style:{top:-Wr+Ts.top},extra:!0,getHeight:es})});return $s},Ii=Mt.useMemo(function(){return{columnsOffset:Ar}},[Ar]),Xn="".concat(Qe,"-tbody"),Bo;return Xi.length?Bo=Mt.createElement(Br.Z,{fullHeight:!1,ref:li,className:Wt()(Xn,"".concat(Xn,"-virtual")),height:ni,itemHeight:Ei||24,data:Xi,itemKey:function(sr){return Un(sr.record)},scrollWidth:Qn,onVirtualScroll:function(sr){var ar=sr.x;Je({scrollLeft:ar})},extraRender:io},function(Pr,sr,ar){var qi=Un(Pr.record,sr);return Mt.createElement(Io,(0,oe.Z)({data:Pr,rowKey:qi,index:sr},ar))}):Bo=Mt.createElement("div",{className:Wt()("".concat(Qe,"-placeholder"))},Mt.createElement(Bi,{component:"div",prefixCls:Qe},mn)),Mt.createElement(bo.Provider,{value:Ii},Bo)}),As=dt(_o),ls=As,wr=function(me,Xe){var Je=Xe.ref,vn=Xe.onScroll;return Mt.createElement(ls,{ref:Je,data:me,onScroll:vn})},Ie=100;function cs(pe){var me=pe.columns,Xe=pe.scroll,Je=pe.prefixCls,vn=Je===void 0?or:Je,nn=pe.className,Tn=pe.listItemHeight,Un=Xe||{},Yn=Un.x,Qe=Un.y;typeof Yn!="number"&&(Yn=((me||[]).length+1)*Ie),typeof Qe!="number"&&(Qe=500);var hn=Mt.useMemo(function(){return{scrollY:Qe,listItemHeight:Tn}},[Qe,Tn]);return Mt.createElement(Pi.Provider,{value:hn},Mt.createElement(Dr,(0,oe.Z)({},pe,{className:Wt()(nn,"".concat(vn,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},Xe),{},{x:Yn}),components:{body:wr},columns:me,internalHooks:ce,tailor:!0})))}function oa(pe){return ht(cs,pe)}var ll=oa(),Ll=null;function fl(pe){return null}var _l=fl;function ns(pe){return null}var Yo=ns,xo=Ft(2738),ks=Ft(68031),fa=Ft(36355),fo=Ft(93891),co=Ft(19716),Vi=Ft(8628),Lo=Ft(31724),Bs=Ft(58421),Js=Ft(71418),ua=Ft(88088);function Ho(pe){return function(Xe){let{prefixCls:Je,onExpand:vn,record:nn,expanded:Tn,expandable:Un}=Xe;const Yn=`${Je}-row-expand-icon`;return Mt.createElement("button",{type:"button",onClick:Qe=>{vn(nn,Qe),Qe.stopPropagation()},className:Wt()(Yn,{[`${Yn}-spaced`]:!Un,[`${Yn}-expanded`]:Un&&Tn,[`${Yn}-collapsed`]:Un&&!Tn}),"aria-label":Tn?pe.collapse:pe.expand,"aria-expanded":Tn})}}var Ks=Ho;function Na(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 Tl(pe,me){return me?`${me}-${pe}`:`${pe}`}function Va(pe,me){return typeof pe=="function"?pe(me):pe}function Ps(pe,me){const Xe=Va(pe,me);return Object.prototype.toString.call(Xe)==="[object Object]"?"":Xe}var si={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"},Ia=si,Ac=Ft(7657),du=function(me,Xe){return Mt.createElement(Ac.Z,(0,oe.Z)({},me,{ref:Xe,icon:Ia}))},Hh=Mt.forwardRef(du),$r=Hh,Qs=Ft(56762);function Ms(pe){const me=Mt.useRef(pe),Xe=(0,Qs.Z)();return[()=>me.current,Je=>{me.current=Je,Xe()}]}var bs=Ft(3113),zs=Ft(24905),Au=Ft(38854),Jo=Ft(64165),Hs=Ft(20834),Ss=Ft(40875),Qr=Ft(5112),ul=Ft(17574),Ds=Ft(47472),Su=Ft(92832);function zu(pe){let{value:me,onChange:Xe,filterSearch:Je,tablePrefixCls:vn,locale:nn}=pe;return Je?Mt.createElement("div",{className:`${vn}-filter-dropdown-search`},Mt.createElement(Su.default,{prefix:Mt.createElement(Ds.Z,null),placeholder:nn.filterSearchPlaceholder,onChange:Xe,value:me,htmlSize:1,className:`${vn}-filter-dropdown-search-input`})):null}var Xl=zu,fr=Ft(10228);const Za=pe=>{const{keyCode:me}=pe;me===fr.Z.ENTER&&pe.stopPropagation()};var bl=Mt.forwardRef((pe,me)=>Mt.createElement("div",{className:pe.className,onClick:Xe=>Xe.stopPropagation(),onKeyDown:Za,ref:me},pe.children));function ou(pe){let me=[];return(pe||[]).forEach(Xe=>{let{value:Je,children:vn}=Xe;me.push(Je),vn&&(me=[].concat((0,eo.Z)(me),(0,eo.Z)(ou(vn))))}),me}function Ya(pe){return pe.some(me=>{let{children:Xe}=me;return Xe})}function Mo(pe,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(pe.trim().toLowerCase()):!1}function ja(pe){let{filters:me,prefixCls:Xe,filteredKeys:Je,filterMultiple:vn,searchValue:nn,filterSearch:Tn}=pe;return me.map((Un,Yn)=>{const Qe=String(Un.value);if(Un.children)return{key:Qe||Yn,label:Un.text,popupClassName:`${Xe}-dropdown-submenu`,children:ja({filters:Un.children,prefixCls:Xe,filteredKeys:Je,filterMultiple:vn,searchValue:nn,filterSearch:Tn})};const hn=vn?zs.default:Qr.ZP,mn={key:Un.value!==void 0?Qe:Yn,label:Mt.createElement(Mt.Fragment,null,Mt.createElement(hn,{checked:Je.includes(Qe)}),Mt.createElement("span",null,Un.text))};return nn.trim()?typeof Tn=="function"?Tn(nn,Un)?mn:null:Mo(nn,Un.text)?mn:null:mn})}function Ja(pe){var me,Xe;const{tablePrefixCls:Je,prefixCls:vn,column:nn,dropdownPrefixCls:Tn,columnKey:Un,filterMultiple:Yn,filterMode:Qe="menu",filterSearch:hn=!1,filterState:mn,triggerFilter:Qn,locale:Zn,children:ni,getPopupContainer:Ei}=pe,{filterDropdownOpen:li,onFilterDropdownOpenChange:Xi,filterResetToDefaultFilteredValue:Zi,defaultFilteredValue:Ar,filterDropdownVisible:br,onFilterDropdownVisibleChange:io}=nn,[Ii,Xn]=Mt.useState(!1),Bo=!!(mn&&(!((me=mn.filteredKeys)===null||me===void 0)&&me.length||mn.forceFiltered)),Pr=ro=>{Xn(ro),Xi==null||Xi(ro),io==null||io(ro)},sr=(Xe=li!=null?li:br)!==null&&Xe!==void 0?Xe:Ii,ar=mn==null?void 0:mn.filteredKeys,[qi,pr]=Ms(ar||[]),Wr=ro=>{let{selectedKeys:Wo}=ro;pr(Wo)},ho=(ro,Wo)=>{let{node:ha,checked:Us}=Wo;Wr(Yn?{selectedKeys:ro}:{selectedKeys:Us&&ha.key?[ha.key]:[]})};Mt.useEffect(()=>{Ii&&Wr({selectedKeys:ar||[]})},[ar]);const[po,Ur]=Mt.useState([]),jo=ro=>{Ur(ro)},[us,qo]=Mt.useState(""),is=ro=>{const{value:Wo}=ro.target;qo(Wo)};Mt.useEffect(()=>{Ii||qo("")},[Ii]);const So=ro=>{const Wo=ro&&ro.length?ro:null;if(Wo===null&&(!mn||!mn.filteredKeys)||(0,Vt.Z)(Wo,mn==null?void 0:mn.filteredKeys,!0))return null;Qn({column:nn,key:Un,filteredKeys:Wo})},wa=()=>{Pr(!1),So(qi())},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),qo(""),pr(Zi?(Ar||[]).map(ha=>String(ha)):[])},rs=function(){let{closeDropdown:ro}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ro&&Pr(!1),So(qi())},Cs=ro=>{ro&&ar!==void 0&&pr(ar||[]),Pr(ro),!ro&&!nn.filterDropdown&&wa()},qs=Wt()({[`${Tn}-menu-without-submenu`]:!Ya(nn.filters||[])}),Ua=ro=>{if(ro.target.checked){const Wo=ou(nn==null?void 0:nn.filters).map(ha=>String(ha));pr(Wo)}else pr([])},$s=ro=>{let{filters:Wo}=ro;return(Wo||[]).map((ha,Us)=>{const Ql=String(ha.value),Fl={title:ha.text,key:ha.value!==void 0?Ql:Us};return ha.children&&(Fl.children=$s({filters:ha.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(ha=>Ko(ha)))||[]})};let Go;if(typeof nn.filterDropdown=="function")Go=nn.filterDropdown({prefixCls:`${Tn}-custom`,setSelectedKeys:ro=>Wr({selectedKeys:ro}),selectedKeys:qi(),confirm:rs,clearFilters:Vo,filters:nn.filters,visible:sr,close:()=>{Pr(!1)}});else if(nn.filterDropdown)Go=nn.filterDropdown;else{const ro=qi()||[],Wo=()=>(nn.filters||[]).length===0?Mt.createElement(Jo.Z,{image:Jo.Z.PRESENTED_IMAGE_SIMPLE,description:Zn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Qe==="tree"?Mt.createElement(Mt.Fragment,null,Mt.createElement(Xl,{filterSearch:hn,value:us,onChange:is,tablePrefixCls:Je,locale:Zn}),Mt.createElement("div",{className:`${Je}-filter-dropdown-tree`},Yn?Mt.createElement(zs.default,{checked:ro.length===ou(nn.filters).length,indeterminate:ro.length>0&&ro.length<ou(nn.filters).length,className:`${Je}-filter-dropdown-checkall`,onChange:Ua},Zn.filterCheckall):null,Mt.createElement(ul.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Yn,checkStrictly:!Yn,className:`${Tn}-menu`,onCheck:ho,checkedKeys:ro,selectedKeys:ro,showIcon:!1,treeData:$s({filters:nn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:us.trim()?Us=>typeof hn=="function"?hn(us,Ko(Us)):Mo(us,Us.title):void 0}))):Mt.createElement(Mt.Fragment,null,Mt.createElement(Xl,{filterSearch:hn,value:us,onChange:is,tablePrefixCls:Je,locale:Zn}),Mt.createElement(Hs.default,{selectable:!0,multiple:Yn,prefixCls:`${Tn}-menu`,className:qs,onSelect:Wr,onDeselect:Wr,selectedKeys:ro,getPopupContainer:Ei,openKeys:po,onOpenChange:jo,items:ja({filters:nn.filters||[],filterSearch:hn,prefixCls:vn,filteredKeys:qi(),filterMultiple:Yn,searchValue:us})})),ha=()=>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:`${vn}-dropdown-btns`},Mt.createElement(bs.ZP,{type:"link",size:"small",disabled:ha(),onClick:()=>Vo()},Zn.filterReset),Mt.createElement(bs.ZP,{type:"primary",size:"small",onClick:wa},Zn.filterConfirm)))}nn.filterDropdown&&(Go=Mt.createElement(Ss.J,{selectable:void 0},Go));const ds=()=>Mt.createElement(bl,{className:`${vn}-dropdown`},Go);let es;typeof nn.filterIcon=="function"?es=nn.filterIcon(Bo):nn.filterIcon?es=nn.filterIcon:es=Mt.createElement($r,null);const{direction:Ts}=Mt.useContext(fa.E_);return Mt.createElement("div",{className:`${vn}-column`},Mt.createElement("span",{className:`${Je}-column-title`},ni),Mt.createElement(Au.Z,{dropdownRender:ds,trigger:["click"],open:sr,onOpenChange:Cs,getPopupContainer:Ei,placement:Ts==="rtl"?"bottomLeft":"bottomRight"},Mt.createElement("span",{role:"button",tabIndex:-1,className:Wt()(`${vn}-trigger`,{active:Bo}),onClick:ro=>{ro.stopPropagation()}},es)))}var su=Ja;function $l(pe,me,Xe){let Je=[];return(pe||[]).forEach((vn,nn)=>{var Tn;const Un=Tl(nn,Xe);if(vn.filters||"filterDropdown"in vn||"onFilter"in vn)if("filteredValue"in vn){let Yn=vn.filteredValue;"filterDropdown"in vn||(Yn=(Tn=Yn==null?void 0:Yn.map(String))!==null&&Tn!==void 0?Tn:Yn),Je.push({column:vn,key:Na(vn,Un),filteredKeys:Yn,forceFiltered:vn.filtered})}else Je.push({column:vn,key:Na(vn,Un),filteredKeys:me&&vn.defaultFilteredValue?vn.defaultFilteredValue:void 0,forceFiltered:vn.filtered});"children"in vn&&(Je=[].concat((0,eo.Z)(Je),(0,eo.Z)($l(vn.children,me,Un))))}),Je}function Pu(pe,me,Xe,Je,vn,nn,Tn,Un){return Xe.map((Yn,Qe)=>{const hn=Tl(Qe,Un),{filterMultiple:mn=!0,filterMode:Qn,filterSearch:Zn}=Yn;let ni=Yn;if(ni.filters||ni.filterDropdown){const Ei=Na(ni,hn),li=Je.find(Xi=>{let{key:Zi}=Xi;return Ei===Zi});ni=Object.assign(Object.assign({},ni),{title:Xi=>Mt.createElement(su,{tablePrefixCls:pe,prefixCls:`${pe}-filter`,dropdownPrefixCls:me,column:ni,columnKey:Ei,filterState:li,filterMultiple:mn,filterMode:Qn,filterSearch:Zn,triggerFilter:nn,locale:vn,getPopupContainer:Tn},Va(Yn.title,Xi))})}return"children"in ni&&(ni=Object.assign(Object.assign({},ni),{children:Pu(pe,me,ni.children,Je,vn,nn,Tn,hn)})),ni})}function bu(pe){const me={};return pe.forEach(Xe=>{let{key:Je,filteredKeys:vn,column:nn}=Xe;const{filters:Tn,filterDropdown:Un}=nn;if(Un)me[Je]=vn||null;else if(Array.isArray(vn)){const Yn=ou(Tn);me[Je]=Yn.filter(Qe=>vn.includes(String(Qe)))}else me[Je]=null}),me}function fu(pe,me){return me.reduce((Xe,Je)=>{const{column:{onFilter:vn,filters:nn},filteredKeys:Tn}=Je;return vn&&Tn&&Tn.length?Xe.filter(Un=>Tn.some(Yn=>{const Qe=ou(nn),hn=Qe.findIndex(Qn=>String(Qn)===String(Yn)),mn=hn!==-1?Qe[hn]:Yn;return vn(mn,Un)})):Xe},pe)}const eu=pe=>pe.flatMap(me=>"children"in me?[me].concat((0,eo.Z)(eu(me.children||[]))):[me]);function zo(pe){let{prefixCls:me,dropdownPrefixCls:Xe,mergedColumns:Je,onFilterChange:vn,getPopupContainer:nn,locale:Tn}=pe;const Un=Mt.useMemo(()=>eu(Je||[]),[Je]),[Yn,Qe]=Mt.useState(()=>$l(Un,!0)),hn=Mt.useMemo(()=>{const ni=$l(Un,!1);if(ni.length===0)return ni;let Ei=!0,li=!0;if(ni.forEach(Xi=>{let{filteredKeys:Zi}=Xi;Zi!==void 0?Ei=!1:li=!1}),Ei){const Xi=(Un||[]).map((Zi,Ar)=>Na(Zi,Tl(Ar)));return Yn.filter(Zi=>{let{key:Ar}=Zi;return Xi.includes(Ar)}).map(Zi=>{const Ar=Un[Xi.findIndex(br=>br===Zi.key)];return Object.assign(Object.assign({},Zi),{column:Object.assign(Object.assign({},Zi.column),Ar),forceFiltered:Ar.filtered})})}return ni},[Un,Yn]),mn=Mt.useMemo(()=>bu(hn),[hn]),Qn=ni=>{const Ei=hn.filter(li=>{let{key:Xi}=li;return Xi!==ni.key});Ei.push(ni),Qe(Ei),vn(bu(Ei),Ei)};return[ni=>Pu(me,Xe,ni,hn,Tn,Qn,nn),hn,mn]}var Hd=zo;function Eu(pe,me,Xe){const Je=Mt.useRef({});function vn(nn){if(!Je.current||Je.current.data!==pe||Je.current.childrenColumnName!==me||Je.current.getRowKey!==Xe){let Un=function(Yn){Yn.forEach((Qe,hn)=>{const mn=Xe(Qe,hn);Tn.set(mn,Qe),Qe&&typeof Qe=="object"&&me in Qe&&Un(Qe[me]||[])})};const Tn=new Map;Un(pe),Je.current={data:pe,childrenColumnName:me,kvMap:Tn,getRowKey:Xe}}return Je.current.kvMap.get(nn)}return[vn]}var yd=Ft(50371),Nh=function(pe,me){var Xe={};for(var Je in pe)Object.prototype.hasOwnProperty.call(pe,Je)&&me.indexOf(Je)<0&&(Xe[Je]=pe[Je]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,Je=Object.getOwnPropertySymbols(pe);vn<Je.length;vn++)me.indexOf(Je[vn])<0&&Object.prototype.propertyIsEnumerable.call(pe,Je[vn])&&(Xe[Je[vn]]=pe[Je[vn]]);return Xe};const ec=10;function ol(pe,me){const Xe={current:pe.current,pageSize:pe.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach(vn=>{const nn=pe[vn];typeof nn!="function"&&(Xe[vn]=nn)}),Xe}function xh(pe,me,Xe){const Je=Xe&&typeof Xe=="object"?Xe:{},{total:vn=0}=Je,nn=Nh(Je,["total"]),[Tn,Un]=(0,Mt.useState)(()=>({current:"defaultCurrent"in nn?nn.defaultCurrent:1,pageSize:"defaultPageSize"in nn?nn.defaultPageSize:ec})),Yn=(0,yd.Z)(Tn,nn,{total:vn>0?vn:pe}),Qe=Math.ceil((vn||pe)/Yn.pageSize);Yn.current>Qe&&(Yn.current=Qe||1);const hn=(Qn,Zn)=>{Un({current:Qn!=null?Qn:1,pageSize:Zn||Yn.pageSize})},mn=(Qn,Zn)=>{var ni;Xe&&((ni=Xe.onChange)===null||ni===void 0||ni.call(Xe,Qn,Zn)),hn(Qn,Zn),me(Qn,Zn||(Yn==null?void 0:Yn.pageSize))};return Xe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Yn),{onChange:mn}),hn]}var Qd=xh,Oc=Ft(84105),Dc=Ft(35654),Fs=Ft(90782),ya=Ft(71430),ju=Ft(18929);const qa={},sl="SELECT_ALL",za="SELECT_INVERT",Aa="SELECT_NONE",tl=[],Ol=(pe,me)=>{let Xe=[];return(me||[]).forEach(Je=>{Xe.push(Je),Je&&typeof Je=="object"&&pe in Je&&(Xe=[].concat((0,eo.Z)(Xe),(0,eo.Z)(Ol(pe,Je[pe]))))}),Xe};var ch=(pe,me)=>{const{preserveSelectedRowKeys:Xe,selectedRowKeys:Je,defaultSelectedRowKeys:vn,getCheckboxProps:nn,onChange:Tn,onSelect:Un,onSelectAll:Yn,onSelectInvert:Qe,onSelectNone:hn,onSelectMultiple:mn,columnWidth:Qn,type:Zn,selections:ni,fixed:Ei,renderCell:li,hideSelectAll:Xi,checkStrictly:Zi=!0}=me||{},{prefixCls:Ar,data:br,pageData:io,getRecordByKey:Ii,getRowKey:Xn,expandType:Bo,childrenColumnName:Pr,locale:sr,getPopupContainer:ar}=pe,[qi,pr]=(0,ju.Z)(Je||vn||tl,{value:Je}),Wr=Mt.useRef(new Map),ho=(0,Mt.useCallback)(Ko=>{if(Xe){const Go=new Map;Ko.forEach(ds=>{let es=Ii(ds);!es&&Wr.current.has(ds)&&(es=Wr.current.get(ds)),Go.set(ds,es)}),Wr.current=Go}},[Ii,Xe]);Mt.useEffect(()=>{ho(qi)},[qi]);const{keyEntities:po}=(0,Mt.useMemo)(()=>{if(Zi)return{keyEntities:null};let Ko=br;if(Xe){const Go=new Set(br.map((es,Ts)=>Xn(es,Ts))),ds=Array.from(Wr.current).reduce((es,Ts)=>{let[ro,Wo]=Ts;return Go.has(ro)?es:es.concat(Wo)},[]);Ko=[].concat((0,eo.Z)(Ko),(0,eo.Z)(ds))}return(0,ya.I8)(Ko,{externalGetKey:Xn,childrenPropName:Pr})},[br,Xn,Zi,Pr,Xe]),Ur=(0,Mt.useMemo)(()=>Ol(Pr,io),[Pr,io]),jo=(0,Mt.useMemo)(()=>{const Ko=new Map;return Ur.forEach((Go,ds)=>{const es=Xn(Go,ds),Ts=(nn?nn(Go):null)||{};Ko.set(es,Ts)}),Ko},[Ur,Xn,nn]),us=(0,Mt.useCallback)(Ko=>{var Go;return!!(!((Go=jo.get(Xn(Ko)))===null||Go===void 0)&&Go.disabled)},[jo,Xn]),[qo,is]=(0,Mt.useMemo)(()=>{if(Zi)return[qi||[],[]];const{checkedKeys:Ko,halfCheckedKeys:Go}=(0,Fs.S)(qi,!0,po,us);return[Ko||[],Go]},[qi,Zi,po,us]),So=(0,Mt.useMemo)(()=>{const Ko=Zn==="radio"?qo.slice(0,1):qo;return new Set(Ko)},[qo,Zn]),wa=(0,Mt.useMemo)(()=>Zn==="radio"?new Set:new Set(is),[is,Zn]),[Vo,rs]=(0,Mt.useState)(null);Mt.useEffect(()=>{me||pr(tl)},[!!me]);const Cs=(0,Mt.useCallback)((Ko,Go)=>{let ds,es;ho(Ko),Xe?(ds=Ko,es=Ko.map(Ts=>Wr.current.get(Ts))):(ds=[],es=[],Ko.forEach(Ts=>{const ro=Ii(Ts);ro!==void 0&&(ds.push(Ts),es.push(ro))})),pr(ds),Tn==null||Tn(ds,es,{type:Go})},[pr,Ii,Tn,Xe]),qs=(0,Mt.useCallback)((Ko,Go,ds,es)=>{if(Un){const Ts=ds.map(ro=>Ii(ro));Un(Ii(Ko),Go,Ts,es)}Cs(ds,"single")},[Un,Ii,Cs]),Ua=(0,Mt.useMemo)(()=>!ni||Xi?null:(ni===!0?[sl,za,Aa]:ni).map(Go=>Go===sl?{key:"all",text:sr.selectionAll,onSelect(){Cs(br.map((ds,es)=>Xn(ds,es)).filter(ds=>{const es=jo.get(ds);return!(es!=null&&es.disabled)||So.has(ds)}),"all")}}:Go===za?{key:"invert",text:sr.selectInvert,onSelect(){const ds=new Set(So);io.forEach((Ts,ro)=>{const Wo=Xn(Ts,ro),ha=jo.get(Wo);ha!=null&&ha.disabled||(ds.has(Wo)?ds.delete(Wo):ds.add(Wo))});const es=Array.from(ds);Qe&&Qe(es),Cs(es,"invert")}}:Go===Aa?{key:"none",text:sr.selectNone,onSelect(){hn==null||hn(),Cs(Array.from(So).filter(ds=>{const es=jo.get(ds);return es==null?void 0:es.disabled}),"none")}}:Go).map(Go=>Object.assign(Object.assign({},Go),{onSelect:function(){for(var ds,es,Ts=arguments.length,ro=new Array(Ts),Wo=0;Wo<Ts;Wo++)ro[Wo]=arguments[Wo];(es=Go.onSelect)===null||es===void 0||(ds=es).call.apply(ds,[Go].concat(ro)),rs(null)}})),[ni,So,io,Xn,Qe,Cs]);return[(0,Mt.useCallback)(Ko=>{var Go;if(!me)return Ko.filter(ta=>ta!==qa);let ds=(0,eo.Z)(Ko);const es=new Set(So),Ts=Ur.map(Xn).filter(ta=>!jo.get(ta).disabled),ro=Ts.every(ta=>es.has(ta)),Wo=Ts.some(ta=>es.has(ta)),ha=()=>{const ta=[];ro?Ts.forEach(ka=>{es.delete(ka),ta.push(ka)}):Ts.forEach(ka=>{es.has(ka)||(es.add(ka),ta.push(ka))});const ca=Array.from(es);Yn==null||Yn(!ro,ca.map(ka=>Ii(ka)),ta.map(ka=>Ii(ka))),Cs(ca,"all"),rs(null)};let Us;if(Zn!=="radio"){let ta;if(Ua){const Rs={getPopupContainer:ar,items:Ua.map((Ta,xl)=>{const{key:pu,text:au,onSelect:Uu}=Ta;return{key:pu!=null?pu:xl,onClick:()=>{Uu==null||Uu(Ts)},label:au}})};ta=Mt.createElement("div",{className:`${Ar}-selection-extra`},Mt.createElement(Au.Z,{menu:Rs,getPopupContainer:ar},Mt.createElement("span",null,Mt.createElement(Oc.Z,null))))}const ca=Ur.map((Rs,Ta)=>{const xl=Xn(Rs,Ta),pu=jo.get(xl)||{};return Object.assign({checked:es.has(xl)},pu)}).filter(Rs=>{let{disabled:Ta}=Rs;return Ta}),ka=!!ca.length&&ca.length===Ur.length,Xa=ka&&ca.every(Rs=>{let{checked:Ta}=Rs;return Ta}),al=ka&&ca.some(Rs=>{let{checked:Ta}=Rs;return Ta});Us=!Xi&&Mt.createElement("div",{className:`${Ar}-selection`},Mt.createElement(zs.default,{checked:ka?Xa:!!Ur.length&&ro,indeterminate:ka?!Xa&&al:!ro&&Wo,onChange:ha,disabled:Ur.length===0||ka,"aria-label":ta?"Custom selection":"Select all",skipGroup:!0}),ta)}let Ql;Zn==="radio"?Ql=(ta,ca,ka)=>{const Xa=Xn(ca,ka),al=es.has(Xa);return{node:Mt.createElement(Qr.ZP,Object.assign({},jo.get(Xa),{checked:al,onClick:Rs=>Rs.stopPropagation(),onChange:Rs=>{es.has(Xa)||qs(Xa,!0,[Xa],Rs.nativeEvent)}})),checked:al}}:Ql=(ta,ca,ka)=>{var Xa;const al=Xn(ca,ka),Rs=es.has(al),Ta=wa.has(al),xl=jo.get(al);let pu;return Bo==="nest"?pu=Ta:pu=(Xa=xl==null?void 0:xl.indeterminate)!==null&&Xa!==void 0?Xa:Ta,{node:Mt.createElement(zs.default,Object.assign({},xl,{indeterminate:pu,checked:Rs,skipGroup:!0,onClick:au=>au.stopPropagation(),onChange:au=>{let{nativeEvent:Uu}=au;const{shiftKey:Xu}=Uu;let dh=-1,$u=-1;if(Xu&&Zi){const _a=new Set([Vo,al]);Ts.some((Bu,jl)=>{if(_a.has(Bu))if(dh===-1)dh=jl;else return $u=jl,!0;return!1})}if($u!==-1&&dh!==$u&&Zi){const _a=Ts.slice(dh,$u+1),Bu=[];Rs?_a.forEach(nl=>{es.has(nl)&&(Bu.push(nl),es.delete(nl))}):_a.forEach(nl=>{es.has(nl)||(Bu.push(nl),es.add(nl))});const jl=Array.from(es);mn==null||mn(!Rs,jl.map(nl=>Ii(nl)),Bu.map(nl=>Ii(nl))),Cs(jl,"multiple")}else{const _a=qo;if(Zi){const Bu=Rs?(0,Dc._5)(_a,al):(0,Dc.L0)(_a,al);qs(al,!Rs,Bu,Uu)}else{const Bu=(0,Fs.S)([].concat((0,eo.Z)(_a),[al]),!0,po,us),{checkedKeys:jl,halfCheckedKeys:nl}=Bu;let ph=jl;if(Rs){const Cc=new Set(jl);Cc.delete(al),ph=(0,Fs.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:nl},po,us).checkedKeys}qs(al,!Rs,ph,Uu)}}rs(Rs?null:al)}})),checked:Rs}};const Fl=(ta,ca,ka)=>{const{node:Xa,checked:al}=Ql(ta,ca,ka);return li?li(al,ca,ka,Xa):Xa};if(!ds.includes(qa))if(ds.findIndex(ta=>{var ca;return((ca=ta[Lr])===null||ca===void 0?void 0:ca.columnType)==="EXPAND_COLUMN"})===0){const[ta,...ca]=ds;ds=[ta,qa].concat((0,eo.Z)(ca))}else ds=[qa].concat((0,eo.Z)(ds));const Es=ds.indexOf(qa);ds=ds.filter((ta,ca)=>ta!==qa||ca===Es);const da=ds[Es-1],Dl=ds[Es+1];let Ao=Ei;Ao===void 0&&((Dl==null?void 0:Dl.fixed)!==void 0?Ao=Dl.fixed:(da==null?void 0:da.fixed)!==void 0&&(Ao=da.fixed)),Ao&&da&&((Go=da[Lr])===null||Go===void 0?void 0:Go.columnType)==="EXPAND_COLUMN"&&da.fixed===void 0&&(da.fixed=Ao);const Ra=Wt()(`${Ar}-selection-col`,{[`${Ar}-selection-col-with-dropdown`]:ni&&Zn==="checkbox"}),Kl={fixed:Ao,width:Qn,className:`${Ar}-selection-column`,title:me.columnTitle||Us,render:Fl,onCell:me.onCell,[Lr]:{className:Ra}};return ds.map(ta=>ta===qa?Kl:ta)},[Xn,Ur,me,qo,So,wa,Qn,Ua,Bo,Vo,jo,mn,qs,us]),So]},hl=Ft(89489),zd=Ft(59477),td=Ft(6848);const Sh="ascend",Qo="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 Wi(pe,me){return me?pe[pe.indexOf(me)+1]:pe[0]}function aA(pe,me,Xe){let Je=[];function vn(nn,Tn){Je.push({column:nn,key:Na(nn,Tn),multiplePriority:sA(nn),sortOrder:nn.sortOrder})}return(pe||[]).forEach((nn,Tn)=>{const Un=Tl(Tn,Xe);nn.children?("sortOrder"in nn&&vn(nn,Un),Je=[].concat((0,eo.Z)(Je),(0,eo.Z)(aA(nn.children,me,Un)))):nn.sorter&&("sortOrder"in nn?vn(nn,Un):me&&nn.defaultSortOrder&&Je.push({column:nn,key:Na(nn,Un),multiplePriority:sA(nn),sortOrder:nn.defaultSortOrder}))}),Je}function nc(pe,me,Xe,Je,vn,nn,Tn,Un){return(me||[]).map((Yn,Qe)=>{const hn=Tl(Qe,Un);let mn=Yn;if(mn.sorter){const Qn=mn.sortDirections||vn,Zn=mn.showSorterTooltip===void 0?Tn:mn.showSorterTooltip,ni=Na(mn,hn),Ei=Xe.find(Bo=>{let{key:Pr}=Bo;return Pr===ni}),li=Ei?Ei.sortOrder:null,Xi=Wi(Qn,li);let Zi;if(Yn.sortIcon)Zi=Yn.sortIcon({sortOrder:li});else{const Bo=Qn.includes(Sh)&&Mt.createElement(zd.Z,{className:Wt()(`${pe}-column-sorter-up`,{active:li===Sh})}),Pr=Qn.includes(Qo)&&Mt.createElement(hl.Z,{className:Wt()(`${pe}-column-sorter-down`,{active:li===Qo})});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:br,triggerDesc:io}=nn||{};let Ii=Ar;Xi===Qo?Ii=io:Xi===Sh&&(Ii=br);const Xn=typeof Zn=="object"?Zn:{title:Ii};mn=Object.assign(Object.assign({},mn),{className:Wt()(mn.className,{[`${pe}-column-sort`]:li}),title:Bo=>{const Pr=Mt.createElement("div",{className:`${pe}-column-sorters`},Mt.createElement("span",{className:`${pe}-column-title`},Va(Yn.title,Bo)),Zi);return Zn?Mt.createElement(td.Z,Object.assign({},Xn),Pr):Pr},onHeaderCell:Bo=>{const Pr=Yn.onHeaderCell&&Yn.onHeaderCell(Bo)||{},sr=Pr.onClick,ar=Pr.onKeyDown;Pr.onClick=Wr=>{Je({column:Yn,key:ni,sortOrder:Xi,multiplePriority:sA(Yn)}),sr==null||sr(Wr)},Pr.onKeyDown=Wr=>{Wr.keyCode===fr.Z.ENTER&&(Je({column:Yn,key:ni,sortOrder:Xi,multiplePriority:sA(Yn)}),ar==null||ar(Wr))};const qi=Ps(Yn.title,{}),pr=qi==null?void 0:qi.toString();return li?Pr["aria-sort"]=li==="ascend"?"ascending":"descending":Pr["aria-label"]=pr||"",Pr.className=Wt()(Pr.className,`${pe}-column-has-sorters`),Pr.tabIndex=0,Yn.ellipsis&&(Pr.title=(qi!=null?qi:"").toString()),Pr}})}return"children"in mn&&(mn=Object.assign(Object.assign({},mn),{children:nc(pe,mn.children,Xe,Je,vn,nn,Tn,hn)})),mn})}function Ku(pe){const{column:me,sortOrder:Xe}=pe;return{column:me,order:Xe,field:me.dataIndex,columnKey:me.key}}function Gu(pe){const me=pe.filter(Xe=>{let{sortOrder:Je}=Xe;return Je}).map(Ku);return me.length===0&&pe.length?Object.assign(Object.assign({},Ku(pe[pe.length-1])),{column:void 0}):me.length<=1?me[0]||{}:me}function Ch(pe,me,Xe){const Je=me.slice().sort((Tn,Un)=>Un.multiplePriority-Tn.multiplePriority),vn=pe.slice(),nn=Je.filter(Tn=>{let{column:{sorter:Un},sortOrder:Yn}=Tn;return En(Un)&&Yn});return nn.length?vn.sort((Tn,Un)=>{for(let Yn=0;Yn<nn.length;Yn+=1){const Qe=nn[Yn],{column:{sorter:hn},sortOrder:mn}=Qe,Qn=En(hn);if(Qn&&mn){const Zn=Qn(Tn,Un,mn);if(Zn!==0)return mn===Sh?Zn:-Zn}}return 0}).map(Tn=>{const Un=Tn[Xe];return Un?Object.assign(Object.assign({},Tn),{[Xe]:Ch(Un,me,Xe)}):Tn}):vn}function zA(pe){let{prefixCls:me,mergedColumns:Xe,onSorterChange:Je,sortDirections:vn,tableLocale:nn,showSorterTooltip:Tn}=pe;const[Un,Yn]=Mt.useState(aA(Xe,!0)),Qe=Mt.useMemo(()=>{let ni=!0;const Ei=aA(Xe,!1);if(!Ei.length)return Un;const li=[];function Xi(Ar){ni?li.push(Ar):li.push(Object.assign(Object.assign({},Ar),{sortOrder:null}))}let Zi=null;return Ei.forEach(Ar=>{Zi===null?(Xi(Ar),Ar.sortOrder&&(Ar.multiplePriority===!1?ni=!1:Zi=!0)):(Zi&&Ar.multiplePriority!==!1||(ni=!1),Xi(Ar))}),li},[Xe,Un]),hn=Mt.useMemo(()=>{const ni=Qe.map(Ei=>{let{column:li,sortOrder:Xi}=Ei;return{column:li,order:Xi}});return{sortColumns:ni,sortColumn:ni[0]&&ni[0].column,sortOrder:ni[0]&&ni[0].order}},[Qe]);function mn(ni){let Ei;ni.multiplePriority===!1||!Qe.length||Qe[0].multiplePriority===!1?Ei=[ni]:Ei=[].concat((0,eo.Z)(Qe.filter(li=>{let{key:Xi}=li;return Xi!==ni.key})),[ni]),Yn(Ei),Je(Gu(Ei),Ei)}return[ni=>nc(me,ni,Qe,mn,vn,nn,Tn),Qe,hn,()=>Gu(Qe)]}function ed(pe,me){return pe.map(Xe=>{const Je=Object.assign({},Xe);return Je.title=Va(Xe.title,me),"children"in Je&&(Je.children=ed(Je.children,me)),Je})}function el(pe){return[Mt.useCallback(Xe=>ed(Xe,pe),[pe])]}var vs=mi((pe,me)=>{const{_renderTimes:Xe}=pe,{_renderTimes:Je}=me;return Xe!==Je}),rh=oa((pe,me)=>{const{_renderTimes:Xe}=pe,{_renderTimes:Je}=me;return Xe!==Je}),Zu=Ft(64993),El=Ft(17313),sa=Ft(83116),gu=Ft(37613),wl=pe=>{const{componentCls:me}=pe,Xe=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,Je=(vn,nn,Tn)=>({[`&${me}-${vn}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`-${nn}px -${Tn+pe.lineWidth}px`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:Xe,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:Xe,borderTop:Xe,[`
> ${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:Xe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:Xe}},"\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:Xe,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
> tr${me}-expanded-row,
> tr${me}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Je("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle)),Je("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:Xe,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:Xe}}}},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}}}}},oh=Ft(15969),gl=pe=>{const{componentCls:me,antCls:Xe,controlInteractiveSize:Je,motionDurationSlow:vn,lineWidth:nn,paddingXS:Tn,lineType:Un,tableBorderColor:Yn,tableExpandIconBg:Qe,tableExpandColumnWidth:hn,borderRadius:mn,fontSize:Qn,fontSizeSM:Zn,lineHeight:ni,tablePaddingVertical:Ei,tablePaddingHorizontal:li,tableExpandedRowBg:Xi,paddingXXS:Zi}=pe,Ar=Je/2-nn,br=Ar*2+nn*3,io=`${nn}px ${Un} ${Yn}`,Ii=Zi-nn;return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:hn},[`${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,oh.N)(pe)),{position:"relative",float:"left",boxSizing:"border-box",width:br,height:br,padding:0,color:"inherit",lineHeight:`${br}px`,background:Qe,border:io,borderRadius:mn,transform:`scale(${Je/br})`,transition:`all ${vn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${vn} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:Ii,insetInlineStart:Ii,height:nn},"&::after":{top:Ii,bottom:Ii,insetInlineStart:Ar,width:nn,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:(Qn*ni-nn*3)/2-Math.ceil((Zn*1.4-nn*3)/2),marginInlineEnd:Tn},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xi}},[`${Xe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`-${Ei}px -${li}px`,padding:`${Ei}px ${li}px`}}}},Yl=pe=>{const{componentCls:me,antCls:Xe,iconCls:Je,tableFilterDropdownWidth:vn,tableFilterDropdownSearchWidth:nn,paddingXXS:Tn,paddingXS:Un,colorText:Yn,lineWidth:Qe,lineType:hn,tableBorderColor:mn,tableHeaderIconColor:Qn,fontSizeSM:Zn,tablePaddingHorizontal:ni,borderRadius:Ei,motionDurationSlow:li,colorTextDescription:Xi,colorPrimary:Zi,tableHeaderFilterActiveBg:Ar,colorTextDisabled:br,tableFilterDropdownBg:io,tableFilterDropdownHeight:Ii,controlItemBgHover:Xn,controlItemBgActive:Bo,boxShadowSecondary:Pr,filterDropdownMenuBg:sr}=pe,ar=`${Xe}-dropdown`,qi=`${me}-filter-dropdown`,pr=`${Xe}-tree`,Wr=`${Qe}px ${hn} ${mn}`;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 ${-ni/2}px`,padding:`0 ${Tn}px`,color:Qn,fontSize:Zn,borderRadius:Ei,cursor:"pointer",transition:`all ${li}`,"&:hover":{color:Xi,background:Ar},"&.active":{color:Zi}}}},{[`${Xe}-dropdown`]:{[qi]:Object.assign(Object.assign({},(0,El.Wf)(pe)),{minWidth:vn,backgroundColor:io,borderRadius:Ei,boxShadow:Pr,overflow:"hidden",[`${ar}-menu`]:{maxHeight:Ii,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:sr,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:br,fontSize:Zn,textAlign:"center",content:'"Not Found"'}},[`${qi}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[pr]:{padding:0},[`${pr}-treenode ${pr}-node-content-wrapper:hover`]:{backgroundColor:Xn},[`${pr}-treenode-checkbox-checked ${pr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Bo}}},[`${qi}-search`]:{padding:Un,borderBottom:Wr,"&-input":{input:{minWidth:nn},[Je]:{color:br}}},[`${qi}-checkall`]:{width:"100%",marginBottom:Tn,marginInlineStart:Tn},[`${qi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-Qe}px ${Un}px`,overflow:"hidden",borderTop:Wr}})}},{[`${Xe}-dropdown ${qi}, ${qi}-submenu`]:{[`${Xe}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:Yn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},wt=pe=>{const{componentCls:me,lineWidth:Xe,colorSplit:Je,motionDurationSlow:vn,zIndexTableFixed:nn,tableBg:Tn,zIndexTableSticky:Un}=pe,Yn=Je;return{[`${me}-wrapper`]:{[`
${me}-cell-fix-left,
${me}-cell-fix-right
`]:{position:"sticky !important",zIndex:nn,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:-Xe,width:30,transform:"translateX(100%)",transition:`box-shadow ${vn}`,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:-Xe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${vn}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${vn}`,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 ${Yn}`}},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Yn}`},[`${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 ${Yn}`}},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Yn}`}}}}},Ht=pe=>{const{componentCls:me,antCls:Xe}=pe;return{[`${me}-wrapper`]:{[`${me}-pagination${Xe}-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:Xe}=pe;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${Xe}px ${Xe}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:Xe,borderStartEndRadius:Xe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xe},"> *:last-child":{borderStartEndRadius:Xe}}},"&-footer":{borderRadius:`0 0 ${Xe}px ${Xe}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"}}}}},$e=pe=>{const{componentCls:me,antCls:Xe,iconCls:Je,fontSizeIcon:vn,padding:nn,paddingXS:Tn,tableHeaderIconColor:Un,tableHeaderIconColorHover:Yn,tableSelectionColumnWidth:Qe}=pe;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:Qe,[`&${me}-selection-col-with-dropdown`]:{width:Qe+vn+nn/4}},[`${me}-bordered ${me}-selection-col`]:{width:Qe+Tn*2,[`&${me}-selection-col-with-dropdown`]:{width:Qe+vn+nn/4+Tn*2}},[`
table tr th${me}-selection-column,
table tr td${me}-selection-column
`]:{paddingInlineEnd:pe.paddingXS,paddingInlineStart:pe.paddingXS,textAlign:"center",[`${Xe}-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`,[Je]:{color:Un,fontSize:vn,verticalAlign:"baseline","&:hover":{color:Yn}}}}}},gn=pe=>{const{componentCls:me}=pe,Xe=(Je,vn,nn,Tn)=>({[`${me}${me}-${Je}`]:{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:`${vn}px ${nn}px`},[`${me}-filter-trigger`]:{marginInlineEnd:`-${nn/2}px`},[`${me}-expanded-row-fixed`]:{margin:`-${vn}px -${nn}px`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:`-${vn}px`,marginInline:`${pe.tableExpandColumnWidth-nn}px -${nn}px`}},[`${me}-selection-column`]:{paddingInlineStart:`${nn/4}px`}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Xe("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle,pe.tableFontSizeMiddle)),Xe("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall,pe.tableFontSizeSmall))}},Ke=pe=>{const{componentCls:me,marginXXS:Xe,fontSizeIcon:Je,tableHeaderIconColor:vn,tableHeaderIconColorHover:nn}=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:Xe,color:vn,fontSize:0,transition:`color ${pe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Je,"&.active":{color:pe.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:nn}}}},Jn=pe=>{const{componentCls:me,opacityLoading:Xe,tableScrollThumbBg:Je,tableScrollThumbBgHover:vn,tableScrollThumbSize:nn,tableScrollBg:Tn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:Yn}=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:`${nn}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Tn,borderTop:Qe,opacity:Xe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:nn,backgroundColor:Je,borderRadius:Yn,transition:`all ${pe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:vn}}}}}}},Rn=pe=>{const{componentCls:me,lineWidth:Xe,tableBorderColor:Je}=pe,vn=`${Xe}px ${pe.lineType} ${Je}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:pe.zIndexTableFixed,background:pe.tableBg,"> tr":{"> th, > td":{borderBottom:vn}}},[`div${me}-summary`]:{boxShadow:`0 -${Xe}px 0 ${Je}`}}}},Qi=pe=>{const{componentCls:me}=pe,Xe=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,Je=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${me}-cell`]:{borderBottom:Xe},[`${me}-expanded-row`]:{[`${Je}${Je}-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:Xe,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:Xe,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-pe.lineWidth,borderInlineStart:Xe}}}}}}};const rr=pe=>{const{componentCls:me,fontWeightStrong:Xe,tablePaddingVertical:Je,tablePaddingHorizontal:vn,lineWidth:nn,lineType:Tn,tableBorderColor:Un,tableFontSize:Yn,tableBg:Qe,tableRadius:hn,tableHeaderTextColor:mn,motionDurationMid:Qn,tableHeaderBg:Zn,tableHeaderCellSplitColor:ni,tableRowHoverBg:Ei,tableSelectedRowBg:li,tableSelectedRowHoverBg:Xi,tableFooterTextColor:Zi,tableFooterBg:Ar,paddingContentVerticalLG:br}=pe,io=`${nn}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:Yn,background:Qe,borderRadius:`${hn}px ${hn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${hn}px ${hn}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:`${br}px ${vn}px`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${Je}px ${vn}px`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mn,fontWeight:Xe,textAlign:"start",background:Zn,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:ni,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:`-${Je}px`,marginInline:`${pe.tableExpandColumnWidth-vn}px -${vn}px`,[`${me}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mn,fontWeight:Xe,textAlign:"start",background:Zn,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:Ei},[`&${me}-row-selected`]:{"> th, > td":{background:li},"&:hover > th, &:hover > td":{background:Xi}}}},[`${me}-footer`]:{padding:`${Je}px ${vn}px`,color:Zi,background:Ar}})}};var Er=(0,sa.Z)("Table",pe=>{const{colorTextHeading:me,colorSplit:Xe,colorIcon:Je,colorIconHover:vn,opacityLoading:nn,colorBgContainer:Tn,controlInteractiveSize:Un,headerBg:Yn,headerColor:Qe,headerSortActiveBg:hn,headerSortHoverBg:mn,bodySortBg:Qn,rowHoverBg:Zn,rowSelectedBg:ni,rowSelectedHoverBg:Ei,rowExpandedBg:li,cellPaddingBlock:Xi,cellPaddingInline:Zi,cellPaddingBlockMD:Ar,cellPaddingInlineMD:br,cellPaddingBlockSM:io,cellPaddingInlineSM:Ii,borderColor:Xn,footerBg:Bo,footerColor:Pr,headerBorderRadius:sr,cellFontSize:ar,cellFontSizeMD:qi,cellFontSizeSM:pr,headerSplitColor:Wr,fixedHeaderSortActiveBg:ho,headerFilterHoverBg:po,filterDropdownBg:Ur,expandIconBg:jo,selectionColumnWidth:us,stickyScrollBarBg:qo}=pe,is=new Zu.C(Je),So=new Zu.C(vn),wa=2,Vo=(0,gu.TS)(pe,{tableFontSize:ar,tableBg:Tn,tableRadius:sr,tablePaddingVertical:Xi,tablePaddingHorizontal:Zi,tablePaddingVerticalMiddle:Ar,tablePaddingHorizontalMiddle:br,tablePaddingVerticalSmall:io,tablePaddingHorizontalSmall:Ii,tableBorderColor:Xn,tableHeaderTextColor:Qe,tableHeaderBg:Yn,tableFooterTextColor:Pr,tableFooterBg:Bo,tableHeaderCellSplitColor:Wr,tableHeaderSortBg:hn,tableHeaderSortHoverBg:mn,tableHeaderIconColor:is.clone().setAlpha(is.getAlpha()*nn).toRgbString(),tableHeaderIconColorHover:So.clone().setAlpha(So.getAlpha()*nn).toRgbString(),tableBodySortBg:Qn,tableFixedHeaderSortActiveBg:ho,tableHeaderFilterActiveBg:po,tableFilterDropdownBg:Ur,tableRowHoverBg:Zn,tableSelectedRowBg:ni,tableSelectedRowHoverBg:Ei,zIndexTableFixed:wa,zIndexTableSticky:wa+1,tableFontSizeMiddle:qi,tableFontSizeSmall:pr,tableSelectionColumnWidth:us,tableExpandIconBg:jo,tableExpandColumnWidth:Un+2*pe.padding,tableExpandedRowBg:li,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:qo,tableScrollThumbBgHover:me,tableScrollBg:Xe});return[rr(Vo),Ht(Vo),Rn(Vo),Ke(Vo),Yl(Vo),wl(Vo),Yt(Vo),gl(Vo),Rn(Vo),Ea(Vo),$e(Vo),wt(Vo),Jn(Vo),Cu(Vo),gn(Vo),we(Vo),Qi(Vo)]},pe=>{const{colorFillAlter:me,colorBgContainer:Xe,colorTextHeading:Je,colorFillSecondary:vn,colorFillContent:nn,controlItemBgActive:Tn,controlItemBgActiveHover:Un,padding:Yn,paddingSM:Qe,paddingXS:hn,colorBorderSecondary:mn,borderRadiusLG:Qn,fontSize:Zn,controlHeight:ni,colorTextPlaceholder:Ei}=pe,li=new Zu.C(vn).onBackground(Xe).toHexShortString(),Xi=new Zu.C(nn).onBackground(Xe).toHexShortString(),Zi=new Zu.C(me).onBackground(Xe).toHexShortString();return{headerBg:Zi,headerColor:Je,headerSortActiveBg:li,headerSortHoverBg:Xi,bodySortBg:Zi,rowHoverBg:Zi,rowSelectedBg:Tn,rowSelectedHoverBg:Un,rowExpandedBg:me,cellPaddingBlock:Yn,cellPaddingInline:Yn,cellPaddingBlockMD:Qe,cellPaddingInlineMD:hn,cellPaddingBlockSM:hn,cellPaddingInlineSM:hn,borderColor:mn,headerBorderRadius:Qn,footerBg:Zi,footerColor:Je,cellFontSize:Zn,cellFontSizeMD:Zn,cellFontSizeSM:Zn,headerSplitColor:mn,fixedHeaderSortActiveBg:li,headerFilterHoverBg:nn,filterDropdownMenuBg:Xe,filterDropdownBg:Xe,expandIconBg:Xe,selectionColumnWidth:ni,stickyScrollBarBg:Ei,stickyScrollBarBorderRadius:100}});const ao=[],gr=(pe,me)=>{const{prefixCls:Xe,className:Je,rootClassName:vn,style:nn,size:Tn,bordered:Un,dropdownPrefixCls:Yn,dataSource:Qe,pagination:hn,rowSelection:mn,rowKey:Qn="key",rowClassName:Zn,columns:ni,children:Ei,childrenColumnName:li,onChange:Xi,getPopupContainer:Zi,loading:Ar,expandIcon:br,expandable:io,expandedRowRender:Ii,expandIconColumnIndex:Xn,indentSize:Bo,scroll:Pr,sortDirections:sr,locale:ar,showSorterTooltip:qi=!0,virtual:pr}=pe,Wr=Mt.useMemo(()=>ni||ei(Ei),[ni,Ei]),ho=Mt.useMemo(()=>Wr.some(ga=>ga.responsive),[Wr]),po=(0,Vi.Z)(ho),Ur=Mt.useMemo(()=>{const ga=new Set(Object.keys(po).filter(Sl=>po[Sl]));return Wr.filter(Sl=>!Sl.responsive||Sl.responsive.some(Ba=>ga.has(Ba)))},[Wr,po]),jo=(0,xo.Z)(pe,["className","style","columns"]),{locale:us=Lo.Z,direction:qo,table:is,renderEmpty:So,getPrefixCls:wa,getPopupContainer:Vo}=Mt.useContext(fa.E_),rs=(0,co.Z)(Tn),Cs=Object.assign(Object.assign({},us.Table),ar),qs=Qe||ao,Ua=wa("table",Xe),$s=wa("dropdown",Yn),Ko=Object.assign({childrenColumnName:li,expandIconColumnIndex:Xn},io),{childrenColumnName:Go="children"}=Ko,ds=Mt.useMemo(()=>qs.some(ga=>ga==null?void 0:ga[Go])?"nest":Ii||io&&io.expandedRowRender?"row":null,[qs]),es={body:Mt.useRef()},Ts=Mt.useMemo(()=>typeof Qn=="function"?Qn:ga=>ga==null?void 0:ga[Qn],[Qn]),[ro]=Eu(qs,Go,Ts),Wo={},ha=function(ga,Sl){let Ba=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var pl,pa,lu;const Fu=Object.assign(Object.assign({},Wo),ga);Ba&&((pl=Wo.resetPagination)===null||pl===void 0||pl.call(Wo),!((pa=Fu.pagination)===null||pa===void 0)&&pa.current&&(Fu.pagination.current=1),hn&&hn.onChange&&hn.onChange(1,(lu=Fu.pagination)===null||lu===void 0?void 0:lu.pageSize)),Pr&&Pr.scrollToFirstRowOnChange!==!1&&es.body.current&&(0,ks.Z)(0,{getContainer:()=>es.body.current}),Xi==null||Xi(Fu.pagination,Fu.filters,Fu.sorter,{currentDataSource:fu(Ch(qs,Fu.sorterStates,Go),Fu.filterStates),action:Sl})},Us=(ga,Sl)=>{ha({sorter:ga,sorterStates:Sl},"sort",!1)},[Ql,Fl,Es,da]=zA({prefixCls:Ua,mergedColumns:Ur,onSorterChange:Us,sortDirections:sr||["ascend","descend"],tableLocale:Cs,showSorterTooltip:qi}),Dl=Mt.useMemo(()=>Ch(qs,Fl,Go),[qs,Fl]);Wo.sorter=da(),Wo.sorterStates=Fl;const Ao=(ga,Sl)=>{ha({filters:ga,filterStates:Sl},"filter",!0)},[Ra,Kl,ta]=Hd({prefixCls:Ua,locale:Cs,dropdownPrefixCls:$s,mergedColumns:Ur,onFilterChange:Ao,getPopupContainer:Zi||Vo}),ca=fu(Dl,Kl);Wo.filters=ta,Wo.filterStates=Kl;const ka=Mt.useMemo(()=>{const ga={};return Object.keys(ta).forEach(Sl=>{ta[Sl]!==null&&(ga[Sl]=ta[Sl])}),Object.assign(Object.assign({},Es),{filters:ga})},[Es,ta]),[Xa]=el(ka),al=(ga,Sl)=>{ha({pagination:Object.assign(Object.assign({},Wo.pagination),{current:ga,pageSize:Sl})},"paginate")},[Rs,Ta]=Qd(ca.length,al,hn);Wo.pagination=hn===!1?{}:ol(Rs,hn),Wo.resetPagination=Ta;const xl=Mt.useMemo(()=>{if(hn===!1||!Rs.pageSize)return ca;const{current:ga=1,total:Sl,pageSize:Ba=ec}=Rs;return ca.length<Sl?ca.length>Ba?ca.slice((ga-1)*Ba,ga*Ba):ca:ca.slice((ga-1)*Ba,ga*Ba)},[!!hn,ca,Rs&&Rs.current,Rs&&Rs.pageSize,Rs&&Rs.total]),[pu,au]=ch({prefixCls:Ua,data:ca,pageData:xl,getRowKey:Ts,getRecordByKey:ro,expandType:ds,childrenColumnName:Go,locale:Cs,getPopupContainer:Zi||Vo},mn),Uu=(ga,Sl,Ba)=>{let pl;return typeof Zn=="function"?pl=Wt()(Zn(ga,Sl,Ba)):pl=Wt()(Zn),Wt()({[`${Ua}-row-selected`]:au.has(Ts(ga,Sl))},pl)};Ko.__PARENT_RENDER_ICON__=Ko.expandIcon,Ko.expandIcon=Ko.expandIcon||br||Ks(Cs),ds==="nest"&&Ko.expandIconColumnIndex===void 0?Ko.expandIconColumnIndex=mn?1:0:Ko.expandIconColumnIndex>0&&mn&&(Ko.expandIconColumnIndex-=1),typeof Ko.indentSize!="number"&&(Ko.indentSize=typeof Bo=="number"?Bo:15);const Xu=Mt.useCallback(ga=>Xa(pu(Ra(Ql(ga)))),[Ql,Ra,pu]);let dh,$u;if(hn!==!1&&(Rs!=null&&Rs.total)){let ga;Rs.size?ga=Rs.size:ga=rs==="small"||rs==="middle"?"small":void 0;const Sl=pa=>Mt.createElement(Bs.Z,Object.assign({},Rs,{className:Wt()(`${Ua}-pagination ${Ua}-pagination-${pa}`,Rs.className),size:ga})),Ba=qo==="rtl"?"left":"right",{position:pl}=Rs;if(pl!==null&&Array.isArray(pl)){const pa=pl.find(zh=>zh.includes("top")),lu=pl.find(zh=>zh.includes("bottom")),Fu=pl.every(zh=>`${zh}`=="none");!pa&&!lu&&!Fu&&($u=Sl(Ba)),pa&&(dh=Sl(pa.toLowerCase().replace("top",""))),lu&&($u=Sl(lu.toLowerCase().replace("bottom","")))}else $u=Sl(Ba)}let _a;typeof Ar=="boolean"?_a={spinning:Ar}:typeof Ar=="object"&&(_a=Object.assign({spinning:!0},Ar));const[Bu,jl]=Er(Ua),[,nl]=(0,ua.Z)(),ph=Wt()(`${Ua}-wrapper`,is==null?void 0:is.className,{[`${Ua}-wrapper-rtl`]:qo==="rtl"},Je,vn,jl),Cc=Object.assign(Object.assign({},is==null?void 0:is.style),nn),mh=ar&&ar.emptyText||(So==null?void 0:So("Table"))||Mt.createElement(fo.Z,{componentName:"Table"}),ic=pr?rh:vs,rc={},vh=Mt.useMemo(()=>{const{fontSize:ga,lineHeight:Sl,padding:Ba,paddingXS:pl,paddingSM:pa}=nl,lu=Math.floor(ga*Sl);switch(rs){case"large":return Ba*2+lu;case"small":return pl*2+lu;default:return pa*2+lu}},[nl,rs]);return pr&&(rc.listItemHeight=vh),Bu(Mt.createElement("div",{ref:me,className:ph,style:Cc},Mt.createElement(Js.Z,Object.assign({spinning:!1},_a),dh,Mt.createElement(ic,Object.assign({},rc,jo,{columns:Ur,direction:qo,expandable:Ko,prefixCls:Ua,className:Wt()({[`${Ua}-middle`]:rs==="middle",[`${Ua}-small`]:rs==="small",[`${Ua}-bordered`]:Un,[`${Ua}-empty`]:qs.length===0}),data:xl,rowKey:Ts,rowClassName:Uu,emptyText:mh,internalHooks:ce,internalRefs:es,transformColumns:Xu})),$u)))};var Ti=Mt.forwardRef(gr);const xr=(pe,me)=>{const Xe=Mt.useRef(0);return Xe.current+=1,Mt.createElement(Ti,Object.assign({},pe,{ref:me,_renderTimes:Xe.current}))},kr=Mt.forwardRef(xr);kr.SELECTION_COLUMN=qa,kr.EXPAND_COLUMN=Lt,kr.SELECTION_ALL=sl,kr.SELECTION_INVERT=za,kr.SELECTION_NONE=Aa,kr.Column=_l,kr.ColumnGroup=Yo,kr.Summary=ae;var $n=kr,ii=$n},17574:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{default:function(){return ve}});var Lt=Ft(23130),ce=Ft(26407),re=Ft(52671),ke=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,te=Ft(7657),Pt=function(Ce,bn){return Vt.createElement(te.Z,(0,ee.Z)({},Ce,{ref:bn,icon:jt}))},oe=Vt.forwardRef(Pt),Kt=oe,$t=Ft(92310),Ct=Ft.n($t),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:Ze,direction:Mn="ltr"}=ne,Vn=Mn==="ltr"?"left":"right",fi=Mn==="ltr"?"right":"left",Kn={[Vn]:-bn*Ze+xt,[fi]:0};switch(Ce){case-1:Kn.top=-3;break;case 1:Kn.bottom=-3;break;default:Kn.bottom=-3,Kn[Vn]=Ze+xt;break}return Vt.createElement("div",{style:Kn,className:`${Ln}-drop-indicator`})}var Ut=Ft(71997),se=Vt.forwardRef((ne,Ce)=>{const{getPrefixCls:bn,direction:Ln,virtual:Ze,tree:Mn}=Vt.useContext(lt.E_),{prefixCls:Vn,className:fi,showIcon:Kn=!1,showLine:Bi,switcherIcon:en,blockNode:Fi=!1,children:Oi,checkable:Ot=!1,selectable:Tt=!0,draggable:vt,motion:ft,style:gt}=ne,At=bn("tree",Vn),ue=bn(),xe=ft!=null?ft:Object.assign(Object.assign({},(0,ht.Z)(ue)),{motionAppear:!1}),ae=Object.assign(Object.assign({},ne),{checkable:Ot,selectable:Tt,showIcon:Kn,motion:xe,blockNode:Fi,showLine:!!Bi,dropIndicatorRender:Nt}),[ye,Te]=(0,dt.ZP)(At),De=Vt.useMemo(()=>{if(!vt)return!1;let sn={};switch(typeof vt){case"function":sn.nodeDraggable=vt;break;case"object":sn=Object.assign({},vt);break;default:break}return sn.icon!==!1&&(sn.icon=sn.icon||Vt.createElement(rt.Z,null)),sn},[vt]),Me=sn=>Vt.createElement(Ut.Z,{prefixCls:At,switcherIcon:en,treeNodeProps:sn,showLine:Bi});return ye(Vt.createElement(Lt.Z,Object.assign({itemHeight:20,ref:Ce,virtual:Ze},ae,{style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),gt),prefixCls:At,className:Ct()({[`${At}-icon-hide`]:!Kn,[`${At}-block-node`]:Fi,[`${At}-unselectable`]:!Tt,[`${At}-rtl`]:Ln==="rtl"},Mn==null?void 0:Mn.className,fi,Te),direction:Ln,checkable:Ot&&Vt.createElement("span",{className:`${At}-checkbox-inner`}),selectable:Tt,switcherIcon:Me,draggable:De}),Oi))}),le;(function(ne){ne[ne.None=0]="None",ne[ne.Start=1]="Start",ne[ne.End=2]="End"})(le||(le={}));function Ae(ne,Ce){function bn(Ln){const{key:Ze,children:Mn}=Ln;Ce(Ze,Ln)!==!1&&Ae(Mn||[],Ce)}ne.forEach(bn)}function Pe(ne){let{treeData:Ce,expandedKeys:bn,startKey:Ln,endKey:Ze}=ne;const Mn=[];let Vn=le.None;if(Ln&&Ln===Ze)return[Ln];if(!Ln||!Ze)return[];function fi(Kn){return Kn===Ln||Kn===Ze}return Ae(Ce,Kn=>{if(Vn===le.End)return!1;if(fi(Kn)){if(Mn.push(Kn),Vn===le.None)Vn=le.Start;else if(Vn===le.Start)return Vn=le.End,!1}else Vn===le.Start&&Mn.push(Kn);return bn.includes(Kn)}),Mn}function qt(ne,Ce){const bn=(0,ce.Z)(Ce),Ln=[];return Ae(ne,(Ze,Mn)=>{const Vn=bn.indexOf(Ze);return Vn!==-1&&(Ln.push(Mn),bn.splice(Vn,1)),!!bn.length}),Ln}var ze=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 Ze=0,Ln=Object.getOwnPropertySymbols(ne);Ze<Ln.length;Ze++)Ce.indexOf(Ln[Ze])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ln[Ze])&&(bn[Ln[Ze]]=ne[Ln[Ze]]);return bn};function Wt(ne){const{isLeaf:Ce,expanded:bn}=ne;return Ce?Vt.createElement(re.Z,null):bn?Vt.createElement(ke.Z,null):Vt.createElement(Kt,null)}function Ge(ne){let{treeData:Ce,children:bn}=ne;return Ce||(0,tt.zn)(bn)}const _e=(ne,Ce)=>{var{defaultExpandAll:bn,defaultExpandParent:Ln,defaultExpandedKeys:Ze}=ne,Mn=ze(ne,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Vn=Vt.useRef(),fi=Vt.useRef(),Kn=()=>{const{keyEntities:De}=(0,tt.I8)(Ge(Mn));let Me;return bn?Me=Object.keys(De):Ln?Me=(0,et.r7)(Mn.expandedKeys||Ze||[],De):Me=Mn.expandedKeys||Ze,Me},[Bi,en]=Vt.useState(Mn.selectedKeys||Mn.defaultSelectedKeys||[]),[Fi,Oi]=Vt.useState(()=>Kn());Vt.useEffect(()=>{"selectedKeys"in Mn&&en(Mn.selectedKeys)},[Mn.selectedKeys]),Vt.useEffect(()=>{"expandedKeys"in Mn&&Oi(Mn.expandedKeys)},[Mn.expandedKeys]);const Ot=(De,Me)=>{var sn;return"expandedKeys"in Mn||Oi(De),(sn=Mn.onExpand)===null||sn===void 0?void 0:sn.call(Mn,De,Me)},Tt=(De,Me)=>{var sn;const{multiple:Gn}=Mn,{node:an,nativeEvent:un}=Me,{key:Bn=""}=an,ai=Ge(Mn),On=Object.assign(Object.assign({},Me),{selected:!0}),ji=(un==null?void 0:un.ctrlKey)||(un==null?void 0:un.metaKey),er=un==null?void 0:un.shiftKey;let Ji;Gn&&ji?(Ji=De,Vn.current=Bn,fi.current=Ji,On.selectedNodes=qt(ai,Ji)):Gn&&er?(Ji=Array.from(new Set([].concat((0,ce.Z)(fi.current||[]),(0,ce.Z)(Pe({treeData:ai,expandedKeys:Fi,startKey:Bn,endKey:Vn.current}))))),On.selectedNodes=qt(ai,Ji)):(Ji=[Bn],Vn.current=Bn,fi.current=Ji,On.selectedNodes=qt(ai,Ji)),(sn=Mn.onSelect)===null||sn===void 0||sn.call(Mn,Ji,On),"selectedKeys"in Mn||en(Ji)},{getPrefixCls:vt,direction:ft}=Vt.useContext(lt.E_),{prefixCls:gt,className:At,showIcon:ue=!0,expandAction:xe="click"}=Mn,ae=ze(Mn,["prefixCls","className","showIcon","expandAction"]),ye=vt("tree",gt),Te=Ct()(`${ye}-directory`,{[`${ye}-directory-rtl`]:ft==="rtl"},At);return Vt.createElement(se,Object.assign({icon:Wt,ref:Ce,blockNode:!0},ae,{showIcon:ue,expandAction:xe,prefixCls:ye,className:Te,expandedKeys:Fi,selectedKeys:Bi,onSelect:Tt,onExpand:Ot}))};var We=Vt.forwardRef(_e);const Re=se;Re.DirectoryTree=We,Re.TreeNode=Lt.O;var ve=Re},20648:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{TM:function(){return $t},Yk:function(){return Kt}});var Lt=Ft(93083),ce=Ft(98447),re=Ft(17313),ke=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}`}}}),te=(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:'""'}}}),Pt=(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"},te(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`}}}}})}},oe=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"}}}}}},Kt=(Ct,et)=>{const tt=`.${Ct}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ht=(0,ee.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[Pt(Ct,ht),oe(ht)]},$t=Ct=>{const{controlHeightSM:et}=Ct;return{titleHeight:et,nodeHoverBg:Ct.controlItemBgHover,nodeSelectedBg:Ct.controlItemBgActive}};Cn.ZP=(0,Vt.Z)("Tree",(Ct,et)=>{let{prefixCls:tt}=et;return[{[Ct.componentCls]:(0,ce.C2)(`${tt}-checkbox`,Ct)},Kt(tt,Ct),(0,ke.Z)(Ct)]},Ct=>{const{colorTextLightSolid:et,colorPrimary:tt}=Ct;return Object.assign(Object.assign({},$t(Ct)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{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"},ke=re,ee=Ft(7657),Vt=function(ht,dt){return ce.createElement(ee.Z,(0,Lt.Z)({},ht,{ref:dt,icon:ke}))},Mt=ce.forwardRef(Vt),jt=Mt,te=Ft(52671),Pt=Ft(58617),oe=Ft(15075),Kt=Ft(43531),$t=Ft(92310),Ct=Ft.n($t),et=Ft(92343),lt=rt=>{const{prefixCls:ht,switcherIcon:dt,treeNodeProps:xt,showLine:Nt}=rt,{isLeaf:Ut,expanded:Gt,loading:se}=xt;if(se)return ce.createElement(Pt.Z,{className:`${ht}-switcher-loading-icon`});let le;if(Nt&&typeof Nt=="object"&&(le=Nt.showLeafIcon),Ut){if(!Nt)return null;if(typeof le!="boolean"&&le){const qt=typeof le=="function"?le(xt):le,ze=`${ht}-switcher-line-custom-icon`;return(0,et.l$)(qt)?(0,et.Tm)(qt,{className:Ct()(qt.props.className||"",ze)}):qt}return le?ce.createElement(te.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement("span",{className:`${ht}-switcher-leaf-line`})}const Ae=`${ht}-switcher-icon`,Pe=typeof dt=="function"?dt(xt):dt;return(0,et.l$)(Pe)?(0,et.Tm)(Pe,{className:Ct()(Pe.props.className||"",Ae)}):Pe!==void 0?Pe:Nt?Gt?ce.createElement(oe.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(Kt.Z,{className:`${ht}-switcher-line-icon`}):ce.createElement(jt,{className:Ae})}},86251:function(hi,Cn){"use strict";Cn.byteLength=Mt,Cn.toByteArray=te,Cn.fromByteArray=Kt;for(var Ft=[],Lt=[],ce=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke=0,ee=re.length;ke<ee;++ke)Ft[ke]=re[ke],Lt[re.charCodeAt(ke)]=ke;Lt[45]=62,Lt[95]=63;function Vt($t){var Ct=$t.length;if(Ct%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=$t.indexOf("=");et===-1&&(et=Ct);var tt=et===Ct?0:4-et%4;return[et,tt]}function Mt($t){var Ct=Vt($t),et=Ct[0],tt=Ct[1];return(et+tt)*3/4-tt}function jt($t,Ct,et){return(Ct+et)*3/4-et}function te($t){var Ct,et=Vt($t),tt=et[0],lt=et[1],rt=new ce(jt($t,tt,lt)),ht=0,dt=lt>0?tt-4:tt,xt;for(xt=0;xt<dt;xt+=4)Ct=Lt[$t.charCodeAt(xt)]<<18|Lt[$t.charCodeAt(xt+1)]<<12|Lt[$t.charCodeAt(xt+2)]<<6|Lt[$t.charCodeAt(xt+3)],rt[ht++]=Ct>>16&255,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255;return lt===2&&(Ct=Lt[$t.charCodeAt(xt)]<<2|Lt[$t.charCodeAt(xt+1)]>>4,rt[ht++]=Ct&255),lt===1&&(Ct=Lt[$t.charCodeAt(xt)]<<10|Lt[$t.charCodeAt(xt+1)]<<4|Lt[$t.charCodeAt(xt+2)]>>2,rt[ht++]=Ct>>8&255,rt[ht++]=Ct&255),rt}function Pt($t){return Ft[$t>>18&63]+Ft[$t>>12&63]+Ft[$t>>6&63]+Ft[$t&63]}function oe($t,Ct,et){for(var tt,lt=[],rt=Ct;rt<et;rt+=3)tt=($t[rt]<<16&16711680)+($t[rt+1]<<8&65280)+($t[rt+2]&255),lt.push(Pt(tt));return lt.join("")}function Kt($t){for(var Ct,et=$t.length,tt=et%3,lt=[],rt=16383,ht=0,dt=et-tt;ht<dt;ht+=rt)lt.push(oe($t,ht,ht+rt>dt?dt:ht+rt));return tt===1?(Ct=$t[et-1],lt.push(Ft[Ct>>2]+Ft[Ct<<4&63]+"==")):tt===2&&(Ct=($t[et-2]<<8)+$t[et-1],lt.push(Ft[Ct>>10]+Ft[Ct>>4&63]+Ft[Ct<<2&63]+"=")),lt.join("")}},19208:function(hi,Cn,Ft){"use strict";var Lt;var ce=Ft(86251),re=Ft(67467),ke=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cn.lW=jt,Lt=ht,Cn.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),ft={foo:function(){return 42}};return Object.setPrototypeOf(ft,Uint8Array.prototype),Object.setPrototypeOf(vt,ft),vt.foo()===42}catch(gt){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 ft=new Uint8Array(vt);return Object.setPrototypeOf(ft,jt.prototype),ft}function jt(vt,ft,gt){if(typeof vt=="number"){if(typeof ft=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Kt(vt)}return te(vt,ft,gt)}jt.poolSize=8192;function te(vt,ft,gt){if(typeof vt=="string")return $t(vt,ft);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(Oi(vt,ArrayBuffer)||vt&&Oi(vt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Oi(vt,SharedArrayBuffer)||vt&&Oi(vt.buffer,SharedArrayBuffer)))return tt(vt,ft,gt);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,ft,gt);var ue=lt(vt);if(ue)return ue;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof vt[Symbol.toPrimitive]=="function")return jt.from(vt[Symbol.toPrimitive]("string"),ft,gt);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,ft,gt){return te(vt,ft,gt)},Object.setPrototypeOf(jt.prototype,Uint8Array.prototype),Object.setPrototypeOf(jt,Uint8Array);function Pt(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 oe(vt,ft,gt){return Pt(vt),vt<=0?Mt(vt):ft!==void 0?typeof gt=="string"?Mt(vt).fill(ft,gt):Mt(vt).fill(ft):Mt(vt)}jt.alloc=function(vt,ft,gt){return oe(vt,ft,gt)};function Kt(vt){return Pt(vt),Mt(vt<0?0:rt(vt)|0)}jt.allocUnsafe=function(vt){return Kt(vt)},jt.allocUnsafeSlow=function(vt){return Kt(vt)};function $t(vt,ft){if((typeof ft!="string"||ft==="")&&(ft="utf8"),!jt.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);var gt=dt(vt,ft)|0,At=Mt(gt),ue=At.write(vt,ft);return ue!==gt&&(At=At.slice(0,ue)),At}function Ct(vt){for(var ft=vt.length<0?0:rt(vt.length)|0,gt=Mt(ft),At=0;At<ft;At+=1)gt[At]=vt[At]&255;return gt}function et(vt){if(Oi(vt,Uint8Array)){var ft=new Uint8Array(vt);return tt(ft.buffer,ft.byteOffset,ft.byteLength)}return Ct(vt)}function tt(vt,ft,gt){if(ft<0||vt.byteLength<ft)throw new RangeError('"offset" is outside of buffer bounds');if(vt.byteLength<ft+(gt||0))throw new RangeError('"length" is outside of buffer bounds');var At;return ft===void 0&&gt===void 0?At=new Uint8Array(vt):gt===void 0?At=new Uint8Array(vt,ft):At=new Uint8Array(vt,ft,gt),Object.setPrototypeOf(At,jt.prototype),At}function lt(vt){if(jt.isBuffer(vt)){var ft=rt(vt.length)|0,gt=Mt(ft);return gt.length===0||vt.copy(gt,0,0,ft),gt}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(ft){return ft!=null&&ft._isBuffer===!0&&ft!==jt.prototype},jt.compare=function(ft,gt){if(Oi(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),Oi(gt,Uint8Array)&&(gt=jt.from(gt,gt.offset,gt.byteLength)),!jt.isBuffer(ft)||!jt.isBuffer(gt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ft===gt)return 0;for(var At=ft.length,ue=gt.length,xe=0,ae=Math.min(At,ue);xe<ae;++xe)if(ft[xe]!==gt[xe]){At=ft[xe],ue=gt[xe];break}return At<ue?-1:ue<At?1:0},jt.isEncoding=function(ft){switch(String(ft).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(ft,gt){if(!Array.isArray(ft))throw new TypeError('"list" argument must be an Array of Buffers');if(ft.length===0)return jt.alloc(0);var At;if(gt===void 0)for(gt=0,At=0;At<ft.length;++At)gt+=ft[At].length;var ue=jt.allocUnsafe(gt),xe=0;for(At=0;At<ft.length;++At){var ae=ft[At];if(Oi(ae,Uint8Array))xe+ae.length>ue.length?jt.from(ae).copy(ue,xe):Uint8Array.prototype.set.call(ue,ae,xe);else if(jt.isBuffer(ae))ae.copy(ue,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=ae.length}return ue};function dt(vt,ft){if(jt.isBuffer(vt))return vt.length;if(ArrayBuffer.isView(vt)||Oi(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 gt=vt.length,At=arguments.length>2&&arguments[2]===!0;if(!At&&gt===0)return 0;for(var ue=!1;;)switch(ft){case"ascii":case"latin1":case"binary":return gt;case"utf8":case"utf-8":return fi(vt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt*2;case"hex":return gt>>>1;case"base64":return en(vt).length;default:if(ue)return At?-1:fi(vt).length;ft=(""+ft).toLowerCase(),ue=!0}}jt.byteLength=dt;function xt(vt,ft,gt){var At=!1;if((ft===void 0||ft<0)&&(ft=0),ft>this.length||((gt===void 0||gt>this.length)&&(gt=this.length),gt<=0)||(gt>>>=0,ft>>>=0,gt<=ft))return"";for(vt||(vt="utf8");;)switch(vt){case"hex":return Re(this,ft,gt);case"utf8":case"utf-8":return Wt(this,ft,gt);case"ascii":return Ne(this,ft,gt);case"latin1":case"binary":return We(this,ft,gt);case"base64":return ze(this,ft,gt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,ft,gt);default:if(At)throw new TypeError("Unknown encoding: "+vt);vt=(vt+"").toLowerCase(),At=!0}}jt.prototype._isBuffer=!0;function Nt(vt,ft,gt){var At=vt[ft];vt[ft]=vt[gt],vt[gt]=At}jt.prototype.swap16=function(){var ft=this.length;if(ft%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var gt=0;gt<ft;gt+=2)Nt(this,gt,gt+1);return this},jt.prototype.swap32=function(){var ft=this.length;if(ft%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var gt=0;gt<ft;gt+=4)Nt(this,gt,gt+3),Nt(this,gt+1,gt+2);return this},jt.prototype.swap64=function(){var ft=this.length;if(ft%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var gt=0;gt<ft;gt+=8)Nt(this,gt,gt+7),Nt(this,gt+1,gt+6),Nt(this,gt+2,gt+5),Nt(this,gt+3,gt+4);return this},jt.prototype.toString=function(){var ft=this.length;return ft===0?"":arguments.length===0?Wt(this,0,ft):xt.apply(this,arguments)},jt.prototype.toLocaleString=jt.prototype.toString,jt.prototype.equals=function(ft){if(!jt.isBuffer(ft))throw new TypeError("Argument must be a Buffer");return this===ft?!0:jt.compare(this,ft)===0},jt.prototype.inspect=function(){var ft="",gt=Cn.h2;return ft=this.toString("hex",0,gt).replace(/(.{2})/g,"$1 ").trim(),this.length>gt&&(ft+=" ... "),"<Buffer "+ft+">"},ke&&(jt.prototype[ke]=jt.prototype.inspect),jt.prototype.compare=function(ft,gt,At,ue,xe){if(Oi(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),!jt.isBuffer(ft))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ft);if(gt===void 0&&(gt=0),At===void 0&&(At=ft?ft.length:0),ue===void 0&&(ue=0),xe===void 0&&(xe=this.length),gt<0||At>ft.length||ue<0||xe>this.length)throw new RangeError("out of range index");if(ue>=xe&&gt>=At)return 0;if(ue>=xe)return-1;if(gt>=At)return 1;if(gt>>>=0,At>>>=0,ue>>>=0,xe>>>=0,this===ft)return 0;for(var ae=xe-ue,ye=At-gt,Te=Math.min(ae,ye),De=this.slice(ue,xe),Me=ft.slice(gt,At),sn=0;sn<Te;++sn)if(De[sn]!==Me[sn]){ae=De[sn],ye=Me[sn];break}return ae<ye?-1:ye<ae?1:0};function Ut(vt,ft,gt,At,ue){if(vt.length===0)return-1;if(typeof gt=="string"?(At=gt,gt=0):gt>2147483647?gt=2147483647:gt<-2147483648&&(gt=-2147483648),gt=+gt,Ot(gt)&&(gt=ue?0:vt.length-1),gt<0&&(gt=vt.length+gt),gt>=vt.length){if(ue)return-1;gt=vt.length-1}else if(gt<0)if(ue)gt=0;else return-1;if(typeof ft=="string"&&(ft=jt.from(ft,At)),jt.isBuffer(ft))return ft.length===0?-1:Gt(vt,ft,gt,At,ue);if(typeof ft=="number")return ft=ft&255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(vt,ft,gt):Uint8Array.prototype.lastIndexOf.call(vt,ft,gt):Gt(vt,[ft],gt,At,ue);throw new TypeError("val must be string, number or Buffer")}function Gt(vt,ft,gt,At,ue){var xe=1,ae=vt.length,ye=ft.length;if(At!==void 0&&(At=String(At).toLowerCase(),At==="ucs2"||At==="ucs-2"||At==="utf16le"||At==="utf-16le")){if(vt.length<2||ft.length<2)return-1;xe=2,ae/=2,ye/=2,gt/=2}function Te(an,un){return xe===1?an[un]:an.readUInt16BE(un*xe)}var De;if(ue){var Me=-1;for(De=gt;De<ae;De++)if(Te(vt,De)===Te(ft,Me===-1?0:De-Me)){if(Me===-1&&(Me=De),De-Me+1===ye)return Me*xe}else Me!==-1&&(De-=De-Me),Me=-1}else for(gt+ye>ae&&(gt=ae-ye),De=gt;De>=0;De--){for(var sn=!0,Gn=0;Gn<ye;Gn++)if(Te(vt,De+Gn)!==Te(ft,Gn)){sn=!1;break}if(sn)return De}return-1}jt.prototype.includes=function(ft,gt,At){return this.indexOf(ft,gt,At)!==-1},jt.prototype.indexOf=function(ft,gt,At){return Ut(this,ft,gt,At,!0)},jt.prototype.lastIndexOf=function(ft,gt,At){return Ut(this,ft,gt,At,!1)};function se(vt,ft,gt,At){gt=Number(gt)||0;var ue=vt.length-gt;At?(At=Number(At),At>ue&&(At=ue)):At=ue;var xe=ft.length;At>xe/2&&(At=xe/2);for(var ae=0;ae<At;++ae){var ye=parseInt(ft.substr(ae*2,2),16);if(Ot(ye))return ae;vt[gt+ae]=ye}return ae}function le(vt,ft,gt,At){return Fi(fi(ft,vt.length-gt),vt,gt,At)}function Ae(vt,ft,gt,At){return Fi(Kn(ft),vt,gt,At)}function Pe(vt,ft,gt,At){return Fi(en(ft),vt,gt,At)}function qt(vt,ft,gt,At){return Fi(Bi(ft,vt.length-gt),vt,gt,At)}jt.prototype.write=function(ft,gt,At,ue){if(gt===void 0)ue="utf8",At=this.length,gt=0;else if(At===void 0&&typeof gt=="string")ue=gt,At=this.length,gt=0;else if(isFinite(gt))gt=gt>>>0,isFinite(At)?(At=At>>>0,ue===void 0&&(ue="utf8")):(ue=At,At=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var xe=this.length-gt;if((At===void 0||At>xe)&&(At=xe),ft.length>0&&(At<0||gt<0)||gt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var ae=!1;;)switch(ue){case"hex":return se(this,ft,gt,At);case"utf8":case"utf-8":return le(this,ft,gt,At);case"ascii":case"latin1":case"binary":return Ae(this,ft,gt,At);case"base64":return Pe(this,ft,gt,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,ft,gt,At);default:if(ae)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),ae=!0}},jt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ze(vt,ft,gt){return ft===0&&gt===vt.length?ce.fromByteArray(vt):ce.fromByteArray(vt.slice(ft,gt))}function Wt(vt,ft,gt){gt=Math.min(vt.length,gt);for(var At=[],ue=ft;ue<gt;){var xe=vt[ue],ae=null,ye=xe>239?4:xe>223?3:xe>191?2:1;if(ue+ye<=gt){var Te,De,Me,sn;switch(ye){case 1:xe<128&&(ae=xe);break;case 2:Te=vt[ue+1],(Te&192)===128&&(sn=(xe&31)<<6|Te&63,sn>127&&(ae=sn));break;case 3:Te=vt[ue+1],De=vt[ue+2],(Te&192)===128&&(De&192)===128&&(sn=(xe&15)<<12|(Te&63)<<6|De&63,sn>2047&&(sn<55296||sn>57343)&&(ae=sn));break;case 4:Te=vt[ue+1],De=vt[ue+2],Me=vt[ue+3],(Te&192)===128&&(De&192)===128&&(Me&192)===128&&(sn=(xe&15)<<18|(Te&63)<<12|(De&63)<<6|Me&63,sn>65535&&sn<1114112&&(ae=sn))}}ae===null?(ae=65533,ye=1):ae>65535&&(ae-=65536,At.push(ae>>>10&1023|55296),ae=56320|ae&1023),At.push(ae),ue+=ye}return _e(At)}var Ge=4096;function _e(vt){var ft=vt.length;if(ft<=Ge)return String.fromCharCode.apply(String,vt);for(var gt="",At=0;At<ft;)gt+=String.fromCharCode.apply(String,vt.slice(At,At+=Ge));return gt}function Ne(vt,ft,gt){var At="";gt=Math.min(vt.length,gt);for(var ue=ft;ue<gt;++ue)At+=String.fromCharCode(vt[ue]&127);return At}function We(vt,ft,gt){var At="";gt=Math.min(vt.length,gt);for(var ue=ft;ue<gt;++ue)At+=String.fromCharCode(vt[ue]);return At}function Re(vt,ft,gt){var At=vt.length;(!ft||ft<0)&&(ft=0),(!gt||gt<0||gt>At)&&(gt=At);for(var ue="",xe=ft;xe<gt;++xe)ue+=Tt[vt[xe]];return ue}function ve(vt,ft,gt){for(var At=vt.slice(ft,gt),ue="",xe=0;xe<At.length-1;xe+=2)ue+=String.fromCharCode(At[xe]+At[xe+1]*256);return ue}jt.prototype.slice=function(ft,gt){var At=this.length;ft=~~ft,gt=gt===void 0?At:~~gt,ft<0?(ft+=At,ft<0&&(ft=0)):ft>At&&(ft=At),gt<0?(gt+=At,gt<0&&(gt=0)):gt>At&&(gt=At),gt<ft&&(gt=ft);var ue=this.subarray(ft,gt);return Object.setPrototypeOf(ue,jt.prototype),ue};function ne(vt,ft,gt){if(vt%1!==0||vt<0)throw new RangeError("offset is not uint");if(vt+ft>gt)throw new RangeError("Trying to access beyond buffer length")}jt.prototype.readUintLE=jt.prototype.readUIntLE=function(ft,gt,At){ft=ft>>>0,gt=gt>>>0,At||ne(ft,gt,this.length);for(var ue=this[ft],xe=1,ae=0;++ae<gt&&(xe*=256);)ue+=this[ft+ae]*xe;return ue},jt.prototype.readUintBE=jt.prototype.readUIntBE=function(ft,gt,At){ft=ft>>>0,gt=gt>>>0,At||ne(ft,gt,this.length);for(var ue=this[ft+--gt],xe=1;gt>0&&(xe*=256);)ue+=this[ft+--gt]*xe;return ue},jt.prototype.readUint8=jt.prototype.readUInt8=function(ft,gt){return ft=ft>>>0,gt||ne(ft,1,this.length),this[ft]},jt.prototype.readUint16LE=jt.prototype.readUInt16LE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,2,this.length),this[ft]|this[ft+1]<<8},jt.prototype.readUint16BE=jt.prototype.readUInt16BE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,2,this.length),this[ft]<<8|this[ft+1]},jt.prototype.readUint32LE=jt.prototype.readUInt32LE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,4,this.length),(this[ft]|this[ft+1]<<8|this[ft+2]<<16)+this[ft+3]*16777216},jt.prototype.readUint32BE=jt.prototype.readUInt32BE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,4,this.length),this[ft]*16777216+(this[ft+1]<<16|this[ft+2]<<8|this[ft+3])},jt.prototype.readIntLE=function(ft,gt,At){ft=ft>>>0,gt=gt>>>0,At||ne(ft,gt,this.length);for(var ue=this[ft],xe=1,ae=0;++ae<gt&&(xe*=256);)ue+=this[ft+ae]*xe;return xe*=128,ue>=xe&&(ue-=Math.pow(2,8*gt)),ue},jt.prototype.readIntBE=function(ft,gt,At){ft=ft>>>0,gt=gt>>>0,At||ne(ft,gt,this.length);for(var ue=gt,xe=1,ae=this[ft+--ue];ue>0&&(xe*=256);)ae+=this[ft+--ue]*xe;return xe*=128,ae>=xe&&(ae-=Math.pow(2,8*gt)),ae},jt.prototype.readInt8=function(ft,gt){return ft=ft>>>0,gt||ne(ft,1,this.length),this[ft]&128?(255-this[ft]+1)*-1:this[ft]},jt.prototype.readInt16LE=function(ft,gt){ft=ft>>>0,gt||ne(ft,2,this.length);var At=this[ft]|this[ft+1]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt16BE=function(ft,gt){ft=ft>>>0,gt||ne(ft,2,this.length);var At=this[ft+1]|this[ft]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt32LE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,4,this.length),this[ft]|this[ft+1]<<8|this[ft+2]<<16|this[ft+3]<<24},jt.prototype.readInt32BE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,4,this.length),this[ft]<<24|this[ft+1]<<16|this[ft+2]<<8|this[ft+3]},jt.prototype.readFloatLE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,4,this.length),re.read(this,ft,!0,23,4)},jt.prototype.readFloatBE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,4,this.length),re.read(this,ft,!1,23,4)},jt.prototype.readDoubleLE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,8,this.length),re.read(this,ft,!0,52,8)},jt.prototype.readDoubleBE=function(ft,gt){return ft=ft>>>0,gt||ne(ft,8,this.length),re.read(this,ft,!1,52,8)};function Ce(vt,ft,gt,At,ue,xe){if(!jt.isBuffer(vt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ft>ue||ft<xe)throw new RangeError('"value" argument is out of bounds');if(gt+At>vt.length)throw new RangeError("Index out of range")}jt.prototype.writeUintLE=jt.prototype.writeUIntLE=function(ft,gt,At,ue){if(ft=+ft,gt=gt>>>0,At=At>>>0,!ue){var xe=Math.pow(2,8*At)-1;Ce(this,ft,gt,At,xe,0)}var ae=1,ye=0;for(this[gt]=ft&255;++ye<At&&(ae*=256);)this[gt+ye]=ft/ae&255;return gt+At},jt.prototype.writeUintBE=jt.prototype.writeUIntBE=function(ft,gt,At,ue){if(ft=+ft,gt=gt>>>0,At=At>>>0,!ue){var xe=Math.pow(2,8*At)-1;Ce(this,ft,gt,At,xe,0)}var ae=At-1,ye=1;for(this[gt+ae]=ft&255;--ae>=0&&(ye*=256);)this[gt+ae]=ft/ye&255;return gt+At},jt.prototype.writeUint8=jt.prototype.writeUInt8=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,1,255,0),this[gt]=ft&255,gt+1},jt.prototype.writeUint16LE=jt.prototype.writeUInt16LE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,2,65535,0),this[gt]=ft&255,this[gt+1]=ft>>>8,gt+2},jt.prototype.writeUint16BE=jt.prototype.writeUInt16BE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,2,65535,0),this[gt]=ft>>>8,this[gt+1]=ft&255,gt+2},jt.prototype.writeUint32LE=jt.prototype.writeUInt32LE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,4,4294967295,0),this[gt+3]=ft>>>24,this[gt+2]=ft>>>16,this[gt+1]=ft>>>8,this[gt]=ft&255,gt+4},jt.prototype.writeUint32BE=jt.prototype.writeUInt32BE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,4,4294967295,0),this[gt]=ft>>>24,this[gt+1]=ft>>>16,this[gt+2]=ft>>>8,this[gt+3]=ft&255,gt+4},jt.prototype.writeIntLE=function(ft,gt,At,ue){if(ft=+ft,gt=gt>>>0,!ue){var xe=Math.pow(2,8*At-1);Ce(this,ft,gt,At,xe-1,-xe)}var ae=0,ye=1,Te=0;for(this[gt]=ft&255;++ae<At&&(ye*=256);)ft<0&&Te===0&&this[gt+ae-1]!==0&&(Te=1),this[gt+ae]=(ft/ye>>0)-Te&255;return gt+At},jt.prototype.writeIntBE=function(ft,gt,At,ue){if(ft=+ft,gt=gt>>>0,!ue){var xe=Math.pow(2,8*At-1);Ce(this,ft,gt,At,xe-1,-xe)}var ae=At-1,ye=1,Te=0;for(this[gt+ae]=ft&255;--ae>=0&&(ye*=256);)ft<0&&Te===0&&this[gt+ae+1]!==0&&(Te=1),this[gt+ae]=(ft/ye>>0)-Te&255;return gt+At},jt.prototype.writeInt8=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,1,127,-128),ft<0&&(ft=255+ft+1),this[gt]=ft&255,gt+1},jt.prototype.writeInt16LE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,2,32767,-32768),this[gt]=ft&255,this[gt+1]=ft>>>8,gt+2},jt.prototype.writeInt16BE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,2,32767,-32768),this[gt]=ft>>>8,this[gt+1]=ft&255,gt+2},jt.prototype.writeInt32LE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,4,2147483647,-2147483648),this[gt]=ft&255,this[gt+1]=ft>>>8,this[gt+2]=ft>>>16,this[gt+3]=ft>>>24,gt+4},jt.prototype.writeInt32BE=function(ft,gt,At){return ft=+ft,gt=gt>>>0,At||Ce(this,ft,gt,4,2147483647,-2147483648),ft<0&&(ft=4294967295+ft+1),this[gt]=ft>>>24,this[gt+1]=ft>>>16,this[gt+2]=ft>>>8,this[gt+3]=ft&255,gt+4};function bn(vt,ft,gt,At,ue,xe){if(gt+At>vt.length)throw new RangeError("Index out of range");if(gt<0)throw new RangeError("Index out of range")}function Ln(vt,ft,gt,At,ue){return ft=+ft,gt=gt>>>0,ue||bn(vt,ft,gt,4,34028234663852886e22,-34028234663852886e22),re.write(vt,ft,gt,At,23,4),gt+4}jt.prototype.writeFloatLE=function(ft,gt,At){return Ln(this,ft,gt,!0,At)},jt.prototype.writeFloatBE=function(ft,gt,At){return Ln(this,ft,gt,!1,At)};function Ze(vt,ft,gt,At,ue){return ft=+ft,gt=gt>>>0,ue||bn(vt,ft,gt,8,17976931348623157e292,-17976931348623157e292),re.write(vt,ft,gt,At,52,8),gt+8}jt.prototype.writeDoubleLE=function(ft,gt,At){return Ze(this,ft,gt,!0,At)},jt.prototype.writeDoubleBE=function(ft,gt,At){return Ze(this,ft,gt,!1,At)},jt.prototype.copy=function(ft,gt,At,ue){if(!jt.isBuffer(ft))throw new TypeError("argument should be a Buffer");if(At||(At=0),!ue&&ue!==0&&(ue=this.length),gt>=ft.length&&(gt=ft.length),gt||(gt=0),ue>0&&ue<At&&(ue=At),ue===At||ft.length===0||this.length===0)return 0;if(gt<0)throw new RangeError("targetStart out of bounds");if(At<0||At>=this.length)throw new RangeError("Index out of range");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),ft.length-gt<ue-At&&(ue=ft.length-gt+At);var xe=ue-At;return this===ft&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(gt,At,ue):Uint8Array.prototype.set.call(ft,this.subarray(At,ue),gt),xe},jt.prototype.fill=function(ft,gt,At,ue){if(typeof ft=="string"){if(typeof gt=="string"?(ue=gt,gt=0,At=this.length):typeof At=="string"&&(ue=At,At=this.length),ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!jt.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);if(ft.length===1){var xe=ft.charCodeAt(0);(ue==="utf8"&&xe<128||ue==="latin1")&&(ft=xe)}}else typeof ft=="number"?ft=ft&255:typeof ft=="boolean"&&(ft=Number(ft));if(gt<0||this.length<gt||this.length<At)throw new RangeError("Out of range index");if(At<=gt)return this;gt=gt>>>0,At=At===void 0?this.length:At>>>0,ft||(ft=0);var ae;if(typeof ft=="number")for(ae=gt;ae<At;++ae)this[ae]=ft;else{var ye=jt.isBuffer(ft)?ft:jt.from(ft,ue),Te=ye.length;if(Te===0)throw new TypeError('The value "'+ft+'" is invalid for argument "value"');for(ae=0;ae<At-gt;++ae)this[ae+gt]=ye[ae%Te]}return this};var Mn=/[^+/0-9A-Za-z-_]/g;function Vn(vt){if(vt=vt.split("=")[0],vt=vt.trim().replace(Mn,""),vt.length<2)return"";for(;vt.length%4!==0;)vt=vt+"=";return vt}function fi(vt,ft){ft=ft||1/0;for(var gt,At=vt.length,ue=null,xe=[],ae=0;ae<At;++ae){if(gt=vt.charCodeAt(ae),gt>55295&&gt<57344){if(!ue){if(gt>56319){(ft-=3)>-1&&xe.push(239,191,189);continue}else if(ae+1===At){(ft-=3)>-1&&xe.push(239,191,189);continue}ue=gt;continue}if(gt<56320){(ft-=3)>-1&&xe.push(239,191,189),ue=gt;continue}gt=(ue-55296<<10|gt-56320)+65536}else ue&&(ft-=3)>-1&&xe.push(239,191,189);if(ue=null,gt<128){if((ft-=1)<0)break;xe.push(gt)}else if(gt<2048){if((ft-=2)<0)break;xe.push(gt>>6|192,gt&63|128)}else if(gt<65536){if((ft-=3)<0)break;xe.push(gt>>12|224,gt>>6&63|128,gt&63|128)}else if(gt<1114112){if((ft-=4)<0)break;xe.push(gt>>18|240,gt>>12&63|128,gt>>6&63|128,gt&63|128)}else throw new Error("Invalid code point")}return xe}function Kn(vt){for(var ft=[],gt=0;gt<vt.length;++gt)ft.push(vt.charCodeAt(gt)&255);return ft}function Bi(vt,ft){for(var gt,At,ue,xe=[],ae=0;ae<vt.length&&!((ft-=2)<0);++ae)gt=vt.charCodeAt(ae),At=gt>>8,ue=gt%256,xe.push(ue),xe.push(At);return xe}function en(vt){return ce.toByteArray(Vn(vt))}function Fi(vt,ft,gt,At){for(var ue=0;ue<At&&!(ue+gt>=ft.length||ue>=vt.length);++ue)ft[ue+gt]=vt[ue];return ue}function Oi(vt,ft){return vt instanceof ft||vt!=null&&vt.constructor!=null&&vt.constructor.name!=null&&vt.constructor.name===ft.name}function Ot(vt){return vt!==vt}var Tt=function(){for(var vt="0123456789abcdef",ft=new Array(256),gt=0;gt<16;++gt)for(var At=gt*16,ue=0;ue<16;++ue)ft[At+ue]=vt[gt]+vt[ue];return ft}()},57780:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{clsx:function(){return ce}});function Lt(re){var ke,ee,Vt="";if(typeof re=="string"||typeof re=="number")Vt+=re;else if(typeof re=="object")if(Array.isArray(re))for(ke=0;ke<re.length;ke++)re[ke]&&(ee=Lt(re[ke]))&&(Vt&&(Vt+=" "),Vt+=ee);else for(ke in re)re[ke]&&(Vt&&(Vt+=" "),Vt+=ke);return Vt}function ce(){for(var re,ke,ee=0,Vt="";ee<arguments.length;)(re=arguments[ee++])&&(ke=Lt(re))&&(Vt&&(Vt+=" "),Vt+=ke);return Vt}Cn.default=ce},99498:function(hi,Cn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){Lt.defineOption("placeholder","",function(jt,te,Pt){var oe=Pt&&Pt!=Lt.Init;if(te&&!oe)jt.on("blur",ee),jt.on("change",Vt),jt.on("swapDoc",Vt),Lt.on(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose=function(){ke(jt)}),Vt(jt);else if(!te&&oe){jt.off("blur",ee),jt.off("change",Vt),jt.off("swapDoc",Vt),Lt.off(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose),ce(jt);var Kt=jt.getWrapperElement();Kt.className=Kt.className.replace(" CodeMirror-empty","")}te&&!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 te=jt.state.placeholder=document.createElement("pre");te.style.cssText="height: 0; overflow: visible",te.style.direction=jt.getOption("direction"),te.className="CodeMirror-placeholder CodeMirror-line-like";var Pt=jt.getOption("placeholder");typeof Pt=="string"&&(Pt=document.createTextNode(Pt)),te.appendChild(Pt),jt.display.lineSpace.insertBefore(te,jt.display.lineSpace.firstChild)}function ke(jt){setTimeout(function(){var te=!1,Pt=jt.getInputField();Pt.nodeName=="TEXTAREA"?te=!Pt.value:jt.lineCount()==1&&(te=!/[^\u200b]/.test(Pt.querySelector(".CodeMirror-line").textContent)),te?re(jt):ce(jt)},20)}function ee(jt){Mt(jt)&&re(jt)}function Vt(jt){var te=jt.getWrapperElement(),Pt=Mt(jt);te.className=te.className.replace(" CodeMirror-empty","")+(Pt?" CodeMirror-empty":""),Pt?re(jt):ce(jt)}function Mt(jt){return jt.lineCount()===1&&jt.getLine(0)===""}})},25717:function(hi,Cn,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(ke(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(ee))});function ke(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ce[tt]}var ee={Backspace:te,Enter:Pt};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 Kt(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 te(et){var tt=jt(et);if(!tt||et.getOption("disableInput"))return Lt.Pass;for(var lt=ke(tt,"pairs"),rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Lt.Pass;var dt=$t(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 Pt(et){var tt=jt(et),lt=tt&&ke(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=$t(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 oe(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 Kt(et,tt){var lt=jt(et);if(!lt||et.getOption("disableInput"))return Lt.Pass;var rt=ke(lt,"pairs"),ht=rt.indexOf(tt);if(ht==-1)return Lt.Pass;for(var dt=ke(lt,"closeBefore"),xt=ke(lt,"triples"),Nt=rt.charAt(ht+1)==tt,Ut=et.listSelections(),Gt=ht%2==0,se,le=0;le<Ut.length;le++){var Ae=Ut[le],Pe=Ae.head,qt,ze=et.getRange(Pe,re(Pe.line,Pe.ch+1));if(Gt&&!Ae.empty())qt="surround";else if((Nt||!Gt)&&ze==tt)Nt&&Ct(et,Pe)?qt="both":xt.indexOf(tt)>=0&&et.getRange(Pe,re(Pe.line,Pe.ch+3))==tt+tt+tt?qt="skipThree":qt="skip";else if(Nt&&Pe.ch>1&&xt.indexOf(tt)>=0&&et.getRange(re(Pe.line,Pe.ch-2),Pe)==tt+tt){if(Pe.ch>2&&/\bstring/.test(et.getTokenTypeAt(re(Pe.line,Pe.ch-2))))return Lt.Pass;qt="addFour"}else if(Nt){var Wt=Pe.ch==0?" ":et.getRange(re(Pe.line,Pe.ch-1),Pe);if(!Lt.isWordChar(ze)&&Wt!=tt&&!Lt.isWordChar(Wt))qt="both";else return Lt.Pass}else if(Gt&&(ze.length===0||/\s/.test(ze)||dt.indexOf(ze)>-1))qt="both";else return Lt.Pass;if(!se)se=qt;else if(se!=qt)return Lt.Pass}var Ge=ht%2?rt.charAt(ht-1):tt,_e=ht%2?tt:rt.charAt(ht+1);et.operation(function(){if(se=="skip")et.execCommand("goCharRight");else if(se=="skipThree")for(var Ne=0;Ne<3;Ne++)et.execCommand("goCharRight");else if(se=="surround"){for(var We=et.getSelections(),Ne=0;Ne<We.length;Ne++)We[Ne]=Ge+We[Ne]+_e;et.replaceSelections(We,"around"),We=et.listSelections().slice();for(var Ne=0;Ne<We.length;Ne++)We[Ne]=oe(We[Ne]);et.setSelections(We)}else se=="both"?(et.replaceSelection(Ge+_e,null),et.triggerElectric(Ge+_e),et.execCommand("goCharLeft")):se=="addFour"&&(et.replaceSelection(Ge+Ge+Ge+Ge,"before"),et.execCommand("goCharRight"))})}function $t(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,Cn,Ft){(function(Lt){Lt(Ft(89780),Ft(32855))})(function(Lt){Lt.defineOption("autoCloseTags",!1,function(te,Pt,oe){if(oe!=Lt.Init&&oe&&te.removeKeyMap("autoCloseTags"),!!Pt){var Kt={name:"autoCloseTags"};(typeof Pt!="object"||Pt.whenClosing!==!1)&&(Kt["'/'"]=function($t){return Vt($t)}),(typeof Pt!="object"||Pt.whenOpening!==!1)&&(Kt["'>'"]=function($t){return ke($t)}),te.addKeyMap(Kt)}});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 ke(te){if(te.getOption("disableInput"))return Lt.Pass;for(var Pt=te.listSelections(),oe=[],Kt=te.getOption("autoCloseTags"),$t=0;$t<Pt.length;$t++){if(!Pt[$t].empty())return Lt.Pass;var Ct=Pt[$t].head,et=te.getTokenAt(Ct),tt=Lt.innerMode(te.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 Kt=="object"&&Kt.dontCloseTags||dt&&ce,Nt=typeof Kt=="object"&&Kt.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(te,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ht,Ct,!0))return Lt.Pass;var Gt=typeof Kt=="object"&&Kt.emptyTags;if(Gt&&Mt(Gt,ht)>-1){oe[$t]={text:"/>",newPos:Lt.Pos(Ct.line,Ct.ch+2)};continue}var se=Nt&&Mt(Nt,Ut)>-1;oe[$t]={indent:se,text:">"+(se?`
`:"")+"</"+ht+">",newPos:se?Lt.Pos(Ct.line+1,0):Lt.Pos(Ct.line,Ct.ch+1)}}for(var le=typeof Kt=="object"&&Kt.dontIndentOnAutoClose,$t=Pt.length-1;$t>=0;$t--){var Ae=oe[$t];te.replaceRange(Ae.text,Pt[$t].head,Pt[$t].anchor,"+insert");var Pe=te.listSelections().slice(0);Pe[$t]={head:Ae.newPos,anchor:Ae.newPos},te.setSelections(Pe),!le&&Ae.indent&&(te.indentLine(Ae.newPos.line,null,!0),te.indentLine(Ae.newPos.line+1,null,!0))}}function ee(te,Pt){for(var oe=te.listSelections(),Kt=[],$t=Pt?"/":"</",Ct=te.getOption("autoCloseTags"),et=typeof Ct=="object"&&Ct.dontIndentOnSlash,tt=0;tt<oe.length;tt++){if(!oe[tt].empty())return Lt.Pass;var lt=oe[tt].head,rt=te.getTokenAt(lt),ht=Lt.innerMode(te.getMode(),rt.state),dt=ht.state;if(Pt&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return Lt.Pass;var xt,Nt=ht.mode.name!="xml"&&te.getMode().name=="htmlmixed";if(Nt&&ht.mode.name=="javascript")xt=$t+"script";else if(Nt&&ht.mode.name=="css")xt=$t+"style";else{var Ut=ht.mode.xmlCurrentContext&&ht.mode.xmlCurrentContext(dt);if(!Ut||Ut.length&&jt(te,Ut,Ut[Ut.length-1],lt))return Lt.Pass;xt=$t+Ut[Ut.length-1]}te.getLine(lt.line).charAt(rt.end)!=">"&&(xt+=">"),Kt[tt]=xt}if(te.replaceSelections(Kt),oe=te.listSelections(),!et)for(var tt=0;tt<oe.length;tt++)(tt==oe.length-1||oe[tt].head.line<oe[tt+1].head.line)&&te.indentLine(oe[tt].head.line)}function Vt(te){return te.getOption("disableInput")?Lt.Pass:ee(te,!0)}Lt.commands.closeTag=function(te){return ee(te)};function Mt(te,Pt){if(te.indexOf)return te.indexOf(Pt);for(var oe=0,Kt=te.length;oe<Kt;++oe)if(te[oe]==Pt)return oe;return-1}function jt(te,Pt,oe,Kt,$t){if(!Lt.scanForClosingTag)return!1;var Ct=Math.min(te.lastLine()+1,Kt.line+500),et=Lt.scanForClosingTag(te,Kt,null,Ct);if(!et||et.tag!=oe)return!1;for(var tt=$t?1:0,lt=Pt.length-1;lt>=0&&Pt[lt]==oe;lt--)++tt;Kt=et.to;for(var lt=1;lt<tt;lt++){var rt=Lt.scanForClosingTag(te,Kt,null,Ct);if(!rt||rt.tag!=oe)return!1;Kt=rt.to}return!0}})},32855:function(hi,Cn,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 ke="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=ke+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Vt=new RegExp("<(/?)(["+ke+"]["+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 te(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function Pt(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function oe(lt){for(;;){var rt=lt.text.indexOf(">",lt.ch);if(rt==-1){if(te(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 Kt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(rt==-1){if(Pt(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 $t(lt){for(;;){Vt.lastIndex=lt.ch;var rt=Vt.exec(lt.text);if(!rt){if(te(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(Pt(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=$t(lt),xt,Nt=lt.line,Ut=lt.ch-(dt?dt[0].length:0);if(!dt||!(xt=oe(lt)))return;if(xt!="selfClose")if(dt[1]){for(var Gt=ht.length-1;Gt>=0;--Gt)if(ht[Gt]==dt[2]){ht.length=Gt;break}if(Gt<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"){Kt(lt);continue}var xt=lt.line,Nt=lt.ch,Ut=Kt(lt);if(!Ut)return;if(Ut[1])ht.push(Ut[2]);else{for(var Gt=ht.length-1;Gt>=0;--Gt)if(ht[Gt]==Ut[2]){ht.length=Gt;break}if(Gt<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=$t(ht);if(!dt||ht.line!=rt.line)return;var xt=oe(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=oe(dt),Nt=xt&&ce(dt.line,dt.ch),Ut=xt&&Kt(dt);if(!(!xt||!Ut||re(dt,rt)>0)){var Gt={from:ce(dt.line,dt.ch),to:Nt,tag:Ut[2]};return xt=="selfClose"?{open:Gt,close:null,at:"open"}:Ut[1]?{open:tt(dt,Ut[2]),close:Gt,at:"close"}:(dt=new Mt(lt,Nt.line,Nt.ch,ht),{open:Gt,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),Gt=et(Ut,Nt.tag);if(Gt)return{open:Nt,close:Gt}}},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(Cn,Ft){hi.exports=Ft()})(this,function(){"use strict";var Cn=navigator.userAgent,Ft=navigator.platform,Lt=/gecko\/\d/i.test(Cn),ce=/MSIE \d/.test(Cn),re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),ke=/Edge\/(\d+)/.exec(Cn),ee=ce||re||ke,Vt=ee&&(ce?document.documentMode||6:+(ke||re)[1]),Mt=!ke&&/WebKit\//.test(Cn),jt=Mt&&/Qt\/\d+\.\d+/.test(Cn),te=!ke&&/Chrome\//.test(Cn),Pt=/Opera\//.test(Cn),oe=/Apple Computer/.test(navigator.vendor),Kt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),$t=/PhantomJS/.test(Cn),Ct=!ke&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),tt=Ct||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),lt=Ct||/Mac/.test(Ft),rt=/\bCrOS\b/.test(Cn),ht=/win/i.test(Ft),dt=Pt&&Cn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Pt=!1,Mt=!0);var xt=lt&&(jt||Pt&&(dt==null||dt<12.11)),Nt=Lt||ee&&Vt>=9;function Ut(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Gt=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 se(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function le(it,st){return se(it).appendChild(st)}function Ae(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 Pe(it,st,mt,pt){var Bt=Ae(it,st,mt,pt);return Bt.setAttribute("role","presentation"),Bt}var qt;document.createRange?qt=function(it,st,mt,pt){var Bt=document.createRange();return Bt.setEnd(pt||it,mt),Bt.setStart(it,st),Bt}:qt=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 ze(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 Ge(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 We(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function Re(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 Ue=it.indexOf(" ",Jt);if(Ue<0||Ue>=st)return Se+(st-Jt);Se+=Ue-Jt,Se+=mt-Se%mt,Jt=Ue+1}}var ne=function(){this.id=null,this.f=null,this.time=0,this.handler=We(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"}},Ze={scroll:!1},Mn={origin:"*mouse"},Vn={origin:"+move"};function fi(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 Bi(it){for(;Kn.length<=it;)Kn.push(en(Kn)+" ");return Kn[it]}function en(it){return it[it.length-1]}function Fi(it,st){for(var mt=[],pt=0;pt<it.length;pt++)mt[pt]=st(it[pt],pt);return mt}function Oi(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&&Re(st,mt),mt}var vt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ft(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||vt.test(it))}function gt(it,st){return st?st.source.indexOf("\\w")>-1&&ft(it)?!0:st.test(it):ft(it)}function At(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var ue=/[\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&&ue.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 Te(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 De=null;function Me(it,st,mt){var pt;De=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:De=Bt),Jt.from==st&&(Jt.from!=Jt.to&&mt!="before"?pt=Bt:De=Bt)}return pt!=null?pt:De}var sn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function mt(ln){return ln<=247?it.charAt(ln):1424<=ln&&ln<=1524?"R":1536<=ln&&ln<=1785?st.charAt(ln-1536):1774<=ln&&ln<=2220?"r":8192<=ln&&ln<=8203?"w":ln==8204?"b":"L"}var pt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Bt=/[stwN]/,Jt=/[LRr]/,Se=/[Lb1n]/,Ue=/[1n]/;function Oe(ln,ri,pn){this.level=ln,this.from=ri,this.to=pn}return function(ln,ri){var pn=ri=="ltr"?"L":"R";if(ln.length==0||ri=="ltr"&&!pt.test(ln))return!1;for(var ki=ln.length,bi=[],yr=0;yr<ki;++yr)bi.push(mt(ln.charCodeAt(yr)));for(var Tr=0,qr=pn;Tr<ki;++Tr){var vo=bi[Tr];vo=="m"?bi[Tr]=qr:qr=vo}for(var $o=0,ko=pn;$o<ki;++$o){var ss=bi[$o];ss=="1"&&ko=="r"?bi[$o]="n":Jt.test(ss)&&(ko=ss,ss=="r"&&(bi[$o]="R"))}for(var Ns=1,To=bi[0];Ns<ki-1;++Ns){var ea=bi[Ns];ea=="+"&&To=="1"&&bi[Ns+1]=="1"?bi[Ns]="1":ea==","&&To==bi[Ns+1]&&(To=="1"||To=="n")&&(bi[Ns]=To),To=ea}for(var Cl=0;Cl<ki;++Cl){var ku=bi[Cl];if(ku==",")bi[Cl]="N";else if(ku=="%"){var cl=void 0;for(cl=Cl+1;cl<ki&&bi[cl]=="%";++cl);for(var yu=Cl&&bi[Cl-1]=="!"||cl<ki&&bi[cl]=="1"?"1":"N",La=Cl;La<cl;++La)bi[La]=yu;Cl=cl-1}}for(var Sa=0,vl=pn;Sa<ki;++Sa){var yl=bi[Sa];vl=="L"&&yl=="1"?bi[Sa]="L":Jt.test(yl)&&(vl=yl)}for(var Eo=0;Eo<ki;++Eo)if(Bt.test(bi[Eo])){var Ca=void 0;for(Ca=Eo+1;Ca<ki&&Bt.test(bi[Ca]);++Ca);for(var Ml=(Eo?bi[Eo-1]:pn)=="L",Nl=(Ca<ki?bi[Ca]:pn)=="L",lh=Ml==Nl?Ml?"L":"R":pn,Da=Eo;Da<Ca;++Da)bi[Da]=lh;Eo=Ca-1}for(var _s=[],wu,hu=0;hu<ki;)if(Se.test(bi[hu])){var ad=hu;for(++hu;hu<ki&&Se.test(bi[hu]);++hu);_s.push(new Oe(0,ad,hu))}else{var lc=hu,uh=_s.length,wh=ri=="rtl"?1:0;for(++hu;hu<ki&&bi[hu]!="L";++hu);for(var Il=lc;Il<hu;)if(Ue.test(bi[Il])){lc<Il&&(_s.splice(uh,0,new Oe(1,lc,Il)),uh+=wh);var th=Il;for(++Il;Il<hu&&Ue.test(bi[Il]);++Il);_s.splice(uh,0,new Oe(2,th,Il)),uh+=wh,lc=Il}else++Il;lc<hu&&_s.splice(uh,0,new Oe(1,lc,hu))}return ri=="ltr"&&(_s[0].level==1&&(wu=ln.match(/^\s+/))&&(_s[0].from=wu[0].length,_s.unshift(new Oe(0,0,wu[0].length))),en(_s).level==1&&(wu=ln.match(/\s+$/))&&(en(_s).to-=wu[0].length,_s.push(new Oe(0,ki-wu[0].length,ki)))),ri=="rtl"?_s.reverse():_s}}();function Gn(it,st){var mt=it.order;return mt==null&&(mt=it.order=sn(it.text,st)),mt}var an=[],un=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]||an).concat(mt)}};function Bn(it,st){return it._handlers&&it._handlers[st]||an}function ai(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 ji(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 er(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 Ji(it,st){return Bn(it,st).length>0}function Fr(it){it.prototype.on=function(st,mt){un(this,st,mt)},it.prototype.off=function(st,mt){ai(this,st,mt)}}function vr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function so(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Yr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Jr(it){vr(it),so(it)}function Lr(it){return it.target||it.srcElement}function Zr(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=Ae("div");return"draggable"in it||"dragDrop"in it}(),Uo;function fs(it){if(Uo==null){var st=Ae("span","\u200B");le(it,Ae("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Uo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ee&&Vt<8))}var mt=Uo?Ae("span","\u200B"):Ae("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return mt.setAttribute("cm-text",""),mt}var eo;function Os(it){if(eo!=null)return eo;var st=le(it,document.createTextNode("A\u062EA")),mt=qt(st,0,1).getBoundingClientRect(),pt=qt(st,1,2).getBoundingClientRect();return se(it),!mt||mt.left==mt.right?!1:eo=pt.right-mt.right<3}var yo=`
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/)},Xt=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},ti=function(){var it=Ae("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),gs=null;function ia(it){if(gs!=null)return gs;var st=le(it,Ae("span","x")),mt=st.getBoundingClientRect(),pt=qt(st,0,1).getBoundingClientRect();return gs=Math.abs(mt.left-pt.left)>1}var Zs={},la={};function Xs(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),Zs[it]=st}function Rr(it,st){la[it]=st}function _r(it){if(typeof it=="string"&&la.hasOwnProperty(it))it=la[it];else if(it&&typeof it.name=="string"&&la.hasOwnProperty(it.name)){var st=la[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 _r("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return _r("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Dn(it,st){st=_r(st);var mt=Zs[st.name];if(!mt)return Dn(it,"text/plain");var pt=mt(it,st);if(Nn.hasOwnProperty(st.name)){var Bt=Nn[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 Nn={};function je(it,st){var mt=Nn.hasOwnProperty(it)?Nn[it]:Nn[it]={};Re(st,mt)}function ei(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 dn(it,st,mt){return it.startState?it.startState(st,mt):!0}var Fe=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};Fe.prototype.eol=function(){return this.pos>=this.string.length},Fe.prototype.sol=function(){return this.pos==this.lineStart},Fe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Fe.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},Fe.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Fe.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Fe.prototype.skipToEnd=function(){this.pos=this.string.length},Fe.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Fe.prototype.backUp=function(it){this.pos-=it},Fe.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)},Fe.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Fe.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)}},Fe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fe.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Fe.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Fe.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function wn(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 Hn(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 Si(it,st,mt){var pt=[];return it.iter(st,mt,function(Bt){pt.push(Bt.text)}),pt}function Di(it,st){var mt=st-it.height;if(mt)for(var pt=it;pt;pt=pt.parent)pt.height+=mt}function tn(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 oi(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 Ue=it.lines[Se],Oe=Ue.height;if(st<Oe)break;st-=Oe}return mt+Se}function Li(it,st){return st>=it.first&&st<it.first+it.size}function tr(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 ui(it,st){return it.line-st.line||it.ch-st.ch}function Sr(it,st){return it.sticky==st.sticky&&ui(it,st)==0}function cr(it){return kn(it.line,it.ch)}function zr(it,st){return ui(it,st)<0?st:it}function dr(it,st){return ui(it,st)<0?it:st}function Mr(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function nr(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,wn(it,mt).text.length):Cr(st,wn(it,st.line).text.length)}function Cr(it,st){var mt=it.ch;return mt==null||mt>st?kn(it.line,st):mt<0?kn(it.line,0):it}function no(it,st){for(var mt=[],pt=0;pt<st.length;pt++)mt[pt]=nr(it,st[pt]);return mt}var Ro=function(it,st){this.state=it,this.lookAhead=st},yi=function(it,st,mt,pt){this.state=st,this.doc=it,this.line=mt,this.maxLookAhead=pt||0,this.baseTokens=null,this.baseTokenPos=1};yi.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},yi.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}},yi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yi.fromSaved=function(it,st,mt){return st instanceof Ro?new yi(it,ei(it.mode,st.state),mt,st.lookAhead):new yi(it,ei(it.mode,st),mt)},yi.prototype.save=function(it){var st=it!==!1?ei(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ro(st,this.maxLookAhead):st};function Po(it,st,mt,pt){var Bt=[it.state.modeGen],Jt={};mi(it,st.text,it.doc.mode,mt,function(ln,ri){return Bt.push(ln,ri)},Jt,pt);for(var Se=mt.state,Ue=function(ln){mt.baseTokens=Bt;var ri=it.state.overlays[ln],pn=1,ki=0;mt.state=!0,mi(it,st.text,ri.mode,mt,function(bi,yr){for(var Tr=pn;ki<bi;){var qr=Bt[pn];qr>bi&&Bt.splice(pn,1,bi,Bt[pn+1],qr),pn+=2,ki=Math.min(bi,qr)}if(yr)if(ri.opaque)Bt.splice(Tr,pn-Tr,bi,"overlay "+yr),pn=Tr+2;else for(;Tr<pn;Tr+=2){var vo=Bt[Tr+1];Bt[Tr+1]=(vo?vo+" ":"")+"overlay "+yr}},Jt),mt.state=Se,mt.baseTokens=null,mt.baseTokenPos=1},Oe=0;Oe<it.state.overlays.length;++Oe)Ue(Oe);return{styles:Bt,classes:Jt.bgClass||Jt.textClass?Jt:null}}function ws(it,st,mt){if(!st.styles||st.styles[0]!=it.state.modeGen){var pt=Zo(it,tn(st)),Bt=st.text.length>it.options.maxHighlightLength&&ei(it.doc.mode,pt.state),Jt=Po(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 Zo(it,st,mt){var pt=it.doc,Bt=it.display;if(!pt.mode.startState)return new yi(pt,!0,st);var Jt=wo(it,st,mt),Se=Jt>pt.first&&wn(pt,Jt-1).stateAfter,Ue=Se?yi.fromSaved(pt,Se,Jt):new yi(pt,dn(pt.mode),Jt);return pt.iter(Jt,st,function(Oe){pi(it,Oe.text,Ue);var ln=Ue.line;Oe.stateAfter=ln==st-1||ln%5==0||ln>=Bt.viewFrom&&ln<Bt.viewTo?Ue.save():null,Ue.nextLine()}),mt&&(pt.modeFrontier=Ue.line),Ue}function pi(it,st,mt,pt){var Bt=it.doc.mode,Jt=new Fe(st,it.options.tabSize,mt);for(Jt.start=Jt.pos=pt||0,st==""&&or(Bt,mt.state);!Jt.eol();)Hr(Bt,Jt,mt.state),Jt.start=Jt.pos}function or(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 Hr(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 uo=function(it,st,mt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=mt};function to(it,st,mt,pt){var Bt=it.doc,Jt=Bt.mode,Se;st=nr(Bt,st);var Ue=wn(Bt,st.line),Oe=Zo(it,st.line,mt),ln=new Fe(Ue.text,it.options.tabSize,Oe),ri;for(pt&&(ri=[]);(pt||ln.pos<st.ch)&&!ln.eol();)ln.start=ln.pos,Se=Hr(Jt,ln,Oe.state),pt&&ri.push(new uo(ln,Se,ei(Bt.mode,Oe.state)));return pt?ri:new uo(ln,Se,Oe.state)}function Fo(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 mi(it,st,mt,pt,Bt,Jt,Se){var Ue=mt.flattenSpans;Ue==null&&(Ue=it.options.flattenSpans);var Oe=0,ln=null,ri=new Fe(st,it.options.tabSize,pt),pn,ki=it.options.addModeClass&&[null];for(st==""&&Fo(or(mt,pt.state),Jt);!ri.eol();){if(ri.pos>it.options.maxHighlightLength?(Ue=!1,Se&&pi(it,st,pt,ri.pos),ri.pos=st.length,pn=null):pn=Fo(Hr(mt,ri,pt.state,ki),Jt),ki){var bi=ki[0].name;bi&&(pn="m-"+(pn?bi+" "+pn:bi))}if(!Ue||ln!=pn){for(;Oe<ri.start;)Oe=Math.min(ri.start,Oe+5e3),Bt(Oe,ln);ln=pn}ri.start=ri.pos}for(;Oe<ri.pos;){var yr=Math.min(ri.pos,Oe+5e3);Bt(yr,ln),Oe=yr}}function wo(it,st,mt){for(var pt,Bt,Jt=it.doc,Se=mt?-1:st-(it.doc.mode.innerMode?1e3:100),Ue=st;Ue>Se;--Ue){if(Ue<=Jt.first)return Jt.first;var Oe=wn(Jt,Ue-1),ln=Oe.stateAfter;if(ln&&(!mt||Ue+(ln instanceof Ro?ln.lookAhead:0)<=Jt.modeFrontier))return Ue;var ri=ve(Oe.text,null,it.options.tabSize);(Bt==null||pt>ri)&&(Bt=Ue-1,pt=ri)}return Bt}function Dr(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=wn(it,pt).stateAfter;if(Bt&&(!(Bt instanceof Ro)||pt+Bt.lookAhead<st)){mt=pt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,mt)}}var Br=!1,Pi=!1;function bo(){Br=!0}function Ci(){Pi=!0}function Xo(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 xs(it,st){for(var mt,pt=0;pt<it.length;++pt)it[pt]!=st&&(mt||(mt=[])).push(it[pt]);return mt}function va(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Gs(it,st,mt){var pt;if(it)for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=Jt.marker,Ue=Jt.from==null||(Se.inclusiveLeft?Jt.from<=st:Jt.from<st);if(Ue||Jt.from==st&&Se.type=="bookmark"&&(!mt||!Jt.marker.insertLeft)){var Oe=Jt.to==null||(Se.inclusiveRight?Jt.to>=st:Jt.to>st);(pt||(pt=[])).push(new Xo(Se,Jt.from,Oe?null:Jt.to))}}return pt}function Io(it,st,mt){var pt;if(it)for(var Bt=0;Bt<it.length;++Bt){var Jt=it[Bt],Se=Jt.marker,Ue=Jt.to==null||(Se.inclusiveRight?Jt.to>=st:Jt.to>st);if(Ue||Jt.from==st&&Se.type=="bookmark"&&(!mt||Jt.marker.insertLeft)){var Oe=Jt.from==null||(Se.inclusiveLeft?Jt.from<=st:Jt.from<st);(pt||(pt=[])).push(new Xo(Se,Oe?null:Jt.from-st,Jt.to==null?null:Jt.to-st))}}return pt}function _o(it,st){if(st.full)return null;var mt=Li(it,st.from.line)&&wn(it,st.from.line).markedSpans,pt=Li(it,st.to.line)&&wn(it,st.to.line).markedSpans;if(!mt&&!pt)return null;var Bt=st.from.ch,Jt=st.to.ch,Se=ui(st.from,st.to)==0,Ue=Gs(mt,Bt,Se),Oe=Io(pt,Jt,Se),ln=st.text.length==1,ri=en(st.text).length+(ln?Bt:0);if(Ue)for(var pn=0;pn<Ue.length;++pn){var ki=Ue[pn];if(ki.to==null){var bi=ra(Oe,ki.marker);bi?ln&&(ki.to=bi.to==null?null:bi.to+ri):ki.to=Bt}}if(Oe)for(var yr=0;yr<Oe.length;++yr){var Tr=Oe[yr];if(Tr.to!=null&&(Tr.to+=ri),Tr.from==null){var qr=ra(Ue,Tr.marker);qr||(Tr.from=ri,ln&&(Ue||(Ue=[])).push(Tr))}else Tr.from+=ri,ln&&(Ue||(Ue=[])).push(Tr)}Ue&&(Ue=As(Ue)),Oe&&Oe!=Ue&&(Oe=As(Oe));var vo=[Ue];if(!ln){var $o=st.text.length-2,ko;if($o>0&&Ue)for(var ss=0;ss<Ue.length;++ss)Ue[ss].to==null&&(ko||(ko=[])).push(new Xo(Ue[ss].marker,null,null));for(var Ns=0;Ns<$o;++Ns)vo.push(ko);vo.push(Oe)}return vo}function As(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 ls(it,st,mt){var pt=null;if(it.iter(st.line,mt.line+1,function(bi){if(bi.markedSpans)for(var yr=0;yr<bi.markedSpans.length;++yr){var Tr=bi.markedSpans[yr].marker;Tr.readOnly&&(!pt||Ce(pt,Tr)==-1)&&(pt||(pt=[])).push(Tr)}}),!pt)return null;for(var Bt=[{from:st,to:mt}],Jt=0;Jt<pt.length;++Jt)for(var Se=pt[Jt],Ue=Se.find(0),Oe=0;Oe<Bt.length;++Oe){var ln=Bt[Oe];if(!(ui(ln.to,Ue.from)<0||ui(ln.from,Ue.to)>0)){var ri=[Oe,1],pn=ui(ln.from,Ue.from),ki=ui(ln.to,Ue.to);(pn<0||!Se.inclusiveLeft&&!pn)&&ri.push({from:ln.from,to:Ue.from}),(ki>0||!Se.inclusiveRight&&!ki)&&ri.push({from:Ue.to,to:ln.to}),Bt.splice.apply(Bt,ri),Oe+=ri.length-3}}return Bt}function wr(it){var st=it.markedSpans;if(st){for(var mt=0;mt<st.length;++mt)st[mt].marker.detachLine(it);it.markedSpans=null}}function Ie(it,st){if(st){for(var mt=0;mt<st.length;++mt)st[mt].marker.attachLine(it);it.markedSpans=st}}function cs(it){return it.inclusiveLeft?-1:0}function oa(it){return it.inclusiveRight?1:0}function ll(it,st){var mt=it.lines.length-st.lines.length;if(mt!=0)return mt;var pt=it.find(),Bt=st.find(),Jt=ui(pt.from,Bt.from)||cs(it)-cs(st);if(Jt)return-Jt;var Se=ui(pt.to,Bt.to)||oa(it)-oa(st);return Se||st.id-it.id}function Ll(it,st){var mt=Pi&&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||ll(pt,Bt.marker)<0)&&(pt=Bt.marker);return pt}function fl(it){return Ll(it,!0)}function _l(it){return Ll(it,!1)}function ns(it,st){var mt=Pi&&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||ll(pt,Jt.marker)<0)&&(pt=Jt.marker)}return pt}function Yo(it,st,mt,pt,Bt){var Jt=wn(it,st),Se=Pi&&Jt.markedSpans;if(Se)for(var Ue=0;Ue<Se.length;++Ue){var Oe=Se[Ue];if(Oe.marker.collapsed){var ln=Oe.marker.find(0),ri=ui(ln.from,mt)||cs(Oe.marker)-cs(Bt),pn=ui(ln.to,pt)||oa(Oe.marker)-oa(Bt);if(!(ri>=0&&pn<=0||ri<=0&&pn>=0)&&(ri<=0&&(Oe.marker.inclusiveRight&&Bt.inclusiveLeft?ui(ln.to,mt)>=0:ui(ln.to,mt)>0)||ri>=0&&(Oe.marker.inclusiveRight&&Bt.inclusiveLeft?ui(ln.from,pt)<=0:ui(ln.from,pt)<0)))return!0}}}function xo(it){for(var st;st=fl(it);)it=st.find(-1,!0).line;return it}function ks(it){for(var st;st=_l(it);)it=st.find(1,!0).line;return it}function fa(it){for(var st,mt;st=_l(it);)it=st.find(1,!0).line,(mt||(mt=[])).push(it);return mt}function fo(it,st){var mt=wn(it,st),pt=xo(mt);return mt==pt?st:tn(pt)}function co(it,st){if(st>it.lastLine())return st;var mt=wn(it,st),pt;if(!Vi(it,mt))return st;for(;pt=_l(mt);)mt=pt.find(1,!0).line;return tn(mt)+1}function Vi(it,st){var mt=Pi&&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&&Lo(it,st,pt))return!0}}}function Lo(it,st,mt){if(mt.to==null){var pt=mt.marker.find(1,!0);return Lo(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)&&Lo(it,st,Bt))return!0}function Bs(it){it=xo(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 Ue=Jt.children[Se];if(Ue==mt)break;st+=Ue.height}return st}function Js(it){if(it.height==0)return 0;for(var st=it.text.length,mt,pt=it;mt=fl(pt);){var Bt=mt.find(0,!0);pt=Bt.from.line,st+=Bt.from.ch-Bt.to.ch}for(pt=it;mt=_l(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 ua(it){var st=it.display,mt=it.doc;st.maxLine=wn(mt,mt.first),st.maxLineLength=Js(st.maxLine),st.maxLineChanged=!0,mt.iter(function(pt){var Bt=Js(pt);Bt>st.maxLineLength&&(st.maxLineLength=Bt,st.maxLine=pt)})}var Ho=function(it,st,mt){this.text=it,Ie(this,st),this.height=mt?mt(this):1};Ho.prototype.lineNo=function(){return tn(this)},Fr(Ho);function Ks(it,st,mt,pt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),wr(it),Ie(it,mt);var Bt=pt?pt(it):1;Bt!=it.height&&Di(it,Bt)}function Na(it){it.parent=null,wr(it)}var Tl={},Va={};function Ps(it,st){if(!it||/^\s*$/.test(it))return null;var mt=st.addModeClass?Va:Tl;return mt[it]||(mt[it]=it.replace(/\S+/g,"cm-$&"))}function si(it,st){var mt=Pe("span",null,null,Mt?"padding-right: .1px":null),pt={pre:Pe("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=Ac,Os(it.display.measure)&&(Se=Gn(Jt,it.doc.direction))&&(pt.addToken=Hh(pt.addToken,Se)),pt.map=[];var Ue=st!=it.display.externalMeasured&&tn(Jt);Qs(Jt,pt,ws(it,Jt,Ue)),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(fs(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 Oe=pt.content.lastChild;(/\bcm-tab\b/.test(Oe.className)||Oe.querySelector&&Oe.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 Ia(it){var st=Ae("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function Ac(it,st,mt,pt,Bt,Jt,Se){if(st){var Ue=it.splitSpaces?du(st,it.trailingSpace):st,Oe=it.cm.state.specialChars,ln=!1,ri;if(!Oe.test(st))it.col+=st.length,ri=document.createTextNode(Ue),it.map.push(it.pos,it.pos+st.length,ri),ee&&Vt<9&&(ln=!0),it.pos+=st.length;else{ri=document.createDocumentFragment();for(var pn=0;;){Oe.lastIndex=pn;var ki=Oe.exec(st),bi=ki?ki.index-pn:st.length-pn;if(bi){var yr=document.createTextNode(Ue.slice(pn,pn+bi));ee&&Vt<9?ri.appendChild(Ae("span",[yr])):ri.appendChild(yr),it.map.push(it.pos,it.pos+bi,yr),it.col+=bi,it.pos+=bi}if(!ki)break;pn+=bi+1;var Tr=void 0;if(ki[0]==" "){var qr=it.cm.options.tabSize,vo=qr-it.col%qr;Tr=ri.appendChild(Ae("span",Bi(vo),"cm-tab")),Tr.setAttribute("role","presentation"),Tr.setAttribute("cm-text"," "),it.col+=vo}else ki[0]=="\r"||ki[0]==`
`?(Tr=ri.appendChild(Ae("span",ki[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Tr.setAttribute("cm-text",ki[0]),it.col+=1):(Tr=it.cm.options.specialCharPlaceholder(ki[0]),Tr.setAttribute("cm-text",ki[0]),ee&&Vt<9?ri.appendChild(Ae("span",[Tr])):ri.appendChild(Tr),it.col+=1);it.map.push(it.pos,it.pos+1,Tr),it.pos++}}if(it.trailingSpace=Ue.charCodeAt(st.length-1)==32,mt||pt||Bt||ln||Jt||Se){var $o=mt||"";pt&&($o+=pt),Bt&&($o+=Bt);var ko=Ae("span",[ri],$o,Jt);if(Se)for(var ss in Se)Se.hasOwnProperty(ss)&&ss!="style"&&ss!="class"&&ko.setAttribute(ss,Se[ss]);return it.content.appendChild(ko)}it.content.appendChild(ri)}}function du(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 Hh(it,st){return function(mt,pt,Bt,Jt,Se,Ue,Oe){Bt=Bt?Bt+" cm-force-border":"cm-force-border";for(var ln=mt.pos,ri=ln+pt.length;;){for(var pn=void 0,ki=0;ki<st.length&&(pn=st[ki],!(pn.to>ln&&pn.from<=ln));ki++);if(pn.to>=ri)return it(mt,pt,Bt,Jt,Se,Ue,Oe);it(mt,pt.slice(0,pn.to-ln),Bt,Jt,null,Ue,Oe),Jt=null,pt=pt.slice(pn.to-ln),ln=pn.to}}}function $r(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 Qs(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]),Ps(mt[Se+1],st.cm.options));return}for(var Ue=Bt.length,Oe=0,ln=1,ri="",pn,ki,bi=0,yr,Tr,qr,vo,$o;;){if(bi==Oe){yr=Tr=qr=ki="",$o=null,vo=null,bi=1/0;for(var ko=[],ss=void 0,Ns=0;Ns<pt.length;++Ns){var To=pt[Ns],ea=To.marker;if(ea.type=="bookmark"&&To.from==Oe&&ea.widgetNode)ko.push(ea);else if(To.from<=Oe&&(To.to==null||To.to>Oe||ea.collapsed&&To.to==Oe&&To.from==Oe)){if(To.to!=null&&To.to!=Oe&&bi>To.to&&(bi=To.to,Tr=""),ea.className&&(yr+=" "+ea.className),ea.css&&(ki=(ki?ki+";":"")+ea.css),ea.startStyle&&To.from==Oe&&(qr+=" "+ea.startStyle),ea.endStyle&&To.to==bi&&(ss||(ss=[])).push(ea.endStyle,To.to),ea.title&&(($o||($o={})).title=ea.title),ea.attributes)for(var Cl in ea.attributes)($o||($o={}))[Cl]=ea.attributes[Cl];ea.collapsed&&(!vo||ll(vo.marker,ea)<0)&&(vo=To)}else To.from>Oe&&bi>To.from&&(bi=To.from)}if(ss)for(var ku=0;ku<ss.length;ku+=2)ss[ku+1]==bi&&(Tr+=" "+ss[ku]);if(!vo||vo.from==Oe)for(var cl=0;cl<ko.length;++cl)$r(st,0,ko[cl]);if(vo&&(vo.from||0)==Oe){if($r(st,(vo.to==null?Ue+1:vo.to)-Oe,vo.marker,vo.from==null),vo.to==null)return;vo.to==Oe&&(vo=!1)}}if(Oe>=Ue)break;for(var yu=Math.min(Ue,bi);;){if(ri){var La=Oe+ri.length;if(!vo){var Sa=La>yu?ri.slice(0,yu-Oe):ri;st.addToken(st,Sa,pn?pn+yr:yr,qr,Oe+Sa.length==bi?Tr:"",ki,$o)}if(La>=yu){ri=ri.slice(yu-Oe),Oe=yu;break}Oe=La,qr=""}ri=Bt.slice(Jt,Jt=mt[ln++]),pn=Ps(mt[ln++],st.cm.options)}}}function Ms(it,st,mt){this.line=st,this.rest=fa(st),this.size=this.rest?tn(en(this.rest))-mt+1:1,this.node=this.text=null,this.hidden=Vi(it,st)}function bs(it,st,mt){for(var pt=[],Bt,Jt=st;Jt<mt;Jt=Bt){var Se=new Ms(it.doc,wn(it.doc,Jt),Jt);Bt=Jt+Se.size,pt.push(Se)}return pt}var zs=null;function Au(it){zs?zs.ops.push(it):it.ownsGroup=zs={ops:[it],delayedCallbacks:[]}}function Jo(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 Hs(it,st){var mt=it.ownsGroup;if(mt)try{Jo(mt)}finally{zs=null,st(mt)}}var Ss=null;function Qr(it,st){var mt=Bn(it,st);if(mt.length){var pt=Array.prototype.slice.call(arguments,2),Bt;zs?Bt=zs.delayedCallbacks:Ss?Bt=Ss:(Bt=Ss=[],setTimeout(ul,0));for(var Jt=function(Ue){Bt.push(function(){return mt[Ue].apply(null,pt)})},Se=0;Se<mt.length;++Se)Jt(Se)}}function ul(){var it=Ss;Ss=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"?rl(it,st,mt,pt):Jt=="class"?Za(it,st):Jt=="widget"&&bl(it,st,pt)}st.changes=null}function Su(it){return it.node==it.text&&(it.node=Ae("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 zu(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(Ae("div",null,mt),pt.firstChild),it.display.input.setUneditable(st.background)}}function Xl(it,st){var mt=it.display.externalMeasured;return mt&&mt.line==st.line?(it.display.externalMeasured=null,st.measure=mt.measure,mt.built):si(it,st)}function fr(it,st){var mt=st.text.className,pt=Xl(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,Za(it,st)):mt&&(st.text.className=mt)}function Za(it,st){zu(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 rl(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=Ae("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),Ue=st.gutter=Ae("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?pt.fixedPos:-pt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Ue),Se.insertBefore(Ue,st.text),st.line.gutterClass&&(Ue.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!Jt||!Jt["CodeMirror-linenumbers"])&&(st.lineNumber=Ue.appendChild(Ae("div",tr(it.options,mt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+pt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),Jt)for(var Oe=0;Oe<it.display.gutterSpecs.length;++Oe){var ln=it.display.gutterSpecs[Oe].className,ri=Jt.hasOwnProperty(ln)&&Jt[ln];ri&&Ue.appendChild(Ae("div",[ri],"CodeMirror-gutter-elt","left: "+pt.gutterLeft[ln]+"px; width: "+pt.gutterWidth[ln]+"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);Ya(it,st,mt)}function ou(it,st,mt,pt){var Bt=Xl(it,st);return st.text=st.node=Bt.pre,Bt.bgClass&&(st.bgClass=Bt.bgClass),Bt.textClass&&(st.textClass=Bt.textClass),Za(it,st),rl(it,st,mt,pt),Ya(it,st,pt),st.node}function Ya(it,st,mt){if(Mo(it,st.line,st,mt,!0),st.rest)for(var pt=0;pt<st.rest.length;pt++)Mo(it,st.rest[pt],st,mt,!1)}function Mo(it,st,mt,pt,Bt){if(st.widgets)for(var Jt=Su(mt),Se=0,Ue=st.widgets;Se<Ue.length;++Se){var Oe=Ue[Se],ln=Ae("div",[Oe.node],"CodeMirror-linewidget"+(Oe.className?" "+Oe.className:""));Oe.handleMouseEvents||ln.setAttribute("cm-ignore-events","true"),ja(Oe,ln,mt,pt),it.display.input.setUneditable(ln),Bt&&Oe.above?Jt.insertBefore(ln,mt.gutter||mt.text):Jt.appendChild(ln),Qr(Oe,"redraw")}}function ja(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 Ja(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!ze(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;"),le(st.display.measure,Ae("div",[it.node],null,mt))}return it.height=it.node.parentNode.offsetHeight}function su(it,st){for(var mt=Lr(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 $l(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=le(it.measure,Ae("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 eu(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&&eu(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(),Ue=0;Ue<Se.length-1;Ue++){var Oe=Se[Ue],ln=Se[Ue+1];Math.abs(Oe.bottom-ln.bottom)>2&&Jt.push((Oe.bottom+ln.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(tn(it.rest[Bt])>mt)return{map:it.measure.maps[Bt],cache:it.measure.caches[Bt],before:!0}}function yd(it,st){st=xo(st);var mt=tn(st),pt=it.display.externalMeasured=new Ms(it.doc,st,mt);pt.lineN=mt;var Bt=pt.built=si(it,pt);return pt.text=Bt.pre,le(it.display.lineMeasure,Bt.pre),pt}function Nh(it,st,mt,pt){return xh(it,ol(it,st),mt,pt)}function ec(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Zu(it,st)];var mt=it.display.externalMeasured;if(mt&&st>=mt.lineN&&st<mt.lineN+mt.size)return mt}function ol(it,st){var mt=tn(st),pt=ec(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 xh(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=Fs(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,Ue,Oe,ln=0;ln<it.length;ln+=3)if(Ue=it[ln],Oe=it[ln+1],st<Ue?(Bt=0,Jt=1,Se="left"):st<Oe?(Bt=st-Ue,Jt=Bt+1):(ln==it.length-3||st==Oe&&it[ln+3]>st)&&(Jt=Oe-Ue,Bt=Jt-1,st>=Oe&&(Se="right")),Bt!=null){if(pt=it[ln+2],Ue==Oe&&mt==(pt.insertLeft?"left":"right")&&(Se=mt),mt=="left"&&Bt==0)for(;ln&&it[ln-2]==it[ln-3]&&it[ln-1].insertLeft;)pt=it[(ln-=3)+2],Se="left";if(mt=="right"&&Bt==Oe-Ue)for(;ln<it.length-3&&it[ln+3]==it[ln+4]&&!it[ln+5].insertLeft;)pt=it[(ln+=3)+2],Se="right";break}return{node:pt,start:Bt,end:Jt,collapse:Se,coverStart:Ue,coverEnd:Oe}}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 Fs(it,st,mt,pt){var Bt=Oc(st.map,mt,pt),Jt=Bt.node,Se=Bt.start,Ue=Bt.end,Oe=Bt.collapse,ln;if(Jt.nodeType==3){for(var ri=0;ri<4;ri++){for(;Se&&xe(st.line.text.charAt(Bt.coverStart+Se));)--Se;for(;Bt.coverStart+Ue<Bt.coverEnd&&xe(st.line.text.charAt(Bt.coverStart+Ue));)++Ue;if(ee&&Vt<9&&Se==0&&Ue==Bt.coverEnd-Bt.coverStart?ln=Jt.parentNode.getBoundingClientRect():ln=Dc(qt(Jt,Se,Ue).getClientRects(),pt),ln.left||ln.right||Se==0)break;Ue=Se,Se=Se-1,Oe="right"}ee&&Vt<11&&(ln=ya(it.display.measure,ln))}else{Se>0&&(Oe=pt="right");var pn;it.options.lineWrapping&&(pn=Jt.getClientRects()).length>1?ln=pn[pt=="right"?pn.length-1:0]:ln=Jt.getBoundingClientRect()}if(ee&&Vt<9&&!Se&&(!ln||!ln.left&&!ln.right)){var ki=Jt.parentNode.getClientRects()[0];ki?ln={left:ki.left,right:ki.left+Ch(it.display),top:ki.top,bottom:ki.bottom}:ln=Qd}for(var bi=ln.top-st.rect.top,yr=ln.bottom-st.rect.top,Tr=(bi+yr)/2,qr=st.view.measure.heights,vo=0;vo<qr.length-1&&!(Tr<qr[vo]);vo++);var $o=vo?qr[vo-1]:0,ko=qr[vo],ss={left:(Oe=="right"?ln.right:ln.left)-st.rect.left,right:(Oe=="left"?ln.left:ln.right)-st.rect.left,top:$o,bottom:ko};return!ln.left&&!ln.right&&(ss.bogus=!0),it.options.singleCursorHeightPerLine||(ss.rtop=bi,ss.rbottom=yr),ss}function ya(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ia(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 ju(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 qa(it){it.display.externalMeasure=null,se(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)ju(it.display.view[st])}function sl(it){qa(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function za(){return te&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Aa(){return te&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function tl(it){var st=0;if(it.widgets)for(var mt=0;mt<it.widgets.length;++mt)it.widgets[mt].above&&(st+=Ja(it.widgets[mt]));return st}function Ol(it,st,mt,pt,Bt){if(!Bt){var Jt=tl(st);mt.top+=Jt,mt.bottom+=Jt}if(pt=="line")return mt;pt||(pt="local");var Se=Bs(st);if(pt=="local"?Se+=$l(it.display):Se-=it.display.viewOffset,pt=="page"||pt=="window"){var Ue=it.display.lineSpace.getBoundingClientRect();Se+=Ue.top+(pt=="window"?0:Aa());var Oe=Ue.left+(pt=="window"?0:za());mt.left+=Oe,mt.right+=Oe}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-=za(),Bt-=Aa();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 ch(it,st,mt,pt,Bt){return pt||(pt=wn(it.doc,st.line)),Ol(it,pt,Nh(it,pt,st.ch,Bt),mt)}function hl(it,st,mt,pt,Bt,Jt){pt=pt||wn(it.doc,st.line),Bt||(Bt=ol(it,pt));function Se(yr,Tr){var qr=xh(it,Bt,yr,Tr?"right":"left",Jt);return Tr?qr.left=qr.right:qr.right=qr.left,Ol(it,pt,qr,mt)}var Ue=Gn(pt,it.doc.direction),Oe=st.ch,ln=st.sticky;if(Oe>=pt.text.length?(Oe=pt.text.length,ln="before"):Oe<=0&&(Oe=0,ln="after"),!Ue)return Se(ln=="before"?Oe-1:Oe,ln=="before");function ri(yr,Tr,qr){var vo=Ue[Tr],$o=vo.level==1;return Se(qr?yr-1:yr,$o!=qr)}var pn=Me(Ue,Oe,ln),ki=De,bi=ri(Oe,pn,ln=="before");return ki!=null&&(bi.other=ri(Oe,ki,ln!="before")),bi}function zd(it,st){var mt=0;st=nr(it.doc,st),it.options.lineWrapping||(mt=Ch(it.display)*st.ch);var pt=wn(it.doc,st.line),Bt=Bs(pt)+$l(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 Sh(it,st,mt){var pt=it.doc;if(mt+=it.display.viewOffset,mt<0)return td(pt.first,0,null,-1,-1);var Bt=oi(pt,mt),Jt=pt.first+pt.size-1;if(Bt>Jt)return td(pt.first+pt.size-1,wn(pt,Jt).text.length,null,1,1);st<0&&(st=0);for(var Se=wn(pt,Bt);;){var Ue=Wi(it,Se,Bt,st,mt),Oe=ns(Se,Ue.ch+(Ue.xRel>0||Ue.outside>0?1:0));if(!Oe)return Ue;var ln=Oe.find(1);if(ln.line==Bt)return ln;Se=wn(pt,Bt=ln.line)}}function Qo(it,st,mt,pt){pt-=tl(st);var Bt=st.text.length,Jt=ye(function(Se){return xh(it,mt,Se-1).bottom<=pt},Bt,0);return Bt=ye(function(Se){return xh(it,mt,Se).top>pt},Jt,Bt),{begin:Jt,end:Bt}}function sA(it,st,mt,pt){mt||(mt=ol(it,st));var Bt=Ol(it,st,xh(it,mt,pt),"line").top;return Qo(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 Wi(it,st,mt,pt,Bt){Bt-=Bs(st);var Jt=ol(it,st),Se=tl(st),Ue=0,Oe=st.text.length,ln=!0,ri=Gn(st,it.doc.direction);if(ri){var pn=(it.options.lineWrapping?nc:aA)(it,st,mt,Jt,ri,pt,Bt);ln=pn.level!=1,Ue=ln?pn.from:pn.to-1,Oe=ln?pn.to:pn.from-1}var ki=null,bi=null,yr=ye(function(Ns){var To=xh(it,Jt,Ns);return To.top+=Se,To.bottom+=Se,En(To,pt,Bt,!1)?(To.top<=Bt&&To.left<=pt&&(ki=Ns,bi=To),!0):!1},Ue,Oe),Tr,qr,vo=!1;if(bi){var $o=pt-bi.left<bi.right-pt,ko=$o==ln;yr=ki+(ko?0:1),qr=ko?"after":"before",Tr=$o?bi.left:bi.right}else{!ln&&(yr==Oe||yr==Ue)&&yr++,qr=yr==0?"after":yr==st.text.length?"before":xh(it,Jt,yr-(ln?1:0)).bottom+Se<=Bt==ln?"after":"before";var ss=hl(it,kn(mt,yr,qr),"line",st,Jt);Tr=ss.left,vo=Bt<ss.top?-1:Bt>=ss.bottom?1:0}return yr=ae(st.text,yr,1),td(mt,yr,qr,vo,pt-Tr)}function aA(it,st,mt,pt,Bt,Jt,Se){var Ue=ye(function(pn){var ki=Bt[pn],bi=ki.level!=1;return En(hl(it,kn(mt,bi?ki.to:ki.from,bi?"before":"after"),"line",st,pt),Jt,Se,!0)},0,Bt.length-1),Oe=Bt[Ue];if(Ue>0){var ln=Oe.level!=1,ri=hl(it,kn(mt,ln?Oe.from:Oe.to,ln?"after":"before"),"line",st,pt);En(ri,Jt,Se,!0)&&ri.top>Se&&(Oe=Bt[Ue-1])}return Oe}function nc(it,st,mt,pt,Bt,Jt,Se){var Ue=Qo(it,st,pt,Se),Oe=Ue.begin,ln=Ue.end;/\s/.test(st.text.charAt(ln-1))&&ln--;for(var ri=null,pn=null,ki=0;ki<Bt.length;ki++){var bi=Bt[ki];if(!(bi.from>=ln||bi.to<=Oe)){var yr=bi.level!=1,Tr=xh(it,pt,yr?Math.min(ln,bi.to)-1:Math.max(Oe,bi.from)).right,qr=Tr<Jt?Jt-Tr+1e9:Tr-Jt;(!ri||pn>qr)&&(ri=bi,pn=qr)}}return ri||(ri=Bt[Bt.length-1]),ri.from<Oe&&(ri={from:Oe,to:ri.to,level:ri.level}),ri.to>ln&&(ri={from:ri.from,to:ln,level:ri.level}),ri}var Ku;function Gu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Ku==null){Ku=Ae("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Ku.appendChild(document.createTextNode("x")),Ku.appendChild(Ae("br"));Ku.appendChild(document.createTextNode("x"))}le(it.measure,Ku);var mt=Ku.offsetHeight/50;return mt>3&&(it.cachedTextHeight=mt),se(it.measure),mt||1}function Ch(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=Ae("span","xxxxxxxxxx"),mt=Ae("pre",[st],"CodeMirror-line-like");le(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 Ue=it.display.gutterSpecs[Se].className;mt[Ue]=Jt.offsetLeft+Jt.clientLeft+Bt,pt[Ue]=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 el(it){var st=Gu(it.display),mt=it.options.lineWrapping,pt=mt&&Math.max(5,it.display.scroller.clientWidth/Ch(it.display)-3);return function(Bt){if(Vi(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 vs(it){var st=it.doc,mt=el(it);st.iter(function(pt){var Bt=mt(pt);Bt!=pt.height&&Di(pt,Bt)})}function rh(it,st,mt,pt){var Bt=it.display;if(!mt&&Lr(st).getAttribute("cm-not-content")=="true")return null;var Jt,Se,Ue=Bt.lineSpace.getBoundingClientRect();try{Jt=st.clientX-Ue.left,Se=st.clientY-Ue.top}catch(pn){return null}var Oe=Sh(it,Jt,Se),ln;if(pt&&Oe.xRel>0&&(ln=wn(it.doc,Oe.line).text).length==Oe.ch){var ri=ve(ln,ln.length,it.options.tabSize)-ln.length;Oe=kn(Oe.line,Math.max(0,Math.round((Jt-bu(it.display).left)/Ch(it.display))-ri))}return Oe}function Zu(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)Pi&&fo(it.doc,st)<Bt.viewTo&&gu(it);else if(mt<=Bt.viewFrom)Pi&&co(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 Ue=Bh(it,st,st,-1),Oe=Bh(it,mt,mt+pt,1);Ue&&Oe?(Bt.view=Bt.view.slice(0,Ue.index).concat(bs(it,Ue.lineN,Oe.lineN)).concat(Bt.view.slice(Oe.index)),Bt.viewTo+=pt):gu(it)}var ln=Bt.externalMeasured;ln&&(mt<ln.lineN?ln.lineN+=pt:st<ln.lineN+ln.size&&(Bt.externalMeasured=null))}function sa(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[Zu(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=Zu(it,st),Jt,Se=it.display.view;if(!Pi||mt==it.doc.first+it.doc.size)return{index:Bt,lineN:mt};for(var Ue=it.display.viewFrom,Oe=0;Oe<Bt;Oe++)Ue+=Se[Oe].size;if(Ue!=st){if(pt>0){if(Bt==Se.length-1)return null;Jt=Ue+Se[Bt].size-st,Bt++}else Jt=Ue-st;st+=Jt,mt+=Jt}for(;fo(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(Zu(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,Zu(it,mt)))),pt.viewTo=mt}function Qh(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 Ue=mt.sel.ranges[Se];if(!(Ue.from().line>=it.display.viewTo||Ue.to().line<it.display.viewFrom)){var Oe=Ue.empty();(Oe||it.options.showCursorWhenSelecting)&&Ea(it,Ue.head,Bt),Oe||Fa(it,Ue,Jt)}}return pt}function Ea(it,st,mt){var pt=hl(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),Bt=mt.appendChild(Ae("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(Ae("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 oh(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),Ue=Se.left,Oe=Math.max(pt.sizerWidth,eu(it)-pt.sizer.offsetLeft)-Se.right,ln=Bt.direction=="ltr";function ri(ko,ss,Ns,To){ss<0&&(ss=0),ss=Math.round(ss),To=Math.round(To),Jt.appendChild(Ae("div",null,"CodeMirror-selected","position: absolute; left: "+ko+`px;
top: `+ss+"px; width: "+(Ns==null?Oe-ko:Ns)+`px;
height: `+(To-ss)+"px"))}function pn(ko,ss,Ns){var To=wn(Bt,ko),ea=To.text.length,Cl,ku;function cl(Sa,vl){return ch(it,kn(ko,Sa),"div",To,vl)}function yu(Sa,vl,yl){var Eo=sA(it,To,null,Sa),Ca=vl=="ltr"==(yl=="after")?"left":"right",Ml=yl=="after"?Eo.begin:Eo.end-(/\s/.test(To.text.charAt(Eo.end-1))?2:1);return cl(Ml,Ca)[Ca]}var La=Gn(To,Bt.direction);return Te(La,ss||0,Ns==null?ea:Ns,function(Sa,vl,yl,Eo){var Ca=yl=="ltr",Ml=cl(Sa,Ca?"left":"right"),Nl=cl(vl-1,Ca?"right":"left"),lh=ss==null&&Sa==0,Da=Ns==null&&vl==ea,_s=Eo==0,wu=!La||Eo==La.length-1;if(Nl.top-Ml.top<=3){var hu=(ln?lh:Da)&&_s,ad=(ln?Da:lh)&&wu,lc=hu?Ue:(Ca?Ml:Nl).left,uh=ad?Oe:(Ca?Nl:Ml).right;ri(lc,Ml.top,uh-lc,Ml.bottom)}else{var wh,Il,th,Wc;Ca?(wh=ln&&lh&&_s?Ue:Ml.left,Il=ln?Oe:yu(Sa,yl,"before"),th=ln?Ue:yu(vl,yl,"after"),Wc=ln&&Da&&wu?Oe:Nl.right):(wh=ln?yu(Sa,yl,"before"):Ue,Il=!ln&&lh&&_s?Oe:Ml.right,th=!ln&&Da&&wu?Ue:Nl.left,Wc=ln?yu(vl,yl,"after"):Oe),ri(wh,Ml.top,Il-wh,Ml.bottom),Ml.bottom<Nl.top&&ri(Ue,Ml.bottom,null,Nl.top),ri(th,Nl.top,Wc-th,Nl.bottom)}(!Cl||oh(Ml,Cl)<0)&&(Cl=Ml),oh(Nl,Cl)<0&&(Cl=Nl),(!ku||oh(Ml,ku)<0)&&(ku=Ml),oh(Nl,ku)<0&&(ku=Nl)}),{start:Cl,end:ku}}var ki=st.from(),bi=st.to();if(ki.line==bi.line)pn(ki.line,ki.ch,bi.ch);else{var yr=wn(Bt,ki.line),Tr=wn(Bt,bi.line),qr=xo(yr)==xo(Tr),vo=pn(ki.line,ki.ch,qr?yr.text.length+1:null).end,$o=pn(bi.line,qr?0:null,bi.ch).start;qr&&(vo.top<$o.top-2?(ri(vo.right,vo.top,null,vo.bottom),ri(Ue,$o.top,$o.left,$o.bottom)):ri(vo.right,vo.top,$o.left-vo.right,vo.bottom)),vo.bottom<$o.top&&ri(Ue,vo.bottom,null,$o.top)}mt.appendChild(Jt)}function gl(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 Hl(it){it.state.focused||(it.display.input.focus(),Et(it))}function Yl(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,Ge(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()),gl(it))}function wt(it,st){it.state.delayingBlurEvent||(it.state.focused&&(On(it,"blur",it,st),it.state.focused=!1,Gt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function bt(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,Ue=0;if(!Bt.hidden){if(ee&&Vt<8){var Oe=Bt.node.offsetTop+Bt.node.offsetHeight;Se=Oe-mt,mt=Oe}else{var ln=Bt.node.getBoundingClientRect();Se=ln.bottom-ln.top,!Jt&&Bt.text.firstChild&&(Ue=Bt.text.firstChild.getBoundingClientRect().right-ln.left-1)}var ri=Bt.line.height-Se;if((ri>.005||ri<-.005)&&(Di(Bt.line,Se),Ht(Bt.line),Bt.rest))for(var pn=0;pn<Bt.rest.length;pn++)Ht(Bt.rest[pn]);if(Ue>it.display.sizerWidth){var ki=Math.ceil(Ue/Ch(it.display));ki>it.display.maxLineLength&&(it.display.maxLineLength=ki,it.display.maxLine=Bt.line,it.display.maxLineChanged=!0)}}}}function Ht(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-$l(it));var Bt=mt&&mt.bottom!=null?mt.bottom:pt+it.wrapper.clientHeight,Jt=oi(st,pt),Se=oi(st,Bt);if(mt&&mt.ensure){var Ue=mt.ensure.from.line,Oe=mt.ensure.to.line;Ue<Jt?(Jt=Ue,Se=oi(st,Bs(wn(st,Ue))+it.wrapper.clientHeight)):Math.min(Oe,st.lastLine())>=Se&&(Jt=oi(st,Bs(wn(st,Oe))-it.wrapper.clientHeight),Se=Oe)}return{from:Jt,to:Math.max(Se,Jt+1)}}function Yt(it,st){if(!ji(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&&!$t){var Jt=Ae("div","\u200B",null,`position: absolute;
top: `+(st.top-mt.viewOffset-$l(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,Ue=hl(it,st),Oe=!mt||mt==st?Ue:hl(it,mt);Bt={left:Math.min(Ue.left,Oe.left),top:Math.min(Ue.top,Oe.top)-pt,right:Math.max(Ue.left,Oe.left),bottom:Math.max(Ue.bottom,Oe.bottom)+pt};var ln=be(it,Bt),ri=it.doc.scrollTop,pn=it.doc.scrollLeft;if(ln.scrollTop!=null&&(Jn(it,ln.scrollTop),Math.abs(it.doc.scrollTop-ri)>1&&(Se=!0)),ln.scrollLeft!=null&&(Rn(it,ln.scrollLeft),Math.abs(it.doc.scrollLeft-pn)>1&&(Se=!0)),!Se)break}return Bt}function we(it,st){var mt=be(it,st);mt.scrollTop!=null&&Jn(it,mt.scrollTop),mt.scrollLeft!=null&&Rn(it,mt.scrollLeft)}function be(it,st){var mt=it.display,pt=Gu(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 Ue=it.doc.height+Pu(mt),Oe=st.top<pt,ln=st.bottom>Ue-pt;if(st.top<Bt)Se.scrollTop=Oe?0:st.top;else if(st.bottom>Bt+Jt){var ri=Math.min(st.top,(ln?Ue:st.bottom)-Jt);ri!=Bt&&(Se.scrollTop=ri)}var pn=it.options.fixedGutter?0:mt.gutters.offsetWidth,ki=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:mt.scroller.scrollLeft-pn,bi=eu(it)-mt.gutters.offsetWidth,yr=st.right-st.left>bi;return yr&&(st.right=st.left+bi),st.left<10?Se.scrollLeft=0:st.left<ki?Se.scrollLeft=Math.max(0,st.left+pn-(yr?0:10)):st.right>bi+ki-3&&(Se.scrollLeft=st.right+(yr?0:10)-bi),Se}function $e(it,st){st!=null&&(Ke(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function fn(it){Ke(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function gn(it,st,mt){(st!=null||mt!=null)&&Ke(it),st!=null&&(it.curOp.scrollLeft=st),mt!=null&&(it.curOp.scrollTop=mt)}function Pn(it,st){Ke(it),it.curOp.scrollToPos=st}function Ke(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var mt=zd(it,st.from),pt=zd(it,st.to);gi(it,mt,pt,st.margin)}}function gi(it,st,mt,pt){var Bt=be(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});gn(it,Bt.scrollLeft,Bt.scrollTop)}function Jn(it,st){Math.abs(it.doc.scrollTop-st)<2||(Lt||Xi(it,{top:st}),vi(it,st,!0),Lt&&Xi(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 di(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=Ae("div",[Ae("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Bt=this.horiz=Ae("div",[Ae("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");pt.tabIndex=Bt.tabIndex=-1,it(pt),it(Bt),un(pt,"scroll",function(){pt.clientHeight&&st(pt.scrollTop,"vertical")}),un(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&&!Kt?"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 Er(it,st){st||(st=di(it));var mt=it.display.barWidth,pt=it.display.barHeight;ao(it,st);for(var Bt=0;Bt<4&&mt!=it.display.barWidth||pt!=it.display.barHeight;Bt++)mt!=it.display.barWidth&&it.options.lineWrapping&&bt(it),ao(it,di(it)),mt=it.display.barWidth,pt=it.display.barHeight}function ao(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 gr={native:Qi,null:rr};function Ti(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Gt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new gr[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),un(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):Jn(it,st)},it),it.display.scrollbars.addClass&&Ge(it.display.wrapper,it.display.scrollbars.addClass)}var xr=0;function kr(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:++xr},Au(it.curOp)}function $n(it){var st=it.curOp;st&&Hs(st,function(mt){for(var pt=0;pt<mt.ops.length;pt++)mt.ops[pt].cm.curOp=null;ii(mt)})}function ii(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++)Xe(st[Bt]);for(var Jt=0;Jt<st.length;Jt++)Je(st[Jt]);for(var Se=0;Se<st.length;Se++)vn(st[Se])}function pe(it){var st=it.cm,mt=st.display;Qn(st),it.updateMaxLine&&ua(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 mn(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function me(it){it.updatedDisplay=it.mustUpdate&&Ei(it.cm,it.update)}function Xe(it){var st=it.cm,mt=st.display;it.updatedDisplay&&bt(st),it.barMeasure=di(st),mt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=Nh(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-eu(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=mt.input.prepareSelection())}function Je(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)&&Er(st,it.barMeasure),it.updatedDisplay&&br(st,it.barMeasure),it.selectionChanged&&gl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),mt&&Hl(it.cm)}function vn(it){var st=it.cm,mt=st.display,pt=st.doc;if(it.updatedDisplay&&li(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,nr(pt,it.scrollToPos.from),nr(pt,it.scrollToPos.to),it.scrollToPos.margin);Yt(st,Bt)}var Jt=it.maybeHiddenMarkers,Se=it.maybeUnhiddenMarkers;if(Jt)for(var Ue=0;Ue<Jt.length;++Ue)Jt[Ue].lines.length||On(Jt[Ue],"hide");if(Se)for(var Oe=0;Oe<Se.length;++Oe)Se[Oe].lines.length&&On(Se[Oe],"unhide");mt.wrapper.offsetHeight&&(pt.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&On(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function nn(it,st){if(it.curOp)return st();kr(it);try{return st()}finally{$n(it)}}function Tn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);kr(it);try{return st.apply(it,arguments)}finally{$n(it)}}}function Un(it){return function(){if(this.curOp)return it.apply(this,arguments);kr(this);try{return it.apply(this,arguments)}finally{$n(this)}}}function Yn(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);kr(st);try{return it.apply(this,arguments)}finally{$n(st)}}}function Qe(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,We(hn,it))}function hn(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var mt=+new Date+it.options.workTime,pt=Zo(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,Ue=Jt.text.length>it.options.maxHighlightLength?ei(st.mode,pt.state):null,Oe=Po(it,Jt,pt,!0);Ue&&(pt.state=Ue),Jt.styles=Oe.styles;var ln=Jt.styleClasses,ri=Oe.classes;ri?Jt.styleClasses=ri:ln&&(Jt.styleClasses=null);for(var pn=!Se||Se.length!=Jt.styles.length||ln!=ri&&(!ln||!ri||ln.bgClass!=ri.bgClass||ln.textClass!=ri.textClass),ki=0;!pn&&ki<Se.length;++ki)pn=Se[ki]!=Jt.styles[ki];pn&&Bt.push(pt.line),Jt.stateAfter=pt.save(),pt.nextLine()}else Jt.text.length<=it.options.maxHighlightLength&&pi(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&&nn(it,function(){for(var Jt=0;Jt<Bt.length;Jt++)sa(it,Bt[Jt],"text")})}}var mn=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=eu(it),this.force=mt,this.dims=zA(it),this.events=[]};mn.prototype.signal=function(it,st){Ji(it,st)&&this.events.push(arguments)},mn.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 Zn(it){if(it.hasFocus())return null;var st=Wt();if(!st||!ze(it.display.lineDiv,st))return null;var mt={activeElt:st};if(window.getSelection){var pt=window.getSelection();pt.anchorNode&&pt.extend&&ze(it.display.lineDiv,pt.anchorNode)&&(mt.anchorNode=pt.anchorNode,mt.anchorOffset=pt.anchorOffset,mt.focusNode=pt.focusNode,mt.focusOffset=pt.focusOffset)}return mt}function ni(it){if(!(!it||!it.activeElt||it.activeElt==Wt())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&ze(document.body,it.anchorNode)&&ze(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 Ei(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&&Qh(it)==0)return!1;Ii(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)),Pi&&(Jt=fo(it.doc,Jt),Se=co(it.doc,Se));var Ue=Jt!=mt.viewFrom||Se!=mt.viewTo||mt.lastWrapHeight!=st.wrapperHeight||mt.lastWrapWidth!=st.wrapperWidth;wl(it,Jt,Se),mt.viewOffset=Bs(wn(it.doc,mt.viewFrom)),it.display.mover.style.top=mt.viewOffset+"px";var Oe=Qh(it);if(!Ue&&Oe==0&&!st.force&&mt.renderedView==mt.view&&(mt.updateLineNumbers==null||mt.updateLineNumbers>=mt.viewTo))return!1;var ln=Zn(it);return Oe>4&&(mt.lineDiv.style.display="none"),Zi(it,mt.updateLineNumbers,st.dims),Oe>4&&(mt.lineDiv.style.display=""),mt.renderedView=mt.view,ni(ln),se(mt.cursorDiv),se(mt.selectionDiv),mt.gutters.style.height=mt.sizer.style.minHeight=0,Ue&&(mt.lastWrapHeight=st.wrapperHeight,mt.lastWrapWidth=st.wrapperWidth,Qe(it,400)),mt.updateLineNumbers=null,!0}function li(it,st){for(var mt=st.viewport,pt=!0;;pt=!1){if(!pt||!it.options.lineWrapping||st.oldDisplayWidth==eu(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(!Ei(it,st))break;bt(it);var Bt=di(it);Cu(it),Er(it,Bt),br(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 Xi(it,st){var mt=new mn(it,st);if(Ei(it,mt)){bt(it),li(it,mt);var pt=di(it);Cu(it),Er(it,pt),br(it,pt),mt.finish()}}function Zi(it,st,mt){var pt=it.display,Bt=it.options.lineNumbers,Jt=pt.lineDiv,Se=Jt.firstChild;function Ue(yr){var Tr=yr.nextSibling;return Mt&&lt&&it.display.currentWheelTarget==yr?yr.style.display="none":yr.parentNode.removeChild(yr),Tr}for(var Oe=pt.view,ln=pt.viewFrom,ri=0;ri<Oe.length;ri++){var pn=Oe[ri];if(!pn.hidden)if(!pn.node||pn.node.parentNode!=Jt){var ki=ou(it,pn,ln,mt);Jt.insertBefore(ki,Se)}else{for(;Se!=pn.node;)Se=Ue(Se);var bi=Bt&&st!=null&&st<=ln&&pn.lineNumber;pn.changes&&(Ce(pn.changes,"gutter")>-1&&(bi=!1),Ds(it,pn,ln,mt)),bi&&(se(pn.lineNumber),pn.lineNumber.appendChild(document.createTextNode(tr(it.options,ln)))),Se=pn.node.nextSibling}ln+=pn.size}for(;Se;)Se=Ue(Se)}function Ar(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function br(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 Ue=mt[Se].alignable;if(Ue)for(var Oe=0;Oe<Ue.length;Oe++)Ue[Oe].style.left=Jt}it.options.fixedGutter&&(st.gutters.style.left=pt+Bt+"px")}}function Ii(it){if(!it.options.lineNumbers)return!1;var st=it.doc,mt=tr(it.options,st.first+st.size-1),pt=it.display;if(mt.length!=pt.lineNumChars){var Bt=pt.measure.appendChild(Ae("div",[Ae("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 Xn(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;se(st),it.lineGutter=null;for(var pt=0;pt<mt.length;++pt){var Bt=mt[pt],Jt=Bt.className,Se=Bt.style,Ue=st.appendChild(Ae("div",null,"CodeMirror-gutter "+Jt));Se&&(Ue.style.cssText=Se),Jt=="CodeMirror-linenumbers"&&(it.lineGutter=Ue,Ue.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=Ae("div",null,"CodeMirror-scrollbar-filler"),Bt.scrollbarFiller.setAttribute("cm-not-content","true"),Bt.gutterFiller=Ae("div",null,"CodeMirror-gutter-filler"),Bt.gutterFiller.setAttribute("cm-not-content","true"),Bt.lineDiv=Pe("div",null,"CodeMirror-code"),Bt.selectionDiv=Ae("div",null,null,"position: relative; z-index: 1"),Bt.cursorDiv=Ae("div",null,"CodeMirror-cursors"),Bt.measure=Ae("div",null,"CodeMirror-measure"),Bt.lineMeasure=Ae("div",null,"CodeMirror-measure"),Bt.lineSpace=Pe("div",[Bt.measure,Bt.lineMeasure,Bt.selectionDiv,Bt.cursorDiv,Bt.lineDiv],null,"position: relative; outline: none");var Jt=Pe("div",[Bt.lineSpace],"CodeMirror-lines");Bt.mover=Ae("div",[Jt],null,"position: relative"),Bt.sizer=Ae("div",[Bt.mover],"CodeMirror-sizer"),Bt.sizerWidth=null,Bt.heightForcer=Ae("div",null,null,"position: absolute; height: "+bn+"px; width: 1px;"),Bt.gutters=Ae("div",null,"CodeMirror-gutters"),Bt.lineGutter=null,Bt.scroller=Ae("div",[Bt.sizer,Bt.heightForcer,Bt.gutters],"CodeMirror-scroll"),Bt.scroller.setAttribute("tabIndex","-1"),Bt.wrapper=Ae("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=Xn(pt.gutters,pt.lineNumbers),Bo(Bt),mt.init(Bt)}var ar=0,qi=null;ee?qi=-.53:Lt?qi=15:te?qi=-.7:oe&&(qi=-1/3);function pr(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 Wr(it){var st=pr(it);return st.x*=qi,st.y*=qi,st}function ho(it,st){var mt=pr(st),pt=mt.x,Bt=mt.y,Jt=it.display,Se=Jt.scroller,Ue=Se.scrollWidth>Se.clientWidth,Oe=Se.scrollHeight>Se.clientHeight;if(pt&&Ue||Bt&&Oe){if(Bt&&lt&&Mt){t:for(var ln=st.target,ri=Jt.view;ln!=Se;ln=ln.parentNode)for(var pn=0;pn<ri.length;pn++)if(ri[pn].node==ln){it.display.currentWheelTarget=ln;break t}}if(pt&&!Lt&&!Pt&&qi!=null){Bt&&Oe&&Jn(it,Math.max(0,Se.scrollTop+Bt*qi)),Rn(it,Math.max(0,Se.scrollLeft+pt*qi)),(!Bt||Bt&&Oe)&&vr(st),Jt.wheelStartX=null;return}if(Bt&&qi!=null){var ki=Bt*qi,bi=it.doc.scrollTop,yr=bi+Jt.wrapper.clientHeight;ki<0?bi=Math.max(0,bi+ki-50):yr=Math.min(it.doc.height,yr+ki+50),Xi(it,{top:bi,bottom:yr})}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 Tr=Se.scrollLeft-Jt.wheelStartX,qr=Se.scrollTop-Jt.wheelStartY,vo=qr&&Jt.wheelDY&&qr/Jt.wheelDY||Tr&&Jt.wheelDX&&Tr/Jt.wheelDX;Jt.wheelStartX=Jt.wheelStartY=null,vo&&(qi=(qi*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(!Sr(mt.anchor,pt.anchor)||!Sr(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 Ur(cr(this.ranges[st].anchor),cr(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(ui(st,pt.from())>=0&&ui(it,pt.to())<=0)return mt}return-1};var Ur=function(it,st){this.anchor=it,this.head=st};Ur.prototype.from=function(){return dr(this.anchor,this.head)},Ur.prototype.to=function(){return zr(this.anchor,this.head)},Ur.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function jo(it,st,mt){var pt=it&&it.options.selectionsMayTouch,Bt=st[mt];st.sort(function(ki,bi){return ui(ki.from(),bi.from())}),mt=Ce(st,Bt);for(var Jt=1;Jt<st.length;Jt++){var Se=st[Jt],Ue=st[Jt-1],Oe=ui(Ue.to(),Se.from());if(pt&&!Se.empty()?Oe>0:Oe>=0){var ln=dr(Ue.from(),Se.from()),ri=zr(Ue.to(),Se.to()),pn=Ue.empty()?Se.from()==Se.head:Ue.from()==Ue.head;Jt<=mt&&--mt,st.splice(--Jt,2,new Ur(pn?ri:ln,pn?ln:ri))}}return new po(st,mt)}function us(it,st){return new po([new Ur(it,st||it)],0)}function qo(it){return it.text?kn(it.from.line+it.text.length-1,en(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function is(it,st){if(ui(it,st.from)<0)return it;if(ui(it,st.to)<=0)return qo(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+=qo(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 Ur(is(Bt.anchor,st),is(Bt.head,st)))}return jo(it.cm,mt,it.sel.primIndex)}function wa(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 Ue=st[Se],Oe=wa(Ue.from,Bt,Jt),ln=wa(qo(Ue),Bt,Jt);if(Bt=Ue.to,Jt=ln,mt=="around"){var ri=it.sel.ranges[Se],pn=ui(ri.head,ri.anchor)<0;pt[Se]=new Ur(pn?ln:Oe,pn?Oe:ln)}else pt[Se]=new Ur(Oe,Oe)}return new po(pt,it.sel.primIndex)}function rs(it){it.doc.mode=Dn(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 qs(it,st){return st.from.ch==0&&st.to.ch==0&&en(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ua(it,st,mt,pt){function Bt($o){return mt?mt[$o]:null}function Jt($o,ko,ss){Ks($o,ko,ss,pt),Qr($o,"change",$o,st)}function Se($o,ko){for(var ss=[],Ns=$o;Ns<ko;++Ns)ss.push(new Ho(ln[Ns],Bt(Ns),pt));return ss}var Ue=st.from,Oe=st.to,ln=st.text,ri=wn(it,Ue.line),pn=wn(it,Oe.line),ki=en(ln),bi=Bt(ln.length-1),yr=Oe.line-Ue.line;if(st.full)it.insert(0,Se(0,ln.length)),it.remove(ln.length,it.size-ln.length);else if(qs(it,st)){var Tr=Se(0,ln.length-1);Jt(pn,pn.text,bi),yr&&it.remove(Ue.line,yr),Tr.length&&it.insert(Ue.line,Tr)}else if(ri==pn)if(ln.length==1)Jt(ri,ri.text.slice(0,Ue.ch)+ki+ri.text.slice(Oe.ch),bi);else{var qr=Se(1,ln.length-1);qr.push(new Ho(ki+ri.text.slice(Oe.ch),bi,pt)),Jt(ri,ri.text.slice(0,Ue.ch)+ln[0],Bt(0)),it.insert(Ue.line+1,qr)}else if(ln.length==1)Jt(ri,ri.text.slice(0,Ue.ch)+ln[0]+pn.text.slice(Oe.ch),Bt(0)),it.remove(Ue.line+1,yr);else{Jt(ri,ri.text.slice(0,Ue.ch)+ln[0],Bt(0)),Jt(pn,ki+pn.text.slice(Oe.ch),bi);var vo=Se(1,ln.length-1);yr>1&&it.remove(Ue.line+1,yr-1),it.insert(Ue.line+1,vo)}Qr(it,"change",it,st)}function $s(it,st,mt){function pt(Bt,Jt,Se){if(Bt.linked)for(var Ue=0;Ue<Bt.linked.length;++Ue){var Oe=Bt.linked[Ue];if(Oe.doc!=Jt){var ln=Se&&Oe.sharedHist;mt&&!ln||(st(Oe.doc,ln),pt(Oe.doc,Bt,ln))}}}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,vs(it),rs(it),Go(it),it.options.lineWrapping||ua(it),it.options.mode=st.modeOption,El(it)}function Go(it){(it.doc.direction=="rtl"?Ge:Gt)(it.display.lineDiv,"CodeMirror-rtl")}function ds(it){nn(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 Ts(it,st){var mt={from:cr(st.from),to:qo(st),text:Hn(it,st.from,st.to)};return Es(it,mt,st.from.line,st.to.line+1),$s(it,function(pt){return Es(pt,mt,st.from.line,st.to.line+1)},!0),mt}function ro(it){for(;it.length;){var st=en(it);if(st.ranges)it.pop();else break}}function Wo(it,st){if(st)return ro(it.done),en(it.done);if(it.done.length&&!en(it.done).ranges)return en(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),en(it.done)}function ha(it,st,mt,pt){var Bt=it.history;Bt.undone.length=0;var Jt=+new Date,Se,Ue;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)))Ue=en(Se.changes),ui(st.from,st.to)==0&&ui(st.from,Ue.to)==0?Ue.to=qo(st):Se.changes.push(Ts(it,st));else{var Oe=en(Bt.done);for((!Oe||!Oe.ranges)&&Fl(it.sel,Bt.done),Se={changes:[Ts(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,Ue||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 Ql(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,en(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=en(st);mt&&mt.ranges&&mt.equals(it)||st.push(it)}function Es(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 da(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 Dl(it,st){var mt=st["spans_"+it.id];if(!mt)return null;for(var pt=[],Bt=0;Bt<st.text.length;++Bt)pt.push(da(mt[Bt]));return pt}function Ao(it,st){var mt=Dl(it,st),pt=_o(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 Ue=0;Ue<Se.length;++Ue){for(var Oe=Se[Ue],ln=0;ln<Jt.length;++ln)if(Jt[ln].marker==Oe.marker)continue t;Jt.push(Oe)}else Se&&(mt[Bt]=Se)}return mt}function Ra(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,Ue=[];pt.push({changes:Ue});for(var Oe=0;Oe<Se.length;++Oe){var ln=Se[Oe],ri=void 0;if(Ue.push({from:ln.from,to:ln.to,text:ln.text}),st)for(var pn in ln)(ri=pn.match(/^spans_(\d+)$/))&&Ce(st,Number(ri[1]))>-1&&(en(Ue)[pn]=ln[pn],delete ln[pn])}}return pt}function Kl(it,st,mt,pt){if(pt){var Bt=it.anchor;if(mt){var Jt=ui(st,Bt)<0;Jt!=ui(mt,Bt)<0?(Bt=st,st=mt):Jt!=ui(st,mt)<0&&(st=mt)}return new Ur(Bt,st)}else return new Ur(mt||st,st)}function ta(it,st,mt,pt,Bt){Bt==null&&(Bt=it.cm&&(it.cm.display.shift||it.extend)),Ta(it,new po([Kl(it.sel.primary(),st,mt,Bt)],0),pt)}function ca(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]=Kl(it.sel.ranges[Jt],st[Jt],null,Bt);var Se=jo(it.cm,pt,it.sel.primIndex);Ta(it,Se,mt)}function ka(it,st,mt,pt){var Bt=it.sel.ranges.slice(0);Bt[st]=mt,Ta(it,jo(it.cm,Bt,it.sel.primIndex),pt)}function Xa(it,st,mt,pt){Ta(it,us(st,mt),pt)}function al(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 Ur(nr(it,Bt[Jt].anchor),nr(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?jo(it.cm,pt.ranges,pt.ranges.length-1):st}function Rs(it,st,mt){var pt=it.history.done,Bt=en(pt);Bt&&Bt.ranges?(pt[pt.length-1]=st,xl(it,st,mt)):Ta(it,st,mt)}function Ta(it,st,mt){xl(it,st,mt),Ql(it,it.sel,it.cm?it.cm.curOp.id:NaN,mt)}function xl(it,st,mt){(Ji(it,"beforeSelectionChange")||it.cm&&Ji(it.cm,"beforeSelectionChange"))&&(st=al(it,st,mt));var pt=mt&&mt.bias||(ui(st.primary().head,it.sel.primary().head)<0?-1:1);pu(it,Uu(it,st,pt,!0)),!(mt&&mt.scroll===!1)&&it.cm&&fn(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,er(it.cm)),Qr(it,"cursorActivity",it))}function au(it){pu(it,Uu(it,it.sel,null,!1))}function Uu(it,st,mt,pt){for(var Bt,Jt=0;Jt<st.ranges.length;Jt++){var Se=st.ranges[Jt],Ue=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[Jt],Oe=dh(it,Se.anchor,Ue&&Ue.anchor,mt,pt),ln=dh(it,Se.head,Ue&&Ue.head,mt,pt);(Bt||Oe!=Se.anchor||ln!=Se.head)&&(Bt||(Bt=st.ranges.slice(0,Jt)),Bt[Jt]=new Ur(Oe,ln))}return Bt?jo(it.cm,Bt,st.primIndex):st}function Xu(it,st,mt,pt,Bt){var Jt=wn(it,st.line);if(Jt.markedSpans)for(var Se=0;Se<Jt.markedSpans.length;++Se){var Ue=Jt.markedSpans[Se],Oe=Ue.marker,ln="selectLeft"in Oe?!Oe.selectLeft:Oe.inclusiveLeft,ri="selectRight"in Oe?!Oe.selectRight:Oe.inclusiveRight;if((Ue.from==null||(ln?Ue.from<=st.ch:Ue.from<st.ch))&&(Ue.to==null||(ri?Ue.to>=st.ch:Ue.to>st.ch))){if(Bt&&(On(Oe,"beforeCursorEnter"),Oe.explicitlyCleared))if(Jt.markedSpans){--Se;continue}else break;if(!Oe.atomic)continue;if(mt){var pn=Oe.find(pt<0?1:-1),ki=void 0;if((pt<0?ri:ln)&&(pn=$u(it,pn,-pt,pn&&pn.line==st.line?Jt:null)),pn&&pn.line==st.line&&(ki=ui(pn,mt))&&(pt<0?ki<0:ki>0))return Xu(it,pn,st,pt,Bt)}var bi=Oe.find(pt<0?-1:1);return(pt<0?ln:ri)&&(bi=$u(it,bi,pt,bi.line==st.line?Jt:null)),bi?Xu(it,bi,st,pt,Bt):null}}return st}function dh(it,st,mt,pt,Bt){var Jt=pt||1,Se=Xu(it,st,mt,Jt,Bt)||!Bt&&Xu(it,st,mt,Jt,!0)||Xu(it,st,mt,-Jt,Bt)||!Bt&&Xu(it,st,mt,-Jt,!0);return Se||(it.cantEdit=!0,kn(it.first,0))}function $u(it,st,mt,pt){return mt<0&&st.ch==0?st.line>it.first?nr(it,kn(st.line-1)):null:mt>0&&st.ch==(pt||wn(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 _a(it){it.setSelection(kn(it.firstLine(),0),kn(it.lastLine()),Ze)}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,Ue){Bt&&(pt.from=nr(it,Bt)),Jt&&(pt.to=nr(it,Jt)),Se&&(pt.text=Se),Ue!==void 0&&(pt.origin=Ue)}),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 jl(it,st,mt){if(it.cm){if(!it.cm.curOp)return Tn(it.cm,jl)(it,st,mt);if(it.cm.state.suppressEdits)return}if(!((Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"))&&(st=Bu(it,st,!0),!st))){var pt=Br&&!mt&&ls(it,st.from,st.to);if(pt)for(var Bt=pt.length-1;Bt>=0;--Bt)nl(it,{from:pt[Bt].from,to:pt[Bt].to,text:Bt?[""]:st.text,origin:st.origin});else nl(it,st)}}function nl(it,st){if(!(st.text.length==1&&st.text[0]==""&&ui(st.from,st.to)==0)){var mt=So(it,st);ha(it,st,mt,it.cm?it.cm.curOp.id:NaN),mh(it,st,mt,_o(it,st));var pt=[];$s(it,function(Bt,Jt){!Jt&&Ce(pt,Bt.history)==-1&&(Sl(Bt.history,st),pt.push(Bt.history)),mh(Bt,st,null,_o(Bt,st))})}}function ph(it,st,mt){var pt=it.cm&&it.cm.state.suppressEdits;if(!(pt&&!mt)){for(var Bt=it.history,Jt,Se=it.sel,Ue=st=="undo"?Bt.done:Bt.undone,Oe=st=="undo"?Bt.undone:Bt.done,ln=0;ln<Ue.length&&(Jt=Ue[ln],!(mt?Jt.ranges&&!Jt.equals(it.sel):!Jt.ranges));ln++);if(ln!=Ue.length){for(Bt.lastOrigin=Bt.lastSelOrigin=null;;)if(Jt=Ue.pop(),Jt.ranges){if(Fl(Jt,Oe),mt&&!Jt.equals(it.sel)){Ta(it,Jt,{clearRedo:!1});return}Se=Jt}else if(pt){Ue.push(Jt);return}else break;var ri=[];Fl(Se,Oe),Oe.push({changes:ri,generation:Bt.generation}),Bt.generation=Jt.generation||++Bt.maxGeneration;for(var pn=Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"),ki=function(Tr){var qr=Jt.changes[Tr];if(qr.origin=st,pn&&!Bu(it,qr,!1))return Ue.length=0,{};ri.push(Ts(it,qr));var vo=Tr?So(it,qr):en(Ue);mh(it,qr,vo,Ao(it,qr)),!Tr&&it.cm&&it.cm.scrollIntoView({from:qr.from,to:qo(qr)});var $o=[];$s(it,function(ko,ss){!ss&&Ce($o,ko.history)==-1&&(Sl(ko.history,qr),$o.push(ko.history)),mh(ko,qr,null,Ao(ko,qr))})},bi=Jt.changes.length-1;bi>=0;--bi){var yr=ki(bi);if(yr)return yr.v}}}}function Cc(it,st){if(st!=0&&(it.first+=st,it.sel=new po(Fi(it.sel.ranges,function(Bt){return new Ur(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++)sa(it.cm,pt,"gutter")}}function mh(it,st,mt,pt){if(it.cm&&!it.cm.curOp)return Tn(it.cm,mh)(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:[en(st.text)],origin:st.origin}}var Jt=it.lastLine();st.to.line>Jt&&(st={from:st.from,to:kn(Jt,wn(it,Jt).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Hn(it,st.from,st.to),mt||(mt=So(it,st)),it.cm?ic(it.cm,st,pt):Ua(it,st,pt),xl(it,mt,Ze),it.cantEdit&&dh(it,kn(it.firstLine(),0))&&(it.cantEdit=!1)}}function ic(it,st,mt){var pt=it.doc,Bt=it.display,Jt=st.from,Se=st.to,Ue=!1,Oe=Jt.line;it.options.lineWrapping||(Oe=tn(xo(wn(pt,Jt.line))),pt.iter(Oe,Se.line+1,function(bi){if(bi==Bt.maxLine)return Ue=!0,!0})),pt.sel.contains(st.from,st.to)>-1&&er(it),Ua(pt,st,mt,el(it)),it.options.lineWrapping||(pt.iter(Oe,Jt.line+st.text.length,function(bi){var yr=Js(bi);yr>Bt.maxLineLength&&(Bt.maxLine=bi,Bt.maxLineLength=yr,Bt.maxLineChanged=!0,Ue=!1)}),Ue&&(it.curOp.updateMaxLine=!0)),Dr(pt,Jt.line),Qe(it,400);var ln=st.text.length-(Se.line-Jt.line)-1;st.full?El(it):Jt.line==Se.line&&st.text.length==1&&!qs(it.doc,st)?sa(it,Jt.line,"text"):El(it,Jt.line,Se.line+1,ln);var ri=Ji(it,"changes"),pn=Ji(it,"change");if(pn||ri){var ki={from:Jt,to:Se,text:st.text,removed:st.removed,origin:st.origin};pn&&Qr(it,"change",it,ki),ri&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(ki)}it.display.selForContextMenu=null}function rc(it,st,mt,pt,Bt){var Jt;pt||(pt=mt),ui(pt,mt)<0&&(Jt=[pt,mt],mt=Jt[0],pt=Jt[1]),typeof st=="string"&&(st=it.splitLines(st)),jl(it,{from:mt,to:pt,text:st,origin:Bt})}function vh(it,st,mt,pt){mt<it.line?it.line+=pt:st<it.line&&(it.line=st,it.ch=0)}function ga(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 Ue=0;Ue<Jt.ranges.length;Ue++)vh(Jt.ranges[Ue].anchor,st,mt,pt),vh(Jt.ranges[Ue].head,st,mt,pt);continue}for(var Oe=0;Oe<Jt.changes.length;++Oe){var ln=Jt.changes[Oe];if(mt<ln.from.line)ln.from=kn(ln.from.line+pt,ln.from.ch),ln.to=kn(ln.to.line+pt,ln.to.ch);else if(st<=ln.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;ga(it.done,mt,pt,Bt),ga(it.undone,mt,pt,Bt)}function Ba(it,st,mt,pt){var Bt=st,Jt=st;return typeof st=="number"?Jt=wn(it,Mr(it,st)):Bt=tn(st),Bt==null?null:(pt(Jt,Bt)&&it.cm&&sa(it.cm,Bt,mt),Jt)}function pl(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}pl.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,Na(Bt),Qr(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 pa(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}pa.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 pl))){var Ue=[];this.collapse(Ue),this.children=[new pl(Ue)],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,Ue=Se;Ue<Bt.lines.length;){var Oe=new pl(Bt.lines.slice(Ue,Ue+=25));Bt.height-=Oe.height,this.children.splice(++pt,0,Oe),Oe.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 pa(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 pa(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 lu=function(it,st,mt){if(mt)for(var pt in mt)mt.hasOwnProperty(pt)&&(this[pt]=mt[pt]);this.doc=it,this.node=st};lu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,mt=this.line,pt=tn(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=Ja(this);Di(mt,Math.max(0,mt.height-Jt)),it&&(nn(it,function(){Fu(it,mt,-Jt),sa(it,pt,"widget")}),Qr(it,"lineWidgetCleared",it,this,pt))}},lu.prototype.changed=function(){var it=this,st=this.height,mt=this.doc.cm,pt=this.line;this.height=null;var Bt=Ja(this)-st;Bt&&(Vi(this.doc,pt)||Di(pt,pt.height+Bt),mt&&nn(mt,function(){mt.curOp.forceUpdate=!0,Fu(mt,pt,Bt),Qr(mt,"lineWidgetChanged",mt,it,tn(pt))}))},Fr(lu);function Fu(it,st,mt){Bs(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&$e(it,mt)}function zh(it,st,mt,pt){var Bt=new lu(it,mt,pt),Jt=it.cm;return Jt&&Bt.noHScroll&&(Jt.display.alignWidgets=!0),Ba(it,st,"widget",function(Se){var Ue=Se.widgets||(Se.widgets=[]);if(Bt.insertAt==null?Ue.push(Bt):Ue.splice(Math.min(Ue.length-1,Math.max(0,Bt.insertAt)),0,Bt),Bt.line=Se,Jt&&!Vi(it,Se)){var Oe=Bs(Se)<it.scrollTop;Di(Se,Se.height+Ja(Bt)),Oe&&$e(Jt,Bt.height),Jt.curOp.forceUpdate=!0}return!0}),Jt&&Qr(Jt,"lineWidgetAdded",Jt,Bt,typeof st=="number"?st:tn(st)),Bt}var Ih=0,_n=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Ih};_n.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&kr(it),Ji(this,"clear")){var mt=this.find();mt&&Qr(this,"clear",mt.from,mt.to)}for(var pt=null,Bt=null,Jt=0;Jt<this.lines.length;++Jt){var Se=this.lines[Jt],Ue=ra(Se.markedSpans,this);it&&!this.collapsed?sa(it,tn(Se),"text"):it&&(Ue.to!=null&&(Bt=tn(Se)),Ue.from!=null&&(pt=tn(Se))),Se.markedSpans=xs(Se.markedSpans,Ue),Ue.from==null&&this.collapsed&&!Vi(this.doc,Se)&&it&&Di(Se,Gu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Oe=0;Oe<this.lines.length;++Oe){var ln=xo(this.lines[Oe]),ri=Js(ln);ri>it.display.maxLineLength&&(it.display.maxLine=ln,it.display.maxLineLength=ri,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&&au(it.doc)),it&&Qr(it,"markerCleared",it,this,pt,Bt),st&&$n(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:tn(Jt),Se.from),it==-1))return mt;if(Se.to!=null&&(pt=kn(st?Jt:tn(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||nn(pt,function(){var Bt=st.line,Jt=tn(st.line),Se=ec(pt,Jt);if(Se&&(ju(Se),pt.curOp.selectionChanged=pt.curOp.forceUpdate=!0),pt.curOp.updateMaxLine=!0,!Vi(mt.doc,Bt)&&mt.height!=null){var Ue=mt.height;mt.height=null;var Oe=Ja(mt)-Ue;Oe&&Di(Bt,Bt.height+Oe)}Qr(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)}},Fr(_n);function Ru(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,Ru)(it,st,mt,pt,Bt);var Jt=new _n(it,Bt),Se=ui(st,mt);if(pt&&Re(pt,Jt,!1),Se>0||Se==0&&Jt.clearWhenEmpty!==!1)return Jt;if(Jt.replacedWith&&(Jt.collapsed=!0,Jt.widgetNode=Pe("span",[Jt.replacedWith],"CodeMirror-widget"),pt.handleMouseEvents||Jt.widgetNode.setAttribute("cm-ignore-events","true"),pt.insertLeft&&(Jt.widgetNode.insertLeft=!0)),Jt.collapsed){if(Yo(it,st.line,st,mt,Jt)||st.line!=mt.line&&Yo(it,mt.line,st,mt,Jt))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ci()}Jt.addToHistory&&ha(it,{from:st,to:mt,origin:"markText"},it.sel,NaN);var Ue=st.line,Oe=it.cm,ln;if(it.iter(Ue,mt.line+1,function(pn){Oe&&Jt.collapsed&&!Oe.options.lineWrapping&&xo(pn)==Oe.display.maxLine&&(ln=!0),Jt.collapsed&&Ue!=st.line&&Di(pn,0),va(pn,new Xo(Jt,Ue==st.line?st.ch:null,Ue==mt.line?mt.ch:null)),++Ue}),Jt.collapsed&&it.iter(st.line,mt.line+1,function(pn){Vi(it,pn)&&Di(pn,0)}),Jt.clearOnEnter&&un(Jt,"beforeCursorEnter",function(){return Jt.clear()}),Jt.readOnly&&(bo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),Jt.collapsed&&(Jt.id=++Ih,Jt.atomic=!0),Oe){if(ln&&(Oe.curOp.updateMaxLine=!0),Jt.collapsed)El(Oe,st.line,mt.line+1);else if(Jt.className||Jt.startStyle||Jt.endStyle||Jt.css||Jt.attributes||Jt.title)for(var ri=st.line;ri<=mt.line;ri++)sa(Oe,ri,"text");Jt.atomic&&au(Oe.doc),Qr(Oe,"markerAdded",Oe,Jt)}return Jt}var kh=function(it,st){this.markers=it,this.primary=st;for(var mt=0;mt<it.length;++mt)it[mt].parent=this};kh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Qr(this,"clear")}},kh.prototype.find=function(it,st){return this.primary.find(it,st)},Fr(kh);function lA(it,st,mt,pt,Bt){pt=Re(pt),pt.shared=!1;var Jt=[Ru(it,st,mt,pt,Bt)],Se=Jt[0],Ue=pt.widgetNode;return $s(it,function(Oe){Ue&&(pt.widgetNode=Ue.cloneNode(!0)),Jt.push(Ru(Oe,nr(Oe,st),nr(Oe,mt),pt,Bt));for(var ln=0;ln<Oe.linked.length;++ln)if(Oe.linked[ln].isParent)return;Se=en(Jt)}),new kh(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(ui(Jt,Se)){var Ue=Ru(it,Jt,Se,pt.primary,pt.primary.type);pt.markers.push(Ue),Ue.parent=pt}}}function xd(it){for(var st=function(pt){var Bt=it[pt],Jt=[Bt.primary.doc];$s(Bt.primary.doc,function(Oe){return Jt.push(Oe)});for(var Se=0;Se<Bt.markers.length;Se++){var Ue=Bt.markers[Se];Ce(Jt,Ue.doc)==-1&&(Ue.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),pa.call(this,[new pl([new Ho("",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)),Ua(this,{from:Jt,to:Jt,text:it}),Ta(this,us(Jt),Ze)};Lu.prototype=Tt(pa.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=Si(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:Yn(function(it){var st=kn(this.first,0),mt=this.first+this.size-1;jl(this,{from:st,to:kn(mt,wn(this,mt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&gn(this.cm,0,0),Ta(this,us(st),Ze)}),replaceRange:function(it,st,mt,pt){st=nr(this,st),mt=mt?nr(this,mt):st,rc(this,it,st,mt,pt)},getRange:function(it,st,mt){var pt=Hn(this,nr(this,it),nr(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(Li(this,it))return wn(this,it)},getLineNumber:function(it){return tn(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=wn(this,it)),xo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return nr(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:Yn(function(it,st,mt){Xa(this,nr(this,typeof it=="number"?kn(it,st||0):it),null,mt)}),setSelection:Yn(function(it,st,mt){Xa(this,nr(this,it),nr(this,st||it),mt)}),extendSelection:Yn(function(it,st,mt){ta(this,nr(this,it),st&&nr(this,st),mt)}),extendSelections:Yn(function(it,st){ca(this,no(this,it),st)}),extendSelectionsBy:Yn(function(it,st){var mt=Fi(this.sel.ranges,it);ca(this,no(this,mt),st)}),setSelections:Yn(function(it,st,mt){if(it.length){for(var pt=[],Bt=0;Bt<it.length;Bt++)pt[Bt]=new Ur(nr(this,it[Bt].anchor),nr(this,it[Bt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ta(this,jo(this.cm,pt,st),mt)}}),addSelection:Yn(function(it,st,mt){var pt=this.sel.ranges.slice(0);pt.push(new Ur(nr(this,it),nr(this,st||it))),Ta(this,jo(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=Hn(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=Hn(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:Yn(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 Ue=st&&st!="end"&&Vo(this,pt,st),Oe=pt.length-1;Oe>=0;Oe--)jl(this,pt[Oe]);Ue?Rs(this,Ue):this.cm&&fn(this.cm)}),undo:Yn(function(){ph(this,"undo")}),redo:Yn(function(){ph(this,"redo")}),undoSelection:Yn(function(){ph(this,"undo",!0)}),redoSelection:Yn(function(){ph(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),$s(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:Ra(this.history.done),undone:Ra(this.history.undone)}},setHistory:function(it){var st=this.history=new es(this.history.maxGeneration);st.done=Ra(it.done.slice(0),null,!0),st.undone=Ra(it.undone.slice(0),null,!0)},setGutterMarker:Yn(function(it,st,mt){return Ba(this,it,"gutter",function(pt){var Bt=pt.gutterMarkers||(pt.gutterMarkers={});return Bt[st]=mt,!mt&&At(Bt)&&(pt.gutterMarkers=null),!0})}),clearGutter:Yn(function(it){var st=this;this.iter(function(mt){mt.gutterMarkers&&mt.gutterMarkers[it]&&Ba(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(!Li(this,it)||(st=it,it=wn(this,it),!it))return null}else if(st=tn(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:Yn(function(it,st,mt){return Ba(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:Yn(function(it,st,mt){return Ba(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 Ue=Se.index+Se[0].length;pt[Bt]=Jt.slice(0,Se.index)+(!Se.index||Ue==Jt.length?"":" ")+Jt.slice(Ue)||null}else return!1;return!0})}),addLineWidget:Yn(function(it,st,mt){return zh(this,it,st,mt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,mt){return Ru(this,nr(this,it),nr(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=nr(this,it),Ru(this,it,it,mt,"bookmark")},findMarksAt:function(it){it=nr(this,it);var st=[],mt=wn(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=nr(this,it),st=nr(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 Ue=0;Ue<Se.length;Ue++){var Oe=Se[Ue];!(Oe.to!=null&&Bt==it.line&&it.ch>=Oe.to||Oe.from==null&&Bt!=it.line||Oe.from!=null&&Bt==st.line&&Oe.from>=st.ch)&&(!mt||mt(Oe.marker))&&pt.push(Oe.marker.parent||Oe.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}),nr(this,kn(mt,st))},indexFromPos:function(it){it=nr(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(Si(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(Si(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 ms&&(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];$s(it,function(Bt){return pt.push(Bt.id)},!0),it.history=new es(null),it.history.done=Ra(this.history.done,pt),it.history.undone=Ra(this.history.undone,pt)}},iterLinkedDocs:function(it){$s(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):yo(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Yn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&ds(this.cm))})}),Lu.prototype.eachLine=Lu.prototype.iter;var jc=0;function Kd(it){var st=this;if(Uc(st),!(ji(st,it)||su(st.display,it))){vr(it),ee&&(jc=+new Date);var mt=rh(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,Ue=function(){++Se==Bt&&Tn(st,function(){mt=nr(st.doc,mt);var bi={from:mt,to:mt,text:st.doc.splitLines(Jt.filter(function(yr){return yr!=null}).join(st.doc.lineSeparator())),origin:"paste"};jl(st.doc,bi),Rs(st.doc,us(nr(st.doc,mt),nr(st.doc,qo(bi))))})()},Oe=function(bi,yr){if(st.options.allowDropFileTypes&&Ce(st.options.allowDropFileTypes,bi.type)==-1){Ue();return}var Tr=new FileReader;Tr.onerror=function(){return Ue()},Tr.onload=function(){var qr=Tr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(qr)){Ue();return}Jt[yr]=qr,Ue()},Tr.readAsText(bi)},ln=0;ln<pt.length;ln++)Oe(pt[ln],ln);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 ri=it.dataTransfer.getData("Text");if(ri){var pn;if(st.state.draggingText&&!st.state.draggingText.copy&&(pn=st.listSelections()),xl(st.doc,us(mt,mt)),pn)for(var ki=0;ki<pn.length;++ki)rc(st.doc,"",pn[ki].anchor,pn[ki].head,"drag");st.replaceSelection(ri,"around","paste"),st.display.input.focus()}}catch(bi){}}}}function id(it,st){if(ee&&(!it.state.draggingText||+new Date-jc<100)){Jr(st);return}if(!(ji(it,st)||su(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!oe)){var mt=Ae("img",null,null,"position: fixed; left: 0; top: 0;");mt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pt&&(mt.width=mt.height=1,it.display.wrapper.appendChild(mt),mt._top=mt.offsetTop),st.dataTransfer.setDragImage(mt,0,0),Pt&&mt.parentNode.removeChild(mt)}}function CA(it,st){var mt=rh(it,st);if(mt){var pt=document.createDocumentFragment();Ea(it,mt,pt),it.display.dragCursor||(it.display.dragCursor=Ae("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),le(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 Yu=!1;function sh(){Yu||(Wu(),Yu=!0)}function Wu(){var it;un(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Sd(BA)},100))}),un(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 Kh={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"},na=0;na<10;na++)Kh[na+48]=Kh[na+96]=String(na);for(var Cd=65;Cd<=90;Cd++)Kh[Cd]=String.fromCharCode(Cd);for(var rd=1;rd<=12;rd++)Kh[rd+111]=Kh[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 Ue=st[Se];if(/^(cmd|meta|m)$/i.test(Ue))Jt=!0;else if(/^a(lt)?$/i.test(Ue))mt=!0;else if(/^(c|ctrl|control)$/i.test(Ue))pt=!0;else if(/^s(hift)?$/i.test(Ue))Bt=!0;else throw new Error("Unrecognized modifier name: "+Ue)}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=Fi(mt.split(" "),Gd),Jt=0;Jt<Bt.length;Jt++){var Se=void 0,Ue=void 0;Jt==Bt.length-1?(Ue=Bt.join(" "),Se=pt):(Ue=Bt.slice(0,Jt+1).join(" "),Se="...");var Oe=st[Ue];if(!Oe)st[Ue]=Se;else if(Oe!=Se)throw new Error("Inconsistent bindings for "+Ue)}delete it[mt]}for(var ln in st)it[ln]=st[ln];return it}function Ju(it,st,mt,pt){st=uu(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 Ju(it,st.fallthrough,mt,pt);for(var Jt=0;Jt<st.fallthrough.length;Jt++){var Se=Ju(it,st.fallthrough[Jt],mt,pt);if(Se)return Se}}}function Rc(it){var st=typeof it=="string"?it:Kh[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(Pt&&it.keyCode==34&&it.char)return!1;var mt=Kh[it.keyCode];return mt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(mt=it.code),Bd(mt,it,st))}function uu(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&&ui(Jt.from,en(pt).to)<=0;){var Se=pt.pop();if(ui(Se.from,Jt.from)<0){Jt.from=Se.from;break}}pt.push(Jt)}nn(it,function(){for(var Ue=pt.length-1;Ue>=0;Ue--)rc(it.doc,"",pt[Ue].from,pt[Ue].to,"+delete");fn(it)})}function _c(it,st,mt){var pt=ae(it.text,st+mt,mt);return pt<0||pt>it.text.length?null:pt}function Ul(it,st,mt){var pt=_c(it,st.ch,mt);return pt==null?null:new kn(st.line,pt,mt<0?"after":"before")}function Oa(it,st,mt,pt,Bt){if(it){st.doc.direction=="rtl"&&(Bt=-Bt);var Jt=Gn(mt,st.doc.direction);if(Jt){var Se=Bt<0?en(Jt):Jt[0],Ue=Bt<0==(Se.level==1),Oe=Ue?"after":"before",ln;if(Se.level>0||st.doc.direction=="rtl"){var ri=ol(st,mt);ln=Bt<0?mt.text.length-1:0;var pn=xh(st,ri,ln).top;ln=ye(function(ki){return xh(st,ri,ki).top==pn},Bt<0==(Se.level==1)?Se.from:Se.to-1,ln),Oe=="before"&&(ln=_c(mt,ln,1))}else ln=Bt<0?Se.to:Se.from;return new kn(pt,ln,Oe)}}return new kn(pt,Bt<0?mt.text.length:0,Bt<0?"before":"after")}function $a(it,st,mt,pt){var Bt=Gn(st,it.doc.direction);if(!Bt)return Ul(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 Ul(st,mt,pt);var Ue=function(vo,$o){return _c(st,vo instanceof kn?vo.ch:vo,$o)},Oe,ln=function(vo){return it.options.lineWrapping?(Oe=Oe||ol(it,st),sA(it,st,Oe,vo)):{begin:0,end:st.text.length}},ri=ln(mt.sticky=="before"?Ue(mt,-1):mt.ch);if(it.doc.direction=="rtl"||Se.level==1){var pn=Se.level==1==pt<0,ki=Ue(mt,pn?1:-1);if(ki!=null&&(pn?ki<=Se.to&&ki<=ri.end:ki>=Se.from&&ki>=ri.begin)){var bi=pn?"before":"after";return new kn(mt.line,ki,bi)}}var yr=function(vo,$o,ko){for(var ss=function(Cl,ku){return ku?new kn(mt.line,Ue(Cl,1),"before"):new kn(mt.line,Cl,"after")};vo>=0&&vo<Bt.length;vo+=$o){var Ns=Bt[vo],To=$o>0==(Ns.level!=1),ea=To?ko.begin:Ue(ko.end,-1);if(Ns.from<=ea&&ea<Ns.to||(ea=To?Ns.from:Ue(Ns.to,-1),ko.begin<=ea&&ea<ko.end))return ss(ea,To)}},Tr=yr(Jt+pt,pt,ri);if(Tr)return Tr;var qr=pt>0?ri.end:Ue(ri.begin,-1);return qr!=null&&!(pt>0&&qr==st.text.length)&&(Tr=yr(pt>0?0:Bt.length-1,pt,ln(qr)),Tr)?Tr:null}var Mu={selectAll:_a,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ze)},killLine:function(it){return vu(it,function(st){if(st.empty()){var mt=wn(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:nr(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 Ah(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 Ph(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")},Vn)},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")},Vn)},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},Vn)},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(Bi(pt-Se%pt))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return nn(it,function(){for(var st=it.listSelections(),mt=[],pt=0;pt<st.length;pt++)if(st[pt].empty()){var Bt=st[pt].head,Jt=wn(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=wn(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 Ur(Bt,Bt))}it.setSelections(mt)})},newlineAndIndent:function(it){return nn(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);fn(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function Ah(it,st){var mt=wn(it.doc,st),pt=xo(mt);return pt!=mt&&(st=tn(pt)),Oa(!0,it,pt,st,1)}function Ph(it,st){var mt=wn(it.doc,st),pt=ks(mt);return pt!=mt&&(st=tn(pt)),Oa(!0,it,mt,st,-1)}function Zd(it,st){var mt=Ah(it,st.line),pt=wn(it.doc,mt.line),Bt=Gn(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=Ju(st,it.state.keyMaps[pt],mt,it);if(Bt)return Bt}return it.options.extraKeys&&Ju(st,it.options.extraKeys,mt,it)||Ju(st,it.options.keyMap,mt,it)}var Vu=new ne;function yh(it,st,mt,pt){var Bt=it.state.keySeq;if(Bt){if(Rc(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Vu.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"&&Qr(it,"keyHandled",it,st,mt),(Bt=="handled"||Bt=="multi")&&(vr(mt),gl(it)),!!Bt}function Hc(it,st){var mt=Vd(st,!0);return mt?st.shiftKey&&!it.state.keySeq?yh(it,"Shift-"+mt,st,function(pt){return Bc(it,pt,!0)})||yh(it,mt,st,function(pt){if(typeof pt=="string"?/^go[A-Z]/.test(pt):pt.motion)return Bc(it,pt)}):yh(it,mt,st,function(pt){return Bc(it,pt)}):!1}function oc(it,st,mt){return yh(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(),!ji(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);Pt&&(Qc=pt?mt:null,!pt&&mt==88&&!ti&&(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;Ge(st,"CodeMirror-crosshair");function mt(pt){(pt.keyCode==18||!pt.altKey)&&(Gt(st,"CodeMirror-crosshair"),ai(document,"keyup",mt),ai(document,"mouseover",mt))}un(document,"keyup",mt),un(document,"mouseover",mt)}function uA(it){it.keyCode==16&&(this.doc.sel.shift=!1),ji(this,it)}function Pc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(su(st.display,it)||ji(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var mt=it.keyCode,pt=it.charCode;if(Pt&&mt==Qc){Qc=null,vr(it);return}if(!(Pt&&(!it.which||it.which<10)&&Hc(st,it))){var Bt=String.fromCharCode(pt==null?mt:pt);Bt!="\b"&&(oc(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&&ui(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 Th(it){var st=this,mt=st.display;if(!(ji(st,it)||mt.activeTouch&&mt.input.supportsTouch())){if(mt.input.ensurePolled(),mt.shift=it.shiftKey,su(mt,it)){Mt||(mt.scroller.draggable=!1,setTimeout(function(){return mt.scroller.draggable=!0},100));return}if(!yn(st,it)){var pt=rh(st,it),Bt=Zr(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):Lr(it)==mt.scroller&&vr(it):Bt==2?(pt&&ta(st.doc,pt),setTimeout(function(){return mt.input.focus()},20)):Bt==3&&(Nt?st.display.input.onContextMenu(it):Yl(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,yh(it,Bd(Jt,Bt),Bt,function(Se){if(typeof Se=="string"&&(Se=Mu[Se]),!Se)return!1;var Ue=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Ue=Se(it,mt)!=Ln}finally{it.state.suppressEdits=!1}return Ue})}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(We(Hl,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&&(ui((Se=Jt.ranges[Se]).from(),st)<0||st.xRel>0)&&(ui(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(ln){Mt&&(Bt.scroller.draggable=!1),it.state.draggingText=!1,ai(Bt.wrapper.ownerDocument,"mouseup",Se),ai(Bt.wrapper.ownerDocument,"mousemove",Ue),ai(Bt.scroller,"dragstart",Oe),ai(Bt.scroller,"drop",Se),Jt||(vr(ln),pt.addNew||ta(it.doc,mt,null,null,pt.extend),Mt&&!oe||ee&&Vt==9?setTimeout(function(){Bt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Bt.input.focus()},20):Bt.input.focus())}),Ue=function(ln){Jt=Jt||Math.abs(st.clientX-ln.clientX)+Math.abs(st.clientY-ln.clientY)>=10},Oe=function(){return Jt=!0};Mt&&(Bt.scroller.draggable=!0),it.state.draggingText=Se,Se.copy=!pt.moveOnDrag,Bt.scroller.dragDrop&&Bt.scroller.dragDrop(),un(Bt.wrapper.ownerDocument,"mouseup",Se),un(Bt.wrapper.ownerDocument,"mousemove",Ue),un(Bt.scroller,"dragstart",Oe),un(Bt.scroller,"drop",Se),Yl(it),setTimeout(function(){return Bt.input.focus()},20)}function Ed(it,st,mt){if(mt=="char")return new Ur(st,st);if(mt=="word")return it.findWordAt(st);if(mt=="line")return new Ur(kn(st.line,0),nr(it.doc,kn(st.line+1,0)));var pt=mt(it,st);return new Ur(pt.from,pt.to)}function $d(it,st,mt,pt){var Bt=it.display,Jt=it.doc;vr(st);var Se,Ue,Oe=Jt.sel,ln=Oe.ranges;if(pt.addNew&&!pt.extend?(Ue=Jt.sel.contains(mt),Ue>-1?Se=ln[Ue]:Se=new Ur(mt,mt)):(Se=Jt.sel.primary(),Ue=Jt.sel.primIndex),pt.unit=="rectangle")pt.addNew||(Se=new Ur(mt,mt)),mt=rh(it,st,!0,!0),Ue=-1;else{var ri=Ed(it,mt,pt.unit);pt.extend?Se=Kl(Se,ri.anchor,ri.head,pt.extend):Se=ri}pt.addNew?Ue==-1?(Ue=ln.length,Ta(Jt,jo(it,ln.concat([Se]),Ue),{scroll:!1,origin:"*mouse"})):ln.length>1&&ln[Ue].empty()&&pt.unit=="char"&&!pt.extend?(Ta(Jt,jo(it,ln.slice(0,Ue).concat(ln.slice(Ue+1)),0),{scroll:!1,origin:"*mouse"}),Oe=Jt.sel):ka(Jt,Ue,Se,Mn):(Ue=0,Ta(Jt,new po([Se],0),Mn),Oe=Jt.sel);var pn=mt;function ki(ko){if(ui(pn,ko)!=0)if(pn=ko,pt.unit=="rectangle"){for(var ss=[],Ns=it.options.tabSize,To=ve(wn(Jt,mt.line).text,mt.ch,Ns),ea=ve(wn(Jt,ko.line).text,ko.ch,Ns),Cl=Math.min(To,ea),ku=Math.max(To,ea),cl=Math.min(mt.line,ko.line),yu=Math.min(it.lastLine(),Math.max(mt.line,ko.line));cl<=yu;cl++){var La=wn(Jt,cl).text,Sa=fi(La,Cl,Ns);Cl==ku?ss.push(new Ur(kn(cl,Sa),kn(cl,Sa))):La.length>Sa&&ss.push(new Ur(kn(cl,Sa),kn(cl,fi(La,ku,Ns))))}ss.length||ss.push(new Ur(mt,mt)),Ta(Jt,jo(it,Oe.ranges.slice(0,Ue).concat(ss),Ue),{origin:"*mouse",scroll:!1}),it.scrollIntoView(ko)}else{var vl=Se,yl=Ed(it,ko,pt.unit),Eo=vl.anchor,Ca;ui(yl.anchor,Eo)>0?(Ca=yl.head,Eo=dr(vl.from(),yl.anchor)):(Ca=yl.anchor,Eo=zr(vl.to(),yl.head));var Ml=Oe.ranges.slice(0);Ml[Ue]=FA(it,new Ur(nr(Jt,Eo),Ca)),Ta(Jt,jo(it,Ml,Ue),Mn)}}var bi=Bt.wrapper.getBoundingClientRect(),yr=0;function Tr(ko){var ss=++yr,Ns=rh(it,ko,!0,pt.unit=="rectangle");if(Ns)if(ui(Ns,pn)!=0){it.curOp.focus=Wt(),ki(Ns);var To=ie(Bt,Jt);(Ns.line>=To.to||Ns.line<To.from)&&setTimeout(Tn(it,function(){yr==ss&&Tr(ko)}),150)}else{var ea=ko.clientY<bi.top?-20:ko.clientY>bi.bottom?20:0;ea&&setTimeout(Tn(it,function(){yr==ss&&(Bt.scroller.scrollTop+=ea,Tr(ko))}),50)}}function qr(ko){it.state.selectingText=!1,yr=1/0,ko&&(vr(ko),Bt.input.focus()),ai(Bt.wrapper.ownerDocument,"mousemove",vo),ai(Bt.wrapper.ownerDocument,"mouseup",$o),Jt.history.lastSelOrigin=null}var vo=Tn(it,function(ko){ko.buttons===0||!Zr(ko)?qr(ko):Tr(ko)}),$o=Tn(it,qr);it.state.selectingText=$o,un(Bt.wrapper.ownerDocument,"mousemove",vo),un(Bt.wrapper.ownerDocument,"mouseup",$o)}function FA(it,st){var mt=st.anchor,pt=st.head,Bt=wn(it.doc,mt.line);if(ui(mt,pt)==0&&mt.sticky==pt.sticky)return st;var Jt=Gn(Bt);if(!Jt)return st;var Se=Me(Jt,mt.ch,mt.sticky),Ue=Jt[Se];if(Ue.from!=mt.ch&&Ue.to!=mt.ch)return st;var Oe=Se+(Ue.from==mt.ch==(Ue.level!=1)?0:1);if(Oe==0||Oe==Jt.length)return st;var ln;if(pt.line!=mt.line)ln=(pt.line-mt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var ri=Me(Jt,pt.ch,pt.sticky),pn=ri-Se||(pt.ch-mt.ch)*(Ue.level==1?-1:1);ri==Oe-1||ri==Oe?ln=pn<0:ln=pn>0}var ki=Jt[Oe+(ln?-1:0)],bi=ln==(ki.level==1),yr=bi?ki.from:ki.to,Tr=bi?"after":"before";return mt.ch==yr&&mt.sticky==Tr?st:new Ur(new kn(mt.line,yr,Tr),pt)}function fe(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(ki){return!1}if(Bt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;pt&&vr(st);var Se=it.display,Ue=Se.lineDiv.getBoundingClientRect();if(Jt>Ue.bottom||!Ji(it,mt))return Yr(st);Jt-=Ue.top-Se.viewOffset;for(var Oe=0;Oe<it.display.gutterSpecs.length;++Oe){var ln=Se.gutters.childNodes[Oe];if(ln&&ln.getBoundingClientRect().right>=Bt){var ri=oi(it.doc,Jt),pn=it.display.gutterSpecs[Oe];return On(it,mt,it,ri,pn.className,st),Yr(st)}}}function yn(it,st){return fe(it,st,"gutterClick",!0)}function wi(it,st){su(it.display,st)||_i(it,st)||ji(it,st,"contextmenu")||Nt||it.display.input.onContextMenu(st)}function _i(it,st){return Ji(it,"gutterContextMenu")?fe(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-"),sl(it)}var jr={toString:function(){return"CodeMirror.Init"}},Co={},ps={};function Ys(it){var st=it.optionHandlers;function mt(pt,Bt,Jt,Se){it.defaults[pt]=Bt,Jt&&(st[pt]=Se?function(Ue,Oe,ln){ln!=jr&&Jt(Ue,Oe,ln)}:Jt)}it.defineOption=mt,it.Init=jr,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),sl(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(Oe){for(var ln=0;;){var ri=Oe.text.indexOf(Bt,ln);if(ri==-1)break;ln=ri+Bt.length,Jt.push(kn(Se,ri))}Se++});for(var Ue=Jt.length-1;Ue>=0;Ue--)rc(pt.doc,Bt,Jt[Ue],kn(Jt[Ue].line,Jt[Ue].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!=jr&&pt.refresh()}),mt("specialCharPlaceholder",Ia,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=uu(Bt),Ue=Jt!=jr&&uu(Jt);Ue&&Ue.detach&&Ue.detach(pt,Se),Se.attach&&Se.attach(pt,Ue||null)}),mt("extraKeys",null),mt("configureMouse",null),mt("lineWrapping",!1,ba,!0),mt("gutters",[],function(pt,Bt){pt.display.gutterSpecs=Xn(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 Er(pt)},!0),mt("scrollbarStyle","native",function(pt){Ti(pt),Er(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=Xn(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,Pa),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 Pa(it,st,mt){var pt=mt&&mt!=jr;if(!st!=!pt){var Bt=it.display.dragFunctions,Jt=st?un:ai;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 ba(it){it.options.lineWrapping?(Ge(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Gt(it.display.wrapper,"CodeMirror-wrap"),ua(it)),vs(it),El(it),sl(it),setTimeout(function(){return Er(it)},100)}function ms(it,st){var mt=this;if(!(this instanceof ms))return new ms(it,st);this.options=st=st?Re(st):{},Re(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 ms.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"),Ti(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),nu(this),sh(),kr(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 ps)ps.hasOwnProperty(Se)&&ps[Se](this,st[Se],jr);Ii(this),st.finishInit&&st.finishInit(this);for(var Ue=0;Ue<iu.length;++Ue)iu[Ue](this);$n(this),Mt&&st.lineWrapping&&getComputedStyle(Jt.lineDiv).textRendering=="optimizelegibility"&&(Jt.lineDiv.style.textRendering="auto")}ms.defaults=Co,ms.optionHandlers=ps;function nu(it){var st=it.display;un(st.scroller,"mousedown",Tn(it,Th)),ee&&Vt<11?un(st.scroller,"dblclick",Tn(it,function(Oe){if(!ji(it,Oe)){var ln=rh(it,Oe);if(!(!ln||yn(it,Oe)||su(it.display,Oe))){vr(Oe);var ri=it.findWordAt(ln);ta(it.doc,ri.anchor,ri.head)}}})):un(st.scroller,"dblclick",function(Oe){return ji(it,Oe)||vr(Oe)}),un(st.scroller,"contextmenu",function(Oe){return wi(it,Oe)}),un(st.input.getField(),"contextmenu",function(Oe){st.scroller.contains(Oe.target)||wi(it,Oe)});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(Oe){if(Oe.touches.length!=1)return!1;var ln=Oe.touches[0];return ln.radiusX<=1&&ln.radiusY<=1}function Se(Oe,ln){if(ln.left==null)return!0;var ri=ln.left-Oe.left,pn=ln.top-Oe.top;return ri*ri+pn*pn>20*20}un(st.scroller,"touchstart",function(Oe){if(!ji(it,Oe)&&!Jt(Oe)&&!yn(it,Oe)){st.input.ensurePolled(),clearTimeout(mt);var ln=+new Date;st.activeTouch={start:ln,moved:!1,prev:ln-pt.end<=300?pt:null},Oe.touches.length==1&&(st.activeTouch.left=Oe.touches[0].pageX,st.activeTouch.top=Oe.touches[0].pageY)}}),un(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),un(st.scroller,"touchend",function(Oe){var ln=st.activeTouch;if(ln&&!su(st,Oe)&&ln.left!=null&&!ln.moved&&new Date-ln.start<300){var ri=it.coordsChar(st.activeTouch,"page"),pn;!ln.prev||Se(ln,ln.prev)?pn=new Ur(ri,ri):!ln.prev.prev||Se(ln,ln.prev.prev)?pn=it.findWordAt(ri):pn=new Ur(kn(ri.line,0),nr(it.doc,kn(ri.line+1,0))),it.setSelection(pn.anchor,pn.head),it.focus(),vr(Oe)}Bt()}),un(st.scroller,"touchcancel",Bt),un(st.scroller,"scroll",function(){st.scroller.clientHeight&&(Jn(it,st.scroller.scrollTop),Rn(it,st.scroller.scrollLeft,!0),On(it,"scroll",it))}),un(st.scroller,"mousewheel",function(Oe){return ho(it,Oe)}),un(st.scroller,"DOMMouseScroll",function(Oe){return ho(it,Oe)}),un(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Oe){ji(it,Oe)||Jr(Oe)},over:function(Oe){ji(it,Oe)||(CA(it,Oe),Jr(Oe))},start:function(Oe){return id(it,Oe)},drop:Tn(it,Kd),leave:function(Oe){ji(it,Oe)||Uc(it)}};var Ue=st.input.getField();un(Ue,"keyup",function(Oe){return uA.call(it,Oe)}),un(Ue,"keydown",Tn(it,od)),un(Ue,"keypress",Tn(it,Pc)),un(Ue,"focus",function(Oe){return Et(it,Oe)}),un(Ue,"blur",function(Oe){return wt(it,Oe)})}var iu=[];ms.defineInitHook=function(it){return iu.push(it)};function Ka(it,st,mt,pt){var Bt=it.doc,Jt;mt==null&&(mt="add"),mt=="smart"&&(Bt.mode.indent?Jt=Zo(it,st).state:mt="prev");var Se=it.options.tabSize,Ue=wn(Bt,st),Oe=ve(Ue.text,null,Se);Ue.stateAfter&&(Ue.stateAfter=null);var ln=Ue.text.match(/^\s*/)[0],ri;if(!pt&&!/\S/.test(Ue.text))ri=0,mt="not";else if(mt=="smart"&&(ri=Bt.mode.indent(Jt,Ue.text.slice(ln.length),Ue.text),ri==Ln||ri>150)){if(!pt)return;mt="prev"}mt=="prev"?st>Bt.first?ri=ve(wn(Bt,st-1).text,null,Se):ri=0:mt=="add"?ri=Oe+it.options.indentUnit:mt=="subtract"?ri=Oe-it.options.indentUnit:typeof mt=="number"&&(ri=Oe+mt),ri=Math.max(0,ri);var pn="",ki=0;if(it.options.indentWithTabs)for(var bi=Math.floor(ri/Se);bi;--bi)ki+=Se,pn+=" ";if(ki<ri&&(pn+=Bi(ri-ki)),pn!=ln)return rc(Bt,pn,kn(st,0),kn(st,ln.length),"+input"),Ue.stateAfter=null,!0;for(var yr=0;yr<Bt.sel.ranges.length;yr++){var Tr=Bt.sel.ranges[yr];if(Tr.head.line==st&&Tr.head.ch<ln.length){var qr=kn(st,ln.length);ka(Bt,yr,new Ur(qr,qr));break}}}var zl=null;function Nu(it){zl=it}function sc(it,st,mt,pt,Bt){var Jt=it.doc;it.display.shift=!1,pt||(pt=Jt.sel);var Se=+new Date-200,Ue=Bt=="paste"||it.state.pasteIncoming>Se,Oe=yo(st),ln=null;if(Ue&&pt.ranges.length>1)if(zl&&zl.text.join(`
`)==st){if(pt.ranges.length%zl.text.length==0){ln=[];for(var ri=0;ri<zl.text.length;ri++)ln.push(Jt.splitLines(zl.text[ri]))}}else Oe.length==pt.ranges.length&&it.options.pasteLinesPerSelection&&(ln=Fi(Oe,function(vo){return[vo]}));for(var pn=it.curOp.updateInput,ki=pt.ranges.length-1;ki>=0;ki--){var bi=pt.ranges[ki],yr=bi.from(),Tr=bi.to();bi.empty()&&(mt&&mt>0?yr=kn(yr.line,yr.ch-mt):it.state.overwrite&&!Ue?Tr=kn(Tr.line,Math.min(wn(Jt,Tr.line).text.length,Tr.ch+en(Oe).length)):Ue&&zl&&zl.lineWise&&zl.text.join(`
`)==Oe.join(`
`)&&(yr=Tr=kn(yr.line,0)));var qr={from:yr,to:Tr,text:ln?ln[ki%ln.length]:Oe,origin:Bt||(Ue?"paste":it.state.cutIncoming>Se?"cut":"+input")};jl(it.doc,qr),Qr(it,"inputRead",it,qr)}st&&!Ue&&ac(it,st),fn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=pn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function bh(it,st){var mt=it.clipboardData&&it.clipboardData.getData("Text");if(mt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&nn(st,function(){return sc(st,mt,0,null,"paste")}),!0}function ac(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 Ue=0;Ue<Jt.electricChars.length;Ue++)if(st.indexOf(Jt.electricChars.charAt(Ue))>-1){Se=Ka(it,Bt.head.line,"smart");break}}else Jt.electricInput&&Jt.electricInput.test(wn(it.doc,Bt.head.line).text.slice(0,Bt.head.ch))&&(Se=Ka(it,Bt.head.line,"smart"));Se&&Qr(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=Ae("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=Ae("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"](uu(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.");Oi(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"),Li(this.doc,pt)&&Ka(this,pt,Bt,Jt)}),indentSelection:Un(function(pt){for(var Bt=this.doc.sel.ranges,Jt=-1,Se=0;Se<Bt.length;Se++){var Ue=Bt[Se];if(Ue.empty())Ue.head.line>Jt&&(Ka(this,Ue.head.line,pt,!0),Jt=Ue.head.line,Se==this.doc.sel.primIndex&&fn(this));else{var Oe=Ue.from(),ln=Ue.to(),ri=Math.max(Jt,Oe.line);Jt=Math.min(this.lastLine(),ln.line-(ln.ch?0:1))+1;for(var pn=ri;pn<Jt;++pn)Ka(this,pn,pt);var ki=this.doc.sel.ranges;Oe.ch==0&&Bt.length==ki.length&&ki[Se].from().ch>0&&ka(this.doc,Se,new Ur(Oe,ki[Se].to()),Ze)}}}),getTokenAt:function(pt,Bt){return to(this,pt,Bt)},getLineTokens:function(pt,Bt){return to(this,kn(pt),Bt,!0)},getTokenTypeAt:function(pt){pt=nr(this.doc,pt);var Bt=ws(this,wn(this.doc,pt.line)),Jt=0,Se=(Bt.length-1)/2,Ue=pt.ch,Oe;if(Ue==0)Oe=Bt[2];else for(;;){var ln=Jt+Se>>1;if((ln?Bt[ln*2-1]:0)>=Ue)Se=ln;else if(Bt[ln*2+1]<Ue)Jt=ln+1;else{Oe=Bt[ln*2+2];break}}var ri=Oe?Oe.indexOf("overlay "):-1;return ri<0?Oe:ri==0?null:Oe.slice(0,ri-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],Ue=this.getModeAt(pt);if(typeof Ue[Bt]=="string")Se[Ue[Bt]]&&Jt.push(Se[Ue[Bt]]);else if(Ue[Bt])for(var Oe=0;Oe<Ue[Bt].length;Oe++){var ln=Se[Ue[Bt][Oe]];ln&&Jt.push(ln)}else Ue.helperType&&Se[Ue.helperType]?Jt.push(Se[Ue.helperType]):Se[Ue.name]&&Jt.push(Se[Ue.name]);for(var ri=0;ri<Se._global.length;ri++){var pn=Se._global[ri];pn.pred(Ue,this)&&Ce(Jt,pn.val)==-1&&Jt.push(pn.val)}return Jt},getStateAfter:function(pt,Bt){var Jt=this.doc;return pt=Mr(Jt,pt==null?Jt.first+Jt.size-1:pt),Zo(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=nr(this.doc,pt):Jt=pt?Se.from():Se.to(),hl(this,Jt,Bt||"page")},charCoords:function(pt,Bt){return ch(this,nr(this.doc,pt),Bt||"page")},coordsChar:function(pt,Bt){return pt=fc(this,pt,Bt||"page"),Sh(this,pt.left,pt.top)},lineAtHeight:function(pt,Bt){return pt=fc(this,{top:pt,left:0},Bt||"page").top,oi(this.doc,pt+this.display.viewOffset)},heightAtLine:function(pt,Bt,Jt){var Se=!1,Ue;if(typeof pt=="number"){var Oe=this.doc.first+this.doc.size-1;pt<this.doc.first?pt=this.doc.first:pt>Oe&&(pt=Oe,Se=!0),Ue=wn(this.doc,pt)}else Ue=pt;return Ol(this,Ue,{top:0,left:0},Bt||"page",Jt||Se).top+(Se?this.doc.height-Bs(Ue):0)},defaultTextHeight:function(){return Gu(this.display)},defaultCharWidth:function(){return Ch(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(pt,Bt,Jt,Se,Ue){var Oe=this.display;pt=hl(this,nr(this.doc,pt));var ln=pt.bottom,ri=pt.left;if(Bt.style.position="absolute",Bt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Bt),Oe.sizer.appendChild(Bt),Se=="over")ln=pt.top;else if(Se=="above"||Se=="near"){var pn=Math.max(Oe.wrapper.clientHeight,this.doc.height),ki=Math.max(Oe.sizer.clientWidth,Oe.lineSpace.clientWidth);(Se=="above"||pt.bottom+Bt.offsetHeight>pn)&&pt.top>Bt.offsetHeight?ln=pt.top-Bt.offsetHeight:pt.bottom+Bt.offsetHeight<=pn&&(ln=pt.bottom),ri+Bt.offsetWidth>ki&&(ri=ki-Bt.offsetWidth)}Bt.style.top=ln+"px",Bt.style.left=Bt.style.right="",Ue=="right"?(ri=Oe.sizer.clientWidth-Bt.offsetWidth,Bt.style.right="0px"):(Ue=="left"?ri=0:Ue=="middle"&&(ri=(Oe.sizer.clientWidth-Bt.offsetWidth)/2),Bt.style.left=ri+"px"),Jt&&we(this,{left:ri,top:ln,right:ri+Bt.offsetWidth,bottom:ln+Bt.offsetHeight})},triggerOnKeyDown:Un(od),triggerOnKeyPress:Un(Pc),triggerOnKeyUp:uA,triggerOnMouseDown:Un(Th),execCommand:function(pt){if(Mu.hasOwnProperty(pt))return Mu[pt].call(null,this)},triggerElectric:Un(function(pt){ac(this,pt)}),findPosH:function(pt,Bt,Jt,Se){var Ue=1;Bt<0&&(Ue=-1,Bt=-Bt);for(var Oe=nr(this.doc,pt),ln=0;ln<Bt&&(Oe=Fd(this.doc,Oe,Ue,Jt,Se),!Oe.hitSide);++ln);return Oe},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()},Vn)}),deleteH:Un(function(pt,Bt){var Jt=this.doc.sel,Se=this.doc;Jt.somethingSelected()?Se.replaceSelection("",null,"+delete"):vu(this,function(Ue){var Oe=Fd(Se,Ue.head,pt,Bt,!1);return pt<0?{from:Oe,to:Ue.head}:{from:Ue.head,to:Oe}})}),findPosV:function(pt,Bt,Jt,Se){var Ue=1,Oe=Se;Bt<0&&(Ue=-1,Bt=-Bt);for(var ln=nr(this.doc,pt),ri=0;ri<Bt;++ri){var pn=hl(this,ln,"div");if(Oe==null?Oe=pn.left:pn.left=Oe,ln=Gc(this,pn,Ue,Jt),ln.hitSide)break}return ln},moveV:Un(function(pt,Bt){var Jt=this,Se=this.doc,Ue=[],Oe=!this.display.shift&&!Se.extend&&Se.sel.somethingSelected();if(Se.extendSelectionsBy(function(ri){if(Oe)return pt<0?ri.from():ri.to();var pn=hl(Jt,ri.head,"div");ri.goalColumn!=null&&(pn.left=ri.goalColumn),Ue.push(pn.left);var ki=Gc(Jt,pn,pt,Bt);return Bt=="page"&&ri==Se.sel.primary()&&$e(Jt,ch(Jt,ki,"div").top-pn.top),ki},Vn),Ue.length)for(var ln=0;ln<Se.sel.ranges.length;ln++)Se.sel.ranges[ln].goalColumn=Ue[ln]}),findWordAt:function(pt){var Bt=this.doc,Jt=wn(Bt,pt.line).text,Se=pt.ch,Ue=pt.ch;if(Jt){var Oe=this.getHelper(pt,"wordChars");(pt.sticky=="before"||Ue==Jt.length)&&Se?--Se:++Ue;for(var ln=Jt.charAt(Se),ri=gt(ln,Oe)?function(pn){return gt(pn,Oe)}:/\s/.test(ln)?function(pn){return/\s/.test(pn)}:function(pn){return!/\s/.test(pn)&&!gt(pn)};Se>0&&ri(Jt.charAt(Se-1));)--Se;for(;Ue<Jt.length&&ri(Jt.charAt(Ue));)++Ue}return new Ur(kn(pt.line,Se),kn(pt.line,Ue))},toggleOverwrite:function(pt){pt!=null&&pt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ge(this.display.cursorDiv,"CodeMirror-overwrite"):Gt(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){gn(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:eu(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):gi(this,pt.from,pt.to,pt.margin)}),setSize:Un(function(pt,Bt){var Jt=this,Se=function(Oe){return typeof Oe=="number"||/^\d+$/.test(String(Oe))?Oe+"px":Oe};pt!=null&&(this.display.wrapper.style.width=Se(pt)),Bt!=null&&(this.display.wrapper.style.height=Se(Bt)),this.options.lineWrapping&&qa(this);var Ue=this.display.viewFrom;this.doc.iter(Ue,this.display.viewTo,function(Oe){if(Oe.widgets){for(var ln=0;ln<Oe.widgets.length;ln++)if(Oe.widgets[ln].noHScroll){sa(Jt,Ue,"widget");break}}++Ue}),this.curOp.forceUpdate=!0,On(this,"refresh",this)}),operation:function(pt){return nn(this,pt)},startOperation:function(){return kr(this)},endOperation:function(){return $n(this)},refresh:Un(function(){var pt=this.display.cachedTextHeight;El(this),this.curOp.forceUpdate=!0,sl(this),gn(this,this.doc.scrollLeft,this.doc.scrollTop),Ar(this.display),(pt==null||Math.abs(pt-Gu(this.display))>.5||this.options.lineWrapping)&&vs(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),sl(this),this.display.input.reset(),gn(this,pt.scrollLeft,pt.scrollTop),this.curOp.forceScroll=!0,Qr(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}},Fr(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,Ue=wn(it,st.line),Oe=Bt&&it.direction=="rtl"?-mt:mt;function ln(){var $o=st.line+Oe;return $o<it.first||$o>=it.first+it.size?!1:(st=new kn($o,st.ch,st.sticky),Ue=wn(it,$o))}function ri($o){var ko;if(pt=="codepoint"){var ss=Ue.text.charCodeAt(st.ch+(pt>0?0:-1));isNaN(ss)?ko=null:ko=new kn(st.line,Math.max(0,Math.min(Ue.text.length,st.ch+mt*(ss>=55296&&ss<56320?2:1))),-mt)}else Bt?ko=$a(it.cm,Ue,st,mt):ko=Ul(Ue,st,mt);if(ko==null)if(!$o&&ln())st=Oa(Bt,it.cm,Ue,st.line,Oe);else return!1;else st=ko;return!0}if(pt=="char"||pt=="codepoint")ri();else if(pt=="column")ri(!0);else if(pt=="word"||pt=="group")for(var pn=null,ki=pt=="group",bi=it.cm&&it.cm.getHelper(st,"wordChars"),yr=!0;!(mt<0&&!ri(!yr));yr=!1){var Tr=Ue.text.charAt(st.ch)||`
`,qr=gt(Tr,bi)?"w":ki&&Tr==`
`?"n":!ki||/\s/.test(Tr)?null:"p";if(ki&&!yr&&!qr&&(qr="s"),pn&&pn!=qr){mt<0&&(mt=1,ri(),st.sticky="after");break}if(qr&&(pn=qr),mt>0&&!ri(!yr))break}var vo=dh(it,st,Jt,Se,!0);return Sr(Jt,vo)&&(vo.hitSide=!0),vo}function Gc(it,st,mt,pt){var Bt=it.doc,Jt=st.left,Se;if(pt=="page"){var Ue=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Oe=Math.max(Ue-.5*Gu(it.display),3);Se=(mt>0?st.bottom:st.top)+mt*Oe}else pt=="line"&&(Se=mt>0?st.bottom+3:st.top-3);for(var ln;ln=Sh(it,Jt,Se),!!ln.outside;){if(mt<0?Se<=0:Se>=Bt.height){ln.hitSide=!0;break}Se+=mt*5}return ln}var ml=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};ml.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(Ue){for(var Oe=Ue.target;Oe;Oe=Oe.parentNode){if(Oe==Bt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Oe.className))break}return!1}un(Bt,"paste",function(Ue){!Jt(Ue)||ji(pt,Ue)||bh(Ue,pt)||Vt<=11&&setTimeout(Tn(pt,function(){return st.updateFromDOM()}),20)}),un(Bt,"compositionstart",function(Ue){st.composing={data:Ue.data,done:!1}}),un(Bt,"compositionupdate",function(Ue){st.composing||(st.composing={data:Ue.data,done:!1})}),un(Bt,"compositionend",function(Ue){st.composing&&(Ue.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),un(Bt,"touchstart",function(){return mt.forceCompositionEnd()}),un(Bt,"input",function(){st.composing||st.readFromDOMSoon()});function Se(Ue){if(!(!Jt(Ue)||ji(pt,Ue))){if(pt.somethingSelected())Nu({lineWise:!1,text:pt.getSelections()}),Ue.type=="cut"&&pt.replaceSelection("",null,"cut");else if(pt.options.lineWiseCopyCut){var Oe=LA(pt);Nu({lineWise:!0,text:Oe.text}),Ue.type=="cut"&&pt.operation(function(){pt.setSelections(Oe.ranges,0,Ze),pt.replaceSelection("",null,"cut")})}else return;if(Ue.clipboardData){Ue.clipboardData.clearData();var ln=zl.text.join(`
`);if(Ue.clipboardData.setData("Text",ln),Ue.clipboardData.getData("Text")==ln){Ue.preventDefault();return}}var ri=MA(),pn=ri.firstChild;pt.display.lineSpace.insertBefore(ri,pt.display.lineSpace.firstChild),pn.value=zl.text.join(`
`);var ki=document.activeElement;Ne(pn),setTimeout(function(){pt.display.lineSpace.removeChild(ri),ki.focus(),ki==Bt&&mt.showPrimarySelection()},50)}}un(Bt,"copy",Se),un(Bt,"cut",Se)},ml.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},ml.prototype.prepareSelection=function(){var it=wd(this.cm,!1);return it.focus=document.activeElement==this.div,it},ml.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},ml.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ml.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&&ui(dr(Jt,Se),pt)==0&&ui(zr(Jt,Se),Bt)==0)){var Ue=st.display.view,Oe=pt.line>=st.display.viewFrom&&Iu(st,pt)||{node:Ue[0].measure.map[2],offset:0},ln=Bt.line<st.display.viewTo&&Iu(st,Bt);if(!ln){var ri=Ue[Ue.length-1].measure,pn=ri.maps?ri.maps[ri.maps.length-1]:ri.map;ln={node:pn[pn.length-1],offset:pn[pn.length-2]-pn[pn.length-3]}}if(!Oe||!ln){it.removeAllRanges();return}var ki=it.rangeCount&&it.getRangeAt(0),bi;try{bi=qt(Oe.node,Oe.offset,ln.offset,ln.node)}catch(yr){}bi&&(!Lt&&st.state.focused?(it.collapse(Oe.node,Oe.offset),bi.collapsed||(it.removeAllRanges(),it.addRange(bi))):(it.removeAllRanges(),it.addRange(bi)),ki&&it.anchorNode==null?it.addRange(ki):Lt&&this.startGracePeriod()),this.rememberSelection()}},ml.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)},ml.prototype.showMultipleSelections=function(it){le(this.cm.display.cursorDiv,it.cursors),le(this.cm.display.selectionDiv,it.selection)},ml.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},ml.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return ze(this.div,st)},ml.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ml.prototype.blur=function(){this.div.blur()},ml.prototype.getField=function(){return this.div},ml.prototype.supportsTouch=function(){return!0},ml.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():nn(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)},ml.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},ml.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&te&&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&&nn(st,function(){Ta(st.doc,us(mt,pt),Ze),(mt.bad||pt.bad)&&(st.curOp.selectionChanged=!0)})}}},ml.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,wn(it.doc,pt.line-1).length)),Bt.ch==wn(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,Ue;pt.line==st.viewFrom||(Jt=Zu(it,pt.line))==0?(Se=tn(st.view[0].line),Ue=st.view[0].node):(Se=tn(st.view[Jt].line),Ue=st.view[Jt-1].node.nextSibling);var Oe=Zu(it,Bt.line),ln,ri;if(Oe==st.view.length-1?(ln=st.viewTo-1,ri=st.lineDiv.lastChild):(ln=tn(st.view[Oe+1].line)-1,ri=st.view[Oe+1].node.previousSibling),!Ue)return!1;for(var pn=it.doc.splitLines(Oh(it,Ue,ri,Se,ln)),ki=Hn(it.doc,kn(Se,0),kn(ln,wn(it.doc,ln).text.length));pn.length>1&&ki.length>1;)if(en(pn)==en(ki))pn.pop(),ki.pop(),ln--;else if(pn[0]==ki[0])pn.shift(),ki.shift(),Se++;else break;for(var bi=0,yr=0,Tr=pn[0],qr=ki[0],vo=Math.min(Tr.length,qr.length);bi<vo&&Tr.charCodeAt(bi)==qr.charCodeAt(bi);)++bi;for(var $o=en(pn),ko=en(ki),ss=Math.min($o.length-(pn.length==1?bi:0),ko.length-(ki.length==1?bi:0));yr<ss&&$o.charCodeAt($o.length-yr-1)==ko.charCodeAt(ko.length-yr-1);)++yr;if(pn.length==1&&ki.length==1&&Se==pt.line)for(;bi&&bi>pt.ch&&$o.charCodeAt($o.length-yr-1)==ko.charCodeAt(ko.length-yr-1);)bi--,yr++;pn[pn.length-1]=$o.slice(0,$o.length-yr).replace(/^\u200b+/,""),pn[0]=pn[0].slice(bi).replace(/\u200b+$/,"");var Ns=kn(Se,bi),To=kn(ln,ki.length?en(ki).length-yr:0);if(pn.length>1||pn[0]||ui(Ns,To))return rc(it.doc,pn,Ns,To,"+input"),!0},ml.prototype.ensurePolled=function(){this.forceCompositionEnd()},ml.prototype.reset=function(){this.forceCompositionEnd()},ml.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ml.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))},ml.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&nn(this.cm,function(){return El(it.cm)})},ml.prototype.setUneditable=function(it){it.contentEditable="false"},ml.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Tn(this.cm,sc)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},ml.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},ml.prototype.onContextMenu=function(){},ml.prototype.resetPosition=function(){},ml.prototype.needsContentAttribute=!0;function Iu(it,st){var mt=ec(it,st.line);if(!mt||mt.hidden)return null;var pt=wn(it.doc,st.line),Bt=Eu(mt,pt,st.line),Jt=Gn(pt,it.doc.direction),Se="left";if(Jt){var Ue=Me(Jt,st.ch);Se=Ue%2?"right":"left"}var Oe=Oc(Bt.map,st.ch,Se);return Oe.offset=Oe.collapse=="right"?Oe.end:Oe.start,Oe}function Yd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Gl(it,st){return st&&(it.bad=!0),it}function Oh(it,st,mt,pt,Bt){var Jt="",Se=!1,Ue=it.doc.lineSeparator(),Oe=!1;function ln(bi){return function(yr){return yr.id==bi}}function ri(){Se&&(Jt+=Ue,Oe&&(Jt+=Ue),Se=Oe=!1)}function pn(bi){bi&&(ri(),Jt+=bi)}function ki(bi){if(bi.nodeType==1){var yr=bi.getAttribute("cm-text");if(yr){pn(yr);return}var Tr=bi.getAttribute("cm-marker"),qr;if(Tr){var vo=it.findMarks(kn(pt,0),kn(Bt+1,0),ln(+Tr));vo.length&&(qr=vo[0].find(0))&&pn(Hn(it.doc,qr.from,qr.to).join(Ue));return}if(bi.getAttribute("contenteditable")=="false")return;var $o=/^(pre|div|p|li|table|br)$/i.test(bi.nodeName);if(!/^br$/i.test(bi.nodeName)&&bi.textContent.length==0)return;$o&&ri();for(var ko=0;ko<bi.childNodes.length;ko++)ki(bi.childNodes[ko]);/^(pre|p)$/i.test(bi.nodeName)&&(Oe=!0),$o&&(Se=!0)}else bi.nodeType==3&&pn(bi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ki(st),st!=mt;)st=st.nextSibling,Oe=!1;return Jt}function mc(it,st,mt){var pt;if(st==it.display.lineDiv){if(pt=it.display.lineDiv.childNodes[mt],!pt)return Gl(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 qu(Jt,st,mt)}}function qu(it,st,mt){var pt=it.text.firstChild,Bt=!1;if(!st||!ze(pt,st))return Gl(kn(tn(it.line),0),!0);if(st==pt&&(Bt=!0,st=pt.childNodes[mt],mt=0,!st)){var Jt=it.rest?en(it.rest):it.line;return Gl(kn(tn(Jt),Jt.text.length),Bt)}var Se=st.nodeType==3?st:null,Ue=st;for(!Se&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(Se=st.firstChild,mt&&(mt=Se.nodeValue.length));Ue.parentNode!=pt;)Ue=Ue.parentNode;var Oe=it.measure,ln=Oe.maps;function ri(qr,vo,$o){for(var ko=-1;ko<(ln?ln.length:0);ko++)for(var ss=ko<0?Oe.map:ln[ko],Ns=0;Ns<ss.length;Ns+=3){var To=ss[Ns+2];if(To==qr||To==vo){var ea=tn(ko<0?it.line:it.rest[ko]),Cl=ss[Ns]+$o;return($o<0||To!=qr)&&(Cl=ss[Ns+($o?1:0)]),kn(ea,Cl)}}}var pn=ri(Se,Ue,mt);if(pn)return Gl(pn,Bt);for(var ki=Ue.nextSibling,bi=Se?Se.nodeValue.length-mt:0;ki;ki=ki.nextSibling){if(pn=ri(ki,ki.firstChild,0),pn)return Gl(kn(pn.line,pn.ch-bi),Bt);bi+=ki.textContent.length}for(var yr=Ue.previousSibling,Tr=mt;yr;yr=yr.previousSibling){if(pn=ri(yr,yr.firstChild,-1),pn)return Gl(kn(pn.line,pn.ch+Tr),Bt);Tr+=yr.textContent.length}}var Wl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new ne,this.hasSelection=!1,this.composing=null};Wl.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"),un(Bt,"input",function(){ee&&Vt>=9&&st.hasSelection&&(st.hasSelection=null),mt.poll()}),un(Bt,"paste",function(Se){ji(pt,Se)||bh(Se,pt)||(pt.state.pasteIncoming=+new Date,mt.fastPoll())});function Jt(Se){if(!ji(pt,Se)){if(pt.somethingSelected())Nu({lineWise:!1,text:pt.getSelections()});else if(pt.options.lineWiseCopyCut){var Ue=LA(pt);Nu({lineWise:!0,text:Ue.text}),Se.type=="cut"?pt.setSelections(Ue.ranges,null,Ze):(mt.prevInput="",Bt.value=Ue.text.join(`
`),Ne(Bt))}else return;Se.type=="cut"&&(pt.state.cutIncoming=+new Date)}}un(Bt,"cut",Jt),un(Bt,"copy",Jt),un(it.scroller,"paste",function(Se){if(!(su(it,Se)||ji(pt,Se))){if(!Bt.dispatchEvent){pt.state.pasteIncoming=+new Date,mt.focus();return}var Ue=new Event("paste");Ue.clipboardData=Se.clipboardData,Bt.dispatchEvent(Ue)}}),un(it.lineSpace,"selectstart",function(Se){su(it,Se)||vr(Se)}),un(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"})}}),un(Bt,"compositionend",function(){mt.composing&&(mt.poll(),mt.composing.range.clear(),mt.composing=null)})},Wl.prototype.createField=function(it){this.wrapper=MA(),this.textarea=this.wrapper.firstChild},Wl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Wl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,mt=it.doc,pt=wd(it);if(it.options.moveInputWithCursor){var Bt=hl(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},Wl.prototype.showSelection=function(it){var st=this.cm,mt=st.display;le(mt.cursorDiv,it.cursors),le(mt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Wl.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))}},Wl.prototype.getField=function(){return this.textarea},Wl.prototype.supportsTouch=function(){return!1},Wl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Wt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Wl.prototype.blur=function(){this.textarea.blur()},Wl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wl.prototype.receivedFocus=function(){this.slowPoll()},Wl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Wl.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)},Wl.prototype.poll=function(){var it=this,st=this.cm,mt=this.textarea,pt=this.prevInput;if(this.contextMenuPending||!st.state.focused||Xt(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,Ue=Math.min(pt.length,Bt.length);Se<Ue&&pt.charCodeAt(Se)==Bt.charCodeAt(Se);)++Se;return nn(st,function(){sc(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},Wl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wl.prototype.onKeyPress=function(){ee&&Vt>=9&&(this.hasSelection=null),this.fastPoll()},Wl.prototype.onContextMenu=function(it){var st=this,mt=st.cm,pt=mt.display,Bt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var Jt=rh(mt,it),Se=pt.scroller.scrollTop;if(!Jt||Pt)return;var Ue=mt.options.resetSelectionOnContextMenu;Ue&&mt.doc.sel.contains(Jt)==-1&&Tn(mt,Ta)(mt.doc,us(Jt),Ze);var Oe=Bt.style.cssText,ln=st.wrapper.style.cssText,ri=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",Bt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-ri.top-5)+"px; left: "+(it.clientX-ri.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 pn;Mt&&(pn=window.scrollY),pt.input.focus(),Mt&&window.scrollTo(null,pn),pt.input.reset(),mt.somethingSelected()||(Bt.value=st.prevInput=" "),st.contextMenuPending=bi,pt.selForContextMenu=mt.doc.sel,clearTimeout(pt.detectingSelectAll);function ki(){if(Bt.selectionStart!=null){var Tr=mt.somethingSelected(),qr="\u200B"+(Tr?Bt.value:"");Bt.value="\u21DA",Bt.value=qr,st.prevInput=Tr?"":"\u200B",Bt.selectionStart=1,Bt.selectionEnd=qr.length,pt.selForContextMenu=mt.doc.sel}}function bi(){if(st.contextMenuPending==bi&&(st.contextMenuPending=!1,st.wrapper.style.cssText=ln,Bt.style.cssText=Oe,ee&&Vt<9&&pt.scrollbars.setScrollTop(pt.scroller.scrollTop=Se),Bt.selectionStart!=null)){(!ee||ee&&Vt<9)&&ki();var Tr=0,qr=function(){pt.selForContextMenu==mt.doc.sel&&Bt.selectionStart==0&&Bt.selectionEnd>0&&st.prevInput=="\u200B"?Tn(mt,_a)(mt):Tr++<10?pt.detectingSelectAll=setTimeout(qr,500):(pt.selForContextMenu=null,pt.input.reset())};pt.detectingSelectAll=setTimeout(qr,200)}}if(ee&&Vt>=9&&ki(),Nt){Jr(it);var yr=function(){ai(window,"mouseup",yr),setTimeout(bi,20)};un(window,"mouseup",yr)}else setTimeout(bi,50)},Wl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Wl.prototype.setUneditable=function(){},Wl.prototype.needsContentAttribute=!1;function Ld(it,st){if(st=st?Re(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=Ue.getValue()}var Bt;if(it.form&&(un(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(Oe){}}st.finishInit=function(Oe){Oe.save=pt,Oe.getTextArea=function(){return it},Oe.toTextArea=function(){Oe.toTextArea=isNaN,pt(),it.parentNode.removeChild(Oe.getWrapperElement()),it.style.display="",it.form&&(ai(it.form,"submit",pt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=Bt))}},it.style.display="none";var Ue=ms(function(Oe){return it.parentNode.insertBefore(Oe,it.nextSibling)},st);return Ue}function Dh(it){it.off=ai,it.on=un,it.wheelEventPixels=Wr,it.Doc=Lu,it.splitLines=yo,it.countColumn=ve,it.findColumn=fi,it.isWordChar=ft,it.Pass=Ln,it.signal=On,it.Line=Ho,it.changeEnd=qo,it.scrollbarModel=gr,it.Pos=kn,it.cmpPos=ui,it.modes=Zs,it.mimeModes=la,it.resolveMode=_r,it.getMode=Dn,it.modeExtensions=Nn,it.extendMode=je,it.copyState=ei,it.startState=dn,it.innerMode=xi,it.commands=Mu,it.keyMap=mu,it.keyName=Vd,it.isModifierKey=Rc,it.lookupKey=Ju,it.normalizeKeyMap=Wd,it.StringStream=Fe,it.SharedTextMarker=kh,it.TextMarker=_n,it.LineWidget=lu,it.e_preventDefault=vr,it.e_stopPropagation=so,it.e_stop=Jr,it.addClass=Ge,it.contains=ze,it.rmClass=Gt,it.keyNames=Kh}Ys(ms),pc(ms);var ah="iter insert remove copy getEditor constructor".split(" ");for(var sd in Lu.prototype)Lu.prototype.hasOwnProperty(sd)&&Ce(ah,sd)<0&&(ms.prototype[sd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Lu.prototype[sd]));return Fr(Lu),ms.inputStyles={textarea:Wl,contenteditable:ml},ms.defineMode=function(it){!ms.defaults.mode&&it!="null"&&(ms.defaults.mode=it),Xs.apply(this,arguments)},ms.defineMIME=Rr,ms.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),ms.defineMIME("text/plain","null"),ms.defineExtension=function(it,st){ms.prototype[it]=st},ms.defineDocExtension=function(it,st){Lu.prototype[it]=st},ms.fromTextArea=Ld,Dh(ms),ms.version="5.58.2",ms})},25419:function(hi,Cn,Ft){(function(Lt){Lt(Ft(89780),Ft(15525),Ft(98101))})(function(Lt){"use strict";Lt.defineMode("markdown",function(ce,re){var ke=Lt.getMode(ce,"text/html"),ee=ke.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 te=/^([*\-_])(?:\s*\1){2,}\s*$/,Pt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,oe=/^\[(x| )\](?=\s)/i,Kt=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,$t=/^ {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==Gt){var ne=ee;if(!ne){var Ce=Lt.innerMode(ke,ve.htmlState);ne=Ce.mode.name=="xml"&&Ce.state.tagStart===null&&!Ce.state.context&&Ce.state.tokenize.isInText}ne&&(ve.f=Pe,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,Ze=ne.prevLine.hr,Mn=ne.list!==!1,Vn=(ne.listStack[ne.listStack.length-1]||0)+3;ne.indentedCode=!1;var fi=ne.indentation;if(ne.indentationDiff===null&&(ne.indentationDiff=ne.indentation,Mn)){for(ne.list=null;fi<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=fi-ne.listStack[ne.listStack.length-1])}var Kn=!bn&&!Ze&&!ne.prevLine.header&&(!Mn||!Ln)&&!ne.prevLine.fencedCodeEnd,Bi=(ne.list===!1||Ze||bn)&&ne.indentation<=Vn&&ve.match(te),en=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<=Vn&&(en=ve.match(Kt))&&en[1].length<=6)return ne.quote=0,ne.header=en[1].length,ne.thisLine.header=!0,re.highlightFormatting&&(ne.formatting="header"),ne.f=ne.inline,le(ne);if(ne.indentation<=Vn&&ve.eat(">"))return ne.quote=Ce?1:ne.quote+1,re.highlightFormatting&&(ne.formatting="quote"),ve.eatSpace(),le(ne);if(!Bi&&!ne.setext&&Ce&&ne.indentation<=Vn&&(en=ve.match(Pt))){var Fi=en[1]?"ol":"ul";return ne.indentation=fi+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(oe,!1)&&(ne.taskList=!0),ne.f=ne.inline,re.highlightFormatting&&(ne.formatting=["list","list-"+Fi]),le(ne)}else{if(Ce&&ne.indentation<=Vn&&(en=ve.match(et,!0)))return ne.quote=0,ne.fencedEndRE=new RegExp(en[1]+"+ *$"),ne.localMode=re.fencedCodeBlockHighlighting&&Vt(en[2]||re.fencedCodeBlockDefaultMode),ne.localMode&&(ne.localState=Lt.startState(ne.localMode)),ne.f=ne.block=se,re.highlightFormatting&&(ne.formatting="code-block"),ne.code=-1,le(ne);if(ne.setext||(!Kn||!Mn)&&!ne.quote&&ne.list===!1&&!ne.code&&!Bi&&!tt.test(ve.string)&&(en=ve.lookAhead(1))&&(en=en.match($t)))return ne.setext?(ne.header=ne.setext,ne.setext=0,ve.skipToEnd(),re.highlightFormatting&&(ne.formatting="header")):(ne.header=en[0].charAt(0)=="="?1:2,ne.setext=ne.header),ne.thisLine.header=!0,ne.f=ne.inline,le(ne);if(Bi)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 Gt(ve,ne){var Ce=ke.token(ve,ne.htmlState);if(!ee){var bn=Lt.innerMode(ke,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=Pe,ne.block=Ut,ne.htmlState=null)}return Ce}function se(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 Ze;return bn||(Ze=le(ne)),ne.localMode=ne.localState=null,ne.block=Ut,ne.f=Pe,ne.fencedEndRE=null,ne.code=0,ne.thisLine.fencedCodeEnd=!0,bn?dt(ve,ne,ne.block):Ze}else return ne.localMode?ne.localMode.token(ve,ne.localState):(ve.skipToEnd(),Mt.code)}function le(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 Ae(ve,ne){if(ve.match(Ct,!0))return le(ne)}function Pe(ve,ne){var Ce=ne.text(ve,ne);if(typeof Ce!="undefined")return Ce;if(ne.list)return ne.list=null,le(ne);if(ne.taskList){var bn=ve.match(oe,!0)[1]===" ";return bn?ne.taskOpen=!0:ne.taskClosed=!0,re.highlightFormatting&&(ne.formatting="task"),ne.taskList=!1,le(ne)}if(ne.taskOpen=!1,ne.taskClosed=!1,ne.header&&ve.match(/^#+$/,!0))return re.highlightFormatting&&(ne.formatting="header"),le(ne);var Ln=ve.next();if(ne.linkTitle){ne.linkTitle=!1;var Ze=Ln;Ln==="("&&(Ze=")"),Ze=(Ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Mn="^\\s*(?:[^"+Ze+"\\\\]+|\\\\\\\\|\\\\.)"+Ze;if(ve.match(new RegExp(Mn),!0))return Mt.linkHref}if(Ln==="`"){var Vn=ne.formatting;re.highlightFormatting&&(ne.formatting="code"),ve.eatWhile("`");var fi=ve.current().length;if(ne.code==0&&(!ne.quote||fi==1))return ne.code=fi,le(ne);if(fi==ne.code){var Kn=le(ne);return ne.code=0,Kn}else return ne.formatting=Vn,le(ne)}else if(ne.code)return le(ne);if(Ln==="\\"&&(ve.next(),re.highlightFormatting)){var Bi=le(ne),en=Mt.formatting+"-escape";return Bi?Bi+" "+en:en}if(Ln==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ne.imageMarker=!0,ne.image=!0,re.highlightFormatting&&(ne.formatting="image"),le(ne);if(Ln==="["&&ne.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ne.imageMarker=!1,ne.imageAltText=!0,re.highlightFormatting&&(ne.formatting="image"),le(ne);if(Ln==="]"&&ne.imageAltText){re.highlightFormatting&&(ne.formatting="image");var Bi=le(ne);return ne.imageAltText=!1,ne.image=!1,ne.inline=ne.f=ze,Bi}if(Ln==="["&&!ne.image)return ne.linkText&&ve.match(/^.*?\]/)||(ne.linkText=!0,re.highlightFormatting&&(ne.formatting="link")),le(ne);if(Ln==="]"&&ne.linkText){re.highlightFormatting&&(ne.formatting="link");var Bi=le(ne);return ne.linkText=!1,ne.inline=ne.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?ze:Pe,Bi}if(Ln==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=qt,re.highlightFormatting&&(ne.formatting="link");var Bi=le(ne);return Bi?Bi+=" ":Bi="",Bi+Mt.linkInline}if(Ln==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ne.f=ne.inline=qt,re.highlightFormatting&&(ne.formatting="link");var Bi=le(ne);return Bi?Bi+=" ":Bi="",Bi+Mt.linkEmail}if(re.xml&&Ln==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Fi=ve.string.indexOf(">",ve.pos);if(Fi!=-1){var Oi=ve.string.substring(ve.start,Fi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oi)&&(ne.md_inside=!0)}return ve.backUp(1),ne.htmlState=Lt.startState(ke),dt(ve,ne,Gt)}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()||" ",ft=!/\s/.test(vt)&&(!lt.test(vt)||/\s/.test(Tt)||lt.test(Tt)),gt=!/\s/.test(Tt)&&(!lt.test(Tt)||/\s/.test(vt)||lt.test(vt)),At=null,ue=null;if(Ot%2&&(!ne.em&&ft&&(Ln==="*"||!gt||lt.test(Tt))?At=!0:ne.em==Ln&&gt&&(Ln==="*"||!ft||lt.test(vt))&&(At=!1)),Ot>1&&(!ne.strong&&ft&&(Ln==="*"||!gt||lt.test(Tt))?ue=!0:ne.strong==Ln&&gt&&(Ln==="*"||!ft||lt.test(vt))&&(ue=!1)),ue!=null||At!=null){re.highlightFormatting&&(ne.formatting=At==null?"strong":ue==null?"em":"strong em"),At===!0&&(ne.em=Ln),ue===!0&&(ne.strong=Ln);var Kn=le(ne);return At===!1&&(ne.em=!1),ue===!1&&(ne.strong=!1),Kn}}else if(Ln===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return le(ne);ve.backUp(1)}if(re.strikethrough){if(Ln==="~"&&ve.eatWhile(Ln)){if(ne.strikethrough){re.highlightFormatting&&(ne.formatting="strikethrough");var Kn=le(ne);return ne.strikethrough=!1,Kn}else if(ve.match(/^[^\s]/,!1))return ne.strikethrough=!0,re.highlightFormatting&&(ne.formatting="strikethrough"),le(ne)}else if(Ln===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return le(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=le(ne);return ne.emoji=!1,xe}return Ln===" "&&(ve.match(/^ +$/,!1)?ne.trailingSpace++:ne.trailingSpace&&(ne.trailingSpaceNewLine=!0)),le(ne)}function qt(ve,ne){var Ce=ve.next();if(Ce===">"){ne.f=ne.inline=Pe,re.highlightFormatting&&(ne.formatting="link");var bn=le(ne);return bn?bn+=" ":bn="",bn+Mt.linkInline}return ve.match(/^[^>]+/,!0),Mt.linkInline}function ze(ve,ne){if(ve.eatSpace())return null;var Ce=ve.next();return Ce==="("||Ce==="["?(ne.f=ne.inline=Ge(Ce==="("?")":"]"),re.highlightFormatting&&(ne.formatting="link-string"),ne.linkHref=!0,le(ne)):"error"}var Wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ge(ve){return function(ne,Ce){var bn=ne.next();if(bn===ve){Ce.f=Ce.inline=Pe,re.highlightFormatting&&(Ce.formatting="link-string");var Ln=le(Ce);return Ce.linkHref=!1,Ln}return ne.match(Wt[ve]),Ce.linkHref=!0,le(Ce)}}function _e(ve,ne){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ne.f=Ne,ve.next(),re.highlightFormatting&&(ne.formatting="link"),ne.linkText=!0,le(ne)):ht(ve,ne,Pe)}function Ne(ve,ne){if(ve.match(/^\]:/,!0)){ne.f=ne.inline=We,re.highlightFormatting&&(ne.formatting="link");var Ce=le(ne);return ne.linkText=!1,Ce}return ve.match(/^([^\]\\]|\\.)+/,!0),Mt.linkText}function We(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=Pe,Mt.linkHref+" url")}var Re={startState:function(){return{f:Ut,prevLine:{stream:null},thisLine:{stream:null},block:Ut,htmlState:null,indentation:0,inline:Pe,text:Ae,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(ke,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!=Gt)){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==Gt?{state:ve.htmlState,mode:ke}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Re}},indent:function(ve,ne,Ce){return ve.block==Gt&&ke.indent?ke.indent(ve.htmlState,ne,Ce):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ne,Ce):Lt.Pass},blankLine:Nt,getType:le,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Re},"xml"),Lt.defineMIME("text/markdown","markdown"),Lt.defineMIME("text/x-markdown","markdown")})},98101:function(hi,Cn,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(ke){ke=ke.toLowerCase();for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.mime==ke)return Vt;if(Vt.mimes){for(var Mt=0;Mt<Vt.mimes.length;Mt++)if(Vt.mimes[Mt]==ke)return Vt}}if(/\+xml$/.test(ke))return Lt.findModeByMIME("application/xml");if(/\+json$/.test(ke))return Lt.findModeByMIME("application/json")},Lt.findModeByExtension=function(ke){ke=ke.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]==ke)return Vt}}},Lt.findModeByFileName=function(ke){for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.file&&Vt.file.test(ke))return Vt}var Mt=ke.lastIndexOf("."),jt=Mt>-1&&ke.substring(Mt+1,ke.length);if(jt)return Lt.findModeByExtension(jt)},Lt.findModeByName=function(ke){ke=ke.toLowerCase();for(var ee=0;ee<Lt.modeInfo.length;ee++){var Vt=Lt.modeInfo[ee];if(Vt.name.toLowerCase()==ke)return Vt;if(Vt.alias){for(var Mt=0;Mt<Vt.alias.length;Mt++)if(Vt.alias[Mt].toLowerCase()==ke)return Vt}}}})},67549:function(hi,Cn,Ft){(function(Lt){Lt(Ft(89780))})(function(Lt){"use strict";Lt.defineMode("stex",function(ce,re){"use strict";function ke(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 te={};te.importmodule=jt("importmodule","tag",["string","builtin"]),te.documentclass=jt("documentclass","tag",["","atom"]),te.usepackage=jt("usepackage","tag",["atom"]),te.begin=jt("begin","tag",["atom"]),te.end=jt("end","tag",["atom"]),te.label=jt("label","tag",["atom"]),te.ref=jt("ref","tag",["atom"]),te.eqref=jt("eqref","tag",["atom"]),te.cite=jt("cite","tag",["atom"]),te.bibitem=jt("bibitem","tag",["atom"]),te.Bibitem=jt("Bibitem","tag",["atom"]),te.RBibitem=jt("RBibitem","tag",["atom"]),te.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Pt(Ct,et){Ct.f=et}function oe(Ct,et){var tt;if(Ct.match(/^\\[a-zA-Z@]+/)){var lt=Ct.current().slice(1);return tt=te.hasOwnProperty(lt)?te[lt]:te.DEFAULT,tt=new tt,ke(et,tt),Pt(et,$t),tt.style}if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/\\]/))return"tag";if(Ct.match("\\["))return Pt(et,function(ht,dt){return Kt(ht,dt,"\\]")}),"keyword";if(Ct.match("\\("))return Pt(et,function(ht,dt){return Kt(ht,dt,"\\)")}),"keyword";if(Ct.match("$$"))return Pt(et,function(ht,dt){return Kt(ht,dt,"$$")}),"keyword";if(Ct.match("$"))return Pt(et,function(ht,dt){return Kt(ht,dt,"$")}),"keyword";var rt=Ct.next();if(rt=="%")return Ct.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=ee(et),tt)tt.closeBracket(rt),Pt(et,$t);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=te.DEFAULT,tt=new tt,ke(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 Kt(Ct,et,tt){if(Ct.eatSpace())return null;if(tt&&Ct.match(tt))return Pt(et,oe),"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 $t(Ct,et){var tt=Ct.peek(),lt;return tt=="{"||tt=="["?(lt=ee(et),lt.openBracket(tt),Ct.eat(tt),Pt(et,oe),"bracket"):/[ \t\r]/.test(tt)?(Ct.eat(tt),null):(Pt(et,oe),Vt(et),oe(Ct,et))}return{startState:function(){var Ct=re.inMathMode?function(et,tt){return Kt(et,tt)}:oe;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=oe,Ct.cmdState.length=0},lineComment:"%"}}),Lt.defineMIME("text/x-stex","stex"),Lt.defineMIME("text/x-latex","stex")})},15525:function(hi,Cn,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(ke,ee){var Vt=ke.indentUnit,Mt={},jt=ee.htmlMode?ce:re;for(var te in jt)Mt[te]=jt[te];for(var te in ee)Mt[te]=ee[te];var Pt,oe;function Kt(qt,ze){function Wt(Ne){return ze.tokenize=Ne,Ne(qt,ze)}var Ge=qt.next();if(Ge=="<")return qt.eat("!")?qt.eat("[")?qt.match("CDATA[")?Wt(et("atom","]]>")):null:qt.match("--")?Wt(et("comment","-->")):qt.match("DOCTYPE",!0,!0)?(qt.eatWhile(/[\w\._\-]/),Wt(tt(1))):null:qt.eat("?")?(qt.eatWhile(/[\w\._\-]/),ze.tokenize=et("meta","?>"),"meta"):(Pt=qt.eat("/")?"closeTag":"openTag",ze.tokenize=$t,"tag bracket");if(Ge=="&"){var _e;return qt.eat("#")?qt.eat("x")?_e=qt.eatWhile(/[a-fA-F\d]/)&&qt.eat(";"):_e=qt.eatWhile(/[\d]/)&&qt.eat(";"):_e=qt.eatWhile(/[\w\.\-:]/)&&qt.eat(";"),_e?"atom":"error"}else return qt.eatWhile(/[^&<]/),null}Kt.isInText=!0;function $t(qt,ze){var Wt=qt.next();if(Wt==">"||Wt=="/"&&qt.eat(">"))return ze.tokenize=Kt,Pt=Wt==">"?"endTag":"selfcloseTag","tag bracket";if(Wt=="=")return Pt="equals",null;if(Wt=="<"){ze.tokenize=Kt,ze.state=dt,ze.tagName=ze.tagStart=null;var Ge=ze.tokenize(qt,ze);return Ge?Ge+" tag error":"tag error"}else return/[\'\"]/.test(Wt)?(ze.tokenize=Ct(Wt),ze.stringStartCol=qt.column(),ze.tokenize(qt,ze)):(qt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ct(qt){var ze=function(Wt,Ge){for(;!Wt.eol();)if(Wt.next()==qt){Ge.tokenize=$t;break}return"string"};return ze.isInAttribute=!0,ze}function et(qt,ze){return function(Wt,Ge){for(;!Wt.eol();){if(Wt.match(ze)){Ge.tokenize=Kt;break}Wt.next()}return qt}}function tt(qt){return function(ze,Wt){for(var Ge;(Ge=ze.next())!=null;){if(Ge=="<")return Wt.tokenize=tt(qt+1),Wt.tokenize(ze,Wt);if(Ge==">")if(qt==1){Wt.tokenize=Kt;break}else return Wt.tokenize=tt(qt-1),Wt.tokenize(ze,Wt)}return"meta"}}function lt(qt,ze,Wt){this.prev=qt.context,this.tagName=ze,this.indent=qt.indented,this.startOfLine=Wt,(Mt.doNotIndent.hasOwnProperty(ze)||qt.context&&qt.context.noIndent)&&(this.noIndent=!0)}function rt(qt){qt.context&&(qt.context=qt.context.prev)}function ht(qt,ze){for(var Wt;;){if(!qt.context||(Wt=qt.context.tagName,!Mt.contextGrabbers.hasOwnProperty(Wt)||!Mt.contextGrabbers[Wt].hasOwnProperty(ze)))return;rt(qt)}}function dt(qt,ze,Wt){return qt=="openTag"?(Wt.tagStart=ze.column(),xt):qt=="closeTag"?Nt:dt}function xt(qt,ze,Wt){return qt=="word"?(Wt.tagName=ze.current(),oe="tag",se):Mt.allowMissingTagName&&qt=="endTag"?(oe="tag bracket",se(qt,ze,Wt)):(oe="error",xt)}function Nt(qt,ze,Wt){if(qt=="word"){var Ge=ze.current();return Wt.context&&Wt.context.tagName!=Ge&&Mt.implicitlyClosed.hasOwnProperty(Wt.context.tagName)&&rt(Wt),Wt.context&&Wt.context.tagName==Ge||Mt.matchClosing===!1?(oe="tag",Ut):(oe="tag error",Gt)}else return Mt.allowMissingTagName&&qt=="endTag"?(oe="tag bracket",Ut(qt,ze,Wt)):(oe="error",Gt)}function Ut(qt,ze,Wt){return qt!="endTag"?(oe="error",Ut):(rt(Wt),dt)}function Gt(qt,ze,Wt){return oe="error",Ut(qt,ze,Wt)}function se(qt,ze,Wt){if(qt=="word")return oe="attribute",le;if(qt=="endTag"||qt=="selfcloseTag"){var Ge=Wt.tagName,_e=Wt.tagStart;return Wt.tagName=Wt.tagStart=null,qt=="selfcloseTag"||Mt.autoSelfClosers.hasOwnProperty(Ge)?ht(Wt,Ge):(ht(Wt,Ge),Wt.context=new lt(Wt,Ge,_e==Wt.indented)),dt}return oe="error",se}function le(qt,ze,Wt){return qt=="equals"?Ae:(Mt.allowMissing||(oe="error"),se(qt,ze,Wt))}function Ae(qt,ze,Wt){return qt=="string"?Pe:qt=="word"&&Mt.allowUnquoted?(oe="string",se):(oe="error",se(qt,ze,Wt))}function Pe(qt,ze,Wt){return qt=="string"?Pe:se(qt,ze,Wt)}return{startState:function(qt){var ze={tokenize:Kt,state:dt,indented:qt||0,tagName:null,tagStart:null,context:null};return qt!=null&&(ze.baseIndent=qt),ze},token:function(qt,ze){if(!ze.tagName&&qt.sol()&&(ze.indented=qt.indentation()),qt.eatSpace())return null;Pt=null;var Wt=ze.tokenize(qt,ze);return(Wt||Pt)&&Wt!="comment"&&(oe=null,ze.state=ze.state(Pt||Wt,qt,ze),oe&&(Wt=oe=="error"?Wt+" error":oe)),Wt},indent:function(qt,ze,Wt){var Ge=qt.context;if(qt.tokenize.isInAttribute)return qt.tagStart==qt.indented?qt.stringStartCol+1:qt.indented+Vt;if(Ge&&Ge.noIndent)return Lt.Pass;if(qt.tokenize!=$t&&qt.tokenize!=Kt)return Wt?Wt.match(/^(\s*)/)[0].length:0;if(qt.tagName)return Mt.multilineTagIndentPastTag!==!1?qt.tagStart+qt.tagName.length+2:qt.tagStart+Vt*(Mt.multilineTagIndentFactor||1);if(Mt.alignCDATA&&/<!\[CDATA\[/.test(ze))return 0;var _e=ze&&/^<(\/)?([\w_:\.-]*)/.exec(ze);if(_e&&_e[1])for(;Ge;)if(Ge.tagName==_e[2]){Ge=Ge.prev;break}else if(Mt.implicitlyClosed.hasOwnProperty(Ge.tagName))Ge=Ge.prev;else break;else if(_e)for(;Ge;){var Ne=Mt.contextGrabbers[Ge.tagName];if(Ne&&Ne.hasOwnProperty(_e[2]))Ge=Ge.prev;else break}for(;Ge&&Ge.prev&&!Ge.startOfLine;)Ge=Ge.prev;return Ge?Ge.indent+Vt:qt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Mt.htmlMode?"html":"xml",helperType:Mt.htmlMode?"html":"xml",skipAttribute:function(qt){qt.state==Ae&&(qt.state=se)},xmlCurrentTag:function(qt){return qt.tagName?{name:qt.tagName,close:qt.type=="closeTag"}:null},xmlCurrentContext:function(qt){for(var ze=[],Wt=qt.context;Wt;Wt=Wt.prev)Wt.tagName&&ze.push(Wt.tagName);return ze.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,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.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),ke=oe(re),ee=Ft(12708),Vt=oe(ee),Mt=Ft(53291),jt=oe(Mt),te=Ft(47242),Pt=Ft(65429);function oe(tt){return tt&&tt.__esModule?tt:{default:tt}}function Kt(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}function $t(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){Kt(this,lt);var ht=$t(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,te.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,te.bind)(ht.echartsElement,function(){try{Ut.resize()}catch(Gt){console.warn(Gt)}})},ht.bindEvents=function(dt,xt){var Nt=function(se,le){typeof se=="string"&&typeof le=="function"&&dt.on(se,function(Ae){le(Ae,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,Pt.pick)(this.props,dt),(0,Pt.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 ke.default.createElement("div",{ref:function(se){ht.echartsElement=se},style:Ut,className:"echarts-for-react "+Nt})}}]),lt}(re.Component);Cn.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,Cn,Ft){"use strict";var Lt;Lt={value:!0},Cn.Z=void 0;var ce=Ft(76411),re=Vt(ce),ke=Ft(97774),ee=Vt(ke);function Vt(oe){return oe&&oe.__esModule?oe:{default:oe}}function Mt(oe,Kt){if(!(oe instanceof Kt))throw new TypeError("Cannot call a class as a function")}function jt(oe,Kt){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Kt&&(typeof Kt=="object"||typeof Kt=="function")?Kt:oe}function te(oe,Kt){if(typeof Kt!="function"&&Kt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Kt);oe.prototype=Object.create(Kt&&Kt.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),Kt&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,Kt):oe.__proto__=Kt)}var Pt=function(oe){te(Kt,oe);function Kt($t){Mt(this,Kt);var Ct=jt(this,(Kt.__proto__||Object.getPrototypeOf(Kt)).call(this,$t));return Ct.echartsLib=re.default,Ct}return Kt}(ee.default);Cn.Z=Pt},65429:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var Ft=Cn.pick=function(ce,re){var ke={};return re.forEach(function(ee){ke[ee]=ce[ee]}),ke}},53291:function(hi){"use strict";var Cn=Array.isArray,Ft=Object.keys,Lt=Object.prototype.hasOwnProperty;hi.exports=function ce(re,ke){if(re===ke)return!0;if(re&&ke&&typeof re=="object"&&typeof ke=="object"){var ee=Cn(re),Vt=Cn(ke),Mt,jt,te;if(ee&&Vt){if(jt=re.length,jt!=ke.length)return!1;for(Mt=jt;Mt--!==0;)if(!ce(re[Mt],ke[Mt]))return!1;return!0}if(ee!=Vt)return!1;var Pt=re instanceof Date,oe=ke instanceof Date;if(Pt!=oe)return!1;if(Pt&&oe)return re.getTime()==ke.getTime();var Kt=re instanceof RegExp,$t=ke instanceof RegExp;if(Kt!=$t)return!1;if(Kt&&$t)return re.toString()==ke.toString();var Ct=Ft(re);if(jt=Ct.length,jt!==Ft(ke).length)return!1;for(Mt=jt;Mt--!==0;)if(!Lt.call(ke,Ct[Mt]))return!1;for(Mt=jt;Mt--!==0;)if(te=Ct[Mt],!ce(re[te],ke[te]))return!1;return!0}return re!==re&&ke!==ke}},12378:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{$u:function(){return te},BD:function(){return Ot},E9:function(){return jt},FF:function(){return Uo},FJ:function(){return dt},Hn:function(){return ht},KX:function(){return Nt},NB:function(){return Te},S0:function(){return en},UL:function(){return Pt},Vk:function(){return rt},Vm:function(){return Me},YI:function(){return Fi},ZA:function(){return re},Zt:function(){return oe},al:function(){return At},bn:function(){return gt},bx:function(){return Tt},g2:function(){return Oi},h1:function(){return Ae},hD:function(){return Fr},l4:function(){return Vt},rU:function(){return De},s_:function(){return vt},uz:function(){return ye},z6:function(){return Kt}}),hi=Ft.hmd(hi),function(){var Xt;function ti(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:ti(a)}}function ia(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Zs=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},la;if(typeof Object.setPrototypeOf=="function")la=Object.setPrototypeOf;else{var Xs;t:{var Rr={a:!0},_r={};try{_r.__proto__=Rr,Xs=_r.a;break t}catch(a){}Xs=!1}la=Xs?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Dn=la;function Nn(a,y){if(a.prototype=Zs(y.prototype),a.prototype.constructor=a,Dn)Dn(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 je=typeof Ft.g!="undefined"&&Ft.g!=null?Ft.g:self,ei=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 dn(a,y){if(y){var x=je;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})}}dn("Object.assign",function(a){return a||ei}),dn("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 Fe=typeof globalThis=="object"&&globalThis||typeof Ft.g=="object"&&Ft.g.global===Ft.g&&Ft.g||typeof self=="object"&&self.self===self&&self||{};Fe.requestAnimationFrame===void 0&&(Fe.setImmediate===void 0?Fe.requestAnimationFrame=function(a){Fe.setTimeout(a,0)}:Fe.requestAnimationFrame=Fe.setImmediate);function wn(){}function Hn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Fe.clearTimeout(x),x=Si(function(){x=-1,a.apply(b,E)},y)}}function Si(a,y){return Fe.setTimeout(a,y)}function Di(a){return Fe.document.createElement(a)}function tn(a){throw Error(a)}function oi(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),tn(a)}function Li(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),tn(x+" is not in the range "+y+": "+a)}function tr(a){Fe.console&&Fe.console.log(a)}function kn(a){return typeof a=="object"&&a!==null}function ui(a){return Array.isArray(a)||Fe.NodeList&&a instanceof Fe.NodeList||Fe.HTMLCollection&&a instanceof Fe.HTMLCollection}function Sr(a){return Array.prototype.slice.call(a)}function cr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):tn("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):tn("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function dr(){var a=Zo.pop();return a===void 0?[]:a}function Mr(a){a.length=0,Zo.push(a)}function nr(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 nr(a.constructor);return typeof a}function Cr(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 no(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 Ro(a,y,x){Object.defineProperty(ie.prototype,a,{get:y,set:x})}function yi(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 Po=Fe.navigator!==void 0&&0<Fe.navigator.userAgent.indexOf("Trident/7"),ws=Fe.navigator!==void 0&&Fe.navigator.platform!==void 0&&Fe.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Zo=[];Object.freeze([]),wn.className="Util",wn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",wn.adym="gojs.net",wn.vfo="28e645fdb266",wn.className="Util";function pi(a,y,x){Xo(this),this.j=a,this.xa=y,this.o=x}pi.prototype.toString=function(){return"EnumValue."+this.xa};function or(a,y){return y==null||y===""?null:a[y]}je.Object.defineProperties(pi.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),pi.className="EnumValue";function Hr(){this.ew=[]}Hr.prototype.toString=function(){return this.ew.join("")},Hr.prototype.add=function(a){a!==""&&this.ew.push(a)},Hr.className="StringBuilder";function uo(){}uo.className="PropertyCollection";var to={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Fe.console&&Fe.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 Fo(){}Fo.prototype.reset=function(){},Fo.prototype.next=function(){return!1},Fo.prototype.Ad=function(){return!1},Fo.prototype.first=function(){return null},Fo.prototype.any=function(){return!1},Fo.prototype.all=function(){return!0},Fo.prototype.each=function(){return this},Fo.prototype.map=function(){return this},Fo.prototype.filter=function(){return this},Fo.prototype.de=function(){},Fo.prototype.toString=function(){return"EmptyIterator"},je.Object.defineProperties(Fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Fo.prototype.first=Fo.prototype.first,Fo.prototype.hasNext=Fo.prototype.Ad,Fo.prototype.next=Fo.prototype.next,Fo.prototype.reset=Fo.prototype.reset;var mi=null;Fo.className="EmptyIterator",mi=new Fo;function wo(a){this.key=-1,this.value=a}wo.prototype.reset=function(){this.key=-1},wo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},wo.prototype.Ad=function(){return this.next()},wo.prototype.first=function(){return this.key=0,this.value},wo.prototype.any=function(a){return this.key=-1,a(this.value)},wo.prototype.all=function(a){return this.key=-1,a(this.value)},wo.prototype.each=function(a){return this.key=-1,a(this.value),this},wo.prototype.map=function(a){return new wo(a(this.value))},wo.prototype.filter=function(a){return a(this.value)?new wo(this.value):mi},wo.prototype.de=function(){this.value=null},wo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},je.Object.defineProperties(wo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),wo.prototype.first=wo.prototype.first,wo.prototype.hasNext=wo.prototype.Ad,wo.prototype.next=wo.prototype.next,wo.prototype.reset=wo.prototype.reset,wo.className="SingletonIterator";function Dr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Dr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Dr.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},Dr.prototype.Ad=function(){return this.next()},Dr.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},Dr.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},Dr.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},Dr.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},Dr.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 Pi,a.s=x,a.xb(),a.iterator},Dr.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 Pi,a.s=x,a.xb(),a.iterator},Dr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Dr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},je.Object.defineProperties(Dr.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}}}),Dr.prototype.first=Dr.prototype.first,Dr.prototype.hasNext=Dr.prototype.Ad,Dr.prototype.next=Dr.prototype.next,Dr.prototype.reset=Dr.prototype.reset,Dr.className="ListIterator";function Br(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Br.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Br.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)},Br.prototype.Ad=function(){return this.next()},Br.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},Br.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},Br.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},Br.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},Br.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 Pi,a.s=x,a.xb(),a.iterator},Br.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 Pi,a.s=x,a.xb(),a.iterator},Br.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Br.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},je.Object.defineProperties(Br.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Br.prototype.first=Br.prototype.first,Br.prototype.hasNext=Br.prototype.Ad,Br.prototype.next=Br.prototype.next,Br.prototype.reset=Br.prototype.reset,Br.className="ListIteratorBackwards";function Pi(a){Xo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&tn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Xt=Pi.prototype,Xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.toString=function(){return"List()#"+xs(this)},Xt.add=function(a){return a===null?this:(this._isFrozen&&oi(this,a),this.s.push(a),this.xb(),this)},Xt.push=function(a){this.add(a)},Xt.addAll=function(a){if(a===null)return this;this._isFrozen&&oi(this);var y=this.s;if(ui(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},Xt.clear=function(){this._isFrozen&&oi(this),this.s.length=0,this.xb()},Xt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Xt.has=function(a){return this.contains(a)},Xt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Xt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Li(a,"0 <= i < length",Pi,"elt:i"),y[a]},Xt.get=function(a){return this.M(a)},Xt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Li(a,"0 <= i < length",Pi,"setElt:i"),this._isFrozen&&oi(this,a),x[a]=y},Xt.set=function(a,y){this.cd(a,y)},Xt.first=function(){var a=this.s;return a.length===0?null:a[0]},Xt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Xt.pop=function(){this._isFrozen&&oi(this);var a=this.s;return 0<a.length?a.pop():null},Pi.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},Pi.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},Pi.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Pi.prototype.map=function(a){for(var y=new Pi,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Pi.prototype.filter=function(a){for(var y=new Pi,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},Xt=Pi.prototype,Xt.Gb=function(a,y){0>a&&Li(a,">= 0",Pi,"insertAt:i"),this._isFrozen&&oi(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Xt.remove=function(a){if(a===null)return!1;this._isFrozen&&oi(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)},Xt.delete=function(a){return this.remove(a)},Xt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Li(a,"0 <= i < length",Pi,"removeAt:i"),this._isFrozen&&oi(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Xt.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&&oi(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Pi.prototype.copy=function(){var a=new Pi,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Xt=Pi.prototype,Xt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Xt.Iv=function(){for(var a=new Ci,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Xt.sort=function(a){return this._isFrozen&&oi(this),this.s.sort(a),this.xb(),this},Xt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&oi(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Li(y,"0 <= from < length",Pi,"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},Xt.reverse=function(){return this._isFrozen&&oi(this),this.s.reverse(),this.xb(),this},je.Object.defineProperties(Pi.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 mi;var a=this.Sa;return a!==null?(a.reset(),a):new Dr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return mi;var a=this.Hg;return a!==null?(a.reset(),a):new Br(this)}}}),Pi.prototype.reverse=Pi.prototype.reverse,Pi.prototype.sortRange=Pi.prototype.zi,Pi.prototype.sort=Pi.prototype.sort,Pi.prototype.toSet=Pi.prototype.Iv,Pi.prototype.toArray=Pi.prototype.Fa,Pi.prototype.removeRange=Pi.prototype.removeRange,Pi.prototype.removeAt=Pi.prototype.mb,Pi.prototype.delete=Pi.prototype.delete,Pi.prototype.remove=Pi.prototype.remove,Pi.prototype.insertAt=Pi.prototype.Gb,Pi.prototype.pop=Pi.prototype.pop,Pi.prototype.last=Pi.prototype.jc,Pi.prototype.first=Pi.prototype.first,Pi.prototype.set=Pi.prototype.set,Pi.prototype.setElt=Pi.prototype.cd,Pi.prototype.get=Pi.prototype.get,Pi.prototype.elt=Pi.prototype.M,Pi.prototype.indexOf=Pi.prototype.indexOf,Pi.prototype.has=Pi.prototype.has,Pi.prototype.contains=Pi.prototype.contains,Pi.prototype.clear=Pi.prototype.clear,Pi.prototype.addAll=Pi.prototype.addAll,Pi.prototype.push=Pi.prototype.push,Pi.prototype.add=Pi.prototype.add,Pi.prototype.thaw=Pi.prototype.ka,Pi.prototype.freeze=Pi.prototype.freeze,Pi.className="List";function bo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}bo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},bo.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)},bo.prototype.Ad=function(){return this.next()},bo.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},bo.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},bo.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},bo.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},bo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},bo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},bo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},bo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},je.Object.defineProperties(bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),bo.prototype.first=bo.prototype.first,bo.prototype.hasNext=bo.prototype.Ad,bo.prototype.next=bo.prototype.next,bo.prototype.reset=bo.prototype.reset,bo.className="SetIterator";function Ci(a){Xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&tn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Xt=Ci.prototype,Xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.toString=function(){return"Set()#"+xs(this)},Xt.add=function(a){if(a===null)return this;this._isFrozen&&oi(this,a);var y=a;return kn(a)&&(y=ra(a)),this.Tb[y]===void 0&&(this.Sb++,a=new As(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},Xt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&oi(this),ui(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},Xt.contains=function(a){if(a===null)return!1;var y=a;return kn(a)&&(y=xs(a),y===void 0)?!1:this.Tb[y]!==void 0},Xt.has=function(a){return this.contains(a)},Xt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Xt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Xt.first=function(){var a=this.ea;return a===null?null:a.value},Ci.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ci.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ci.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ci.prototype.map=function(a){for(var y=new Ci,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ci.prototype.filter=function(a){for(var y=new Ci,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Xt=Ci.prototype,Xt.remove=function(a){if(a===null)return!1;this._isFrozen&&oi(this,a);var y=a;if(kn(a)&&(y=xs(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},Xt.delete=function(a){return this.remove(a)},Xt.hp=function(a){if(a===null)return this;if(this._isFrozen&&oi(this),ui(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},Xt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&oi(this);var y=new Ci;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},Xt.clear=function(){this._isFrozen&&oi(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ci.prototype.copy=function(){var a=new Ci,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ci.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},Ci.prototype.Hv=function(){var a=new Pi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Xo(a){a.__gohashid=va++}function ra(a){var y=a.__gohashid;return y===void 0&&(y=va++,a.__gohashid=y),y}function xs(a){return a.__gohashid}je.Object.defineProperties(Ci.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return mi;var a=this.Sa;return a!==null?(a.reset(),a):new bo(this)}}}),Ci.prototype.toList=Ci.prototype.Hv,Ci.prototype.toArray=Ci.prototype.Fa,Ci.prototype.clear=Ci.prototype.clear,Ci.prototype.retainAll=Ci.prototype.pA,Ci.prototype.removeAll=Ci.prototype.hp,Ci.prototype.delete=Ci.prototype.delete,Ci.prototype.remove=Ci.prototype.remove,Ci.prototype.first=Ci.prototype.first,Ci.prototype.containsAny=Ci.prototype.Ty,Ci.prototype.containsAll=Ci.prototype.Sy,Ci.prototype.has=Ci.prototype.has,Ci.prototype.contains=Ci.prototype.contains,Ci.prototype.addAll=Ci.prototype.addAll,Ci.prototype.add=Ci.prototype.add,Ci.prototype.thaw=Ci.prototype.ka,Ci.prototype.freeze=Ci.prototype.freeze;var va=1;Ci.className="Set",Ci.uniqueHash=Xo,Ci.hashIdUnique=ra,Ci.hashId=xs;function Gs(a){this.ma=a,this.qa=a.Ja,this.sa=null}Gs.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Gs.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)},Gs.prototype.Ad=function(){return this.next()},Gs.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},Gs.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},Gs.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},Gs.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},Gs.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Gs.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Pi;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Gs.prototype.de=function(){this.value=this.key=null,this.qa=-1},Gs.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},je.Object.defineProperties(Gs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gs.prototype.first=Gs.prototype.first,Gs.prototype.hasNext=Gs.prototype.Ad,Gs.prototype.next=Gs.prototype.next,Gs.prototype.reset=Gs.prototype.reset,Gs.className="MapKeySetIterator";function Io(a){Ci.call(this),Xo(this),this._isFrozen=!0,this.ma=a}Nn(Io,Ci),Xt=Io.prototype,Xt.freeze=function(){return this},Xt.ka=function(){return this},Xt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Xt.add=function(){tn("This Set is read-only: "+this.toString())},Xt.contains=function(a){return this.ma.contains(a)},Xt.has=function(a){return this.contains(a)},Xt.remove=function(){tn("This Set is read-only: "+this.toString())},Xt.delete=function(a){return this.remove(a)},Xt.clear=function(){tn("This Set is read-only: "+this.toString())},Xt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Io.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Io.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Io.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Io.prototype.map=function(a){for(var y=new Ci,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Io.prototype.filter=function(a){for(var y=new Ci,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Io.prototype.copy=function(){return new Io(this.ma)},Io.prototype.Iv=function(){var a=new Ci,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Io.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},Io.prototype.Hv=function(){var a=new Pi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},je.Object.defineProperties(Io.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?mi:new Gs(this.ma)}}}),Io.prototype.toList=Io.prototype.Hv,Io.prototype.toArray=Io.prototype.Fa,Io.prototype.toSet=Io.prototype.Iv,Io.prototype.first=Io.prototype.first,Io.prototype.clear=Io.prototype.clear,Io.prototype.delete=Io.prototype.delete,Io.prototype.remove=Io.prototype.remove,Io.prototype.has=Io.prototype.has,Io.prototype.contains=Io.prototype.contains,Io.prototype.add=Io.prototype.add,Io.prototype.thaw=Io.prototype.ka,Io.prototype.freeze=Io.prototype.freeze,Io.className="MapKeySet";function _o(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}_o.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},_o.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)},_o.prototype.Ad=function(){return this.next()},_o.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},_o.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},_o.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},_o.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},_o.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},_o.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Pi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},_o.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},_o.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},je.Object.defineProperties(_o.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),_o.prototype.first=_o.prototype.first,_o.prototype.hasNext=_o.prototype.Ad,_o.prototype.next=_o.prototype.next,_o.prototype.reset=_o.prototype.reset,_o.className="MapValueSetIterator";function As(a,y){this.key=a,this.value=y,this.ll=this.va=null}As.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},As.className="KeyValuePair";function ls(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}ls.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},ls.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)},ls.prototype.Ad=function(){return this.next()},ls.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},ls.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},ls.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},ls.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},ls.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},ls.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Pi;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},ls.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},ls.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},je.Object.defineProperties(ls.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ls.prototype.first=ls.prototype.first,ls.prototype.hasNext=ls.prototype.Ad,ls.prototype.next=ls.prototype.next,ls.prototype.reset=ls.prototype.reset,ls.className="MapIterator";function wr(a){Xo(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"&&tn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Xt=wr.prototype,Xt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.toString=function(){return"Map()#"+xs(this)},Xt.add=function(a,y){this._isFrozen&&oi(this,a);var x=a;kn(a)&&(x=ra(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new As(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},Xt.set=function(a,y){return this.add(a,y)},Xt.addAll=function(a){if(a===null)return this;if(ui(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 wr)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},Xt.first=function(){return this.ea},wr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},wr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},wr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},wr.prototype.map=function(a){for(var y=new wr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},wr.prototype.filter=function(a){for(var y=new wr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Xt=wr.prototype,Xt.contains=function(a){var y=a;return kn(a)&&(y=xs(a),y===void 0)?!1:this.Tb[y]!==void 0},Xt.has=function(a){return this.contains(a)},Xt.I=function(a){var y=a;return kn(a)&&(y=xs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Xt.get=function(a){return this.I(a)},Xt.remove=function(a){if(a===null)return!1;this._isFrozen&&oi(this,a);var y=a;if(kn(a)&&(y=xs(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},Xt.delete=function(a){return this.remove(a)},Xt.clear=function(){this._isFrozen&&oi(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()},wr.prototype.copy=function(){var a=new wr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},wr.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 As(E.key,E.value),x++}return y},wr.prototype.Lf=function(){return new Io(this)},je.Object.defineProperties(wr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return mi;var a=this.Sa;return a!==null?(a.reset(),a):new ls(this)}},iteratorKeys:{get:function(){return 0>=this.count?mi:new Gs(this)}},iteratorValues:{get:function(){if(0>=this.count)return mi;var a=this.jf;return a!==null?(a.reset(),a):new _o(this)}}}),wr.prototype.toKeySet=wr.prototype.Lf,wr.prototype.toArray=wr.prototype.Fa,wr.prototype.clear=wr.prototype.clear,wr.prototype.delete=wr.prototype.delete,wr.prototype.remove=wr.prototype.remove,wr.prototype.get=wr.prototype.get,wr.prototype.getValue=wr.prototype.I,wr.prototype.has=wr.prototype.has,wr.prototype.contains=wr.prototype.contains,wr.prototype.first=wr.prototype.first,wr.prototype.addAll=wr.prototype.addAll,wr.prototype.set=wr.prototype.set,wr.prototype.add=wr.prototype.add,wr.prototype.thaw=wr.prototype.ka,wr.prototype.freeze=wr.prototype.freeze,wr.className="Map";function Ie(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):tn("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var cs,oa,ll,Ll,fl;Ie.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ie.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ie.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ie.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ie.prototype.copy=function(){var a=new Ie;return a.x=this.x,a.y=this.y,a},Xt=Ie.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function _l(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 Ie(x,E)}return new Ie}function ns(a){return a.x.toString()+" "+a.y.toString()}Xt.toString=function(){return"Point("+this.x+","+this.y+")"},Xt.D=function(a){return a instanceof Ie?this.x===a.x&&this.y===a.y:!1},Xt.hi=function(a,y){return this.x===a&&this.y===y},Xt.Xa=function(a){return En.B(this.x,a.x)&&En.B(this.y,a.y)},Xt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Xt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Xt.offset=function(a,y){return this.x+=a,this.y+=y,this},Ie.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},Xt=Ie.prototype,Xt.scale=function(a,y){return this.x*=a,this.y*=y,this},Xt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Xt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Xt.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},Xt.ab=function(a){return Yo(a.x-this.x,a.y-this.y)},Xt.direction=function(a,y){return Yo(a-this.x,y-this.y)};function Yo(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}Xt.Ry=function(a,y){return En.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Xt.fA=function(a,y,x,b){return En.qh(a,y,x,b,this.x,this.y,this),this},Xt.gA=function(a,y){return En.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Xt.uA=function(a,y,x,b){return En.No(this.x,this.y,a,y,x,b,this),this},Xt.vA=function(a,y){return En.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Xt.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},Xt.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},Xt.transform=function(a){return a.Ga(this),this};function xo(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 fa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function fo(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)}Xt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ie.alloc=function(){var a=co.pop();return a===void 0?new Ie:a},Ie.allocAt=function(a,y){var x=co.pop();return x===void 0?new Ie(a,y):(x.x=a,x.y=y,x)},Ie.free=function(a){co.push(a)},Ie.prototype.isReal=Ie.prototype.w,Ie.prototype.setSpot=Ie.prototype.yi,Ie.prototype.setRectSpot=Ie.prototype.xi,Ie.prototype.snapToGridPoint=Ie.prototype.vA,Ie.prototype.snapToGrid=Ie.prototype.uA,Ie.prototype.projectOntoLineSegmentPoint=Ie.prototype.gA,Ie.prototype.projectOntoLineSegment=Ie.prototype.fA,Ie.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return En.Rl(a,y,x,b,E,z,nt,ot)},Ie.prototype.compareWithLineSegmentPoint=Ie.prototype.Ry,Ie.compareWithLineSegment=function(a,y,x,b,E,z){return En.Fl(a,y,x,b,E,z)},Ie.prototype.direction=Ie.prototype.direction,Ie.prototype.directionPoint=Ie.prototype.ab,Ie.prototype.normalize=Ie.prototype.normalize,Ie.prototype.distanceSquared=Ie.prototype.zd,Ie.prototype.distanceSquaredPoint=Ie.prototype.Bf,Ie.prototype.scale=Ie.prototype.scale,Ie.prototype.rotate=Ie.prototype.rotate,Ie.prototype.offset=Ie.prototype.offset,Ie.prototype.subtract=Ie.prototype.re,Ie.prototype.add=Ie.prototype.add,Ie.prototype.equalsApprox=Ie.prototype.Xa,Ie.prototype.equalTo=Ie.prototype.hi,Ie.prototype.equals=Ie.prototype.D,Ie.prototype.set=Ie.prototype.set,Ie.prototype.setTo=Ie.prototype.sg;var co=[];Ie.className="Point",Ie.parse=_l,Ie.stringify=ns,Ie.distanceLineSegmentSquared=ks,Ie.distanceSquared=fa,Ie.direction=fo,Ie.Origin=cs=new Ie(0,0).ja(),Ie.InfiniteTopLeft=oa=new Ie(-1/0,-1/0).ja(),Ie.InfiniteBottomRight=ll=new Ie(1/0,1/0).ja(),Ie.SixPoint=Ll=new Ie(6,6).ja(),Ie.NoPoint=fl=new Ie(NaN,NaN).ja(),Ie.parse=_l,Ie.stringify=ns,Ie.distanceLineSegmentSquared=ks,Ie.distanceSquared=fa,Ie.direction=fo;function Vi(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):tn("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Lo,Bs,Js,ua,Ho,Ks,Na;Vi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Vi.prototype.h=function(a,y){return this.width=a,this.height=y,this},Vi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Vi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Vi.prototype.copy=function(){var a=new Vi;return a.width=this.width,a.height=this.height,a},Xt=Vi.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Tl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Vi(x,E)}return new Vi}function Va(a){return a.width.toString()+" "+a.height.toString()}Xt.toString=function(){return"Size("+this.width+","+this.height+")"},Xt.D=function(a){return a instanceof Vi?this.width===a.width&&this.height===a.height:!1},Xt.hi=function(a,y){return this.width===a&&this.height===y},Xt.Xa=function(a){return En.B(this.width,a.width)&&En.B(this.height,a.height)},Xt.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},Xt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Vi.alloc=function(){var a=Ps.pop();return a===void 0?new Vi:a},Vi.free=function(a){Ps.push(a)},Vi.prototype.isReal=Vi.prototype.w,Vi.prototype.inflate=Vi.prototype.Bc,Vi.prototype.equalsApprox=Vi.prototype.Xa,Vi.prototype.equalTo=Vi.prototype.hi,Vi.prototype.equals=Vi.prototype.D,Vi.prototype.set=Vi.prototype.set,Vi.prototype.setTo=Vi.prototype.sg;var Ps=[];Vi.className="Size",Vi.parse=Tl,Vi.stringify=Va,Vi.ZeroSize=Lo=new Vi(0,0).ja(),Vi.OneSize=Bs=new Vi(1,1).ja(),Vi.SixSize=Js=new Vi(6,6).ja(),Vi.EightSize=ua=new Vi(8,8).ja(),Vi.TenSize=Ho=new Vi(10,10).ja(),Vi.InfiniteSize=Ks=new Vi(1/0,1/0).ja(),Vi.NoSize=Na=new Vi(NaN,NaN).ja(),Vi.parse=Tl,Vi.stringify=Va;function si(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 Ie?(x=a.x,a=a.y,y instanceof Ie?(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 Vi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):tn("Incorrect second argument supplied to Rect constructor "+y)):tn("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Xt=si.prototype,Xt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Xt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Ia(a,y,x){a.width=y,a.height=x}Xt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Xt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Xt.dd=function(a){return this.x=a.x,this.y=a.y,this},Xt.tA=function(a){return this.width=a.width,this.height=a.height,this},si.prototype.copy=function(){var a=new si;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Xt=si.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ac(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 si(x,E,z,nt)}return new si}function du(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Xt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Xt.D=function(a){return a instanceof si?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Xt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Xt.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 Hh(a,y){return En.$(a.x,y.x)&&En.$(a.y,y.y)&&En.$(a.width,y.width)&&En.$(a.height,y.height)}Xt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Xt.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},Xt.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},Xt.offset=function(a,y){return this.x+=a,this.y+=y,this},Xt.Bc=function(a,y){return $r(this,y,a,y,a)},Xt.Co=function(a){return $r(this,a.top,a.right,a.bottom,a.left)},Xt.Fv=function(a){return $r(this,-a.top,-a.right,-a.bottom,-a.left)},Xt.Hz=function(a,y,x,b){return $r(this,a,y,x,b)};function $r(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}Xt.Ex=function(a){return Qs(this,a.x,a.y,a.width,a.height)},Xt.Uu=function(a,y,x,b){return Qs(this,a,y,x,b)};function Qs(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}Xt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Xt.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 Ms(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))}Xt.Ye=function(a){return bs(this,a.x,a.y,0,0)},Xt.ed=function(a){return bs(this,a.x,a.y,a.width,a.height)},Xt.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}Xt.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 zs(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 Au(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Xt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Xt.Mz=function(){return this.width===0&&this.height===0},si.alloc=function(){var a=Ss.pop();return a===void 0?new si:a},si.allocAt=function(a,y,x,b){var E=Ss.pop();return E===void 0?new si(a,y,x,b):E.h(a,y,x,b)},si.free=function(a){Ss.push(a)},je.Object.defineProperties(si.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 Ie(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Vi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ie(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}}}),si.prototype.isEmpty=si.prototype.Mz,si.prototype.isReal=si.prototype.w,si.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return En.Fx(a,y,x,b,E,z,nt,ot)},si.prototype.setSpot=si.prototype.yi,si.prototype.union=si.prototype.Kv,si.prototype.unionRect=si.prototype.ed,si.prototype.unionPoint=si.prototype.Ye,si.prototype.intersects=si.prototype.Vu,si.prototype.intersectsRect=si.prototype.Yc,si.prototype.intersect=si.prototype.Uu,si.prototype.intersectRect=si.prototype.Ex,si.prototype.grow=si.prototype.Hz,si.prototype.subtractMargin=si.prototype.Fv,si.prototype.addMargin=si.prototype.Co,si.prototype.inflate=si.prototype.Bc,si.prototype.offset=si.prototype.offset,si.prototype.contains=si.prototype.contains,si.prototype.containsRect=si.prototype.Re,si.prototype.containsPoint=si.prototype.ca,si.prototype.equalsApprox=si.prototype.Xa,si.prototype.equalTo=si.prototype.hi,si.prototype.equals=si.prototype.D,si.prototype.setSize=si.prototype.tA,si.prototype.setPoint=si.prototype.dd,si.prototype.set=si.prototype.set,si.prototype.setTo=si.prototype.sg;var Jo=null,Hs=null,Ss=[];si.className="Rect",si.parse=Ac,si.stringify=du,si.contains=zs,si.intersects=Au,si.ZeroRect=Jo=new si(0,0,0,0).ja(),si.NoRect=Hs=new si(NaN,NaN,NaN,NaN).ja(),si.parse=Ac,si.stringify=du,si.contains=zs,si.intersects=Au;function Qr(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):tn("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Qr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Qr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Qr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Qr.prototype.copy=function(){var a=new Qr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Xt=Qr.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function ul(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 Qr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Qr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Qr(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Qr(x,E):new Qr(x,E,z,nt)}return new Qr}function Ds(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Xt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Xt.D=function(a){return a instanceof Qr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Xt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Xt.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)},Xt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Qr.alloc=function(){var a=Xl.pop();return a===void 0?new Qr:a},Qr.free=function(a){Xl.push(a)},Qr.prototype.isReal=Qr.prototype.w,Qr.prototype.equalsApprox=Qr.prototype.Xa,Qr.prototype.equalTo=Qr.prototype.hi,Qr.prototype.equals=Qr.prototype.D,Qr.prototype.set=Qr.prototype.set,Qr.prototype.setTo=Qr.prototype.sg;var Su=null,zu=null,Xl=[];Qr.className="Margin",Qr.parse=ul,Qr.stringify=Ds,Qr.ZeroMargin=Su=new Qr(0,0,0,0).ja(),Qr.TwoMargin=zu=new Qr(2,2,2,2).ja(),Qr.parse=ul,Qr.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 Za,rl,bl,ou,Ya,Mo,ja,Ja,su,$l,Pu,bu,fu,eu,zo,Hd,Eu,yd,Nh,ec,ol,xh,Qd,Oc,Dc,Fs,ya,ju,qa,sl,za,Aa,tl,Ol,fc,ch;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},Xt=fr.prototype,Xt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Xt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this};function hl(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 Za;if(a==="TopLeft")return rl;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return bl;if(a==="TopRight")return ou;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ya;if(a==="Center")return Mo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ja;if(a==="BottomLeft")return Ja;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return su;if(a==="BottomRight")return $l;if(a==="TopSide")return Pu;if(a==="LeftSide")return bu;if(a==="RightSide")return fu;if(a==="BottomSide")return eu;if(a==="TopBottomSides")return zo;if(a==="LeftRightSides")return Hd;if(a==="TopLeftSides")return Eu;if(a==="TopRightSides")return yd;if(a==="BottomLeftSides")return Nh;if(a==="BottomRightSides")return ec;if(a==="NotTopSide")return ol;if(a==="NotLeftSide")return xh;if(a==="NotRightSide")return Qd;if(a==="NotBottomSide")return Oc;if(a==="AllSides")return Dc;if(a==="Default")return Fs;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()}Xt.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(Za)?"None":this.D(rl)?"TopLeft":this.D(bl)?"Top":this.D(ou)?"TopRight":this.D(Ya)?"Left":this.D(Mo)?"Center":this.D(ja)?"Right":this.D(Ja)?"BottomLeft":this.D(su)?"Bottom":this.D($l)?"BottomRight":this.D(Pu)?"TopSide":this.D(bu)?"LeftSide":this.D(fu)?"RightSide":this.D(eu)?"BottomSide":this.D(zo)?"TopBottomSides":this.D(Hd)?"LeftRightSides":this.D(Eu)?"TopLeftSides":this.D(yd)?"TopRightSides":this.D(Nh)?"BottomLeftSides":this.D(ec)?"BottomRightSides":this.D(ol)?"NotTopSide":this.D(xh)?"NotLeftSide":this.D(Qd)?"NotRightSide":this.D(Oc)?"NotBottomSide":this.D(Dc)?"AllSides":this.D(Fs)?"Default":"None"},Xt.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},Xt.gv=function(){return new fr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Xt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ya))a=bu;else if(a.D(ju))a=fu;else if(a.D(qa))a=Pu;else if(a.D(sl))a=eu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Xt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Xt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Xt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Xt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Xt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fr.alloc=function(){var a=Sh.pop();return a===void 0?new fr:a},fr.free=function(a){Sh.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 Sh=[];fr.className="Spot",fr.parse=zd,fr.stringify=td,fr.None=Za=hl(new fr(0,0,0,0),0).ja(),fr.Default=Fs=hl(new fr(0,0,-1,0),-1).ja(),fr.TopLeft=rl=new fr(0,0,0,0).ja(),fr.TopCenter=bl=new fr(.5,0,0,0).ja(),fr.TopRight=ou=new fr(1,0,0,0).ja(),fr.LeftCenter=Ya=new fr(0,.5,0,0).ja(),fr.Center=Mo=new fr(.5,.5,0,0).ja(),fr.RightCenter=ja=new fr(1,.5,0,0).ja(),fr.BottomLeft=Ja=new fr(0,1,0,0).ja(),fr.BottomCenter=su=new fr(.5,1,0,0).ja(),fr.BottomRight=$l=new fr(1,1,0,0).ja(),fr.MiddleTop=za=bl,fr.MiddleLeft=Aa=Ya,fr.MiddleRight=tl=ja,fr.MiddleBottom=Ol=su,fr.Top=qa=bl,fr.Left=ya=Ya,fr.Right=ju=ja,fr.Bottom=sl=su,fr.TopSide=Pu=hl(new fr(0,0,1,1),1).ja(),fr.LeftSide=bu=hl(new fr(0,0,1,2),1).ja(),fr.RightSide=fu=hl(new fr(0,0,1,4),1).ja(),fr.BottomSide=eu=hl(new fr(0,0,1,8),1).ja(),fr.TopBottomSides=zo=hl(new fr(0,0,1,9),1).ja(),fr.LeftRightSides=Hd=hl(new fr(0,0,1,6),1).ja(),fr.TopLeftSides=Eu=hl(new fr(0,0,1,3),1).ja(),fr.TopRightSides=yd=hl(new fr(0,0,1,5),1).ja(),fr.BottomLeftSides=Nh=hl(new fr(0,0,1,10),1).ja(),fr.BottomRightSides=ec=hl(new fr(0,0,1,12),1).ja(),fr.NotTopSide=ol=hl(new fr(0,0,1,14),1).ja(),fr.NotLeftSide=xh=hl(new fr(0,0,1,13),1).ja(),fr.NotRightSide=Qd=hl(new fr(0,0,1,11),1).ja(),fr.NotBottomSide=Oc=hl(new fr(0,0,1,7),1).ja(),fr.AllSides=Dc=hl(new fr(0,0,1,15),1).ja(),fc=new fr(.156,.156).ja(),ch=new fr(.844,.844).ja(),fr.parse=zd,fr.stringify=td;function Qo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Qo.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},Qo.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},Qo.prototype.copy=function(){var a=new Qo;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},Qo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Qo.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},Qo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Qo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Qo.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},Qo.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},Qo.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},Qo.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},Xt=Qo.prototype,Xt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Xt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Xt.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)},Xt.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))},Xt.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))},Xt.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,zt=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,zt),yt=Math.max(yt,zt),zt=Math.min(It,Zt),It=Math.max(It,Zt),E=Math.min(E,x),yt=Math.max(yt,x),zt=Math.min(zt,y),It=Math.max(It,y),E=Math.min(E,z),yt=Math.max(yt,z),zt=Math.min(zt,b),It=Math.max(It,b),a.h(E,zt,yt-E,It-zt),a},Qo.alloc=function(){var a=sA.pop();return a===void 0?new Qo:a},Qo.free=function(a){sA.push(a)},Qo.prototype.transformRect=Qo.prototype.pp,Qo.prototype.transformPoint=Qo.prototype.Ga,Qo.prototype.scale=Qo.prototype.scale,Qo.prototype.translate=Qo.prototype.translate,Qo.prototype.rotate=Qo.prototype.rotate,Qo.prototype.invert=Qo.prototype.Vj,Qo.prototype.multiplyInverted=Qo.prototype.bv,Qo.prototype.multiply=Qo.prototype.multiply,Qo.prototype.reset=Qo.prototype.reset,Qo.prototype.isIdentity=Qo.prototype.ws,Qo.prototype.equals=Qo.prototype.D,Qo.prototype.setTransform=Qo.prototype.setTransform,Qo.prototype.set=Qo.prototype.set;var sA=[];Qo.className="Transform",Qo.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,zt=(y+b)/2,Zt=(x+E)/2,he=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(It+Zt)/2,x=(zt+he)/2,Zt=(Zt+E)/2,he=(he+z)/2;var He=(b+Zt)/2,Le=(x+he)/2;return En.cs(a,y,It,zt,b,x,He,Le,at,ut,ct,yt)||En.cs(He,Le,Zt,he,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 fo(((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,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+It)/2,x=(yt+zt)/2,It=(It+E)/2,zt=(zt+z)/2;var Zt=(b+It)/2,he=(x+zt)/2;En.Dl(a,y,ct,yt,b,x,Zt,he,at,ut),En.Dl(Zt,he,It,zt,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,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+It)/2,x=(yt+zt)/2,It=(It+E)/2,zt=(zt+z)/2;var Zt=(b+It)/2,he=(x+zt)/2;En.Qe(a,y,ct,yt,b,x,Zt,he,at,ut),En.Qe(Zt,he,It,zt,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,zt=(yt+b)/2;return En.jv(a,y,ct,yt,It,zt,nt,ot,at,ut)||En.jv(It,zt,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,zt){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:(zt.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,he=(y+b)/2,He=(x+E)/2,Le=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Zt+He)/2,x=(he+Le)/2,He=(He+E)/2,Le=(Le+z)/2;var Ve=(b+He)/2,qe=(x+Le)/2,rn=1/0,Sn=!1,Wn=0,ir=0;return En.Eo(a,y,Zt,he,b,x,Ve,qe,at,ut,ct,yt,It,zt)&&(a=(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut),a<rn&&(rn=a,Sn=!0,Wn=zt.x,ir=zt.y)),En.Eo(Ve,qe,He,Le,E,z,nt,ot,at,ut,ct,yt,It,zt)&&(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut)<rn&&(Sn=!0,Wn=zt.x,ir=zt.y),Sn&&(zt.x=Wn,zt.y=ir),Sn},Fo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,yt,It){var zt=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 zt;var Zt=((a*ot-y*nt)*(at-ct)-(a-nt)*(at*yt-ut*ct))/It,he=((a*ot-y*nt)*(ut-yt)-(y-ot)*(at*yt-ut*ct))/It;if(Zt>=ct)return zt;if((at>ct?at-ct:ct-at)<(ut>yt?ut-yt:yt-ut)){if(y<ot?(at=y,a=ot):(at=ot,a=y),he<at||he>a)return zt}else if(a<nt?(at=a,a=nt):at=nt,Zt<at||Zt>a)return zt;0<It?zt++:0>It&&zt--}else{Zt=(a+x)/2,he=(y+b)/2;var He=(x+E)/2,Le=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Zt+He)/2,x=(he+Le)/2,He=(He+E)/2,Le=(Le+z)/2;var Ve=(b+He)/2,qe=(x+Le)/2;zt+=En.Fo(a,y,Zt,he,b,x,Ve,qe,at,ut,ct,yt,It),zt+=En.Fo(Ve,qe,He,Le,E,z,nt,ot,at,ut,ct,yt,It)}return zt},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(He,Le){var Ve=(He-a)*(He-a)+(Le-y)*(Le-y);Ve<yt&&(yt=Ve,at.h(He,Le))}var yt=1/0;ct(at.x,at.y);var It=0,zt=0,Zt=0,he=0;if(E<nt?(It=E,zt=nt):(It=nt,zt=E),z<ot?(Zt=E,he=nt):(Zt=nt,he=E),It=(zt-It)/2+ut,ut=(he-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):!!(zs(a,y,x,b,E,z)||zs(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 uo,um:new uo,Mf:new uo,Nf:0,vm:100};En.za=En.AA;function Wi(a){Xo(this),this.l=2,a===void 0&&(a=Wi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Wi.o?this.ee=new Pi:(Wi.V===null&&(Wi.V=new Pi().freeze()),this.ee=Wi.V),this.aq=this.ee.Ja,this.Ip=new si().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=rl,this.gg=$l,this.Rk=this.Sk=NaN,this.Uf=ki}Wi.prototype.copy=function(){var a=new Wi;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===Wi.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},Wi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Wi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Wi.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},Wi.prototype.ka=function(){if(Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Wi.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},Wi.prototype.Xa=function(a){if(!(a instanceof Wi))return!1;if(this.type!==a.type)return this.type===Wi.j&&a.type===Wi.o?aA(this,a):a.type===Wi.j&&this.type===Wi.o?aA(a,this):!1;if(this.type===Wi.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!==Wi.j||y.type!==Wi.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===sa&&En.B(a.endX,y.endX)&&En.B(a.endY,y.endY))))}Wi.ia=function(a){return a.toString()},Wi.prototype.qb=function(a){a.classType===Wi&&(this.type=a)},Wi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Wi.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 Wi.u:var y=new si(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 Wi.F:if(y=new si(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 Wi.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()}},Wi.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},Wi.parse=function(a,y){function x(){return he>=rn-1?!0:ut[he+1].match(Sn)!==null}function b(){return he++,ut[he]}function E(No){var mo=parseFloat(b()),Is=parseFloat(b());He===He.toLowerCase()&&(mo=qe.x+mo,Is=qe.y+Is),No.h(mo,Is)}function z(){return E(qe),qe}function nt(){return E(Ve),Ve}function ot(){var No=Le.toLowerCase();return No!=="c"&&No!=="s"&&No!=="q"&&No!=="t"?qe:new Ie(2*qe.x-Ve.x,2*qe.y-Ve.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=dr();for(var yt="",It=!1,zt=0;zt<ct.length;zt++){var Zt=ct[zt];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,Mr(at)}}var he=-1,He="",Le="";at=new Ie(0,0);var Ve=new Ie(0,0),qe=new Ie(0,0),rn=ut.length;a=jy(null),It=yt=ct=!1,zt=!0,Zt=null;for(var Sn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(he>=rn-1);)if(Le=He,He=b(),He!=="")switch(He.toUpperCase()){case"X":zt=!0,yt=ct=!1;break;case"M":for(Zt=z(),a.mc===null||zt===!0?(Op(a,Zt.x,Zt.y,ct,!yt,It),zt=!1):a.moveTo(Zt.x,Zt.y),at.assign(qe);!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();)qe=new Ie((He===He.toLowerCase()?qe.x:0)+parseFloat(b()),qe.y),a.lineTo(qe.x,qe.y);break;case"V":for(;!x();)qe=new Ie(qe.x,(He===He.toLowerCase()?qe.y:0)+parseFloat(b())),a.lineTo(qe.x,qe.y);break;case"C":for(;!x();){Zt=new Ie,E(Zt);var Wn=nt(),ir=z();Pf(a,Zt.x,Zt.y,Wn.x,Wn.y,ir.x,ir.y)}break;case"S":for(;!x();)Zt=ot(),Wn=nt(),ir=z(),Pf(a,Zt.x,Zt.y,Wn.x,Wn.y,ir.x,ir.y);break;case"Q":for(;!x();)Zt=nt(),Wn=z(),r0(a,Zt.x,Zt.y,Wn.x,Wn.y);break;case"T":for(;!x();)Ve=Zt=ot(),Wn=z(),r0(a,Zt.x,Zt.y,Wn.x,Wn.y);break;case"B":for(;!x();){Zt=parseFloat(b()),Wn=parseFloat(b()),ir=parseFloat(b());var Nr=parseFloat(b()),mr=parseFloat(b()),Ki=mr,Mi=!1;x()||(Ki=parseFloat(b()),x()||(Mi=parseFloat(b())!==0)),He===He.toLowerCase()&&(ir+=qe.x,Nr+=qe.y),a.arcTo(Zt,Wn,ir,Nr,mr,Ki,Mi)}break;case"A":for(;!x();)Zt=Math.abs(parseFloat(b())),Wn=Math.abs(parseFloat(b())),ir=parseFloat(b()),mr=Nr=!1,Mi=Ki=0,Ki=b(),Ki.length===1?(Nr=!!parseFloat(Ki),mr=!!parseFloat(b()),Ki=parseFloat(b())):Ki.length===2?(Nr=!!parseFloat(Ki[0]),mr=!!parseFloat(Ki[1]),Ki=parseFloat(b())):(Nr=!!parseFloat(Ki[0]),mr=!!parseFloat(Ki[1]),Ki=parseFloat(Ki.slice(2))),Mi=parseFloat(b()),He===He.toLowerCase()&&(Ki=qe.x+Ki,Mi=qe.y+Mi),qe.h(Ki,Mi),Lw(a,Zt,Wn,ir,Nr,mr,Ki,Mi);break;case"Z":Fw(a),qe.assign(at);break;case"F":for(Zt="",Wn=1;ut[he+Wn];)if(ut[he+Wn]==="0")It=!0,Wn++;else if(ut[he+Wn].match(/[Uu]/)!==null)Wn++;else if(ut[he+Wn].match(Sn)===null)Wn++;else{Zt=ut[he+Wn];break}Zt.match(/[Mm]/)?ct=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Zt="",Wn=1;ut[he+Wn];)if(ut[he+Wn].match(/[Ff]/)!==null)Wn++;else if(ut[he+Wn].match(Sn)===null)Wn++;else{Zt=ut[he+Wn];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},Wi.Ha=function(a,y){for(var x=a.length,b=Ie.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}Ie.free(b)},Wi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Wi.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},Wi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Wi.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),nc(this,a,!1),bs(a,0,0,0,0),a.freeze()},Wi.prototype.ix=function(){var a=new si;return nc(this,a,!0),a};function nc(a,y,x){switch(a.type){case Wi.j:case Wi.u:case Wi.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 Wi.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 sa: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 Qh:var It=yt.type===wl?rh(yt,z):Zu(yt,z,at,ut),zt=It.length;if(zt===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<zt;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:tn("Unknown Segment type: "+yt.type)}}}break;default:tn("Unknown Geometry type: "+a.type)}}Wi.prototype.normalize=function(){this._isFrozen&&oi(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ie(-a.x,-a.y)},Wi.prototype.offset=function(a,y){return this._isFrozen&&oi(this),this.transform(1,0,0,1,a,y),this},Wi.prototype.scale=function(a,y){return this._isFrozen&&oi(this),this.transform(a,0,0,y,0,0),this},Wi.prototype.rotate=function(a,y,x){this._isFrozen&&oi(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Qo.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Qo.free(b),this},Xt=Wi.prototype,Xt.transform=function(a,y,x,b,E,z){switch(this.type){case Wi.j:case Wi.u:case Wi.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 Wi.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,zt=0;zt<It;zt++){var Zt=yt[zt];switch(Zt.type){case sa: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 Qh: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:tn("Unknown Segment type: "+Zt.type)}}}}return this._isInvalidBounds=!0,this},Xt.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 Wi.j:return En.Yb(x,b,E,z,y,a.x,a.y);case Wi.u:var nt=si.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),si.free(nt),a;case Wi.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 Wi.o:return Ku(this,a,y,!0,!1);default:return!1}};function Ku(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,zt=It.length,Zt=0;Zt<zt;Zt++){var he=It[Zt],He=!he.isEvenOdd;if(he.isFilled){if(b&&he.ca(z,y,x))return!0;var Le=he.segments;at=he.startX,ut=he.startY;for(var Ve=at,qe=ut,rn=Le.s,Sn=0;Sn<=Le.length;Sn++){var Wn=void 0;if(Sn!==Le.length){Wn=rn[Sn];var ir=Wn.type;a=Wn.endX,yt=Wn.endY}else ir=sa,a=Ve,yt=qe;switch(ir){case El:if(Ve=Gu(z,y,nt,y,at,ut,Ve,qe),isNaN(Ve))return!0;ot+=Ve,Ve=a,qe=yt;break;case sa:if(at=Gu(z,y,nt,y,at,ut,a,yt),isNaN(at))return!0;ot+=at;break;case gu:ct=En.Fo(at,ut,Wn.point1X,Wn.point1Y,Wn.point2X,Wn.point2Y,a,yt,nt,y,z,y,.5),ot+=ct;break;case Bh:ct=En.Fo(at,ut,(at+2*Wn.point1X)/3,(ut+2*Wn.point1Y)/3,(2*Wn.point1X+a)/3,(2*Wn.point1Y+yt)/3,a,yt,nt,y,z,y,.5),ot+=ct;break;case wl:case Qh:ir=Wn.type===wl?rh(Wn,he):Zu(Wn,he,at,ut);var Nr=ir.length;if(Nr===0){if(at=Gu(z,y,nt,y,at,ut,Wn.type===wl?Wn.centerX:Wn.endX,Wn.type===wl?Wn.centerY:Wn.endY),isNaN(at))return!0;ot+=at;break}Wn=null;for(var mr=0;mr<Nr;mr++){if(Wn=ir[mr],mr===0){if(ct=Gu(z,y,nt,y,at,ut,Wn[0],Wn[1]),isNaN(ct))return!0;ot+=ct}ct=En.Fo(Wn[0],Wn[1],Wn[2],Wn[3],Wn[4],Wn[5],Wn[6],Wn[7],nt,y,z,y,.5),ot+=ct}Wn!==null&&(a=Wn[6],yt=Wn[7]);break;default:tn("Unknown Segment type: "+Wn.type)}at=a,ut=yt}if(He){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(he.ca(z,y,E?x:x+2))return!0}return!1}function Gu(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 Ch(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}Xt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ie),this.type===Wi.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},Xt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Wi.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},Xt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Wi.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},Xt.xx=function(a){if(this.type===Wi.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=Ie.alloc();return En.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Ie.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Wi.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=Ie.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],zt=x[yt],Zt=It.length,he=0;he<Zt;he+=2){var He=It[he],Le=It[he+1];if(he!==0){En.qh(ut,ct,He,Le,a.x,a.y,b);var Ve=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ve<E&&(E=Ve,nt=ot,nt+=Math.sqrt((b.x-ut)*(b.x-ut)+(b.y-ct)*(b.y-ct))),ot+=zt[(he-2)/2]}ut=He,ct=Le}return Ie.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===Wi.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===Wi.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===Wi.F){var z=new el;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new vs(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=rh(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 sa: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 zt=rh(It,E),Zt=zt.length;if(Zt===0){b.push(It.centerX),b.push(It.centerY),nt=It.centerX,z=It.centerY;break}for(var he=0;he<Zt;he++){var He=zt[he];En.Qe(nt,z,He[2],He[3],He[4],He[5],He[6],He[7],.5,b),nt=He[6],z=He[7]}break;case Qh:if(zt=Zu(It,E,nt,z),Zt=zt.length,he=It.endX,He=It.endY,Zt===0){b.push(he),b.push(He),nt=he,z=He;break}for(he=0;he<Zt;he++)He=zt[he],En.Qe(nt,z,He[2],He[3],He[4],He[5],He[6],He[7],.5,b),nt=He[6],z=He[7];break;default:tn("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(fa(x,b,nt,ot))),x=nt,b=ot}return y}Xt.add=function(a){return this.ee.add(a),this},Xt.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&oi(this),this.fg=new fr(a,y,E,z).freeze(),this.gg=new fr(x,b,nt,ot).freeze(),this},je.Object.defineProperties(Wi.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===Wi.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===Wi.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&&oi(this,a),this.na=a,a===Wi.o?this.ee=new Pi:(Wi.V===null&&(Wi.V=new Pi().freeze()),this.ee=Wi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&oi(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&oi(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&oi(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&oi(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&oi(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&oi(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&oi(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&oi(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Wi.prototype.setSpots=Wi.prototype.pm,Wi.prototype.add=Wi.prototype.add,Wi.prototype.getFractionForPoint=Wi.prototype.xx,Wi.prototype.getPointAndAngleAlongPath=Wi.prototype.Qu,Wi.prototype.getAngleAlongPath=Wi.prototype.wx,Wi.prototype.getPointAlongPath=Wi.prototype.Pu,Wi.prototype.containsPoint=Wi.prototype.ca,Wi.prototype.transform=Wi.prototype.transform,Wi.prototype.rotate=Wi.prototype.rotate,Wi.prototype.scale=Wi.prototype.scale,Wi.prototype.offset=Wi.prototype.offset,Wi.prototype.normalize=Wi.prototype.normalize,Wi.prototype.computeBoundsWithoutOrigin=Wi.prototype.ix,Wi.prototype.equalsApprox=Wi.prototype.Xa,Wi.className="Geometry",Wi.j=new pi(Wi,"Line",0),Wi.u=new pi(Wi,"Rectangle",1),Wi.F=new pi(Wi,"Ellipse",2),Wi.o=new pi(Wi,"Path",3),Wi.V=null,Wi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Wi.className="Geometry",Wi.stringify=Wi.ia,Wi.fillPath=Wi.nb,Wi.parse=Wi.parse,Wi.Line=Wi.j,Wi.Rectangle=Wi.u,Wi.Ellipse=Wi.F,Wi.Path=Wi.o;function el(a,y,x,b,E){Xo(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 Pi,this.sr=this.pl.Ja,this.fw=null}el.prototype.copy=function(){var a=new el;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},Xt=el.prototype,Xt.Xa=function(a){if(!(a instanceof el&&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},Xt.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},Xt.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},Xt.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},Xt.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},Xt.add=function(a){return this.pl.add(a),this},Xt.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 sa: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 Qh:var yt=ct.type===wl?rh(ct,this):Zu(ct,this,b,E),It=yt.length,zt=ct.type===wl?ct.centerX:ct.endX,Zt=ct.type===wl?ct.centerY:ct.endY;if(It===0){if(En.Yb(b,E,zt,Zt,x,a,y))return!0;b=zt,E=Zt;break}for(zt=null,Zt=0;Zt<It;Zt++)if(zt=yt[Zt],Zt===0&&En.Yb(b,E,zt[0],zt[1],x,a,y)||En.cs(zt[0],zt[1],zt[2],zt[3],zt[4],zt[5],zt[6],zt[7],.5,a,y,x))return!0;zt!==null&&(b=zt[6],E=zt[7]);break;default:tn("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},je.Object.defineProperties(el.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&&oi(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&oi(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&oi(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&oi(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&oi(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&oi(this,a),this.pl=a,this._isInvalidBounds=!0}}}),el.prototype.add=el.prototype.add,el.prototype.equalsApprox=el.prototype.Xa,el.className="PathFigure";function vs(a,y,x,b,E,z,nt,ot){Xo(this),a===void 0&&(a=sa),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===Qh?(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}vs.prototype.copy=function(){var a=new vs;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},Xt=vs.prototype,Xt.Xa=function(a){if(!(a instanceof vs)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case El:case sa: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 Qh: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}},Xt.qb=function(a){a.classType===vs&&(this.type=a)},Xt.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 sa: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 Qh: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":"")},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.close=function(){return this.isClosed=!0,this};function rh(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=Qo.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),Wi.Ha(z,nt),Qo.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 Zu(a,y,x,b){function E(he,He,Le,Ve){return(he*Ve<He*Le?-1:1)*Math.acos((he*Le+He*Ve)/(Math.sqrt(he*he+He*He)*Math.sqrt(Le*Le+Ve*Ve)))}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),zt=yt*(x-ut)/2+It*(b-ct)/2;nt=-It*(x-ut)/2+yt*(b-ct)/2;var Zt=zt*zt/(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*zt*zt)/(y*y*nt*nt+z*z*zt*zt)),isNaN(Zt)&&(Zt=0),ot=Zt*y*nt/z,Zt=Zt*-z*zt/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,(zt-ot)/y,(nt-Zt)/z),yt=(zt-ot)/y,ut=(nt-Zt)/z,zt=(-zt-ot)/y,ot=(-nt-Zt)/z,nt=E(yt,ut,zt,ot),zt=(yt*zt+ut*ot)/(Math.sqrt(yt*yt+ut*ut)*Math.sqrt(zt*zt+ot*ot)),-1>=zt?nt=Math.PI:1<=zt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,zt=y>z?z/y:1,y=En.jx(0,0,y>z?y:z,ct,ct+nt,!0),z=Qo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,zt),Wi.Ha(y,z),Qo.free(z),a.ae=y,a.ae}je.Object.defineProperties(vs.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&&oi(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&oi(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&oi(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&oi(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&oi(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&oi(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&oi(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&oi(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&oi(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Li(a,">= zero",vs,"radiusX"),this._isFrozen&&oi(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Li(a,">= zero",vs,"radiusY"),this._isFrozen&&oi(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&oi(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&&oi(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&&oi(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&&oi(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&&oi(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),vs.prototype.equalsApprox=vs.prototype.Xa;var El=new pi(vs,"Move",0),sa=new pi(vs,"Line",1),gu=new pi(vs,"Bezier",2),Bh=new pi(vs,"QuadraticBezier",3),wl=new pi(vs,"Arc",4),Qh=new pi(vs,"SvgArc",4);vs.className="PathSegment",vs.Move=El,vs.Line=sa,vs.Bezier=gu,vs.QuadraticBezier=Bh,vs.Arc=wl,vs.SvgArc=Qh;function Cu(){this.H=null,this.xu=new Ie(0,0).freeze(),this.mt=new Ie(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},je.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},je.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===oh?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===oh?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Cr(this.object)),this.oldValue!==null&&(a+=" old: "+Cr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Cr(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))},je.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===oh&&(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 oh=new pi(Ea,"Transaction",-1),Fa=new pi(Ea,"Property",0),gl=new pi(Ea,"Insert",1),Hl=new pi(Ea,"Remove",2);Ea.className="ChangedEvent",Ea.Transaction=oh,Ea.Property=Fa,Ea.Insert=gl,Ea.Remove=Hl;function Yl(){this.o=new Pi().freeze(),this.xa="",this.j=!1}Yl.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},Yl.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()},Yl.prototype.canUndo=function(){return this.isComplete},Yl.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()}},Yl.prototype.canRedo=function(){return this.isComplete},Yl.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()}},Yl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new wr,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 wr,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()}},je.Object.defineProperties(Yl.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}}}),Yl.prototype.optimize=Yl.prototype.ak,Yl.prototype.redo=Yl.prototype.redo,Yl.prototype.canRedo=Yl.prototype.canRedo,Yl.prototype.undo=Yl.prototype.undo,Yl.prototype.canUndo=Yl.prototype.canUndo,Yl.prototype.clear=Yl.prototype.clear,Yl.className="Transaction";function Et(){this.Pt=new Ci,this.Jd=!1,this.u=new Pi().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Pi().freeze(),this.hl=new Pi,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},Xt=Et.prototype,Xt.Xw=function(a){this.Pt.add(a)},Xt.Rx=function(a){this.Pt.remove(a)},Xt.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},Xt.eb=function(a){return a===void 0&&(a=""),wt(this,!0,a)},Xt.Kf=function(){return wt(this,!1,"")};function wt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&tr("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}Xt.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){tr("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){tr("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=oh,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 Yl);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||tr("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},je.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 bt(){Xo(this),this.H=kh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Cu,this.Zr=-1}bt.prototype.toString=function(){return this.name!==""?this.name+" Tool":nr(this.constructor)},bt.prototype.updateAdornments=function(){},bt.prototype.canStart=function(){return this.isEnabled},bt.prototype.doStart=function(){},bt.prototype.doActivate=function(){this.isActive=!0},bt.prototype.doDeactivate=function(){this.isActive=!1},bt.prototype.doStop=function(){},bt.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},bt.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},bt.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},bt.prototype.doMouseMove=function(){},bt.prototype.doMouseUp=function(){this.stopTool()},bt.prototype.doMouseWheel=function(){},bt.prototype.canStartMultiTouch=function(){return!0},bt.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ie.allocAt(NaN,NaN)),b=y.So(1,Ie.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}Ie.free(x),Ie.free(b)},bt.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ie.allocAt(NaN,NaN)),b=y.So(1,Ie.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 Ie((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}Ie.free(x),Ie.free(b)},bt.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},bt.prototype.doKeyUp=function(){},bt.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},bt.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},bt.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(ws?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||(ws?y.meta:y.control)||y.shift||a.clearSelection()}},bt.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,Ht(a,b,x),b.handled};function Ht(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)}}}bt.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}},bt.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},bt.prototype.doCurrentObjectChanged=function(){},bt.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)}}},bt.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},bt.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Si(function(){x.doWaitAfter(b)},a)},bt.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Fe.clearTimeout(this.Zr),this.Zr=-1},bt.prototype.doWaitAfter=function(){},bt.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ls);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},bt.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},je.Object.defineProperties(bt.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}}}),bt.prototype.startTransaction=bt.prototype.Ea,bt.className="Tool";function ie(){bt.call(this),this.name="ToolManager",this.hb=new Pi,this.ob=new Pi,this.Hb=new Pi,this.F=this.V=850,this.o=new Vi(2,2).ja(),this.Ha=5e3,this.ia=ge,this.u=$e,this.Mp=this.j=null,this.zj=-1}Nn(ie,bt),ie.prototype.initializeStandardTools=function(){},ie.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ls&&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===fn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===gn){y.bubbles=!0;return}if(this.gestureBehavior===fn)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===gn){y.bubbles=!0;return}if(this.gestureBehavior===fn)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 Ls&&(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 Ls)||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 Ls){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 pr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Fe.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Si(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&&(Fe.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ls?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof pr&&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)},je.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 Ls?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 pi(ie,"WheelScroll",0),we=new pi(ie,"WheelZoom",1),be=new pi(ie,"WheelNone",2),$e=new pi(ie,"GestureZoom",3),fn=new pi(ie,"GestureCancel",4),gn=new pi(ie,"GestureNone",5);ie.className="ToolManager",ie.WheelScroll=ge,ie.WheelZoom=we,ie.WheelNone=be,ie.GestureZoom=$e,ie.GestureCancel=fn,ie.GestureNone=gn;function Pn(){bt.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 Ie(NaN,NaN),this.Fr=new Ie,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ci().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Ke;Nn(Pn,bt),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,(ws?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),Je=null,this.isActive=!0,this.tl.set(a.position),gi(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),oc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Je=this,vn=this.diagram,this.doSimulatedDragOut()))};function gi(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Gi?(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 ni,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 ah(cs):this.isGridSnapEnabled?new ah(new Ie(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new ah(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(),Jn(this),Qc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Ke.count){for(var y=Ke,x=y.length,b=0;b<x;b++){var E=y.M(b);Qi(E),di(E),Jn(E),E.diagram.ug()}y.clear()}Qi(this),this.tl.h(NaN,NaN),vn!==null&&(vn.currentCursor=""),Je=vn=null,di(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),jc(a,!0)},Pn.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Jn(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,gr(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function vi(){var a=Je;di(a),Er(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Pn.prototype.doCancel=function(){di(this),Er(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")):Er(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 wr,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 Gi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,gi(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 di(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 Gi&&(x.value.point=new Ie(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=Ie.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ie.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&&yh(b,a,y,this.dragOptions,x)};function Er(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 Gi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Ff(b,-E.x,-E.y)}y.bd()}}function ao(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),kr(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=gr(a,E,b),!a.isActive&&Je===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof Do)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&Je===null||(a.doDragOver(y,b),!a.isActive&&Je===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 Kh(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ls||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 gr(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&&Je===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Ti(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 Ti(a){var y=a.panel;return y!==null?y:a instanceof Vr&&!(a instanceof Do)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function xr(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=Ie.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(Mo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return Ie.free(a),nt}function kr(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=xr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=xr(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)):Ei(E,nt,z,at,ot):Ei(E,null,null,null,null)}}}}Pn.prototype.doDragOver=function(){};function $n(a,y){var x=a.diagram;a.dragsLink&&kr(a,!0),Jn(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;ii(a,E,z),z=Ti(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Je!==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||Je!==null){for(a=si.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof hr&&pe(x,b,a);si.free(a)}}}function ii(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Do||(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 Gi},!0,function(E){return E instanceof Gi},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),oc(a,this.copiedParts),rr(this,this.copiedParts,!1),Qc(a,this.copiedParts)):this.mayMove()?(di(this),rr(this,this.draggedParts,!0)):this.mayDragOut()?(Rn(this,!1),rr(this,this.copiedParts,!1)):di(this),ao(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?(di(this),Rn(this,!0),oc(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,di(this),this.mayMove()&&(rr(this,this.draggedParts,!0),ao(this,a.lastInput.documentPoint))),this.Ym=!0,$n(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(Je===null)return!1;var b=Je.diagram;x instanceof _n||(x=null);var E=vn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Je.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),vn=x,x!==null&&x!==b&&(vi(),E=x.toolManager.findTool("Dragging"),E!==null&&(Ke.contains(E)||Ke.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(Je===null)return!1;var b=vn,E=Je.diagram;if(x===null)return Je.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Je.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;vn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(vi(),Ke.contains(b)||Ke.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 Ie),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=Je,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||(ws?!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 Je},Pn.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Je;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=Je,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Pn.prototype.doSimulatedDragLeave=function(){var a=Je;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Pn.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Je;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Xe(this,y.draggedParts.Lf(),!1,a.firstInput),rr(this,this.copiedParts,!1),ao(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Pn.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Je;if(y!==null){var x=y.diagram;if(y.Ym=!0,di(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Xe(this,y.draggedParts.Lf(),!0,a.lastInput),rr(this,this.copiedParts,!1);var b=new Ci;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),$n(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 Xe(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=si.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,si.free(z),z=a.Fr,nt=new wr,ot=Ie.alloc(),at=y.iterator;at.next();)ut=at.value,ut instanceof Gi&&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))));Ie.free(ot),a.copiedParts=nt,gi(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 Ie},je.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 Je=null,vn=null;Pn.className="DraggingTool",Ke=new Pi,Ro("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ie.prototype.doCancel=function(){Je!==null&&Je.doCancel(),bt.prototype.doCancel.call(this)};function nn(){bt.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Gi,y=new Oo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Oo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new hr,y=new Oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Bs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new hr,y=new Oo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Bs,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 wr,this.Of=this.gj=this.Pf=null}Nn(nn,bt),nn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},nn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Vi.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Vi.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Mo,z=Ie.alloc(),x.location=y.ga(Mo,z),Ie.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},nn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Bs,y.fromSpot=Za,y.toSpot=Za),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},nn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},nn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof 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)}},nn.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},nn.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(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(Mo,Ie.alloc()),ut=x.x-at.x,ct=x.y-at.y;Ie.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},nn.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},nn.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},nn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},nn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof 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},nn.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},nn.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Ci;return b.add(a),Tn(this,x,y,b)};function Tn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Tn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Tn(a,y.labeledLink,x,b))))}nn.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==sc){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===bh)return a===y?a=!0:(b=new Ci,b.add(y),a=Yn(this,b,a,y,x)),!a;if(b===ac)return!Un(this,a,y,x,!1);if(b===LA)return a===y?a=!0:(b=new Ci,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 Yn(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&&Yn(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}je.Object.defineProperties(nn.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),nn.className="LinkingBaseTool";function hn(){nn.call(this),this.name="Linking",this.V={},this.F=null,this.K=mn,this.Xd=null}Nn(hn,nn),hn.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},hn.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===mn||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===mn||x===Zn)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},hn.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)},hn.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()},hn.prototype.doStop=function(){nn.prototype.doStop.call(this),this.startObject=null},hn.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)}}},hn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Gi)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)},hn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},hn.prototype.doNoLink=function(){},je.Object.defineProperties(hn.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 mn=new pi(hn,"Either",0),Qn=new pi(hn,"ForwardsOnly",0),Zn=new pi(hn,"BackwardsOnly",0);hn.className="LinkingTool",hn.Either=mn,hn.ForwardsOnly=Qn,hn.BackwardsOnly=Zn;function ni(){nn.call(this),this.name="Relinking";var a=new Oo;a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Oo,a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new si}Nn(ni,nn),ni.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gi){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)}},ni.prototype.makeAdornment=function(a,y){var x=new Ls;return x.type=ci.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ni.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},ni.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 Ls&&x.adornedPart instanceof Gi))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=Lo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Lo),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},ni.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=Zh),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}},ni.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()},ni.prototype.doStop=function(){nn.prototype.doStop.call(this),this.handle=null},ni.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()}}},ni.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},ni.prototype.doNoRelink=function(){};function Ei(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)}je.Object.defineProperties(ni.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 Ls))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ni.className="RelinkingTool",Ro("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Ro("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function li(){bt.call(this),this.name="LinkReshaping";var a=new Oo;a.figure="Rectangle",a.desiredSize=Js,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Oo,a.figure="Diamond",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ie,this.Yq=new Pi}Nn(li,bt),li.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Zi},li.prototype.om=function(a,y){a.reshapingBehavior=y},li.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Gi){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)}},li.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ls,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,br),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,br),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},li.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},li.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},li.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},li.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 Gi){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}}},li.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},li.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},li.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},li.prototype.getResegmentingPoint=function(){return this.handle.ga(Mo)},li.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},li.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&&(Xi(this,nt,b,E,z,!0)||Xi(this,nt,b,E,z,!1))){var ot=y.points.copy();Xi(this,nt,b,E,z,!0)?(ot.cd(x-2,new Ie(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new Ie(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new Ie((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new Ie((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&&(Xi(this,b,E,z,nt,!0)||Xi(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Xi(this,b,E,z,nt,!0)?(ot.cd(x-1,new Ie(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Ie(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Ie((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Ie((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Ie.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()),Ie.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Xi(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}li.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===br?(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===br?(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(Mo,Ie.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ie.alloc()),y.L(0,b.x,b.y),Ie.free(z),Ie.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(Mo,Ie.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ie.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ie.free(x),Ie.free(a));y.zf()},li.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case io:return a;case br:return new Ie(y.i(x).x,a.y);case Ar:return new Ie(a.x,y.i(x).y);default:case Zi:return y.i(x)}},je.Object.defineProperties(li.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 Ls))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}}}),li.prototype.setReshapingBehavior=li.prototype.om,li.prototype.getReshapingBehavior=li.prototype.Ru;var Zi=new pi(li,"None",0),Ar=new pi(li,"Horizontal",1),br=new pi(li,"Vertical",2),io=new pi(li,"All",3);li.className="LinkReshapingTool",li.None=Zi,li.Horizontal=Ar,li.Vertical=br,li.All=io,Ro("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ii(){bt.call(this),this.name="Resizing",this.o=new Vi(1,1).freeze(),this.j=new Vi(9999,9999).freeze(),this.yg=new Vi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Oo;a.alignmentFocus=Mo,a.figure="Rectangle",a.desiredSize=Js,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ie,this.Dw=new Vi,this.Tn=new Ie,this.rt=new Vi(0,0),this.qt=new Vi(1/0,1/0),this.pt=new Vi(1,1)}Nn(Ii,bt),Ii.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Gi)){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)}},Ii.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ls,y.type=ci.Spot,y.locationSpot=Mo;var x=new Vh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,rl)),y.add(this.makeHandle(a,ou)),y.add(this.makeHandle(a,$l)),y.add(this.makeHandle(a,Ja)),y.add(this.makeHandle(a,za)),y.add(this.makeHandle(a,tl)),y.add(this.makeHandle(a,Ol)),y.add(this.makeHandle(a,Aa))}else if(ru(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ii.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ii.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=Mo),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)}},Ii.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},Ii.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))},Ii.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ii.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ii.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ii.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,Ie.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ie.free(E)}},Ii.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,Ie.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ie.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ii.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 Do){var b=new Pi;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()}},Ii.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Mo);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=Ie.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))),Ie.free(It),a},Ii.prototype.computeReshape=function(){var a=bi;return this.adornedObject instanceof Oo&&(a=Jg(this.adornedObject)),!(a===yr||this.diagram.lastInput.shift)},Ii.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},Ii.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},Ii.prototype.computeCellSize=function(){var a=new Vi(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},je.Object.defineProperties(Ii.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 Ls))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 Ls)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}}}),Ii.className="ResizingTool",Ro("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Xn(){bt.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ie,this.ue=null;var a=new Oo;a.figure="Ellipse",a.desiredSize=ua,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ie(NaN,NaN),this.u=0,this.F=50}Nn(Xn,bt),Xn.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)}},Xn.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ls,y.type=ci.Position,y.locationSpot=Mo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ru(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Xn.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},Xn.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)},Xn.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(Mo)},Xn.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)},Xn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ie(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Xn.prototype.stopTransaction=function(){var a=this.diagram,y=bt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Xn.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Xn.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Xn.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()},Xn.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()}},Xn.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},je.Object.defineProperties(Xn.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 Ls))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 Ls)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}}}),Xn.className="RotatingTool",Ro("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Bo(){bt.call(this),this.name="ClickSelecting"}Nn(Bo,bt),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(){bt.call(this),this.name="Action",this.pk=null}Nn(Pr,bt),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(){bt.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ie(0,0)}Nn(sr,bt),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 Vr)x.Zc()&&(ru(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=Ie.allocAt(a.x,a.y);this.isGridSnapEnabled&&Hc(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ie.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},je.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(){bt.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Vr;a.layerName="Tool",a.selectable=!1;var y=new Oo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Nn(ar,bt),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=Vi.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Vi.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 si(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),ws?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 Pi,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)}},je.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 qi(){bt.call(this),this.name="Panning",this.Xt=new Ie,this.xy=new Ie,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Fe.document,"scroll",a.Kw,!1),a.stopTool()}}Nn(qi,bt),qi.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())},qi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Fe.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},qi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},qi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},qi.prototype.doMouseMove=function(){this.move()},qi.prototype.doMouseUp=function(){this.move(),this.stopTool()},qi.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)}},je.Object.defineProperties(qi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),qi.className="PanningTool",Ro("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Ro("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Ro("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Ro("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Ro("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function pr(){this.F=this.u=this.j=this.o=null}je.Object.defineProperties(pr.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}}}),pr.className="HTMLInfo";function Wr(a,y,x){this.text=a,this.hx=y,this.visible=x}Wr.className="ContextMenuButtonInfo";function ho(){bt.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ie,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Nn(ho,bt);function po(a){var y=new pr;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},is=y,a.tu=function(){a.stopTool()},y=Di("div");var x=Di("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=Di("style");Fe.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",Ur,!1),b.addEventListener(y,"selectstart",Ur,!1),b.addEventListener(x,"contextmenu",Ur,!1)),y.className="goCXforeground",x.className="goCXbackground",Fe.document.body&&(Fe.document.body.appendChild(y),Fe.document.body.appendChild(x)),Vo=y,wa=x,So=!0}function Ur(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 pn?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(bt.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ls){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&jo(this)},ho.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ls){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}jo(this)};function jo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof pr||(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=is,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof pn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ls&&!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 Ls){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 pr&&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 Ls?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof pr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function qo(a){var y=new Pi;return y.add(new Wr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Wr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Wr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Wr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Wr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Wr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Wr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Wr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Wr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Wr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Wr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Wr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Wr("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=qo(this)),Vo.innerHTML="",wa.addEventListener("pointerdown",this.tu,!1);var y=this,x=Di("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=Di("li"),z.className="goCXli";var nt=Di("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",wa.style.display="block"},ho.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===is){Vo.style.display="none",wa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(wa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},je.Object.defineProperties(ho.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ls?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return So===!1&&is===null&&ms&&po(this),is},set:function(a){a===null&&(So=!0),is=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var is=null,So=!1,wa=null,Vo=null;ho.className="ContextMenuTool",Ro("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function rs(){bt.call(this),this.name="TextEditing",this.Zh=new aa,this.ia=null,this.V=es,this.vj=null,this.qa=ro,this.u=1,this.F=!0,this.o=null,this.j=new pr,this.kt=null,Cs(this,this.j)}Nn(rs,bt);function Cs(a,y){if(ms){var x=Di("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=ha),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 aa&&z instanceof rs)if(z.state===Ql)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Mo),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||Es&&Es!==this&&(Es.acceptText($s),Es&&Es!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof aa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===es&&!y.isSelected||this.starting===Ts&&2>a.lastInput.clickCount)):!1},rs.prototype.doStart=function(){Es=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 aa&&(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 si(this.textBlock.ga(rl),this.textBlock.ga($l));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($s)},rs.prototype.acceptText=function(a){switch(a){case $s:this.qa===Fl?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Wo||this.qa===Ql||this.qa===ha)&&(this.qa=Us,qs(this));break;case Ua:case Go:case Ko:(Go!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Wo||this.qa===Ql||this.qa===ha)&&(this.qa=Us,qs(this))}};function qs(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=Ql,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(){Es=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},je.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 Ua=new pi(rs,"LostFocus",0),$s=new pi(rs,"MouseDown",1),Ko=new pi(rs,"Tab",2),Go=new pi(rs,"Enter",3),ds=new pi(rs,"SingleClick",0),es=new pi(rs,"SingleClickSelected",1),Ts=new pi(rs,"DoubleClick",2),ro=new pi(rs,"StateNone",0),Wo=new pi(rs,"StateActive",1),ha=new pi(rs,"StateEditing",2),Us=new pi(rs,"StateValidating",3),Ql=new pi(rs,"StateInvalid",4),Fl=new pi(rs,"StateValidated",5),Es=null;rs.className="TextEditingTool",rs.LostFocus=Ua,rs.MouseDown=$s,rs.Tab=Ko,rs.Enter=Go,rs.SingleClick=ds,rs.SingleClickSelected=es,rs.DoubleClick=Ts,rs.StateNone=ro,rs.StateActive=Wo,rs.StateEditing=ha,rs.StateValidating=Us,rs.StateInvalid=Ql,rs.StateValidated=Fl,Ro("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function da(a){Uu||(pu(),Uu=!0),this.H=kh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Xu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ci,this.ce=new _a,this.ce.Yd=this,this.Ei=new Ci,this.pu=new Ci,this.Sr=new Ci,this.pr=new Ci,a&&Object.assign(this,a)}da.prototype.Xe=function(a){this.H=a},da.prototype.canStart=function(){return!0};function Dl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Ul(a.H),a.zb=!0)}function Ao(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Xu?(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===$u&&y.vc.clear(),a.Qw=!!(a.Pk===dh&&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!==Ka&&b!==null&&(delete b.start.scale,delete b.end.scale),Fe.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Lu(x),Kd(x),a.zb=!1,y.start(),y.bc&&(ka(a),x.Ya(),Cc(y,0),vu(x,!0),Xa(a),x.R("AnimationStarting",a)))}))}}function Ra(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Kl(a,y,x,b){a.isTicking||Ra(a)||y instanceof Gi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Xt=da.prototype,Xt.fv=function(a){return this.ce.fv(a)},Xt.Xu=function(a){return this.ce.Xu(a)};function ta(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 pn&&at.diagram!==null||at instanceof _n){ot=!0;break t}}ot=!1}ot?ph(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ka(E),vu(E.H),Xa(E)),Fe.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Fe.requestAnimationFrame(function(){x()}))}function ca(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ka(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 Xa(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Xt.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)},Xt.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))},Xt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ta(this,a))},Xt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),jl(this.ce,y,"position",y.position,y.position),Ta(this,a))};function al(a,y,x){!a.zb||y.D(x)||Ra(a)||(a.H.pi||(y=x.copy()),jl(a.ce,a.H,"position",y,x))}function Rs(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ta(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 Ie(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new wr;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 Ie(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 Ie(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 Ie(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 Ie(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 si(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)}),au=y}je.Object.defineProperties(da.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&&Li(a,">= 1",da,"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}}}),da.prototype.stopAnimation=da.prototype.Cc;var au=null,Uu=!1,Xu=new pi(da,"Default",1),dh=new pi(da,"AnimateLocations",2),$u=new pi(da,"None",3);da.className="AnimationManager",da.defineAnimationEffect=function(a,y){Uu||(pu(),Uu=!0),au.add(a,y)},da.Default=Xu,da.AnimateLocations=dh,da.None=$u;function _a(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=mh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=cs,this.vc=new wr,this.Tt=new wr,this.yl=new Ci,this.Ut=new Ci,this.dw=pc,a&&Object.assign(this,a)}_a.prototype.suspend=function(){this.Xk=!0},_a.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ph(this,!0),ka(this.Yd),vu(this.H),Xa(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}Xt=_a.prototype,Xt.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 pn&&(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===Xu&&this===y.defaultAnimation&&(this.Lp=ic,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fd),ka(y),this.yl.each(function(b){b.data=null,a.add(b)}),Xa(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ta(y,this),this)},Xt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Xt.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 pn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Vr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return jl(this,a,y,x,b,E),this};function jl(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]=nl(b)),ut[x]=nl(E)}else at={},ut={},at[x]=nl(b),ut[x]=nl(E),ot=at.position,y instanceof pn&&ot instanceof Ie&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ut.position),ot=new rc(at,ut,z),nt.add(y,ot);nt=at[x],nt instanceof Ie&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Vr?ot.Ku.location=nl(y.location):z&&(ot.Ku[x]=nl(b))}function nl(a){return a instanceof Ie||a instanceof Vi?a.copy():a}Xt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Xt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ph(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),ka(x),Cc(a,E),vu(a.H,!0),Xa(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 pn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=au,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)}}}Xt.stop=function(){return this.bc?(this.Ml(!0),this):this},Xt.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,ka(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=au;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 Vr&&(nt.location=ct.location),ot.nv&&nt instanceof Vr&&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),Xa(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())}},Xt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Do&&(b=y.placeholder),b!==null?(x=b.ga(rl),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ie(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Do)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Cj(b,y)},Xt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Do&&(x=y.placeholder),x!==null){var b=x.ga(rl);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 Do)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Aj(b,y)}},Xt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},je.Object.defineProperties(_a.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Li(a,">= 1",_a,"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:tn("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}}}),_a.prototype.getTemporaryState=_a.prototype.Ez,_a.prototype.stop=_a.prototype.stop,_a.prototype.add=_a.prototype.add,_a.prototype.addTemporaryPart=_a.prototype.Iy;function mh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function ic(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}_a.className="Animation",_a.EaseLinear=function(a,y,x,b){return x*a/b+y},_a.EaseInOutQuad=mh,_a.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},_a.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},_a.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},_a.EaseOutExpo=ic;function rc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}rc.className="AnimationState";function vh(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=Ba))}vh.prototype.copy=function(){var a=new vh(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 ga(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))}je.Object.defineProperties(vh.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 pi(vh,"Default",1),Ba=new pi(vh,"Immediate",2),pl=new pi(vh,"Bundled",3);vh.className="AnimationTrigger",vh.Default=Sl,vh.Immediate=Ba,vh.Bundled=pl;function pa(a){Xo(this),this.H=null,this.Pa=new Pi,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)}Xt=pa.prototype,Xt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Eo(x)}a.clear(),this.Zq.length=0},Xt.Xe=function(a){this.H=a},Xt.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 Do?E++:at instanceof hr?b++:at instanceof Gi?z++:at instanceof Ls?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&&xs(b)&&(ot+=" #"+xs(b)),x instanceof hr?ot+=" "+Cr(b):x instanceof Gi&&(ot+=" "+Cr(x.fromNode)+" "+Cr(x.toNode));return y+" "+this.Pa.count+": "+ot},Xt.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=Ie.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||eg(ot)!==!1)&&ot.isVisible()&&(E.assign(a),xo(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Ie.free(E),ot}return Ie.free(E),null},Xt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Pi||b instanceof Ci||(b=new Ci),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Ie.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||eg(at)!==!1)&&at.isVisible()){z.assign(a),xo(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 Ie.free(z),b},Xt.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 Pi||E instanceof Ci||(E=new Ci),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},Xt.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},Xt.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 Pi||E instanceof Ci)&&(z=E),E=!0),z instanceof Pi||z instanceof Ci||(z=new Ci),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=Ie.alloc(),at=Ie.alloc(),ut=this.Pa.s,ct=ut.length;ct--;){var yt=ut[ct];if((nt!==!0||eg(yt)!==!1)&&yt.isVisible()){ot.assign(a),xo(ot,yt.oe),at.h(a.x+y,a.y),xo(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 Ie.free(ot),Ie.free(at),z},Xt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=dr();for(var E=dr(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Gi){if(nt.fd===!1)continue}else if(nt instanceof Ls&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Ms(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]);Mr(a),Mr(E)}}};function lu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Xt.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=lu(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,ot=si.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(si.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=lu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ut=si.alloc(),ct=0;ct<z;ct++){var yt=E[ct];b.contains(yt)&&a.Oj(y,yt,x,ot,at,ut,!1)}si.free(ut),y.globalAlpha=nt}}}Xt.Oj=function(a,y,x,b,E,z,nt){if(nt&&!eg(y))a.Hs(y);else{if(b!==null&&y instanceof Gi&&(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 eh?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&&(Ca(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Ca(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),Ca(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))}},Xt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Fa,a,this,y,x,b,E)},Xt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Eo(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)),zh(this,a,y),a},Xt.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,Eo(y),a};function zh(a,y,x){if(y=Ih(a,y,x),x instanceof Do&&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&&zh(a,-1,y)}x.svg!==null&&x.svg.remove()}function Ih(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}je.Object.defineProperties(pa.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===""&&tn("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&tn("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)&&Li(a,"0 <= value <= 1",pa,"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))}}}),pa.prototype.findObjectsNear=pa.prototype.og,pa.prototype.findObjectsIn=pa.prototype.Cf,pa.prototype.findObjectsAt=pa.prototype.ji,pa.prototype.findObjectAt=pa.prototype.ic,pa.className="Layer";function _n(a,y){if(qu||(Wl(),qu=!0),Xo(this),kh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ms){var x=this,b=function(){x.removeEventListener(Fe.document,"DOMContentLoaded",b,!1),x.setRTL()};Fe.document.body!==null?this.setRTL():x.addEventListener(Fe.document,"DOMContentLoaded",b,!1)}this.ol=null,Pa.add("Model",Ws);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 Wa,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"||Fe.Element&&a instanceof Element?xd(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Ru,kh;function lA(a){a.Yd=new da,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Pi,a.pj=new wr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ie(NaN,NaN).freeze(),a.du=new Ie(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ie(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Qo,a.zu=new Ie(NaN,NaN).freeze(),a.ut=new si(NaN,NaN,NaN,NaN).freeze(),a.rj=new Qr(0,0,0,0).freeze(),a.sj=pc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ka,a.zk=Fs,a.Fg=Ka,a.pq=Fs,a.yt=rl,a.Bt=rl,a.Fc=!0,a.pn=!1,a.De=new Ci,a.Eh=new wr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Qr(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 Ci,a.Ht=!0,a.uu=Gc,a.pw=!1,a.wu=sc,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 wr,a.Xn=new Pi,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 Qr(5).freeze(),a.Hw=new Ci().freeze(),a.Nt=999999999,a.nw=new Ci().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 Ci,a.ow=new Ci,a.Xh=null,a.aw=new Vi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ie,bounds:new si,Py:new Vi,bA:new Vi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new si(NaN,NaN,NaN,NaN).freeze(),a.wo=new Vi(NaN,NaN).freeze(),a.Sp=new si(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new wr;var y=new hr,x=new aa;x.bind(new Jl("text","",Cr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new hr,x=new aa,x.stroke="brown",x.bind(new Jl("text","",Cr)),y.add(x),a.Lg.add("Comment",y),y=new hr,y.selectable=!1,y.avoidable=!1,x=new Oo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Vi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new wr,y=new Do,y.selectionObjectName="GROUPPANEL",y.type=ci.Vertical,x=new aa,x.font="bold 12pt sans-serif",x.bind(new Jl("text","",Cr)),y.add(x),x=new ci(ci.Auto),x.name="GROUPPANEL";var b=new Oo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Vh,b.padding=new Qr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new wr,y=new Gi,x=new Oo,x.isPanelMain=!0,y.add(x),x=new Oo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Gi,x=new Oo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ls,y.type=ci.Auto,x=new Oo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Vh,x.margin=new Qr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ls,y.type=ci.Link,x=new Oo,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 Ws,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=fl,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 Ie,a.zy=500,a.wp=new Ie,a.wq=!1}_n.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),nu=null,iu="",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 Ci().freeze(),a.nw=new Ci().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(),Zo=[],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),Th(this),this.Wg=!0,id(this),this.layout=new Wa,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=Fe.document.body);var y=Di("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=Fe.document.body);var y=0;if(ms){var x=ba;y=Ru,x===null&&(x=ba=Di("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Ru=Di("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||ws||(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(ms){if(y!=null||tn("Diagram setup requires an argument DIV."),a.Ka!==null&&tn("Diagram has already completed setup."),typeof y=="string"?a.Ka=Fe.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:tn("No DIV or DIV id supplied: "+y),a.Ka===null&&tn("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&tn("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Fe.ResizeObserver){var x=Hn(function(){a.$b()},250);a.ol=new Fe.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Fe.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=Fe.go;var E=new Tu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Fe.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,ms){E=Di("div");var z=Di("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=Hn(function(){a.Yh=null,a.N()},300),a.Ov=Hn(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(),Ju(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():Ju(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=Fe.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(),Ju(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=Fe.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(),Ju(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"+Oh.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(Fe,"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(),to&&to.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}_n.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Fe.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=Fe.scrollX||Fe.pageXOffset,y=Fe.scrollY||Fe.pageYOffset;this.ta.focus(),Fe.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===Ka&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function id(a){var y=new pa;y.name="Background",a.Al(y),y=new pa,y.name="",a.Al(y),y=new pa,y.name="Foreground",a.Al(y),y=new pa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new pa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new pa,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 Oo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Oo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Oo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Oo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Oo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Oo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Vr,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,zt=E.height,Zt=E.right,he=E.bottom;E=this.scale;var He=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":He=He+a.scrollWidth-a.clientWidth;break;case"reverse":He=a.scrollWidth-He-a.clientWidth}var Le=He;It<at||zt<ut?(He=Ie.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Le&&(He.x=Le/E+nt,this.ju=Le),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(He.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=He,Ie.free(He),this.Ee=this.qr=!1):(He=Ie.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<yt&&(this.position=He.h(Le+nt,this.position.y)),ct>Zt&&(this.position=He.h(-(y.scrollWidth-this.Aa)+Le-this.Aa/E+ct,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=He.h(this.position.x,a.scrollTop+ot)),z>he&&(this.position=He.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ie.free(He),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ct=b.right,Zt=E.right,z=b.bottom,he=E.bottom,nt=b.x,yt=E.x,ot=b.y,b=E.y,It>=at&&nt>=yt&&ct<=Zt&&(x.style.width="1px"),zt>=ut&&ot>=b&&z<=he&&(x.style.height="1px"))}},_n.prototype.computeBounds=function(a){return a===void 0&&(a=new si),Ul(this),Yu(this,a)};function Yu(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(ui(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Gi||(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 Gi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new si(NaN,NaN,0,0):x};function sh(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=Ie.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=si.allocAt(0,0,b.width,b.height);var E=Ie.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,si.free(b),Ie.free(E),Ie.free(x)}x=a.yh,y&&a.Fg!==Ka&&(x=a.Fg);var z=x!==Ka?Wu(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()?Mo: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 si(x,b,E,nt),z,y,!1)}}function Wu(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===zl?(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=Wu(this,zl),a!==pc&&(sh(this,!1),BA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Xt=_n.prototype,Xt.BA=function(a,y){y===void 0&&(y=zl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===zl||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 Ie(a.x,a.y)}},Xt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ie(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))},Xt.zz=function(a){if(a instanceof pn){this.eq=a;var y=Ie.alloc();this.fq=this.op(a.ga(rl,y)),Ie.free(y)}else this.eq=null,this.fq=fl};function BA(a,y,x,b,E,z){var nt=Ie.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ut=Ie.alloc();ut=a.eq.ga(rl,ut),ot=ut.x-a.fq.x/a.scale,at=ut.y-a.fq.y/a.scale,E=Za,Ie.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),al(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Th(a),Ie.free(nt)}Xt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Kh(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Vr)return a}else if(a=Kh(this,a,function(x){return x.part}),a instanceof Vr)return a;return null},Xt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Ul(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 Kh(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Ul(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}Xt.lz=function(a,y,x){return y===void 0&&(y=!0),na(this,a,function(b){return b.part},y?function(b){return b instanceof Vr&&b.canSelect()}:null,x)};function na(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Pi||E instanceof Ci||(E=new Ci),Ul(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Xt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Pi||b instanceof Ci||(b=new Ci),Ul(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Xt.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 Vr&&(!x||E.canSelect())},y,b)},Xt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Pi||E instanceof Ci||(E=new Ci),Ul(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Xt.Nu=function(a,y,x,b,E,z){var nt=new Ci;Ul(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 Pi||E instanceof Ci||(E=new Ci),Ul(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Xt.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 Vr&&(!b||z.canSelect())},x,E)},Xt.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 Pi||E instanceof Ci)&&(z=E),E=!0),z instanceof Pi||z instanceof Ci||(z=new Ci),Ul(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 Pi||E instanceof Ci)&&(z=E),E=!0),z instanceof Pi||z instanceof Ci||(z=new Ci),Ul(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),ws&&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,ws&&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 Ju(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(),Ju(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(),Ju(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(),Ju(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),Ju(x,a)},_n.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ie(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?xo(new Ie(y,a),this.Ab):new Ie(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=Ie.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Ie.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||Ul(a),a.Va()}_n.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Xt=_n.prototype,Xt.Pz=function(){return this.kg},Xt.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 Ie(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Si(function(){b.ld=!1,Dl(y,"Model"),a(b)},1)},Xt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Fe.requestAnimationFrame(function(){y.kg&&y.bd()})}},Xt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),vu(this))};function uu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Bc(a)||(y&&Ul(a),x&&sh(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];Il(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),uu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Ul(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,Ul(a),a.ou||Vd(a),uu(a,!0,!1),nt=!1,z?(x=si.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"),uu(a,!0,!1),si.free(x)):x.Ok&&x.Qw&&(a.Fg!==Ka?a.scale=Wu(a,a.Fg):a.yh!==Ka?a.scale=Wu(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),sh(a,!0)),z&&nt&&a.eb("Initial Layout"),Ul(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function _c(a){if(a.Fg!==Ka)a.scale=Wu(a,a.Fg);else if(a.yh!==Ka)a.scale=Wu(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}sh(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 Ul(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 Ci,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Do&&b.U&65536&&(b.U=b.U^65536)})}}Xt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Do||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Do&&x.isVisible()&&Oa(this,x);for(a.reset();a.next();)x=a.value,x instanceof Gi&&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 Ls&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Oa(a,y){for(var x=dr(),b=dr(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Do?(wh(z)||th(z)||tg(z))&&Oa(a,z):z instanceof Gi?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(Mr(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();Mr(b)}Xt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Xt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&tn("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Ph(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?Dh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Qo.prototype.Cd=Qo.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Ph(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?Dh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Qo.prototype.Cd=Qo.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=to&&to.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 $a(a,y,x,b,E,z,nt,ot,at,ut){if(a.Ka!==null){a.ta===null&&tn("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ut===void 0&&(ut=!1),Ph(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 zt=new si(z.x,z.y,b.width/E,b.height/E),Zt=zt.copy();Zt.Co(x),Pc(a,Zt),Ul(a),a.Fd(yt,It,a,zt),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 he=a.Mb;y.scale(he,he);var He=Qo.alloc();He.reset(),He.translate(x.left,x.top),He.scale(E),z.x===0&&z.y===0||He.translate(-z.x,-z.y),y.setTransform(He.m11,He.m12,He.m21,He.m22,He.dx,He.dy),y.yc(),y instanceof eh&&Gf(y,He.m11,He.m12,He.m21,He.m22,He.dx,He.dy),Qo.free(He),Mu(a,y),y.globalAlpha=a.pb;var Le=a.Qj("Grid");if(nt){var Ve=new Ci,qe=nt.iterator;for(qe.reset();qe.next();){var rn=qe.value;rn instanceof Vr&&(ut||rn.layer!==Le)&&(rn.Gj(),Ve.add(rn))}for(ut=0;ut<It;ut++)Fu(yt[ut],y,a,Ve,at);Ve.each(function(Wn){return Wn.Gj()})}else for(Ve=0;Ve<It;Ve++){var Sn=yt[Ve];Sn===Le?ut&&Sn.gc(y,a,!0):Sn.gc(y,a,at)}a.$i=!1,a.Yf&&Dh(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 eh&&(a.ib.Nj.PA(),a.redraw())}}}Xt.Gf=function(a){return this.Rg[a]},Xt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Xt.Tx=function(){this.Rg=new uo,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ws||Po),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))}Xt.Ql=function(a){return this.on[a]},Xt.sA=function(a,y){this.on[a]=y},Xt.Sx=function(){this.on=new uo,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Xt.set=function(a){return Object.assign(this,a),this},Xt.Du=function(a){return this.nm(a)},Xt.nm=function(a){return Ah(this,a),this};function Ah(a,y){var x=a instanceof ci,b=a instanceof _n,E;for(E in y){E===""&&tn("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):tn("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!no(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&no(a.toolManager,nt))z=a.toolManager;else if(b&&FA(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Or&&nt==="Changed"){a.Pe(y[nt]);continue}else tn('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof pn&&z.Vw(nt)}}Xt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new wr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Xt.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=si.alloc(),bA(this,this.computeBounds(b)),si.free(b)),b=this.ta,b===null||b instanceof _u)))){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),zt=Math.floor(ot-yt);a.drawImage(b.Oa,ct,yt,It,zt,0,0,It,zt),Dh(this.Yf,this)&&a.clearRect(0,0,at,ut),b=dr(),a=dr(),zt=Math.abs(z),It=Math.abs(y);var Zt=ct===0?0:E-zt;ct=Ie.allocAt(Zt,0),zt=Ie.allocAt(zt+Zt,ot),a.push(new si(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)));var he=this.Ab;if(he.reset(),he.scale(nt,nt),this.Ca!==1&&he.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&he.translate(-nt.x,-nt.y),xo(ct,he),xo(zt,he),b.push(new si(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Zt=yt===0?0:ot-It,ct.h(0,Zt),zt.h(E,It+Zt),a.push(new si(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),xo(ct,he),xo(zt,he),b.push(new si(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Dh(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ct.h(E,ot),zt.h(at+E,ut+ot),a.push(new si(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),xo(ct,he),xo(zt,he),b.push(new si(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)))),Ie.free(ct),Ie.free(zt),uu(this,!1,!0),this.Ka===null&&tn("No div specified"),this.ta===null&&tn("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Ph(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=lu(nt,E),yt=nt.Zq,yt.length=0,ct=this.scale,It=si.alloc(),zt=nt.Pa.s,he=zt.length,Zt=at.length;for(var He=0;He<he;He++){var Le=zt[He],Ve=Ng(Le,Le.actualBounds);t:{for(var qe=2/ct,rn=4/ct,Sn=0;Sn<Zt;Sn++){var Wn=at[Sn];if(Wn.width!==0&&Wn.height!==0&&Ve.Vu(Wn.x-qe,Wn.y-qe,Wn.width+rn,Wn.height+rn)){Ve=!0;break t}}Ve=!1}Ve&&nt.Oj(E,Le,this,yt,ct,It,!0)}si.free(It),E.globalAlpha=ut}E.restore(),E.Vc(!0),this.Yf&&Dh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Mr(b),Mr(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 Ph(a){a.pn!==!1&&(a.pn=!1,Zd(a,a.Aa,a.ya))}function Zd(a,y,x){Th(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,zt=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,Th(a)),!a.hf||!a.viewportBounds.w())return!0;var Zt=a.ku,he=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var He=a.documentBounds,Le=0,Ve=0,qe=0,rn=0,Sn=ct.width,Wn=ct.height,ir=a.rj;a.contentAlignment.sb()?(He.width>Sn&&(Le=ir.left,Ve=ir.right),He.height>Wn&&(qe=ir.top,rn=ir.bottom)):(Le=ir.left,Ve=ir.right,qe=ir.top,rn=ir.bottom);var Nr=He.width+Le+Ve,mr=He.height+qe+rn;ir=a.scale;var Ki=Nr>at/ir,Mi=mr>ut/ir;if(!(z||a.gf||a.Be||Ki||Mi))return!0;Le=He.x-Le,at=ct.x,Ve=He.right+Ve,ut=ct.right+nt,qe=He.y-qe;var No=ct.y;He=He.bottom+rn,ct=ct.bottom+ot;var mo="1px";if(rn="1px",a.scrollMode===pc&&(Ki||Mi)&&(Ki&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ki=1,Le+1<at&&(Ki=Math.max((at-Le)*ir+a.Aa,Ki)),Ve>ut+1&&(Ki=Math.max((Ve-ut)*ir+a.Aa,Ki)),Sn+nt+1<Nr&&(Ki=Math.max((Nr-Sn)*ir+a.Aa,Ki)),mo=Ki.toString()+"px"),Mi&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Ki=1,qe+1<No&&(Ki=Math.max((No-qe)*ir+a.ya,Ki)),He>ct+1&&(Ki=Math.max((He-ct)*ir+a.ya,Ki)),Wn+ot+1<mr&&(Ki=Math.max((mr-Wn)*ir+a.ya,Ki)),rn=Ki.toString()+"px")),Ki=mo!=="1px",Mi=rn!=="1px",Ki&&Mi||!Ki&&!Mi||(Mi&&(ut-=a.Db),Ki&&(ct-=a.Db),Nr<Sn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Le+1<at&&(nt=Math.max((at-Le)*ir+a.Aa,nt)),Ve>ut+1&&(nt=Math.max((Ve-ut)*ir+a.Aa,nt)),Sn+1<Nr&&(nt=Math.max((Nr-Sn)*ir+a.Aa,nt)),mo=nt.toString()+"px"),Ki=mo!=="1px",nt=a.ya,Ki!==a.Be&&(nt=Ki?a.ya-a.Db:a.ya+a.Db),mr<Wn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,qe+1<No&&(ot=Math.max((No-qe)*ir+nt,ot)),He>ct+1&&(ot=Math.max((He-ct)*ir+nt,ot)),Wn+1<mr&&(ot=Math.max((mr-Wn)*ir+nt,ot)),rn=ot.toString()+"px"),Mi=rn!=="1px"),a.qr&&Ki===a.Be&&Mi===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Ki!==a.Be&&(mo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Ki,he.style.width=mo,Mi!==a.gf&&(rn==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Ie.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)),Ie.free(ot))),z&&Th(a),a.gf=Mi,he.style.height=rn,a.gu=!0,z&&(a.pn=!0),y=Zt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Sn+1<Nr?y=(a.position.x-Le)*ir:Le+1<at?y=Zt.scrollWidth-Zt.clientWidth:Ve>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&&(Wn+1<mr?Zt.scrollTop=(a.position.y-qe)*ir:qe+1<No?Zt.scrollTop=Zt.scrollHeight-Zt.clientHeight:He>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=si.allocAt(E,yt,It,zt),a.onViewportBoundsChanged(x,a.viewportBounds,ir,z),si.free(x),!1):!0}Xt=_n.prototype,Xt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&tn("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&&tn('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(gl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Xt.oi=function(a){this.partManager.oi(a);var y=this;dl(a,function(x){zc(y,x)}),(a instanceof Ls||a instanceof Do&&a.placeholder!==null)&&a.v(),a.data!==null&&dl(a,function(x){Wv(y.partManager,x)}),th(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()},Xt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&dl(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()},Xt.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(Hl,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Xt.Is=function(a,y){if(y===void 0&&(y=!1),ui(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 Ci,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Xt.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 wr;if(a!==null)if(ui(a))for(var z=0;z<a.length;z++)Vu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Vu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Vu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Vu(this,E,a.value,x,b);for(a=this.links;a.next();)Vu(this,E,a.value,x,b)}yh(this,E,y,b,x)}};function Vu(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 Do&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Vu(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)&&Vu(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Vu(a,y,x.value,b,E)}else if(x instanceof Gi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Vu(a,y,x.value,b,E);else x instanceof Ls||y.add(x,a.Pd(E,x,x.location))}function yh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ie.alloc(),nt=Ie.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||oc(a,y);for(var ot=dr(),at=dr(),ut=y.iterator,ct=Ie.alloc();ut.next();){var yt=ut.key,It=ut.value;if(yt.Zc()){var zt=od(a,yt,y);zt!==null?ot.push(new it(yt,It,zt)):(!E||yt.canMove())&&(zt=It.point,z.assign(zt),a.computeMove(yt,z.add(nt),b,ct),yt.location=ct,It.shifted===void 0&&(It.shifted=new Ie),It.shifted.assign(ct.re(zt)))}else ut.key instanceof Gi&&at.push(ut.sa)}for(Ie.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 Ie),yt.node.location=z.add(yt.Su.shifted);for(E=Ie.alloc(),ut=Ie.alloc(),yt=at.length,It=0;It<yt;It++){var Zt=at[It];if(zt=Zt.key,zt instanceof Gi)if(zt.suspendsRouting){zt.Tg=null,ct=zt.fromNode;var he=zt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(he=Zt.value.point,zt.dragComputation===null)y.add(zt,a.Pd(b,zt,nt)),Ff(zt,nt.x-he.x,nt.y-he.y);else{Zt=Ie.allocAt(0,0),(ct=zt.i(0))&&ct.w()&&Zt.assign(ct);var He=ct=Ie.alloc().assign(Zt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(He=Ie.alloc(),Hc(a,zt,ct,He,b)),ct.assign(zt.dragComputation(zt,ct,He)).re(Zt),y.add(zt,a.Pd(b,zt,ct)),Ff(zt,ct.x-he.x,ct.y-he.y),Ie.free(Zt),Ie.free(ct),He!==ct&&Ie.free(He)}else ct!==null&&(E.assign(ct.location),He=y.I(ct),He!==null&&E.re(He.point)),he!==null&&(ut.assign(he.location),He=y.I(he),He!==null&&ut.re(He.point)),ct!==null&&he!==null?E.Xa(ut)?(ct=Zt.value.point,he=z,he.assign(E),he.re(ct),y.add(zt,a.Pd(b,zt,E)),Ff(zt,he.x,he.y)):(zt.suspendsRouting=!1,zt.bb()):(Zt=Zt.value.point,ct=ct!==null?E:he!==null?ut:nt,y.add(zt,a.Pd(b,zt,ct)),Ff(zt,ct.x-Zt.x,ct.y-Zt.y))}else(zt.fromNode===null||zt.toNode===null)&&(ct=Zt.value.point,y.add(zt,a.Pd(b,zt,nt)),Ff(zt,nt.x-ct.x,nt.y-ct.y))}Ie.free(z),Ie.free(nt),Ie.free(E),Ie.free(ut),Mr(ot),Mr(at),x||(Ul(a),Qc(a,y))}}_n.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ie),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ie.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&&Ie.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=Ie.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),Ie.free(z)}}function oc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Gi&&(y.suspendsRouting=!0)}function Qc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Gi&&(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}Xt=_n.prototype,Xt.Pd=function(a,y,x){if(x===void 0)return new ah(cs);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new ah(new Ie(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new ah(x.copy())};function lf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&tn("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&tn("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&tn("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&tn("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&&tn("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Xt.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(gl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Xt.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(Hl,"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(gl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Xt.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(Hl,"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(gl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Xt.kA=function(a){if(a.diagram!==this&&tn("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(Hl,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Xt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Xt.Yw=function(a){return this.pf===null&&(this.pf=new Pi),this.pf.add(a),this.model.Pe(a),this},Xt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Xt.Pe=function(a){return this.zg===null&&(this.zg=new Pi),this.zg.add(a),this},Xt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Xt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==oh&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Xt.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)},Xt.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(Qa(E,a.propertyName,a.I(y)),E instanceof pn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===gl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof ci)if(typeof ot=="number"&&at instanceof pn){y?nt.pc(ot):nt.Gb(ot,at);var ut=nt.part;ut!==null&&ut.Wb()}else typeof ot=="number"&&at instanceof Vl&&(at.isRow?Vc(nt,ot,y?void 0:at):qd(nt,ot,y?void 0:at));else if(nt instanceof pa){var ct=a.oldParam===!0;typeof ot=="number"&&at instanceof Vr&&(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 pa&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):tn("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Hl){var yt=a.object,It=a.oldParam,zt=a.oldValue;if(yt instanceof ci)typeof It=="number"&&zt instanceof pn?y?yt.Gb(It,zt):yt.pc(It):typeof It=="number"&&zt instanceof Vl&&(zt.isRow?Vc(yt,It,y?zt:void 0):qd(yt,It,y?zt:void 0));else if(yt instanceof pa){var Zt=a.newParam===!0;typeof It=="number"&&zt instanceof Vr&&(y?0>yt.Pa.indexOf(zt)&&yt.oi(It,zt,Zt):(zt.isSelected=!1,zt.isHighlighted=!1,zt.Wb(),yt.pc(Zt?It:-1,zt,Zt)))}else yt instanceof _n?typeof It=="number"&&zt instanceof pa&&(y?(zt.Xe(this),this.Wa.Gb(It,zt)):this.Wa.mb(It)):tn("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==oh&&tn("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,Th(a),a.N(),a.Ee=!0,b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Th(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(eu)&&(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=Ie.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,Ie.free(z),a.Ca=x,Th(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),sh(a,!1),b.zb&&(Ra(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!==Ka||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=Vi.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||(Ga(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=si.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){si.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,si.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Ie.alloc(),En.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Vi.free(b),x.part.location=y,Ie.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),ui(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Vr||tn("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 Vr||tn("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()}},Xt=_n.prototype,Xt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Xt.Jz=function(a){a=new Ci().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 Vr||tn("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Xt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ie.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)),Ie.free(z);return}tn("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):tn("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ie.free(z)},Xt.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)},Xt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Xt.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)},Xt.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 zt=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,zt),It=Math.max(It,zt),zt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),It=Math.max(It,b),zt=Math.min(zt,x),y=Math.max(y,x),z=Math.min(z,nt),It=Math.max(It,nt),zt=Math.min(zt,E),y=Math.max(y,E),new si(z,zt,It-z,y-zt)},Xt.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),xo(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=Pa.get(a),a!==null?new a:new Ws}_n.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===oh&&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===oh){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ul(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Ao(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(),ca(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Si(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 hc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ci&&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 hc){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 Ci&&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)},Xt=_n.prototype,Xt.Lc=function(a){return this.partManager.Lc(a)},Xt.ii=function(a){return this.partManager.ii(a)},Xt.Kc=function(a){return this.partManager.Kc(a)},Xt.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:ia(gs(y)))},Xt.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:ia(gs(y)))};function Th(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),sh(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Xt.Va=function(){if(this.Zi){var a=si.alloc();bA(this,this.computeBounds(a)),si.free(a)}},Xt.rz=function(){for(var a=new Ci,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},Xt.qz=function(){return this.ai.iterator},Xt.Uz=function(a){Ul(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||Dl(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),Ul(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||Ao(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),Oa(a,y),E.isValidLayout=!0):a.xh=!0)}}Xt.yz=function(){for(var a=new Pi,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 Pi;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new wr,b=new wr;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 fe(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;tn("Unknown DiagramEvent name: "+y)}Xt.Bj=function(a,y){return a=fe(this,a),a!==null&&a.add(y),this},Xt.am=function(a,y){a=fe(this,a),a!==null&&a.remove(y)},Xt.R=function(a,y,x){var b=fe(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 yn(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Xt.Yj=function(a,y){return wi(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?Yu(this,a):a.assign(this.documentBounds)};function wi(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=si.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)}si.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=si.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof hr&&ur(a,nt,b,y);si.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 Do)for(y=y.memberParts;y.next();)E=y.value,E instanceof hr&&ur(a,E,x,b)}}function jr(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=Si(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=si.alloc(),a.computeBounds(y),y.ed(a.documentBounds),bA(a,y),si.free(y),a.Fc=!0,a.bd(),Co(a))}},a.vp))}_n.prototype.ug=function(){this.vk!==-1&&(Fe.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=si.allocAt(0,0,b.width*E,b.height*E);var z=Ie.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(cs)||(y=new Ie(y.x+z.x/E,y.y+z.y/E)),si.free(b),Ie.free(z),y},Xt=_n.prototype,Xt.Cs=function(){return null},Xt.av=function(){return null},Xt.bs=function(a,y){this.pj.add(a,y)},Xt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Do&&(y.$p=null)})};function ps(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):Fe.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 Fe.requestAnimationFrame(function(){b()}),null}Xt.Wz=function(a){return ms?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Xt.Jx=function(a){return a===void 0&&(a={}),ps(this,this.Xz,a)},Xt.Xz=function(a,y,x){var b=Ys(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 Oh+"data":E=b.getImageData(0,0,x.width,x.height);break;case Oh:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&tn('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 Ys(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&tn("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 Vi(1/0,1/0):new Vi(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,zt=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 Qr(ut):ut instanceof Qr||tn("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 he=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=zt,$a(a,b.context,ut,new Vi(yt.width,yt.height),a.Ca,a.pa,at,ct,Zt,y),b.context):(a.Xm=!1,$a(a,he,ut,new Vi(yt.width,yt.height),a.Ca,a.pa,at,ct,Zt,y),a.Xm=!0,yt.context);var He=a.Pp,Le=a.documentBounds.copy();if(Le.Fv(a.yb),Zt)for(var Ve=a.Wa.s,qe=Ve.length,rn=0;rn<qe;rn++){var Sn=Ve[rn];if(Sn.visible&&Sn.isTemporary){Sn=Sn.Pa.s;for(var Wn=Sn.length,ir=0;ir<Wn;ir++){var Nr=Sn[ir];Nr.isInDocumentBounds&&Nr.isVisible()&&(Nr=Nr.actualBounds,Nr.w()&&Le.ed(Nr))}}}if(Ve=new Ie(Le.x,Le.y),at!==null){for(qe=new si(0,0,0,0),rn=!0,Sn=at.iterator,Sn.reset();Sn.next();)Wn=Sn.value,Wn instanceof Vr&&(ir=Wn.layer,ir!==null&&!ir.visible||ir!==null&&!Zt&&ir.isTemporary||!Wn.isVisible()||(Wn=Wn.actualBounds,Wn.w()&&(rn?(rn=!1,qe.assign(Wn)):qe.ed(Wn))));Le.width=qe.width,Le.height=qe.height,Ve.x=qe.x,Ve.y=qe.y}return ot!==null&&ot.w()&&(Ve=ot,z||(z=He)),qe=ot=0,ut!==null&&(ot=ut.left+ut.right,qe=ut.top+ut.bottom),rn=Sn=0,E!==null&&(Sn=E.width,rn=E.height,isFinite(Sn)&&(Sn=Math.max(0,Sn-ot)),isFinite(rn)&&(rn=Math.max(0,rn-qe))),E!==null&&z!==null?(z==="NaN"&&(z=He),E.w()?(E=Sn,Le=rn):isNaN(rn)?(E=Sn,Le=Le.height*z):(E=Le.width*z,Le=rn)):E!==null?E.w()?(z=Math.min(Sn/Le.width,rn/Le.height),E=Sn,Le=rn):isNaN(rn)?(z=Sn/Le.width,E=Sn,Le=Le.height*z):(z=rn/Le.height,E=Le.width*z,Le=rn):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/Le.width,(nt.height-qe)/Le.height),z>He?(z=He,E=Le.width,Le=Le.height):(E=nt.width,Le=nt.height)):(E=Le.width*z,Le=Le.height*z):(z=He,E=Le.width,Le=Le.height),ut!==null?(E+=ot,Le+=qe):ut=new Qr(0),nt!==null&&(He=nt.width,nt=nt.height,isNaN(He)&&(He=2e3),isNaN(nt)&&(nt=2e3),isFinite(He)&&(E=Math.min(E,He)),isFinite(nt)&&(Le=Math.min(Le,nt))),yt.width=Math.ceil(E),yt.height=Math.ceil(Le),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=It,b.hs=zt,$a(a,b.context,ut,new Vi(Math.ceil(E),Math.ceil(Le)),z,Ve,at,ct,Zt,y),b.context):(a.Xm=!1,$a(a,he,ut,new Vi(Math.ceil(E),Math.ceil(Le)),z,Ve,at,ct,Zt,y),a.Xm=!0,yt.context)}je.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 _u(this,Fe.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 _u(this,Fe.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(Fe,"resize",this.Ov,!1),this.removeEventListener(Fe,"wheel",this.$j,!0),kh===this&&(kh=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)&&Li(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),sh(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),sh(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),sh(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),sh(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Li(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&&Li(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 Li(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&&tn("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,Dl(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(Fe,"pointermove",this.dk,!0),this.addEventListener(Fe,"pointerdown",this.ui,!0),this.addEventListener(Fe,"pointerup",this.fk,!0),this.addEventListener(Fe,"pointerout",this.ek,!0),this.addEventListener(Fe,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Fe,"wheel",this.$j,!0),this.addEventListener(Fe,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Fe,"pointermove",this.dk,!0),this.removeEventListener(Fe,"pointerdown",this.ui,!0),this.removeEventListener(Fe,"pointerup",this.fk,!0),this.removeEventListener(Fe,"pointerout",this.ek,!0),this.removeEventListener(Fe,"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(Fe,"wheel",this.$j,!0),this.removeEventListener(Fe,"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=Ie.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),al(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Th(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)}Ie.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&&tn("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),Th(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||tn("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 Qr(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&&sh(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,sh(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!==Ka&&sh(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()||tn("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()||tn("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)):Li(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)):Li(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),sh(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 Qr(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&&tn("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!==ml&&a!==Iu&&tn("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 Vi(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 Qr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),je.Object.defineProperties(_n,{licenseKey:{get:function(){return Yd.jc()},set:function(a){Yd.add(a.replace(/\s/g,""))}},version:{get:function(){return Gl}}}),_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 Pa=new wr,ba=null,ms=Fe.document!==void 0,nu=null,iu="",Ka=new pi(_n,"None",0),zl=new pi(_n,"Uniform",1),Nu=new pi(_n,"UniformToFill",2),sc=new pi(_n,"CycleAll",10),bh=new pi(_n,"CycleNotDirected",11),ac=new pi(_n,"CycleNotDirectedFast",12),LA=new pi(_n,"CycleNotUndirected",13),dA=new pi(_n,"CycleDestinationTree",14),MA=new pi(_n,"CycleSourceTree",15),pc=new pi(_n,"DocumentScroll",1),Fd=new pi(_n,"InfiniteScroll",2),Gc=new pi(_n,"TreeParentCollapsed",21),ml=new pi(_n,"AllParentsCollapsed",22),Iu=new pi(_n,"AnyParentsCollapsed",23),Yd=new Pi,Gl="2.3.10",Oh="image",mc=null,qu=!1;function Wl(){if(ms){var a=Fe.document.createElement("canvas"),y=a.getContext("2d"),x=yi("7ca11abfd022028846");y[x]=yi("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",wn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Qo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",En.za],E=1;5>E;E++)y[yi("7ca11abfd7330390")](yi(b[E-1]),10,15*E);for(y[x]=yi("39f046ebb36e4b"),x=1;5>x;x++)y[yi("7ca11abfd7330390")](yi(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Qo.prototype.Cd=Qo.prototype.Eu),mc=a}}_n.className="Diagram",_n.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Fe.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){ms=a?Fe.document!==void 0:!1},_n.isUsingDOM=function(){return ms},_n.None=Ka,_n.Uniform=zl,_n.UniformToFill=Nu,_n.CycleAll=sc,_n.CycleNotDirected=bh,_n.CycleNotDirectedFast=ac,_n.CycleNotUndirected=LA,_n.CycleDestinationTree=dA,_n.CycleSourceTree=MA,_n.DocumentScroll=pc,_n.InfiniteScroll=Fd,_n.TreeParentCollapsed=Gc,_n.AllParentsCollapsed=ml,_n.AnyParentsCollapsed=Iu;function Ld(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Dh(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=Fe[yi("76a715b2f73f148a")][yi("72ba13b5")]||"";if(a.Rc=!0,ms){var b=_n[yi("76a115b6ed251eaf4692")];if(b)for(var E=Yd.iterator;E.next()&&(b=E.value,b=yi(b).split(yi("39e9")),!(6>b.length));){var z=yi(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=yi(wn[yi("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Fe[yi("74a900bae4370f8b51")][yi("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[yi("73a612b6fb191d")](yi("3aad1ab6e022098b4dc4")),z=yi(b[2]),-1<nt&&(ot=ot[yi("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[yi("76ad18b4f73e")],ot=x[yi("73a612b6fb191d")](yi("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[yi("73a612b6fb191d")](z),0>nt&&z!==yi("7da71ca0ad381e90")&&(nt=y[yi("73a612b6fb191d")](yi("76a715b2ef3e149757"))),0>nt&&(nt=y[yi("73a612b6fb191d")](yi("76a715b2ef3e149757"))),0>nt&&(nt=y[yi("73a612b6fb191d")](yi("2bfa41fdb3784bca12"))),0>nt&&(nt=x[yi("73a612b6fb191d")](yi("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[yi("73a612b6fb191d")](yi("35"))||y[yi("73a612b6fb191d")](yi("35"))===-1),!a.Rc||x[yi("73a612b6fb191d")](yi("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[yi("73a612b6fb191d")](z)),!a.Rc)||(nt=Fe[yi("76a715b2f73f148a")][yi("69ad17a1e03e")],ot=nt[yi("73a612b6fb191d")](yi("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[yi("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Fe.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[yi("79a417a0f0181a8946")]=b,Fe.document[yi("78a712aa")]){Fe.document[yi("78a712aa")][yi("7bb806b6ed32388c4a875b")](nt),at=Fe.getComputedStyle(nt).getPropertyValue(yi("78a704b7e62456904c9b12701b6532a8"));var ut=Fe.getComputedStyle(nt).getPropertyValue(yi("75b817b0ea2202"));if(Fe.document[yi("78a712aa")][yi("68ad1bbcf533388c4a875b")](nt),at){if(nt=Fe[yi("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(yi("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[yi("76ad18b4f73e")],E=x[yi("73a612b6fb191d")](yi("35e7"))+2;E<ct;E++)y+=x[E];x=y[yi("73a612b6fb191d")](yi("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[yi("73a612b6fb191d")](yi("35")))}}}return 0<a.Rc&&a!==a.wy}Ld.className="DiagramHelper";function ah(a){this.j=a===void 0?new Ie:a,this.o=new Ie}je.Object.defineProperties(ah.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";ah.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 Vi(NaN,NaN).freeze(),this.gridSnapCellSpot=rl,this.gridSnapOrigin=new Ie(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"||Fe.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}Nn(mt,_n);function pt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=bl,a.layout=new nh}mt.prototype.reset=function(){_n.prototype.reset.call(this),pt(this)},mt.className="Palette";function Bt(a,y){if(typeof a=="string"||Fe.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 Vr;var E=new Oo;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 Qr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ue,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new Ie(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=zl,x.vb=!1,y&&Object.assign(x,y),x}Nn(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(Ph(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&&tn("No div specified"),this.ta===null&&tn("No canvas specified"),!(this.ta instanceof _u)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Ph(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=si.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pc(y,E),si.free(E),Ul(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=lu(ot,E),ut.gc(E,at),E.globalAlpha=ot);else{for(var ct=lu(ot,E),yt=at.scale,It=si.alloc(),zt=ot.Pa.s,Zt=zt.length,he=0;he<Zt;he++){var He=zt[he];(b||He!==ut)&&ot.Oj(E,He,at,null,yt,It,!1)}si.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=Vi.alloc();E.h(x.width,x.height),b.desiredSize=E,Vi.free(E),a=2/a.scale,b instanceof Oo&&(b.strokeWidth=a),y.location=new Ie(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Bt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return Jo;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))},je.Object.defineProperties(Bt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Bt&&tn("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 Ue(){Pn.call(this),this.j=null}Nn(Ue,Pn),Ue.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 Ie(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ie(a.x-this.j.x,a.y-this.j.y)),!0)},Ue.prototype.doActivate=function(){this.j=null,Pn.prototype.doActivate.call(this)},Ue.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ue.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 Ie(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ie(a.x-this.j.x,a.y-this.j.y)}}},Ue.className="OverviewDraggingTool";function Oe(){Xo(this),this.H=kh,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=Jo,this.hb=!0,this.cg=null,this.ob=200}Oe.prototype.toString=function(){return"CommandHandler"},Oe.prototype.Xe=function(a){this.H=a},Oe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=ws?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()},Oe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Oe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ie&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Oe.prototype.canStopCommand=function(){return!0},Oe.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=""}},Oe.prototype.canSelectAll=function(){return this.diagram.allowSelect},Oe.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 Ci,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=""}},Oe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Oe.prototype.copySelection=function(){var a=this.diagram,y=new Ci;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)},Oe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Oe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Oe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Oe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)nu=null,iu="";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 Pi,x.addAll(z),nu=x,iu=y.model.dataFormat}}y.R("ClipboardChanged",x)},Oe.prototype.pasteFromClipboard=function(){var a=new Ci,y=nu;if(y===null)return a;var x=this.diagram;if(iu!==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},Oe.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);yh(y,z,new Ie(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=""}},Oe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||nu===null||nu.count===0||iu!==a.model.dataFormat)},Oe.prototype.undo=function(){this.diagram.undoManager.undo()},Oe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Oe.prototype.redo=function(){this.diagram.undoManager.redo()},Oe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Oe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ka&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Oe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ka?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Oe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ka&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Oe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ka?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Oe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Oe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Oe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Dl(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=Jo):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Ao(y)},Oe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Oe.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;Dl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=ln(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 Do)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Vr&&y.tv(at.actualBounds),at instanceof hr&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof Do&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Vr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Si(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 ln(a,y,x){if(y.isVisible())return x;if(y instanceof Ls)ln(a,y.adornedPart,x);else if(y instanceof Gi){var b=y.fromNode;b!==null&&ln(a,b,x),y=y.toNode,y!==null&&ln(a,y,x)}else y instanceof hr&&(b=y.labeledLink,b!==null&&ln(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),ln(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),ln(a,y,x));return x}Oe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Vr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Oe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Dl(y.animationManager,"Collapse Tree");var x=new Pi;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")}},Oe.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},Oe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Dl(y.animationManager,"Expand Tree");var x=new Pi;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")}},Oe.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},Oe.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 Pi,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Pi,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 Do)ru(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var zt=y.copyNodeData(x);kn(zt)&&(y.xf(zt),b=a.ii(zt))}if(b!==null){yt!==null&&this.isValidMember(yt,b)&&(b.containingGroup=yt);for(var Zt=ot.iterator;Zt.next();){var he=Zt.value;this.isValidMember(b,he)&&(he.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Oe.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 ri(a){var y=dr();for(a=a.iterator;a.next();){var x=a.value;x instanceof Gi||y.push(x)}a=new Ci,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 Mr(y),a}Oe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Gi)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},Oe.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 Pi;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Do&&z.canUngroup()&&b.add(z)}var nt=new Pi;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 Gi)){var zt=It.data;zt!==null?x.mp(zt,ct):It.containingGroup=ut}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Oe.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 Do))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Do&&y.canUngroup())return!0;return!1},Oe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=ri(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Oe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Dl(y.animationManager,"Collapse SubGraph");var x=new Pi;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 Do&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Oe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Do&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Do&&y.isSubGraphExpanded)return!0;return!1},Oe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Dl(y.animationManager,"Expand SubGraph");var x=new Pi;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 Do&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Oe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Do&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Do&&!y.isSubGraphExpanded)return!0;return!1},Oe.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 aa&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Oe.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 aa))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 aa&&x.editable}),a!==null))return!0;return!1},Oe.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 pn?E=a.ga(Mo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ie(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)}},Oe.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)},Oe.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 wr,a===null)return b;for(var z=a.iterator;z.next();)Vu(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 Gi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},je.Object.defineProperties(Oe.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||tn("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}}}),Oe.className="CommandHandler",gc=function(){return new Oe};function pn(){Xo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ie(NaN,NaN).freeze(),this.jd=Na,this.Ab=new Qo,this.wh=new Qo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Su,this.uc=new si(NaN,NaN,NaN,NaN).freeze(),this.Ib=new si(NaN,NaN,NaN,NaN).freeze(),this.dc=new si(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Fs,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 ki,bi,yr,Tr,qr,vo,$o,ko,ss,Ns;pn.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=Sr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},pn.prototype.Vw=function(a){var y=this.Dh;if(ui(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},pn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},pn.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},pn.prototype.copy=function(){return this.clone()},Xt=pn.prototype,Xt.qb=function(a){a.classType===Gi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:tn("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===pn&&(this.stretch=a)},Xt.toString=function(){return nr(this.constructor)+"#"+xs(this)},Xt.th=function(){this.A!==null&&(this.A.nc=!0)};function To(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}Xt.Xc=function(){if(this.ba===null){var a=new Kf;a.Xi=Za,a.yj=Za,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Xt.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&&hu(this)&&ea(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 wr),nt=z.undoManager.transactionLevel===0,a.startCondition===Ba?nt=!0:a.startCondition===pl&&(nt=!1),nt?(z=new _a,ga(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()):(Dl(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&&dl(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function ea(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))}}Xt.ks=function(a){return this.bindingId===a?this:null},Xt.g=function(a,y,x){this.cb(Fa,a,this,y,x)},Xt.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 Qo);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))}Xt.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},Xt.se=function(){return!0},Xt.ca=function(a){var y=Ie.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ie.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=zs(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),Ie.free(y),a}return E=!1,(this instanceof Ls||this instanceof Oo?zs(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)),Ie.free(y),E},Xt.gh=function(a){var y=this.naturalBounds;return zs(0,0,y.width,y.height,a.x,a.y)},Xt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=si.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Ie.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)))),Ie.free(E),si.free(y),b},Xt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ie.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)))),Ie.free(E),b},Xt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ie.allocAt(0,0),E=Ie.allocAt(0,x.height),z=Ie.allocAt(x.width,x.height),nt=Ie.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=si.allocAt(0,0,x.width,x.height);var at=Ie.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)))),Ie.free(at),si.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 Ie.free(b),Ie.free(E),Ie.free(z),Ie.free(nt),ot},Xt.ga=function(a,y){if(y===void 0&&(y=new Ie),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},Xt.mi=function(a){a===void 0&&(a=new si);var y=this.naturalBounds,x=this.oe,b=Ie.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),Ie.free(b),a},Xt.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},Xt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Xt.qs=function(a,y){return y===void 0&&(y=new Ie),y.assign(a),this.oe.Cd(y),y},Xt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Xt.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)},pn.prototype.measure=function(a,y,x,b){if(wh(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(lh(this,!0)){case bi:nt=E=0,ot&&(y=a=1/0);break;case ki:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case Tr:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case qr: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()||tn("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Il(this,!1)}},pn.prototype.Wl=function(){},pn.prototype.Dd=function(){return!1},pn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=si.alloc();z.assign(this.Ib),this.Ib.ka(),th(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&&kl(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 aa&&(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()||tn("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Wc(this,!1),si.free(z)},Xt=pn.prototype,Xt.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=lh(a,!0),x===b&&z===E&&(y=bi),y){case bi:(x>b||z>E)&&(Il(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case ki:Il(a,!0),a.measure(b,E,0,0);break;case Tr:Il(a,!0),a.measure(b,z,0,0);break;case qr:Il(a,!0),a.measure(x,E,0,0)}}}Xt.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(),Hh(a,y)||(x.oh(),this.Pn(x)))},Xt.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof hr&&$y(a,this))},Xt.gc=function(a,y){if(!vl(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&&kl(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&&(Ca(this,a,ut,!0,!0,at,ot),ut instanceof js&&ut.type===Ee?(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&&(Ca(this,a,ct,!0,!1,at,ot),ct instanceof js&&ct.type===Ee?(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&&Ml(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 zt=this.naturalBounds;It=this.wh;var Zt=It.m11,he=It.m21,He=It.dx,Le=It.m12,Ve=It.m22,qe=It.dy,rn,Sn=rn=0;It=rn*Zt+Sn*he+He;var Wn=rn*Le+Sn*Ve+qe;rn=zt.width+yt,Sn=0;var ir=rn*Zt+Sn*he+He;rn=rn*Le+Sn*Ve+qe,Sn=Math.min(It,ir);var Nr=Math.min(Wn,rn),mr=Math.max(It+0,ir)-Sn,Ki=Math.max(Wn+0,rn)-Nr;It=Sn,Wn=Nr,rn=zt.width+yt,Sn=zt.height+yt,ir=rn*Zt+Sn*he+He,rn=rn*Le+Sn*Ve+qe,Sn=Math.min(It,ir),Nr=Math.min(Wn,rn),mr=Math.max(It+mr,ir)-Sn,Ki=Math.max(Wn+Ki,rn)-Nr,It=Sn,Wn=Nr,rn=0,Sn=zt.height+yt,ir=rn*Zt+Sn*he+He,rn=rn*Le+Sn*Ve+qe,Sn=Math.min(It,ir),Nr=Math.min(Wn,rn),mr=Math.max(It+mr,ir)-Sn,Ki=Math.max(Wn+Ki,rn)-Nr,It=Sn,Wn=Nr,yt=y.viewportBounds,zt=yt.x,Zt=yt.y,It=!(It>yt.width+zt||zt>mr+It||Wn>yt.height+Zt||Zt>Ki+Wn)}if(It){if(It=(this.l&256)!==0,a.clipInsteadOfFill&&(It=!1),this instanceof aa&&(a.font=this.font),It){if(Wn=ot.se()?ot.naturalBounds:ot.actualBounds,mr=Math.max(nt.x,Wn.x),Ki=Math.max(nt.y,Wn.y),yt=Math.min(nt.right,Wn.right)-mr,zt=Math.min(nt.bottom,Wn.bottom)-Ki,Zt=this.tb,Zt!==null&&(mr=Zt.x,Ki=Zt.y,yt=Zt.width,zt=Zt.height),mr>nt.width+nt.x||nt.x>Wn.width+Wn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(mr,Ki,yt,zt),a.clip()}if(ct){if(!ut.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Wn=ut.shadowOffset,a.Ev(Wn.x*y.scale*this.scale*y.Mb,Wn.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&&cl(this,ot)&&this.shadowVisible===null&&ld(a),this.Ma!==null&&(a.yc(),La(this,a,ut,nt)),at&&(this.Ma!==null||this.areaBackground!==null||cl(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 cl(a,y){return y===null?!1:(kl(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ci.Auto||y.type===ci.Spot)&&y.Pb()!==a)}Xt.Dv=function(){};function yu(a,y,x,b){Ca(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof js&&a.areaBackground.type===Ee?(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;Ca(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof js&&a.Ma.type===Ee?(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 Sa(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 vl(a,y,x){if(!(y instanceof eh))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&&Sa(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 aa&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof ci;var ot=a instanceof ci?kl(a):!1;a.l&4096&&Ml(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&&cl(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||cl(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),yl(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&&Sa(a,b,ot),nt!==null&&nt(a,ot)),!0)}Xt.$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"+va++,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"),yl(a,b)};function yl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Eo(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()}}Xt.hh=function(){},Xt.lv=function(){this.Uc=!0},Xt.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?kl(this):!1;if(!(this instanceof ci&&E))if(this instanceof hc){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 Oo){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},Xt.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 Ca(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===Qt)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===on||x.yk===ot&&x.ft===at))var ct=x.xe;else{var yt=0,It=0,zt=0,Zt=0,he=0,He=0;if(He=he=0,E?(he=nt.x,He=nt.y):b||(he-=ut/2,He-=ut/2),yt=x.start.x*ot+x.start.offsetX,It=x.start.y*at+x.start.offsetY,zt=x.end.x*ot+x.end.offsetX,Zt=x.end.y*at+x.end.offsetY,yt+=he,zt+=he,It+=He,Zt+=He,x.type===de)ct=y.createLinearGradient(yt,It,zt,Zt);else if(x.type===Ee)He=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(he=0,He=Math.max(ot,at)/2):he=x.startRadius,ct=y.createRadialGradient(yt,It,he,zt,Zt,He);else if(x.type===on)try{ct=y.createPattern(x.pattern,"repeat")}catch(Ve){ct=null}if(x.type!==on&&(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===on&&x.yk!==-1)){x.yk=-1;var Le=a.diagram;Le!==null&&x.yk===-1&&Si(function(){Le.redraw()},600)}}b?y.fillStyle=ct:y.strokeStyle=ct}}}Xt.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},Xt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Xt.If=function(){for(var a=this instanceof ci?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Ml(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){lc(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)}lc(a,!1),uh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,uh(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,uh(a,!1)))}Xt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ie.alloc();z.yi(y,x,b,E,Mo),a.rotate(this.Kb,z.x,z.y),Ie.free(z)}},Xt.v=function(a){if(!wh(this)){a===void 0&&(a=!1),Il(this,!0),Wc(this,!0);var y=this.panel;y===null||a||y.v()}},Xt.Uj=function(){wh(this)||(Il(this,!0),Wc(this,!0))};function Nl(a){if(!th(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)}}Xt.Uk=function(){!(this.l&2048)&&(lc(this,!0),uh(this,!0))},Xt.Wu=function(){uh(this,!0)},Xt.N=function(){var a=this.part;a!==null&&a.N()};function lh(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===ci.Table?Da(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===ci.Auto&&b.Pb()===a?_s(a,ki,y):x===vo?b!==null?b.type===ci.Spot&&b.Pb()===a?_s(a,ki,y):(x=b.defaultStretch,x===vo?_s(a,bi,y):_s(a,x,y)):_s(a,bi,y):_s(a,x,y)}function Da(a,y,x,b){var E=a.stretch;if(E!==vo)return _s(a,E,b);var z=E=null;switch(y.stretch){case qr:z=!0;break;case ki:z=!0}switch(x.stretch){case Tr:E=!0;break;case ki:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Tr||y===ki),z===null&&(z=y===qr||y===ki),E===!0&&z===!0?_s(a,ki,b):E===!0?_s(a,Tr,b):z===!0?_s(a,qr,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===Tr)return bi;if(y===ki)return qr}else{if(y===qr)return bi;if(y===ki)return Tr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===qr)return bi;if(y===ki)return Tr}else{if(y===Tr)return bi;if(y===ki)return qr}return y}function wu(a,y){a.l=y?a.l|512:a.l&-513}function hu(a){return(a.l&1024)!==0}function ad(a,y){a.l=y?a.l|1024:a.l&-1025}function lc(a,y){a.l=y?a.l|2048:a.l&-2049}function uh(a,y){a.l=y?a.l|4096:a.l&-4097}function wh(a){return(a.l&8192)!==0}function Il(a,y){a.l=y?a.l|8192:a.l&-8193}function th(a){return(a.l&16384)!==0}function Wc(a,y){a.l=y?a.l|16384:a.l&-16385}Xt.Gj=function(){this.svg=null},Xt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Xt.Av=function(){},Xt.zv=function(a){return this.pa=a,Nl(this),!0},Xt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Xt.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))}Xt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Jl(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&TA(a)&&tn("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Pi),this.localBindings.add(E),this},Xt.set=function(a){return Object.assign(this,a),this},Xt.Du=function(a){return Sg(this,a),this},Xt.apply=function(a){return a(this),this},Xt.nm=function(a){return Ah(this,a),this},Xt.pz=function(){return this.ih()},Xt.ih=function(){for(var a=this instanceof ci?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Xt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new wr),this.animationTriggers.add(a.propertyName,a),this};function Eh(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=Sr(arguments),b=z(x),kn(b)||tn('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Fe.go[a]}if(b===null&&(E!=null&&E.constructor||tn("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?tn("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 aa)a.text=y;else if(a instanceof Oo)a.figure=y;else if(a instanceof hc)a.source=y;else if(a instanceof ci)y=hh.I(y),y!==null&&(a.type=y);else if(a instanceof js){var x=or(js,y);x!==null?a.type=x:tn("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Wi?(y=or(Wi,y),y!==null&&(a.type=y)):a instanceof vs&&(y=or(vs,y),y!==null&&(a.type=y));else if(y instanceof pn)a instanceof ci||tn("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Vl){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 Vl?Xf(b,y):tn("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof pi)typeof a.qb=="function"&&a.qb(y);else if(y instanceof xn)a.type=y;else if(y instanceof Jl)a instanceof pn||a instanceof Vl?a.bind(y):tn("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof vh)a instanceof pn?a.Jv(y):tn("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof el)a instanceof Wi&&a.type===Wi.o?a.figures.add(y):tn("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof vs)a instanceof el?a.segments.add(y):tn("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Wa)a instanceof _n||a instanceof Do?a.layout=y:tn("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 uo;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);Ah(a,x)}else if(a instanceof Vl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&tn("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)&&tn("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new uo;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Ah(a,E)}else Ah(a,y);else tn('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}je.Object.defineProperties(pn.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&&(To(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&&(To(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Zh},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===Zh&&(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:cs},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&&(To(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&&(To(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)&&Li(a,"0 <= value <= 1",pn,"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&&_t(a,"GraphObject.areaBackground"),a instanceof js&&a.freeze(),To(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&&_t(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 Vr)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 Ie(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&&tn("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 Oo&&this.qc(),this.g("desiredSize",b,a),hu(this)&&(a=this.part,a!==null&&(ea(this,a,"width"),ea(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 Vi(a,this.jd.height).freeze(),this.v(),this instanceof Oo&&this.qc(),this.g("desiredSize",y,a),hu(this)&&(a=this.part,a!==null&&ea(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 Vi(this.jd.width,a).freeze(),this.v(),this instanceof Oo&&this.qc(),this.g("desiredSize",y,a),hu(this)&&(a=this.part,a!==null&&ea(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Lo},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(),To(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ks},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(),To(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 Qr(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&&Ml(this),this.Ab}},oe:{get:function(){return this.l&4096&&Ml(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(To(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:bi},set:function(a){this.reshapingBehavior!==a&&(To(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()&&tn("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Nl(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&&Li(a,">= 0",pn,"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&&Li(a,">= 1",pn,"columnSpan"),To(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&&Li(a,">= 0",pn,"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&&Li(a,">= 1",pn,"rowSpan"),To(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&&(To(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||tn("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:Za},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&&Li(a,">= 0",pn,"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&&Li(a,">= 0",pn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Za},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&&Li(a,">= 0",pn,"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&&Li(a,">= 0",pn,"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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(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&&(To(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),pn.prototype.trigger=pn.prototype.Jv,pn.prototype.findBindingPanel=pn.prototype.ih,pn.prototype.findTemplateBinder=pn.prototype.pz,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.apply=pn.prototype.apply,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.isEnabledObject=pn.prototype.If,pn.prototype.isVisibleObject=pn.prototype.Ed,pn.prototype.isContainedBy=pn.prototype.rg,pn.prototype.getNearestIntersectionPoint=pn.prototype.rs,pn.prototype.getLocalPoint=pn.prototype.qs,pn.prototype.getDocumentScale=pn.prototype.Df,pn.prototype.getDocumentAngle=pn.prototype.li,pn.prototype.getDocumentBounds=pn.prototype.mi,pn.prototype.getDocumentPoint=pn.prototype.ga,pn.prototype.intersectsRect=pn.prototype.Yc,pn.prototype.containedInRect=pn.prototype.fh,pn.prototype.containsRect=pn.prototype.Re,pn.prototype.containsPoint=pn.prototype.ca,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.addCopyProperty=pn.prototype.Vw;var wf=null;pn.className="GraphObject",wf=new wr,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=Eh(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"},Eh(Oo,{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 Oo)){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 Oo&&(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 Oo){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 Oo){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 Oo){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 Oo))){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=Eh("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Eh(Oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ua},new Jl("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Jl("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ls&&(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=Eh("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Eh(Oo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ua},new Jl("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 Ls&&(x=x.adornedPart),x instanceof Do){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 Eh(Ls,ci.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ie(0,3),shadowBlur:5},Eh(Oo,{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 Eh(Ls,ci.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ie(0,3),shadowBlur:5},new Jl("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Md("ContextMenuButton",function(){var a=Eh("Button");a.stretch=Tr;var y=a.fb("ButtonBorder");return y instanceof Oo&&(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=Eh("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},Eh(Oo,{name:"ButtonIcon",strokeWidth:2},new Jl("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Oo&&(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=Eh("Button",{desiredSize:new Vi(14,14)},Eh(Oo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ki,geometryStretch:yr,visible:!1},y!==""?new Jl("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=Eh("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Qr(0,1,0,0)});var y=Eh(ci,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Qr(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}),pn.None=bi=new pi(pn,"None",0),pn.Default=vo=new pi(pn,"Default",0),pn.Vertical=qr=new pi(pn,"Vertical",4),pn.Horizontal=Tr=new pi(pn,"Horizontal",5),pn.Fill=ki=new pi(pn,"Fill",3),pn.Uniform=yr=new pi(pn,"Uniform",1),pn.UniformToFill=$o=new pi(pn,"UniformToFill",2),pn.FlipVertical=ko=new pi(pn,"FlipVertical",1),pn.FlipHorizontal=ss=new pi(pn,"FlipHorizontal",2),pn.FlipBoth=Ns=new pi(pn,"FlipBoth",3),pn.make=Eh,pn.getBuilders=function(){var a=new wr,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},pn.defineBuilder=Md,pn.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 pn))return y&&b.set(y),b;tn('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},pn.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=Lo,this.o=Ks,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=cs,this.rr=Zh,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=Fs,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 _u(a,y,x){this.ownerDocument=a=y===void 0?Fe.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 eh(this,x)}_u.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},_u.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},_u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},_u.prototype.focus=function(){this.Oa.focus()},_u.prototype.mx=function(){this.ownerDocument=null},je.Object.defineProperties(_u.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}}}),_u.className="SVGSurface";function eh(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=va++,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+")")}Xt=eh.prototype,Xt.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,zt=y+yt,Zt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-It)||1e-6<Math.abs(ot-zt))&&this.path.push(["L",It,+zt]),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,zt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Zt,a+x*Math.cos(E),y+x*Math.sin(E)])},Xt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Xt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Xt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Xt.clearRect=function(){},Xt.clip=function(){this.Yl.clipPath=!0},Xt.closePath=function(){this.path.push(["z"])},Xt.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},Xt.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"+va++,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(Oh,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Xt.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)}Xt.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,Oh,z,this.rb),this.addElement(Oh,z)},Xt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ZA(this,this.Yl)},Xt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Xt.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)},Xt.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))},Xt.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])},Xt.lineTo=function(a,y){this.path.push(["L",a,y])},Xt.moveTo=function(a,y){this.path.push(["M",a,y])},Xt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Xt.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"])},Xt.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},Xt.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())},Xt.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]+")"}Xt.scale=function(a,y){this.rb.scale(a,y)},Xt.translate=function(a,y){this.rb.translate(a,y)},Xt.transform=function(){},Xt.yc=function(){},Xt.stroke=function(){Cp(this,this.Yl)},Xt.jk=function(){this.clipInsteadOfFill||this.stroke()},Xt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Xt.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"+va++,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+")"}Xt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Sr(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}Xt.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}Xt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Xt.fs=function(){this.Ct=!1},Xt.Vc=function(){},Xt.Wx=function(){},eh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},eh.prototype.getImageData=function(){return null},eh.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()))}eh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},eh.className="SVGContext",_n.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new _u(this,Fe.document));var y=new _u(this,Fe.document,!0);a===void 0&&(a=new uo);var x=this;return ps(this,function(b,E){return b=Ys(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?Fe.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},je.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&&tn("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 Qo,this.isTemporary=!!x}Xt=XA.prototype,Xt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Xt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Xt.beginPath=function(){this.Z.beginPath()},Xt.Se=function(){},Xt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Xt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Xt.clip=function(){this.Z.clip()},Xt.closePath=function(){this.Z.closePath()},Xt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Xt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Xt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Xt.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)},Xt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Xt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Xt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Xt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Xt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Xt.lineTo=function(a,y){this.Z.lineTo(a,y)},Xt.measureText=function(a){return this.Z.measureText(a)},Xt.moveTo=function(a,y){this.Z.moveTo(a,y)},Xt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Xt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Xt.restore=function(){this.Z.restore()},Xt.save=function(){this.yc(),this.Z.save()},XA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Xt=XA.prototype,Xt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Xt.scale=function(a,y){this.El.scale(a,y)},Xt.translate=function(a,y){this.El.translate(a,y)},Xt.stroke=function(){this.Z.stroke()},Xt.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}},Xt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Xt.ng=function(a,y){if(a instanceof js&&a.type===Ee){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)},Xt.jk=function(){this.Hm||this.stroke()},Xt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Xt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Xt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(lm),a.lineDashOffset=0)},Xt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Xt.Hs=function(){},je.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),Xo(this),this._isFrozen=!1,a===void 0?(this.na=Qt,this.xk="black"):typeof a=="string"?(this.na=Qt,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===de?(this.Qd=bl,this.Lk=su):this.Lk=a===Ee?this.Qd=Mo:this.Qd=Za,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},Xt=js.prototype,Xt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Xt.ka=function(){return Object.isFrozen(this)&&tn("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Xt.qb=function(a){a.classType===js&&(this.type=a)},Xt.toString=function(){var a="Brush(";if(this.type===Qt)a+=this.color;else if(a=this.type===de?a+"Linear ":this.type===Ee?a+"Radial ":this.type===on?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+")"},Xt.addColorStop=function(a,y){return this._isFrozen&&oi(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Li(a,"0 <= loc <= 1",js,"addColorStop:loc"),this.we===null&&(this.we=new wr),this.we.add(a,y),this.na===Qt&&(this.type=de),this.xe=null,this},Xt.Vz=function(a,y){if(this._isFrozen&&oi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cn:y,this.type===Qt)Fc(this.color),this.color=kA(a,y);else if((this.type===de||this.type===Ee)&&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?cn:x,Fc(a),kA(y,x)}Xt.Wy=function(a,y){if(this._isFrozen&&oi(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cn:y,this.type===Qt)Fc(this.color),this.color=kA(-a,y);else if((this.type===de||this.type===Ee)&&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?cn: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)+")"}Xt.Gx=function(){if(this.type===Qt)return IA(this.color);if((this.type===de||this.type===Ee)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Ee)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 cn: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>Ye*Be?Math.pow(a,3):lr.j/Ye),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 An:return Vf(),Ri.o=Math.min(100,Math.max(0,Ri.o+100*a)),"hsla("+Ri.j+", "+Ri.u+"%, "+Ri.o+"%, "+Ri.F+")";default:tn("Unknown color space: "+y)}}function Fc(a){St||(Rt(),St=!0);var y=qn;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):(Ye*a+16)/116}function kt(a){var y=a*a*a;return y>Be?y:(116*a-16)/Ye}function _t(a,y){typeof a!="string"&&(a instanceof js||tn("Value for "+y+" must be a color string or a Brush, not "+a))}function Rt(){qn=ms?new Tu(null,void 0,{willReadFrequently:!0}).context:null}je.Object.defineProperties(js.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&oi(this,a),this.na=a,this.start.Mc()&&(a===de?this.start=bl:a===Ee&&(this.start=Mo)),this.end.Mc()&&(a===de?this.end=su:a===Ee&&(this.end=Mo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&oi(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&oi(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&oi(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&oi(this,a),0>a&&Li(a,">= zero",js,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&oi(this,a),0>a&&Li(a,">= zero",js,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&oi(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&oi(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,Ye=24389/27,Fn=[95.047,100,108.883],qn=null,jn=new xf,Ri=new xf,zi=new xf,lr=new xf,St=!1;js.className="Brush";var Qt;js.Solid=Qt=new pi(js,"Solid",0);var de;js.Linear=de=new pi(js,"Linear",1);var Ee;js.Radial=Ee=new pi(js,"Radial",2);var on;js.Pattern=on=new pi(js,"Pattern",4);var cn;js.Lab=cn=new pi(js,"Lab",5);var An;js.HSL=An=new pi(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=qn;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 xn(){this.xa="Base"}xn.prototype.measure=function(){},xn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},xn.prototype.arrange=function(){},xn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},xn.prototype.iA=function(a){a.Uj()},xn.prototype.gc=function(){},je.Object.defineProperties(xn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ci}}}),xn.prototype.remeasureObject=xn.prototype.iA,xn.prototype.arrangeElement=xn.prototype.Ly,xn.prototype.measureElement=xn.prototype.Yz,xn.className="PanelLayout";function In(){this.xa="Base"}Nn(In,xn),In.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=Ha(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 zt=ut.position.y;isFinite(It)||(It=0),isFinite(zt)||(zt=0),ut instanceof Oo&&ut.isGeometryPositioned&&(ut=ut.strokeWidth/2,It-=ut,zt-=ut),bs(E,It,zt,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 Oo&&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"}Nn(zn,xn),zn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=dr(),z=Ha(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===z){var ct=lh(ut,!1);if(ct!==bi&&ct!==Tr)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));Mr(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,zt=It.top+It.bottom,Zt=z+E.bottom,he=yt.height,He=lh(ct,!1);(isNaN(ct.desiredSize.height)&&He===ki||He===qr)&&(he=Math.max(x.height-zt-Zt,0)),zt=he+zt+Zt,Zt=ct.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=Mo),nt&&(ot-=yt.width+It.left+It.right),ct.arrange(ot+Zt.offsetX+It.left,ut+Zt.offsetY+It.top+(x.height*Zt.y-zt*Zt.y),yt.width,he),nt||(ot+=yt.width+It.left+It.right)}}};function Ai(){this.xa="Base"}Nn(Ai,xn),Ai.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=dr();for(var ot=Ha(a),at=0;at<nt;at++){var ut=b[at];if(ut.visible||ut===ot){var ct=lh(ut,!1);if(ct!==bi&&ct!==qr)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,Ia(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);Mr(x)}},Ai.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,zt=It.left+It.right,Zt=z+E.right,he=yt.width,He=lh(ct,!1);(isNaN(ct.desiredSize.width)&&He===ki||He===Tr)&&(he=Math.max(x.width-zt-Zt,0)),zt=he+zt+Zt,Zt=ct.alignment,Zt.Xb()&&(Zt=a.defaultAlignment),Zt.sb()||(Zt=Mo),nt&&(ot-=yt.height+It.bottom+It.top),ct.arrange(ut+Zt.offsetX+It.left+(x.width*Zt.x-zt*Zt.x),ot+Zt.offsetY+It.top,he,yt.height),nt||(ot+=yt.height+It.bottom+It.top)}}};function $i(){this.xa="Base"}Nn($i,xn),$i.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 zt=Math.max(z+ct,0),Zt=Math.max(nt+yt,0),he=a.isClipping,He=si.allocAt(-ut.left,-ut.top,zt,Zt),Le=si.allocAt(0,0,z,nt);Yi(at,Le,!0),z=Le.width,nt=Le.height;for(var Ve=!0,qe=Ha(a),rn=0;rn<ot;rn++){var Sn=b[rn];It=y;var Wn=x;if(Sn!==at&&(Sn.visible||Sn===qe)){ut=Sn.margin;var ir=ut.left,Nr=ut.top;switch(zt=ut.right+ut.left,Zt=ut.top+ut.bottom,ut=lh(Sn,!1),ut){case ki:It=z,Wn=nt,Nr=ir=Zt=zt=0;break;case Tr:It=z,ir=zt=0;break;case qr:Wn=nt,Nr=Zt=0}Sn.measure(It,Wn,0,0),It=Sn.measuredBounds,zt=Math.max(It.width+zt,0),Zt=Math.max(It.height+Zt,0),ut=Sn.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Mo);var mr=Sn.alignmentFocus;if(mr.Xb()&&(mr=Mo),Wn=null,Sn instanceof ci&&Sn.$e!==""&&(Wn=Sn.fb(Sn.$e),Wn===Sn&&(Wn=null)),ir=Le.x-ir,Nr=Le.y-Nr,Wn!==null){for(Sn.arrange(0,0,It.width,It.height),It=Wn.actualBounds,It=Ie.allocAt(It.x+(mr.x*It.width-mr.offsetX),It.y+(mr.y*It.height-mr.offsetY)),Wn=Wn.panel;Wn!==Sn;)Wn.transform.Ga(It),Wn=Wn.panel;ir+=ut.x*z+ut.offsetX-It.x,Nr+=ut.y*nt+ut.offsetY-It.y,Ie.free(It)}else ir+=ut.x*z+ut.offsetX-(mr.x*It.width+mr.offsetX),Nr+=ut.y*nt+ut.offsetY-(mr.y*It.height+mr.offsetY);Ve?(Ve=!1,E.h(ir,Nr,zt,Zt)):bs(E,ir,Nr,zt,Zt)}}switch(Ve?E.assign(He):he?E.Uu(Le.x,Le.y,Le.width,Le.height):bs(E,He.x,He.y,He.width,He.height),si.free(He),si.free(Le),ut=at.stretch,ut===vo&&(ut=lh(at,!1)),ut){case bi:return;case ki:if(!isFinite(y)&&!isFinite(x))return;break;case Tr:if(!isFinite(y))return;break;case qr:if(!isFinite(x))return}for(It=at.measuredBounds,z=It.width,nt=It.height,zt=Math.max(z+ct,0),Zt=Math.max(nt+yt,0),ut=at.margin,Le=si.allocAt(-ut.left,-ut.top,zt,Zt),Yi(at,Le,!0),z=Le.width,nt=Le.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==qe||(ut=x.margin,zt=ut.right+ut.left,Zt=ut.top+ut.bottom,It=x.measuredBounds,zt=Math.max(It.width+zt,0),Zt=Math.max(It.height+Zt,0),ct=x.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Mo),x=x.alignmentFocus,x.Xb()&&(x=Mo),Ve?(Ve=!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,zt,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,zt,Zt));Ve?E.assign(He):he?E.Uu(Le.x,Le.y,Le.width,Le.height):bs(E,He.x,He.y,He.width,He.height),si.free(Le)},$i.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=si.allocAt(0,0,nt,ot),Yi(E,nt,!1),ot=0;ot<b;ot++){var yt=y[ot];if(yt!==E){ut=yt.measuredBounds;var It=ut.width,zt=ut.height;ct=yt.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Mo);var Zt=yt.alignmentFocus;if(Zt.Xb()&&(Zt=Mo),ut=null,yt instanceof ci&&yt.$e!==""&&(ut=yt.fb(yt.$e),ut===yt&&(ut=null)),ut!==null){var he=ut.actualBounds;for(Zt=Ie.allocAt(he.x+(Zt.x*he.width-Zt.offsetX),he.y+(Zt.y*he.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,Ie.free(Zt)}else ut=ct.x*nt.width+ct.offsetX-(Zt.x*It+Zt.offsetX),ct=ct.y*nt.height+ct.offsetY-(Zt.y*zt+Zt.offsetY);ut+=nt.x-x.x,ct+=nt.y-x.y,yt.visible&&yt.arrange(z+ut,at+ct,It,zt)}}si.free(nt)};function Yi(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 Ni(){this.xa="Base"}Nn(Ni,xn),Ni.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,zt=ut.top+ut.bottom;at.measure(y,x,z,nt),ut=at.measuredBounds;var Zt=0,he=null;at instanceof Oo&&(he=at,Zt=he.strokeWidth*he.scale);var He=Math.max(ut.width+It,0);ut=Math.max(ut.height+zt,0);var Le=dd(at),Ve=Le.x*He+Le.offsetX;Le=Le.y*ut+Le.offsetY;var qe=Wh(at),rn=qe.x*He+qe.offsetX;for(qe=qe.y*ut+qe.offsetY,isFinite(y)&&(ct=Math.max(Math.abs(Ve-rn)-Zt,0)),isFinite(x)&&(yt=Math.max(Math.abs(Le-qe)-Zt,0)),Zt=Vi.alloc(),Zt.h(0,0),a=Ha(a),qe=0;qe<ot;qe++)Le=b[qe],Le===at||!Le.visible&&Le!==a||(ut=Le.margin,He=ut.right+ut.left,Ve=ut.top+ut.bottom,Le.measure(ct,yt,0,0),ut=Le.measuredBounds,He=Math.max(ut.width+He,0),ut=Math.max(ut.height+Ve,0),Zt.h(Math.max(He,Zt.width),Math.max(ut,Zt.height)));if(ot===1)E.width=He,E.height=ut,Vi.free(Zt);else{switch(Le=dd(at),qe=Wh(at),ot=b=0,qe.x!==Le.x&&qe.y!==Le.y&&(b=Zt.width/Math.abs(qe.x-Le.x),ot=Zt.height/Math.abs(qe.y-Le.y)),Vi.free(Zt),Zt=0,he!==null&&(Zt=he.strokeWidth*he.scale,Jg(he)===yr&&(b=ot=Math.max(b,ot))),b+=Math.abs(Le.offsetX)+Math.abs(qe.offsetX)+Zt,ot+=Math.abs(Le.offsetY)+Math.abs(qe.offsetY)+Zt,he=at.stretch,he===vo&&(he=lh(at,!1)),he){case bi:nt=z=0;break;case ki:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case Tr:isFinite(y)&&(b=y),nt=0;break;case qr: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+zt}},Ni.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=si.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=Wh(b),It=ct.y*E.height+ct.offsetY,zt=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,zt,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=Mo),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&&(zs(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 si(z.x,z.y,z.width,z.height))));si.free(z)};function Gr(){this.xa="Base",this.name="Table"}Nn(Gr,xn),Gr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=dr(),ot=dr(),at=0;at<z;at++){var ut=b[at],ct=ut instanceof ci?ut:null;if(ct!==null&&kl(ct)&&ut.visible){ot.push(ct);for(var yt=ct.O.s,It=yt.length,zt=0;zt<It;zt++){var Zt=yt[zt];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 he=[],He=0;He<z;He++){var Le=nt[He];Le.visible&&(Il(Le,!0),Wc(Le,!0),he[Le.row]||(he[Le.row]=[]),he[Le.row][Le.column]||(he[Le.row][Le.column]=[]),he[Le.row][Le.column].push(Le))}Mr(nt);var Ve=dr(),qe=dr(),rn=dr(),Sn={count:0},Wn={count:0},ir=y,Nr=x,mr=a.rowDefs,Ki=a.colDefs,Mi=null;z=mr.length;for(var No=0;No<z;No++)Mi=mr[No],Mi!==void 0&&(Mi.actual=0);z=Ki.length;for(var mo=0;mo<z;mo++)Mi=Ki[mo],Mi!==void 0&&(Mi.actual=0);for(var Is=he.length,ma=0,Ou=0;Ou<Is;Ou++)he[Ou]&&(ma=Math.max(ma,he[Ou].length));var Qu=Math.min(a.topIndex,Is-1),Uh=Math.min(a.leftIndex,ma-1),Du=0;Is=he.length;for(var Tf=Ha(a),ql=0;ql<Is;ql++)if(he[ql]){ma=he[ql].length;var mA=a.Fb(ql);mA.actual=0;for(var Rh=mA.oc=0;Rh<ma;Rh++)if(he[ql][Rh]){var Of=a.Eb(Rh);Ve[Rh]===void 0&&(Of.actual=0,Of.oc=0,Ve[Rh]=!0);for(var qc=he[ql][Rh],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&&(ql<Qu||Rh<Uh||qe.push(yc));var vA=yc.margin,Jp=vA.right+vA.left,Ic=vA.top+vA.bottom,_h=Da(yc,mA,Of,!1),Zm=yc.desiredSize,fp=!isNaN(Zm.height),RA=!isNaN(Zm.width)&&fp;if(Ag||_h===bi||RA||ql<Qu||Rh<Uh||(Sn[Rh]!==void 0||_h!==ki&&_h!==Tr||(Sn[Rh]=-1,Sn.count++),Wn[ql]!==void 0||_h!==ki&&_h!==qr||(Wn[ql]=-1,Wn.count++),rn.push(yc)),yc.measure(1/0,1/0,0,0),!(ql<Qu||Rh<Uh)){var wc=yc.measuredBounds,Dg=Math.max(wc.width+Jp,0),kc=Math.max(wc.height+Ic,0);if(yc.rowSpan===1&&(_h===bi||_h===Tr)){Mi=a.Fb(ql);var fg=Mi.Wc();Du=Math.max(kc-Mi.actual,0),Du+fg>Nr&&(Du=Math.max(Nr-fg,0));var av=Mi.oa===0;Mi.oc=Mi.oc+Du,Mi.actual=Mi.oa+Du,Nr=Math.max(Nr-(Du+(av?fg:0)),0)}if(yc.columnSpan===1&&(_h===bi||_h===qr)){Mi=a.Eb(Rh);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()}}}}}Mr(Ve);var of=0,Af=0;z=a.columnCount;for(var gp=0;gp<z;gp++){var gg=Ki[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=mr[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=Nr=Math.max(x-Af,0),Df=ir;z=rn.length;for(var xc=0;xc<z;xc++){var _A=rn[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;Sn[_A.column]=ff.oc===0&&Sn[_A.column]!==void 0?Math.max(tm.width+jg,Sn[_A.column]):null,Wn[_A.row]=lv.oc===0&&Wn[_A.row]!==void 0?Math.max(tm.height+HA,Wn[_A.row]):null}var pp=0,em=0,rA;for(rA in Wn)rA!=="count"&&(pp+=Wn[rA]);for(rA in Sn)rA!=="count"&&(em+=Sn[rA]);for(var ih=Vi.alloc(),$m=0;$m<z;$m++){var qh=rn[$m];if(qh.visible||qh===Tf){var tu=a.Fb(qh.row),tc=a.Eb(qh.column),gf=0;isFinite(tc.width)?gf=tc.width:(isFinite(ir)&&Sn[qh.column]!==null?em===0?gf=tc.actual+ir:gf=Sn[qh.column]/em*Df:Sn[qh.column]!==null?gf=ir:gf=tc.actual||ir,gf=Math.max(0,gf-tc.Wc()));var jf=0;switch(isFinite(tu.height)?jf=tu.height:(isFinite(Nr)&&Wn[qh.row]!==null?pp===0?jf=tu.actual+Nr:jf=Wn[qh.row]/pp*sf:Wn[qh.row]!==null?jf=Nr:jf=tu.actual||Nr,jf=Math.max(0,jf-tu.Wc())),ih.h(Math.max(tc.minimum,Math.min(gf,tc.maximum)),Math.max(tu.minimum,Math.min(jf,tu.maximum))),_h=Da(qh,tu,tc,!1),_h){case Tr:ih.height=Math.max(ih.height,tu.actual+Nr);break;case qr:ih.width=Math.max(ih.width,tc.actual+ir)}var Ug=qh.margin,by=Ug.right+Ug.left,uv=Ug.top+Ug.bottom;qh.Uj(),qh.measure(ih.width,ih.height,tc.minimum,tu.minimum);var nm=qh.measuredBounds,Rg=Math.max(nm.width+by,0),mp=Math.max(nm.height+uv,0);isFinite(ir)&&(Rg=Math.min(Rg,ih.width)),isFinite(Nr)&&(mp=Math.min(mp,ih.height));var Sc=0;Sc=tu.actual,tu.actual=Math.max(tu.actual,mp),tu.oc=Math.max(tu.oc,mp),Du=tu.actual-Sc,Nr=Math.max(Nr-Du,0),Wn[qh.row]===null&&(sf=Math.max(sf-Du,0)),Sc=tc.actual,tc.actual=Math.max(tc.actual,Rg),tc.oc=Math.max(tc.oc,Rg),Du=tc.actual-Sc,ir=Math.max(ir-Du,0),Sn[qh.column]===null&&(Df=Math.max(Df-Du,0))}}Mr(rn);var pf=Vi.alloc(),wA=dr(),vd=dr();if(z=qe.length,z!==0){for(var mg=0;mg<Is;mg++)if(he[mg]){ma=he[mg].length;var im=a.Fb(mg);wA[mg]=im.actual;for(var vg=0;vg<ma;vg++)if(he[mg][vg]){var hv=a.Eb(vg);vd[vg]=hv.actual}}}for(var rm=0;rm<z;rm++){var Rl=qe[rm];if(Rl.visible||Rl===Tf){var oA=a.Fb(Rl.row),Rd=a.Eb(Rl.column);switch(ih.h(Math.max(Rd.minimum,Math.min(y,Rd.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),_h=Da(Rl,oA,Rd,!1),_h){case ki:vd[Rd.index]!==0&&(ih.width=Math.min(ih.width,vd[Rd.index])),wA[oA.index]!==0&&(ih.height=Math.min(ih.height,wA[oA.index]));break;case Tr:vd[Rd.index]!==0&&(ih.width=Math.min(ih.width,vd[Rd.index]));break;case qr:wA[oA.index]!==0&&(ih.height=Math.min(ih.height,wA[oA.index]))}isFinite(Rd.width)&&(ih.width=Rd.width),isFinite(oA.height)&&(ih.height=oA.height),pf.h(0,0);for(var cv=Rd.minimum,Tc=oA.minimum,Uf=1;Uf<Rl.rowSpan&&!(Rl.row+Uf>=a.rowCount);Uf++)Mi=a.Fb(Rl.row+Uf),Du=0,Du=_h===ki||_h===qr?Math.max(Mi.minimum,wA[Rl.row+Uf]===0?Mi.maximum:Math.min(wA[Rl.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<Rl.columnSpan&&!(Rl.column+_d>=a.columnCount);_d++)Mi=a.Eb(Rl.column+_d),Du=0,Du=_h===ki||_h===Tr?Math.max(Mi.minimum,vd[Rl.column+_d]===0?Mi.maximum:Math.min(vd[Rl.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;ih.width+=pf.width,ih.height+=pf.height;var om=Rl.margin,yg=om.right+om.left,Ym=om.top+om.bottom;Rl.measure(ih.width,ih.height,cv,Tc);for(var sm=Rl.measuredBounds,QA=Math.max(sm.width+yg,0),_g=Math.max(sm.height+Ym,0),wg=0,am=0;am<Rl.rowSpan&&!(Rl.row+am>=a.rowCount);am++)Mi=a.Fb(Rl.row+am),wg+=Mi.total||0;if(wg<_g){var Rf=_g-wg,af=_g-wg;if(Rl.spanAllocation!==null)for(var _f=Rl.spanAllocation,mf=0;mf<Rl.rowSpan&&!(0>=Rf)&&!(Rl.row+mf>=a.rowCount);mf++){Mi=a.Fb(Rl.row+mf);var Hf=Mi.oa||0,Hg=_f(Rl,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<Rl.columnSpan&&!(Rl.column+Qf>=a.columnCount);Qf++)Mi=a.Eb(Rl.column+Qf),vp+=Mi.total||0;if(vp<QA){var yp=QA-vp,Ey=QA-vp;if(Rl.spanAllocation!==null)for(var vf=Rl.spanAllocation,Qg=0;Qg<Rl.columnSpan&&!(0>=yp)&&!(Rl.column+Qg>=a.columnCount);Qg++){Mi=a.Eb(Rl.column+Qg);var Jm=Mi.oa||0,Fy=vf(Rl,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)}}}}Mr(qe),Vi.free(pf),Vi.free(ih),wA!==void 0&&Mr(wA),vd!==void 0&&Mr(vd);var wp=0,xp=0,Av=a.desiredSize,xw=a.maxSize;_h=lh(a,!0);var qm=Af=of=0,t0=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Ki[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=_h!==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++)Ki[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++)mr[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=_h!==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++)mr[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),Il(e0,!1)}Mr(ot),a.inRowsCols=he},Gr.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,zt=Math.min(a.topIndex,ut-1);if(0<at.length){for(;zt!==ut&&(at[zt]===void 0||at[zt].oa===0);)zt++;zt=Math.max(Math.min(zt,ut-1),0),yt=-at[zt].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 he=0,He=0;he!==ut&&at[he]===void 0;)he++;for(;He!==ut&&ot[He]===void 0;)He++;ct=a.part,a.Fb(he),a.Eb(He);for(var Le=0;Le<y.length;Le++){var Ve=y[Le];if(Ve instanceof ci&&Ve.visible&&kl(Ve)){if(Ve.type===ci.TableRow){ot=a.Fb(Ve.row);var qe=a.Eb(He)}else ot=a.Fb(he),qe=a.Eb(Ve.column);at=ot.position+yt+E,ot.oa!==0&&(at+=ot.Io(Math.max(he,zt))),ot=qe.position+It+z,qe.oa!==0&&(ot+=qe.Io(Math.max(He,Zt))),qe=Ve.measuredBounds,Ve.Uk(),Ve.actualBounds.ka();var rn=Ve.actualBounds,Sn=si.allocAt(rn.x,rn.y,rn.width,rn.height);rn.x=Ve.type===ci.TableRow?z:ot,rn.y=Ve.type===ci.TableColumn?E:at,rn.width=qe.width,rn.height=qe.height,Ve.actualBounds.freeze(),Wc(Ve,!1),Hh(Sn,rn)||ct===null||(ct.oh(),Ve.Pn(ct)),si.free(Sn)}}for(Le=Vi.alloc(),Ve=0;Ve<ut;Ve++)if(nt[Ve]){for(ct=nt[Ve].length,qe=a.Fb(Ve),at=qe.position+yt+E,qe.oa!==0&&(at+=qe.Io(Math.max(he,zt))),rn=0;rn<ct;rn++)if(nt[Ve][rn]){Sn=a.Eb(rn),ot=Sn.position+It+z,Sn.oa!==0&&(ot+=Sn.Io(Math.max(He,Zt)));for(var Wn=nt[Ve][rn],ir=Wn.length,Nr=0;Nr<ir;Nr++){var mr=Wn[Nr],Ki=mr.measuredBounds;Le.h(0,0);for(var Mi=1;Mi<mr.rowSpan&&!(Ve+Mi>=a.rowCount);Mi++){var No=a.Fb(Ve+Mi);No.oa!==0&&(Le.height+=No.total)}for(Mi=1;Mi<mr.columnSpan&&!(rn+Mi>=a.columnCount);Mi++)No=a.Eb(rn+Mi),No.oa!==0&&(Le.width+=No.total);var mo=Sn.oa+Le.width,Is=qe.oa+Le.height;Mi=ot,No=at;var ma=mo,Ou=Is,Qu=ot,Uh=at,Du=mo,Tf=Is;ot+mo>x.width&&(Du=Math.max(x.width-ot,0)),at+Is>x.height&&(Tf=Math.max(x.height-at,0));var ql=mr.alignment;if(ql.Xb()){ql=a.defaultAlignment,ql.sb()||(ql=Mo);var mA=ql.x,Rh=ql.y,Of=ql.offsetX;ql=ql.offsetY;var qc=Sn.alignment,Ud=qe.alignment;qc.sb()&&(mA=qc.x,Of=qc.offsetX),Ud.sb()&&(Rh=Ud.y,ql=Ud.offsetY)}else mA=ql.x,Rh=ql.y,Of=ql.offsetX,ql=ql.offsetY;(isNaN(mA)||isNaN(Rh))&&(Rh=mA=.5,ql=Of=0),qc=Ki.width,Ud=Ki.height;var Nc=mr.margin,yc=Nc.left+Nc.right,Ag=Nc.top+Nc.bottom,vA=Da(mr,qe,Sn,!1);!isNaN(mr.desiredSize.width)||vA!==ki&&vA!==Tr||(qc=Math.max(mo-yc,0)),!isNaN(mr.desiredSize.height)||vA!==ki&&vA!==qr||(Ud=Math.max(Is-Ag,0)),mo=mr.maxSize,Is=mr.minSize,qc=Math.min(mo.width,qc),Ud=Math.min(mo.height,Ud),qc=Math.max(Is.width,qc),Ud=Math.max(Is.height,Ud),mo=Ud+Ag,Mi+=ma*mA-(qc+yc)*mA+Of+Nc.left,No+=Ou*Rh-mo*Rh+ql+Nc.top,mr.visible&&(zs(Qu,Uh,Du,Tf,Mi,No,Ki.width,Ki.height)?mr.arrange(Mi,No,qc,Ud):mr.arrange(Mi,No,qc,Ud,new si(Qu,Uh,Du,Tf)))}}}for(Vi.free(Le),a=0;a<b;a++)x=y[a],z=x instanceof ci?x:null,z!==null&&kl(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Ir(){this.xa="Base"}Nn(Ir,xn),Ir.prototype.measure=function(){},Ir.prototype.arrange=function(){};function Hi(){this.xa="Base"}Nn(Hi,xn),Hi.prototype.measure=function(){},Hi.prototype.arrange=function(){};function Ui(){this.xa="Base"}Nn(Ui,xn),Ui.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&tn("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),zt=Math.max(x-at,0),Zt=1;a.viewboxStretch===yr?yt!==0&&ot!==0&&(Zt=Math.min(It/yt,zt/ot)):yt!==0&&ot!==0&&(Zt=Math.max(It/yt,zt/ot)),Zt===0&&(Zt=1e-4),b.Ca*=Zt,ct!==b.scale&&(Il(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=Mo),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 Kr(){this.xa="Base"}Nn(Kr,xn),Kr.prototype.measure=function(){},Kr.prototype.arrange=function(){},Kr.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 zt=[],Zt=a.O.s,he=Zt.length,He=0;He<he;He++){var Le=Zt[He],Ve=[];if(zt.push(Ve),Le.visible){var qe=Le.interval;if(!(0>qe)){Le=Ga(Le.figure);for(var rn=0;rn<he;rn++)if(rn!==He){var Sn=Zt[rn];Sn.visible&&Ga(Sn.figure)===Le&&(Sn=Sn.interval,Sn>qe&&Ve.push(Sn))}}}}for(Zt=a.O.s,he=Zt.length,He=0;He<he;He++){var Wn=Zt[He];if(Wn.visible&&(Ve=Wn.interval||1,Le=Math.abs(Ve),!(2>E*Le*x))){if(qe=Wn.segmentIndex,(!isFinite(qe)||isNaN(qe))&&(qe=0),0>qe&&(qe=Le-Math.min(-qe,Le)),qe=Math.round(qe%Le),Le=Wn.opacity,rn=1,Le!==1){if(Le===0)continue;rn=y.globalAlpha,y.globalAlpha=rn*Le}Sn=zt[He];var ir=!1,Nr=Wn.strokeDashArray;if(Nr!==null&&(ir=!0,y.js(Nr,Wn.strokeDashOffset)),Wn.figure==="LineV"&&Wn.stroke!==null&&0<Wn.strokeWidth){for(y.lineWidth=Wn.strokeWidth,Ca(a,y,Wn.stroke,!1,!1,z,nt),y.beginPath(),Nr=Wn=Math.floor((It-E)/E);Nr<=Wn+ut;Nr++){var mr=Nr*E+It;0<=mr&&mr<=ot&&lo(Nr,Ve,qe,Sn)&&(y.moveTo(mr,0),y.lineTo(mr,at))}y.stroke(),y.Se()}else if(Wn.figure==="LineH"&&Wn.stroke!==null&&0<Wn.strokeWidth){for(y.lineWidth=Wn.strokeWidth,Ca(a,y,Wn.stroke,!1,!1,z,nt),y.beginPath(),Nr=Wn=Math.floor((yt-b)/b);Nr<=Wn+ct;Nr++)mr=Nr*b+yt,0<=mr&&mr<=at&&lo(Nr,Ve,qe,Sn)&&(y.moveTo(0,mr),y.lineTo(ot,mr));y.stroke(),y.Se()}else if(Wn.figure==="BarV"&&Wn.fill!==null)for(Ca(a,y,Wn.fill,!0,!1,z,nt),Wn=Wn.width,isNaN(Wn)&&(Wn=E),mr=Nr=Math.floor((It-E)/E);mr<=Nr+ut;mr++){var Ki=mr*E+It;0<=Ki+Wn&&Ki<=ot&&lo(mr,Ve,qe,Sn)&&y.fillRect(Ki,0,Wn,at)}else if(Wn.figure==="BarH"&&Wn.fill!==null)for(Ca(a,y,Wn.fill,!0,!1,z,nt),Wn=Wn.height,isNaN(Wn)&&(Wn=b),mr=Nr=Math.floor((yt-b)/b);mr<=Nr+ct;mr++)Ki=mr*b+yt,0<=Ki+Wn&&Ki<=at&&lo(mr,Ve,qe,Sn)&&y.fillRect(0,Ki,ot,Wn);ir&&y.fs(),Le!==1&&(y.globalAlpha=rn)}}y.restore(),y.Vc(!1)};function lo(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 Xr(){this.xa="Base"}Nn(Xr,xn),Xr.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ls||a instanceof Gi){var nt=null,ot=null;if(a instanceof Gi&&(nt=a),a instanceof Ls&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Gi){var at=nt;if(z===0)Ia(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ut=a instanceof Ls?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,zt=a.j;if(zt.length=0,ut!==null){as(a,ot,It,ut);var Zt=ut.measuredBounds;x.ed(Zt),zt.push(Zt)}Zt=Qo.alloc();for(var he=Ie.alloc(),He=Ie.alloc(),Le=0;Le<z;Le++){var Ve=b[Le];if(Ve!==ut)if(Ve.isPanelMain&&Ve instanceof Oo){as(a,ot,It,Ve);var qe=Ve.measuredBounds;x.ed(qe),zt.push(qe)}else if(2>yt)Ve.measure(1/0,1/0,0,0),qe=Ve.measuredBounds,x.ed(qe),zt.push(qe);else{var rn=Ve.segmentIndex,Sn=Ve.segmentFraction,Wn=Ve.alignmentFocus;Wn.Mc()&&(Wn=Mo);var ir=Ve.segmentOrientation,Nr=Ve.segmentOffset;if(isNaN(rn)){var mr=at.ua;qe=dr(),mr.Qu(Sn,qe);var Ki=Ie.allocAt(qe[0],qe[1]);if(Ki.add(at.i(0)),mr.type===Wi.j?Ki.offset(-mr.startX,-mr.startY):(mr=mr.figures.first(),mr!==null&&Ki.offset(-mr.startX,-mr.startY)),mr=qe[2],ir!==Zh){var Mi=at.computeAngle(Ve,ir,mr);Ve.Kb=Mi}Mi=Ki.x-y.x;var No=Ki.y-y.y;Ie.free(Ki),Mr(qe)}else if(rn<-yt||rn>=yt)qe=Ie.alloc(),at.vg(),at.computeMidPoint(qe),mr=at.midAngle,ir!==Zh&&(Mi=at.computeAngle(Ve,ir,mr),Ve.Kb=Mi),Mi=qe.x-y.x,No=qe.y-y.y,Ie.free(qe);else{if(Mi=0,0<=rn?(No=ct.M(rn),qe=rn<yt-1?ct.M(rn+1):No):(Mi=yt+rn,No=ct.M(Mi),qe=0<Mi?ct.M(Mi-1):No),No.Xa(qe)){0<=rn?(mr=0<rn?ct.M(rn-1):No,Mi=rn<yt-2?ct.M(rn+2):qe):(mr=Mi<yt-1?ct.M(Mi+1):No,Mi=1<Mi?ct.M(Mi-2):qe),Ki=mr.Bf(No);var mo=qe.Bf(Mi);mr=Ki>mo+10?0<=rn?mr.ab(No):No.ab(mr):mo>Ki+10?0<=rn?qe.ab(Mi):Mi.ab(qe):0<=rn?mr.ab(Mi):Mi.ab(mr)}else mr=0<=rn?No.ab(qe):qe.ab(No);ir!==Zh&&(Mi=at.computeAngle(Ve,ir,mr),Ve.Kb=Mi),Mi=No.x+(qe.x-No.x)*Sn-y.x,No=No.y+(qe.y-No.y)*Sn-y.y}Ve.measure(1/0,1/0,0,0),qe=Ve.measuredBounds,Ki=Ve.naturalBounds;var Is=0;Ve instanceof Oo&&(Is=Ve.strokeWidth),mo=Ki.width+Is;var ma=Ki.height+Is;Zt.reset(),Zt.translate(-qe.x,-qe.y),Zt.scale(Ve.scale,Ve.scale),Zt.rotate(ir===Zh?Ve.angle:mr,mo/2,ma/2),ir!==xm&&ir!==Cm||Zt.rotate(90,mo/2,ma/2),ir!==Sm&&ir!==Bm||Zt.rotate(-90,mo/2,ma/2),ir===y0&&(45<mr&&135>mr||225<mr&&315>mr)&&Zt.rotate(-mr,mo/2,ma/2),Ki=new si(0,0,mo,ma),he.xi(Ki,Wn),Zt.Ga(he),Wn=-he.x+Is/2*Ve.scale,Ve=-he.y+Is/2*Ve.scale,He.assign(Nr),Is=isNaN(Nr.x);var Ou=isNaN(Nr.y);if(Is||Ou){mo=mo/2+3,ma=ma/2+3;var Qu=45<=mr&&135>=mr,Uh=225<=mr&&315>=mr;ir===Zh&&(Qu||Uh)?(He.x=Ou?mo:Nr.y,He.y=Is?ma:Nr.x,Qu?0<=rn||isNaN(rn)&&.5>Sn||!Is||(He.y=-ma):Uh&&((0<=rn||isNaN(rn)&&.5>Sn)&&Is&&(He.y=-ma),Ou&&(He.x=-mo))):(Is&&(He.x=0<=rn||isNaN(rn)&&.5>Sn?mo:-mo),Ou&&(He.y=-ma),He.rotate(mr))}else He.rotate(mr);Mi+=He.x,No+=He.y,Ki.set(qe),Ki.h(Mi+Wn,No+Ve,qe.width,qe.height),zt.push(Ki),x.ed(Ki)}}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),Ia(E,x.width||0,x.height||0),Qo.free(Zt),Ie.free(he),Ie.free(He)}}}},Xr.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ls||a instanceof Gi){var b=a,E=null;a instanceof Ls&&(E=a,b=E.adornedPart);var z=a instanceof Ls?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 Gi)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 zt=yt.ua,Zt=dr();zt.Qu(at,Zt);var he=Ie.allocAt(Zt[0],Zt[1]);he.add(yt.i(0)),zt.type===Wi.j||(zt=zt.figures.first()),he.offset(-zt.startX,-zt.startY),zt=Zt[2],ut!==Zh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=he.x;var He=he.y;Ie.free(he),Mr(Zt)}else if(ot<-x||ot>=x)Zt=Ie.alloc(),zt=yt,He=Zt,zt.vg(),zt.computeMidPoint(He),zt=yt.midAngle,ut!==Zh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=Zt.x,He=Zt.y,Ie.free(Zt);else{if(he=0,0<=ot?(Zt=y.s[ot],He=ot<x-1?y.s[ot+1]:Zt):(he=x+ot,Zt=y.s[he],He=0<he?y.s[he-1]:Zt),Zt.Xa(He)){0<=ot?(zt=0<ot?y.s[ot-1]:Zt,he=ot<x-2?y.s[ot+2]:He):(zt=he<x-1?y.s[he+1]:Zt,he=1<he?y.s[he-2]:He);var Le=zt.Bf(Zt),Ve=He.Bf(he);zt=Le>Ve+10?0<=ot?zt.ab(Zt):Zt.ab(zt):Ve>Le+10?0<=ot?He.ab(he):he.ab(He):0<=ot?zt.ab(he):he.ab(zt)}else zt=0<=ot?Zt.ab(He):He.ab(Zt);ut!==Zh&&(yt=yt.computeAngle(nt,ut,zt),nt.angle=yt),yt=Zt.x+(He.x-Zt.x)*at,He=Zt.y+(He.y-Zt.y)*at}if(It.ys())nt.location=new Ie(yt,He);else{It.Mc()&&(It=Mo),Zt=Qo.alloc(),Zt.reset(),Zt.scale(nt.scale,nt.scale),Zt.rotate(nt.angle,0,0);var qe=nt.naturalBounds;he=si.allocAt(0,0,qe.width,qe.height),Le=Ie.alloc(),Le.xi(he,It),Zt.Ga(Le),It=-Le.x,Ve=-Le.y;var rn=qe.width,Sn=qe.height;qe=Ie.alloc(),qe.assign(ct);var Wn=isNaN(ct.x),ir=isNaN(ct.y);if(Wn||ir){rn=rn/2+3,Sn=Sn/2+3;var Nr=45<=zt&&135>=zt,mr=225<=zt&&315>=zt;ut===Zh&&(Nr||mr)?(qe.x=ir?rn:ct.y,qe.y=Wn?Sn:ct.x,Nr?0<=ot||isNaN(ot)&&.5>at||!Wn||(qe.y=-Sn):mr&&((0<=ot||isNaN(ot)&&.5>at)&&Wn&&(qe.y=-Sn),ir&&(qe.x=-rn))):(Wn&&(qe.x=0<=ot||isNaN(ot)&&.5>at?rn:-rn),ir&&(qe.y=-Sn),qe.rotate(zt))}else qe.rotate(zt);yt+=qe.x,He+=qe.y,Zt.pp(he),It+=he.x,Ve+=he.y,ot=Ie.allocAt(yt+It,He+Ve),nt.move(ot),Ie.free(ot),Ie.free(qe),Ie.free(Le),si.free(he),Qo.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),Ie.free(b)}};function as(a,y,x,b){if(wh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ls&&a.type===ci.Link&&a.adornedObject instanceof Oo&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Gi&&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 Ls&&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),Il(b,!1)}}function ts(){this.xa="Base"}Nn(ts,xn),ts.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 si(-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 zt=ot.geometry,Zt=ot.strokeWidth,he=zt.flattenedSegments,He=zt.flattenedLengths,Le=zt.flattenedTotalLength,Ve=he.length,qe=0,rn=0,Sn=dr(),Wn=0;Wn<Ve;Wn++){var ir=he[Wn],Nr=[];rn=qe=0;for(var mr=ir.length,Ki=0;Ki<mr;Ki+=2){var Mi=ir[Ki],No=ir[Ki+1];if(Ki!==0){var mo=180*Math.atan2(No-rn,Mi-qe)/Math.PI;0>mo&&(mo+=360),Nr.push(mo)}qe=Mi,rn=No}Sn.push(Nr)}if(a.graduatedIntervals===null){for(var Is=[],ma=a.O.s,Ou=ma.length,Qu=0;Qu<Ou;Qu++){var Uh=ma[Qu],Du=[];if(Is.push(Du),Uh.visible){var Tf=Uh.interval;if(!(0>Tf)){for(var ql=0;ql<Ou;ql++)if(ql!==Qu){var mA=ma[ql];if(mA.visible&&Uh.constructor===mA.constructor){var Rh=mA.interval;Rh>Tf&&Du.push(Rh)}}}}}a.graduatedIntervals=Is}var Of=a.graduatedIntervals,qc=a.O.s,Ud=qc.length,Nc=0,yc=0,Ag=Le;a.graduatedMarks=[];for(var vA,Jp=0;Jp<Ud;Jp++){var Ic=qc[Jp];if(vA=[],Ic.visible&&Ic!==ot){var _h=Math.abs(Ic.interval),Zm=a.graduatedTickUnit;if(!(2>Zm*_h*Le/a.graduatedRange&&Ic.graduatedSkip===null)){var fp=He[0][0],RA=0,wc=0;yc=Le*Ic.graduatedStart-1e-4,Ag=Le*Ic.graduatedEnd+1e-4;var Dg=Zm*_h,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 aa&&!Ic.graduatedSkip(kc,Ic)||Ic instanceof Oo&&!Ic.graduatedSkip(kc,Ic))&&(Nc=(kc-a.graduatedMin)*Le/a.graduatedRange,Nc>Le&&(Nc=Le),yc<=Nc&&Nc<=Ag)){for(var sf=Sn[RA][wc],Df=He[RA][wc];RA<He.length;){for(;Nc>fp&&wc<He[RA].length-1;)wc++,sf=Sn[RA][wc],Df=He[RA][wc],fp+=Df;if(Nc<=fp)break;RA++,wc=0,sf=Sn[RA][wc],Df=He[RA][wc],fp+=Df}var xc=he[RA],_A=xc[2*wc],lv=xc[2*wc+1],ff=(Nc-(fp-Df))/Df,tm=new Ie(_A+(xc[2*wc+2]-_A)*ff+Zt/2-zt.bounds.x,lv+(xc[2*wc+3]-lv)*ff+Zt/2-zt.bounds.y);tm.scale(ot.scale,ot.scale);t:{var yA=sf,jg=Sn[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 aa){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)}Mr(Sn);var ih=a.graduatedMarks;if(ih!==null)for(var $m=b.length,qh=0;qh<$m;qh++){var tu=b[qh],tc=ih[qh];if(tu.visible&&tu!==ot&&tc.length!==0){if(tu instanceof Oo){var gf=a,jf=E,Ug=tu.alignmentFocus;Ug.Mc()&&(Ug=bl);var by=tu.angle;tu.Kb=0,tu.measure(1/0,1/0,0,0),tu.Kb=by;var uv=tu.measuredBounds,nm=uv.width,Rg=uv.height,mp=si.allocAt(0,0,nm,Rg),Sc=Ie.alloc();Sc.xi(mp,Ug),si.free(mp);for(var pf=-Sc.x,wA=-Sc.y,vd=new si,mg=tc.length,im=0;im<mg;im++)for(var vg=tc[im],hv=vg.$l.x,rm=vg.$l.y,Rl=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(Rl+tu.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(-Rl-tu.angle)}Ie.free(Sc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(vd),bs(jf,vd.x,vd.y,vd.width,vd.height)}else if(tu instanceof aa){var Rd=a,cv=E;Rd.temporaryTextBlock===null&&(Rd.temporaryTextBlock=new aa);var Tc=Rd.temporaryTextBlock;Eg(Tc,tu);var Uf=tu.alignmentFocus;Uf.Mc()&&(Uf=bl);for(var _d=tu.segmentOrientation,om=tu.segmentOffset,yg=new si,Ym=0,sm=0,QA=0,_g=0,wg=0,am=tc.length,Rf=0;Rf<am;Rf++){var af=tc[Rf];Ym=af.$l.x,sm=af.$l.y,QA=af.angle,wg=_g=tu.angle,_d!==Zh&&(wg=_d===wm||_d===v0?QA+tu.angle:QA,_g=Gi.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=Qo.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=si.allocAt(0,0,Hf,Hg),Qf=Ie.alloc();Qf.xi(vp,Uf),xA.Ga(Qf);var yp=-Qf.x,Ey=-Qf.y,vf=Ie.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 si(Ym,sm,_f.width,_f.height),Jm=new si(_f.x,_f.y,_f.width,_f.height),Fy=new si(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),Ie.free(vf),Ie.free(Qf),si.free(vp),Qo.free(xA)}Rd.graduatedBounds!==null&&Rd.graduatedBounds.push(yg),bs(cv,yg.x,yg.y,yg.width,yg.height)}Il(tu,!1)}}},ts.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}}},ts.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 eh,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],zt=ut[yt],Zt=zt.length;if(It.visible&&It!==z&&zt.length!==0){if(It instanceof Oo){if(!(2>a.graduatedTickUnit*It.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&It.graduatedSkip===null)){var he=It.measuredBounds,He=It.strokeWidth*It.scale,Le=It.alignmentFocus;Le.Mc()&&(Le=bl);for(var Ve=0;Ve<Zt;Ve++){var qe=zt[Ve].$l,rn=zt[Ve].angle,Sn=Le,Wn=It.Ab;Wn.reset(),Wn.translate(qe.x+ot.x,qe.y+ot.y),Wn.rotate(rn+It.angle,0,0),Wn.translate(-he.width*Sn.x+Sn.offsetX+He/2,-he.height*Sn.y+Sn.offsetY+He/2),Wn.scale(It.scale,It.scale),lc(It,!1),It.wh.set(It.Ab),It.Kk=It.scale,uh(It,!1),It.gc(y,x),E&&(a.svg.appendChild(It.svg),It.svg=null),It.Ab.reset()}}}else if(It instanceof aa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new aa),he=a.temporaryTextBlock,Eg(he,It),He=0;He<Zt;He++)Le=zt[He],Le.actualBounds&&Le.measuredBounds&&Le.naturalBounds&&(he.ec=Le.text||"",he.Kb=Le.Sz||0,he.Gc=Le.lineCount||0,Ve=Le.lines,Ve!==void 0&&(he.Cb=Ve[0],he.Ih=Ve[1],he.df=Ve[2],he.Le=Ve[3],he.Qc=Ve[4],he.Qb=Ve[5],he.ze=Ve[6]),Le.naturalBounds&&(he.dc=Le.naturalBounds),Le.actualBounds&&(Ve=Le.actualBounds,he.arrange(Ve.x,Ve.y,Ve.width,Ve.height)),Ve=Le.actualBounds,he.arrange(Ve.x,Ve.y,Ve.width,Ve.height),qe=Le.measuredBounds,Le=Le.naturalBounds,rn=he.Ab,rn.reset(),rn.translate(Ve.x+ot.x,Ve.y+ot.y),rn.translate(-qe.x,-qe.y),he.no(rn,Le.x,Le.y,Le.width,Le.height),lc(he,!1),he.wh.set(he.Ab),he.Kk=he.scale,uh(he,!1),he.Ng=It.part,he.Me=It.panel,he.gc(y,x),he.Me=null,he.Ng=null,E&&(a.svg.appendChild(he.svg),he.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function ci(a,y){if(pn.call(this),this.na=null,a===void 0)this.na=ci.Position;else if(typeof a=="string"){var x=hh.I(a);x!==null&&(this.na=x)}else a instanceof xn?this.na=a:a&&(this.na=ci.Position,y=a);this.na===null&&tn("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ci.Grid?1048576:0),this.O=new Pi,this.yb=Su,this.Tm=Fs,this.Uf=vo,this.$g=null,this.$e="",this.jg=new si(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=yr,this.jn=Ho,this.kn=cs,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Nn(ci,pn),ci.prototype.cloneProtected=function(a){pn.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){pn.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=pn.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(gl,"elements",a,null,E,null,nt)}}return a}return null},Xt=ci.prototype,Xt.toString=function(){return"Panel("+this.type.name+")#"+xs(this)},Xt.Pn=function(a){pn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Xt.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 eh){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){Ca(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=il(a,!0),ut=il(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 zt=yt.Wc(),Zt=yt.separatorStrokeWidth;isNaN(Zt)&&(Zt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var he=yt.separatorStroke;he===null&&(he=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(he===null||yt.index===(x?at:ut))&&(Zt=0),zt-=Zt,Zt=yt.position+Zt,zt+=yt.actual,Zt+zt>It&&(zt=It-Zt),0>=zt||(It=a.yb,Ca(a,y,yt.background,!0,!1,ot,nt),x?y.fillRect(It.left,Zt+It.top,nt.width-(It.left+It.right),zt):y.fillRect(Zt+It.left,It.top,zt,nt.height-(It.top+It.bottom)))}}}}function il(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 Ga(a){return a==="LineV"||a==="BarV"}Xt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Xt.kk=function(a,y,x){if(!pn.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},Xt.nk=function(){return!0},Xt.$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 pn.prototype.$o.call(this,a,y,x,b)},Xt.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),zt=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+zt,a=x*at+b*ct+It,at=x*ut+b*yt+zt,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,zt=It=0),ot=a*at+y*ct+It,a=a*ut+y*yt+zt,at=x*at+b*ct+It,x=x*ut+b*yt+zt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ut=!1,yt=this.O.s,zt=yt.length,ct=Ie.alloc(),It=null,y=1/0;var Zt=null,he=this.isClipping&&this.na===ci.Spot;he&&(Zt=Ie.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 He=0;He<zt;He++){var Le=yt[He];Le.visible&&Le!==It&&Le.Sj(ot,a,at,x,ct)&&(ut=!0,Le=(ot-ct.x)*(ot-ct.x)+(a-ct.y)*(a-ct.y),Le<b&&(b=Le,E.set(ct)))}return he&&(y>b&&E.set(Zt),Ie.free(Zt)),Ie.free(ct),z&&E.transform(nt),ut},Xt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();pn.prototype.Gj.call(this)},Xt.v=function(a){if(!wh(this)){pn.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=lh(E,!1);(E instanceof Vh||E instanceof ci||E instanceof aa||z!==bi)&&E.v(!0)}}}},Xt.Uj=function(){if(!wh(this)){Il(this,!0),Wc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Xt.Uk=function(){if(!(this.l&2048)){lc(this,!0),uh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Xt.Wu=function(){uh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Xt.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),Ia(E,a,at),Ia(this.naturalBounds,a,at),this.Ge(0,0,a,at)},Xt.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 Ha(a){return a.part!==null?a.part.locationObject:null}Xt.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=lh(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 ki:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case Tr:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case qr:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},Xt.gh=function(a){var y=this.naturalBounds,x=Ha(this);if(zs(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ie.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(xo(E.set(a),z.transform),z.ca(E)))return Ie.free(E),!0}return Ie.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Xt.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},Xt.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 dl(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 Gh(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)}}Xt.Nl=function(a){return jh(this,this,a)};function jh(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=jh(a,y[E],x);if(z!==null)return z}}return null}Xt.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 Oo&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Xt.se=function(){return!(this.type===ci.TableRow||this.type===ci.TableColumn)};function kl(a){return a.type===ci.TableRow||a.type===ci.TableColumn}Xt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),th(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:xo(Ie.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ut=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ut=at/2),zs(-(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=Ie.alloc(),ut=(at=this.isClipping&&this.na===ci.Spot)?this.Pb():null,at&&(ut.se()?xo(ot.set(a),ut.transform):ot.set(a),!ut.ca(ot)))return Ie.free(ot),z||Ie.free(nt),null;for(var yt=Ha(this);ct--;){var It=E[ct];if((It.visible||It===yt)&&(It.se()?xo(ot.set(a),It.transform):ot.set(a),!at||It!==ut)){var zt=null;if(It instanceof ci?zt=It.ic(ot,y,x):It.pickable===!0&&It.ca(ot)&&(zt=It),zt!==null&&(y!==null&&(zt=y(zt)),zt!==null&&(x===null||x(zt))))return Ie.free(ot),z||Ie.free(nt),zt}}Ie.free(ot)}return this.background===null&&this.areaBackground===null?(z||Ie.free(nt),null):(a=zs(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||Ie.free(nt),a)}return z||Ie.free(nt),null},Xt.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:xo(Ie.allocAt(a.x,a.y),this.transform);if(E=zs(0,0,E.width,E.height,nt.x,nt.y),kl(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ut=Ie.alloc(),ct=Ha(this);at--;){var yt=ot[at];if(yt.visible||yt===ct){yt.se()?xo(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))}}Ie.free(ut)}return z||Ie.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||Ie.free(nt),!1},Xt.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=Qo.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Qo.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=Ha(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=Qo.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)),Qo.free(It))}}return z===void 0&&Qo.free(nt),b}return z===void 0&&Qo.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))}}}Xt.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:xo(Ie.allocAt(a.x,a.y),this.transform),ut=ot?y:xo(Ie.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||(Ie.free(at),Ie.free(ut)),yt){if(!this.isAtomic){at=Ie.alloc(),ut=Ie.alloc(),ct=Ha(this);for(var It=this.O.s,zt=It.length;zt--;){var Zt=It[zt];if(Zt.visible||Zt===ct){var he=Zt.actualBounds,He=this.naturalBounds;(!ot||!(he.x>He.width||he.y>He.height||0>he.x+he.width||0>he.y+he.height))&&(Zt.se()?(he=Zt.transform,xo(at.set(a),he),xo(ut.set(y),he)):(at.set(a),ut.set(y)),he=Zt,Zt=Zt instanceof ci?Zt:null,(Zt!==null?Zt.og(at,ut,x,b,E,z):he.tx(at,ut,E))&&(x!==null&&(he=x(he)),he===null||b!==null&&!b(he)||z.add(he)))}}Ie.free(at),Ie.free(ut)}return E?yt:nt}return!1};function dd(a){var y=null;return a instanceof Oo&&(y=a.spot1,y===Fs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=rl),y}function Wh(a){var y=null;return a instanceof Oo&&(y=a.spot2,y===Fs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=$l),y}Xt.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},Xt.M=function(a){return this.O.M(a)},Xt.Gb=function(a,y){y instanceof Vr&&tn("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&tn("Cannot make a Panel contain itself: "+this.toString()),tn("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&tn("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 Oo||tn("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ci.Graduated||y instanceof Oo||y instanceof aa||tn("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 wr),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 tn("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),wh(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(Hl,"elements",this,y,null,b,null),x.cb(gl,"elements",this,null,y,null,a)))};function uc(a,y){a.l=y?a.l|16777216:a.l&-16777217}Xt.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)},Xt.mb=function(a){0<=a&&this.pc(a,!0)},Xt.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),Il(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(Hl,"elements",this,b,null,a,null))},Xt.Fb=function(a){0>a&&Li(a,">= 0",ci,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Vl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(gl,"rowdefs",this,null,x,null,a)}return y[a]},Xt.oA=function(a){if(0>a&&Li(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(Hl,"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 Vl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Xt.Eb=function(a){0>a&&Li(a,">= 0",ci,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Vl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(gl,"coldefs",this,null,x,null,a)}return y[a]},Xt.jA=function(a){if(0>a&&Li(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(Hl,"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 Vl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Xt.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},Xt.Hy=function(a,y){return(a=this.Fb(a))&&Xf(a,new Vl(y)),this},Xt.By=function(a,y){return(a=this.Eb(a))&&Xf(a,new Vl(y)),this},Xt.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},Xt.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},Xt.Fz=function(a,y){if(y===void 0&&(y=new Ie(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)},Xt.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 ru(a){var y=a.allBindings;if(y===null)a.data!==null&&tn("Template cannot have .data be non-null: "+a),a.allBindings=y=new Pi;else if(y._isFrozen)return;var x=new Pi;uc(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 zt=It.sourceName;zt!==null&&(zt==="/"&&uc(ut,!0),zt=k1(It,ut,ct),zt!==null&&(x.add(zt),zt.srcBindings===null&&(zt.srcBindings=new Pi),zt.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(zt=ut[It],zt!==void 0&&zt.be!==null)for(var Zt=zt.be.iterator;Zt.next();){var he=Zt.value;he.xd=zt,he.to=2,he.wl=zt.index,y.add(he)}}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(zt=It.be.iterator;zt.next();)Zt=zt.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 Pi),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):tr('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Vl?(nt=xs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof pn?(nt=xs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):tn("Unknown type of binding target: "+z)}y.freeze(),a instanceof Vr&&a.Zc()&&a.Va()}Xt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Gh(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&&ru(y),y},Xt.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)}}},Xt.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 Oo&&b.isPanelMain))break}return x}return a.type===ci.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ci&&kl(a))?1:0}Xt.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,fh(a,x,0),wh(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(ru(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&uc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new wr),a.ge.add(y,E)),z=x+OA(a),a.Gb(z,E),b&&(E.ub=y,fh(a,z,x),E.ub=null),E.data=y}}}function fh(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=Zl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;tn("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,tr('No item template Panel found for category "'+y+'" on '+a),tr(" Using default item template."),a=new ci,y=new aa,y.bind(new Jl("text","",Cr)),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,hh.add(a,y)}je.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&&Li(a,">= 0",ci,"padding"),a=new Qr(a)):(0>a.left&&Li(a.left,">= 0",ci,"padding:value.left"),0>a.right&&Li(a.right,">= 0",ci,"padding:value.right"),0>a.top&&Li(a.top,">= 0",ci,"padding:value.top"),0>a.bottom&&Li(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 Qr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Fh),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 Fh),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 Fh),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)||tn("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 Fh),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 Fh),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 Fh),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)||tn("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 Fh),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 Fh),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||tn("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()||tn("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),hu(this)&&(a=this.part,a!==null&&ea(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),hu(this)&&(a=this.part,a!==null&&ea(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 Fh),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Fh),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 Fh),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 Fh),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)&&tn("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Fh),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)&&tn("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Fh),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 Vr&&!(this instanceof Ls);ru(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Gi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Vr&&(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 wr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Vr||a.isPanelMain)&&tn("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(););To(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&&(To(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 Do&&(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))}}}),je.Object.defineProperties(ci,{Position:{get:function(){return hh.I("Position")}},Horizontal:{get:function(){return hh.I("Horizontal")}},Vertical:{get:function(){return hh.I("Vertical")}},Spot:{get:function(){return hh.I("Spot")}},Auto:{get:function(){return hh.I("Auto")}},Table:{get:function(){return hh.I("Table")}},Viewbox:{get:function(){return hh.I("Viewbox")}},TableRow:{get:function(){return hh.I("TableRow")}},TableColumn:{get:function(){return hh.I("TableColumn")}},Link:{get:function(){return hh.I("Link")}},Grid:{get:function(){return hh.I("Grid")}},Graduated:{get:function(){return hh.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,hh=new wr;ci.className="Panel",ci.definePanelLayout=Zc,Zc("Position",new In),Zc("Vertical",new Ai),Zc("Auto",new Ni),Zc("Link",new Xr);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 Fh(){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}Fh.prototype.copy=function(a){for(var y=new Fh,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},Fh.className="TablePanelSettings";function Vl(a){Xo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Fs,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))}Vl.prototype.copy=function(){var a=new Vl;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=Sr(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=Sr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Xt=Vl.prototype,Xt.qb=function(a){a.classType===Vl&&(this.sizing=a)},Xt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+xs(this)},Xt.wi=function(a){this.Me=a},Xt.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)},Xt.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)},Xt.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}Xt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Jl(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&TA(y)&&tn("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Pi),this.be.add(E),this},je.Object.defineProperties(Vl.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&&Li(a,">= 0",Vl,"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&&Li(a,">= 0",Vl,"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))&&Li(a,">= 0",Vl,"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&&Li(a,">= 0",Vl,"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 Qr(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&&_t(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)||tn("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&&_t(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}}}),Vl.prototype.computeEffectiveSpacing=Vl.prototype.Wc,Vl.prototype.computeEffectiveSpacingTop=Vl.prototype.Io;var Pg=new pi(Vl,"Default",0),$f=new pi(Vl,"None",1),Yf=new pi(Vl,"ProportionalExtra",2);Vl.className="RowColumnDefinition",Vl.Default=Pg,Vl.None=$f,Vl.ProportionalExtra=Yf;function Oo(a,y){pn.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)}Nn(Oo,pn),Oo.prototype.cloneProtected=function(a){pn.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=Sr(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())}Xt=Oo.prototype,Xt.th=function(){pn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Xt.qb=function(a){a===bi||a===yr||a===$o||a===vo?this.geometryStretch=a:pn.prototype.qb.call(this,a)},Xt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+xs(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,zt,Zt,he=0,He=dr(),Le=2;Le<E;Le+=2)ut=x[Le],ct=x[Le+1],yt=ut-ot,ot=ct-at,yt===0&&(yt=.001),It=ot/yt,zt=Math.atan2(ot,yt),Zt=Math.sqrt(yt*yt+ot*ot),He.push([yt,zt,It,Zt]),he+=Zt,ot=ut,at=ct;ot=x[0],at=x[1],yt=b.measuredBounds.width,b instanceof Oo&&(yt-=b.strokeWidth),1>yt&&(yt=1),E=x=yt,ut=nt/2,ct=ut!==0,Le=0,Zt=He[Le],yt=Zt[0],zt=Zt[1],It=Zt[2],Zt=Zt[3];for(var Ve=0;.1<=he;){if(Ve===0&&(ct?(E=x,E-=ut,he-=ut,ct=!1):E=x,E===0&&(E=1)),E>he){Mr(He);return}E>Zt?(Ve=E-Zt,E=Zt):Ve=0;var qe=Math.sqrt(E*E/(1+It*It));if(0>yt&&(qe=-qe),ot+=qe,at+=It*qe,a.translate(ot,at),a.rotate(zt),a.translate(-(nt/2),-(z/2)),Ve===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-zt),a.translate(-ot,-at),he-=E,Zt-=E,Ve!==0){if(Le++,Le===He.length){Mr(He);return}Zt=He[Le],yt=Zt[0],zt=Zt[1],It=Zt[2],Zt=Zt[3],E=Ve}}Mr(He)}}Xt.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&&Ca(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 Ls&&ot.category==="Selection"&&ot.adornedObject instanceof Oo&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Ca(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===Wi.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===Wi.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===Wi.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===Wi.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 zt=null,Zt=0;Zt<yt;Zt++){var he=ct[Zt];switch(he.type){case El:a.moveTo(he.endX,he.endY);break;case sa:a.lineTo(he.endX,he.endY);break;case gu:a.bezierCurveTo(he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY);break;case Bh:a.quadraticCurveTo(he.point1X,he.point1Y,he.endX,he.endY);break;case wl:if(he.radiusX===he.radiusY){var He=Math.PI/180;a.arc(he.point1X,he.point1Y,he.radiusX,he.startAngle*He,(he.startAngle+he.sweepAngle)*He,0>he.sweepAngle,zt!==null?zt.endX:ut.startX,zt!==null?zt.endY:ut.startY)}else if(zt=rh(he,ut),He=zt.length,He===0)a.lineTo(he.centerX,he.centerY);else for(var Le=0;Le<He;Le++){var Ve=zt[Le];Le===0&&a.lineTo(Ve[0],Ve[1]),a.bezierCurveTo(Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7])}break;case Qh:if(Le=He=0,zt!==null&&zt.type===wl){if(zt=rh(zt,ut),Ve=zt.length,Ve===0){a.lineTo(he.endX,he.endY);break}zt=zt[Ve-1]||null,zt!==null&&(He=zt[6],Le=zt[7])}else He=zt!==null?zt.endX:ut.startX,Le=zt!==null?zt.endY:ut.startY;if(zt=Zu(he,ut,He,Le),He=zt.length,He===0){a.lineTo(he.endX,he.endY);break}for(Le=0;Le<He;Le++)Ve=zt[Le],a.bezierCurveTo(Ve[2],Ve[3],Ve[4],Ve[5],Ve[6],Ve[7]);break;default:tn("Segment not of valid type: "+he.type)}he.isClosed&&a.closePath(),zt=he}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=dr(),z.type===Wi.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===Wi.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 sa: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(he=rh(Zt,ot),zt=he.length,zt===0){b.push(Zt.centerX),b.push(Zt.centerY),nt=Zt.centerX,E=Zt.centerY;break}for(He=0;He<zt;He++)Le=he[He],En.Qe(nt,E,Le[2],Le[3],Le[4],Le[5],Le[6],Le[7],.5,b),nt=Le[6],E=Le[7];break;case Qh:if(he=Zu(Zt,ot,nt,E),zt=he.length,zt===0){b.push(Zt.endX),b.push(Zt.endY),nt=Zt.endX,E=Zt.endY;break}for(He=0;He<zt;He++)Le=he[He],En.Qe(nt,E,Le[2],Le[3],Le[4],Le[5],Le[6],Le[7],.5,b),nt=Le[6],E=Le[7];break;default:tn("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===Wi.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===Wi.F){if(E=new el,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new vs(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=rh(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)}Mr(b),a.restore(),a.Vc(!1)}}}},Xt.kk=function(a,y,x){return!pn.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)},Xt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:pn.prototype.nk.call(this,a)},Xt.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)}},Xt.ga=function(a,y){if(y===void 0&&(y=new Ie),a instanceof fr){a.Mc()&&tn("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},Xt.mi=function(a){a===void 0&&(a=new si);var y=this.naturalBounds,x=this.oe;y=si.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Ie.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),si.free(y),Ie.free(b),a},Xt.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!==Wi.j||y||(E+=2);var z=si.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return si.free(z),!1;if(b=E+1e-4,x.type===Wi.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:(si.free(z),En.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Wi.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 si.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),si.free(z),a}if(x.type===Wi.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 si.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),si.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===Wi.o)return si.free(z),this.fill===null?Ch(x,a.x,a.y,E):Ku(x,a,E,1<this.strokeWidth,y);tn("Unknown Geometry type: "+x.type)},Xt.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):tn("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ut=nt.width;var ct=nt.height;switch(lh(this,!0)){case bi:b=x=0;break;case ki:ut=Math.max(a-z,0),ct=Math.max(y-z,0);break;case Tr:ut=Math.max(a-z,0),b=0;break;case qr: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 ki:ot=ut,at=ct;break;case yr:x=Math.min(ut/ot,ct/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:tn(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=Oo.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?ki:y:y===vo?bp[a.figure].defaultStretch:y}Xt.eh=function(a,y,x,b){ku(this,a,y,x,b)},Xt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Xt.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 zt=ut.bounds;if(ct=!1,ut.type===Wi.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=dr(),a=new Ie,En.Ve(ut.startX+b,ut.startY+ct,ut.endX+b,ut.endY+ct,z,nt,ot,at,a)&&y.push(a),a=new Ie,En.Ve(ut.startX-b,ut.startY-ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ie,En.Ve(ut.startX+b,ut.startY+ct,ut.startX-b,ut.startY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ie,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 Mr(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);Mr(y)}else if(ut.type===Wi.u)ct=En.Ff(zt.x-yt,zt.y-yt,zt.x+zt.width+yt,zt.y+zt.height+yt,z,nt,ot,at,E);else if(ut.type===Wi.F){y=si.allocAt(zt.x,zt.y,zt.width,zt.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}si.free(y)}else if(ut.type===Wi.o){It=Ie.alloc();var Zt=ot-z,he=at-nt,He=Zt*Zt+he*he,Le=z,Ve=nt;if(0<He&&zt.contains(Le,Ve)&&(It.x=Le,It.y=Ve,this.ca(It)))for(Zt!==0&&.5>Math.abs(Zt)?(he*=.5/Zt,Zt=.5):he!==0&&.5>Math.abs(he)&&(Zt*=.5/he,he=.5),Le-=Zt,Ve-=he;zt.contains(Le,Ve);)Le-=Zt,Ve-=he;for(E.x=ot,E.y=at,he=0;he<ut.figures.count;he++){var qe=ut.figures.s[he],rn=qe.isFilled?Le:z,Sn=qe.isFilled?Ve:nt,Wn=qe.segments;zt=qe.startX,Zt=qe.startY;for(var ir=zt,Nr=Zt,mr=0;mr<Wn.count;mr++){var Ki=Wn.s[mr],Mi=Ki.type,No=Ki.endX,mo=Ki.endY,Is=!1;switch(Mi){case El:ir=No,Nr=mo;break;case sa:Is=Pp(zt,Zt,No,mo,rn,Sn,ot,at,It);break;case gu:Is=En.Eo(zt,Zt,Ki.point1X,Ki.point1Y,Ki.point2X,Ki.point2Y,No,mo,rn,Sn,ot,at,.6,It);break;case Bh:Is=En.Eo(zt,Zt,zt+2/3*(Ki.point1X-zt),Zt+2/3*(Ki.point1Y-Zt),No+2/3*(Ki.point1X-No),mo+2/3*(Ki.point1Y-mo),No,mo,rn,Sn,ot,at,.6,It);break;case wl:case Qh:Mi=Ki.type===wl?rh(Ki,qe):Zu(Ki,qe,zt,Zt);var ma=Mi.length;if(ma===0){Is=Pp(zt,Zt,Ki.type===wl?Ki.centerX:Ki.endX,Ki.type===wl?Ki.centerY:Ki.endY,rn,Sn,ot,at,It);break}for(mo=null,No=0;No<ma;No++){if(mo=Mi[No],No===0&&Pp(zt,Zt,mo[0],mo[1],rn,Sn,ot,at,It)){var Ou=jA(rn,Sn,It,He,E);Ou<He&&(He=Ou,ct=!0)}En.Eo(mo[0],mo[1],mo[2],mo[3],mo[4],mo[5],mo[6],mo[7],rn,Sn,ot,at,.6,It)&&(Ou=jA(rn,Sn,It,He,E),Ou<He&&(He=Ou,ct=!0))}No=mo[6],mo=mo[7];break;default:tn("Unknown Segment type: "+Mi)}zt=No,Zt=mo,Is&&(Is=jA(rn,Sn,It,He,E),Is<He&&(He=Is,ct=!0)),Ki.isClosed&&(No=ir,mo=Nr,Pp(zt,Zt,No,mo,rn,Sn,ot,at,It)&&(Ki=jA(rn,Sn,It,He,E),Ki<He&&(He=Ki,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,Ie.free(It)}else tn("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)}Xt.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=Ie.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)))),Ie.free(z),E},Xt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Qo.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=Ie.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 Ie.free(nt),!0;var ot=Ie.alloc(),at=Ie.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)))),Ie.free(nt),Qo.free(x),Ie.free(ot),Ie.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)}Xt.tx=function(a,y,x){function b(He,Le){for(var Ve=He.length,qe=0;qe<Ve;qe+=2)if(Le.zd(He[qe],He[qe+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,fa(a.x,a.y,ot,at)<=E&&fa(a.x,a.y,ut,at)<=E&&fa(a.x,a.y,ot,nt)<=E&&fa(a.x,a.y,ut,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ut=y.endX,nt=y.endY,y.type===Wi.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===Wi.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===Wi.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!(fa(y,z,-ct,0)>=E||fa(y,z,0,-yt)>=E||fa(y,z,0,yt)>=E||fa(y,z,ct,0)>=E)}else if(y.type===Wi.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?Ch(y,a.x,a.y,z):Ku(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 sa:if(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E)return!1;break;case gu:var It=dr();if(En.Qe(nt,ct,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.8,It),nt=b(It,a),Mr(It),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case Bh:if(It=dr(),En.ep(nt,ct,yt.point1X,yt.point1Y,yt.endX,yt.endY,.8,It),nt=b(It,a),Mr(It),nt||(nt=yt.endX,ct=yt.endY,a.zd(nt,ct)>E))return!1;break;case wl:case Qh:It=yt.type===wl?rh(yt,z):Zu(yt,z,nt,ct);var zt=It.length;if(zt===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=dr(),he=0;he<zt;he++)if(yt=It[he],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 Mr(Zt),!1;Mr(Zt),yt!==null&&(nt=yt[6],ct=yt[7]);break;default:tn("Unknown Segment type: "+yt.type)}}return!0}}}return!1},Xt.qc=function(){this.ua=null},Xt.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=tl):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fr(1-tl.x,tl.y)))}Oo.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&&tn("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=Wi.parse(En.um[b],!1),Ad[b]=a,x!==b&&(Ad[x]=b),b}}return typeof y=="string"?y:y instanceof Wi?a:null}je.Object.defineProperties(Oo.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),hu(this)&&(a=this.part,a!==null&&ea(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Wi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ie.allocAt(-y.x,-y.y),Ie.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&&_t(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&&_t(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 Li(a,"value >= 0",Oo,"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"?Li(a,'"butt", "round", or "square"',Oo,"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"?Li(a,'"miter", "bevel", or "round"',Oo,"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)||tn("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()])||tn("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?tn("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?tn("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:Fs},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:Fs},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))}}}),Oo.prototype.intersectsRect=Oo.prototype.Yc,Oo.prototype.containedInRect=Oo.prototype.fh,Oo.prototype.getNearestIntersectionPoint=Oo.prototype.rs,Oo.prototype.getDocumentBounds=Oo.prototype.mi,Oo.prototype.getDocumentPoint=Oo.prototype.ga;var Ad=new uo,bp=new uo;Oo.className="Shape",Oo.getFigureGenerators=function(){var a=new wr,y;for(y in En.Ze)y!==y.toLowerCase()&&a.add(y,En.Ze[y]);return a.freeze(),a},Oo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a},Oo.getArrowheadGeometries=function(){var a=new wr;for(b in En.um)if(Ad[b]===void 0){var y=Wi.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 Wi&&a.add(x,b)}return a.freeze(),a},Oo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Wi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||tn("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=Fs}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 aa(a,y){return pn.call(this),Np||(Lh=ms?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}Nn(aa,pn),aa.prototype.cloneProtected=function(a){pn.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())}Xt=aa.prototype,Xt.th=function(){pn.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}Xt.qb=function(a){a.classType===aa?this.wrap=a:pn.prototype.qb.call(this,a)},Xt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Xt.v=function(){pn.prototype.v.call(this)},Xt.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;Ca(this,a,this.xc,!0,!1,x,b),(at||ut)&&Ca(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 eh&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,yt=this.spacingBelow,this.flip){case ss:a.translate(E,0),a.scale(-1,1);break;case ko:a.translate(0,z),a.scale(1,-1);break;case Ns: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 zt=this.Qc[It];zt>E&&(zt=E),b+=y,this.Oj(this.Qb[It],a,0,b,E,nt,zt,x,ot,at,ut),b+=nt+yt}switch(this.flip){case ss:a.scale(-1,1),a.translate(-E,0);break;case ko:a.scale(1,-1),a.translate(0,-z);break;case Ns:a.scale(-1,-1),a.translate(-E,-z)}}},Xt.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 eh&&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 eh&&y.ad.classList.add("gojs-td"))}},Xt.kk=function(a,y,x){if(!pn.prototype.kk.call(this,a,y,x))return!1;if(Ca(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},Xt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:pn.prototype.nk.call(this,a)},Xt.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)}},Xt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Lh!==null&&Mp!==z&&(Mp=Lh.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),Ia(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Xt.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 Lh===null?8*a.length:Lh.measureText(a).width}function Jf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Lh===null){var x=16;return a.df=x}return Mg[y]!==void 0&&5e3>$A?x=Mg[y]:(x=1.3*Lh.measureText("M").width,Mg[y]=x,$A++),a.df=x}function cf(a){if(Lh===null)return 6;if(UA[a]!==void 0&&5e3>YA)var y=UA[a];else y=Lh.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=Vi.alloc();hm(a,z,y,at),E+=at.height,Vi.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}je.Object.defineProperties(aa.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:qa},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),fd(this),this.da.Yr=a,Nl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Vi.alloc();hm(this,this.ec,999999,a);var y=a.width;Vi.free(a),a=cm(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Ia(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&&_t(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&&Li(a,"> 0",aa,"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 pi(aa,"None",0),qf=new pi(aa,"WrapFit",1),dm=new pi(aa,"WrapDesiredSize",2),Am=new pi(aa,"WrapBreakAll",3),fm=new pi(aa,"OverflowClip",0),tp=new pi(aa,"OverflowEllipsis",1),ep=new pi(aa,"FormatTrim",0),Lg=new pi(aa,"FormatNone",0),gm=/[ \u200b\u00ad]/,Mg=new uo,$A=0,UA=new uo,YA=0,Bf="...",Mp="",Lh=null,Np=!1;aa.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=qa,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},aa.getEllipsis=function(){return Bf},aa.setEllipsis=function(a){Bf=a,UA=new uo,YA=0},aa.getBaseline=function(){return qg},aa.setBaseline=function(a){qg=a},aa.getUnderline=function(){return Fp},aa.setUnderline=function(a){Fp=a},aa.isValidFont=function(a){if(Np||(Lh=ms?new Tu(null).context:null,Np=!0),Lh===null)return!0;var y=Lh.font;if(a===y||a==="10px sans-serif")return!0;Lh.font="10px sans-serif",Lh.font=a;var x=Lh.font;if(x!=="10px sans-serif")return Lh.font=y,!0;Lh.font="19px serif";var b=Lh.font;return Lh.font=a,x=Lh.font,Lh.font=y,x!==b},aa.FormatNone=Lg,aa.FormatTrim=ep,aa.None=Lp,aa.OverflowClip=fm,aa.OverflowEllipsis=tp,aa.WrapBreakAll=Am,aa.WrapDesiredSize=dm,aa.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 hc(a,y){pn.call(this),this.Eg=null,this.qo="",this.Xg=Hs,this.Nk=ki,this.Zg=this.Hd=null,this.Mk=Mo,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;Nn(hc,pn),hc.prototype.cloneProtected=function(a){pn.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},hc.prototype.qb=function(a){a===bi||a===yr||a===$o?this.imageStretch=a:pn.prototype.qb.call(this,a)},hc.prototype.toString=function(){return"Picture("+this.source+")#"+xs(this)};function kp(a){a===void 0&&(a=""),a!==""?Ip[a]&&(delete Ip[a],i0--):(Ip=new uo,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()||(Il(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=dr();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);Mr(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}hc.prototype.hA=function(){if(this.source!==""){kp(this.source);var a=this.source;this.source="",this.source=a}},hc.prototype.redraw=function(){this.N(),this.Uc=!0},hc.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 eh;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,zt=this.Nk,Zt=this.Mk;switch(zt){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 ki:yt=b.width,It=b.height;break;case yr:case $o:zt===yr?(zt=Math.min(b.height/It,b.width/yt),yt*=zt,It*=zt):zt===$o&&(zt=Math.max(b.height/It,b.width/yt),yt*=zt,It*=zt,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)}zt=this.Df()*y.scale;var he=yt*zt*It*zt,He=at*ot/he,Le=x.__goCache;zt=null;var Ve=Ew;if(!E){if(x.sq&&Le!==void 0&&4<he&&He>Ve*Ve)for(Le.gi===null&&(Oy(Le,4,ut,ct,x),Oy(Le,16,ut,ct,x)),E=Le.gi,ut=E.length,ct=0;ct<ut&&E[ct].ratio*E[ct].ratio<He;ct++)zt=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(qe){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(qe){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 ss:a.translate(Math.min(b.width,yt),0),a.scale(-1,1);break;case ko:a.translate(0,Math.min(b.height,It)),a.scale(1,-1);break;case Ns:a.translate(Math.min(b.width,yt),Math.min(b.height,It)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Le!==void 0&&zt!==null&&zt.ratio!==1){a.save(),y=zt.ratio;try{a.drawImage(zt.source,z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Zt,Math.min(b.width,yt),Math.min(b.height,It)),a instanceof eh&&(this.bt=[z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Zt,Math.min(b.width,yt),Math.min(b.height,It)])}catch(qe){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 eh&&(this.bt=[z,nt,at,ot,E,Zt,Math.min(b.width,yt),Math.min(b.height,It)])}catch(qe){this.en=!1}switch(this.flip){case ss:a.scale(-1,1),a.translate(-Math.min(b.width,yt),0);break;case ko:a.scale(1,-1),a.translate(0,-Math.min(b.height,It));break;case Ns:a.scale(-1,-1),a.translate(-Math.min(b.width,yt),-Math.min(b.height,It))}}}}},hc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=lh(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===ki||z===Tr?(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===ki||z===qr?(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)),Ia(this.dc,a,y),this.Ge(0,0,a,y)},hc.prototype.eh=function(a,y,x,b){ku(this,a,y,x,b)},je.Object.defineProperties(hc.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||tn("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 Ci),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()||(Il(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(ms){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<i0&&(kp(),x=Ip),b=Di("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}}}),hc.prototype.redraw=hc.prototype.redraw,hc.prototype.reloadSource=hc.prototype.hA;var i0=0,Ew=4;hc.className="Picture",Ip=new uo,hc.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 Wi,this.mc=null}Tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Wi,this.mc=null};function Op(a,y,x,b,E,z){a.mc=new el,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 vs(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 vs(sa);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 vs(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 vs(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 vs(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 vs(Qh,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 Mh(a,y){var x=a.toLowerCase(),b=En.Ze;b[a]=y,b[x]=a}Mh("Rectangle",function(a,y,x){a="r"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.u),b.endX=y,b.endY=x,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("Square",function(a,y,x){a="s"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.u),b.endX=y,b.endY=x,b.defaultStretch=yr,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("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 Wi().add(new el(a,0,!0).add(new vs(sa,y-a,0)).add(new vs(gu,y,a,y-z,0,y,z)).add(new vs(sa,y,x-a)).add(new vs(gu,y-a,x,y,x-z,y-z,x)).add(new vs(sa,a,x)).add(new vs(gu,0,x-a,z,x,0,x-z)).add(new vs(sa,0,a)).add(new vs(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}),Mh("Border","RoundedRectangle"),Mh("Ellipse",function(a,y,x){a="e"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=ch,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("Circle",function(a,y,x){a="c"+y+","+x;var b=En.Mf[a];return b!==void 0||(b=new Wi(Wi.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=ch,b.defaultStretch=yr,En.Nf<En.vm&&(En.Mf[a]=b,En.Nf++)),b}),Mh("TriangleRight",function(a,y,x){return new Wi().add(new el(0,0).add(new vs(sa,y,.5*x)).add(new vs(sa,0,x).close())).pm(0,.25,.5,.75)}),Mh("TriangleDown",function(a,y,x){return new Wi().add(new el(0,0).add(new vs(sa,y,0)).add(new vs(sa,.5*y,x).close())).pm(.25,0,.75,.5)}),Mh("TriangleLeft",function(a,y,x){return new Wi().add(new el(y,x).add(new vs(sa,0,.5*x)).add(new vs(sa,y,0).close())).pm(.5,.25,1,.75)}),Mh("TriangleUp",function(a,y,x){return new Wi().add(new el(y,x).add(new vs(sa,0,x)).add(new vs(sa,.5*y,0).close())).pm(.25,.5,.75,1)}),Mh("Triangle","TriangleUp"),Mh("Diamond",function(a,y,x){return new Wi().add(new el(.5*y,0).add(new vs(sa,0,.5*x)).add(new vs(sa,.5*y,x)).add(new vs(sa,y,.5*x).close())).pm(.25,.25,.75,.75)}),Mh("LineH",function(a,y,x){return a=new Wi(Wi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Mh("LineV",function(a,y,x){return a=new Wi(Wi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Mh("None","Rectangle"),Mh("BarH","Rectangle"),Mh("BarV","Rectangle"),Mh("MinusLine","LineH"),Mh("PlusLine",function(a,y,x){return new Wi().add(new el(0,x/2,!1).add(new vs(sa,y,x/2)).add(new vs(El,y/2,0)).add(new vs(sa,y/2,x)))}),Mh("XLine",function(a,y,x){return new Wi().add(new el(0,x,!1).add(new vs(sa,y,0)).add(new vs(El,0,0)).add(new vs(sa,y,x)))}),Mh("LineRight",function(a,y,x){return new Wi().add(new el(.25*y,0,!1).add(new vs(sa,.75*y,.5*x)).add(new vs(sa,.25*y,x)))}),Mh("LineDown",function(a,y,x){return new Wi().add(new el(0,.25*x,!1).add(new vs(sa,.5*y,.75*x)).add(new vs(sa,y,.25*x)))}),Mh("LineLeft",function(a,y,x){return new Wi().add(new el(.75*y,0,!1).add(new vs(sa,.25*y,.5*x)).add(new vs(sa,.75*y,x)))}),Mh("LineUp",function(a,y,x){return new Wi().add(new el(0,.75*x,!1).add(new vs(sa,.5*y,.25*x)).add(new vs(sa,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=Na,this.ir=null,this.jr="",this.lr=Fs,this.Gq="",this.Hq=rl,this.Pq=oa,this.Kq=ll,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 Vr(a,y){a===void 0||a instanceof xn||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 Ie(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new si,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Nn(Vr,ci),Vr.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},Xt=Vr.prototype,Xt.Af=function(a){ci.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Xt.toString=function(){var a=nr(this.constructor)+"#"+xs(this);return this.data!==null&&(a+="("+Cr(this.data)+")"),a};function cc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}Xt.th=function(){ci.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Xt.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===gl&&y==="elements"?E instanceof ci?dl(E,function(at){Wv(ot.partManager,at),zc(ot,at)}):Kc(ot,E):a===Hl&&y==="elements"&&(E instanceof ci?dl(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},Xt.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&&dl(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Vr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Vr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Vr.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 wr),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)))}}},Vr.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)}},Vr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=dr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Mr(y)}},Vr.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 Do?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ls))break t;ru(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()}},Vr.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=si.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),si.free(b),Sv(a,!1)}}Vr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Qo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Vr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Mo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=Ie.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),Ie.free(nt)}},Vr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Vr.prototype.moveTo=function(a,y,x){a=Ie.allocAt(a,y),this.move(a,x),Ie.free(a)},Vr.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())},Vr.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())},Vr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new wr),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 Ie),x=x.Mc()?Mo: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}Vr.prototype.mi=function(a){return a===void 0&&(a=new si),a.assign(this.actualBounds)},Vr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=Ie.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Oo?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}Vr.prototype.arrange=function(){if(th(this)===!1)Uy(this);else{Wc(this,!1);var a=this.Ib,y=si.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),si.free(y),Sv(this,!1)}},Xt=Vr.prototype,Xt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=si.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),si.free(E)}!(this.G&65536)&&a.D(y)||Ky(this,b,x),x.N(),!a.w()&&!y.w()||Hh(a,y)||(this instanceof hr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Xt.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 Ie(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),tg(this)===!1&&th(this)===!1&&(s0(this),Uy(this)),!0};function _y(a,y,x,b,E){y===null||a instanceof Ls||(y=y.animationManager,y.zb&&Kl(y,a,new Ie(b,E),x))}Xt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;tg(this)||th(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)},Xt.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,Ie.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 Ls||Kl(x,a,new Ie(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new Ie(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&&jr(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?eg(a)?(Ms(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Xt.si=function(){return!0},Xt.Zc=function(){return!0},Xt.ph=function(){return!1},Xt.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,tr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),tr(" Old class: "+nr(a.constructor)+", new class: "+nr(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)}Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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},Vr.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}Xt=Vr.prototype,Xt.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}Xt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Xt.N=function(){var a=this.diagram;a!==null&&!th(this)&&!tg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ng(this,this.Ib))},Xt.v=function(){ci.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof hr&&this.labeledLink!==null&&Nl(this.labeledLink),a.$b(!0))},Xt.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},Xt.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},Xt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Xt.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}Xt.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}Xt.Td=function(a){return a instanceof Do?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}Xt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Do&&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 Do&&a0(y,!1),y instanceof hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Vr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof hr&&this.isLinkLabel)},Vr.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 Ls)){if(a.add(y),y instanceof hr){if(x&&y instanceof Do)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 Gi)for(y=y.labelNodes;y.next();)ng(a,y.value,x,b,E,z)}}je.Object.defineProperties(Vr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?mi: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(Hl,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(gl,"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&&(cc(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&&zh(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 Ls?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:oa},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),cc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:ll},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),cc(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&&(cc(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:rl},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),cc(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,th(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 Ls)){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 Ls?this instanceof Ls&&(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&&(ru(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&&(ru(x),x=x.copy(),x===null||x instanceof Gi||(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&&(cc(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&&(cc(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&&(cc(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 Gi?(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&&(cc(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&&(cc(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&&(cc(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:Na},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),cc(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&&(cc(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&&(cc(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:Fs},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),cc(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&&tn("Cannot make a Group a member of itself: "+this.toString()),tn("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 Do&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof Do&&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 Do){for(x=new Ci,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&&zh(y,-1,a))}}else tn("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&&(cc(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&&(cc(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&&(cc(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(),cc(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&&(cc(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&&(cc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Vr.prototype.invalidateLayout=Vr.prototype.C,Vr.prototype.findCommonContainingGroup=Vr.prototype.px,Vr.prototype.isMemberOf=Vr.prototype.Td,Vr.prototype.findTopLevelPart=Vr.prototype.sz,Vr.prototype.findSubGraphLevel=Vr.prototype.oz,Vr.prototype.ensureBounds=Vr.prototype.Va,Vr.prototype.getDocumentBounds=Vr.prototype.mi,Vr.prototype.findObject=Vr.prototype.fb,Vr.prototype.moveTo=Vr.prototype.moveTo,Vr.prototype.invalidateAdornments=Vr.prototype.Wb,Vr.prototype.clearAdornments=Vr.prototype.Ej,Vr.prototype.removeAdornment=Vr.prototype.Jf,Vr.prototype.addAdornment=Vr.prototype.bh,Vr.prototype.findAdornment=Vr.prototype.Pj,Vr.prototype.updateTargetBindings=Vr.prototype.La;var Vy=!1;Vr.className="Part",Vr.LayoutNone=0,Vr.LayoutAdded=1,Vr.LayoutRemoved=2,Vr.LayoutShown=4,Vr.LayoutHidden=8,Vr.LayoutNodeSized=16,Vr.LayoutGroupLayout=32,Vr.LayoutNodeReplaced=64,Vr.LayoutStandard=127,Vr.LayoutAll=16777215;function Ls(a,y){a===void 0||a instanceof xn||typeof a=="string"?Vr.call(this,a):(Vr.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)}Nn(Ls,Vr),Ls.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ls.prototype.updateRelationshipsFromData=function(){},Ls.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Gi&&y instanceof Oo){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 Oo&&(E.ua=a)}}},Ls.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!th(a))},Ls.prototype.Zc=function(){return!1},Ls.prototype.gk=function(a,y,x,b,E,z,nt){if(a===gl&&y==="elements"){if(E instanceof Vh)this.$a===null&&(this.$a=E);else if(E instanceof ci){var ot=E.Nl(function(at){return at instanceof Vh});ot instanceof Vh&&this.$a===null&&(this.$a=ot)}}else a===Hl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof ci&&this.$a.rg(b)&&(this.$a=null));Vr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Ls.prototype.updateAdornments=function(){},Ls.prototype.Lj=function(){},je.Object.defineProperties(Ls.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}}}),Ls.className="Adornment";function bv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=zu,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 xn||typeof a=="string"?Vr.call(this,a):(Vr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Pi,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Nn(hr,Vr),hr.prototype.cloneProtected=function(a){Vr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Xt=hr.prototype,Xt.Af=function(a){Vr.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())}Xt.th=function(){Vr.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Zy(a,y){y!==null&&(a.af===null&&(a.af=new Ci),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}Xt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Xy(this,a,y,x),a!==null&&a.Sl()},Xt.gk=function(a,y,x,b,E,z,nt){a===gl&&y==="elements"?this.wc=null:a===Hl&&y==="elements"&&(this.wc=null),Vr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Xt.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)}}Xt.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(!Vr.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===ml){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){Vr.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 Ci,y=new Ci;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 Dr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Xt=hr.prototype,Xt.Mo=function(a){a===void 0&&(a=null);var y=new Dr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Xt.Sd=function(a){a===void 0&&(a=null);var y=new Dr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Xt.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 Ci,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 Ci,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new wo(x):mi},Xt.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 Ci,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new wo(x):mi},Xt.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 Ci,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new wo(x):mi},Xt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Dr(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},Xt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Dr(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)},Xt=hr.prototype,Xt.Vo=function(a){Vr.prototype.Vo.call(this,a),a||(pm(this),a=this.Yk,a!==null&&s1(a,this))},Xt.Wo=function(a){Vr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Xt.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,Vr.prototype.Lj.call(this)},Xt.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 wr: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=dr()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Mr(x)}}}Xt.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},Xt.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}},Xt.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},Xt.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},Xt.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},Xt.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 Ci;return a(this,y),y},Xt.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}Xt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Dr(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},Xt.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 Pi,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 Pi,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new wo(x):mi},Xt.wz=function(a){a===void 0&&(a=1/0);var y=new Ci;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 Ci;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(zt){return zt===It.uv||!zt.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 Ci;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(zt){return zt===It.vv||!zt.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}je.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&&jr(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:zu},set:function(a){typeof a=="number"&&(a=new Qr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ef(this),this.Ba.yp=a;var x=this.diagram;x!==null&&jr(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),Nl(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 pi(hr,"SpreadingNone",10),h0=new pi(hr,"SpreadingEvenly",11),Fv=new pi(hr,"SpreadingPacked",12);hr.className="Node",hr.SpreadingNone=Nw,hr.SpreadingEvenly=h0,hr.SpreadingPacked=Fv;function Do(a,y){a===void 0||a instanceof xn||typeof a=="string"?hr.call(this,a):(hr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ci,this.$a=null,this.Sc=new Wa,this.Sc.group=this,this.gl=new Ci,this.tb=this.$p=null,y&&Object.assign(this,y)}Nn(Do,hr),Do.prototype.cloneProtected=function(a){hr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Vh});y instanceof Vh?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())},Xt=Do.prototype,Xt.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 Gi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Xt.gk=function(a,y,x,b,E,z,nt){if(a===gl&&y==="elements"){if(E instanceof Vh)this.$a===null?this.$a=E:this.$a!==E&&tn("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 Vh});ot instanceof Vh&&(this.$a===null?this.$a=ot:this.$a!==ot&&tn("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Hl&&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)},Xt.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 si),a.mi(this.tb),a instanceof Oo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Xt.eh=function(a,y,x,b){this.nf=this.$a,hr.prototype.eh.call(this,a,y,x,b)},Xt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Gi||y.Va()}),hr.prototype.Va.call(this)},Xt.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()&&th(y))return!1}else if(y instanceof Gi&&y.isVisible()&&th(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof Do&&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 Gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof Do&&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 Gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Xt.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)},Do.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=ri(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Do.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=ri(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Do.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))},Xt=Do.prototype,Xt.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()))}}},Xt.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 Ci,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},Xt.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ci,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},Xt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ci;return a(this,y),y},Xt.Rj=function(){var a=new Ci;return ng(a,this,!0,0,!0),a.remove(this),a},Xt.Zb=function(a){hr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Do.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 Do&&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 Gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Do.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 Do&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Cj(z,b);else if(z instanceof Gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Do.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=Ie.alloc(),hr.prototype.move.call(this,a,y),a=new Ci,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Gi&&(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 Gi&&(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());Ie.free(z)}},je.Object.defineProperties(Do.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&&tn("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)}}}),Do.prototype.expandSubGraph=Do.prototype.expandSubGraph,Do.prototype.collapseSubGraph=Do.prototype.collapseSubGraph,Do.prototype.findSubGraphParts=Do.prototype.Rj,Do.prototype.findContainingGroupChain=Do.prototype.hz,Do.prototype.findExternalNodesConnected=Do.prototype.iz,Do.prototype.findExternalLinksConnected=Do.prototype.Lu,Do.prototype.ensureBounds=Do.prototype.Va,Do.className="Group";function Vh(a){pn.call(this),this.yb=Su,this.ko=new si(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Nn(Vh,pn),Vh.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Vh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return zs(0,0,y.width,y.height,a.x,a.y)},Vh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Do||a instanceof Ls)||tn("Placeholder is not inside a Group or Adornment."),a instanceof Do){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Ia(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=Ie.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ie.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 Oo&&(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"?rl:a.locationSpot,Ie.alloc()),a.location=ot,Ie.free(ot)),isNaN(ut)||isNaN(nt)?(a=z.ga(rl,Ie.alloc()),ut=si.allocAt(a.x,a.y,0,0),ut.Ye(z.ga($l,a)),ut.Ye(z.ga(ou,a)),ut.Ye(z.ga(Ja,a)),Ia(y,ut.width+b||0,ut.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ie.free(a),si.free(ut)):(Ia(y,ut+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Vh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Vh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Do&&!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=si.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Do&&!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)),si.free(x),b&&y instanceof Do&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Vh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Do))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 Gi&&(!y.computesBoundsIncludingLinks||wh(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},je.Object.defineProperties(Vh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Qr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Vh.className="Placeholder";function Gi(a){Vr.call(this,ci.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Zh,this.Om=0,this.Qm=Zh,this.Rm=NaN,this.qj=Ov,this.po=.5,this.wd=null,this.Nb=new Pi().freeze(),this.Tg=this.Mg=null,this.ml=new si,this.ua=new Wi,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ie,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Nn(Gi,Vr),Gi.prototype.cloneProtected=function(a){Vr.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())},Xt=Gi.prototype,Xt.Af=function(a){Vr.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)},Xt.qb=function(a){a.classType===Gi?(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!==Zh&&tn("Unknown Link enum value for a Link property: "+a):Vr.prototype.qb.call(this,a)},Xt.Xc=function(){this.ba===null&&(this.ba=new Kf)},Xt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),th(a)||tg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),th(a)||tg(a)))},Xt.zv=function(){return!1},Xt.Av=function(){},Xt.Zc=function(){return!1},Gi.prototype.computeAngle=function(a,y,x){return Gi.computeAngle(y,x)},Gi.computeAngle=function(a,y){switch(a){default:case Zh: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}Xt=Gi.prototype,Xt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Vr.prototype.oh.call(this)},Xt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Xt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function s1(a,y){a.wd===null&&(a.wd=new Ci),a.wd.add(y),a.v()}Xt.Vo=function(a){if(Vr.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)}},Xt.Wo=function(a){if(Vr.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)}},Xt.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))},Gi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Gi.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?Vr.prototype.move.call(this,a,!1):(a=Ie.allocAt(x.x+b,x.y+E),Vr.prototype.move.call(this,a,!1),Ie.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)},Gi.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},Gi.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},Gi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(fl),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},Gi.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)},Xt=Gi.prototype,Xt.i=function(a){return this.Nb.s[a]},Xt.dd=function(a,y){this.Nb.cd(a,y)},Xt.L=function(a,y,x){this.Nb.cd(a,new Ie(y,x))},Xt.Kz=function(a,y){this.Nb.Gb(a,y)},Xt.m=function(a,y,x){this.Nb.Gb(a,new Ie(y,x))},Xt.ne=function(a){this.Nb.add(a)},Xt.yf=function(a,y){this.Nb.add(new Ie(a,y))},Xt.pv=function(a){this.Nb.mb(a)},Xt.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 Pi,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new Ie(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),Nl(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)}}Xt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Xt.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)}},Xt.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))}Xt.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())}},Xt.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()}}},Gi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(op||(op=new hr,op.desiredSize=Lo,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=Lo,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()===Zh||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 zt=z.x+ot/3,Zt=z.y+at/3,he=zt,He=Zt;En.B(at,0)?He=0<ot?He-ut:He+ut:(ct=-ot/at,yt=Math.sqrt(ut*ut/(ct*ct+1)),0>ut&&(yt=-yt),he=(0>at?-1:1)*yt+zt,He=ct*(he-zt)+Zt),zt=z.x+2*ot/3,Zt=z.y+2*at/3;var Le=zt,Ve=Zt;En.B(at,0)?Ve=0<ot?Ve-ut:Ve+ut:(Le=(0>at?-1:1)*yt+zt,Ve=ct*(Le-zt)+Zt),this.Fj(),this.ne(z),this.yf(he,He),this.yf(Le,Ve),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=si.alloc(),y.mi(ot),at=ot.ca(E),It.mi(ot),ut=ot.ca(b),(at||ut)&&(nt=y.ga(A0(nt),new Ie),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=It.ga(A0(x),new Ie),this.dd(1,this.getLinkPointFromPoint(z,It,x,b,!1,x))),si.free(ot))}else{yt=this.isAvoiding,It&&(ct&&yt||ut)&&this.Fj();var qe=ut?this.computeCurviness():0;yt=this.getLinkPoint(a,y,nt,!0,ct,b,E),zt=he=Zt=0,(ct||!ot||ut)&&(He=this.computeEndSegmentLength(a,y,nt,!0),zt=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)&&(zt-=ct?90:30,0>qe&&(zt-=180)),0>zt?zt+=360:360<=zt&&(zt-=360),ut&&(He+=Math.abs(qe)*(ct?1:2)),zt===0?Zt=He:zt===90?he=He:zt===180?Zt=-He:zt===270?he=-He:(Zt=He*Math.cos(zt*Math.PI/180),he=He*Math.sin(zt*Math.PI/180)),nt.Mc()&&ut&&(He=y.ga(Mo,Ie.alloc()),Le=Ie.allocAt(He.x+1e3*Zt,He.y+1e3*he),this.getLinkPointFromPoint(a,y,He,Le,!0,yt),Ie.free(He),Ie.free(Le))),He=this.getLinkPoint(b,E,x,!1,ct,a,y);var rn=Ve=Le=0;if(ct||!at||ut){var Sn=this.computeEndSegmentLength(b,E,x,!1);rn=this.getLinkDirection(b,E,He,x,!1,ct,a,y),ut&&(at||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(rn+=ct?0:30,0>qe&&(rn+=180)),0>rn?rn+=360:360<=rn&&(rn-=360),ut&&(Sn+=Math.abs(qe)*(ct?1:2)),rn===0?Le=Sn:rn===90?Ve=Sn:rn===180?Le=-Sn:rn===270?Ve=-Sn:(Le=Sn*Math.cos(rn*Math.PI/180),Ve=Sn*Math.sin(rn*Math.PI/180)),x.Mc()&&ut&&(x=E.ga(Mo,Ie.alloc()),nt=Ie.allocAt(x.x+1e3*Le,x.y+1e3*Ve),this.getLinkPointFromPoint(b,E,x,nt,!1,He),Ie.free(x),Ie.free(nt))}x=yt,(ct||!ot||ut)&&(x=new Ie(yt.x+Zt,yt.y+he)),nt=He,(ct||!at||ut)&&(nt=new Ie(He.x+Le,He.y+Ve)),!It&&!ct&&ot&&3<z&&this.adjustPoints(0,yt,z-2,nt)?this.dd(z-1,He):!It&&!ct&&at&&3<z&&this.adjustPoints(1,x,z-1,He)?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,He)):(this.Fj(),this.ne(yt),(ct||!ot||ut)&&this.ne(x),ct&&this.addOrthoPoints(x,zt,nt,rn,a,b),(ct||!at||ut)&&this.ne(nt),this.ne(He))}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}Gi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ie),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)}Gi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new Ie),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=Ie.alloc(),ut=Ie.alloc();var ct=new si(y.ga(rl,at),y.ga($l,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(eu))&&a.x>=ct.x&&a.x<=ct.x+ct.width&&(ot.x=a.x),Ie.free(at),Ie.free(ut)}}return ot}}return x=y.ga(A0(x),Ie.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=Ie.alloc(),nt=nt.ga(A0(at),z),E&&(nt=Nv(x,nt)),Ie.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Ie.free(x),ot},Gi.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(Mo,Ie.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=Ie.alloc(),ot=ot.ga(Mo,x),Ie.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,Ie.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},Gi.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)},Gi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Mo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Fs?Za:y)):(a=y||this.toPort,a===null?a=Mo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Fs?Za:y)),a};function jp(a){return a===Za||a.x===.5&&a.y===.5}function A0(a){return a.x===.5&&a.y===.5?a:Mo}Gi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Zh&&4<this.pointsCount?this.computeMidPoint(new Ie):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Mo))},Gi.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},Gi.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=Qo.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Qo.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=Qo.alloc(),yt.set(nt),ct instanceof ci)ot=ct.Cf(a,y,x,b,E,yt);else if(this.path===ct){if(ct instanceof Oo)if(ot=a,It=b,ct.pickable===!1)ot=!1;else if(yt.multiply(ct.transform),It)t:{var zt=ot,Zt=yt;if(ct.fh(zt,Zt))ot=!0;else{if(Zt===void 0&&(Zt=ct.transform,zt.Re(ct.actualBounds))){ot=!0;break t}ot=zt.left,It=zt.right;var he=zt.top;zt=zt.bottom;var He=Ie.alloc(),Le=Ie.alloc(),Ve=Ie.alloc(),qe=Qo.alloc();qe.set(Zt),qe.bv(ct.transform),qe.Vj(),Le.x=It,Le.y=he,Le.transform(qe),He.x=ot,He.y=he,He.transform(qe),Zt=!1,Cf(ct,He,Le,Ve)?Zt=!0:(He.x=It,He.y=zt,He.transform(qe),Cf(ct,He,Le,Ve)?Zt=!0:(Le.x=ot,Le.y=zt,Le.transform(qe),Cf(ct,He,Le,Ve)?Zt=!0:(He.x=ot,He.y=he,He.transform(qe),Cf(ct,He,Le,Ve)&&(Zt=!0)))),Qo.free(qe),Ie.free(He),Ie.free(Le),Ie.free(Ve),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)),Qo.free(yt)}}}return z===void 0&&Qo.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Qo.free(nt),!1},Gi.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},Gi.prototype.computeCorner=function(){if(this.curve===Yc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Gi.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},Gi.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(Mo).ab(x.ga(Mo))/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},Gi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Zh&&x.bb()}},Gi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=dr(),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),Mr(x)}}return a},Gi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Gi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Gi.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 zt=1;if(at-ot!==0){var Zt=(It-ct)/(at-ot);zt=Math.sqrt(1+1/(Zt*Zt))}else Zt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var he=y.x,He=y.y,Le=.5;ut!==0&&(Le=((E-he)*(E-nt)+(z-He)*(z-yt))/ut);var Ve=E+Le*(nt-E),qe=z+Le*(yt-z);y=Math.sqrt((he-Ve)*(he-Ve)+(He-qe)*(He-qe)),He<Zt*(he-Ve)+qe&&(y=-y),0<Zt&&(y=-y),he=ot+Le*(at-ot),Le=ct+Le*(It-ct),Zt!==0?(y=he+y/zt,this.L(a,y,Le-(y-he)/Zt)):this.L(a,he,Le+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}},Gi.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=Ie.alloc(),ct=Ie.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||!yn(It)||ot.ca(yt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var zt=wi(It,!0,this.containingGroup,null);if(this.segmentIndex!==17&&zt.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))&&zt.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))&&zt.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=zt.bounds.copy(),It.Bc(-zt.Ho,-zt.Go);var he=Ie.alloc();Rp(zt,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,he)?(x=a=he.copy(),y=he.ab(ut)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ut.x,ut.y,ct.x,ct.y,he)?(x=a=he.copy(),y=he.ab(ct)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ct.x,ct.y,yt.x,yt.y,he)&&(x=a=he.copy(),y=he.ab(yt))),Rp(zt,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,he)?(Zt=yt=he.copy(),b=ct.ab(he)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ct.x,ct.y,ut.x,ut.y,he)?(Zt=yt=he.copy(),b=ut.ab(he)):En.Ff(It.x,It.y,It.x+It.width,It.y+It.height,ut.x,ut.y,a.x,a.y,he)&&(Zt=yt=he.copy(),b=a.ab(he))),Ie.free(he)}ot=ot.copy().ed(at),ot.Bc(zt.Ho*zt.Os,zt.Go*zt.Os),d1(zt,a,y,yt,b,ot,!0),at=JA(zt,yt.x,yt.y),!zt.abort&&at>=_p&&(c1(zt),ot.Bc(zt.Ho*zt.Hx,zt.Go*zt.Ix),d1(zt,a,y,yt,b,ot,!1),at=JA(zt,yt.x,yt.y)),!zt.abort&&at<_p&&JA(zt,yt.x,yt.y)!==Mf?(kv(this,zt,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)<=zt.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)<=zt.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())),Ie.free(ut),Ie.free(ct)}},Gi.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||!yn(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=wi(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)}Gi.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},Gi.prototype.qc=function(){this.lk=!1,this.v()},Gi.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 Oo&&(E.ua=this.ua)}}},Gi.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=Wi.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=Ie.allocAt(b,at),x=Ie.alloc(),x.assign(this.i(1)),z=Ie.allocAt(b,at),E=Ie.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,zt=ut,Zt=this.i(Tv(this,ut,yt,!1));if((!En.$(It.x,zt.x)||!En.$(zt.x,Zt.x))&&(!En.$(It.y,zt.y)||!En.$(zt.y,Zt.y))){var he=ct;isNaN(he)&&(he=this.smoothness/3);var He=It.x;It=It.y;var Le=zt.x;zt=zt.y;var Ve=Zt.x;Zt=Zt.y;var qe=he*f0(He,It,Le,zt);he*=f0(Le,zt,Ve,Zt),En.$(It,zt)&&En.$(Le,Ve)&&(Le>He?Zt>zt?(z.x=Le-qe,z.y=zt-qe,E.x=Le+he,E.y=zt+he):(z.x=Le-qe,z.y=zt+qe,E.x=Le+he,E.y=zt-he):Zt>zt?(z.x=Le+qe,z.y=zt-qe,E.x=Le-he,E.y=zt+he):(z.x=Le+qe,z.y=zt+qe,E.x=Le-he,E.y=zt-he)),En.$(He,Le)&&En.$(zt,Zt)&&(zt>It?(Ve>Le?(z.x=Le-qe,z.y=zt-qe,E.x=Le+he):(z.x=Le+qe,z.y=zt-qe,E.x=Le-he),E.y=zt+he):(Ve>Le?(z.x=Le-qe,z.y=zt+qe,E.x=Le+he):(z.x=Le+qe,z.y=zt+qe,E.x=Le-he),E.y=zt-he)),(En.$(He,Le)&&En.$(Le,Ve)||En.$(It,zt)&&En.$(zt,Zt))&&(He=.5*(He+Ve),It=.5*(It+Zt),z.x=He,z.y=It,E.x=He,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,cs)),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),Ie.free(y),Ie.free(x),Ie.free(z),Ie.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,cs)),Pf(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=Ie.alloc(),z.assign(this.i(0)),E=Ie.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,cs)),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,He=-at,It=ct,Le=this.i(ut),he=x,En.B(z.y,It.y)&&En.B(It.x,Le.x))if(Zt=Math.min(nt,Math.abs(It.x-E.x)/2),Zt=qe=Math.min(Zt,Math.abs(Le.y-It.y)/2),En.B(Zt,0))rp(this,ot,yt,He,z,It,he),z.assign(It);else{var rn=It.x,Sn=It.y;zt=rn,Ve=Sn,It.x>z.x?rn=It.x-Zt:rn=It.x+Zt,Le.y>It.y?Ve=It.y+qe:Ve=It.y-qe,Le=Ie.allocAt(rn,Sn),rp(this,ot,yt,He,z,Le,he),Ie.free(Le),r0(ot,It.x+yt,It.y+He,zt+yt,Ve+He),z.h(zt,Ve)}else En.B(z.x,It.x)&&En.B(It.y,Le.y)?(Zt=Math.min(nt,Math.abs(It.y-E.y)/2),Zt=qe=Math.min(Zt,Math.abs(Le.x-It.x)/2),En.B(qe,0)?(rp(this,ot,yt,He,z,It,he),z.assign(It)):(rn=It.x,Sn=It.y,zt=rn,Ve=Sn,It.y>z.y?Sn=It.y-Zt:Sn=It.y+Zt,Le.x>It.x?zt=It.x+qe:zt=It.x-qe,Le=Ie.allocAt(rn,Sn),rp(this,ot,yt,He,z,Le,he),Ie.free(Le),r0(ot,It.x+yt,It.y+He,zt+yt,Ve+He),z.h(zt,Ve))):(rp(this,ot,yt,He,z,It,he),z.assign(It));E.assign(ct),yt=ut}Ie.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=Wi.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}Gi.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,zt=Math.min(yt+nt,z.x);ct<ut&&(yt=at[ct],yt<zt+nt);)ct++,zt=Math.min(yt+ot,z.x);yt=z.y-nt+b,zt+=x;var Zt=z.y+b;a.curve===Lf?Op(y,zt,Zt,!1):Pf(y,It,yt,zt,yt,zt,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,zt=z.y+b,a.curve===Lf?Op(y,yt,zt,!1):Pf(y,It,ct,yt,ct,yt,zt)}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&&(zt=at[ct],zt<yt+nt);)ct++,yt=Math.min(zt+ot,z.y);zt=z.x-nt+x,Zt=z.x+x,yt+=b,a.curve===Lf?Op(y,Zt,yt,!1):Pf(y,zt,It,zt,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,zt=z.x+x,ct+=b,a.curve===Lf?Op(y,zt,ct,!1):Pf(y,yt,It,yt,ct,zt,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 Gi){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=Ie.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,zt=y.y,Zt=nt.x;nt=nt.y;var he=ut.x,He=ut.y;if(En.B(ct,It)){if(!En.B(yt,zt)&&En.B(nt,He)&&Math.min(yt,zt)<nt&&Math.max(yt,zt)>nt&&Math.min(Zt,he)<ct&&Math.max(Zt,he)>ct&&!En.B(Zt,he)){ot.x=ct,ot.y=nt,ct=!0;break t}}else if(En.B(yt,zt)&&En.B(Zt,he)&&Math.min(ct,It)<Zt&&Math.max(ct,It)>Zt&&Math.min(nt,He)<yt&&Math.max(nt,He)>yt&&!En.B(nt,He)){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}Ie.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()))}Gi.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 Gi&&(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 Gi&&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())}}Gi.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},Gi.prototype.isVisible=function(){if(!Vr.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},Gi.prototype.Zb=function(a){if(Vr.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)},Gi.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()))}Gi.prototype.ph=function(){return!0},je.Object.defineProperties(Gi.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:Fs},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&&Li(a,">= 0",Gi,"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:Fs},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&&Li(a,">= 0",Gi,"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?mi: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 Oo?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 Ie)}},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 Pi,b=0;b<a.length/2;b++)E=new Ie(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 Pi,b=0;b<a.length;b++)E=a[b],x.add(new Ie(E.x,E.y).freeze())}}else if(a instanceof Pi)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else tn("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)}}}),Gi.prototype.invalidateOtherJumpOvers=Gi.prototype.Xo,Gi.prototype.findClosestSegment=Gi.prototype.ez,Gi.prototype.updateRoute=Gi.prototype.vg,Gi.prototype.invalidateRoute=Gi.prototype.bb,Gi.prototype.rollbackRoute=Gi.prototype.rv,Gi.prototype.commitRoute=Gi.prototype.zf,Gi.prototype.startRoute=Gi.prototype.uh,Gi.prototype.clearPoints=Gi.prototype.Fj,Gi.prototype.removePoint=Gi.prototype.pv,Gi.prototype.addPointAt=Gi.prototype.yf,Gi.prototype.addPoint=Gi.prototype.ne,Gi.prototype.insertPointAt=Gi.prototype.m,Gi.prototype.insertPoint=Gi.prototype.Kz,Gi.prototype.setPointAt=Gi.prototype.L,Gi.prototype.setPoint=Gi.prototype.dd,Gi.prototype.getPoint=Gi.prototype.i,Gi.prototype.getOtherPort=Gi.prototype.Cz,Gi.prototype.getOtherNode=Gi.prototype.To;var op=null,sp=null,Ov=new pi(Gi,"Normal",1),Tw=new pi(Gi,"Orthogonal",2),Ow=new pi(Gi,"AvoidsNodes",6),l1=new pi(Gi,"AvoidsNodesStraight",7),Zh=new pi(Gi,"None",0),Yc=new pi(Gi,"Bezier",9),Lf=new pi(Gi,"JumpGap",10),Up=new pi(Gi,"JumpOver",11),ym=new pi(Gi,"End",17),p0=new pi(Gi,"Scale",18),m0=new pi(Gi,"Stretch",19),wm=new pi(Gi,"OrientAlong",21),xm=new pi(Gi,"OrientPlus90",22),Sm=new pi(Gi,"OrientMinus90",23),Dv=new pi(Gi,"OrientOpposite",24),v0=new pi(Gi,"OrientUpright",25),Cm=new pi(Gi,"OrientPlus90Upright",26),Bm=new pi(Gi,"OrientMinus90Upright",27),y0=new pi(Gi,"OrientUpright45",28),u1=16,h1=14,Pm=8;Gi.className="Link",Gi.Normal=Ov,Gi.Orthogonal=Tw,Gi.AvoidsNodes=Ow,Gi.AvoidsNodesStraight=l1,Gi.None=Zh,Gi.Bezier=Yc,Gi.JumpGap=Lf,Gi.JumpOver=Up,Gi.End=ym,Gi.Scale=p0,Gi.Stretch=m0,Gi.OrientAlong=wm,Gi.OrientPlus90=xm,Gi.OrientMinus90=Sm,Gi.OrientOpposite=Dv,Gi.OrientUpright=v0,Gi.OrientPlus90Upright=Cm,Gi.OrientMinus90Upright=Bm,Gi.OrientUpright45=y0,Gi.EndSegmentStep=8,Gi.CurvinessStart=u1,Gi.SpacingMin=h1,Gi.OrthoShortCut=Pm;function w0(a,y,x,b){Xo(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){Xo(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 zt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===Mf?(x0(a,ot,at,zt,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,zt,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,zt,x,ut,ct,ut,ct),x=dr(),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);Mr(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++}}}je.Object.defineProperties(bm.prototype,{bounds:{get:function(){return new si(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(){Xo(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 Do?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(rl,Ie.alloc()),at=a.port.ga($l,Ie.alloc());for(E=si.allocAt(ot.x,ot.y,0,0),E.Ye(at),Ie.free(ot),Ie.free(at),ot=Ie.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 zt=It.findVisibleNode();zt!==null&&zt!==It&&(It=zt,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)),zt=a.pe[z],zt===void 0?(zt=new Rv(ut,It,yt),a.pe[z]=zt):(zt.link=ut,zt.angle=It,zt.Nc=yt),zt.hv.set(ct),z++}}}}for(Ie.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=Ie.alloc(),at=Ie.alloc(),nt=Ie.alloc(),ut=Ie.alloc(),yt.ga(rl,ot),yt.ga(ou,at),yt.ga($l,nt),yt.ga(Ja,ut),zt=It=ct=yt=0,b===Fv)for(var Zt=0;Zt<z.length;Zt++){var he=z[Zt];if(he!==null){var He=he.link.computeThickness();switch(he.Nc){case 8:It+=He;break;case 2:zt+=He;break;case 1:yt+=He;break;default:case 4:ct+=He}}}var Le=Zt=0,Ve=1,qe=he=0;for(He=0;He<z.length;He++){var rn=z[He];if(rn!==null){if(Zt!==rn.Nc){switch(Zt=rn.Nc,Zt){case 8:var Sn=nt;Le=ut;break;case 2:Sn=ut,Le=ot;break;case 1:Sn=ot,Le=at;break;default:case 4:Sn=at,Le=nt}switch(he=Le.x-Sn.x,qe=Le.y-Sn.y,Zt){case 8:It>Math.abs(he)?(Ve=Math.abs(he)/It,It=Math.abs(he)):Ve=1;break;case 2:zt>Math.abs(qe)?(Ve=Math.abs(qe)/zt,zt=Math.abs(qe)):Ve=1;break;case 1:yt>Math.abs(he)?(Ve=Math.abs(he)/yt,yt=Math.abs(he)):Ve=1;break;default:case 4:ct>Math.abs(qe)?(Ve=Math.abs(qe)/ct,ct=Math.abs(qe)):Ve=1}Le=0}var Wn=rn.Zo;if(b===Fv){switch(rn=rn.link.computeThickness(),rn*=Ve,Wn.set(Sn),Zt){case 8:Wn.x=Sn.x+he/2+It/2-Le-rn/2;break;case 2:Wn.y=Sn.y+qe/2+zt/2-Le-rn/2;break;case 1:Wn.x=Sn.x+he/2-yt/2+Le+rn/2;break;default:case 4:Wn.y=Sn.y+qe/2-ct/2+Le+rn/2}Le+=rn}else{var ir=.5;b===h0&&(ir=(rn.Uo+1)/(rn.Gl+1)),Wn.x=Sn.x+he*ir,Wn.y=Sn.y+qe*ir}}}for(Ie.free(ot),Ie.free(at),Ie.free(nt),Ie.free(ut),Sn=a.pe,z=0;z<Sn.length;z++)b=Sn[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,si.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,Za,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 Ie,this.Gl=this.Uo=0,this.Zo=new Ie,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 Wa(a){Xo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ie(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Wa.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},Wa.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Wa.prototype.qb=function(){},Wa.prototype.toString=function(){var a=nr(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Wa.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())}}},Wa.prototype.createNetwork=function(){return new xa(this)},Wa.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof _n?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Do?y.lg(a.memberParts):y.lg(a.iterator),y},Wa.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")}},Wa.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()}},Wa.prototype.doLayout=function(a){var y=new Ci;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 Do?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},Wa.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 Do&&(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++}},Wa.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 Gi)&&(Em(ot),this.rh(ot))){var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(x,b),ot instanceof Do&&(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++}}},Wa.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Do&&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 Do&&at.layout===null?ig(a,y,at.memberParts,!1,E,z,nt,ot):(Em(at),y.add(at))):nt&&at instanceof Gi?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()}Wa.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new si),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Wa.prototype.ex=function(a){var y=new Ci;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 Do?ig(this,y,a.memberParts,!1,null,!0,!0,!0):ig(this,y,a.iterator,!1,null,!0,!0,!0),y},Wa.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(rl),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},je.Object.defineProperties(Wa.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())}}}),Wa.prototype.collectParts=Wa.prototype.ex,Wa.prototype.getLayoutBounds=Wa.prototype.ni,Wa.prototype.invalidateLayout=Wa.prototype.C,Wa.className="Layout";function xa(a){Xo(this),this.Sc=a,this.wf=new Ci,this.ye=new Ci,this.Es=new wr,this.zs=new wr}xa.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 Ci,this.ye=new Ci,this.Es=new wr,this.zs=new wr},xa.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},xa.prototype.createVertex=function(){return new xu(this)},xa.prototype.createEdge=function(){return new Mc(this)},xa.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 Gi){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 Do&&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 Gi&&(!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))}}},xa.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},Xt=xa.prototype,Xt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Xt.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},Xt.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}Xt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Xt.ki=function(a){return a===null?null:this.Es.I(a)},Xt.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}}Xt.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},Xt.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))}Xt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Xt.Lo=function(a){return a===null?null:this.zs.I(a)},Xt.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},Xt.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))}},Xt.Ko=function(){for(var a=dr(),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]);Mr(a)},xa.prototype.deleteArtificialVertexes=function(){for(var a=dr(),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=dr(),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]);Mr(a),Mr(y)};function jw(a){for(var y=dr(),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]);Mr(y)}xa.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jw(this),this.Ko()),a=new Pi;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))}}xa.prototype.dz=function(){for(var a=new Ci,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},je.Object.defineProperties(xa.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}}}),xa.prototype.findAllParts=xa.prototype.dz,xa.prototype.splitIntoSubNetworks=xa.prototype.Zx,xa.prototype.deleteSelfEdges=xa.prototype.Ko,xa.prototype.reverseEdge=xa.prototype.gm,xa.prototype.linkVertexes=xa.prototype.Zj,xa.prototype.findEdge=xa.prototype.Lo,xa.prototype.deleteLink=xa.prototype.Yy,xa.prototype.deleteEdge=xa.prototype.Mj,xa.prototype.addLink=xa.prototype.Dy,xa.prototype.addEdge=xa.prototype.Bo,xa.prototype.findVertex=xa.prototype.ki,xa.prototype.deleteNode=xa.prototype.Zy,xa.prototype.deleteVertex=xa.prototype.Iu,xa.prototype.addNode=xa.prototype.Bl,xa.prototype.addVertex=xa.prototype.dh,xa.prototype.addParts=xa.prototype.lg,xa.className="LayoutNetwork";function xu(a){Xo(this),this.ob=a,this.j=new si(0,0,10,10).freeze(),this.o=new Ie(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Pi,this.mg=new Pi}xu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Pi,this.mg=new Pi},xu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+xs(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 Do)){x=si.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Mo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),si.free(x);return}si.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}je.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=si.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),si.free(x),!(a instanceof Do)&&(a=a.locationObject.ga(Mo),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 Ci,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ci,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ci,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 Pi,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){Xo(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#"+xs(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},je.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 nh(a){Wa.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Vi(NaN,NaN).freeze(),this.tf=new Vi(10,10).freeze(),this.Jb=Fm,this.Rb=B0,this.nd=Lm,this.hd=p1,a&&Object.assign(this,a)}Nn(nh,Wa),nh.prototype.cloneProtected=function(a){Wa.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},nh.prototype.qb=function(a){a.classType===nh?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:tn("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},nh.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 Do)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=si.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 zt=this.ni(E[It],ut);yt=Math.max(yt,zt.height)}yt=Math.max(yt+at,1),It=this.arrangement;for(var Zt=zt=this.arrangementOrigin.x,he=this.arrangementOrigin.y,He=0,Le=0,Ve=0;Ve<E.length;Ve++){var qe=E[Ve],rn=this.ni(qe,ut),Sn=Math.ceil((rn.width+ot)/ct)*ct,Wn=Math.ceil((rn.height+at)/yt)*yt;switch(It){case AA:var ir=Math.abs(Zt-rn.width);break;default:ir=Zt+rn.width}switch((0<z&&He>z-1||0<nt&&0<He&&ir-zt>nt)&&(b.push(new si(0,he,nt+ot,Le)),He=0,Zt=zt,he+=Le,Le=0),Le=Math.max(Le,Wn),It){case AA:rn=-rn.width;break;default:rn=0}switch(qe.moveTo(Zt+rn,he),It){case AA:Zt-=Sn;break;default:Zt+=Sn}He++}b.push(new si(0,he,nt+ot,Le)),si.free(ut);break;case Fm:for(at=nt,ct=z,yt=y,It=x,nt=si.alloc(),zt=Math.max(this.cellSize.width,1),z=he=ut=0,ot=Ie.alloc(),Zt=0;Zt<E.length;Zt++)Le=E[Zt],He=this.ni(Le,nt),Le=bf(Le,Le.locationObject,Le.locationSpot,ot),ut=Math.max(ut,Le.x),he=Math.max(he,He.width-Le.x),z=Math.max(z,Le.y);switch(Zt=this.arrangement,Zt){case AA:ut+=yt;break;default:he+=yt}zt=isFinite(zt)?Math.max(zt+yt,1):Math.max(ut+he,1);var Nr=Le=this.arrangementOrigin.x;for(Ve=this.arrangementOrigin.y,he=0,at>=ut&&(at-=ut),ut=qe=0,Sn=Math.max(this.cellSize.height,1),rn=z=0,Wn=!0,He=Ie.alloc(),ir=0;ir<E.length;ir++){var mr=E[ir],Ki=this.ni(mr,nt),Mi=bf(mr,mr.locationObject,mr.locationSpot,ot);if(0<he)switch(Zt){case AA:Nr=(Nr-Le-(Ki.width-Mi.x))/zt,Nr=En.$(Math.round(Nr),Nr)?Math.round(Nr):Math.floor(Nr),Nr=Nr*zt+Le;break;default:Nr=(Nr-Le+Mi.x)/zt,Nr=En.$(Math.round(Nr),Nr)?Math.round(Nr):Math.ceil(Nr),Nr=Nr*zt+Le}else switch(Zt){case AA:qe=Nr+Mi.x+Ki.width;break;default:qe=Nr-Mi.x}switch(Zt){case AA:var No=-(Nr+Mi.x)+qe;break;default:No=Nr+Ki.width-Mi.x-qe}if(0<ct&&he>ct-1||0<at&&0<he&&No>at){for(b.push(new si(0,Wn?Ve-z:Ve,at+yt,rn+z+It)),Nr=0;Nr<he&&ir!==he;Nr++){No=E[ir-he+Nr];var mo=bf(No,No.locationObject,No.locationSpot,He);No.moveTo(No.position.x,No.position.y+z-mo.y)}rn+=It,Ve=Wn?Ve+rn:Ve+(rn+z),he=rn=z=0,Nr=Le,Wn=!1}switch(Nr===Le&&(ut=Zt===AA?Math.max(ut,Ki.width-Mi.x):Math.min(ut,-Mi.x)),z=Math.max(z,Mi.y),rn=Math.max(rn,Ki.height-Mi.y),isFinite(Sn)&&(rn=Math.max(rn,Math.max(Ki.height,Sn)-Mi.y)),Wn?mr.moveTo(Nr-Mi.x,Ve-Mi.y):mr.moveTo(Nr-Mi.x,Ve),Zt){case AA:Nr-=Mi.x+yt;break;default:Nr+=Ki.width-Mi.x+yt}he++}if(b.push(new si(0,Ve,at+yt,(Wn?rn:rn+z)+It)),E.length!==he)for(at=0;at<he;at++)ct=E[E.length-he+at],yt=bf(ct,ct.locationObject,ct.locationSpot,ot),ct.moveTo(ct.position.x,ct.position.y+z-yt.y);if(Ie.free(ot),Ie.free(He),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);si.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 Ie(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new Ie(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},nh.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}je.Object.defineProperties(nh.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 pi(nh,"Position",0),Fm=new pi(nh,"Location",1),B0=new pi(nh,"LeftToRight",2),AA=new pi(nh,"RightToLeft",3),Kv=new pi(nh,"Forward",4),P0=new pi(nh,"Reverse",5),Lm=new pi(nh,"Ascending",6),b0=new pi(nh,"Descending",7);nh.className="GridLayout",nh.standardComparer=p1,nh.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},nh.Position=C0,nh.Location=Fm,nh.LeftToRight=B0,nh.RightToLeft=AA,nh.Forward=Kv,nh.Reverse=P0,nh.Ascending=Lm,nh.Descending=b0;function Ws(){this.On=new Ci,this.Dn=new Ci,this.Pa=new Ci,this.cf=new wr,this.bf=new wr,this.aj=new wr,this.H=null,this.tp=!1}Xt=Ws.prototype,Xt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Xt.Xe=function(a){this.H=a},Xt.oi=function(a){if(a instanceof hr){if(this.On.add(a),a instanceof Do){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 Gi?this.Dn.add(a):a instanceof Ls||this.Pa.add(a);y=a.data,y===null||a instanceof Ls||(a instanceof Gi?this.bf.add(y,a):this.cf.add(y,a))},Xt.pc=function(a){if(a.Ej(),a instanceof hr){if(this.On.remove(a),a instanceof Do){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 Gi?this.Dn.remove(a):a instanceof Ls||this.Pa.remove(a);y=a.data,y===null||a instanceof Ls||(a instanceof Gi?this.bf.remove(y):this.cf.remove(y))},Xt.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 Do)&&tn('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 Do||tn('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 Gi||tn('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=dr(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=dr(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=dr(),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]);Mr(y),Mr(x),Mr(a)}},Ws.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ws.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&&(ru(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)}}Ws.prototype.insertLink=function(){return null},Ws.prototype.resolveReferencesForData=function(){},Ws.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,tr('No Group template found for category "'+x+'"'),tr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,tr('No Node template found for category "'+x+'"'),tr(" Using default node template")),y=a.ny))),y}Ws.prototype.getLinkCategoryForData=function(){return""},Ws.prototype.setLinkCategoryForData=function(){},Ws.prototype.setFromNodeForLink=function(){},Ws.prototype.setToNodeForLink=function(){},Ws.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,tr('No Link template found for category "'+a+'"'),tr(" Using default link template")),x=y.my)),x},Ws.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ws.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ws.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Pd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ws.prototype.unresolveReferencesForPart=function(){},Ws.prototype.removeDataForLink=function(){},Ws.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ws.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)},Ws.prototype.findLinkForKey=function(){return null},Xt=Ws.prototype,Xt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Xt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof hr?a:null)},Xt.Kc=function(a){return a===null?null:this.bf.I(a)},Xt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ci;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},Xt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ci;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(ui(z)){if(!ui(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}Ws.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===gl){var nt=a.newValue;b==="nodeDataArray"&&kn(nt)&&m1(this,nt),y.isModified=!0}else if(x===Hl){var ot=a.oldValue;b==="nodeDataArray"&&kn(ot)&&this.ip(ot),y.isModified=!0}else x===oh&&(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===gl||x===Hl){var ct=a.change===gl,yt=ct?a.newParam:a.oldParam,It=ct?a.newValue:a.oldValue,zt=this.aj.I(a.object);if(Array.isArray(zt))for(a=0;a<zt.length;a++){var Zt=zt[a];if(ct)DA(Zt,It,yt,!0);else if(!(0>yt)){var he=yt+OA(Zt);Zt.pc(he,!0),fh(Zt,he,yt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ws.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)},Ws.prototype.rp=function(){for(var a=this.H.model,y=new Ci,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()},Ws.prototype.refreshDataBoundLinks=function(){},Ws.prototype.updateRelationshipsFromData=function(){},Ws.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=dr()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Mr(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(ui(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){dl(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(ui(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}}}}Ws.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new wr;if(ui(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 Ci;for(var z=new wr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Gi)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 wr;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 Vr))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 Do&&z instanceof Do)for(y=y.memberParts;y.next();)nt=E0(a,y.value,x,b,E),nt instanceof Gi||nt===null||(nt.containingGroup=z)}else if(y instanceof Gi&&z instanceof Gi)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}Ws.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Gi||(b=E.copyNodeData(b),kn(b)&&(E.xf(b),x=y.Lc(b)))}else ru(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 Gi||(E=y.copyNodeData(b)),kn(E)&&(x.data=E)));return x},je.Object.defineProperties(Ws.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}}}),Ws.prototype.updateAllRelationshipsFromData=Ws.prototype.rp,Ws.prototype.findLinksByExample=Ws.prototype.ls,Ws.prototype.findNodesByExample=Ws.prototype.ms,Ws.prototype.findLinkForData=Ws.prototype.Kc,Ws.prototype.findNodeForData=Ws.prototype.ii,Ws.prototype.findPartForData=Ws.prototype.Lc,Ws.prototype.findNodeForKey=Ws.prototype.Vb,Ws.prototype.removeModeledPart=Ws.prototype.ip,Ws.prototype.removeModeledParts=Ws.prototype.Gs,Ws.prototype.rebuildParts=Ws.prototype.Wd;var w1=!1,x1=!1,S1=!1;Ws.className="PartManager";function Hu(a){Ws.apply(this,arguments)}Nn(Hu,Ws),Hu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Hu.prototype.addModeledParts=function(a){for(Ws.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){ru(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}}}}Hu.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)})}Hu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Hu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Hu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Hu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Hu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Hu.prototype.findPartForKey=function(a){var y=Ws.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Hu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Hu.prototype.doModelChanged=function(a){var y=this;if(Ws.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 zt=this.Lc(a.object);if(zt!==null){var Zt=a.newValue;if(Zt!==void 0){var he=this.Vb(Zt);he instanceof Do?zt.containingGroup=he:zt.containingGroup=null}else zt.containingGroup=null}}else if(E==="linkLabelKeys"){var He=this.Kc(a.object);if(He!==null){var Le=a.oldValue,Ve=a.newValue;Array.isArray(Le)&&Le.forEach(function(Mi){0<=Ve.indexOf(Mi)||(Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=null))}),Array.isArray(Ve)&&Ve.forEach(function(Mi){Mi=y.Vb(Mi),Mi!==null&&(Mi.labeledLink=He)})}}else if(E==="linkCategory"){var qe=this.Kc(a.object),rn=a.newValue;qe!==null&&typeof rn=="string"&&(qe.category=rn)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===gl){var Sn=a.newValue;if(E==="linkDataArray"&&typeof Sn=="object"&&Sn!==null)B1(this,Sn);else if(E==="linkLabelKeys"&&og(Sn)){var Wn=this.Kc(a.object),ir=this.Vb(Sn);Wn!==null&&ir!==null&&(ir.labeledLink=Wn)}x.isModified=!0}else if(b===Hl){var Nr=a.oldValue;if(E==="linkDataArray"&&typeof Nr=="object"&&Nr!==null)this.ip(Nr);else if(E==="linkLabelKeys"&&og(Nr)){var mr=this.Vb(Nr);mr!==null&&(mr.labeledLink=null)}x.isModified=!0}}else if(b===Fa){var Ki=a.propertyName;a.object!==x.model||Ki!=="linkFromKeyProperty"&&Ki!=="linkToKeyProperty"&&Ki!=="linkFromPortIdProperty"&&Ki!=="linkToPortIdProperty"&&Ki!=="linkLabelKeysProperty"&&Ki!=="nodeIsGroupProperty"&&Ki!=="nodeGroupKeyProperty"&&Ki!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Hu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ci,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)})},Hu.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 Gi){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 Ci().addAll(y);var nt=new Ci;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 Ls)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Do)&&(a.containingGroup=y)}}},Hu.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 Do&&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 Do&&(E.containingGroup=a))}},Hu.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 Do)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&fA(y,x,b)}}},Hu.prototype.copyPartData=function(a,y){var x=Ws.prototype.copyPartData.call(this,a,y);if(a instanceof Gi)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},Hu.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 Gi){if(ru(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&&(ru(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},Hu.prototype.findLinkForKey=Hu.prototype.findLinkForKey,Hu.prototype.findPartForKey=Hu.prototype.findPartForKey,Hu.prototype.removeAllModeledParts=Hu.prototype.removeAllModeledParts,Hu.prototype.addModeledParts=Hu.prototype.addModeledParts,Hu.prototype.addAllModeledParts=Hu.prototype.addAllModeledParts,Hu.className="GraphLinksPartManager";function gd(){Ws.apply(this,arguments),this.Sg=null}Nn(gd,Ws);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&&(ru(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(Ws.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){Ws.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(Hl,"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 Or(a,y){this.kl=new Ci,this.il=new Ci,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Xo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new wr,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 wr,this.Lt=new Pi,this.Wg=!1,this.o=null,this.undoManager=new Et,a!==void 0&&(ui(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Or.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},Or.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Or.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Or.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)+":"+Cr(E)}}return y},Or.prototype.xA=function(a){a.change!==oh&&tn("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Yl?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Or.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(yt){yt.model===x&&(yt.modelChange==="nodeDataArray"?yt.change===gl?E.add(yt.newValue):yt.change===Hl&&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 Or||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},Or.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=va++,b.set(yt,It),E.set(yt,y))}if(!kn(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new wr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new wr),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 Ie||y instanceof Vi||y instanceof si||y instanceof Qr||y instanceof fr)at=y.copy(),nt(y,at);else{if(y instanceof js||y instanceof Wi||y instanceof pi)return y;if(y instanceof Pi)at=new Pi().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Ci)at=new Ci().addAll(Hp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof wr)at=new wr().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}Xt=Or.prototype,Xt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Xt.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},Xt.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)}Xt.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)},Xt.kv=function(a){b1(this,a),a=a.nodeDataArray,ui(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 Ci,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new wr,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===gl||z===Hl)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function F1(a,y){for(var x=new Ci,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}Xt.Pv=function(a,y){var x=this,b=!1,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(ct){ct.model===x&&(ct.modelChange==="nodeDataArray"?ct.change===gl?E.add(ct.newValue):ct.change===Hl&&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 Or||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},Xt.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)&&tn("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new wr;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)},Xt.$x=function(a,y){a.change!==oh&&tn("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Yl?(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 }'},Xt.yA=function(a,y){return this.$x(a,y)},Xt.np=function(a){return a===void 0&&(a=Nm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Xt.toJSON=function(a){return this.np(a)},Xt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Fe.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:tn("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&tn("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Xt.Ky=function(a){return this.Zw(a)},Or.constructGraphLinksModel=function(){return new Or},Xt=Or.prototype,Xt.dm=function(a){if(ui(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:tn("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 Pi,b=0;b<x.length/2;b++)E.add(new Ie(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},Xt.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()):ui(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 Hr;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 Xh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof Ie)y={class:"go.Point",x:Xh(x.x),y:Xh(x.y)};else if(x instanceof Vi)y={class:"go.Size",width:Xh(x.width),height:Xh(x.height)};else if(x instanceof si)y={class:"go.Rect",x:Xh(x.x),y:Xh(x.y),width:Xh(x.width),height:Xh(x.height)};else if(x instanceof Qr)y={class:"go.Margin",top:Xh(x.top),right:Xh(x.right),bottom:Xh(x.bottom),left:Xh(x.left)};else if(x instanceof fr)x.sb()?y={class:"go.Spot",x:Xh(x.x),y:Xh(x.y),offsetX:Xh(x.offsetX),offsetY:Xh(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===Qt?y.color=x.color:(x.type===de||x.type===Ee)&&(y.start=x.start,y.end=x.end,x.type===Ee&&(x.startRadius!==0&&(y.startRadius=Xh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Xh(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 Wi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Xh(x.startX)),x.startY!==0&&(y.startY=Xh(x.startY)),x.endX!==0&&(y.endX=Xh(x.endX)),x.endY!==0&&(y.endY=Xh(x.endY)),x.spot1.D(rl)||(y.spot1=x.spot1),x.spot2.D($l)||(y.spot2=x.spot2),x.type===Wi.o&&(y.path=Wi.ia(x))):x instanceof pi&&(y={class:"go.EnumValue",classType:Nm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Zl(y,E);if(!L1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Pi){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 $h(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 Ie($h(a.x),$h(a.y));else if(y==="Size")x=new Vi($h(a.width),$h(a.height));else if(y==="Rect")x=new si($h(a.x),$h(a.y),$h(a.width),$h(a.height));else if(y==="Margin")x=new Qr($h(a.top),$h(a.right),$h(a.bottom),$h(a.left));else if(y==="Spot")typeof a.enum=="string"?x=zd(a.enum):x=new fr($h(a.x),$h(a.y),$h(a.offsetX),$h(a.offsetY));else if(y==="Brush"){if(x=new js,x.type=or(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=$h(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=$h(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=Wi.parse(a.path):x=new Wi,x.type=or(Wi,a.type),typeof a.startX=="number"&&(x.startX=$h(a.startX)),typeof a.startY=="number"&&(x.startY=$h(a.startY)),typeof a.endX=="number"&&(x.endX=$h(a.endX)),typeof a.endY=="number"&&(x.endY=$h(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=or(b,a.name)));return x}Xt.Pe=function(a){return this.Lt.add(a),this},Xt.ik=function(a){this.Lt.remove(a)},Xt.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)},Xt.cb=function(a,y,x,b,E,z,nt){cu(this,"",a,y,x,b,E,z,nt)},Xt.g=function(a,y,x,b,E){cu(this,"",Fa,a,this,y,x,b,E)},Xt.Fs=function(a,y,x,b,E,z){cu(this,"",Fa,y,a,x,b,E,z)};function cu(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)}Or.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)),Qa(x,b,E)}else a.change===gl?(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&&cr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!ui(b)&&a.propertyName&&(b=Zl(a.object,a.propertyName)),ui(b)&&typeof x=="number"&&(a=a.newValue,y?zr(b,x):cr(b,x,a))):tn("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Hl?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,kn(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&cr(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)&&!ui(b)&&a.propertyName&&(b=Zl(a.object,a.propertyName)),ui(b)&&typeof x=="number"&&(a=a.oldValue,y?cr(b,x,a):zr(b,x))):tn("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==oh&&tn("unknown ChangedEvent: "+a.toString())},Or.prototype.Ea=function(a){return this.undoManager.Ea(a)},Or.prototype.eb=function(a){return this.undoManager.eb(a)},Or.prototype.Kf=function(){return this.undoManager.Kf()},Or.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}},Xt=Or.prototype,Xt.La=function(a,y){y===void 0&&(y=""),cu(this,"SourceChanged",oh,y,a,null,null)},Xt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;tn("Key value for node data "+a+" is not a number or a string: "+y)}}},Xt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b!==y&&this.hc(y)===null&&(Qa(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),cu(this,"nodeKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Qa(a,x,y)}};function og(a){return typeof a=="number"||typeof a=="string"}Xt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Xt.hc=function(a){return a===null&&tn("Model.findNodeDataForKey:key must not be null"),a!==void 0&&og(a)?this.kb.I(a):null},Xt.$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))){Qa(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Qa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Qa(a,y,x)}}}}},Xt.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&&tn("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,cr(a.Tc,b,y)),cu(a,"nodeDataArray",gl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Xt.Fy=function(a){if(ui(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)},Xt.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)}cu(a,"nodeDataArray",Hl,"nodeDataArray",a,y,null,b,null),a.qp(y)}Xt.nA=function(a){if(ui(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)},Xt.$z=function(a){if(a!==this.nodeDataArray&&ui(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()}},Xt.jp=function(a,y){y!==void 0&&(a=Mm(this,a),a instanceof Ci&&this.Vf.add(y,a))},Xt.Lv=function(){},Xt.fm=function(){},Xt.em=function(){},Xt.qp=function(){};function fA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ci,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 Ci&&(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 Ci?a:null)}Xt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Or.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)&&Xo(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 Xo(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=Zl(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 Or||z instanceof Et||z instanceof Yl||z instanceof Ea||(z=M0(a,z,!1)),Qa(x,b,z)}return Xo(x),x}return y instanceof Ie||y instanceof Vi||y instanceof si||y instanceof fr||y instanceof Qr?y.copy():y}Or.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 pn&&(I1=!0,tr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),tr(" Is that really your intent?"));var b=Zl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Xt=Or.prototype,Xt.set=function(a,y,x){this.setDataProperty(a,y,x)},Xt.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])}},Xt.Ay=function(a,y){this.ts(a,-1,y)},Xt.ts=function(a,y,x){0>y&&(y=a.length),cr(a,y,x),cu(this,"",gl,"",a,null,x,null,y)},Xt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&tn("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];zr(a,y),cu(this,"",Hl,"",a,x,null,y,null)},Xt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Zl(a,y),y===void 0))return"";if(typeof y=="string")return y;tn("getCategoryForNodeData found a non-string category for "+a+": "+y)},Xt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),cu(this,"nodeCategory",Fa,x,a,b,y))}else Qa(a,x,y)}},Xt.lm=function(a,y){this.jm(y,this.Ro(a))},Xt.Tl=function(){return!1},Xt.Wj=function(){return!1},Xt.ri=function(){return!1},Xt.xs=function(){return!1},Xt.Xj=function(){return!1};function Xv(){return new Or}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]:Fe.go!==void 0&&Fe.go[a]?Fe.go[a]:null}function Zl(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 Qa(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){}}je.Object.defineProperties(Or.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===""&&tn("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&tn("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)||tn("Model.nodeDataArray must only contain Objects, not: "+E),ra(E)}for(this.Tc=a,b=new Pi,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(cu(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"}}}),Or.prototype.setCategoryForNodeData=Or.prototype.jm,Or.prototype.getCategoryForNodeData=Or.prototype.Ro,Or.prototype.removeArrayItem=Or.prototype.ov,Or.prototype.insertArrayItem=Or.prototype.ts,Or.prototype.addArrayItem=Or.prototype.Ay,Or.prototype.assignAllDataProperties=Or.prototype.Do,Or.prototype.set=Or.prototype.set,Or.prototype.clearUnresolvedReferences=Or.prototype.Qy,Or.prototype.mergeNodeDataArray=Or.prototype.$z,Or.prototype.removeNodeDataCollection=Or.prototype.nA,Or.prototype.removeNodeData=Or.prototype.cm,Or.prototype.addNodeDataCollection=Or.prototype.Fy,Or.prototype.addNodeData=Or.prototype.xf,Or.prototype.makeNodeDataKeyUnique=Or.prototype.$u,Or.prototype.findNodeDataForKey=Or.prototype.hc,Or.prototype.containsNodeData=Or.prototype.lb,Or.prototype.setKeyForNodeData=Or.prototype.km,Or.prototype.getKeyForNodeData=Or.prototype.wa,Or.prototype.updateTargetBindings=Or.prototype.La,Or.prototype.commit=Or.prototype.commit,Or.prototype.rollbackTransaction=Or.prototype.Kf,Or.prototype.commitTransaction=Or.prototype.eb,Or.prototype.startTransaction=Or.prototype.Ea,Or.prototype.raiseDataChanged=Or.prototype.Fs,Or.prototype.raiseChanged=Or.prototype.g,Or.prototype.raiseChangedEvent=Or.prototype.cb,Or.prototype.removeChangedListener=Or.prototype.ik,Or.prototype.addChangedListener=Or.prototype.Pe,Or.prototype.writeJsonValue=Or.prototype.sm,Or.prototype.replaceJsonObjects=Or.prototype.dm,Or.prototype.applyIncrementalJSON=Or.prototype.Ky,Or.prototype.applyIncrementalJson=Or.prototype.Zw,Or.prototype.toJSON=Or.prototype.toJSON,Or.prototype.toJson=Or.prototype.np,Or.prototype.toIncrementalJSON=Or.prototype.yA,Or.prototype.toIncrementalJson=Or.prototype.$x,Or.prototype.toIncrementalData=Or.prototype.xA,Or.prototype.clear=Or.prototype.clear;var I1=!1,tA={};Or.className="Model",Or.fromJSON=Or.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Fe.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:tn("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=Fe[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Or?y=a:tn("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Or.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Or.safePropertyValue=Zl,Or.safePropertySet=Qa,tA.Brush=js,tA.ChangedEvent=Ea,tA.Geometry=Wi,tA.Margin=Qr,tA.Panel=ci,tA.Point=Ie,tA.Rect=si,tA.Size=Vi,tA.Spot=fr,tA.Transaction=Yl,tA.UndoManager=Et;function Jl(a,y,x,b){Xo(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 Ci}Jl.prototype.copy=function(){var a=new Jl;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},Xt=Jl.prototype,Xt.qb=function(a){a.classType===Jl&&(this.mode=a)},Xt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Xt.freeze=function(){return this._isFrozen=!0,this},Xt.ka=function(){return this._isFrozen=!1,this},Xt.Kx=function(a){return a===void 0&&(a=null),this.mode=Im,this.backConverter=a,this},Xt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Xt.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)}Xt.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==="")tr("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Zl(y,b)),z!==void 0)if(E===null)x!==""&&Qa(a,x,z);else try{if(x!==""){var nt=E(z,a);Qa(a,x,nt)}else E(z,a)}catch(ot){}}}},Xt.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=Zl(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):Qa(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):Qa(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 zt=b.itemIndex,Zt=b.panel.itemArray;at.ov(Zt,zt),at.ts(Zt,zt,It)}}}catch(he){}}finally{this.st.remove(a)}}}},je.Object.defineProperties(Jl.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&oi(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&oi(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&oi(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&oi(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&oi(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&oi(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&oi(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&oi(this),this.el=a}}}),Jl.prototype.updateSource=Jl.prototype.sp,Jl.prototype.updateTarget=Jl.prototype.Mv,Jl.prototype.ofModel=Jl.prototype.dA,Jl.prototype.ofObject=Jl.prototype.cp,Jl.prototype.makeTwoWay=Jl.prototype.Kx;var Rw="Binding",T1=new pi(Jl,"OneWay",1),Im=new pi(Jl,"TwoWay",2);Jl.className="Binding",Jl.parseEnum=function(a,y){return function(x){return x=or(a,x),x===null?y:x}},Jl.toString=Cr,Jl.OneWay=T1,Jl.TwoWay=Im;function ys(a,y,x){Or.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Ci,this.wb=new wr,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&&(ui(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Nn(ys,Or),ys.constructGraphLinksModel=Or.constructGraphLinksModel,ys.prototype.cloneProtected=function(a){Or.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},Xt=ys.prototype,Xt.clear=function(){Or.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Xt.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)+":"+Cr(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},Xt.Qv=function(a,y){this.linkKeyProperty===""&&tn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Or.prototype.Qv.call(this,a,y),b=this,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===gl?E.add(ct.newValue):ct.change===Hl&&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 Or||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},Xt.rm=function(){var a=Or.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},Xt.gp=function(a){Or.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)},Xt.Rv=function(){var a=Or.prototype.Rv.call(this),y=`,
"linkDataArray": `+rg(this,this.linkDataArray,!0);return a+y},Xt.kv=function(a){Or.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 Ci,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];L0(a,y,E,E,x)}return x}Xt.Pv=function(a,y){this.linkKeyProperty===""&&tn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Or.prototype.Pv.call(this,a,y),b=this,E=new Ci,z=new Ci,nt=new Ci,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===gl?E.add(ct.newValue):ct.change===Hl&&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 Or||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},Xt.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)&&tn("applyIncrementalJson cannot change Model properties"),Or.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)},ys.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),Qa(x,b,E);return}}else if(a.change===gl){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===Hl){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}}Or.prototype.changeState.call(this,a,y)}},Xt=ys.prototype,Xt.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),Qa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Xt.yx=function(a){return Jc(this,a,!0)},Xt.wv=function(a,y){Qp(this,a,y,!0)},Xt.Bx=function(a){return Jc(this,a,!1)},Xt.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=Zl(y,a),a!==void 0))){if(og(a))return a;tn((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=Zl(y,E);z!==x&&(gA(a,z,y),Qa(y,E,x),a.hc(x)===null&&fA(a,x,y),cu(a,b?"linkFromKey":"linkToKey",Fa,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qa(y,E,x)}}Xt.zx=function(a){return N0(this,a,!0)},Xt.xv=function(a,y){zp(this,a,y,!0)},Xt.Cx=function(a){return N0(this,a,!1)},Xt.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=Zl(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=Zl(y,E);z===void 0&&(z=""),z!==x&&(Qa(y,E,x),cu(a,b?"linkFromPortId":"linkToPortId",Fa,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qa(y,E,x)}}Xt.Ef=function(a){if(a===null)return I0;var y=this.je;return y===""?I0:(a=Zl(a,y),a===void 0?I0:a)},Xt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Zl(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(Qa(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&fA(this,nt,a)}cu(this,"linkLabelKeys",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Qa(a,x,y)}},Xt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Zl(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),cu(this,"linkLabelKeys",gl,x,a,null,y,null,E)))}else tn(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Xt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Zl(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(gA(this,y,a),cu(this,"linkLabelKeys",Hl,x,a,y,null,E,null)))}else b!==void 0&&tn(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Xt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;tn("Key value for link data "+a+" is not a number or a string: "+y)}}},Xt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Zl(a,x);b!==y&&this.jh(y)===null&&(Qa(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),cu(this,"linkKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Xt.jh=function(a){return a===null&&tn("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&og(a)?this.wb.I(a):null},Xt.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))){Qa(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Qa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Qa(a,y,x)}}}}},Xt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Xt.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&&tn("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)),cu(a,"linkDataArray",gl,"linkDataArray",a,null,y,null,b),Yv(a,y)}Xt.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)},Xt.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(cu(a,"linkDataArray",Hl,"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)}Xt.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)},Xt.Zz=function(a){if(this.linkKeyProperty===""&&tn("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&ui(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)}Xt.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)&&(Xo(a),this.lf!==""&&Qa(a,this.lf,void 0),this.mf!==""&&Qa(a,this.mf,void 0),this.je!==""&&Qa(a,this.je,[])),a},Xt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Zl(a,y)},Xt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;tn("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Xt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b!==y&&(gA(this,b,a),Qa(a,x,y),this.hc(y)===null&&fA(this,y,a),cu(this,"nodeGroupKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},ys.prototype.copyNodeData=function(a){return a===null?null:(a=Or.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Zl(a,this.Je)===void 0||Qa(a,this.Je,void 0),a)},ys.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=Zl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Xt=ys.prototype,Xt.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&&Zl(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Xt.jp=function(a,y){Or.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;Qa(b,nt,z),cu(this,"linkFromKey",Fa,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Jc(this,b,!1)===E&&(nt=this.mf,Qa(b,nt,z),cu(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,cu(this,"linkLabelKeys",gl,at,b,E,z,ut,ut))}},Xt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Qa(a,b,x),cu(this,"nodeGroupKey",Fa,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Xt.Lv=function(){Or.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Yv(this,a[x])},Xt.fm=function(a){Or.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=dr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;cu(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,cu(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,cu(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&&(cu(this,"linkLabelKeys",gl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)gA(this,a,x[y]);Mr(x)}},Xt.em=function(a){Or.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&fA(this,y,a)},Xt.qp=function(a){Or.prototype.qp.call(this,a);var y=this.lh(a);gA(this,y,a)},Xt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Zl(a,y),y===void 0))return"";if(typeof y=="string")return y;tn("getCategoryForLinkData found a non-string category for "+a+": "+y)},ys.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ys.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Zl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),cu(this,"linkCategory",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},ys.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Xt=ys.prototype,Xt.lm=function(a,y){Or.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))}Xt.Wj=function(){return!0},Xt.ri=function(){return!0},Xt.xs=function(){return!0},Xt.Xj=function(){return!0},je.Object.defineProperties(ys.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)||tn("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ra(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Pi,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 Ci,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,cu(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"}}}),ys.prototype.setCategoryForLinkData=ys.prototype.lp,ys.prototype.getCategoryForLinkData=ys.prototype.ps,ys.prototype.assignAllDataProperties=ys.prototype.Do,ys.prototype.setGroupKeyForNodeData=ys.prototype.mp,ys.prototype.getGroupKeyForNodeData=ys.prototype.lh,ys.prototype.isGroupForNodeData=ys.prototype.Yu,ys.prototype.copyLinkData=ys.prototype.Jo,ys.prototype.mergeLinkDataArray=ys.prototype.Zz,ys.prototype.removeLinkDataCollection=ys.prototype.lA,ys.prototype.removeLinkData=ys.prototype.bm,ys.prototype.addLinkDataCollection=ys.prototype.Ey,ys.prototype.addLinkData=ys.prototype.fi,ys.prototype.containsLinkData=ys.prototype.Jc,ys.prototype.makeLinkDataKeyUnique=ys.prototype.Bs,ys.prototype.findLinkDataForKey=ys.prototype.jh,ys.prototype.setKeyForLinkData=ys.prototype.Ks,ys.prototype.getKeyForLinkData=ys.prototype.Ac,ys.prototype.removeLabelKeyForLinkData=ys.prototype.Qx,ys.prototype.addLabelKeyForLinkData=ys.prototype.Bu,ys.prototype.setLabelKeysForLinkData=ys.prototype.Ls,ys.prototype.getLabelKeysForLinkData=ys.prototype.Ef,ys.prototype.setToPortIdForLinkData=ys.prototype.Cv,ys.prototype.getToPortIdForLinkData=ys.prototype.Cx,ys.prototype.setFromPortIdForLinkData=ys.prototype.xv,ys.prototype.getFromPortIdForLinkData=ys.prototype.zx,ys.prototype.setToKeyForLinkData=ys.prototype.Bv,ys.prototype.getToKeyForLinkData=ys.prototype.Bx,ys.prototype.setFromKeyForLinkData=ys.prototype.wv,ys.prototype.getFromKeyForLinkData=ys.prototype.yx,ys.prototype.clear=ys.prototype.clear;var I0=Object.freeze([]);ys.className="GraphLinksModel",tA.GraphLinksModel=ys,Or.constructGraphLinksModel=Or.constructGraphLinksModel=function(){return new ys},Or.initDiagramModel=Xv=function(){return new ys};function Yh(a,y){Or.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(ui(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Nn(Yh,Or),Yh.constructGraphLinksModel=Or.constructGraphLinksModel,Yh.prototype.cloneProtected=function(a){Or.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Xt=Yh.prototype,Xt.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)+":"+Cr(E)}}return y},Xt.rm=function(){var a=Or.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Xt.gp=function(a){Or.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Xt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&tn("applyIncrementalJson cannot change Model properties"),Or.prototype.fp.call(this,a)},Xt.Vl=function(a){return a},Xt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Zl(a,y),y!==void 0)){if(og(y))return y;tn("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Xt.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=Zl(a,x);b!==y&&(gA(this,b,a),Qa(a,x,y),this.hc(y)===null&&fA(this,y,a),cu(this,"nodeParentKey",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Xt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Zl(a,y),y===void 0)?"":typeof y=="string"?y:(tn("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Yh.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Yh.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Zl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),cu(this,"parentLinkCategory",Fa,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Yh.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Yh.prototype.copyNodeData=function(a){return a===null?null:(a=Or.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Zl(a,this.Ke)===void 0||Qa(a,this.Ke,void 0),a)},Yh.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=Zl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Xt=Yh.prototype,Xt.jp=function(a,y){Or.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Xt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Qa(a,b,x),cu(this,"nodeParentKey",Fa,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Xt.fm=function(a){Or.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=dr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;cu(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]);Mr(x)}},Xt.em=function(a){Or.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&fA(this,y,a)},Xt.qp=function(a){Or.prototype.qp.call(this,a);var y=this.mh(a);gA(this,y,a)},Xt.lm=function(a,y){Or.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Xt.Tl=function(){return!0},Xt.xs=function(){return!0},je.Object.defineProperties(Yh.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"}}}),Yh.prototype.setParentLinkCategoryForNodeData=Yh.prototype.Ms,Yh.prototype.getParentLinkCategoryForNodeData=Yh.prototype.ss,Yh.prototype.setParentKeyForNodeData=Yh.prototype.qe,Yh.prototype.getParentKeyForNodeData=Yh.prototype.mh,Yh.className="TreeModel",tA.TreeModel=Yh;function Al(a){Wa.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new Ie,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=Jh,this.nd=Gp,this.hd=zv,this.tf=6,this.Nn=R0,a&&Object.assign(this,a)}Nn(Al,Wa),Al.prototype.cloneProtected=function(a){Wa.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},Al.prototype.qb=function(a){a.classType===Al?a===j0||a===U0||a===O0||a===D0||a===Gp?this.sorting=a:a===Tg||a===Kp||a===Jh||a===ag?this.direction=a:a===Nf||a===sg||a===eA||a===nA?this.arrangement=a:(a===lp||a===R0)&&(this.nodeDiameterFormula=a):Wa.prototype.qb.call(this,a)},Al.prototype.createNetwork=function(){return new Wp(this)},Al.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 Pi;y.addAll(a.iterator),a=new Pi;var x=new Pi,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 Pi,b.addAll(a),b.addAll(x)):(this.arrangement===nA&&x.reverse(),b=new Pi,b.addAll(x),b.addAll(a))}at=b.length;for(var zt=z=E=0;zt<b.length;zt++){var Zt=yt+It*z*(this.direction===Jh?1:-1)/at,he=b.M(zt).diameter;isNaN(he)&&(he=lg(b.M(zt),Zt)),360>It&&(zt===0||zt===b.length-1)&&(he/=2),E+=he,z++}if(isNaN(ut)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)zt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(zt.diameter)&&lg(zt,0),isNaN(E.diameter)&&lg(E,0),z=Math.max(z,(zt.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,zt=Jv(this,ut,z,yt*Math.PI/180,It*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(zt-E)/(360<=It?at:at-1));else if(ot===eA||ot===nA)zt=(zt-E)/(360<=It?at:at-1),zt<y?(ut=k0(this,E+y*(360<=It?at:at-1),ct,yt*Math.PI/180,It*Math.PI/180),z=ut*ct):y=zt;else{for(nt=-1/0,E=0;E<at;E++)Zt=b.M(E),he=b.M(E===at-1?0:E+1),isNaN(Zt.diameter)&&lg(Zt,0),isNaN(he.diameter)&&lg(he,0),nt=Math.max(nt,(Zt.diameter+he.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=zt/(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,Jh);break;case eA:Tm(this,x,ut+nt,Jh);break;case Nf:km(this,x,ct/2,ut+nt,Jh)}}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,Jh);break;case eA:Tm(this,a,ut+nt,Jh);break;case Nf:km(this,a,ct/2,ut+nt,Jh)}}}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,Jh)}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===Jh?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===Jh?x:-x,(ut.diameter+ct.diameter)/2+nt),x+=b===Jh?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===Jh?x:-x,nt),x+=b===Jh?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===Jh?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=Ie.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(Ie.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),zt=Math.abs(ut-yt)-((ct[0].height+ct[ct.length-1].height)/2+nt);nt=0,1>Math.abs(zt)?Math.abs(at-z)<(ct[0].width+ct[ct.length-1].width)/2&&(nt=0):nt=0<zt?zt:1>Math.abs(It)?0:It,at=Math.abs(z)>Math.abs(yt)?0<z!=ut>yt:0<yt!=at<z,(at=E===Jh?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=Ie.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(Ie.free(ct),a.mj++,!(23<a.mj)){if(at=Math.atan2(ut,at),at=E===Jh?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===Jh)){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===Jh)){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}Al.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Al.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 Ie(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))},Al.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}}Al.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:tn("Invalid sorting type.")}return a};function _w(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Pi;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}Al.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 Pi;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,zt=[],Zt=0;Zt<x.length;Zt++)0>y[x[Zt]].indexOf(x[Zt===x.length-1?0:Zt+1])&&zt.push(Zt===x.length-1?0:Zt+1);if(zt.length===0)for(Zt=0;Zt<x.length;Zt++)zt.push(Zt);for(Zt=0;Zt<zt.length;Zt++){for(var he=zt[Zt],He=y[ut],Le=0,Ve=0;Ve<nt.length;Ve++){var qe=z[nt[Ve]],rn=z[ot[Ve]];if(qe<rn){var Sn=qe;qe=rn}else Sn=rn;if(Sn<he&&he<=qe)for(rn=0;rn<He.length;rn++){var Wn=He[rn];0>x.indexOf(Wn)||Sn<z[Wn]&&z[Wn]<qe||Sn===z[Wn]||qe===z[Wn]||Le++}else for(rn=0;rn<He.length;rn++)Wn=He[rn],0>x.indexOf(Wn)||Sn<z[Wn]&&z[Wn]<qe&&Sn!==z[Wn]&&qe!==z[Wn]&&Le++}for(He=Le,Ve=Le=0;Ve<y[ut].length;Ve++)Sn=x.indexOf(y[ut][Ve]),0<=Sn&&(Sn=Math.abs(he-(Sn>=he?Sn+1:Sn)),Le+=Sn<x.length+1-Sn?Sn:x.length+1-Sn);for(Ve=0;Ve<nt.length;Ve++)Sn=z[nt[Ve]],qe=z[ot[Ve]],Sn>=he&&Sn++,qe>=he&&qe++,Sn>qe&&(rn=qe,qe=Sn,Sn=rn),qe-Sn<(x.length+2)/2==(Sn<he&&he<=qe)&&Le++;(He<ct||He===ct&&Le<yt)&&(ct=He,yt=Le,It=he)}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++)zt=x.indexOf(y[ut][It]),0>zt||zt===ct||(Zt=zt>ct?zt-ct:ct-zt,yt+=zt<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},je.Object.defineProperties(Al.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!==Jh&&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 pi(Al,"ConstantSpacing",0),sg=new pi(Al,"ConstantDistance",1),Nf=new pi(Al,"ConstantAngle",2),nA=new pi(Al,"Packed",3),Jh=new pi(Al,"Clockwise",4),ag=new pi(Al,"Counterclockwise",5),Tg=new pi(Al,"BidirectionalLeft",6),Kp=new pi(Al,"BidirectionalRight",7),O0=new pi(Al,"Forwards",8),D0=new pi(Al,"Reverse",9),j0=new pi(Al,"Ascending",10),U0=new pi(Al,"Descending",11),Gp=new pi(Al,"Optimized",12),R0=new pi(Al,"Pythagorean",13),lp=new pi(Al,"Circular",14);Al.className="CircularLayout",Al.ConstantSpacing=eA,Al.ConstantDistance=sg,Al.ConstantAngle=Nf,Al.Packed=nA,Al.Clockwise=Jh,Al.Counterclockwise=ag,Al.BidirectionalLeft=Tg,Al.BidirectionalRight=Kp,Al.Forwards=O0,Al.Reverse=D0,Al.Ascending=j0,Al.Descending=U0,Al.Optimized=Gp,Al.Pythagorean=R0,Al.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){xa.call(this,a)}Nn(Wp,xa),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}Nn(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}je.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)}Nn(_0,Mc),_0.className="CircularEdge";function gh(a){Wa.call(this),this.ah=null,this.An=0,this.$d=new Vi(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)}Nn(gh,Wa),gh.prototype.cloneProtected=function(a){Wa.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},gh.prototype.createNetwork=function(){return new up(this)},gh.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=dr(),ct=0;ct<ot+y.vertexes.count+2;ct++)ut[ct]=null;ot=0,nt.reset();for(var yt=si.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 Ie(yt.x+yt.width+b.width,yt.y),ut[1]=new Ie(yt.x,yt.y+yt.height+b.height),ot=2;else{var It=G1(ut,ot,E,z,yt.width,yt.height,b),zt=ut[It],Zt=new Ie(zt.x+yt.width+b.width,zt.y),he=new Ie(zt.x,zt.y+yt.height+b.height);for(It+1<ot&&ut.splice(It+1,0,null),ut[It]=Zt,ut[It+1]=he,ot++,It=zt.x-yt.x,zt=zt.y-yt.y,ct=ct.vertexes.iterator;ct.next();)Zt=ct.value,Zt.centerX+=It,Zt.centerY+=zt}for(si.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 Ie(It.x+It.width+b.width,It.y),ut[1]=new Ie(It.x,It.y+It.height+b.height),ot=2):(at=G1(ut,ot,E,z,It.width,It.height,b),yt=ut[at],zt=new Ie(yt.x+It.width+b.width,yt.y),It=new Ie(yt.x,yt.y+It.height+b.height),at+1<ot&&ut.splice(at+1,0,null),ut[at]=zt,ut[at+1]=It,ot++,nt.centerX=yt.x+nt.width/2,nt.centerY=yt.y+nt.height/2);for(Mr(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},gh.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},gh.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 Pi),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 Pi,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Pi,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 zt=z.value;if(zt.Ax(yt)===E){It=zt;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,zt=ct*yt,1>zt&&(zt=1),ot=En.sqrt((ot+zt+ut*ut*4/(nt*nt))/zt),nt=(ot-1)*ct/2,ot=(ot-1)*yt/2,E.bounds=new si(z-It.x-nt,at-It.y-ot,ct+2*nt,yt+2*ot),E.focus=new Ie(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 si(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new Ie(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(zt,Zt){return zt===null||Zt===null||zt===Zt?0:Zt.width*Zt.height-zt.width*zt.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}gh.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},gh.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(he,He){return he===null||He===null||he===He?0:he.centerX-He.centerX}):y.sort(function(he,He){return he===null||He===null||he===He?0:he.centerY-He.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 zt=b.y+ot.y;if(at-ut>x||ut-at>x){if(E)break}else if(ct-zt>x||zt-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>zt?(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=(zt-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}gh.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},gh.prototype.moveFixedVertex=function(){},gh.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},gh.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Fs,y.toSpot=Fs)}},gh.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=si.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,si.free(x)}x=si.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()}si.free(x)},gh.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},gh.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},gh.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},gh.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},gh.prototype.electricalFieldX=function(){return 0},gh.prototype.electricalFieldY=function(){return 0},gh.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},gh.prototype.gravitationalFieldX=function(){return 0},gh.prototype.gravitationalFieldY=function(){return 0},gh.prototype.isFixed=function(a){return a.isFixed},je.Object.defineProperties(gh.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"&&tn('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())}}}),gh.className="ForceDirectedLayout";function Z1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Z1.className="ForceDirectedSubnet";function up(a){xa.call(this,a)}Nn(up,xa),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}Nn(Um,xu),je.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}Nn(Rm,Mc),je.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 Vs(a){Wa.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 Ie,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Nn(Vs,Wa),Vs.prototype.cloneProtected=function(a){Wa.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},Vs.prototype.qb=function(a){a.classType===Vs?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:tn("Unknown enum value: "+a):Wa.prototype.qb.call(this,a)},Vs.prototype.createNetwork=function(){return new Zp(this)},Vs.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 zt=It;yt=at,It=ot,at=ut,ot=zt}var Zt=E.focus;ut=z.focus;var he=b.rev?z.bounds:E.bounds;zt=Ie.alloc(),ct!==yt?he.w()&&yt.isVisible()?yt.actualBounds.w()?(bf(yt,It,Mo,zt),zt.x+=yt.actualBounds.x-he.x,zt.y+=yt.actualBounds.y-he.y):(bf(yt,It,Mo,zt),zt.w()||zt.assign(Zt)):zt.assign(Zt):he.w()?(bf(yt,It,Mo,zt),zt.w()||zt.assign(Zt)):zt.assign(Zt),yt=b.rev?E.bounds:z.bounds,ct=Ie.alloc(),nt!==at?yt.w()&&at.isVisible()?at.actualBounds.w()?(bf(at,ot,Mo,ct),ct.x+=at.actualBounds.x-yt.x,ct.y+=at.actualBounds.y-yt.y):(bf(at,ot,Mo,ct),ct.w()||ct.assign(ut)):ct.assign(ut):yt.w()?(bf(at,ot,Mo,ct),ct.w()||ct.assign(ut)):ct.assign(ut),this.K===90||this.K===270?(nt=Math.round((zt.x-Zt.x)/this.kc),at=zt.x,ot=Math.round((ct.x-ut.x)/this.kc),ut=ct.x):(nt=Math.round((zt.y-Zt.y)/this.kc),at=zt.y,ot=Math.round((ct.y-ut.y)/this.kc),ut=ct.y),Ie.free(zt),Ie.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(zt=E.layer,ct=z.layer,yt=0,he=b.link,he!==null){var He=he.fromPort,Le=he.toPort;if(He!==null&&Le!==null){var Ve=he.fromNode;if(It=he.toNode,Ve!==null&&It!==null){var qe=G0(this,!0),rn=G0(this,!1),Sn=this.setsPortSpots?qe:he.computeSpot(!0,He);Zt=this.setsPortSpots?rn:he.computeSpot(!1,Le);var Wn=he.isOrthogonal;Sn.$c()&&Sn.Hf(rn)&&Zt.$c()&&Zt.Hf(qe)?yt=0:(qe=he.getLinkPoint(Ve,He,Sn,!0,Wn,It,Le,Ie.alloc()),rn=he.getLinkDirection(Ve,He,qe,Sn,!0,Wn,It,Le),Ie.free(qe),Sn.ys()||rn!==iw(this,b,!0)?this.setsPortSpots&&Ve!==null&&Ve.ports.count===1&&b.rev&&(yt+=1):yt+=1,Sn=he.getLinkPoint(It,Le,Zt,!1,Wn,Ve,He,Ie.alloc()),he=he.getLinkDirection(It,Le,Sn,Zt,!1,Wn,Ve,He),Ie.free(Sn),Zt.ys()||he!==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=zt,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),he=1,yt&&he--,zt-ct>he&&0<zt){for(b.valid=!1,Zt=a.createVertex(),Zt.node=null,Zt.Dj=2,Zt.layer=zt-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,zt--;zt-ct>he&&0<zt;)Zt=a.createVertex(),Zt.node=null,Zt.Dj=3,Zt.layer=zt-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,zt--;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},Vs.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}Vs.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},Vs.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 dc(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 zt=at[ut];if(zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,ct=zt.portToPos,zt=zt.portFromPos,It=ut+1;It<at.length;It++){var Zt=at[It];if(Zt.valid&&Zt.fromVertex.layer!==y){var he=Zt.fromVertex.index,He=Zt.portToPos;Zt=Zt.portFromPos,ct<He&&(yt>he||yt===he&&zt>Zt)&&ot++,He<ct&&(he>yt||he===yt&&Zt>zt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ut=0;ut<at.length;ut++)if(zt=at[ut],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,ct=zt.portToPos,zt=zt.portFromPos,It=ut+1;It<at.length;It++)Zt=at[It],Zt.valid&&Zt.toVertex.layer!==y&&(he=Zt.toVertex.index,He=Zt.portToPos,Zt=Zt.portFromPos,zt<Zt&&(yt>he||yt===he&&ct>He)&&ot++,Zt<zt&&(he>yt||he===yt&&He>ct)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var Le=0,Ve=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var qe=b[at].sourceEdgesArrayAccess;for(ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.fromVertex.layer!==y)for(yt=zt.fromVertex.index,zt=zt.portFromPos,It=0;It<qe.length;It++)Zt=qe[It],Zt.valid&&Zt.fromVertex.layer!==y&&(he=Zt.fromVertex.index,Zt=Zt.portFromPos,(yt<he||yt===he&&zt<Zt)&&Ve++,(he<yt||he===yt&&Zt<zt)&&Le++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,qe=b[at].destinationEdgesArrayAccess,ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.toVertex.layer!==y)for(yt=zt.toVertex.index,ct=zt.portToPos,It=0;It<qe.length;It++)Zt=qe[It],Zt.valid&&Zt.toVertex.layer!==y&&(he=Zt.toVertex.index,He=Zt.portToPos,(yt<he||yt===he&&ct<He)&&Ve++,(he<yt||he===yt&&He<ct)&&Le++)}z[nt*E+at]=Le,z[at*E+nt]=Ve}}return hg(a,y,b),z}Vs.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,zt=yt.toVertex.column+yt.portToColOffset;ot+=(Math.abs(It-zt)+1)*qv(yt)}}}hg(b,E,z),y+=ot}return y}Vs.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 zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(ct+=zt.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 zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(yt[ct]=zt.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,he){return Zt-he}),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)}}Vs.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++}Vs.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 zt=0;zt<E;zt++){var Zt=It[zt],he=Zt.fromVertex;ct+=1,he.component!==1&&(z+=1,he=he.layer-ut.layer,Zt=a.linkMinLength(Zt),b=Math.min(b,he-Zt))}for(It=ut.destinationEdgesArrayAccess,E=It.length,zt=0;zt<E;zt++)Zt=It[zt].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,zt=0;zt<yt;zt++)Zt=It[zt].fromVertex,ut+=1,Zt.component!==1?b+=1:ct=!0;for(It=nt.destinationEdgesArrayAccess,yt=It.length,zt=0;zt<yt;zt++)Zt=It[zt],he=Zt.toVertex,--ut,he.component!==1&&(--b,he=nt.layer-he.layer,Zt=a.linkMinLength(Zt),E=Math.min(E,he-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}Vs.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))}Vs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=dc(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=dc(this)),b=this.Ia;0<=b;b--)z0(this,b,-1),Dd(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=dc(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=dc(this)),b=this.Ia;0<=b;b--)z0(this,b,0),Dd(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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=dc(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,zt=0,Zt=b[z].column,he=b[z+1].column,He=a.nodeMinColumnSpace(b[z],!0),Le=a.nodeMinColumnSpace(b[z],!1),Ve=a.nodeMinColumnSpace(b[z+1],!0),qe=a.nodeMinColumnSpace(b[z+1],!1);He=Zt-He+Ve,Le=he-Le+qe;var rn=b[z].sourceEdges.iterator;for(rn.reset();rn.next();)if(Ve=rn.value,qe=Ve.fromVertex,Ve.valid&&qe.layer===y){for(Ve=0;b[Ve]!==qe;)Ve++;Ve<z&&(It+=2*(z-Ve),zt+=2*(z+1-Ve)),Ve===z+1&&(It+=1),Ve>z+1&&(It+=4*(Ve-z),zt+=4*(Ve-(z+1)))}for(rn=b[z].destinationEdges.iterator,rn.reset();rn.next();)if(Ve=rn.value,qe=Ve.toVertex,Ve.valid&&qe.layer===y){for(Ve=0;b[Ve]!==qe;)Ve++;Ve===z+1&&(zt+=1)}for(rn=b[z+1].sourceEdges.iterator,rn.reset();rn.next();)if(Ve=rn.value,qe=Ve.fromVertex,Ve.valid&&qe.layer===y){for(Ve=0;b[Ve]!==qe;)Ve++;Ve<z&&(It+=2*(z+1-Ve),zt+=2*(z-Ve)),Ve===z&&(zt+=1),Ve>z+1&&(It+=4*(Ve-(z+1)),zt+=4*(Ve-z))}for(rn=b[z+1].destinationEdges.iterator,rn.reset();rn.next();)if(Ve=rn.value,qe=Ve.toVertex,Ve.valid&&qe.layer===y){for(Ve=0;b[Ve]!==qe;)Ve++;Ve===z&&(It+=1)}Ve=qe=0,rn=nt[b[z].index];var Sn=ot[b[z].index],Wn=nt[b[z+1].index],ir=ot[b[z+1].index];rn!==-1&&(qe+=Math.abs(rn-Zt),Ve+=Math.abs(rn-Le)),Sn!==-1&&(qe+=Math.abs(Sn-Zt),Ve+=Math.abs(Sn-Le)),Wn!==-1&&(qe+=Math.abs(Wn-he),Ve+=Math.abs(Wn-He)),ir!==-1&&(qe+=Math.abs(ir-he),Ve+=Math.abs(ir-He)),(zt<It-.5||zt===It&&yt<ct-.5||zt===It&&yt===ct&&Ve<qe-.5)&&(ut=at=!0,b[z].column=Le,b[z+1].column=He,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}Vs.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),zt=0;0>b-1||ct-E[b-1].column-1>yt+a.nodeMinColumnSpace(E[b-1],!1)?zt=ct-1:zt=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,he=0;if(0>=x)for(var He=E[b].sourceEdges.iterator;He.next();){var Le=He.value,Ve=Le.fromVertex;if(Le.valid&&Ve.layer!==y){var qe=qv(Le),rn=Le.portFromColOffset;Le=Le.portToColOffset,Ve=Ve.column,It+=(Math.abs(ct+Le-(Ve+rn))+1)*qe,Zt+=(Math.abs(zt+Le-(Ve+rn))+1)*qe,he+=(Math.abs(yt+Le-(Ve+rn))+1)*qe}}if(0<=x)for(He=E[b].destinationEdges.iterator;He.next();)Le=He.value,Ve=Le.toVertex,Le.valid&&Ve.layer!==y&&(qe=qv(Le),rn=Le.portFromColOffset,Le=Le.portToColOffset,Ve=Ve.column,It+=(Math.abs(ct+rn-(Ve+Le))+1)*qe,Zt+=(Math.abs(zt+rn-(Ve+Le))+1)*qe,he+=(Math.abs(yt+rn-(Ve+Le))+1)*qe);Le=rn=qe=0,He=nt[E[b].index],Ve=ot[E[b].index],He!==-1&&(qe+=Math.abs(He-ct),rn+=Math.abs(He-zt),Le+=Math.abs(He-yt)),Ve!==-1&&(qe+=Math.abs(Ve-ct),rn+=Math.abs(Ve-zt),Le+=Math.abs(Ve-yt)),Zt<It||Zt===It&&rn<qe?(ut=at=!0,E[b].column=zt):(he<It||he===It&&Le<qe)&&(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=dc(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=dc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=dc(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=dc(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=dr(),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 Ci,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)),Mr(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(zt){var Zt=dr();ut&&Zt.push(z.get(zt)),ct&&Zt.push(nt.get(zt)),yt&&Zt.push(ot.get(zt)),It&&Zt.push(at.get(zt)),Zt.sort(function(He,Le){return He-Le});var he=Zt.length;he=(Zt[Math.floor((he-1)/2)]+Zt[Math.ceil((he-1)/2)])/2,Mr(Zt),zt.zc=he})}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),zt=It.next();!zt.done;zt=It.next())zt=zt.value,zt.valid&&yt.push(zt);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}}}Vs.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,zt=nt?yt.width:yt.height;if(x){var Zt=$0(ct,yt),he=Zt.portFromPos,He=Zt.portToPos;Zt.link!==null&&(ct.node&&ct.node!==Zt.link.fromNode&&(he=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Zt.link.toNode&&(He=nt?yt.focusX:yt.focusY))}else Zt=$0(yt,ct),he=Zt.portToPos,He=Zt.portFromPos,Zt.link!==null&&(ct.node&&ct.node!==Zt.link.toNode&&(he=nt?ct.focusX:ct.focusY),yt.node&&yt.node!==Zt.link.fromNode&&(He=nt?yt.focusX:yt.focusY));It=b?ct.qg+(It-he)-(zt-He):ct.qg+he-He,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 wr,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&&tn("Could not determine previous vertex in layer"),y[x][a-1]}Vs.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=dr(),E=dr(),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)));Mr(b),Mr(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}Vs.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?za:Ol:a.K===90?y?Ol:za:a.K===180?y?Aa:tl:y?tl:Aa}Vs.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 Ie(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Vs.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 si(0,0,x,Math.abs(this.Ta[0]))):y.push(new si(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new si(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new si(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new si(0,0,Math.abs(this.Ta[0]),x)):y.push(new si(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new si(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new si(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Vs.prototype.commitLayers=function(){},Vs.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===Za&&(b=!0),ot!==null&&at===Za&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Mo),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(Mo),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,zt=!1,Zt=this.ie,he=y.firstPickIndex+1;if(y.isOrthogonal){zt=!0;var He=y.pointsCount;4<He&&y.points.removeRange(2,He-3)}else if(y.curve===Yc)It=!0,He=y.pointsCount,4<He&&y.points.removeRange(2,He-3),He===4&&(he=2);else{He=y.pointsCount;var Le=ut===Za,Ve=at===Za;2<He&&Le&&Ve?y.points.removeRange(1,He-2):3<He&&Le&&!Ve?y.points.removeRange(1,He-3):3<He&&!Le&&Ve?y.points.removeRange(2,He-2):4<He&&!Le&&!Ve&&y.points.removeRange(2,He-3)}if(x.rev){for(;yt!==null&&ct!==yt;){var qe=He=null;for(Le=yt.sourceEdges.iterator;Le.next()&&(Ve=Le.value,Ve.link!==x.link||(He=Ve.fromVertex,qe=Ve.toVertex,He.node!==null)););if(He===null)break;if(He!==ct){Le=y.i(he-1).x,Ve=y.i(he-1).y;var rn=He.centerX,Sn=He.centerY;if(zt)this.K===180||this.K===0?he===y.firstPickIndex+1?(y.m(he++,Le,Ve),y.m(he++,Le,Sn)):(qe!==null?qe.centerY:Ve)!==Sn&&(qe=this.Ta[He.layer-1]+this.Rf.x,y.m(he++,qe,Ve),y.m(he++,qe,Sn)):he===y.firstPickIndex+1?(y.m(he++,Le,Ve),y.m(he++,rn,Ve)):(qe!==null?qe.centerX:Le)!==rn&&(qe=this.Ta[He.layer-1]+this.Rf.y,y.m(he++,Le,qe),y.m(he++,rn,qe));else if(he===y.firstPickIndex+1){qe=Math.max(10,this.he[yt.layer]);var Wn=Math.max(10,this.Ld[yt.layer]);if(It)this.K===180?rn<=yt.bounds.x?(yt=yt.bounds.x,y.m(he++,yt-qe,Sn),y.m(he++,yt,Sn),y.m(he++,yt+Wn,Sn)):(y.m(he++,rn-qe,Sn),y.m(he++,rn,Sn),y.m(he++,rn+Wn,Sn)):this.K===90?Sn>=yt.bounds.bottom?(yt=yt.bounds.y+yt.bounds.height,y.m(he++,rn,yt+Wn),y.m(he++,rn,yt),y.m(he++,rn,yt-qe)):(y.m(he++,rn,Sn+Wn),y.m(he++,rn,Sn),y.m(he++,rn,Sn-qe)):this.K===270?Sn<=yt.bounds.y?(yt=yt.bounds.y,y.m(he++,rn,yt-qe),y.m(he++,rn,yt),y.m(he++,rn,yt+Wn)):(y.m(he++,rn,Sn-qe),y.m(he++,rn,Sn),y.m(he++,rn,Sn+Wn)):this.K===0&&(rn>=yt.bounds.right?(yt=yt.bounds.x+yt.bounds.width,y.m(he++,yt+Wn,Sn),y.m(he++,yt,Sn),y.m(he++,yt-qe,Sn)):(y.m(he++,rn+Wn,Sn),y.m(he++,rn,Sn),y.m(he++,rn-qe,Sn)));else{y.m(he++,Le,Ve);var ir=0;this.K===180||this.K===0?((this.K===180?rn>=yt.bounds.right:rn<=yt.bounds.x)&&(ir=(this.K===0?-qe:Wn)/2),y.m(he++,Le+ir,Sn)):((this.K===270?Sn>=yt.bounds.bottom:Sn<=yt.bounds.y)&&(ir=(this.K===90?-qe:Wn)/2),y.m(he++,rn,Ve+ir)),y.m(he++,rn,Sn)}}else qe=Math.max(10,this.he[He.layer]),Wn=Math.max(10,this.Ld[He.layer]),It?this.K===180?(y.m(he++,rn-qe-Zt,Sn),y.m(he++,Math.min(rn-qe+Zt/2,rn),Sn),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,Math.max(rn+Wn-Zt/2,rn),Sn),y.m(he++,rn+Wn+Zt,Sn)):this.K===90?(y.m(he++,rn,Sn+Wn+Zt),y.m(he++,rn,Math.max(Sn+Wn-Zt/2,Sn)),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,rn,Math.min(Sn-qe+Zt/2,Sn)),y.m(he++,rn,Sn-qe-Zt)):this.K===270?(y.m(he++,rn,Sn-qe-Zt),y.m(he++,rn,Math.min(Sn-qe+Zt/2,Sn)),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,rn,Math.max(Sn+Wn-Zt/2,Sn)),y.m(he++,rn,Sn+Wn+Zt)):(y.m(he++,rn+Wn+Zt,Sn),y.m(he++,Math.max(rn+Wn-Zt/2,rn),Sn),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,Math.min(rn-qe+Zt/2,rn),Sn),y.m(he++,rn-qe-Zt,Sn)):y.m(he++,rn,Sn)}yt=He}(ot===null||ut!==Za||zt)&&(Le=y.i(he-1).x,Ve=y.i(he-1).y,rn=y.i(he).x,Sn=y.i(he).y,zt?(Zt=this.Ld[ct.layer],this.K===180||this.K===0?(zt=Ve,zt>=ct.bounds.y&&zt<=ct.bounds.bottom&&(this.K===180?rn>=ct.bounds.x:rn<=ct.bounds.right)&&(yt=ct.centerX+(this.K===180?-Zt:Zt),zt<ct.bounds.y+ct.bounds.height/2?zt=ct.bounds.y-this.kc/2:zt=ct.bounds.bottom+this.kc/2,y.m(he++,yt,Ve),y.m(he++,yt,zt)),y.m(he++,rn,zt)):(zt=Le,zt>=ct.bounds.x&&zt<=ct.bounds.right&&(this.K===270?Sn>=ct.bounds.y:Sn<=ct.bounds.bottom)&&(yt=ct.centerY+(this.K===270?-Zt:Zt),zt<ct.bounds.x+ct.bounds.width/2?zt=ct.bounds.x-this.kc/2:zt=ct.bounds.right+this.kc/2,y.m(he++,Le,yt),y.m(he++,zt,yt)),y.m(he++,zt,Sn)),y.m(he++,rn,Sn)):It?(qe=Math.max(10,this.he[ct.layer]),Wn=Math.max(10,this.Ld[ct.layer]),this.K===180&&rn>=ct.bounds.x?(yt=ct.bounds.x+ct.bounds.width,y.L(he-2,yt,Ve),y.L(he-1,yt+Wn,Ve)):this.K===90&&Sn<=ct.bounds.bottom?(yt=ct.bounds.y,y.L(he-2,Le,yt),y.L(he-1,Le,yt-qe)):this.K===270&&Sn>=ct.bounds.y?(yt=ct.bounds.y+ct.bounds.height,y.L(he-2,Le,yt),y.L(he-1,Le,yt+Wn)):this.K===0&&rn<=ct.bounds.right&&(yt=ct.bounds.x,y.L(he-2,yt,Ve),y.L(he-1,yt-qe,Ve))):(qe=Math.max(10,this.he[ct.layer]),Wn=Math.max(10,this.Ld[ct.layer]),zt=0,this.K===180||this.K===0?((this.K===180?rn<=ct.bounds.x:rn>=ct.bounds.right)&&(zt=(this.K===0?Wn:-qe)/2),y.m(he++,rn+zt,Ve)):((this.K===270?Sn<=ct.bounds.y:Sn>=ct.bounds.bottom)&&(zt=(this.K===90?Wn:-qe)/2),y.m(he++,Le,Sn+zt)),y.m(he++,rn,Sn)))}else{for(;ct!==null&&ct!==yt;){for(qe=He=null,ct=ct.destinationEdges.iterator;ct.next()&&(Le=ct.value,Le.link!==x.link||(He=Le.toVertex,qe=Le.fromVertex,qe.node!==null&&(qe=null),He.node!==null)););if(He===null)break;He!==yt&&(Le=y.i(he-1).x,Ve=y.i(he-1).y,rn=He.centerX,Sn=He.centerY,zt?this.K===180||this.K===0?(qe!==null?qe.centerY:Ve)!==Sn&&(qe=this.Ta[He.layer]+this.Rf.x,he===y.firstPickIndex+1&&(qe=this.K===0?Math.max(qe,Le):Math.min(qe,Le)),y.m(he++,qe,Ve),y.m(he++,qe,Sn)):(qe!==null?qe.centerX:Le)!==rn&&(qe=this.Ta[He.layer]+this.Rf.y,he===y.firstPickIndex+1&&(qe=this.K===90?Math.max(qe,Ve):Math.min(qe,Ve)),y.m(he++,Le,qe),y.m(he++,rn,qe)):(qe=Math.max(10,this.he[He.layer]),Wn=Math.max(10,this.Ld[He.layer]),It?this.K===180?(y.m(he++,rn+Wn+Zt,Sn),y.m(he++,Math.max(rn+Wn-Zt/2,rn),Sn),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,Math.min(rn-qe+Zt/2,rn),Sn),y.m(he++,rn-qe-Zt,Sn)):this.K===90?(y.m(he++,rn,Sn-qe-Zt),y.m(he++,rn,Math.min(Sn-qe+Zt/2,Sn)),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,rn,Math.max(Sn+Wn-Zt/2,Sn)),y.m(he++,rn,Sn+Wn+Zt)):this.K===270?(y.m(he++,rn,Sn+Wn+Zt),y.m(he++,rn,Math.max(Sn+Wn-Zt/2,Sn)),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,rn,Math.min(Sn-qe+Zt/2,Sn)),y.m(he++,rn,Sn-qe-Zt)):(y.m(he++,rn-qe-Zt,Sn),y.m(he++,Math.min(rn-qe+Zt/2,rn),Sn),y.m(he++,rn,Sn),y.m(he++,rn,Sn),y.m(he++,Math.max(rn+Wn-Zt/2,rn),Sn),y.m(he++,rn+Wn+Zt,Sn)):this.K===180?(y.m(he++,rn+Wn,Sn),y.m(he++,rn-qe,Sn)):this.K===90?(y.m(he++,rn,Sn-qe),y.m(he++,rn,Sn+Wn)):this.K===270?(y.m(he++,rn,Sn+Wn),y.m(he++,rn,Sn-qe)):(y.m(he++,rn-qe,Sn),y.m(he++,rn+Wn,Sn)))),ct=He}zt&&(Le=y.i(he-1).x,Ve=y.i(he-1).y,rn=y.i(he).x,Sn=y.i(he).y,this.K===180||this.K===0?Ve!==Sn&&(qe=this.K===0?Math.min(Math.max((rn+Le)/2,this.Ta[yt.layer]+this.Rf.x),rn):Math.max(Math.min((rn+Le)/2,this.Ta[yt.layer]+this.Rf.x),rn),y.m(he++,qe,Ve),y.m(he++,qe,Sn)):Le!==rn&&(qe=this.K===90?Math.min(Math.max((Sn+Ve)/2,this.Ta[yt.layer]+this.Rf.y),Sn):Math.max(Math.min((Sn+Ve)/2,this.Ta[yt.layer]+this.Rf.y),Sn),y.m(he++,Le,qe),y.m(he++,rn,qe)))}b!==null&&It&&4<=y.pointsCount&&(nt!==null&&(nt=ut===Za?y.getLinkPointFromPoint(E,nt,nt.ga(Mo),y.i(3),!0):y.i(0),ut===Za&&(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===Za?y.getLinkPointFromPoint(z,ot,ot.ga(Mo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Za&&(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()},Vs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Pi,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 zt=It.link;z=zt.i(It.index),nt=zt.i(It.index+1);var Zt=this.linkSpacing*(ct-(ut-1)/2);y++,zt.uh(),zt.L(It.index,z.x,z.y+Zt),zt.L(It.index+1,nt.x,nt.y+Zt),zt.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),zt=It.link,z=zt.i(It.index),nt=zt.i(It.index+1),Zt=this.linkSpacing*(ct-(ut-1)/2),y++,zt.uh(),zt.L(It.index,z.x+Zt,z.y),zt.L(It.index+1,nt.x+Zt,nt.y),zt.zf()}z=E}a=b}}}},Xt=Vs.prototype,Xt.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},Xt.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},Xt.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},Xt.B=function(a,y){return a-=y,-1<a&&1>a},Xt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&tn("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}je.Object.defineProperties(Vs.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()):tn("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 pi(Vs,"CycleDepthFirst",0),ry=new pi(Vs,"CycleGreedy",1),Hm=new pi(Vs,"CycleFromLayers",2),V0=new pi(Vs,"LayerOptimalLinkLength",0),oy=new pi(Vs,"LayerLongestPathSink",1),sy=new pi(Vs,"LayerLongestPathSource",2),Z0=new pi(Vs,"InitDepthFirstOut",0),ay=new pi(Vs,"InitDepthFirstIn",1),ly=new pi(Vs,"InitNaive",2),uy=new pi(Vs,"AggressiveNone",0),X0=new pi(Vs,"AggressiveLess",1),hy=new pi(Vs,"AggressiveMore",2),tx=8;Vs.className="LayeredDigraphLayout",Vs.CycleDepthFirst=W0,Vs.CycleGreedy=ry,Vs.CycleFromLayers=Hm,Vs.LayerOptimalLinkLength=V0,Vs.LayerLongestPathSink=oy,Vs.LayerLongestPathSource=sy,Vs.InitDepthFirstOut=Z0,Vs.InitDepthFirstIn=ay,Vs.InitNaive=ly,Vs.AggressiveNone=uy,Vs.AggressiveLess=X0,Vs.AggressiveMore=hy,Vs.PackNone=0,Vs.PackExpand=1,Vs.PackStraighten=2,Vs.PackMedian=4,Vs.PackAll=15,Vs.AlignNone=0,Vs.AlignUpperLeft=1,Vs.AlignUpperRight=2,Vs.AlignLowerLeft=4,Vs.AlignLowerRight=8,Vs.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){xa.call(this,a)}Nn(Zp,xa),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}Nn(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;tn("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},je.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}Nn(Qm,Mc),je.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){Wa.call(this),this.Ub=new Ci,this.Wn=tv,this.ud=tf,this.vo=nv,this.Bq=Sy,this.$v=[],this.td=!0,this.Rb=iv,this.$d=new Vi(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)}Nn(hs,Wa),hs.prototype.cloneProtected=function(a){Wa.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:tn("Unknown enum value: "+a):Wa.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 Gi){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 Do?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 Ci,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 Ci,this.isValidLayout=!0};function nx(a){var y=new Ci;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:tn("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:tn("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 Pi,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 Pi,b=y.sourceVertexes;b.next();)E=b.value,dw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:tn("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:tn("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=si.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,si.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=Ie.alloc(),It=0;It<ct;It++){var zt=ut[It],Zt=zt.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),zt.move(yt),zt=zt.Sd();zt.next();){var he=zt.value;he.fromSpot=Aa,he.toSpot=tl}else for(yt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=tl,he.toSpot=Aa;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=tl,he.toSpot=Aa;else for(yt.h(a.bounds.x+a.commentMargin-Zt.width,a.bounds.y+at),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Aa,he.toSpot=tl;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),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=za,he.toSpot=Ol;else for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Ol,he.toSpot=za;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=Ol,he.toSpot=za;else for(yt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Zt.height),zt.move(yt),zt=zt.Sd();zt.next();)he=zt.value,he.fromSpot=za,he.toSpot=Ol;at=0<=a.commentSpacing?at+(Zt.width+a.commentSpacing):at+(a.commentSpacing-Zt.width)}}if(Ie.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,zt=this.computeNodeIndent(a),Zt=a.rowSpacing,he=0;(b||ut||a.hm||a.im&&a.maxGenerationCount===1)&&(he=Math.max(0,a.rowIndent)),b=a.width;var He=a.height,Le=0,Ve=0,qe=0,rn=null,Sn=null,Wn=0,ir=0,Nr=0,mr=0,Ki=0,Mi=0,No=0,mo=0;if(ct&&!zm(at)&&135<E&&nt.reverse(),zm(at))if(1<ot)for(var Is=0;Is<ot;Is++)Is%2===0&&Is!==ot-1&&(mo=Math.max(mo,y?nt[Is].Da.width:nt[Is].Da.height));else ot===1&&(mo=y?nt[0].Da.width:nt[0].Da.height);if(ct){switch(at){case If:Ve=135>E?mw(this,a,nt,mo,Le,Ve):vw(this,a,nt,mo,Le,Ve),mo=Ve.x,Le=Ve.width,Ve=Ve.height;break;case kf:for(rn=0;rn<ot;rn++)Sn=nt[rn],yt=Sn.Da,qe=Mi===0?0:Zt,y?(Sn.S.h(z-yt.width,mr+qe),Le=Math.max(Le,yt.width),Ve=Math.max(Ve,mr+qe+yt.height),mr+=qe+yt.height):(Sn.S.h(Nr+qe,z-yt.height),Le=Math.max(Le,Nr+qe+yt.width),Ve=Math.max(Ve,yt.height),Nr+=qe+yt.width),Mi++;break;case df:for(rn=0;rn<ot;rn++)Sn=nt[rn],z=Sn.Da,yt=Mi===0?0:Zt,y?(Sn.S.h(It/2+a.focus.x,mr+yt),Le=Math.max(Le,z.width),Ve=Math.max(Ve,mr+yt+z.height),mr+=yt+z.height):(Sn.S.h(Nr+yt,It/2+a.focus.y),Le=Math.max(Le,Nr+yt+z.width),Ve=Math.max(Ve,z.height),Nr+=yt+z.width),Mi++}rn=vc(this,2),Sn=vc(this,2),y?(rn[0].h(0,0),rn[1].h(0,Ve),Sn[0].h(Le,0)):(rn[0].h(0,0),rn[1].h(Le,0),Sn[0].h(0,Ve)),Sn[1].h(Le,Ve)}else for(Is=0;Is<ot;Is++){var ma=nt[Is],Ou=ma.Da;if(y){0<yt&&0<Mi&&Nr+It+Ou.width>yt&&(Nr<z&&Og(a,at,z-Nr,0,No,Is-1),Ki++,Mi=0,No=Is,qe=Ve,Nr=0,mr=135<E?-Ve-Zt:Ve+Zt),J0(this,ma,0,mr);var Qu=0;if(Mi===0)rn=ma.Yo,Sn=ma.kp,Wn=Ou.width,ir=Ou.height,(rn===null||Sn===null||E!==iA(ma))&&(rn=vc(this,2),Sn=vc(this,2),rn[0].h(0,0),rn[1].h(0,ir),Sn[0].h(Wn,0),Sn[1].h(Wn,ir));else{var Uh=dr();ir=yw(this,a,ma,rn,Sn,Wn,ir,Uh),Qu=ir.x,rn=Uh[0],Sn=Uh[1],Wn=ir.width,ir=ir.height,Mr(Uh),Nr<Ou.width&&0>Qu&&(hp(a,-Qu,0,No,Is-1),q0(rn,-Qu,0),q0(Sn,-Qu,0),Qu=0)}ma.S.h(Qu,mr),Le=Math.max(Le,Wn),Ve=Math.max(Ve,qe+(Ki===0?0:Zt)+Ou.height),Nr=Wn}else 0<yt&&0<Mi&&mr+It+Ou.height>yt&&(mr<z&&Og(a,at,0,z-mr,No,Is-1),Ki++,Mi=0,No=Is,qe=Le,mr=0,Nr=135<E?-Le-Zt:Le+Zt),J0(this,ma,Nr,0),Qu=0,Mi===0?(rn=ma.Yo,Sn=ma.kp,Wn=Ou.width,ir=Ou.height,(rn===null||Sn===null||E!==iA(ma))&&(rn=vc(this,2),Sn=vc(this,2),rn[0].h(0,0),rn[1].h(Wn,0),Sn[0].h(0,ir),Sn[1].h(Wn,ir))):(Uh=dr(),ir=yw(this,a,ma,rn,Sn,Wn,ir,Uh),Qu=ir.x,rn=Uh[0],Sn=Uh[1],Wn=ir.width,ir=ir.height,Mr(Uh),mr<Ou.height&&0>Qu&&(hp(a,0,-Qu,No,Is-1),q0(rn,0,-Qu),q0(Sn,0,-Qu),Qu=0)),ma.S.h(Nr,Qu),Ve=Math.max(Ve,ir),Le=Math.max(Le,qe+(Ki===0?0:Zt)+Ou.width),mr=ir;Mi++}switch(0<Ki&&(y?(Ve+=Math.max(0,x),Nr<Le&&Og(a,at,Le-Nr,0,No,ot-1),0<he&&(ut||hp(a,he,0,0,ot-1),Le+=he)):(Le+=Math.max(0,x),mr<Ve&&Og(a,at,0,Ve-mr,No,ot-1),0<he&&(ut||hp(a,0,he,0,ot-1),Ve+=he))),he=ut=0,at){case $p:y?ut+=Le/2-a.focus.x-zt/2:he+=Ve/2-a.focus.y-zt/2;break;case dp:0<Ki?y?ut+=Le/2-a.focus.x-zt/2:he+=Ve/2-a.focus.y-zt/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-zt/2):(mo=nt[0].S.y+nt[0].la.y,he+=mo+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-mo)/2-a.focus.y-zt/2);break;case ef:y?(ut-=zt,Le+=zt):(he-=zt,Ve+=zt);break;case nf:y?(ut+=Le-a.width+zt,Le+=zt):(he+=Ve-a.height+zt,Ve+=zt);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?he+=mo+It/2-a.focus.y:he+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case kf:y?ut+=Le+It/2-a.focus.x:he+=Ve+It/2-a.focus.y;break;case df:break;default:Ve=this.customAlignment(a,ut,he,Le,Ve),ut=Ve[0],he=Ve[1],Le=Ve[2],Ve=Ve[3]}for(zt=0;zt<ot;zt++)mo=nt[zt],y?mo.S.h(mo.S.x+mo.la.x-ut,mo.S.y+(135<E?(ct?-Ve:-mo.Da.height)+mo.la.y-x:He+x+mo.la.y)):mo.S.h(mo.S.x+(135<E?(ct?-Le:-mo.Da.width)+mo.la.x-x:b+x+mo.la.x),mo.S.y+mo.la.y-he);if(ot=nt=0,ct?y?(Le=fy(a,Le,ut),0>ut&&(ut=0),135<E&&(he+=Ve+x),Ve+=He+x,at===df&&(nt+=It/2+a.focus.x),ot+=He+x):(135<E&&(ut+=Le+x),Le+=b+x,Ve=gy(a,Ve,he),0>he&&(he=0),at===df&&(ot+=It/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Le&&(Le=py(at,b-Le,0),nt=Le.x,ot=Le.y,Le=b,ut=0):Le=fy(a,Le,ut),0>ut&&(nt-=ut,ut=0),135<E&&(he+=Ve+x),Ve=Math.max(Math.max(Ve,He),Ve+He+x),ot+=He+x):(135<E&&(ut+=Le+x),Le=Math.max(Math.max(Le,b),Le+b+x),a.comments===null?He>Ve&&(Ve=py(at,0,He-Ve),nt=Ve.x,ot=Ve.y,Ve=He,he=0):Ve=gy(a,Ve,he),0>he&&(ot-=he,he=0),nt+=b+x),0<Ki)E=vc(this,4),Ki=vc(this,4),y?(E[2].h(0,He+x),E[3].h(E[2].x,Ve),Ki[2].h(Le,E[2].y),Ki[3].h(Ki[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Le,E[2].y),Ki[2].h(E[2].x,Ve),Ki[3].h(E[3].x,Ki[2].y));else{for(E=vc(this,rn.length+2),Ki=vc(this,Sn.length+2),at=0;at<rn.length;at++)ct=rn[at],E[at+2].h(ct.x+nt,ct.y+ot);for(at=0;at<Sn.length;at++)ct=Sn[at],Ki[at+2].h(ct.x+nt,ct.y+ot)}y?(E[0].h(ut,0),E[1].h(E[0].x,He),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])),Ki[0].h(ut+b,0),Ki[1].h(Ki[0].x,He),Ki[2].y<Ki[1].y&&(Ki[2].x<Ki[0].x?Ki[2].assign(Ki[1]):Ki[1].assign(Ki[2])),Ki[3].y<Ki[2].y&&(Ki[3].x<Ki[0].x?Ki[3].assign(Ki[2]):Ki[2].assign(Ki[3])),E[2].y-=x/2,Ki[2].y-=x/2):(E[0].h(0,he),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])),Ki[0].h(0,he+He),Ki[1].h(b,Ki[0].y),Ki[2].x<Ki[1].x&&(Ki[2].y<Ki[0].y?Ki[2].assign(Ki[1]):Ki[1].assign(Ki[2])),Ki[3].x<Ki[2].x&&(Ki[3].y<Ki[0].y?Ki[3].assign(Ki[2]):Ki[2].assign(Ki[3])),E[2].x-=x/2,Ki[2].x-=x/2),pA(this,rn),pA(this,Sn),a.Yo=E,a.kp=Ki,a.la.h(ut,he),a.Da.h(Le,Ve)}break;default:tn("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 zt=y.nodeSpacing,Zt=a.computeNodeIndent(y),he=ct||yt?0:Zt/2,He=y.rowSpacing,Le=0;(ct||yt||y.hm||y.im&&y.maxGenerationCount===1)&&(Le=Math.max(0,y.rowIndent)),ct=y.width;var Ve=y.height,qe=0,rn=0,Sn=0,Wn=0,ir=0,Nr=0,mr=0,Ki=0,Mi=0,No=0;if(ot&&!zm(ut)&&135<b&&E.reverse(),zm(ut))if(1<nt)for(var mo=0;mo<nt;mo++){var Is=E[mo],ma=Is.Da;mo%2===0&&mo!==nt-1?Mi=Math.max(Mi,(x?ma.width:ma.height)+a.computeBusNodeSpacing(Is)-zt):mo%2!==0&&(No=Math.max(No,(x?ma.width:ma.height)+a.computeBusNodeSpacing(Is)-zt))}else nt===1&&(Mi=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ut){case If:case rf:rn=135>b?mw(a,y,E,Mi,qe,rn):vw(a,y,E,Mi,qe,rn),Mi=rn.x,qe=rn.width,rn=rn.height;break;case kf:for(It=0;It<nt;It++)he=E[It],Sn=he.Da,No=mr===0?0:He,x?(he.S.h(z-Sn.width,ir+No),qe=Math.max(qe,Sn.width),rn=Math.max(rn,ir+No+Sn.height),ir+=No+Sn.height):(he.S.h(Wn+No,z-Sn.height),qe=Math.max(qe,Wn+No+Sn.width),rn=Math.max(rn,Sn.height),Wn+=No+Sn.width),mr++;break;case df:for(z=0;z<nt;z++)It=E[z],he=It.Da,Sn=mr===0?0:He,x?(It.S.h(zt/2+y.focus.x,ir+Sn),qe=Math.max(qe,he.width),rn=Math.max(rn,ir+Sn+he.height),ir+=Sn+he.height):(It.S.h(Wn+Sn,zt/2+y.focus.y),qe=Math.max(qe,Wn+Sn+he.width),rn=Math.max(rn,he.height),Wn+=Sn+he.width),mr++}else for(No=0;No<nt;No++)mo=E[No],Is=mo.Da,x?(0<It&&0<mr&&Wn+zt+Is.width>It&&(Wn<z&&Og(y,ut,z-Wn,0,Ki,No-1),Nr++,mr=0,Ki=No,Sn=rn,Wn=0,ir=135<b?-rn-He:rn+He),ma=mr===0?he:zt,J0(a,mo,0,ir),mo.S.h(Wn+ma,ir),qe=Math.max(qe,Wn+ma+Is.width),rn=Math.max(rn,Sn+(Nr===0?0:He)+Is.height),Wn+=ma+Is.width):(0<It&&0<mr&&ir+zt+Is.height>It&&(ir<z&&Og(y,ut,0,z-ir,Ki,No-1),Nr++,mr=0,Ki=No,Sn=qe,ir=0,Wn=135<b?-qe-He:qe+He),ma=mr===0?he:zt,J0(a,mo,Wn,0),mo.S.h(Wn,ir+ma),rn=Math.max(rn,ir+ma+Is.height),qe=Math.max(qe,Sn+(Nr===0?0:He)+Is.width),ir+=ma+Is.height),mr++;switch(0<Nr&&(x?(rn+=Math.max(0,at),Wn<qe&&Og(y,ut,qe-Wn,0,Ki,nt-1),0<Le&&(yt||hp(y,Le,0,0,nt-1),qe+=Le)):(qe+=Math.max(0,at),ir<rn&&Og(y,ut,0,rn-ir,Ki,nt-1),0<Le&&(yt||hp(y,0,Le,0,nt-1),rn+=Le))),Le=yt=0,ut){case $p:x?yt+=qe/2-y.focus.x-Zt/2:Le+=rn/2-y.focus.y-Zt/2;break;case dp:0<Nr?x?yt+=qe/2-y.focus.x-Zt/2:Le+=rn/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,Le+=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,qe+=Zt):(Le-=Zt,rn+=Zt);break;case nf:x?(yt+=qe-y.width+Zt,qe+=Zt):(Le+=rn-y.height+Zt,rn+=Zt);break;case If:case rf:x?1<nt?yt+=Mi+zt/2-y.focus.x:yt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?Le+=Mi+zt/2-y.focus.y:Le+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kf:x?yt+=qe+zt/2-y.focus.x:Le+=rn+zt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,yt,Le,qe,rn),yt=a[0],Le=a[1],qe=a[2],rn=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?-rn:-Zt.Da.height)+Zt.la.y-at:Ve+at+Zt.la.y)):Zt.S.h(Zt.S.x+(135<b?(ot?-qe:-Zt.Da.width)+Zt.la.x-at:ct+at+Zt.la.x),Zt.S.y+Zt.la.y-Le);x?(qe=fy(y,qe,yt),0>yt&&(yt=0),135<b&&(Le+=rn+at),rn=Math.max(Math.max(rn,Ve),rn+Ve+at)):(135<b&&(yt+=qe+at),qe=Math.max(Math.max(qe,ct),qe+ct+at),rn=gy(y,rn,Le),0>Le&&(Le=0)),y.la.h(yt,Le),y.Da.h(qe,rn)}}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 si(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new si(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=iA(y)===90,ct=0,yt=0,It=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Zt=x[zt],he=Zt.Da,He=ct===0?0:at;if(ut){var Le=a.computeBusNodeSpacing(Zt)-ot;Zt.S.h(b-(he.width+Le),It+He),E=Math.max(E,he.width+Le),z=Math.max(z,It+He+he.height),It+=He+he.height}else Le=a.computeBusNodeSpacing(Zt)-ot,Zt.S.h(yt+He,b-(he.height+Le)),z=Math.max(z,he.height+Le),E=Math.max(E,yt+He+he.width),yt+=He+he.width;ct++}for(ct=0,Zt=yt,zt=It,ut?(yt=b+ot,It=0):(yt=0,It=b+ot),he=0;he<nt;he++)if(he%2!==0){He=x[he],Le=He.Da;var Ve=ct===0?0:at;if(ut){var qe=a.computeBusNodeSpacing(He)-ot;He.S.h(yt+qe,It+Ve),E=Math.max(E,yt+Le.width+qe),z=Math.max(z,It+Ve+Le.height),It+=Ve+Le.height}else qe=a.computeBusNodeSpacing(He)-ot,He.S.h(yt+Ve,It+qe),E=Math.max(E,yt+Ve+Le.width),z=Math.max(z,It+Le.height+qe),yt+=Ve+Le.width;ct++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ut?Math.max(Math.abs(zt),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(zt,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 si(b,0,E,z)}function vw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new si(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new si(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=iA(y)===270,ct=0,yt=0,It=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Zt=x[zt],he=Zt.Da,He=ct===0?0:at;if(ut){var Le=a.computeBusNodeSpacing(Zt)-ot;It-=He+he.height,Zt.S.h(b-(he.width+Le),It),E=Math.max(E,he.width+Le),z=Math.max(z,Math.abs(It))}else Le=a.computeBusNodeSpacing(Zt)-ot,yt-=He+he.width,Zt.S.h(yt,b-(he.height+Le)),z=Math.max(z,he.height+Le),E=Math.max(E,Math.abs(yt));ct++}for(ct=0,Zt=yt,zt=It,ut?(yt=b+ot,It=0):(yt=0,It=b+ot),he=0;he<nt;he++)if(he%2!==0){He=x[he],Le=He.Da;var Ve=ct===0?0:at;if(ut){var qe=a.computeBusNodeSpacing(He)-ot;It-=Ve+Le.height,He.S.h(yt+qe,It),E=Math.max(E,yt+Le.width+qe),z=Math.max(z,Math.abs(It))}else qe=a.computeBusNodeSpacing(He)-ot,yt-=Ve+Le.width,He.S.h(yt,It+qe),z=Math.max(z,It+Le.height+qe),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(zt),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(zt,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 si(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:tn("Unhandled alignment value "+a.toString())}return new Ie(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:tn("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,zt=x.Yo,Zt=x.kp;nt=x.Da;var he=ut?Math.max(It,nt.height):Math.max(b,nt.width);if((zt===null||at!==iA(x))&&(zt=vc(a,2),Zt=vc(a,2),ut?(zt[0].h(0,0),zt[1].h(0,nt.height),Zt[0].h(nt.width,0),Zt[1].h(Zt[0].x,zt[1].y)):(zt[0].h(0,0),zt[1].h(nt.width,0),Zt[0].h(0,nt.height),Zt[1].h(zt[1].x,Zt[0].y))),ut){if(It=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;){z=yt[x];var He=zt[E];at=He.x,ut=He.y,at+=b;var Le=z;x+1<yt.length&&(Le=yt[x+1]);var Ve=He;He=Ve.x,Ve=Ve.y,E+1<zt.length&&(Ve=zt[E+1],He=Ve.x,Ve=Ve.y,He+=b);var qe=It;z.y===ut?qe=at-z.x:z.y>ut&&z.y<Ve?qe=at+(z.y-ut)/(Ve-ut)*(He-at)-z.x:ut>z.y&&ut<Le.y&&(qe=at-(z.x+(ut-z.y)/(Le.y-z.y)*(Le.x-z.x))),qe<It&&(It=qe),Le.y<=z.y?x++:Ve<=ut?E++:(Le.y<=Ve&&x++,Ve<=Le.y&&E++)}if(It=b-It,It+=ct,x=zt,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;)Le=yt[x++],ct[E++].h(Le.x,Le.y);for(;ut<z.length;)Le=z[ut++],ct[E++].h(Le.x+at,Le.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=he,pA(a,y),pA(a,zt),pA(a,yt),pA(a,Zt),ot[0]=b,ot[1]=E,new si(It,0,z,nt)}if(b=9999999,!(yt===null||2>yt.length||zt===null||2>zt.length))for(E=x=0;x<yt.length&&E<zt.length;)z=yt[x],He=zt[E],at=He.x,ut=He.y,ut+=It,Le=z,x+1<yt.length&&(Le=yt[x+1]),Ve=He,He=Ve.x,Ve=Ve.y,E+1<zt.length&&(Ve=zt[E+1],He=Ve.x,Ve=Ve.y,Ve+=It),qe=b,z.x===at?qe=ut-z.y:z.x>at&&z.x<He?qe=ut+(z.x-at)/(He-at)*(Ve-ut)-z.y:at>z.x&&at<Le.x&&(qe=ut-(z.y+(at-z.x)/(Le.x-z.x)*(Le.y-z.y))),qe<b&&(b=qe),Le.x<=z.x?x++:He<=at?E++:(Le.x<=He&&x++,He<=Le.x&&E++);if(It-=b,It+=ct,x=zt,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;)Le=yt[x++],ct[E++].h(Le.x,Le.y);for(;ut<z.length;)Le=z[ut++],ct[E++].h(Le.x,Le.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=he,nt=Math.max(0,It)+nt.height,pA(a,y),pA(a,zt),pA(a,yt),pA(a,Zt),ot[0]=b,ot[1]=E,new si(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 Ie;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:tn("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:tn("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 Ie(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ie(-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 si(0,z,x,ot))):this.angle===90?(E.push(new si(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new si(z,0,ot,x))):(E.push(new si(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=tl;break;case 90:E=Ol;break;case 180:E=Aa;break;default:E=za}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?Aa:za;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=Aa;break;case 90:at=za;break;case 180:at=tl;break;default:at=Ol}else y%2===0&&(at=b===90||b===270?tl:Ol);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?tl:Ol,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?Aa:za,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=tl;break;case 90:b.fromSpot=Ol;break;case 180:b.fromSpot=Aa;break;default:b.fromSpot=za}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Aa;break;case 90:b.toSpot=za;break;case 180:b.toSpot=tl;break;default:b.toSpot=Ol}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=tl;break;case 90:b.toSpot=Ol;break;case 180:b.toSpot=Aa;break;default:b.toSpot=za}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Aa;break;case 90:b.fromSpot=za;break;case 180:b.fromSpot=tl;break;default:b.fromSpot=Ol}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)},je.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()):tn("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 pi(hs,"PathDefault",-1),tf=new pi(hs,"PathDestination",0),cp=new pi(hs,"PathSource",1),Xp=new pi(hs,"SortingForwards",10),Km=new pi(hs,"SortingReverse",11),Gm=new pi(hs,"SortingAscending",12),Wm=new pi(hs,"SortingDescending",13),$p=new pi(hs,"AlignmentCenterSubtrees",20),dp=new pi(hs,"AlignmentCenterChildren",21),ef=new pi(hs,"AlignmentStart",22),nf=new pi(hs,"AlignmentEnd",23),If=new pi(hs,"AlignmentBus",24),rf=new pi(hs,"AlignmentBusBranching",25),kf=new pi(hs,"AlignmentTopLeftBus",26),df=new pi(hs,"AlignmentBottomRightBus",27),ev=new pi(hs,"CompactionNone",30),Vm=new pi(hs,"CompactionBlock",31),nv=new pi(hs,"StyleLayered",40),vy=new pi(hs,"StyleLastParents",41),yy=new pi(hs,"StyleAlternating",42),wy=new pi(hs,"StyleRootOnly",43),iv=new pi(hs,"ArrangementVertical",50),xy=new pi(hs,"ArrangementHorizontal",51),rv=new pi(hs,"ArrangementFixedRoots",52),Sy=new pi(hs,"LayerIndividual",60),Cy=new pi(hs,"LayerSiblings",61),ov=new pi(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){xa.call(this,a)}Nn(Ap,xa),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 Ie(0,0),this.Da=new Vi(0,0),this.la=new Ie(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=Fs,this.wr=!0,this.Dp=Fs}Nn(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)},je.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 Ie(0,0)}Nn(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:tn("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 zt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>zt.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<zt.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>zt.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<zt.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>zt.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<zt.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>zt.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<zt.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))):tn("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()))}}},je.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 ni,this.mouseDownTools),this.gb("LinkReshaping",new li,this.mouseDownTools),this.gb("Rotating",new Xn,this.mouseDownTools),this.gb("Resizing",new Ii,this.mouseDownTools),this.gb("Linking",new hn,this.mouseMoveTools),this.gb("Dragging",new Pn,this.mouseMoveTools),this.gb("DragSelecting",new ar,this.mouseMoveTools),this.gb("Panning",new qi,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 $i),Zc("Table",new Gr),Zc("Viewbox",new Ui),Zc("TableRow",new Ir),Zc("TableColumn",new Hi),Zc("Graduated",new ts),Zc("Grid",new Kr),Pa.add("GraphLinksModel",Hu),Pa.add("TreeModel",gd);var sv=Fe.go,By={get licenseKey(){return _n.licenseKey},set licenseKey(a){_n.licenseKey=a},get version(){return _n.version},Group:Do,EnumValue:pi,List:Pi,Set:Ci,Map:wr,Point:Ie,Size:Vi,Rect:si,Margin:Qr,Spot:fr,Geometry:Wi,PathFigure:el,PathSegment:vs,InputEvent:Cu,DiagramEvent:wd,ChangedEvent:Ea,Model:Or,GraphLinksModel:ys,TreeModel:Yh,Binding:Jl,Transaction:Yl,UndoManager:Et,CommandHandler:Oe,Tool:bt,DraggingTool:Pn,DraggingInfo:ah,DraggingOptions:st,LinkingBaseTool:nn,LinkingTool:hn,RelinkingTool:ni,LinkReshapingTool:li,ResizingTool:Ii,RotatingTool:Xn,ClickSelectingTool:Bo,ActionTool:Pr,ClickCreatingTool:sr,HTMLInfo:pr,ContextMenuTool:ho,DragSelectingTool:ar,PanningTool:qi,TextEditingTool:rs,ToolManager:ie,Animation:_a,AnimationManager:da,AnimationTrigger:vh,Layer:pa,Diagram:_n,Palette:mt,Overview:Bt,Brush:js,GraphObject:pn,Panel:ci,RowColumnDefinition:Vl,Shape:Oo,TextBlock:aa,Picture:hc,Part:Vr,Adornment:Ls,Node:hr,Link:Gi,Placeholder:Vh,Layout:Wa,LayoutNetwork:xa,LayoutVertex:xu,LayoutEdge:Mc,GridLayout:nh,PanelLayout:xn,CircularLayout:Al,CircularNetwork:Wp,CircularVertex:jm,CircularEdge:_0,ForceDirectedLayout:gh,ForceDirectedNetwork:up,ForceDirectedVertex:Um,ForceDirectedEdge:Rm,LayeredDigraphLayout:Vs,LayeredDigraphNetwork:Zp,LayeredDigraphVertex:md,LayeredDigraphEdge:Qm,TreeLayout:hs,TreeNetwork:Ap,TreeVertex:jd,TreeEdge:Yp};typeof sv=="object"&&sv.version&&tr("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,Fe.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,ke=ce.EnumValue,ee=ce.List,Vt=ce.Set,Mt=ce.Map,jt=ce.Point,te=ce.Size,Pt=ce.Rect,oe=ce.Margin,Kt=ce.Spot,$t=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,Gt=ce.UndoManager,se=ce.CommandHandler,le=ce.Tool,Ae=ce.DraggingTool,Pe=ce.DraggingInfo,qt=ce.LinkingBaseTool,ze=ce.LinkingTool,Wt=ce.RelinkingTool,Ge=ce.LinkReshapingTool,_e=ce.ResizingTool,Ne=ce.RotatingTool,We=ce.ClickSelectingTool,Re=ce.ActionTool,ve=ce.ClickCreatingTool,ne=ce.HTMLInfo,Ce=ce.ContextMenuTool,bn=ce.DragSelectingTool,Ln=ce.PanningTool,Ze=ce.TextEditingTool,Mn=ce.ToolManager,Vn=ce.Animation,fi=ce.AnimationManager,Kn=ce.AnimationTrigger,Bi=ce.Layer,en=ce.Diagram,Fi=ce.Palette,Oi=ce.Overview,Ot=ce.Brush,Tt=ce.GraphObject,vt=ce.Panel,ft=ce.RowColumnDefinition,gt=ce.Shape,At=ce.TextBlock,ue=ce.TextBlockMetrics,xe=ce.Picture,ae=ce.Part,ye=ce.Adornment,Te=ce.Node,De=ce.Link,Me=ce.Placeholder,sn=ce.Layout,Gn=ce.LayoutNetwork,an=ce.LayoutVertex,un=ce.LayoutEdge,Bn=ce.GridLayout,ai=ce.PanelLayout,On=ce.CircularLayout,ji=ce.CircularNetwork,er=ce.CircularVertex,Ji=ce.CircularEdge,Fr=ce.ForceDirectedLayout,vr=ce.ForceDirectedNetwork,so=ce.ForceDirectedVertex,Yr=ce.ForceDirectedEdge,Jr=ce.LayeredDigraphLayout,Lr=ce.LayeredDigraphNetwork,Zr=ce.LayeredDigraphVertex,oo=ce.LayeredDigraphEdge,Uo=ce.TreeLayout,fs=ce.TreeNetwork,eo=ce.TreeVertex,Os=ce.TreeEdge,yo=ce.version},64270:function(hi){(function(Cn,Ft){hi.exports=Ft()})(this,function(){"use strict";var Cn=function(Dt,kt){return Cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_t,Rt){_t.__proto__=Rt}||function(_t,Rt){for(var Be in Rt)Object.prototype.hasOwnProperty.call(Rt,Be)&&(_t[Be]=Rt[Be])},Cn(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");Cn(Dt,kt);function _t(){this.constructor=Dt}Dt.prototype=kt===null?Object.create(kt):(_t.prototype=kt.prototype,new _t)}var Lt=function(){return Lt=Object.assign||function(kt){for(var _t,Rt=1,Be=arguments.length;Rt<Be;Rt++){_t=arguments[Rt];for(var Ye in _t)Object.prototype.hasOwnProperty.call(_t,Ye)&&(kt[Ye]=_t[Ye])}return kt},Lt.apply(this,arguments)};function ce(Dt,kt,_t,Rt){function Be(Ye){return Ye instanceof _t?Ye:new _t(function(Fn){Fn(Ye)})}return new(_t||(_t=Promise))(function(Ye,Fn){function qn(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?Ye(zi.value):Be(zi.value).then(qn,jn)}Ri((Rt=Rt.apply(Dt,kt||[])).next())})}function re(Dt,kt){var _t={label:0,sent:function(){if(Ye[0]&1)throw Ye[1];return Ye[1]},trys:[],ops:[]},Rt,Be,Ye,Fn;return Fn={next:qn(0),throw:qn(1),return:qn(2)},typeof Symbol=="function"&&(Fn[Symbol.iterator]=function(){return this}),Fn;function qn(Ri){return function(zi){return jn([Ri,zi])}}function jn(Ri){if(Rt)throw new TypeError("Generator is already executing.");for(;_t;)try{if(Rt=1,Be&&(Ye=Ri[0]&2?Be.return:Ri[0]?Be.throw||((Ye=Be.return)&&Ye.call(Be),0):Be.next)&&!(Ye=Ye.call(Be,Ri[1])).done)return Ye;switch(Be=0,Ye&&(Ri=[Ri[0]&2,Ye.value]),Ri[0]){case 0:case 1:Ye=Ri;break;case 4:return _t.label++,{value:Ri[1],done:!1};case 5:_t.label++,Be=Ri[1],Ri=[0];continue;case 7:Ri=_t.ops.pop(),_t.trys.pop();continue;default:if(Ye=_t.trys,!(Ye=Ye.length>0&&Ye[Ye.length-1])&&(Ri[0]===6||Ri[0]===2)){_t=0;continue}if(Ri[0]===3&&(!Ye||Ri[1]>Ye[0]&&Ri[1]<Ye[3])){_t.label=Ri[1];break}if(Ri[0]===6&&_t.label<Ye[1]){_t.label=Ye[1],Ye=Ri;break}if(Ye&&_t.label<Ye[2]){_t.label=Ye[2],_t.ops.push(Ri);break}Ye[2]&&_t.ops.pop(),_t.trys.pop();continue}Ri=kt.call(Dt,_t)}catch(zi){Ri=[6,zi],Be=0}finally{Rt=Ye=0}if(Ri[0]&5)throw Ri[1];return{value:Ri[0]?Ri[1]:void 0,done:!0}}}function ke(Dt,kt,_t){if(_t||arguments.length===2)for(var Rt=0,Be=kt.length,Ye;Rt<Be;Rt++)(Ye||!(Rt in kt))&&(Ye||(Ye=Array.prototype.slice.call(kt,0,Rt)),Ye[Rt]=kt[Rt]);return Dt.concat(Ye||kt)}for(var ee=function(){function Dt(kt,_t,Rt,Be){this.left=kt,this.top=_t,this.width=Rt,this.height=Be}return Dt.prototype.add=function(kt,_t,Rt,Be){return new Dt(this.left+kt,this.top+_t,this.width+Rt,this.height+Be)},Dt.fromClientRect=function(kt,_t){return new Dt(_t.left+kt.windowBounds.left,_t.top+kt.windowBounds.top,_t.width,_t.height)},Dt.fromDOMRectList=function(kt,_t){var Rt=Array.from(_t).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,_t=Dt.documentElement;if(!kt||!_t)throw new Error("Unable to get document size");var Rt=Math.max(Math.max(kt.scrollWidth,_t.scrollWidth),Math.max(kt.offsetWidth,_t.offsetWidth),Math.max(kt.clientWidth,_t.clientWidth)),Be=Math.max(Math.max(kt.scrollHeight,_t.scrollHeight),Math.max(kt.offsetHeight,_t.offsetHeight),Math.max(kt.clientHeight,_t.clientHeight));return new ee(0,0,Rt,Be)},jt=function(Dt){for(var kt=[],_t=0,Rt=Dt.length;_t<Rt;){var Be=Dt.charCodeAt(_t++);if(Be>=55296&&Be<=56319&&_t<Rt){var Ye=Dt.charCodeAt(_t++);(Ye&64512)===56320?kt.push(((Be&1023)<<10)+(Ye&1023)+65536):(kt.push(Be),_t--)}else kt.push(Be)}return kt},te=function(){for(var Dt=[],kt=0;kt<arguments.length;kt++)Dt[kt]=arguments[kt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Dt);var _t=Dt.length;if(!_t)return"";for(var Rt=[],Be=-1,Ye="";++Be<_t;){var Fn=Dt[Be];Fn<=65535?Rt.push(Fn):(Fn-=65536,Rt.push((Fn>>10)+55296,Fn%1024+56320)),(Be+1===_t||Rt.length>16384)&&(Ye+=String.fromCharCode.apply(String,Rt),Rt.length=0)}return Ye},Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Kt=0;Kt<Pt.length;Kt++)oe[Pt.charCodeAt(Kt)]=Kt;for(var $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ct=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<$t.length;et++)Ct[$t.charCodeAt(et)]=et;for(var tt=function(Dt){var kt=Dt.length*.75,_t=Dt.length,Rt,Be=0,Ye,Fn,qn,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<_t;Rt+=4)Ye=Ct[Dt.charCodeAt(Rt)],Fn=Ct[Dt.charCodeAt(Rt+1)],qn=Ct[Dt.charCodeAt(Rt+2)],jn=Ct[Dt.charCodeAt(Rt+3)],zi[Be++]=Ye<<2|Fn>>4,zi[Be++]=(Fn&15)<<4|qn>>2,zi[Be++]=(qn&3)<<6|jn&63;return Ri},lt=function(Dt){for(var kt=Dt.length,_t=[],Rt=0;Rt<kt;Rt+=2)_t.push(Dt[Rt+1]<<8|Dt[Rt]);return _t},rt=function(Dt){for(var kt=Dt.length,_t=[],Rt=0;Rt<kt;Rt+=4)_t.push(Dt[Rt+3]<<24|Dt[Rt+2]<<16|Dt[Rt+1]<<8|Dt[Rt]);return _t},ht=5,dt=11,xt=2,Nt=dt-ht,Ut=65536>>ht,Gt=1<<ht,se=Gt-1,le=1024>>ht,Ae=Ut+le,Pe=Ae,qt=32,ze=Pe+qt,Wt=65536>>dt,Ge=1<<Nt,_e=Ge-1,Ne=function(Dt,kt,_t){return Dt.slice?Dt.slice(kt,_t):new Uint16Array(Array.prototype.slice.call(Dt,kt,_t))},We=function(Dt,kt,_t){return Dt.slice?Dt.slice(kt,_t):new Uint32Array(Array.prototype.slice.call(Dt,kt,_t))},Re=function(Dt,kt){var _t=tt(Dt),Rt=Array.isArray(_t)?rt(_t):new Uint32Array(_t),Be=Array.isArray(_t)?lt(_t):new Uint16Array(_t),Ye=24,Fn=Ne(Be,Ye/2,Rt[4]/2),qn=Rt[5]===2?Ne(Be,(Ye+Rt[4])/2):We(Rt,Math.ceil((Ye+Rt[4])/4));return new ve(Rt[0],Rt[1],Rt[2],Rt[3],Fn,qn)},ve=function(){function Dt(kt,_t,Rt,Be,Ye,Fn){this.initialValue=kt,this.errorValue=_t,this.highStart=Rt,this.highValueIndex=Be,this.index=Ye,this.data=Fn}return Dt.prototype.get=function(kt){var _t;if(kt>=0){if(kt<55296||kt>56319&&kt<=65535)return _t=this.index[kt>>ht],_t=(_t<<xt)+(kt&se),this.data[_t];if(kt<=65535)return _t=this.index[Ut+(kt-55296>>ht)],_t=(_t<<xt)+(kt&se),this.data[_t];if(kt<this.highStart)return _t=ze-Wt+(kt>>dt),_t=this.index[_t],_t+=kt>>ht&_e,_t=this.index[_t],_t=(_t<<xt)+(kt&se),this.data[_t];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==",Ze=50,Mn=1,Vn=2,fi=3,Kn=4,Bi=5,en=7,Fi=8,Oi=9,Ot=10,Tt=11,vt=12,ft=13,gt=14,At=15,ue=16,xe=17,ae=18,ye=19,Te=20,De=21,Me=22,sn=23,Gn=24,an=25,un=26,Bn=27,ai=28,On=29,ji=30,er=31,Ji=32,Fr=33,vr=34,so=35,Yr=36,Jr=37,Lr=38,Zr=39,oo=40,Uo=41,fs=42,eo=43,Os=[9001,65288],yo="!",Xt="\xD7",ti="\xF7",gs=Re(Ln),ia=[ji,Yr],Zs=[Mn,Vn,fi,Bi],la=[Ot,Fi],Xs=[Bn,un],Rr=Zs.concat(la),_r=[Lr,Zr,oo,vr,so],Dn=[At,ft],Nn=function(Dt,kt){kt===void 0&&(kt="strict");var _t=[],Rt=[],Be=[];return Dt.forEach(function(Ye,Fn){var qn=gs.get(Ye);if(qn>Ze?(Be.push(!0),qn-=Ze):Be.push(!1),["normal","auto","loose"].indexOf(kt)!==-1&&[8208,8211,12316,12448].indexOf(Ye)!==-1)return Rt.push(Fn),_t.push(ue);if(qn===Kn||qn===Tt){if(Fn===0)return Rt.push(Fn),_t.push(ji);var jn=_t[Fn-1];return Rr.indexOf(jn)===-1?(Rt.push(Rt[Fn-1]),_t.push(jn)):(Rt.push(Fn),_t.push(ji))}if(Rt.push(Fn),qn===er)return _t.push(kt==="strict"?De:Jr);if(qn===fs||qn===On)return _t.push(ji);if(qn===eo)return Ye>=131072&&Ye<=196605||Ye>=196608&&Ye<=262141?_t.push(Jr):_t.push(ji);_t.push(qn)}),[Rt,_t,Be]},je=function(Dt,kt,_t,Rt){var Be=Rt[_t];if(Array.isArray(Dt)?Dt.indexOf(Be)!==-1:Dt===Be)for(var Ye=_t;Ye<=Rt.length;){Ye++;var Fn=Rt[Ye];if(Fn===kt)return!0;if(Fn!==Ot)break}if(Be===Ot)for(var Ye=_t;Ye>0;){Ye--;var qn=Rt[Ye];if(Array.isArray(Dt)?Dt.indexOf(qn)!==-1:Dt===qn)for(var jn=_t;jn<=Rt.length;){jn++;var Fn=Rt[jn];if(Fn===kt)return!0;if(Fn!==Ot)break}if(qn!==Ot)break}return!1},ei=function(Dt,kt){for(var _t=Dt;_t>=0;){var Rt=kt[_t];if(Rt===Ot)_t--;else return Rt}return 0},xi=function(Dt,kt,_t,Rt,Be){if(_t[Rt]===0)return Xt;var Ye=Rt-1;if(Array.isArray(Be)&&Be[Ye]===!0)return Xt;var Fn=Ye-1,qn=Ye+1,jn=kt[Ye],Ri=Fn>=0?kt[Fn]:0,zi=kt[qn];if(jn===Vn&&zi===fi)return Xt;if(Zs.indexOf(jn)!==-1)return yo;if(Zs.indexOf(zi)!==-1||la.indexOf(zi)!==-1)return Xt;if(ei(Ye,kt)===Fi)return ti;if(gs.get(Dt[Ye])===Tt||(jn===Ji||jn===Fr)&&gs.get(Dt[qn])===Tt||jn===en||zi===en||jn===Oi||[Ot,ft,At].indexOf(jn)===-1&&zi===Oi||[xe,ae,ye,Gn,ai].indexOf(zi)!==-1||ei(Ye,kt)===Me||je(sn,Me,Ye,kt)||je([xe,ae],De,Ye,kt)||je(vt,vt,Ye,kt))return Xt;if(jn===Ot)return ti;if(jn===sn||zi===sn)return Xt;if(zi===ue||jn===ue)return ti;if([ft,At,De].indexOf(zi)!==-1||jn===gt||Ri===Yr&&Dn.indexOf(jn)!==-1||jn===ai&&zi===Yr||zi===Te||ia.indexOf(zi)!==-1&&jn===an||ia.indexOf(jn)!==-1&&zi===an||jn===Bn&&[Jr,Ji,Fr].indexOf(zi)!==-1||[Jr,Ji,Fr].indexOf(jn)!==-1&&zi===un||ia.indexOf(jn)!==-1&&Xs.indexOf(zi)!==-1||Xs.indexOf(jn)!==-1&&ia.indexOf(zi)!==-1||[Bn,un].indexOf(jn)!==-1&&(zi===an||[Me,At].indexOf(zi)!==-1&&kt[qn+1]===an)||[Me,At].indexOf(jn)!==-1&&zi===an||jn===an&&[an,ai,Gn].indexOf(zi)!==-1)return Xt;if([an,ai,Gn,xe,ae].indexOf(zi)!==-1)for(var lr=Ye;lr>=0;){var St=kt[lr];if(St===an)return Xt;if([ai,Gn].indexOf(St)!==-1)lr--;else break}if([Bn,un].indexOf(zi)!==-1)for(var lr=[xe,ae].indexOf(jn)!==-1?Fn:Ye;lr>=0;){var St=kt[lr];if(St===an)return Xt;if([ai,Gn].indexOf(St)!==-1)lr--;else break}if(Lr===jn&&[Lr,Zr,vr,so].indexOf(zi)!==-1||[Zr,vr].indexOf(jn)!==-1&&[Zr,oo].indexOf(zi)!==-1||[oo,so].indexOf(jn)!==-1&&zi===oo||_r.indexOf(jn)!==-1&&[Te,un].indexOf(zi)!==-1||_r.indexOf(zi)!==-1&&jn===Bn||ia.indexOf(jn)!==-1&&ia.indexOf(zi)!==-1||jn===Gn&&ia.indexOf(zi)!==-1||ia.concat(an).indexOf(jn)!==-1&&zi===Me&&Os.indexOf(Dt[qn])===-1||ia.concat(an).indexOf(zi)!==-1&&jn===ae)return Xt;if(jn===Uo&&zi===Uo){for(var Qt=_t[Ye],de=1;Qt>0&&(Qt--,kt[Qt]===Uo);)de++;if(de%2!==0)return Xt}return jn===Ji&&zi===Fr?Xt:ti},dn=function(Dt,kt){kt||(kt={lineBreak:"normal",wordBreak:"normal"});var _t=Nn(Dt,kt.lineBreak),Rt=_t[0],Be=_t[1],Ye=_t[2];(kt.wordBreak==="break-all"||kt.wordBreak==="break-word")&&(Be=Be.map(function(qn){return[an,ji,fs].indexOf(qn)!==-1?Jr:qn}));var Fn=kt.wordBreak==="keep-all"?Ye.map(function(qn,jn){return qn&&Dt[jn]>=19968&&Dt[jn]<=40959}):void 0;return[Rt,Be,Fn]},Fe=function(){function Dt(kt,_t,Rt,Be){this.codePoints=kt,this.required=_t===yo,this.start=Rt,this.end=Be}return Dt.prototype.slice=function(){return te.apply(void 0,this.codePoints.slice(this.start,this.end))},Dt}(),wn=function(Dt,kt){var _t=jt(Dt),Rt=dn(_t,kt),Be=Rt[0],Ye=Rt[1],Fn=Rt[2],qn=_t.length,jn=0,Ri=0;return{next:function(){if(Ri>=qn)return{done:!0,value:null};for(var zi=Xt;Ri<qn&&(zi=xi(_t,Ye,Be,++Ri,Fn))===Xt;);if(zi!==Xt||Ri===qn){var lr=new Fe(_t,zi,jn,Ri);return jn=Ri,{value:lr,done:!1}}return{done:!0,value:null}}}},Hn=1,Si=2,Di=4,tn=8,oi=10,Li=47,tr=92,kn=9,ui=32,Sr=34,cr=61,zr=35,dr=36,Mr=37,nr=39,Cr=40,no=41,Ro=95,yi=45,Po=33,ws=60,Zo=62,pi=64,or=91,Hr=93,uo=61,to=123,Fo=63,mi=125,wo=124,Dr=126,Br=128,Pi=65533,bo=42,Ci=43,Xo=44,ra=58,xs=59,va=46,Gs=0,Io=8,_o=11,As=14,ls=31,wr=127,Ie=-1,cs=48,oa=97,ll=101,Ll=102,fl=117,_l=122,ns=65,Yo=69,xo=70,ks=85,fa=90,fo=function(Dt){return Dt>=cs&&Dt<=57},co=function(Dt){return Dt>=55296&&Dt<=57343},Vi=function(Dt){return fo(Dt)||Dt>=ns&&Dt<=xo||Dt>=oa&&Dt<=Ll},Lo=function(Dt){return Dt>=oa&&Dt<=_l},Bs=function(Dt){return Dt>=ns&&Dt<=fa},Js=function(Dt){return Lo(Dt)||Bs(Dt)},ua=function(Dt){return Dt>=Br},Ho=function(Dt){return Dt===oi||Dt===kn||Dt===ui},Ks=function(Dt){return Js(Dt)||ua(Dt)||Dt===Ro},Na=function(Dt){return Ks(Dt)||fo(Dt)||Dt===yi},Tl=function(Dt){return Dt>=Gs&&Dt<=Io||Dt===_o||Dt>=As&&Dt<=ls||Dt===wr},Va=function(Dt,kt){return Dt!==tr?!1:kt!==oi},Ps=function(Dt,kt,_t){return Dt===yi?Ks(kt)||Va(kt,_t):Ks(Dt)?!0:!!(Dt===tr&&Va(Dt,kt))},si=function(Dt,kt,_t){return Dt===Ci||Dt===yi?fo(kt)?!0:kt===va&&fo(_t):fo(Dt===va?kt:Dt)},Ia=function(Dt){var kt=0,_t=1;(Dt[kt]===Ci||Dt[kt]===yi)&&(Dt[kt]===yi&&(_t=-1),kt++);for(var Rt=[];fo(Dt[kt]);)Rt.push(Dt[kt++]);var Be=Rt.length?parseInt(te.apply(void 0,Rt),10):0;Dt[kt]===va&&kt++;for(var Ye=[];fo(Dt[kt]);)Ye.push(Dt[kt++]);var Fn=Ye.length,qn=Fn?parseInt(te.apply(void 0,Ye),10):0;(Dt[kt]===Yo||Dt[kt]===ll)&&kt++;var jn=1;(Dt[kt]===Ci||Dt[kt]===yi)&&(Dt[kt]===yi&&(jn=-1),kt++);for(var Ri=[];fo(Dt[kt]);)Ri.push(Dt[kt++]);var zi=Ri.length?parseInt(te.apply(void 0,Ri),10):0;return _t*(Be+qn*Math.pow(10,-Fn))*Math.pow(10,jn*zi)},Ac={type:2},du={type:3},Hh={type:4},$r={type:13},Qs={type:8},Ms={type:21},bs={type:9},zs={type:10},Au={type:11},Jo={type:12},Hs={type:14},Ss={type:23},Qr={type:1},ul={type:25},Ds={type:24},Su={type:26},zu={type:27},Xl={type:28},fr={type:29},Za={type:31},rl={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=[],_t=this.consumeToken();_t!==rl;)kt.push(_t),_t=this.consumeToken();return kt},Dt.prototype.consumeToken=function(){var kt=this.consumeCodePoint();switch(kt){case Sr:return this.consumeStringToken(Sr);case zr:var _t=this.peekCodePoint(0),Rt=this.peekCodePoint(1),Be=this.peekCodePoint(2);if(Na(_t)||Va(Rt,Be)){var Ye=Ps(_t,Rt,Be)?Si:Hn,Fn=this.consumeName();return{type:5,value:Fn,flags:Ye}}break;case dr:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),$r;break;case nr:return this.consumeStringToken(nr);case Cr:return Ac;case no:return du;case bo:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),Hs;break;case Ci:if(si(kt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(kt),this.consumeNumericToken();break;case Xo:return Hh;case yi:var qn=kt,jn=this.peekCodePoint(0),Ri=this.peekCodePoint(1);if(si(qn,jn,Ri))return this.reconsumeCodePoint(kt),this.consumeNumericToken();if(Ps(qn,jn,Ri))return this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();if(jn===yi&&Ri===Zo)return this.consumeCodePoint(),this.consumeCodePoint(),Ds;break;case va:if(si(kt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(kt),this.consumeNumericToken();break;case Li:if(this.peekCodePoint(0)===bo)for(this.consumeCodePoint();;){var zi=this.consumeCodePoint();if(zi===bo&&(zi=this.consumeCodePoint(),zi===Li))return this.consumeToken();if(zi===Ie)return this.consumeToken()}break;case ra:return Su;case xs:return zu;case ws:if(this.peekCodePoint(0)===Po&&this.peekCodePoint(1)===yi&&this.peekCodePoint(2)===yi)return this.consumeCodePoint(),this.consumeCodePoint(),ul;break;case pi:var lr=this.peekCodePoint(0),St=this.peekCodePoint(1),Qt=this.peekCodePoint(2);if(Ps(lr,St,Qt)){var Fn=this.consumeName();return{type:7,value:Fn}}break;case or:return Xl;case tr:if(Va(kt,this.peekCodePoint(0)))return this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();break;case Hr:return fr;case uo:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),Qs;break;case to:return Au;case mi:return Jo;case fl:case ks:var de=this.peekCodePoint(0),Ee=this.peekCodePoint(1);return de===Ci&&(Vi(Ee)||Ee===Fo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();case wo:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),bs;if(this.peekCodePoint(0)===wo)return this.consumeCodePoint(),Ms;break;case Dr:if(this.peekCodePoint(0)===cr)return this.consumeCodePoint(),zs;break;case Ie:return rl}return Ho(kt)?(this.consumeWhiteSpace(),Za):fo(kt)?(this.reconsumeCodePoint(kt),this.consumeNumericToken()):Ks(kt)?(this.reconsumeCodePoint(kt),this.consumeIdentLikeToken()):{type:6,value:te(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=[],_t=this.consumeCodePoint();Vi(_t)&&kt.length<6;)kt.push(_t),_t=this.consumeCodePoint();for(var Rt=!1;_t===Fo&&kt.length<6;)kt.push(_t),_t=this.consumeCodePoint(),Rt=!0;if(Rt){var Be=parseInt(te.apply(void 0,kt.map(function(jn){return jn===Fo?cs:jn})),16),Ye=parseInt(te.apply(void 0,kt.map(function(jn){return jn===Fo?xo:jn})),16);return{type:30,start:Be,end:Ye}}var Fn=parseInt(te.apply(void 0,kt),16);if(this.peekCodePoint(0)===yi&&Vi(this.peekCodePoint(1))){this.consumeCodePoint(),_t=this.consumeCodePoint();for(var qn=[];Vi(_t)&&qn.length<6;)qn.push(_t),_t=this.consumeCodePoint();var Ye=parseInt(te.apply(void 0,qn),16);return{type:30,start:Fn,end:Ye}}else return{type:30,start:Fn,end:Fn}},Dt.prototype.consumeIdentLikeToken=function(){var kt=this.consumeName();return kt.toLowerCase()==="url"&&this.peekCodePoint(0)===Cr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Cr?(this.consumeCodePoint(),{type:19,value:kt}):{type:20,value:kt}},Dt.prototype.consumeUrlToken=function(){var kt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ie)return{type:22,value:""};var _t=this.peekCodePoint(0);if(_t===nr||_t===Sr){var Rt=this.consumeStringToken(this.consumeCodePoint());return Rt.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ie||this.peekCodePoint(0)===no)?(this.consumeCodePoint(),{type:22,value:Rt.value}):(this.consumeBadUrlRemnants(),Ss)}for(;;){var Be=this.consumeCodePoint();if(Be===Ie||Be===no)return{type:22,value:te.apply(void 0,kt)};if(Ho(Be))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ie||this.peekCodePoint(0)===no?(this.consumeCodePoint(),{type:22,value:te.apply(void 0,kt)}):(this.consumeBadUrlRemnants(),Ss);if(Be===Sr||Be===nr||Be===Cr||Tl(Be))return this.consumeBadUrlRemnants(),Ss;if(Be===tr)if(Va(Be,this.peekCodePoint(0)))kt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ss;else kt.push(Be)}},Dt.prototype.consumeWhiteSpace=function(){for(;Ho(this.peekCodePoint(0));)this.consumeCodePoint()},Dt.prototype.consumeBadUrlRemnants=function(){for(;;){var kt=this.consumeCodePoint();if(kt===no||kt===Ie)return;Va(kt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Dt.prototype.consumeStringSlice=function(kt){for(var _t=5e4,Rt="";kt>0;){var Be=Math.min(_t,kt);Rt+=te.apply(void 0,this._value.splice(0,Be)),kt-=Be}return this._value.shift(),Rt},Dt.prototype.consumeStringToken=function(kt){var _t="",Rt=0;do{var Be=this._value[Rt];if(Be===Ie||Be===void 0||Be===kt)return _t+=this.consumeStringSlice(Rt),{type:0,value:_t};if(Be===oi)return this._value.splice(0,Rt),Qr;if(Be===tr){var Ye=this._value[Rt+1];Ye!==Ie&&Ye!==void 0&&(Ye===oi?(_t+=this.consumeStringSlice(Rt),Rt=-1,this._value.shift()):Va(Be,Ye)&&(_t+=this.consumeStringSlice(Rt),_t+=te(this.consumeEscapedCodePoint()),Rt=-1))}Rt++}while(!0)},Dt.prototype.consumeNumber=function(){var kt=[],_t=Di,Rt=this.peekCodePoint(0);for((Rt===Ci||Rt===yi)&&kt.push(this.consumeCodePoint());fo(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());Rt=this.peekCodePoint(0);var Be=this.peekCodePoint(1);if(Rt===va&&fo(Be))for(kt.push(this.consumeCodePoint(),this.consumeCodePoint()),_t=tn;fo(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());Rt=this.peekCodePoint(0),Be=this.peekCodePoint(1);var Ye=this.peekCodePoint(2);if((Rt===Yo||Rt===ll)&&((Be===Ci||Be===yi)&&fo(Ye)||fo(Be)))for(kt.push(this.consumeCodePoint(),this.consumeCodePoint()),_t=tn;fo(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());return[Ia(kt),_t]},Dt.prototype.consumeNumericToken=function(){var kt=this.consumeNumber(),_t=kt[0],Rt=kt[1],Be=this.peekCodePoint(0),Ye=this.peekCodePoint(1),Fn=this.peekCodePoint(2);if(Ps(Be,Ye,Fn)){var qn=this.consumeName();return{type:15,number:_t,flags:Rt,unit:qn}}return Be===Mr?(this.consumeCodePoint(),{type:16,number:_t,flags:Rt}):{type:17,number:_t,flags:Rt}},Dt.prototype.consumeEscapedCodePoint=function(){var kt=this.consumeCodePoint();if(Vi(kt)){for(var _t=te(kt);Vi(this.peekCodePoint(0))&&_t.length<6;)_t+=te(this.consumeCodePoint());Ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Rt=parseInt(_t,16);return Rt===0||co(Rt)||Rt>1114111?Pi:Rt}return kt===Ie?Pi:kt},Dt.prototype.consumeName=function(){for(var kt="";;){var _t=this.consumeCodePoint();if(Na(_t))kt+=te(_t);else if(Va(_t,this.peekCodePoint(0)))kt+=te(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(_t),kt}},Dt}(),ou=function(){function Dt(kt){this._tokens=kt}return Dt.create=function(kt){var _t=new bl;return _t.write(kt),new Dt(_t.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 _t=this.consumeComponentValue();do kt=this.consumeToken();while(kt.type===31);if(kt.type===32)return _t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Dt.prototype.parseComponentValues=function(){for(var kt=[];;){var _t=this.consumeComponentValue();if(_t.type===32)return kt;kt.push(_t),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 _t={type:kt,values:[]},Rt=this.consumeToken();;){if(Rt.type===32||fu(Rt,kt))return _t;this.reconsumeToken(Rt),_t.values.push(this.consumeComponentValue()),Rt=this.consumeToken()}},Dt.prototype.consumeFunction=function(kt){for(var _t={name:kt.value,values:[],type:18};;){var Rt=this.consumeToken();if(Rt.type===32||Rt.type===3)return _t;this.reconsumeToken(Rt),_t.values.push(this.consumeComponentValue())}},Dt.prototype.consumeToken=function(){var kt=this._tokens.shift();return typeof kt=="undefined"?rl:kt},Dt.prototype.reconsumeToken=function(kt){this._tokens.unshift(kt)},Dt}(),Ya=function(Dt){return Dt.type===15},Mo=function(Dt){return Dt.type===17},ja=function(Dt){return Dt.type===20},Ja=function(Dt){return Dt.type===0},su=function(Dt,kt){return ja(Dt)&&Dt.value===kt},$l=function(Dt){return Dt.type!==31},Pu=function(Dt){return Dt.type!==31&&Dt.type!==4},bu=function(Dt){var kt=[],_t=[];return Dt.forEach(function(Rt){if(Rt.type===4){if(_t.length===0)throw new Error("Error parsing function args, zero tokens for arg");kt.push(_t),_t=[];return}Rt.type!==31&&_t.push(Rt)}),_t.length&&kt.push(_t),kt},fu=function(Dt,kt){return kt===11&&Dt.type===12||kt===28&&Dt.type===29?!0:kt===2&&Dt.type===3},eu=function(Dt){return Dt.type===17||Dt.type===15},zo=function(Dt){return Dt.type===16||eu(Dt)},Hd=function(Dt){return Dt.length>1?[Dt[0],Dt[1]]:[Dt[0]]},Eu={type:17,number:0,flags:Di},yd={type:16,number:50,flags:Di},Nh={type:16,number:100,flags:Di},ec=function(Dt,kt,_t){var Rt=Dt[0],Be=Dt[1];return[ol(Rt,kt),ol(typeof Be!="undefined"?Be:Rt,_t)]},ol=function(Dt,kt){if(Dt.type===16)return Dt.number/100*kt;if(Ya(Dt))switch(Dt.unit){case"rem":case"em":return 16*Dt.number;case"px":default:return Dt.number}return Dt.number},xh="deg",Qd="grad",Oc="rad",Dc="turn",Fs={name:"angle",parse:function(Dt,kt){if(kt.type===15)switch(kt.unit){case xh: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")}},ya=function(Dt){return Dt.type===15&&(Dt.unit===xh||Dt.unit===Qd||Dt.unit===Oc||Dt.unit===Dc)},ju=function(Dt){var kt=Dt.filter(ja).map(function(_t){return _t.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 qa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Eu,Nh];case"to right":case"left":return qa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Nh,Nh];case"to bottom":case"top":return qa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Nh,Eu];case"to left":case"right":return qa(270)}return 0},qa=function(Dt){return Math.PI*Dt/180},sl={name:"color",parse:function(Dt,kt){if(kt.type===18){var _t=zd[kt.name];if(typeof _t=="undefined")throw new Error('Attempting to parse an unsupported color function "'+kt.name+'"');return _t(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),Ye=kt.value.substring(2,3);return tl(parseInt(Rt+Rt,16),parseInt(Be+Be,16),parseInt(Ye+Ye,16),1)}if(kt.value.length===4){var Rt=kt.value.substring(0,1),Be=kt.value.substring(1,2),Ye=kt.value.substring(2,3),Fn=kt.value.substring(3,4);return tl(parseInt(Rt+Rt,16),parseInt(Be+Be,16),parseInt(Ye+Ye,16),parseInt(Fn+Fn,16)/255)}if(kt.value.length===6){var Rt=kt.value.substring(0,2),Be=kt.value.substring(2,4),Ye=kt.value.substring(4,6);return tl(parseInt(Rt,16),parseInt(Be,16),parseInt(Ye,16),1)}if(kt.value.length===8){var Rt=kt.value.substring(0,2),Be=kt.value.substring(2,4),Ye=kt.value.substring(4,6),Fn=kt.value.substring(6,8);return tl(parseInt(Rt,16),parseInt(Be,16),parseInt(Ye,16),parseInt(Fn,16)/255)}}if(kt.type===20){var qn=Sh[kt.value.toUpperCase()];if(typeof qn!="undefined")return qn}return Sh.TRANSPARENT}},za=function(Dt){return(255&Dt)===0},Aa=function(Dt){var kt=255&Dt,_t=255&Dt>>8,Rt=255&Dt>>16,Be=255&Dt>>24;return kt<255?"rgba("+Be+","+Rt+","+_t+","+kt/255+")":"rgb("+Be+","+Rt+","+_t+")"},tl=function(Dt,kt,_t,Rt){return(Dt<<24|kt<<16|_t<<8|Math.round(Rt*255)<<0)>>>0},Ol=function(Dt,kt){if(Dt.type===17)return Dt.number;if(Dt.type===16){var _t=kt===3?1:255;return kt===3?Dt.number/100*_t:Math.round(Dt.number/100*_t)}return 0},fc=function(Dt,kt){var _t=kt.filter(Pu);if(_t.length===3){var Rt=_t.map(Ol),Be=Rt[0],Ye=Rt[1],Fn=Rt[2];return tl(Be,Ye,Fn,1)}if(_t.length===4){var qn=_t.map(Ol),Be=qn[0],Ye=qn[1],Fn=qn[2],jn=qn[3];return tl(Be,Ye,Fn,jn)}return 0};function ch(Dt,kt,_t){return _t<0&&(_t+=1),_t>=1&&(_t-=1),_t<1/6?(kt-Dt)*_t*6+Dt:_t<1/2?kt:_t<2/3?(kt-Dt)*6*(2/3-_t)+Dt:Dt}var hl=function(Dt,kt){var _t=kt.filter(Pu),Rt=_t[0],Be=_t[1],Ye=_t[2],Fn=_t[3],qn=(Rt.type===17?qa(Rt.number):Fs.parse(Dt,Rt))/(Math.PI*2),jn=zo(Be)?Be.number/100:0,Ri=zo(Ye)?Ye.number/100:0,zi=typeof Fn!="undefined"&&zo(Fn)?ol(Fn,1):1;if(jn===0)return tl(Ri*255,Ri*255,Ri*255,1);var lr=Ri<=.5?Ri*(jn+1):Ri+jn-Ri*jn,St=Ri*2-lr,Qt=ch(St,lr,qn+1/3),de=ch(St,lr,qn),Ee=ch(St,lr,qn-1/3);return tl(Qt*255,de*255,Ee*255,zi)},zd={hsl:hl,hsla:hl,rgb:fc,rgba:fc},td=function(Dt,kt){return sl.parse(Dt,ou.create(kt).parseComponentValue())},Sh={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},Qo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,kt){return kt.map(function(_t){if(ja(_t))switch(_t.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 _t=sl.parse(Dt,kt[0]),Rt=kt[1];return Rt&&zo(Rt)?{color:_t,stop:Rt}:{color:_t,stop:null}},Wi=function(Dt,kt){var _t=Dt[0],Rt=Dt[Dt.length-1];_t.stop===null&&(_t.stop=Eu),Rt.stop===null&&(Rt.stop=Nh);for(var Be=[],Ye=0,Fn=0;Fn<Dt.length;Fn++){var qn=Dt[Fn].stop;if(qn!==null){var jn=ol(qn,kt);jn>Ye?Be.push(jn):Be.push(Ye),Ye=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],Qt=(zi-St)/(lr+1),de=1;de<=lr;de++)Be[Ri+de-1]=Qt*de;Ri=null}}return Dt.map(function(Ee,on){var cn=Ee.color;return{color:cn,stop:Math.max(Math.min(1,Be[on]/kt),0)}})},aA=function(Dt,kt,_t){var Rt=kt/2,Be=_t/2,Ye=ol(Dt[0],kt)-Rt,Fn=Be-ol(Dt[1],_t);return(Math.atan2(Fn,Ye)+Math.PI*2)%(Math.PI*2)},nc=function(Dt,kt,_t){var Rt=typeof Dt=="number"?Dt:aA(Dt,kt,_t),Be=Math.abs(kt*Math.sin(Rt))+Math.abs(_t*Math.cos(Rt)),Ye=kt/2,Fn=_t/2,qn=Be/2,jn=Math.sin(Rt-Math.PI/2)*qn,Ri=Math.cos(Rt-Math.PI/2)*qn;return[Be,Ye-Ri,Ye+Ri,Fn-jn,Fn+jn]},Ku=function(Dt,kt){return Math.sqrt(Dt*Dt+kt*kt)},Gu=function(Dt,kt,_t,Rt,Be){var Ye=[[0,0],[0,kt],[Dt,0],[Dt,kt]];return Ye.reduce(function(Fn,qn){var jn=qn[0],Ri=qn[1],zi=Ku(_t-jn,Rt-Ri);return(Be?zi<Fn.optimumDistance:zi>Fn.optimumDistance)?{optimumCorner:qn,optimumDistance:zi}:Fn},{optimumDistance:Be?1/0:-1/0,optimumCorner:null}).optimumCorner},Ch=function(Dt,kt,_t,Rt,Be){var Ye=0,Fn=0;switch(Dt.size){case 0:Dt.shape===0?Ye=Fn=Math.min(Math.abs(kt),Math.abs(kt-Rt),Math.abs(_t),Math.abs(_t-Be)):Dt.shape===1&&(Ye=Math.min(Math.abs(kt),Math.abs(kt-Rt)),Fn=Math.min(Math.abs(_t),Math.abs(_t-Be)));break;case 2:if(Dt.shape===0)Ye=Fn=Math.min(Ku(kt,_t),Ku(kt,_t-Be),Ku(kt-Rt,_t),Ku(kt-Rt,_t-Be));else if(Dt.shape===1){var qn=Math.min(Math.abs(_t),Math.abs(_t-Be))/Math.min(Math.abs(kt),Math.abs(kt-Rt)),jn=Gu(Rt,Be,kt,_t,!0),Ri=jn[0],zi=jn[1];Ye=Ku(Ri-kt,(zi-_t)/qn),Fn=qn*Ye}break;case 1:Dt.shape===0?Ye=Fn=Math.max(Math.abs(kt),Math.abs(kt-Rt),Math.abs(_t),Math.abs(_t-Be)):Dt.shape===1&&(Ye=Math.max(Math.abs(kt),Math.abs(kt-Rt)),Fn=Math.max(Math.abs(_t),Math.abs(_t-Be)));break;case 3:if(Dt.shape===0)Ye=Fn=Math.max(Ku(kt,_t),Ku(kt,_t-Be),Ku(kt-Rt,_t),Ku(kt-Rt,_t-Be));else if(Dt.shape===1){var qn=Math.max(Math.abs(_t),Math.abs(_t-Be))/Math.max(Math.abs(kt),Math.abs(kt-Rt)),lr=Gu(Rt,Be,kt,_t,!1),Ri=lr[0],zi=lr[1];Ye=Ku(Ri-kt,(zi-_t)/qn),Fn=qn*Ye}break}return Array.isArray(Dt.size)&&(Ye=ol(Dt.size[0],Rt),Fn=Dt.size.length===2?ol(Dt.size[1],Be):Ye),[Ye,Fn]},zA=function(Dt,kt){var _t=qa(180),Rt=[];return bu(kt).forEach(function(Be,Ye){if(Ye===0){var Fn=Be[0];if(Fn.type===20&&Fn.value==="to"){_t=ju(Be);return}else if(ya(Fn)){_t=Fs.parse(Dt,Fn);return}}var qn=En(Dt,Be);Rt.push(qn)}),{angle:_t,stops:Rt,type:1}},ed=function(Dt,kt){var _t=qa(180),Rt=[];return bu(kt).forEach(function(Be,Ye){if(Ye===0){var Fn=Be[0];if(Fn.type===20&&["top","left","right","bottom"].indexOf(Fn.value)!==-1){_t=ju(Be);return}else if(ya(Fn)){_t=(Fs.parse(Dt,Fn)+qa(270))%qa(360);return}}var qn=En(Dt,Be);Rt.push(qn)}),{angle:_t,stops:Rt,type:1}},el=function(Dt,kt){var _t=qa(180),Rt=[],Be=1,Ye=0,Fn=3,qn=[];return bu(kt).forEach(function(jn,Ri){var zi=jn[0];if(Ri===0){if(ja(zi)&&zi.value==="linear"){Be=1;return}else if(ja(zi)&&zi.value==="radial"){Be=2;return}}if(zi.type===18){if(zi.name==="from"){var lr=sl.parse(Dt,zi.values[0]);Rt.push({stop:Eu,color:lr})}else if(zi.name==="to"){var lr=sl.parse(Dt,zi.values[0]);Rt.push({stop:Nh,color:lr})}else if(zi.name==="color-stop"){var St=zi.values.filter(Pu);if(St.length===2){var lr=sl.parse(Dt,St[1]),Qt=St[0];Mo(Qt)&&Rt.push({stop:{type:16,number:Qt.number*100,flags:Qt.flags},color:lr})}}}}),Be===1?{angle:(_t+qa(180))%qa(360),stops:Rt,type:Be}:{size:Fn,shape:Ye,stops:Rt,position:qn,type:Be}},vs="closest-side",rh="farthest-side",Zu="closest-corner",El="farthest-corner",sa="circle",gu="ellipse",Bh="cover",wl="contain",Qh=function(Dt,kt){var _t=0,Rt=3,Be=[],Ye=[];return bu(kt).forEach(function(Fn,qn){var jn=!0;if(qn===0){var Ri=!1;jn=Fn.reduce(function(lr,St){if(Ri)if(ja(St))switch(St.value){case"center":return Ye.push(yd),lr;case"top":case"left":return Ye.push(Eu),lr;case"right":case"bottom":return Ye.push(Nh),lr}else(zo(St)||eu(St))&&Ye.push(St);else if(ja(St))switch(St.value){case sa:return _t=0,!1;case gu:return _t=1,!1;case"at":return Ri=!0,!1;case vs:return Rt=0,!1;case Bh:case rh:return Rt=1,!1;case wl:case Zu:return Rt=2,!1;case El:return Rt=3,!1}else if(eu(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:_t,stops:Be,position:Ye,type:2}},Cu=function(Dt,kt){var _t=0,Rt=3,Be=[],Ye=[];return bu(kt).forEach(function(Fn,qn){var jn=!0;if(qn===0?jn=Fn.reduce(function(zi,lr){if(ja(lr))switch(lr.value){case"center":return Ye.push(yd),!1;case"top":case"left":return Ye.push(Eu),!1;case"right":case"bottom":return Ye.push(Nh),!1}else if(zo(lr)||eu(lr))return Ye.push(lr),!1;return zi},jn):qn===1&&(jn=Fn.reduce(function(zi,lr){if(ja(lr))switch(lr.value){case sa:return _t=0,!1;case gu:return _t=1,!1;case wl:case vs:return Rt=0,!1;case rh:return Rt=1,!1;case Zu:return Rt=2,!1;case Bh:case El:return Rt=3,!1}else if(eu(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:_t,stops:Be,position:Ye,type:2}},wd=function(Dt){return Dt.type===1},Ea=function(Dt){return Dt.type===2},oh={name:"image",parse:function(Dt,kt){if(kt.type===22){var _t={url:kt.value,type:0};return Dt.cache.addImage(kt.value),_t}if(kt.type===18){var Rt=gl[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||!!gl[Dt.name])}var gl={"linear-gradient":zA,"-moz-linear-gradient":ed,"-ms-linear-gradient":ed,"-o-linear-gradient":ed,"-webkit-linear-gradient":ed,"radial-gradient":Qh,"-moz-radial-gradient":Cu,"-ms-radial-gradient":Cu,"-o-radial-gradient":Cu,"-webkit-radial-gradient":Cu,"-webkit-gradient":el},Hl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){if(kt.length===0)return[];var _t=kt[0];return _t.type===20&&_t.value==="none"?[]:kt.filter(function(Rt){return Pu(Rt)&&Fa(Rt)}).map(function(Rt){return oh.parse(Dt,Rt)})}},Yl={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Dt,kt){return kt.map(function(_t){if(ja(_t))switch(_t.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(_t){return _t.filter(zo)}).map(Hd)}},wt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Dt,kt){return bu(kt).map(function(_t){return _t.filter(ja).map(function(Rt){return Rt.value}).join(" ")}).map(bt)}},bt=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}},Ht;(function(Dt){Dt.AUTO="auto",Dt.CONTAIN="contain",Dt.COVER="cover"})(Ht||(Ht={}));var ie={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Dt,kt){return bu(kt).map(function(_t){return _t.filter(Yt)})}},Yt=function(Dt){return ja(Dt)||zo(Dt)},ge=function(Dt){return{name:"border-"+Dt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},we=ge("top"),be=ge("right"),$e=ge("bottom"),fn=ge("left"),gn=function(Dt){return{name:"border-radius-"+Dt,initialValue:"0 0",prefix:!1,type:1,parse:function(kt,_t){return Hd(_t.filter(zo))}}},Pn=gn("top-left"),Ke=gn("top-right"),gi=gn("bottom-right"),Jn=gn("bottom-left"),vi=function(Dt){return{name:"border-"+Dt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(kt,_t){switch(_t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Rn=vi("top"),di=vi("right"),Qi=vi("bottom"),rr=vi("left"),Er=function(Dt){return{name:"border-"+Dt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(kt,_t){return Ya(_t)?_t.number:0}}},ao=Er("top"),gr=Er("right"),Ti=Er("bottom"),xr=Er("left"),kr={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$n={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"rtl":return 1;case"ltr":default:return 0}}},ii={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(ja).reduce(function(_t,Rt){return _t|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}},Xe={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}},Je;(function(Dt){Dt.NORMAL="normal",Dt.STRICT="strict"})(Je||(Je={}));var vn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"strict":return Je.STRICT;case"normal":default:return Je.NORMAL}}},nn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Tn=function(Dt,kt){return ja(Dt)&&Dt.value==="normal"?1.2*kt:Dt.type===17?kt*Dt.number:zo(Dt)?ol(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:oh.parse(Dt,kt)}},Yn={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}}},hn=function(Dt){return{name:"margin-"+Dt,initialValue:"0",prefix:!1,type:4}},mn=hn("top"),Qn=hn("right"),Zn=hn("bottom"),ni=hn("left"),Ei={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(ja).map(function(_t){switch(_t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},li={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"}}},Xi=function(Dt){return{name:"padding-"+Dt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Zi=Xi("top"),Ar=Xi("right"),br=Xi("bottom"),io=Xi("left"),Ii={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}}},Xn={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&&su(kt[0],"none")?[]:bu(kt).map(function(_t){for(var Rt={color:Sh.TRANSPARENT,offsetX:Eu,offsetY:Eu,blur:Eu},Be=0,Ye=0;Ye<_t.length;Ye++){var Fn=_t[Ye];eu(Fn)?(Be===0?Rt.offsetX=Fn:Be===1?Rt.offsetY=Fn:Rt.blur=Fn,Be++):Rt.color=sl.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 _t=pr[kt.name];if(typeof _t=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+kt.name+'"');return _t(kt.values)}return null}},ar=function(Dt){var kt=Dt.filter(function(_t){return _t.type===17}).map(function(_t){return _t.number});return kt.length===6?kt:null},qi=function(Dt){var kt=Dt.filter(function(jn){return jn.type===17}).map(function(jn){return jn.number}),_t=kt[0],Rt=kt[1];kt[2],kt[3];var Be=kt[4],Ye=kt[5];kt[6],kt[7],kt[8],kt[9],kt[10],kt[11];var Fn=kt[12],qn=kt[13];return kt[14],kt[15],kt.length===16?[_t,Rt,Be,Ye,Fn,qn]:null},pr={matrix:ar,matrix3d:qi},Wr={type:16,number:50,flags:Di},ho=[Wr,Wr],po={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Dt,kt){var _t=kt.filter(zo);return _t.length!==2?ho:[_t[0],_t[1]]}},Ur={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}}},jo;(function(Dt){Dt.NORMAL="normal",Dt.BREAK_ALL="break-all",Dt.KEEP_ALL="keep-all"})(jo||(jo={}));for(var us={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Dt,kt){switch(kt){case"break-all":return jo.BREAK_ALL;case"keep-all":return jo.KEEP_ALL;case"normal":default:return jo.NORMAL}}},qo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Dt,kt){if(kt.type===20)return{auto:!0,order:0};if(Mo(kt))return{auto:!1,order:kt.number};throw new Error("Invalid z-index number parsed")}},is={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 Mo(kt)?kt.number:1}},wa={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(ja).map(function(_t){switch(_t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(_t){return _t!==0})}},rs={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Dt,kt){var _t=[],Rt=[];return kt.forEach(function(Be){switch(Be.type){case 20:case 0:_t.push(Be.value);break;case 17:_t.push(Be.number.toString());break;case 4:Rt.push(_t.join(" ")),_t.length=0;break}}),_t.length&&Rt.push(_t.join(" ")),Rt.map(function(Be){return Be.indexOf(" ")===-1?Be:"'"+Be+"'"})}},Cs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qs={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Dt,kt){if(Mo(kt))return kt.number;if(ja(kt))switch(kt.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ua={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){return kt.filter(ja).map(function(_t){return _t.value})}},$s={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 _t=kt[0];return _t.type===20&&_t.value==="none"?[]:kt}},ds={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Dt,kt){if(kt.length===0)return null;var _t=kt[0];if(_t.type===20&&_t.value==="none")return null;for(var Rt=[],Be=kt.filter($l),Ye=0;Ye<Be.length;Ye++){var Fn=Be[Ye],qn=Be[Ye+1];if(Fn.type===20){var jn=qn&&Mo(qn)?qn.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 _t=[],Rt=kt.filter($l),Be=0;Be<Rt.length;Be++){var Ye=Rt[Be],Fn=Rt[Be+1];if(ja(Ye)&&Ye.value!=="none"){var qn=Fn&&Mo(Fn)?Fn.number:0;_t.push({counter:Ye.value,reset:qn})}}return _t}},Ts={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Dt,kt){return kt.filter(Ya).map(function(_t){return is.parse(Dt,_t)})}},ro={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Dt,kt){if(kt.length===0)return null;var _t=kt[0];if(_t.type===20&&_t.value==="none")return null;var Rt=[],Be=kt.filter(Ja);if(Be.length%2!==0)return null;for(var Ye=0;Ye<Be.length;Ye+=2){var Fn=Be[Ye].value,qn=Be[Ye+1].value;Rt.push({open:Fn,close:qn})}return Rt}},Wo=function(Dt,kt,_t){if(!Dt)return"";var Rt=Dt[Math.min(kt,Dt.length-1)];return Rt?_t?Rt.open:Rt.close:""},ha={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Dt,kt){return kt.length===1&&su(kt[0],"none")?[]:bu(kt).map(function(_t){for(var Rt={color:255,offsetX:Eu,offsetY:Eu,blur:Eu,spread:Eu,inset:!1},Be=0,Ye=0;Ye<_t.length;Ye++){var Fn=_t[Ye];su(Fn,"inset")?Rt.inset=!0:eu(Fn)?(Be===0?Rt.offsetX=Fn:Be===1?Rt.offsetY=Fn:Be===2?Rt.blur=Fn:Rt.spread=Fn,Be++):Rt.color=sl.parse(Dt,Fn)}return Rt})}},Us={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Dt,kt){var _t=[0,1,2],Rt=[];return kt.filter(ja).forEach(function(Be){switch(Be.value){case"stroke":Rt.push(1);break;case"fill":Rt.push(0);break;case"markers":Rt.push(2);break}}),_t.forEach(function(Be){Rt.indexOf(Be)===-1&&Rt.push(Be)}),Rt}},Ql={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 Ya(kt)?kt.number:0}},Es=function(){function Dt(kt,_t){var Rt,Be;this.animationDuration=Ao(kt,Ts,_t.animationDuration),this.backgroundClip=Ao(kt,Qo,_t.backgroundClip),this.backgroundColor=Ao(kt,sA,_t.backgroundColor),this.backgroundImage=Ao(kt,Hl,_t.backgroundImage),this.backgroundOrigin=Ao(kt,Yl,_t.backgroundOrigin),this.backgroundPosition=Ao(kt,Et,_t.backgroundPosition),this.backgroundRepeat=Ao(kt,wt,_t.backgroundRepeat),this.backgroundSize=Ao(kt,ie,_t.backgroundSize),this.borderTopColor=Ao(kt,we,_t.borderTopColor),this.borderRightColor=Ao(kt,be,_t.borderRightColor),this.borderBottomColor=Ao(kt,$e,_t.borderBottomColor),this.borderLeftColor=Ao(kt,fn,_t.borderLeftColor),this.borderTopLeftRadius=Ao(kt,Pn,_t.borderTopLeftRadius),this.borderTopRightRadius=Ao(kt,Ke,_t.borderTopRightRadius),this.borderBottomRightRadius=Ao(kt,gi,_t.borderBottomRightRadius),this.borderBottomLeftRadius=Ao(kt,Jn,_t.borderBottomLeftRadius),this.borderTopStyle=Ao(kt,Rn,_t.borderTopStyle),this.borderRightStyle=Ao(kt,di,_t.borderRightStyle),this.borderBottomStyle=Ao(kt,Qi,_t.borderBottomStyle),this.borderLeftStyle=Ao(kt,rr,_t.borderLeftStyle),this.borderTopWidth=Ao(kt,ao,_t.borderTopWidth),this.borderRightWidth=Ao(kt,gr,_t.borderRightWidth),this.borderBottomWidth=Ao(kt,Ti,_t.borderBottomWidth),this.borderLeftWidth=Ao(kt,xr,_t.borderLeftWidth),this.boxShadow=Ao(kt,ha,_t.boxShadow),this.color=Ao(kt,kr,_t.color),this.direction=Ao(kt,$n,_t.direction),this.display=Ao(kt,ii,_t.display),this.float=Ao(kt,me,_t.cssFloat),this.fontFamily=Ao(kt,rs,_t.fontFamily),this.fontSize=Ao(kt,Cs,_t.fontSize),this.fontStyle=Ao(kt,$s,_t.fontStyle),this.fontVariant=Ao(kt,Ua,_t.fontVariant),this.fontWeight=Ao(kt,qs,_t.fontWeight),this.letterSpacing=Ao(kt,Xe,_t.letterSpacing),this.lineBreak=Ao(kt,vn,_t.lineBreak),this.lineHeight=Ao(kt,nn,_t.lineHeight),this.listStyleImage=Ao(kt,Un,_t.listStyleImage),this.listStylePosition=Ao(kt,Yn,_t.listStylePosition),this.listStyleType=Ao(kt,Qe,_t.listStyleType),this.marginTop=Ao(kt,mn,_t.marginTop),this.marginRight=Ao(kt,Qn,_t.marginRight),this.marginBottom=Ao(kt,Zn,_t.marginBottom),this.marginLeft=Ao(kt,ni,_t.marginLeft),this.opacity=Ao(kt,So,_t.opacity);var Ye=Ao(kt,Ei,_t.overflow);this.overflowX=Ye[0],this.overflowY=Ye[Ye.length>1?1:0],this.overflowWrap=Ao(kt,li,_t.overflowWrap),this.paddingTop=Ao(kt,Zi,_t.paddingTop),this.paddingRight=Ao(kt,Ar,_t.paddingRight),this.paddingBottom=Ao(kt,br,_t.paddingBottom),this.paddingLeft=Ao(kt,io,_t.paddingLeft),this.paintOrder=Ao(kt,Us,_t.paintOrder),this.position=Ao(kt,Xn,_t.position),this.textAlign=Ao(kt,Ii,_t.textAlign),this.textDecorationColor=Ao(kt,wa,(Rt=_t.textDecorationColor)!==null&&Rt!==void 0?Rt:_t.color),this.textDecorationLine=Ao(kt,Vo,(Be=_t.textDecorationLine)!==null&&Be!==void 0?Be:_t.textDecoration),this.textShadow=Ao(kt,Bo,_t.textShadow),this.textTransform=Ao(kt,Pr,_t.textTransform),this.transform=Ao(kt,sr,_t.transform),this.transformOrigin=Ao(kt,po,_t.transformOrigin),this.visibility=Ao(kt,Ur,_t.visibility),this.webkitTextStrokeColor=Ao(kt,Ql,_t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ao(kt,Fl,_t.webkitTextStrokeWidth),this.wordBreak=Ao(kt,us,_t.wordBreak),this.zIndex=Ao(kt,qo,_t.zIndex)}return Dt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Dt.prototype.isTransparent=function(){return za(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}(),da=function(){function Dt(kt,_t){this.content=Ao(kt,Go,_t.content),this.quotes=Ao(kt,ro,_t.quotes)}return Dt}(),Dl=function(){function Dt(kt,_t){this.counterIncrement=Ao(kt,ds,_t.counterIncrement),this.counterReset=Ao(kt,es,_t.counterReset)}return Dt}(),Ao=function(Dt,kt,_t){var Rt=new bl,Be=_t!==null&&typeof _t!="undefined"?_t.toString():kt.initialValue;Rt.write(Be);var Ye=new ou(Rt.read());switch(kt.type){case 2:var Fn=Ye.parseComponentValue();return kt.parse(Dt,ja(Fn)?Fn.value:kt.initialValue);case 0:return kt.parse(Dt,Ye.parseComponentValue());case 1:return kt.parse(Dt,Ye.parseComponentValues());case 4:return Ye.parseComponentValue();case 3:switch(kt.format){case"angle":return Fs.parse(Dt,Ye.parseComponentValue());case"color":return sl.parse(Dt,Ye.parseComponentValue());case"image":return oh.parse(Dt,Ye.parseComponentValue());case"length":var qn=Ye.parseComponentValue();return eu(qn)?qn:Eu;case"length-percentage":var jn=Ye.parseComponentValue();return zo(jn)?jn:Eu;case"time":return is.parse(Dt,Ye.parseComponentValue())}break}},Ra="data-html2canvas-debug",Kl=function(Dt){var kt=Dt.getAttribute(Ra);switch(kt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ta=function(Dt,kt){var _t=Kl(Dt);return _t===1||kt===_t},ca=function(){function Dt(kt,_t){if(this.context=kt,this.textNodes=[],this.elements=[],this.flags=0,ta(_t,3))debugger;this.styles=new Es(kt,window.getComputedStyle(_t,null)),ur(_t)&&(this.styles.animationDuration.some(function(Rt){return Rt>0})&&(_t.style.animationDuration="0s"),this.styles.transform!==null&&(_t.style.transform="none")),this.bounds=Vt(this.context,_t),ta(_t,4)&&(this.flags|=16)}return Dt}(),ka="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",al=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Rs=0;Rs<Xa.length;Rs++)al[Xa.charCodeAt(Rs)]=Rs;for(var Ta=function(Dt){var kt=Dt.length*.75,_t=Dt.length,Rt,Be=0,Ye,Fn,qn,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<_t;Rt+=4)Ye=al[Dt.charCodeAt(Rt)],Fn=al[Dt.charCodeAt(Rt+1)],qn=al[Dt.charCodeAt(Rt+2)],jn=al[Dt.charCodeAt(Rt+3)],zi[Be++]=Ye<<2|Fn>>4,zi[Be++]=(Fn&15)<<4|qn>>2,zi[Be++]=(qn&3)<<6|jn&63;return Ri},xl=function(Dt){for(var kt=Dt.length,_t=[],Rt=0;Rt<kt;Rt+=2)_t.push(Dt[Rt+1]<<8|Dt[Rt]);return _t},pu=function(Dt){for(var kt=Dt.length,_t=[],Rt=0;Rt<kt;Rt+=4)_t.push(Dt[Rt+3]<<24|Dt[Rt+2]<<16|Dt[Rt+1]<<8|Dt[Rt]);return _t},au=5,Uu=11,Xu=2,dh=Uu-au,$u=65536>>au,_a=1<<au,Bu=_a-1,jl=1024>>au,nl=$u+jl,ph=nl,Cc=32,mh=ph+Cc,ic=65536>>Uu,rc=1<<dh,vh=rc-1,ga=function(Dt,kt,_t){return Dt.slice?Dt.slice(kt,_t):new Uint16Array(Array.prototype.slice.call(Dt,kt,_t))},Sl=function(Dt,kt,_t){return Dt.slice?Dt.slice(kt,_t):new Uint32Array(Array.prototype.slice.call(Dt,kt,_t))},Ba=function(Dt,kt){var _t=Ta(Dt),Rt=Array.isArray(_t)?pu(_t):new Uint32Array(_t),Be=Array.isArray(_t)?xl(_t):new Uint16Array(_t),Ye=24,Fn=ga(Be,Ye/2,Rt[4]/2),qn=Rt[5]===2?ga(Be,(Ye+Rt[4])/2):Sl(Rt,Math.ceil((Ye+Rt[4])/4));return new pl(Rt[0],Rt[1],Rt[2],Rt[3],Fn,qn)},pl=function(){function Dt(kt,_t,Rt,Be,Ye,Fn){this.initialValue=kt,this.errorValue=_t,this.highStart=Rt,this.highValueIndex=Be,this.index=Ye,this.data=Fn}return Dt.prototype.get=function(kt){var _t;if(kt>=0){if(kt<55296||kt>56319&&kt<=65535)return _t=this.index[kt>>au],_t=(_t<<Xu)+(kt&Bu),this.data[_t];if(kt<=65535)return _t=this.index[$u+(kt-55296>>au)],_t=(_t<<Xu)+(kt&Bu),this.data[_t];if(kt<this.highStart)return _t=mh-ic+(kt>>Uu),_t=this.index[_t],_t+=kt>>au&vh,_t=this.index[_t],_t=(_t<<Xu)+(kt&Bu),this.data[_t];if(kt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Dt}(),pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Fu=0;Fu<pa.length;Fu++)lu[pa.charCodeAt(Fu)]=Fu;var zh=1,Ih=2,_n=3,Ru=4,kh=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=[],_t=0,Rt=Dt.length;_t<Rt;){var Be=Dt.charCodeAt(_t++);if(Be>=55296&&Be<=56319&&_t<Rt){var Ye=Dt.charCodeAt(_t++);(Ye&64512)===56320?kt.push(((Be&1023)<<10)+(Ye&1023)+65536):(kt.push(Be),_t--)}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 _t=Dt.length;if(!_t)return"";for(var Rt=[],Be=-1,Ye="";++Be<_t;){var Fn=Dt[Be];Fn<=65535?Rt.push(Fn):(Fn-=65536,Rt.push((Fn>>10)+55296,Fn%1024+56320)),(Be+1===_t||Rt.length>16384)&&(Ye+=String.fromCharCode.apply(String,Rt),Rt.length=0)}return Ye},Sd=Ba(ka),Yu="\xD7",sh="\xF7",Wu=function(Dt){return Sd.get(Dt)},BA=function(Dt,kt,_t){var Rt=_t-2,Be=kt[Rt],Ye=kt[_t-1],Fn=kt[_t];if(Ye===Ih&&Fn===_n)return Yu;if(Ye===Ih||Ye===_n||Ye===Ru||Fn===Ih||Fn===_n||Fn===Ru)return sh;if(Ye===nd&&[nd,gc,SA,Lu].indexOf(Fn)!==-1||(Ye===SA||Ye===gc)&&(Fn===gc||Fn===xd)||(Ye===Lu||Ye===xd)&&Fn===xd||Fn===jc||Fn===kh||Fn===lA||Ye===zh)return Yu;if(Ye===jc&&Fn===Kd){for(;Be===kh;)Be=kt[--Rt];if(Be===Kd)return Yu}if(Ye===id&&Fn===id){for(var qn=0;Be===id;)qn++,Be=kt[--Rt];if(qn%2===0)return Yu}return sh},Kh=function(Dt){var kt=CA(Dt),_t=kt.length,Rt=0,Be=0,Ye=kt.map(Wu);return{next:function(){if(Rt>=_t)return{done:!0,value:null};for(var Fn=Yu;Rt<_t&&(Fn=BA(kt,Ye,++Rt))===Yu;);if(Fn!==Yu||Rt===_t){var qn=Uc.apply(null,kt.slice(Be,Rt));return Be=Rt,{value:qn,done:!1}}return{done:!0,value:null}}}},na=function(Dt){for(var kt=Kh(Dt),_t=[],Rt;!(Rt=kt.next()).done;)Rt.value&&_t.push(Rt.value.slice());return _t},Cd=function(Dt){var kt=123;if(Dt.createRange){var _t=Dt.createRange();if(_t.getBoundingClientRect){var Rt=Dt.createElement("boundtest");Rt.style.height=kt+"px",Rt.style.display="block",Dt.body.appendChild(Rt),_t.selectNode(Rt);var Be=_t.getBoundingClientRect(),Ye=Math.round(Be.height);if(Dt.body.removeChild(Rt),Ye===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 _t=Dt.createRange();kt.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Rt=kt.firstChild,Be=jt(Rt.data).map(function(jn){return te(jn)}),Ye=0,Fn={},qn=Be.every(function(jn,Ri){_t.setStart(Rt,Ye),_t.setEnd(Rt,Ye+jn.length);var zi=_t.getBoundingClientRect();Ye+=jn.length;var lr=zi.x>Fn.x||zi.y>Fn.y;return Fn=zi,Ri===0?!0:lr});return Dt.body.removeChild(kt),qn},mu=function(){return typeof new Image().crossOrigin!="undefined"},Gd=function(){return typeof new XMLHttpRequest().responseType=="string"},Wd=function(Dt){var kt=new Image,_t=Dt.createElement("canvas"),Rt=_t.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),_t.toDataURL()}catch(Be){return!1}return!0},Ju=function(Dt){return Dt[0]===0&&Dt[1]===255&&Dt[2]===0&&Dt[3]===255},Rc=function(Dt){var kt=Dt.createElement("canvas"),_t=100;kt.width=_t,kt.height=_t;var Rt=kt.getContext("2d");if(!Rt)return Promise.reject(!1);Rt.fillStyle="rgb(0, 255, 0)",Rt.fillRect(0,0,_t,_t);var Be=new Image,Ye=kt.toDataURL();Be.src=Ye;var Fn=Bd(_t,_t,0,0,Be);return Rt.fillStyle="red",Rt.fillRect(0,0,_t,_t),Vd(Fn).then(function(qn){Rt.drawImage(qn,0,0);var jn=Rt.getImageData(0,0,_t,_t).data;Rt.fillStyle="red",Rt.fillRect(0,0,_t,_t);var Ri=Dt.createElement("div");return Ri.style.backgroundImage="url("+Ye+")",Ri.style.height=_t+"px",Ju(jn)?Vd(Bd(_t,_t,0,0,Ri)):Promise.reject(!1)}).then(function(qn){return Rt.drawImage(qn,0,0),Ju(Rt.getImageData(0,0,_t,_t).data)}).catch(function(){return!1})},Bd=function(Dt,kt,_t,Rt,Be){var Ye="http://www.w3.org/2000/svg",Fn=document.createElementNS(Ye,"svg"),qn=document.createElementNS(Ye,"foreignObject");return Fn.setAttributeNS(null,"width",Dt.toString()),Fn.setAttributeNS(null,"height",kt.toString()),qn.setAttributeNS(null,"width","100%"),qn.setAttributeNS(null,"height","100%"),qn.setAttributeNS(null,"x",_t.toString()),qn.setAttributeNS(null,"y",Rt.toString()),qn.setAttributeNS(null,"externalResourcesRequired","true"),Fn.appendChild(qn),qn.appendChild(Be),Fn},Vd=function(Dt){return new Promise(function(kt,_t){var Rt=new Image;Rt.onload=function(){return kt(Rt)},Rt.onerror=_t,Rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},uu={get SUPPORT_RANGE_BOUNDS(){var Dt=Cd(document);return Object.defineProperty(uu,"SUPPORT_RANGE_BOUNDS",{value:Dt}),Dt},get SUPPORT_WORD_BREAKING(){var Dt=uu.SUPPORT_RANGE_BOUNDS&&rd(document);return Object.defineProperty(uu,"SUPPORT_WORD_BREAKING",{value:Dt}),Dt},get SUPPORT_SVG_DRAWING(){var Dt=Wd(document);return Object.defineProperty(uu,"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(uu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Dt}),Dt},get SUPPORT_CORS_IMAGES(){var Dt=mu();return Object.defineProperty(uu,"SUPPORT_CORS_IMAGES",{value:Dt}),Dt},get SUPPORT_RESPONSE_TYPE(){var Dt=Gd();return Object.defineProperty(uu,"SUPPORT_RESPONSE_TYPE",{value:Dt}),Dt},get SUPPORT_CORS_XHR(){var Dt="withCredentials"in new XMLHttpRequest;return Object.defineProperty(uu,"SUPPORT_CORS_XHR",{value:Dt}),Dt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Dt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(uu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Dt}),Dt}},vu=function(){function Dt(kt,_t){this.text=kt,this.bounds=_t}return Dt}(),_c=function(Dt,kt,_t,Rt){var Be=Ah(kt,_t),Ye=[],Fn=0;return Be.forEach(function(qn){if(_t.textDecorationLine.length||qn.trim().length>0)if(uu.SUPPORT_RANGE_BOUNDS){var jn=Oa(Rt,Fn,qn.length).getClientRects();if(jn.length>1){var Ri=$a(qn),zi=0;Ri.forEach(function(St){Ye.push(new vu(St,ee.fromDOMRectList(Dt,Oa(Rt,zi+Fn,St.length).getClientRects()))),zi+=St.length})}else Ye.push(new vu(qn,ee.fromDOMRectList(Dt,jn)))}else{var lr=Rt.splitText(qn.length);Ye.push(new vu(qn,Ul(Dt,Rt))),Rt=lr}else uu.SUPPORT_RANGE_BOUNDS||(Rt=Rt.splitText(qn.length));Fn+=qn.length}),Ye},Ul=function(Dt,kt){var _t=kt.ownerDocument;if(_t){var Rt=_t.createElement("html2canvaswrapper");Rt.appendChild(kt.cloneNode(!0));var Be=kt.parentNode;if(Be){Be.replaceChild(Rt,kt);var Ye=Vt(Dt,Rt);return Rt.firstChild&&Be.replaceChild(Rt.firstChild,Rt),Ye}}return ee.EMPTY},Oa=function(Dt,kt,_t){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+_t),Be},$a=function(Dt){if(uu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var kt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(kt.segment(Dt)).map(function(_t){return _t.segment})}return na(Dt)},Mu=function(Dt,kt){if(uu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var _t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(_t.segment(Dt)).map(function(Rt){return Rt.segment})}return Zd(Dt,kt)},Ah=function(Dt,kt){return kt.letterSpacing!==0?$a(Dt):Mu(Dt,kt)},Ph=[32,160,4961,65792,65793,4153,4241],Zd=function(Dt,kt){for(var _t=wn(Dt,{lineBreak:kt.lineBreak,wordBreak:kt.overflowWrap==="break-word"?"break-word":kt.wordBreak}),Rt=[],Be,Ye=function(){if(Be.value){var Fn=Be.value.slice(),qn=jt(Fn),jn="";qn.forEach(function(Ri){Ph.indexOf(Ri)===-1?jn+=te(Ri):(jn.length&&Rt.push(jn),Rt.push(te(Ri)),jn="")}),jn.length&&Rt.push(jn)}};!(Be=_t.next()).done;)Ye();return Rt},Bc=function(){function Dt(kt,_t,Rt){this.text=Pd(_t.data,Rt.textTransform),this.textBounds=_c(kt,this.text,Rt,_t)}return Dt}(),Pd=function(Dt,kt){switch(kt){case 1:return Dt.toLowerCase();case 3:return Dt.replace(Vu,yh);case 2:return Dt.toUpperCase();default:return Dt}},Vu=/(^|\s|:|-|\(|\))([a-z])/g,yh=function(Dt,kt,_t){return Dt.length>0?kt+_t.toUpperCase():Dt},PA=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,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}(ca),Hc=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.canvas=Rt,Be.intrinsicWidth=Rt.width,Be.intrinsicHeight=Rt.height,Be}return kt}(ca),oc=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this,Ye=new XMLSerializer,Fn=Vt(_t,Rt);return Rt.setAttribute("width",Fn.width+"px"),Rt.setAttribute("height",Fn.height+"px"),Be.svg="data:image/svg+xml,"+encodeURIComponent(Ye.serializeToString(Rt)),Be.intrinsicWidth=Rt.width.baseVal.value,Be.intrinsicHeight=Rt.height.baseVal.value,Be.context.cache.addImage(Be.svg),Be}return kt}(ca),Qc=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.value=Rt.value,Be}return kt}(ca),od=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.start=Rt.start,Be.reversed=typeof Rt.reversed=="boolean"&&Rt.reversed===!0,Be}return kt}(ca),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,Th=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,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}(ca),bA=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this,Ye=Rt.options[Rt.selectedIndex||0];return Be.value=Ye&&Ye.text||"",Be}return kt}(ca),EA=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,Rt)||this;return Be.value=Rt.value,Be}return kt}(ca),cA=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,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(_t,Rt.contentWindow.document.documentElement);var Ye=Rt.contentWindow.document.documentElement?td(_t,getComputedStyle(Rt.contentWindow.document.documentElement).backgroundColor):Sh.TRANSPARENT,Fn=Rt.contentWindow.document.body?td(_t,getComputedStyle(Rt.contentWindow.document.body).backgroundColor):Sh.TRANSPARENT;Be.backgroundColor=za(Ye)?za(Fn)?Be.styles.backgroundColor:Fn:Ye}}catch(qn){}return Be}return kt}(ca),Xd=["OL","UL","MENU"],Ed=function(Dt,kt,_t,Rt){for(var Be=kt.firstChild,Ye=void 0;Be;Be=Ye)if(Ye=Be.nextSibling,wi(Be)&&Be.data.trim().length>0)_t.textNodes.push(new Bc(Dt,Be,_t.styles));else if(_i(Be))if(LA(Be)&&Be.assignedNodes)Be.assignedNodes().forEach(function(qn){return Ed(Dt,qn,_t,Rt)});else{var Fn=$d(Dt,Be);Fn.styles.isVisible()&&(fe(Be,Fn,Rt)?Fn.flags|=4:yn(Fn.styles)&&(Fn.flags|=2),Xd.indexOf(Be.tagName)!==-1&&(Fn.flags|=8),_t.elements.push(Fn),Be.slot,Be.shadowRoot?Ed(Dt,Be.shadowRoot,Fn,Rt):!bh(Be)&&!ba(Be)&&!ac(Be)&&Ed(Dt,Be,Fn,Rt))}},$d=function(Dt,kt){return Ka(kt)?new PA(Dt,kt):nu(kt)?new Hc(Dt,kt):ba(kt)?new oc(Dt,kt):Co(kt)?new Qc(Dt,kt):ps(kt)?new od(Dt,kt):Ys(kt)?new Th(Dt,kt):ac(kt)?new bA(Dt,kt):bh(kt)?new EA(Dt,kt):zl(kt)?new cA(Dt,kt):new ca(Dt,kt)},FA=function(Dt,kt){var _t=$d(Dt,kt);return _t.flags|=4,Ed(Dt,kt,_t,_t),_t},fe=function(Dt,kt,_t){return kt.styles.isPositionedWithZIndex()||kt.styles.opacity<1||kt.styles.isTransformed()||ms(Dt)&&_t.styles.isTransparent()},yn=function(Dt){return Dt.isPositioned()||Dt.isFloating()},wi=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"&&!jr(Dt)},jr=function(Dt){return typeof Dt.className=="object"},Co=function(Dt){return Dt.tagName==="LI"},ps=function(Dt){return Dt.tagName==="OL"},Ys=function(Dt){return Dt.tagName==="INPUT"},Pa=function(Dt){return Dt.tagName==="HTML"},ba=function(Dt){return Dt.tagName==="svg"},ms=function(Dt){return Dt.tagName==="BODY"},nu=function(Dt){return Dt.tagName==="CANVAS"},iu=function(Dt){return Dt.tagName==="VIDEO"},Ka=function(Dt){return Dt.tagName==="IMG"},zl=function(Dt){return Dt.tagName==="IFRAME"},Nu=function(Dt){return Dt.tagName==="STYLE"},sc=function(Dt){return Dt.tagName==="SCRIPT"},bh=function(Dt){return Dt.tagName==="TEXTAREA"},ac=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 _t=this.counters[kt];return _t&&_t.length?_t[_t.length-1]:1},Dt.prototype.getCounterValues=function(kt){var _t=this.counters[kt];return _t||[]},Dt.prototype.pop=function(kt){var _t=this;kt.forEach(function(Rt){return _t.counters[Rt].pop()})},Dt.prototype.parse=function(kt){var _t=this,Rt=kt.counterIncrement,Be=kt.counterReset,Ye=!0;Rt!==null&&Rt.forEach(function(qn){var jn=_t.counters[qn.counter];jn&&qn.increment!==0&&(Ye=!1,jn.length||jn.push(1),jn[Math.max(0,jn.length-1)]+=qn.increment)});var Fn=[];return Ye&&Be.forEach(function(qn){var jn=_t.counters[qn.counter];Fn.push(qn.counter),jn||(jn=_t.counters[qn.counter]=[]),jn.push(qn.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"]},ml={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,_t,Rt,Be,Ye){return Dt<kt||Dt>_t?mt(Dt,Be,Ye.length>0):Rt.integers.reduce(function(Fn,qn,jn){for(;Dt>=qn;)Dt-=qn,Fn+=Rt.values[jn];return Fn},"")+Ye},Yd=function(Dt,kt,_t,Rt){var Be="";do _t||Dt--,Be=Rt(Dt)+Be,Dt/=kt;while(Dt*kt>=kt);return Be},Gl=function(Dt,kt,_t,Rt,Be){var Ye=_t-kt+1;return(Dt<0?"-":"")+(Yd(Math.abs(Dt),Ye,Rt,function(Fn){return te(Math.floor(Fn%Ye)+kt)})+Be)},Oh=function(Dt,kt,_t){_t===void 0&&(_t=". ");var Rt=kt.length;return Yd(Math.abs(Dt),Rt,!1,function(Be){return kt[Math.floor(Be%Rt)]})+_t},mc=1,qu=2,Wl=4,Ld=8,Dh=function(Dt,kt,_t,Rt,Be,Ye){if(Dt<-9999||Dt>9999)return mt(Dt,4,Be.length>0);var Fn=Math.abs(Dt),qn=Be;if(Fn===0)return kt[0]+qn;for(var jn=0;Fn>0&&jn<=4;jn++){var Ri=Fn%10;Ri===0&&Ko(Ye,mc)&&qn!==""?qn=kt[Ri]+qn:Ri>1||Ri===1&&jn===0||Ri===1&&jn===1&&Ko(Ye,qu)||Ri===1&&jn===1&&Ko(Ye,Wl)&&Dt>100||Ri===1&&jn>1&&Ko(Ye,Ld)?qn=kt[Ri]+(jn>0?_t[jn-1]:"")+qn:Ri===1&&jn>0&&(qn=_t[jn-1]+qn),Fn=Math.floor(Fn/10)}return(Dt<0?Rt:"")+qn},ah="\u5341\u767E\u5343\u842C",sd="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",mt=function(Dt,kt,_t){var Rt=_t?". ":"",Be=_t?"\u3001":"",Ye=_t?", ":"",Fn=_t?" ":"";switch(kt){case 0:return"\u2022"+Fn;case 1:return"\u25E6"+Fn;case 2:return"\u25FE"+Fn;case 5:var qn=Gl(Dt,48,57,!0,Rt);return qn.length<4?"0"+qn:qn;case 4:return Oh(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 Gl(Dt,945,969,!1,Rt);case 9:return Gl(Dt,97,122,!1,Rt);case 10:return Gl(Dt,65,90,!1,Rt);case 11:return Gl(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 Gl(Dt,2534,2543,!0,Rt);case 14:case 30:return Gl(Dt,6112,6121,!0,Rt);case 15:return Oh(Dt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Be);case 16:return Oh(Dt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Be);case 17:case 48:return Dh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ah,"\u8CA0",Be,qu|Wl|Ld);case 47:return Dh(Dt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",sd,"\u8CA0",Be,mc|qu|Wl|Ld);case 42:return Dh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ah,"\u8D1F",Be,qu|Wl|Ld);case 41:return Dh(Dt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",sd,"\u8D1F",Be,mc|qu|Wl|Ld);case 26:return Dh(Dt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Be,0);case 25:return Dh(Dt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Be,mc|qu|Wl);case 31:return Dh(Dt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,Ye,mc|qu|Wl);case 33:return Dh(Dt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,Ye,0);case 32:return Dh(Dt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,Ye,mc|qu|Wl);case 18:return Gl(Dt,2406,2415,!0,Rt);case 20:return Iu(Dt,1,19999,ml,3,Rt);case 21:return Gl(Dt,2790,2799,!0,Rt);case 22:return Gl(Dt,2662,2671,!0,Rt);case 22:return Iu(Dt,1,10999,Gc,3,Rt);case 23:return Oh(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 Oh(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 Gl(Dt,3302,3311,!0,Rt);case 28:return Oh(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 Oh(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 Gl(Dt,3792,3801,!0,Rt);case 37:return Gl(Dt,6160,6169,!0,Rt);case 38:return Gl(Dt,4160,4169,!0,Rt);case 39:return Gl(Dt,2918,2927,!0,Rt);case 40:return Gl(Dt,1776,1785,!0,Rt);case 43:return Gl(Dt,3046,3055,!0,Rt);case 44:return Gl(Dt,3174,3183,!0,Rt);case 45:return Gl(Dt,3664,3673,!0,Rt);case 46:return Gl(Dt,3872,3881,!0,Rt);case 3:default:return Gl(Dt,48,57,!0,Rt)}},pt="data-html2canvas-ignore",Bt=function(){function Dt(kt,_t,Rt){if(this.context=kt,this.options=Rt,this.scrolledElements=[],this.referenceElement=_t,this.counters=new MA,this.quoteDepth=0,!_t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(_t.ownerDocument.documentElement,!1)}return Dt.prototype.toIFrame=function(kt,_t){var Rt=this,Be=Se(kt,_t);if(!Be.contentWindow)return Promise.reject("Unable to find iframe window");var Ye=kt.defaultView.pageXOffset,Fn=kt.defaultView.pageYOffset,qn=Be.contentWindow,jn=qn.document,Ri=ln(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(yr),qn&&(qn.scrollTo(_t.left,_t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(qn.scrollY!==_t.top||qn.scrollX!==_t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(qn.scrollX-_t.left,qn.scrollY-_t.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,Oe(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(ki(document.doctype)+"<html></html>"),bi(this.referenceElement.ownerDocument,Ye,Fn),jn.replaceChild(jn.adoptNode(this.documentElement),jn.documentElement),jn.close(),Ri},Dt.prototype.createElementClone=function(kt){if(ta(kt,2))debugger;if(nu(kt))return this.createCanvasClone(kt);if(iu(kt))return this.createVideoClone(kt);if(Nu(kt))return this.createStyleClone(kt);var _t=kt.cloneNode(!1);return Ka(_t)&&(Ka(kt)&&kt.currentSrc&&kt.currentSrc!==kt.src&&(_t.src=kt.currentSrc,_t.srcset=""),_t.loading==="lazy"&&(_t.loading="eager")),dA(_t)?this.createCustomElementClone(_t):_t},Dt.prototype.createCustomElementClone=function(kt){var _t=document.createElement("html2canvascustomelement");return pn(kt.style,_t),_t},Dt.prototype.createStyleClone=function(kt){try{var _t=kt.sheet;if(_t&&_t.cssRules){var Rt=[].slice.call(_t.cssRules,0).reduce(function(Ye,Fn){return Fn&&typeof Fn.cssText=="string"?Ye+Fn.cssText:Ye},""),Be=kt.cloneNode(!1);return Be.textContent=Rt,Be}}catch(Ye){if(this.context.logger.error("Unable to access cssRules property",Ye),Ye.name!=="SecurityError")throw Ye}return kt.cloneNode(!1)},Dt.prototype.createCanvasClone=function(kt){var _t;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 Ye=kt.getContext("2d"),Fn=Be.getContext("2d");if(Fn)if(!this.options.allowTaint&&Ye)Fn.putImageData(Ye.getImageData(0,0,kt.width,kt.height),0,0);else{var qn=(_t=kt.getContext("webgl2"))!==null&&_t!==void 0?_t:kt.getContext("webgl");if(qn){var jn=qn.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 _t=kt.ownerDocument.createElement("canvas");_t.width=kt.offsetWidth,_t.height=kt.offsetHeight;var Rt=_t.getContext("2d");try{return Rt&&(Rt.drawImage(kt,0,0,_t.width,_t.height),this.options.allowTaint||Rt.getImageData(0,0,_t.width,_t.height)),_t}catch(Ye){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,_t,Rt){(!_i(_t)||!sc(_t)&&!_t.hasAttribute(pt)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(_t)))&&(!this.options.copyStyles||!_i(_t)||!Nu(_t))&&kt.appendChild(this.cloneNode(_t,Rt))},Dt.prototype.cloneChildNodes=function(kt,_t,Rt){for(var Be=this,Ye=kt.shadowRoot?kt.shadowRoot.firstChild:kt.firstChild;Ye;Ye=Ye.nextSibling)if(_i(Ye)&&LA(Ye)&&typeof Ye.assignedNodes=="function"){var Fn=Ye.assignedNodes();Fn.length&&Fn.forEach(function(qn){return Be.appendChildNode(_t,qn,Rt)})}else this.appendChildNode(_t,Ye,Rt)},Dt.prototype.cloneNode=function(kt,_t){if(wi(kt))return document.createTextNode(kt.data);if(!kt.ownerDocument)return kt.cloneNode(!1);var Rt=kt.ownerDocument.defaultView;if(Rt&&_i(kt)&&(ur(kt)||jr(kt))){var Be=this.createElementClone(kt);Be.style.transitionProperty="none";var Ye=Rt.getComputedStyle(kt),Fn=Rt.getComputedStyle(kt,":before"),qn=Rt.getComputedStyle(kt,":after");this.referenceElement===kt&&ur(Be)&&(this.clonedReferenceElement=Be),ms(Be)&&ss(Be);var jn=this.counters.parse(new Dl(this.context,Ye)),Ri=this.resolvePseudoContent(kt,Be,Fn,Jt.BEFORE);dA(kt)&&(_t=!0),iu(kt)||this.cloneChildNodes(kt,Be,_t),Ri&&Be.insertBefore(Ri,Be.firstChild);var zi=this.resolvePseudoContent(kt,Be,qn,Jt.AFTER);return zi&&Be.appendChild(zi),this.counters.pop(jn),(Ye&&(this.options.copyStyles||jr(kt))&&!zl(kt)||_t)&&pn(Ye,Be),(kt.scrollTop!==0||kt.scrollLeft!==0)&&this.scrolledElements.push([Be,kt.scrollLeft,kt.scrollTop]),(bh(kt)||ac(kt))&&(bh(Be)||ac(Be))&&(Be.value=kt.value),Be}return kt.cloneNode(!1)},Dt.prototype.resolvePseudoContent=function(kt,_t,Rt,Be){var Ye=this;if(Rt){var Fn=Rt.content,qn=_t.ownerDocument;if(!(!qn||!Fn||Fn==="none"||Fn==="-moz-alt-content"||Rt.display==="none")){this.counters.parse(new Dl(this.context,Rt));var jn=new da(this.context,Rt),Ri=qn.createElement("html2canvaspseudoelement");pn(Rt,Ri),jn.content.forEach(function(lr){if(lr.type===0)Ri.appendChild(qn.createTextNode(lr.value));else if(lr.type===22){var St=qn.createElement("img");St.src=lr.value,St.style.opacity="1",Ri.appendChild(St)}else if(lr.type===18){if(lr.name==="attr"){var Qt=lr.values.filter(ja);Qt.length&&Ri.appendChild(qn.createTextNode(kt.getAttribute(Qt[0].value)||""))}else if(lr.name==="counter"){var de=lr.values.filter(Pu),Ee=de[0],on=de[1];if(Ee&&ja(Ee)){var cn=Ye.counters.getCounterValue(Ee.value),An=on&&ja(on)?Qe.parse(Ye.context,on.value):3;Ri.appendChild(qn.createTextNode(mt(cn,An,!1)))}}else if(lr.name==="counters"){var xn=lr.values.filter(Pu),Ee=xn[0],In=xn[1],on=xn[2];if(Ee&&ja(Ee)){var zn=Ye.counters.getCounterValues(Ee.value),Ai=on&&ja(on)?Qe.parse(Ye.context,on.value):3,$i=In&&In.type===0?In.value:"",Yi=zn.map(function(Ir){return mt(Ir,Ai,!1)}).join($i);Ri.appendChild(qn.createTextNode(Yi))}}}else if(lr.type===20)switch(lr.value){case"open-quote":Ri.appendChild(qn.createTextNode(Wo(jn.quotes,Ye.quoteDepth++,!0)));break;case"close-quote":Ri.appendChild(qn.createTextNode(Wo(jn.quotes,--Ye.quoteDepth,!1)));break;default:Ri.appendChild(qn.createTextNode(lr.value))}}),Ri.className=vo+" "+$o;var zi=Be===Jt.BEFORE?" "+vo:" "+$o;return jr(_t)?_t.className.baseValue+=zi:_t.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 _t=Dt.createElement("iframe");return _t.className="html2canvas-container",_t.style.visibility="hidden",_t.style.position="fixed",_t.style.left="-10000px",_t.style.top="0px",_t.style.border="0",_t.width=kt.width.toString(),_t.height=kt.height.toString(),_t.scrolling="no",_t.setAttribute(pt,"true"),Dt.body.appendChild(_t),_t},Ue=function(Dt){return new Promise(function(kt){if(Dt.complete){kt();return}if(!Dt.src){kt();return}Dt.onload=kt,Dt.onerror=kt})},Oe=function(Dt){return Promise.all([].slice.call(Dt.images,0).map(Ue))},ln=function(Dt){return new Promise(function(kt,_t){var Rt=Dt.contentWindow;if(!Rt)return _t("No window assigned for iframe");var Be=Rt.document;Rt.onload=Dt.onload=function(){Rt.onload=Dt.onload=null;var Ye=setInterval(function(){Be.body.childNodes.length>0&&Be.readyState==="complete"&&(clearInterval(Ye),kt(Dt))},50)}})},ri=["all","d","content"],pn=function(Dt,kt){for(var _t=Dt.length-1;_t>=0;_t--){var Rt=Dt.item(_t);ri.indexOf(Rt)===-1&&kt.style.setProperty(Rt,Dt.getPropertyValue(Rt))}return kt},ki=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,_t){Dt&&Dt.defaultView&&(kt!==Dt.defaultView.pageXOffset||_t!==Dt.defaultView.pageYOffset)&&Dt.defaultView.scrollTo(kt,_t)},yr=function(Dt){var kt=Dt[0],_t=Dt[1],Rt=Dt[2];kt.scrollLeft=_t,kt.scrollTop=Rt},Tr=":before",qr=":after",vo="___html2canvas___pseudoelement_before",$o="___html2canvas___pseudoelement_after",ko=`{
content: "" !important;
display: none !important;
}`,ss=function(Dt){Ns(Dt,"."+vo+Tr+ko+`
.`+$o+qr+ko)},Ns=function(Dt,kt){var _t=Dt.ownerDocument;if(_t){var Rt=_t.createElement("style");Rt.textContent=kt,Dt.appendChild(Rt)}},To=function(){function Dt(){}return Dt.getOrigin=function(kt){var _t=Dt._link;return _t?(_t.href=kt,_t.href=_t.href,_t.protocol+_t.hostname+_t.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}(),ea=function(){function Dt(kt,_t){this.context=kt,this._options=_t,this._cache={}}return Dt.prototype.addImage=function(kt){var _t=Promise.resolve();return this.has(kt)||(vl(kt)||yu(kt))&&(this._cache[kt]=this.loadImage(kt)).catch(function(){}),_t},Dt.prototype.match=function(kt){return this._cache[kt]},Dt.prototype.loadImage=function(kt){return ce(this,void 0,void 0,function(){var _t,Rt,Be,Ye,Fn=this;return re(this,function(qn){switch(qn.label){case 0:return _t=To.isSameOrigin(kt),Rt=!La(kt)&&this._options.useCORS===!0&&uu.SUPPORT_CORS_IMAGES&&!_t,Be=!La(kt)&&!_t&&!vl(kt)&&typeof this._options.proxy=="string"&&uu.SUPPORT_CORS_XHR&&!Rt,!_t&&this._options.allowTaint===!1&&!La(kt)&&!vl(kt)&&!Be&&!Rt?[2]:(Ye=kt,Be?[4,this.proxy(Ye)]:[3,2]);case 1:Ye=qn.sent(),qn.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,(Sa(Ye)||Rt)&&(zi.crossOrigin="anonymous"),zi.src=Ye,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,qn.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 _t=this,Rt=this._options.proxy;if(!Rt)throw new Error("No proxy defined");var Be=kt.substring(0,256);return new Promise(function(Ye,Fn){var qn=uu.SUPPORT_RESPONSE_TYPE?"blob":"text",jn=new XMLHttpRequest;jn.onload=function(){if(jn.status===200)if(qn==="text")Ye(jn.response);else{var lr=new FileReader;lr.addEventListener("load",function(){return Ye(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="+qn),qn!=="text"&&jn instanceof XMLHttpRequest&&(jn.responseType=qn),_t._options.imageTimeout){var zi=_t._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,cl=/^data:image\/.*/i,yu=function(Dt){return uu.SUPPORT_SVG_DRAWING||!yl(Dt)},La=function(Dt){return cl.test(Dt)},Sa=function(Dt){return ku.test(Dt)},vl=function(Dt){return Dt.substr(0,4)==="blob"},yl=function(Dt){return Dt.substr(-3).toLowerCase()==="svg"||Cl.test(Dt)},Eo=function(){function Dt(kt,_t){this.type=0,this.x=kt,this.y=_t}return Dt.prototype.add=function(kt,_t){return new Dt(this.x+kt,this.y+_t)},Dt}(),Ca=function(Dt,kt,_t){return new Eo(Dt.x+(kt.x-Dt.x)*_t,Dt.y+(kt.y-Dt.y)*_t)},Ml=function(){function Dt(kt,_t,Rt,Be){this.type=1,this.start=kt,this.startControl=_t,this.endControl=Rt,this.end=Be}return Dt.prototype.subdivide=function(kt,_t){var Rt=Ca(this.start,this.startControl,kt),Be=Ca(this.startControl,this.endControl,kt),Ye=Ca(this.endControl,this.end,kt),Fn=Ca(Rt,Be,kt),qn=Ca(Be,Ye,kt),jn=Ca(Fn,qn,kt);return _t?new Dt(this.start,Rt,Fn,jn):new Dt(jn,qn,Ye,this.end)},Dt.prototype.add=function(kt,_t){return new Dt(this.start.add(kt,_t),this.startControl.add(kt,_t),this.endControl.add(kt,_t),this.end.add(kt,_t))},Dt.prototype.reverse=function(){return new Dt(this.end,this.endControl,this.startControl,this.start)},Dt}(),Nl=function(Dt){return Dt.type===1},lh=function(){function Dt(kt){var _t=kt.styles,Rt=kt.bounds,Be=ec(_t.borderTopLeftRadius,Rt.width,Rt.height),Ye=Be[0],Fn=Be[1],qn=ec(_t.borderTopRightRadius,Rt.width,Rt.height),jn=qn[0],Ri=qn[1],zi=ec(_t.borderBottomRightRadius,Rt.width,Rt.height),lr=zi[0],St=zi[1],Qt=ec(_t.borderBottomLeftRadius,Rt.width,Rt.height),de=Qt[0],Ee=Qt[1],on=[];on.push((Ye+jn)/Rt.width),on.push((de+lr)/Rt.width),on.push((Fn+Ee)/Rt.height),on.push((Ri+St)/Rt.height);var cn=Math.max.apply(Math,on);cn>1&&(Ye/=cn,Fn/=cn,jn/=cn,Ri/=cn,lr/=cn,St/=cn,de/=cn,Ee/=cn);var An=Rt.width-jn,xn=Rt.height-St,In=Rt.width-lr,zn=Rt.height-Ee,Ai=_t.borderTopWidth,$i=_t.borderRightWidth,Yi=_t.borderBottomWidth,Ni=_t.borderLeftWidth,Gr=ol(_t.paddingTop,kt.bounds.width),Ir=ol(_t.paddingRight,kt.bounds.width),Hi=ol(_t.paddingBottom,kt.bounds.width),Ui=ol(_t.paddingLeft,kt.bounds.width);this.topLeftBorderDoubleOuterBox=Ye>0||Fn>0?_s(Rt.left+Ni/3,Rt.top+Ai/3,Ye-Ni/3,Fn-Ai/3,Da.TOP_LEFT):new Eo(Rt.left+Ni/3,Rt.top+Ai/3),this.topRightBorderDoubleOuterBox=Ye>0||Fn>0?_s(Rt.left+An,Rt.top+Ai/3,jn-$i/3,Ri-Ai/3,Da.TOP_RIGHT):new Eo(Rt.left+Rt.width-$i/3,Rt.top+Ai/3),this.bottomRightBorderDoubleOuterBox=lr>0||St>0?_s(Rt.left+In,Rt.top+xn,lr-$i/3,St-Yi/3,Da.BOTTOM_RIGHT):new Eo(Rt.left+Rt.width-$i/3,Rt.top+Rt.height-Yi/3),this.bottomLeftBorderDoubleOuterBox=de>0||Ee>0?_s(Rt.left+Ni/3,Rt.top+zn,de-Ni/3,Ee-Yi/3,Da.BOTTOM_LEFT):new Eo(Rt.left+Ni/3,Rt.top+Rt.height-Yi/3),this.topLeftBorderDoubleInnerBox=Ye>0||Fn>0?_s(Rt.left+Ni*2/3,Rt.top+Ai*2/3,Ye-Ni*2/3,Fn-Ai*2/3,Da.TOP_LEFT):new Eo(Rt.left+Ni*2/3,Rt.top+Ai*2/3),this.topRightBorderDoubleInnerBox=Ye>0||Fn>0?_s(Rt.left+An,Rt.top+Ai*2/3,jn-$i*2/3,Ri-Ai*2/3,Da.TOP_RIGHT):new Eo(Rt.left+Rt.width-$i*2/3,Rt.top+Ai*2/3),this.bottomRightBorderDoubleInnerBox=lr>0||St>0?_s(Rt.left+In,Rt.top+xn,lr-$i*2/3,St-Yi*2/3,Da.BOTTOM_RIGHT):new Eo(Rt.left+Rt.width-$i*2/3,Rt.top+Rt.height-Yi*2/3),this.bottomLeftBorderDoubleInnerBox=de>0||Ee>0?_s(Rt.left+Ni*2/3,Rt.top+zn,de-Ni*2/3,Ee-Yi*2/3,Da.BOTTOM_LEFT):new Eo(Rt.left+Ni*2/3,Rt.top+Rt.height-Yi*2/3),this.topLeftBorderStroke=Ye>0||Fn>0?_s(Rt.left+Ni/2,Rt.top+Ai/2,Ye-Ni/2,Fn-Ai/2,Da.TOP_LEFT):new Eo(Rt.left+Ni/2,Rt.top+Ai/2),this.topRightBorderStroke=Ye>0||Fn>0?_s(Rt.left+An,Rt.top+Ai/2,jn-$i/2,Ri-Ai/2,Da.TOP_RIGHT):new Eo(Rt.left+Rt.width-$i/2,Rt.top+Ai/2),this.bottomRightBorderStroke=lr>0||St>0?_s(Rt.left+In,Rt.top+xn,lr-$i/2,St-Yi/2,Da.BOTTOM_RIGHT):new Eo(Rt.left+Rt.width-$i/2,Rt.top+Rt.height-Yi/2),this.bottomLeftBorderStroke=de>0||Ee>0?_s(Rt.left+Ni/2,Rt.top+zn,de-Ni/2,Ee-Yi/2,Da.BOTTOM_LEFT):new Eo(Rt.left+Ni/2,Rt.top+Rt.height-Yi/2),this.topLeftBorderBox=Ye>0||Fn>0?_s(Rt.left,Rt.top,Ye,Fn,Da.TOP_LEFT):new Eo(Rt.left,Rt.top),this.topRightBorderBox=jn>0||Ri>0?_s(Rt.left+An,Rt.top,jn,Ri,Da.TOP_RIGHT):new Eo(Rt.left+Rt.width,Rt.top),this.bottomRightBorderBox=lr>0||St>0?_s(Rt.left+In,Rt.top+xn,lr,St,Da.BOTTOM_RIGHT):new Eo(Rt.left+Rt.width,Rt.top+Rt.height),this.bottomLeftBorderBox=de>0||Ee>0?_s(Rt.left,Rt.top+zn,de,Ee,Da.BOTTOM_LEFT):new Eo(Rt.left,Rt.top+Rt.height),this.topLeftPaddingBox=Ye>0||Fn>0?_s(Rt.left+Ni,Rt.top+Ai,Math.max(0,Ye-Ni),Math.max(0,Fn-Ai),Da.TOP_LEFT):new Eo(Rt.left+Ni,Rt.top+Ai),this.topRightPaddingBox=jn>0||Ri>0?_s(Rt.left+Math.min(An,Rt.width-$i),Rt.top+Ai,An>Rt.width+$i?0:Math.max(0,jn-$i),Math.max(0,Ri-Ai),Da.TOP_RIGHT):new Eo(Rt.left+Rt.width-$i,Rt.top+Ai),this.bottomRightPaddingBox=lr>0||St>0?_s(Rt.left+Math.min(In,Rt.width-Ni),Rt.top+Math.min(xn,Rt.height-Yi),Math.max(0,lr-$i),Math.max(0,St-Yi),Da.BOTTOM_RIGHT):new Eo(Rt.left+Rt.width-$i,Rt.top+Rt.height-Yi),this.bottomLeftPaddingBox=de>0||Ee>0?_s(Rt.left+Ni,Rt.top+Math.min(zn,Rt.height-Yi),Math.max(0,de-Ni),Math.max(0,Ee-Yi),Da.BOTTOM_LEFT):new Eo(Rt.left+Ni,Rt.top+Rt.height-Yi),this.topLeftContentBox=Ye>0||Fn>0?_s(Rt.left+Ni+Ui,Rt.top+Ai+Gr,Math.max(0,Ye-(Ni+Ui)),Math.max(0,Fn-(Ai+Gr)),Da.TOP_LEFT):new Eo(Rt.left+Ni+Ui,Rt.top+Ai+Gr),this.topRightContentBox=jn>0||Ri>0?_s(Rt.left+Math.min(An,Rt.width+Ni+Ui),Rt.top+Ai+Gr,An>Rt.width+Ni+Ui?0:jn-Ni+Ui,Ri-(Ai+Gr),Da.TOP_RIGHT):new Eo(Rt.left+Rt.width-($i+Ir),Rt.top+Ai+Gr),this.bottomRightContentBox=lr>0||St>0?_s(Rt.left+Math.min(In,Rt.width-(Ni+Ui)),Rt.top+Math.min(xn,Rt.height+Ai+Gr),Math.max(0,lr-($i+Ir)),St-(Yi+Hi),Da.BOTTOM_RIGHT):new Eo(Rt.left+Rt.width-($i+Ir),Rt.top+Rt.height-(Yi+Hi)),this.bottomLeftContentBox=de>0||Ee>0?_s(Rt.left+Ni+Ui,Rt.top+zn,Math.max(0,de-(Ni+Ui)),Ee-(Yi+Hi),Da.BOTTOM_LEFT):new Eo(Rt.left+Ni+Ui,Rt.top+Rt.height-(Yi+Hi))}return Dt}(),Da;(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"})(Da||(Da={}));var _s=function(Dt,kt,_t,Rt,Be){var Ye=4*((Math.sqrt(2)-1)/3),Fn=_t*Ye,qn=Rt*Ye,jn=Dt+_t,Ri=kt+Rt;switch(Be){case Da.TOP_LEFT:return new Ml(new Eo(Dt,Ri),new Eo(Dt,Ri-qn),new Eo(jn-Fn,kt),new Eo(jn,kt));case Da.TOP_RIGHT:return new Ml(new Eo(Dt,kt),new Eo(Dt+Fn,kt),new Eo(jn,Ri-qn),new Eo(jn,Ri));case Da.BOTTOM_RIGHT:return new Ml(new Eo(jn,kt),new Eo(jn,kt+qn),new Eo(Dt+Fn,Ri),new Eo(Dt,Ri));case Da.BOTTOM_LEFT:default:return new Ml(new Eo(jn,Ri),new Eo(jn-Fn,Ri),new Eo(Dt,kt+qn),new Eo(Dt,kt))}},wu=function(Dt){return[Dt.topLeftBorderBox,Dt.topRightBorderBox,Dt.bottomRightBorderBox,Dt.bottomLeftBorderBox]},hu=function(Dt){return[Dt.topLeftContentBox,Dt.topRightContentBox,Dt.bottomRightContentBox,Dt.bottomLeftContentBox]},ad=function(Dt){return[Dt.topLeftPaddingBox,Dt.topRightPaddingBox,Dt.bottomRightPaddingBox,Dt.bottomLeftPaddingBox]},lc=function(){function Dt(kt,_t,Rt){this.offsetX=kt,this.offsetY=_t,this.matrix=Rt,this.type=0,this.target=6}return Dt}(),uh=function(){function Dt(kt,_t){this.path=kt,this.target=_t,this.type=1}return Dt}(),wh=function(){function Dt(kt){this.opacity=kt,this.type=2,this.target=6}return Dt}(),Il=function(Dt){return Dt.type===0},th=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(_t,Rt){return _t===kt[Rt]}):!1},zf=function(Dt,kt,_t,Rt,Be){return Dt.map(function(Ye,Fn){switch(Fn){case 0:return Ye.add(kt,_t);case 1:return Ye.add(kt+Rt,_t);case 2:return Ye.add(kt+Rt,_t+Be);case 3:return Ye.add(kt,_t+Be)}return Ye})},Eh=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,_t){if(this.container=kt,this.parent=_t,this.effects=[],this.curves=new lh(this.container),this.container.styles.opacity<1&&this.effects.push(new wh(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,Ye=this.container.styles.transform;this.effects.push(new lc(Rt,Be,Ye))}if(this.container.styles.overflowX!==0){var Fn=wu(this.curves),qn=ad(this.curves);Jd(Fn,qn)?this.effects.push(new uh(Fn,6)):(this.effects.push(new uh(Fn,2)),this.effects.push(new uh(qn,4)))}}return Dt.prototype.getEffects=function(kt){for(var _t=[2,3].indexOf(this.container.styles.position)===-1,Rt=this.parent,Be=this.effects.slice(0);Rt;){var Ye=Rt.effects.filter(function(jn){return!th(jn)});if(_t||Rt.container.styles.position!==0||!Rt.parent){if(Be.unshift.apply(Be,Ye),_t=[2,3].indexOf(Rt.container.styles.position)===-1,Rt.container.styles.overflowX!==0){var Fn=wu(Rt.curves),qn=ad(Rt.curves);Jd(Fn,qn)||Be.unshift(new uh(qn,6))}}else Be.unshift.apply(Be,Ye);Rt=Rt.parent}return Be.filter(function(jn){return Ko(jn.target,kt)})},Dt}(),Md=function(Dt,kt,_t,Rt){Dt.container.elements.forEach(function(Be){var Ye=Ko(Be.flags,4),Fn=Ko(Be.flags,2),qn=new Sg(Be,Dt);Ko(Be.styles.display,2048)&&Rt.push(qn);var jn=Ko(Be.flags,8)?[]:Rt;if(Ye||Fn){var Ri=Ye||Be.styles.isPositioned()?_t:kt,zi=new Eh(qn);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,Ee){return lr>de.element.container.styles.zIndex.order?(St=Ee,!1):St>0}),Ri.negativeZIndex.splice(St,0,zi)}else if(lr>0){var Qt=0;Ri.positiveZIndex.some(function(de,Ee){return lr>=de.element.container.styles.zIndex.order?(Qt=Ee+1,!1):Qt>0}),Ri.positiveZIndex.splice(Qt,0,zi)}else Ri.zeroOrAutoZIndexOrTransformedOrOpacity.push(zi)}else Be.styles.isFloating()?Ri.nonPositionedFloats.push(zi):Ri.nonPositionedInlineLevel.push(zi);Md(qn,zi,Ye?zi:_t,jn)}else Be.styles.isInlineLevel()?kt.inlineLevel.push(qn):kt.nonInlineLevel.push(qn),Md(qn,kt,_t,jn);Ko(Be.flags,8)&&yf(Be,jn)})},yf=function(Dt,kt){for(var _t=Dt instanceof od?Dt.start:1,Rt=Dt instanceof od?Dt.reversed:!1,Be=0;Be<kt.length;Be++){var Ye=kt[Be];Ye.container instanceof Qc&&typeof Ye.container.value=="number"&&Ye.container.value!==0&&(_t=Ye.container.value),Ye.listValue=mt(_t,Ye.container.styles.listStyleType,!0),_t+=Rt?-1:1}},wf=function(Dt){var kt=new Sg(Dt,null),_t=new Eh(kt),Rt=[];return Md(kt,_t,_t,Rt),yf(kt.container,Rt),_t},GA=function(Dt,kt){switch(kt){case 0:return _u(Dt.topLeftBorderBox,Dt.topLeftPaddingBox,Dt.topRightBorderBox,Dt.topRightPaddingBox);case 1:return _u(Dt.topRightBorderBox,Dt.topRightPaddingBox,Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox);case 2:return _u(Dt.bottomRightBorderBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox);case 3:default:return _u(Dt.bottomLeftBorderBox,Dt.bottomLeftPaddingBox,Dt.topLeftBorderBox,Dt.topLeftPaddingBox)}},NA=function(Dt,kt){switch(kt){case 0:return _u(Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox,Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox);case 1:return _u(Dt.topRightBorderBox,Dt.topRightBorderDoubleOuterBox,Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox);case 2:return _u(Dt.bottomRightBorderBox,Dt.bottomRightBorderDoubleOuterBox,Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox);case 3:default:return _u(Dt.bottomLeftBorderBox,Dt.bottomLeftBorderDoubleOuterBox,Dt.topLeftBorderBox,Dt.topLeftBorderDoubleOuterBox)}},Kf=function(Dt,kt){switch(kt){case 0:return _u(Dt.topLeftBorderDoubleInnerBox,Dt.topLeftPaddingBox,Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox);case 1:return _u(Dt.topRightBorderDoubleInnerBox,Dt.topRightPaddingBox,Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox);case 2:return _u(Dt.bottomRightBorderDoubleInnerBox,Dt.bottomRightPaddingBox,Dt.bottomLeftBorderDoubleInnerBox,Dt.bottomLeftPaddingBox);case 3:default:return _u(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 _t=[];return Nl(Dt)?_t.push(Dt.subdivide(.5,!1)):_t.push(Dt),Nl(kt)?_t.push(kt.subdivide(.5,!0)):_t.push(kt),_t},_u=function(Dt,kt,_t,Rt){var Be=[];return Nl(Dt)?Be.push(Dt.subdivide(.5,!1)):Be.push(Dt),Nl(_t)?Be.push(_t.subdivide(.5,!0)):Be.push(_t),Nl(Rt)?Be.push(Rt.subdivide(.5,!0).reverse()):Be.push(Rt),Nl(kt)?Be.push(kt.subdivide(.5,!1).reverse()):Be.push(kt),Be},eh=function(Dt){var kt=Dt.bounds,_t=Dt.styles;return kt.add(_t.borderLeftWidth,_t.borderTopWidth,-(_t.borderRightWidth+_t.borderLeftWidth),-(_t.borderTopWidth+_t.borderBottomWidth))},Gf=function(Dt){var kt=Dt.styles,_t=Dt.bounds,Rt=ol(kt.paddingLeft,_t.width),Be=ol(kt.paddingRight,_t.width),Ye=ol(kt.paddingTop,_t.width),Fn=ol(kt.paddingBottom,_t.width);return _t.add(Rt+kt.borderLeftWidth,Ye+kt.borderTopWidth,-(kt.borderRightWidth+kt.borderLeftWidth+Rt+Be),-(kt.borderTopWidth+kt.borderBottomWidth+Ye+Fn))},Sp=function(Dt,kt){return Dt===0?kt.bounds:Dt===2?Gf(kt):eh(kt)},zg=function(Dt,kt){return Dt===0?kt.bounds:Dt===2?Gf(kt):eh(kt)},VA=function(Dt,kt,_t){var Rt=Sp(bc(Dt.styles.backgroundOrigin,kt),Dt),Be=zg(bc(Dt.styles.backgroundClip,kt),Dt),Ye=Cp(bc(Dt.styles.backgroundSize,kt),_t,Rt),Fn=Ye[0],qn=Ye[1],jn=ec(bc(Dt.styles.backgroundPosition,kt),Rt.width-Fn,Rt.height-qn),Ri=Ec(bc(Dt.styles.backgroundRepeat,kt),jn,Ye,Rt,Be),zi=Math.round(Rt.left+jn[0]),lr=Math.round(Rt.top+jn[1]);return[Ri,zi,lr,Fn,qn]},ZA=function(Dt){return ja(Dt)&&Dt.value===Ht.AUTO},Wf=function(Dt){return typeof Dt=="number"},Cp=function(Dt,kt,_t){var Rt=kt[0],Be=kt[1],Ye=kt[2],Fn=Dt[0],qn=Dt[1];if(!Fn)return[0,0];if(zo(Fn)&&qn&&zo(qn))return[ol(Fn,_t.width),ol(qn,_t.height)];var jn=Wf(Ye);if(ja(Fn)&&(Fn.value===Ht.CONTAIN||Fn.value===Ht.COVER)){if(Wf(Ye)){var Ri=_t.width/_t.height;return Ri<Ye!=(Fn.value===Ht.COVER)?[_t.width,_t.width/Ye]:[_t.height*Ye,_t.height]}return[_t.width,_t.height]}var zi=Wf(Rt),lr=Wf(Be),St=zi||lr;if(ZA(Fn)&&(!qn||ZA(qn))){if(zi&&lr)return[Rt,Be];if(!jn&&!St)return[_t.width,_t.height];if(St&&jn){var Qt=zi?Rt:Be*Ye,de=lr?Be:Rt/Ye;return[Qt,de]}var Ee=zi?Rt:_t.width,on=lr?Be:_t.height;return[Ee,on]}if(jn){var cn=0,An=0;return zo(Fn)?cn=ol(Fn,_t.width):zo(qn)&&(An=ol(qn,_t.height)),ZA(Fn)?cn=An*Ye:(!qn||ZA(qn))&&(An=cn/Ye),[cn,An]}var xn=null,In=null;if(zo(Fn)?xn=ol(Fn,_t.width):qn&&zo(qn)&&(In=ol(qn,_t.height)),xn!==null&&(!qn||ZA(qn))&&(In=zi&&lr?xn/Rt*Be:_t.height),In!==null&&ZA(Fn)&&(xn=zi&&lr?In/Be*Rt:_t.width),xn!==null&&In!==null)return[xn,In];throw new Error("Unable to calculate background-size for element")},bc=function(Dt,kt){var _t=Dt[kt];return typeof _t=="undefined"?Dt[0]:_t},Ec=function(Dt,kt,_t,Rt,Be){var Ye=kt[0],Fn=kt[1],qn=_t[0],jn=_t[1];switch(Dt){case 2:return[new Eo(Math.round(Rt.left),Math.round(Rt.top+Fn)),new Eo(Math.round(Rt.left+Rt.width),Math.round(Rt.top+Fn)),new Eo(Math.round(Rt.left+Rt.width),Math.round(jn+Rt.top+Fn)),new Eo(Math.round(Rt.left),Math.round(jn+Rt.top+Fn))];case 3:return[new Eo(Math.round(Rt.left+Ye),Math.round(Rt.top)),new Eo(Math.round(Rt.left+Ye+qn),Math.round(Rt.top)),new Eo(Math.round(Rt.left+Ye+qn),Math.round(Rt.height+Rt.top)),new Eo(Math.round(Rt.left+Ye),Math.round(Rt.height+Rt.top))];case 1:return[new Eo(Math.round(Rt.left+Ye),Math.round(Rt.top+Fn)),new Eo(Math.round(Rt.left+Ye+qn),Math.round(Rt.top+Fn)),new Eo(Math.round(Rt.left+Ye+qn),Math.round(Rt.top+Fn+jn)),new Eo(Math.round(Rt.left+Ye),Math.round(Rt.top+Fn+jn))];default:return[new Eo(Math.round(Be.left),Math.round(Be.top)),new Eo(Math.round(Be.left+Be.width),Math.round(Be.top)),new Eo(Math.round(Be.left+Be.width),Math.round(Be.height+Be.top)),new Eo(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,_t){var Rt=this._document.createElement("div"),Be=this._document.createElement("img"),Ye=this._document.createElement("span"),Fn=this._document.body;Rt.style.visibility="hidden",Rt.style.fontFamily=kt,Rt.style.fontSize=_t,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",Ye.style.fontFamily=kt,Ye.style.fontSize=_t,Ye.style.margin="0",Ye.style.padding="0",Ye.appendChild(this._document.createTextNode(ld)),Rt.appendChild(Ye),Rt.appendChild(Be);var qn=Be.offsetTop-Ye.offsetTop+2;Rt.removeChild(Ye),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:qn,middle:jn}},Dt.prototype.getMetrics=function(kt,_t){var Rt=kt+" "+_t;return typeof this._data[Rt]=="undefined"&&(this._data[Rt]=this.parseMetrics(kt,_t)),this._data[Rt]},Dt}(),Td=function(){function Dt(kt,_t){this.context=kt,this.options=_t}return Dt}(),Tu=1e4,XA=function(Dt){Ft(kt,Dt);function kt(_t,Rt){var Be=Dt.call(this,_t,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(_t){for(var Rt=this;this._activeEffects.length;)this.popEffect();_t.forEach(function(Be){return Rt.applyEffect(Be)})},kt.prototype.applyEffect=function(_t){this.ctx.save(),Wc(_t)&&(this.ctx.globalAlpha=_t.opacity),Il(_t)&&(this.ctx.translate(_t.offsetX,_t.offsetY),this.ctx.transform(_t.matrix[0],_t.matrix[1],_t.matrix[2],_t.matrix[3],_t.matrix[4],_t.matrix[5]),this.ctx.translate(-_t.offsetX,-_t.offsetY)),th(_t)&&(this.path(_t.path),this.ctx.clip()),this._activeEffects.push(_t)},kt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},kt.prototype.renderStack=function(_t){return ce(this,void 0,void 0,function(){var Rt;return re(this,function(Be){switch(Be.label){case 0:return Rt=_t.element.container.styles,Rt.isVisible()?[4,this.renderStackContent(_t)]:[3,2];case 1:Be.sent(),Be.label=2;case 2:return[2]}})})},kt.prototype.renderNode=function(_t){return ce(this,void 0,void 0,function(){return re(this,function(Rt){switch(Rt.label){case 0:if(Ko(_t.container.flags,16))debugger;return _t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(_t)]:[3,3];case 1:return Rt.sent(),[4,this.renderNodeContent(_t)];case 2:Rt.sent(),Rt.label=3;case 3:return[2]}})})},kt.prototype.renderTextWithLetterSpacing=function(_t,Rt,Be){var Ye=this;if(Rt===0)this.ctx.fillText(_t.text,_t.bounds.left,_t.bounds.top+Be);else{var Fn=$a(_t.text);Fn.reduce(function(qn,jn){return Ye.ctx.fillText(jn,qn,_t.bounds.top+Be),qn+Ye.ctx.measureText(jn).width},_t.bounds.left)}},kt.prototype.createFontStyle=function(_t){var Rt=_t.fontVariant.filter(function(Fn){return Fn==="normal"||Fn==="small-caps"}).join(""),Be=Gg(_t.fontFamily).join(", "),Ye=Ya(_t.fontSize)?""+_t.fontSize.number+_t.fontSize.unit:_t.fontSize.number+"px";return[[_t.fontStyle,Rt,_t.fontWeight,Ye,Be].join(" "),Be,Ye]},kt.prototype.renderTextNode=function(_t,Rt){return ce(this,void 0,void 0,function(){var Be,Ye,Fn,qn,jn,Ri,zi,lr,St=this;return re(this,function(Qt){return Be=this.createFontStyle(Rt),Ye=Be[0],Fn=Be[1],qn=Be[2],this.ctx.font=Ye,this.ctx.direction=Rt.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",jn=this.fontMetrics.getMetrics(Fn,qn),Ri=jn.baseline,zi=jn.middle,lr=Rt.paintOrder,_t.textBounds.forEach(function(de){lr.forEach(function(Ee){switch(Ee){case 0:St.ctx.fillStyle=Aa(Rt.color),St.renderTextWithLetterSpacing(de,Rt.letterSpacing,Ri);var on=Rt.textShadow;on.length&&de.text.trim().length&&(on.slice(0).reverse().forEach(function(cn){St.ctx.shadowColor=Aa(cn.color),St.ctx.shadowOffsetX=cn.offsetX.number*St.options.scale,St.ctx.shadowOffsetY=cn.offsetY.number*St.options.scale,St.ctx.shadowBlur=cn.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=Aa(Rt.textDecorationColor||Rt.color),Rt.textDecorationLine.forEach(function(cn){switch(cn){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=Aa(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(_t,Rt,Be){if(Be&&_t.intrinsicWidth>0&&_t.intrinsicHeight>0){var Ye=Gf(_t),Fn=ad(Rt);this.path(Fn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Be,0,0,_t.intrinsicWidth,_t.intrinsicHeight,Ye.left,Ye.top,Ye.width,Ye.height),this.ctx.restore()}},kt.prototype.renderNodeContent=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,Ye,Fn,qn,jn,An,An,Ri,zi,lr,St,In,Qt,de,zn,Ee,on,cn,An,xn,In,zn;return re(this,function(Ai){switch(Ai.label){case 0:this.applyEffects(_t.getEffects(4)),Rt=_t.container,Be=_t.curves,Ye=Rt.styles,Fn=0,qn=Rt.textNodes,Ai.label=1;case 1:return Fn<qn.length?(jn=qn[Fn],[4,this.renderTextNode(jn,Ye)]):[3,4];case 2:Ai.sent(),Ai.label=3;case 3:return Fn++,[3,1];case 4:if(!(Rt instanceof PA))return[3,8];Ai.label=5;case 5:return Ai.trys.push([5,7,,8]),[4,this.context.cache.match(Rt.src)];case 6:return An=Ai.sent(),this.renderReplacedElement(Rt,Be,An),[3,8];case 7:return Ai.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 oc))return[3,12];Ai.label=9;case 9:return Ai.trys.push([9,11,,12]),[4,this.context.cache.match(Rt.svg)];case 10:return An=Ai.sent(),this.renderReplacedElement(Rt,Be,An),[3,12];case 11:return Ai.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=Ai.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),Ai.label=14;case 14:if(Rt instanceof Th&&(lr=Math.min(Rt.bounds.width,Rt.bounds.height),Rt.type===bd?Rt.checked&&(this.ctx.save(),this.path([new Eo(Rt.bounds.left+lr*.39363,Rt.bounds.top+lr*.79),new Eo(Rt.bounds.left+lr*.16,Rt.bounds.top+lr*.5549),new Eo(Rt.bounds.left+lr*.27347,Rt.bounds.top+lr*.44071),new Eo(Rt.bounds.left+lr*.39694,Rt.bounds.top+lr*.5649),new Eo(Rt.bounds.left+lr*.72983,Rt.bounds.top+lr*.23),new Eo(Rt.bounds.left+lr*.84,Rt.bounds.top+lr*.34085),new Eo(Rt.bounds.left+lr*.39363,Rt.bounds.top+lr*.79)]),this.ctx.fillStyle=Aa(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=Aa(hA),this.ctx.fill(),this.ctx.restore())),lm(Rt)&&Rt.value.length){switch(St=this.createFontStyle(Ye),In=St[0],Qt=St[1],de=this.fontMetrics.getMetrics(In,Qt).baseline,this.ctx.font=In,this.ctx.fillStyle=Aa(Ye.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=js(Rt.styles.textAlign),zn=Gf(Rt),Ee=0,Rt.styles.textAlign){case 1:Ee+=zn.width/2;break;case 2:Ee+=zn.width;break}on=zn.add(Ee,0,0,-zn.height/2+1),this.ctx.save(),this.path([new Eo(zn.left,zn.top),new Eo(zn.left+zn.width,zn.top),new Eo(zn.left+zn.width,zn.top+zn.height),new Eo(zn.left,zn.top+zn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new vu(Rt.value,on),Ye.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(cn=Rt.styles.listStyleImage,cn.type!==0)return[3,18];An=void 0,xn=cn.url,Ai.label=15;case 15:return Ai.trys.push([15,17,,18]),[4,this.context.cache.match(xn)];case 16:return An=Ai.sent(),this.ctx.drawImage(An,Rt.bounds.left-(An.width+10),Rt.bounds.top),[3,18];case 17:return Ai.sent(),this.context.logger.error("Error loading list-style-image "+xn),[3,18];case 18:return[3,20];case 19:_t.listValue&&Rt.styles.listStyleType!==-1&&(In=this.createFontStyle(Ye)[0],this.ctx.font=In,this.ctx.fillStyle=Aa(Ye.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",zn=new ee(Rt.bounds.left,Rt.bounds.top+ol(Rt.styles.paddingTop,Rt.bounds.width),Rt.bounds.width,Tn(Ye.lineHeight,Ye.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new vu(_t.listValue,zn),Ye.letterSpacing,Tn(Ye.lineHeight,Ye.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ai.label=20;case 20:return[2]}})})},kt.prototype.renderStackContent=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,cn,Ye,Fn,cn,qn,jn,cn,Ri,zi,cn,lr,St,cn,Qt,de,cn,Ee,on,cn;return re(this,function(An){switch(An.label){case 0:if(Ko(_t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(_t.element)];case 1:An.sent(),Rt=0,Be=_t.negativeZIndex,An.label=2;case 2:return Rt<Be.length?(cn=Be[Rt],[4,this.renderStack(cn)]):[3,5];case 3:An.sent(),An.label=4;case 4:return Rt++,[3,2];case 5:return[4,this.renderNodeContent(_t.element)];case 6:An.sent(),Ye=0,Fn=_t.nonInlineLevel,An.label=7;case 7:return Ye<Fn.length?(cn=Fn[Ye],[4,this.renderNode(cn)]):[3,10];case 8:An.sent(),An.label=9;case 9:return Ye++,[3,7];case 10:qn=0,jn=_t.nonPositionedFloats,An.label=11;case 11:return qn<jn.length?(cn=jn[qn],[4,this.renderStack(cn)]):[3,14];case 12:An.sent(),An.label=13;case 13:return qn++,[3,11];case 14:Ri=0,zi=_t.nonPositionedInlineLevel,An.label=15;case 15:return Ri<zi.length?(cn=zi[Ri],[4,this.renderStack(cn)]):[3,18];case 16:An.sent(),An.label=17;case 17:return Ri++,[3,15];case 18:lr=0,St=_t.inlineLevel,An.label=19;case 19:return lr<St.length?(cn=St[lr],[4,this.renderNode(cn)]):[3,22];case 20:An.sent(),An.label=21;case 21:return lr++,[3,19];case 22:Qt=0,de=_t.zeroOrAutoZIndexOrTransformedOrOpacity,An.label=23;case 23:return Qt<de.length?(cn=de[Qt],[4,this.renderStack(cn)]):[3,26];case 24:An.sent(),An.label=25;case 25:return Qt++,[3,23];case 26:Ee=0,on=_t.positiveZIndex,An.label=27;case 27:return Ee<on.length?(cn=on[Ee],[4,this.renderStack(cn)]):[3,30];case 28:An.sent(),An.label=29;case 29:return Ee++,[3,27];case 30:return[2]}})})},kt.prototype.mask=function(_t){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(_t.slice(0).reverse()),this.ctx.closePath()},kt.prototype.path=function(_t){this.ctx.beginPath(),this.formatPath(_t),this.ctx.closePath()},kt.prototype.formatPath=function(_t){var Rt=this;_t.forEach(function(Be,Ye){var Fn=Nl(Be)?Be.start:Be;Ye===0?Rt.ctx.moveTo(Fn.x,Fn.y):Rt.ctx.lineTo(Fn.x,Fn.y),Nl(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(_t,Rt,Be,Ye){this.path(_t),this.ctx.fillStyle=Rt,this.ctx.translate(Be,Ye),this.ctx.fill(),this.ctx.translate(-Be,-Ye)},kt.prototype.resizeImage=function(_t,Rt,Be){var Ye;if(_t.width===Rt&&_t.height===Be)return _t;var Fn=(Ye=this.canvas.ownerDocument)!==null&&Ye!==void 0?Ye:document,qn=Fn.createElement("canvas");qn.width=Math.max(1,Rt),qn.height=Math.max(1,Be);var jn=qn.getContext("2d");return jn.drawImage(_t,0,0,_t.width,_t.height,0,0,Rt,Be),qn},kt.prototype.renderBackgroundImage=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,Ye,Fn,qn,jn;return re(this,function(Ri){switch(Ri.label){case 0:Rt=_t.styles.backgroundImage.length-1,Be=function(zi){var lr,St,Qt,Gr,Xr,as,Ui,Kr,Yi,de,Gr,Xr,as,Ui,Kr,Ee,on,cn,An,xn,In,zn,Ai,$i,Yi,Ni,Gr,Ir,Hi,Ui,Kr,lo,Xr,as,ts,ci,os,Bl,Pl,il,Ga,Ha;return re(this,function(dl){switch(dl.label){case 0:if(zi.type!==0)return[3,5];lr=void 0,St=zi.url,dl.label=1;case 1:return dl.trys.push([1,3,,4]),[4,Ye.context.cache.match(St)];case 2:return lr=dl.sent(),[3,4];case 3:return dl.sent(),Ye.context.logger.error("Error loading background-image "+St),[3,4];case 4:return lr&&(Qt=VA(_t,Rt,[lr.width,lr.height,lr.width/lr.height]),Gr=Qt[0],Xr=Qt[1],as=Qt[2],Ui=Qt[3],Kr=Qt[4],Yi=Ye.ctx.createPattern(Ye.resizeImage(lr,Ui,Kr),"repeat"),Ye.renderRepeat(Gr,Yi,Xr,as)),[3,6];case 5:wd(zi)?(de=VA(_t,Rt,[null,null,null]),Gr=de[0],Xr=de[1],as=de[2],Ui=de[3],Kr=de[4],Ee=nc(zi.angle,Ui,Kr),on=Ee[0],cn=Ee[1],An=Ee[2],xn=Ee[3],In=Ee[4],zn=document.createElement("canvas"),zn.width=Ui,zn.height=Kr,Ai=zn.getContext("2d"),$i=Ai.createLinearGradient(cn,xn,An,In),Wi(zi.stops,on).forEach(function(Ma){return $i.addColorStop(Ma.stop,Aa(Ma.color))}),Ai.fillStyle=$i,Ai.fillRect(0,0,Ui,Kr),Ui>0&&Kr>0&&(Yi=Ye.ctx.createPattern(zn,"repeat"),Ye.renderRepeat(Gr,Yi,Xr,as))):Ea(zi)&&(Ni=VA(_t,Rt,[null,null,null]),Gr=Ni[0],Ir=Ni[1],Hi=Ni[2],Ui=Ni[3],Kr=Ni[4],lo=zi.position.length===0?[yd]:zi.position,Xr=ol(lo[0],Ui),as=ol(lo[lo.length-1],Kr),ts=Ch(zi,Xr,as,Ui,Kr),ci=ts[0],os=ts[1],ci>0&&os>0&&(Bl=Ye.ctx.createRadialGradient(Ir+Xr,Hi+as,0,Ir+Xr,Hi+as,ci),Wi(zi.stops,ci*2).forEach(function(Ma){return Bl.addColorStop(Ma.stop,Aa(Ma.color))}),Ye.path(Gr),Ye.ctx.fillStyle=Bl,ci!==os?(Pl=_t.bounds.left+.5*_t.bounds.width,il=_t.bounds.top+.5*_t.bounds.height,Ga=os/ci,Ha=1/Ga,Ye.ctx.save(),Ye.ctx.translate(Pl,il),Ye.ctx.transform(1,0,0,Ga,0,0),Ye.ctx.translate(-Pl,-il),Ye.ctx.fillRect(Ir,Ha*(Hi-il)+il,Ui,Kr*Ha),Ye.ctx.restore()):Ye.ctx.fill())),dl.label=6;case 6:return Rt--,[2]}})},Ye=this,Fn=0,qn=_t.styles.backgroundImage.slice(0).reverse(),Ri.label=1;case 1:return Fn<qn.length?(jn=qn[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(_t,Rt,Be){return ce(this,void 0,void 0,function(){return re(this,function(Ye){return this.path(GA(Be,Rt)),this.ctx.fillStyle=Aa(_t),this.ctx.fill(),[2]})})},kt.prototype.renderDoubleBorder=function(_t,Rt,Be,Ye){return ce(this,void 0,void 0,function(){var Fn,qn;return re(this,function(jn){switch(jn.label){case 0:return Rt<3?[4,this.renderSolidBorder(_t,Be,Ye)]:[3,2];case 1:return jn.sent(),[2];case 2:return Fn=NA(Ye,Be),this.path(Fn),this.ctx.fillStyle=Aa(_t),this.ctx.fill(),qn=Kf(Ye,Be),this.path(qn),this.ctx.fill(),[2]}})})},kt.prototype.renderNodeBackgroundAndBorders=function(_t){return ce(this,void 0,void 0,function(){var Rt,Be,Ye,Fn,qn,jn,Ri,zi,lr=this;return re(this,function(St){switch(St.label){case 0:return this.applyEffects(_t.getEffects(2)),Rt=_t.container.styles,Be=!za(Rt.backgroundColor)||Rt.backgroundImage.length,Ye=[{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),_t.curves),Be||Rt.boxShadow.length?(this.ctx.save(),this.path(Fn),this.ctx.clip(),za(Rt.backgroundColor)||(this.ctx.fillStyle=Aa(Rt.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(_t.container)]):[3,2];case 1:St.sent(),this.ctx.restore(),Rt.boxShadow.slice(0).reverse().forEach(function(Qt){lr.ctx.save();var de=wu(_t.curves),Ee=Qt.inset?0:Tu,on=zf(de,-Ee+(Qt.inset?1:-1)*Qt.spread.number,(Qt.inset?1:-1)*Qt.spread.number,Qt.spread.number*(Qt.inset?-2:2),Qt.spread.number*(Qt.inset?-2:2));Qt.inset?(lr.path(de),lr.ctx.clip(),lr.mask(on)):(lr.mask(de),lr.ctx.clip(),lr.path(on)),lr.ctx.shadowOffsetX=Qt.offsetX.number+Ee,lr.ctx.shadowOffsetY=Qt.offsetY.number,lr.ctx.shadowColor=Aa(Qt.color),lr.ctx.shadowBlur=Qt.blur.number,lr.ctx.fillStyle=Qt.inset?Aa(Qt.color):"rgba(0,0,0,1)",lr.ctx.fill(),lr.ctx.restore()}),St.label=2;case 2:qn=0,jn=0,Ri=Ye,St.label=3;case 3:return jn<Ri.length?(zi=Ri[jn],zi.style!==0&&!za(zi.color)&&zi.width>0?zi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(zi.color,zi.width,qn,_t.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,qn,_t.curves,3)];case 6:return St.sent(),[3,11];case 7:return zi.style!==4?[3,9]:[4,this.renderDoubleBorder(zi.color,zi.width,qn,_t.curves)];case 8:return St.sent(),[3,11];case 9:return[4,this.renderSolidBorder(zi.color,qn,_t.curves)];case 10:St.sent(),St.label=11;case 11:qn++,St.label=12;case 12:return jn++,[3,3];case 13:return[2]}})})},kt.prototype.renderDashedDottedBorder=function(_t,Rt,Be,Ye,Fn){return ce(this,void 0,void 0,function(){var qn,jn,Ri,zi,lr,St,Qt,de,Ee,on,cn,An,xn,In,zn,Ai,zn,Ai;return re(this,function($i){return this.ctx.save(),qn=WA(Ye,Be),jn=GA(Ye,Be),Fn===2&&(this.path(jn),this.ctx.clip()),Nl(jn[0])?(Ri=jn[0].start.x,zi=jn[0].start.y):(Ri=jn[0].x,zi=jn[0].y),Nl(jn[1])?(lr=jn[1].end.x,St=jn[1].end.y):(lr=jn[1].x,St=jn[1].y),Be===0||Be===2?Qt=Math.abs(Ri-lr):Qt=Math.abs(zi-St),this.ctx.beginPath(),Fn===3?this.formatPath(qn):this.formatPath(jn.slice(0,2)),de=Rt<3?Rt*3:Rt*2,Ee=Rt<3?Rt*2:Rt,Fn===3&&(de=Rt,Ee=Rt),on=!0,Qt<=de*2?on=!1:Qt<=de*2+Ee?(cn=Qt/(2*de+Ee),de*=cn,Ee*=cn):(An=Math.floor((Qt+Ee)/(de+Ee)),xn=(Qt-An*de)/(An-1),In=(Qt-(An+1)*de)/An,Ee=In<=0||Math.abs(Ee-xn)<Math.abs(Ee-In)?xn:In),on&&(Fn===3?this.ctx.setLineDash([0,de+Ee]):this.ctx.setLineDash([de,Ee])),Fn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Rt):this.ctx.lineWidth=Rt*2+1.1,this.ctx.strokeStyle=Aa(_t),this.ctx.stroke(),this.ctx.setLineDash([]),Fn===2&&(Nl(jn[0])&&(zn=jn[3],Ai=jn[0],this.ctx.beginPath(),this.formatPath([new Eo(zn.end.x,zn.end.y),new Eo(Ai.start.x,Ai.start.y)]),this.ctx.stroke()),Nl(jn[1])&&(zn=jn[1],Ai=jn[2],this.ctx.beginPath(),this.formatPath([new Eo(zn.end.x,zn.end.y),new Eo(Ai.start.x,Ai.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},kt.prototype.render=function(_t){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=Aa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Rt=wf(_t),[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 Th&&Dt.type!==zc&&Dt.type!==bd},xf=function(Dt,kt){switch(Dt){case 0:return wu(kt);case 2:return hu(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(_t,Rt){var Be=Dt.call(this,_t,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(_t){return ce(this,void 0,void 0,function(){var Rt,Be;return re(this,function(Ye){switch(Ye.label){case 0:return Rt=Bd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,_t),[4,IA(Rt)];case 1:return Be=Ye.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Aa(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,_t){var Rt=new Image;Rt.onload=function(){kt(Rt)},Rt.onerror=_t,Rt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Dt))})},kA=function(){function Dt(kt){var _t=kt.id,Rt=kt.enabled;this.id=_t,this.enabled=Rt,this.start=Date.now()}return Dt.prototype.debug=function(){for(var kt=[],_t=0;_t<arguments.length;_t++)kt[_t]=arguments[_t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,ke([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=[],_t=0;_t<arguments.length;_t++)kt[_t]=arguments[_t];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,ke([this.id,this.getTime()+"ms"],kt))},Dt.prototype.warn=function(){for(var kt=[],_t=0;_t<arguments.length;_t++)kt[_t]=arguments[_t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,ke([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Dt.prototype.error=function(){for(var kt=[],_t=0;_t<arguments.length;_t++)kt[_t]=arguments[_t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,ke([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Dt.instances={},Dt}(),Fc=function(){function Dt(kt,_t){var Rt;this.windowBounds=_t,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 ea(this,kt)}return Dt.instanceCount=1,Dt}(),Vf=function(Dt,kt){return kt===void 0&&(kt={}),Cg(Dt,kt)};typeof window!="undefined"&&To.setContext(window);var Cg=function(Dt,kt){return ce(void 0,void 0,void 0,function(){var _t,Rt,Be,Ye,Fn,qn,jn,Ri,zi,lr,St,Qt,de,Ee,on,cn,An,xn,In,zn,$i,Ai,$i,Yi,Ni,Gr,Ir,Hi,Ui,Kr,lo,Xr,as,ts,ci,os,Bl,Pl,il,Ga;return re(this,function(Ha){switch(Ha.label){case 0:if(!Dt||typeof Dt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(_t=Dt.ownerDocument,!_t)throw new Error("Element is not attached to a Document");if(Rt=_t.defaultView,!Rt)throw new Error("Document is not attached to a Window");return Be={allowTaint:(Yi=kt.allowTaint)!==null&&Yi!==void 0?Yi:!1,imageTimeout:(Ni=kt.imageTimeout)!==null&&Ni!==void 0?Ni:15e3,proxy:kt.proxy,useCORS:(Gr=kt.useCORS)!==null&&Gr!==void 0?Gr:!1},Ye=Lt({logging:(Ir=kt.logging)!==null&&Ir!==void 0?Ir:!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:(Kr=kt.scrollX)!==null&&Kr!==void 0?Kr:Rt.pageXOffset,scrollY:(lo=kt.scrollY)!==null&&lo!==void 0?lo:Rt.pageYOffset},qn=new ee(Fn.scrollX,Fn.scrollY,Fn.windowWidth,Fn.windowHeight),jn=new Fc(Ye,qn),Ri=(Xr=kt.foreignObjectRendering)!==null&&Xr!==void 0?Xr:!1,zi={allowTaint:(as=kt.allowTaint)!==null&&as!==void 0?as:!1,onclone:kt.onclone,ignoreElements:kt.ignoreElements,inlineImages:Ri,copyStyles:Ri},jn.logger.debug("Starting document clone with size "+qn.width+"x"+qn.height+" scrolled to "+-qn.left+","+-qn.top),lr=new Bt(jn,Dt,zi),St=lr.clonedReferenceElement,St?[4,lr.toIFrame(_t,qn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Qt=Ha.sent(),de=ms(St)||Pa(St)?Mt(St.ownerDocument):Vt(jn,St),Ee=de.width,on=de.height,cn=de.left,An=de.top,xn=Vg(jn,St,kt.backgroundColor),In={canvas:kt.canvas,backgroundColor:xn,scale:(ci=(ts=kt.scale)!==null&&ts!==void 0?ts:Rt.devicePixelRatio)!==null&&ci!==void 0?ci:1,x:((os=kt.x)!==null&&os!==void 0?os:0)+cn,y:((Bl=kt.y)!==null&&Bl!==void 0?Bl:0)+An,width:(Pl=kt.width)!==null&&Pl!==void 0?Pl:Math.ceil(Ee),height:(il=kt.height)!==null&&il!==void 0?il:Math.ceil(on)},Ri?(jn.logger.debug("Document cloned, using foreign object rendering"),$i=new Wg(jn,In),[4,$i.render(St)]):[3,3];case 2:return zn=Ha.sent(),[3,5];case 3:return jn.logger.debug("Document cloned, element located at "+cn+","+An+" with size "+Ee+"x"+on+" using computed rendering"),jn.logger.debug("Starting DOM parsing"),Ai=FA(jn,St),xn===Ai.styles.backgroundColor&&(Ai.styles.backgroundColor=Sh.TRANSPARENT),jn.logger.debug("Starting renderer for element at "+In.x+","+In.y+" with size "+In.width+"x"+In.height),$i=new XA(jn,In),[4,$i.render(Ai)];case 4:zn=Ha.sent(),Ha.label=5;case 5:return(!((Ga=kt.removeContainer)!==null&&Ga!==void 0)||Ga)&&(Bt.destroy(Qt)||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,_t){var Rt=kt.ownerDocument,Be=Rt.documentElement?td(Dt,getComputedStyle(Rt.documentElement).backgroundColor):Sh.TRANSPARENT,Ye=Rt.body?td(Dt,getComputedStyle(Rt.body).backgroundColor):Sh.TRANSPARENT,Fn=typeof _t=="string"?td(Dt,_t):_t===null?Sh.TRANSPARENT:4294967295;return kt===Rt.documentElement?za(Be)?za(Ye)?Fn:Ye:Be:Fn};return Vf})},44164:function(hi,Cn,Ft){var Lt=Ft(97671);(function(re,ke){hi.exports=ke(Ft(73207),Ft(64270))})(self,function(ce,re){return function(){var ke={"./src/plugin/hyperlinks.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.string.link.js"),Ct=Pt.n($t),et=Pt("./src/worker.js"),tt=Pt("./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(Gt){for(var se=Gt.getClientRects(),le=0;le<se.length;le++){var Ae=(0,tt.unitConvert)(se[le],this.prop.pageSize.k);Ae.left-=Ut.left,Ae.top-=Ut.top;var Pe=Math.floor(Ae.top/this.prop.pageSize.inner.height)+1,qt=this.opt.margin[0]+Ae.top%this.prop.pageSize.inner.height,ze=this.opt.margin[1]+Ae.left;lt.push({page:Pe,top:qt,left:ze,clientRect:Ae,link:Gt})}},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,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/es.symbol.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.symbol.description.js"),Ct=Pt.n($t),et=Pt("./node_modules/core-js/modules/es.object.to-string.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.array.iterator.js"),dt=Pt.n(ht),xt=Pt("./node_modules/core-js/modules/es.string.iterator.js"),Nt=Pt.n(xt),Ut=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Gt=Pt.n(Ut),se=Pt("jspdf"),le=Pt.n(se);function Ae(Pe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(ze){return typeof ze}:Ae=function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},Ae(Pe)}se.jsPDF.getPageSize=function(Pe,qt,ze){if(Ae(Pe)==="object"){var Wt=Pe;Pe=Wt.orientation,qt=Wt.unit||qt,ze=Wt.format||ze}qt=qt||"mm",ze=ze||"a4",Pe=(""+(Pe||"P")).toLowerCase();var Ge=(""+ze).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(qt){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: "+qt}if(_e.hasOwnProperty(Ge))var We=_e[Ge][1]/Ne,Re=_e[Ge][0]/Ne;else try{var We=ze[1],Re=ze[0]}catch(Ce){throw new Error("Invalid format: "+ze)}if(Pe==="p"||Pe==="portrait"){if(Pe="p",Re>We){var ve=Re;Re=We,We=ve}}else if(Pe==="l"||Pe==="landscape"){if(Pe="l",We>Re){var ve=Re;Re=We,We=ve}}else throw"Invalid orientation: "+Pe;var ne={width:Re,height:We,unit:qt,k:Ne};return ne},te.default=se.jsPDF},"./src/plugin/pagebreaks.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/es.array.concat.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.array.slice.js"),Ct=Pt.n($t),et=Pt("./node_modules/core-js/modules/es.array.join.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.object.keys.js"),dt=Pt.n(ht),xt=Pt("./src/worker.js"),Nt=Pt("./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 le=this.prop.container,Ae=this.prop.pageSize.inner.px.height,Pe=[].concat(this.opt.pagebreak.mode),qt={avoidAll:Pe.indexOf("avoid-all")!==-1,css:Pe.indexOf("css")!==-1,legacy:Pe.indexOf("legacy")!==-1},ze={},Wt=this;["before","after","avoid"].forEach(function(Ne){var We=qt.avoidAll&&Ne==="avoid";ze[Ne]=We?[]:[].concat(Wt.opt.pagebreak[Ne]||[]),ze[Ne].length>0&&(ze[Ne]=Array.prototype.slice.call(le.querySelectorAll(ze[Ne].join(", "))))});var Ge=le.querySelectorAll(".html2pdf__page-break");Ge=Array.prototype.slice.call(Ge);var _e=le.querySelectorAll("*");Array.prototype.forEach.call(_e,function(We){var Re={before:!1,after:qt.legacy&&Ge.indexOf(We)!==-1,avoid:qt.avoidAll};if(qt.css){var ve=window.getComputedStyle(We),ne=["always","page","left","right"],Ce=["avoid","avoid-page"];Re={before:Re.before||ne.indexOf(ve.breakBefore||ve.pageBreakBefore)!==-1,after:Re.after||ne.indexOf(ve.breakAfter||ve.pageBreakAfter)!==-1,avoid:Re.avoid||Ce.indexOf(ve.breakInside||ve.pageBreakInside)!==-1}}Object.keys(Re).forEach(function(fi){Re[fi]=Re[fi]||ze[fi].indexOf(We)!==-1});var bn=We.getBoundingClientRect();if(Re.avoid&&!Re.before){var Ln=Math.floor(bn.top/Ae),Ze=Math.floor(bn.bottom/Ae),Mn=Math.abs(bn.bottom-bn.top)/Ae;Ze!==Ln&&Mn<=1&&(Re.before=!0)}if(Re.before){var Vn=(0,Nt.createElement)("div",{style:{display:"block",height:Ae-bn.top%Ae+"px"}});We.parentNode.insertBefore(Vn,We)}if(Re.after){var Vn=(0,Nt.createElement)("div",{style:{display:"block",height:Ae-bn.bottom%Ae+"px"}});We.parentNode.insertBefore(Vn,We.nextSibling)}})})}},"./src/utils.js":function(jt,te,Pt){"use strict";Pt.r(te),Pt.d(te,{objType:function(){return Pe},createElement:function(){return qt},cloneNode:function(){return ze},unitConvert:function(){return Wt},toPx:function(){return Ge}});var oe=Pt("./node_modules/core-js/modules/es.number.constructor.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.symbol.js"),Ct=Pt.n($t),et=Pt("./node_modules/core-js/modules/es.symbol.description.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.object.to-string.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),dt=Pt.n(ht),xt=Pt("./node_modules/core-js/modules/es.array.iterator.js"),Nt=Pt.n(xt),Ut=Pt("./node_modules/core-js/modules/es.string.iterator.js"),Gt=Pt.n(Ut),se=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=Pt.n(se);function Ae(_e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(We){return typeof We}:Ae=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},Ae(_e)}var Pe=function(Ne){var We=Ae(Ne);return We==="undefined"?"undefined":We==="string"||Ne instanceof String?"string":We==="number"||Ne instanceof Number?"number":We==="function"||Ne instanceof Function?"function":Ne&&Ne.constructor===Array?"array":Ne&&Ne.nodeType===1?"element":We==="object"?"object":"unknown"},qt=function(Ne,We){var Re=document.createElement(Ne);if(We.className&&(Re.className=We.className),We.innerHTML){Re.innerHTML=We.innerHTML;for(var ve=Re.getElementsByTagName("script"),ne=ve.length;ne-- >0;null)ve[ne].parentNode.removeChild(ve[ne])}for(var Ce in We.style)Re.style[Ce]=We.style[Ce];return Re},ze=function _e(Ne,We){for(var Re=Ne.nodeType===3?document.createTextNode(Ne.nodeValue):Ne.cloneNode(!1),ve=Ne.firstChild;ve;ve=ve.nextSibling)(We===!0||ve.nodeType!==1||ve.nodeName!=="SCRIPT")&&Re.appendChild(_e(ve,We));return Ne.nodeType===1&&(Ne.nodeName==="CANVAS"?(Re.width=Ne.width,Re.height=Ne.height,Re.getContext("2d").drawImage(Ne,0,0)):(Ne.nodeName==="TEXTAREA"||Ne.nodeName==="SELECT")&&(Re.value=Ne.value),Re.addEventListener("load",function(){Re.scrollTop=Ne.scrollTop,Re.scrollLeft=Ne.scrollLeft},!0)),Re},Wt=function(Ne,We){if(Pe(Ne)==="number")return Ne*72/96/We;var Re={};for(var ve in Ne)Re[ve]=Ne[ve]*72/96/We;return Re},Ge=function(Ne,We){return Math.floor(Ne*We/72*96)}},"./src/worker.js":function(jt,te,Pt){"use strict";Pt.r(te);var oe=Pt("./node_modules/core-js/modules/es.object.assign.js"),Kt=Pt.n(oe),$t=Pt("./node_modules/core-js/modules/es.array.map.js"),Ct=Pt.n($t),et=Pt("./node_modules/core-js/modules/es.object.keys.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.array.concat.js"),rt=Pt.n(lt),ht=Pt("./node_modules/core-js/modules/es.object.to-string.js"),dt=Pt.n(ht),xt=Pt("./node_modules/core-js/modules/es.regexp.to-string.js"),Nt=Pt.n(xt),Ut=Pt("./node_modules/core-js/modules/es.function.name.js"),Gt=Pt.n(Ut),se=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),le=Pt.n(se),Ae=Pt("jspdf"),Pe=Pt.n(Ae),qt=Pt("html2canvas"),ze=Pt.n(qt),Wt=Pt("./src/utils.js"),Ge=Pt("./node_modules/es6-promise/dist/es6-promise.js"),_e=Pt.n(Ge),Ne=_e().Promise,We=function Re(ve){var ne=Object.assign(Re.convert(Ne.resolve()),JSON.parse(JSON.stringify(Re.template))),Ce=Re.convert(Ne.resolve(),ne);return Ce=Ce.setProgress(1,Re,1,[Re]),Ce=Ce.set(ve),Ce};We.prototype=Object.create(Ne.prototype),We.prototype.constructor=We,We.convert=function(ve,ne){return ve.__proto__=ne||We.prototype,ve},We.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:{}}},We.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.")}})},We.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.")}},We.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)})},We.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,qt(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)})},We.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})},We.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,Ze=Math.floor(Ce.width*this.prop.pageSize.inner.ratio),Mn=Math.ceil(Ln/Ze),Vn=this.prop.pageSize.inner.height,fi=document.createElement("canvas"),Kn=fi.getContext("2d");fi.width=Ce.width,fi.height=Ze,this.prop.pdf=this.prop.pdf||new Ae.jsPDF(bn.jsPDF);for(var Bi=0;Bi<Mn;Bi++){Bi===Mn-1&&Ln%Ze!==0&&(fi.height=Ln%Ze,Vn=fi.height*this.prop.pageSize.inner.width/fi.width);var en=fi.width,Fi=fi.height;Kn.fillStyle="white",Kn.fillRect(0,0,en,Fi),Kn.drawImage(Ce,0,Bi*Ze,en,Fi,0,0,en,Fi),Bi&&this.prop.pdf.addPage();var Oi=fi.toDataURL("image/"+bn.image.type,bn.image.quality);this.prop.pdf.addImage(Oi,bn.image.type,bn.margin[1],bn.margin[0],this.prop.pageSize.inner.width,Vn)}})},We.prototype.output=function(ve,ne,Ce){return Ce=Ce||"pdf",Ce.toLowerCase()==="img"||Ce.toLowerCase()==="image"?this.outputImg(ve,ne):this.outputPdf(ve,ne)},We.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)})},We.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.'}})},We.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)})},We.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 We.template.prop?function(){this.prop[Ce]=ve[Ce]}:function(){this.opt[Ce]=ve[Ce]}}},this);return this.then(function(){return this.thenList(ne)})},We.prototype.get=function(ve,ne){return this.then(function(){var bn=ve in We.template.prop?this.prop[ve]:this.opt[ve];return ne?ne(bn):bn})},We.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)},We.prototype.setPageSize=function(ve){return this.then(function(){ve=ve||Ae.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})},We.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},We.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)},We.prototype.then=function(ve,ne){var Ce=this;return this.thenCore(ve,ne,function(Ln,Ze){return Ce.updateProgress(null,null,1,[Ln]),Ne.prototype.then.call(this,function(Vn){return Ce.updateProgress(null,Ln),Vn}).then(Ln,Ze).then(function(Vn){return Ce.updateProgress(1),Vn})})},We.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",Ze=Ln?bn:We.convert(Object.assign({},bn),Ne.prototype),Mn=Ce.call(Ze,ve,ne);return We.convert(Mn,bn.__proto__)},We.prototype.thenExternal=function(ve,ne){return Ne.prototype.then.call(this,ve,ne)},We.prototype.thenList=function(ve){var ne=this;return ve.forEach(function(bn){ne=ne.thenCore(bn)}),ne},We.prototype.catch=function(Re){Re&&(Re=Re.bind(this));var ve=Ne.prototype.catch.call(this,Re);return We.convert(ve,this)},We.prototype.catchExternal=function(ve){return Ne.prototype.catch.call(this,ve)},We.prototype.error=function(ve){return this.then(function(){throw new Error(ve)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,te.default=We},"./node_modules/core-js/internals/a-function.js":function(jt){jt.exports=function(te){if(typeof te!="function")throw TypeError(String(te)+" is not a function");return te}},"./node_modules/core-js/internals/a-possible-prototype.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt){if(!oe(Kt)&&Kt!==null)throw TypeError("Can't set "+String(Kt)+" as a prototype");return Kt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Kt=Pt("./node_modules/core-js/internals/object-create.js"),$t=Pt("./node_modules/core-js/internals/object-define-property.js"),Ct=oe("unscopables"),et=Array.prototype;et[Ct]==null&&$t.f(et,Ct,{configurable:!0,value:Kt(null)}),jt.exports=function(tt){et[Ct][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt){if(!oe(Kt))throw TypeError(String(Kt)+" is not an object");return Kt}},"./node_modules/core-js/internals/array-for-each.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,Kt=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),$t=Kt("forEach");jt.exports=$t?[].forEach:function(et){return oe(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/to-length.js"),$t=Pt("./node_modules/core-js/internals/to-absolute-index.js"),Ct=function(et){return function(tt,lt,rt){var ht=oe(tt),dt=Kt(ht.length),xt=$t(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/function-bind-context.js"),Kt=Pt("./node_modules/core-js/internals/indexed-object.js"),$t=Pt("./node_modules/core-js/internals/to-object.js"),Ct=Pt("./node_modules/core-js/internals/to-length.js"),et=Pt("./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,Gt=rt==7,se=rt==5||Ut;return function(le,Ae,Pe,qt){for(var ze=$t(le),Wt=Kt(ze),Ge=oe(Ae,Pe,3),_e=Ct(Wt.length),Ne=0,We=qt||et,Re=ht?We(le,_e):dt||Gt?We(le,0):void 0,ve,ne;_e>Ne;Ne++)if((se||Ne in Wt)&&(ve=Wt[Ne],ne=Ge(ve,Ne,ze),rt))if(ht)Re[Ne]=ne;else if(ne)switch(rt){case 3:return!0;case 5:return ve;case 6:return Ne;case 2:tt.call(Re,ve)}else switch(rt){case 4:return!1;case 7:tt.call(Re,ve)}return Ut?-1:xt||Nt?Nt:Re}};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,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),$t=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Ct=Kt("species");jt.exports=function(et){return $t>=51||!oe(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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(Kt,$t){var Ct=[][Kt];return!!Ct&&oe(function(){Ct.call(null,$t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/is-array.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=$t("species");jt.exports=function(et){var tt;return Kt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||Kt(tt.prototype))?tt=void 0:oe(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/array-species-constructor.js");jt.exports=function(Kt,$t){return new(oe(Kt))($t===0?0:$t)}},"./node_modules/core-js/internals/classof-raw.js":function(jt){var te={}.toString;jt.exports=function(Pt){return te.call(Pt).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/classof-raw.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=$t("toStringTag"),et=Kt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ht){}};jt.exports=oe?Kt:function(lt){var rt,ht,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ht=tt(rt=Object(lt),Ct))=="string"?ht:et?Kt(rt):(dt=Kt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":dt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/own-keys.js"),$t=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/object-define-property.js");jt.exports=function(et,tt){for(var lt=Kt(tt),rt=Ct.f,ht=$t.f,dt=0;dt<lt.length;dt++){var xt=lt[dt];oe(et,xt)||rt(et,xt,ht(tt,xt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!oe(function(){function Kt(){}return Kt.prototype.constructor=null,Object.getPrototypeOf(new Kt)!==Kt.prototype})},"./node_modules/core-js/internals/create-html.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=/"/g;jt.exports=function(Ct,et,tt,lt){var rt=Kt(oe(Ct)),ht="<"+et;return tt!==""&&(ht+=" "+tt+'="'+Kt(lt).replace($t,"&quot;")+'"'),ht+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Kt=Pt("./node_modules/core-js/internals/object-create.js"),$t=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),et=Pt("./node_modules/core-js/internals/iterators.js"),tt=function(){return this};jt.exports=function(lt,rt,ht){var dt=rt+" Iterator";return lt.prototype=Kt(oe,{next:$t(1,ht)}),Ct(lt,dt,!1,!0),et[dt]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),$t=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=oe?function(Ct,et,tt){return Kt.f(Ct,et,$t(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(te,Pt){return{enumerable:!(te&1),configurable:!(te&2),writable:!(te&4),value:Pt}}},"./node_modules/core-js/internals/create-property.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-property-key.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),$t=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=function(Ct,et,tt){var lt=oe(et);lt in Ct?Kt.f(Ct,lt,$t(0,tt)):Ct[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/create-iterator-constructor.js"),$t=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),Ct=Pt("./node_modules/core-js/internals/object-set-prototype-of.js"),et=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),tt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),lt=Pt("./node_modules/core-js/internals/redefine.js"),rt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),ht=Pt("./node_modules/core-js/internals/is-pure.js"),dt=Pt("./node_modules/core-js/internals/iterators.js"),xt=Pt("./node_modules/core-js/internals/iterators-core.js"),Nt=xt.IteratorPrototype,Ut=xt.BUGGY_SAFARI_ITERATORS,Gt=rt("iterator"),se="keys",le="values",Ae="entries",Pe=function(){return this};jt.exports=function(qt,ze,Wt,Ge,_e,Ne,We){Kt(Wt,ze,Ge);var Re=function(Kn){if(Kn===_e&&Ln)return Ln;if(!Ut&&Kn in Ce)return Ce[Kn];switch(Kn){case se:return function(){return new Wt(this,Kn)};case le:return function(){return new Wt(this,Kn)};case Ae:return function(){return new Wt(this,Kn)}}return function(){return new Wt(this)}},ve=ze+" Iterator",ne=!1,Ce=qt.prototype,bn=Ce[Gt]||Ce["@@iterator"]||_e&&Ce[_e],Ln=!Ut&&bn||Re(_e),Ze=ze=="Array"&&Ce.entries||bn,Mn,Vn,fi;if(Ze&&(Mn=$t(Ze.call(new qt)),Nt!==Object.prototype&&Mn.next&&(!ht&&$t(Mn)!==Nt&&(Ct?Ct(Mn,Nt):typeof Mn[Gt]!="function"&&tt(Mn,Gt,Pe)),et(Mn,ve,!0,!0),ht&&(dt[ve]=Pe))),_e==le&&bn&&bn.name!==le&&(ne=!0,Ln=function(){return bn.call(this)}),(!ht||We)&&Ce[Gt]!==Ln&&tt(Ce,Gt,Ln),dt[ze]=Ln,_e)if(Vn={values:Re(le),keys:Ne?Ln:Re(se),entries:Re(Ae)},We)for(fi in Vn)(Ut||ne||!(fi in Ce))&&lt(Ce,fi,Vn[fi]);else oe({target:ze,proto:!0,forced:Ut||ne},Vn);return Vn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/path.js"),Kt=Pt("./node_modules/core-js/internals/has.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ct=Pt("./node_modules/core-js/internals/object-define-property.js").f;jt.exports=function(et){var tt=oe.Symbol||(oe.Symbol={});Kt(tt,et)||Ct(tt,et,{value:$t.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/is-object.js"),$t=oe.document,Ct=Kt($t)&&Kt($t.createElement);jt.exports=function(et){return Ct?$t.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,te,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js");jt.exports=oe("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/engine-user-agent.js"),$t=oe.process,Ct=oe.Deno,et=$t&&$t.versions||Ct&&Ct.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):Kt&&(lt=Kt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=Kt.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,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,$t=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=Pt("./node_modules/core-js/internals/redefine.js"),et=Pt("./node_modules/core-js/internals/set-global.js"),tt=Pt("./node_modules/core-js/internals/copy-constructor-properties.js"),lt=Pt("./node_modules/core-js/internals/is-forced.js");jt.exports=function(rt,ht){var dt=rt.target,xt=rt.global,Nt=rt.stat,Ut,Gt,se,le,Ae,Pe;if(xt?Gt=oe:Nt?Gt=oe[dt]||et(dt,{}):Gt=(oe[dt]||{}).prototype,Gt)for(se in ht){if(Ae=ht[se],rt.noTargetGet?(Pe=Kt(Gt,se),le=Pe&&Pe.value):le=Gt[se],Ut=lt(xt?se:dt+(Nt?".":"#")+se,rt.forced),!Ut&&le!==void 0){if(typeof Ae==typeof le)continue;tt(Ae,le)}(rt.sham||le&&le.sham)&&$t(Ae,"sham",!0),Ct(Gt,se,Ae,rt)}}},"./node_modules/core-js/internals/fails.js":function(jt){jt.exports=function(te){try{return!!te()}catch(Pt){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/a-function.js");jt.exports=function(Kt,$t,Ct){if(oe(Kt),$t===void 0)return Kt;switch(Ct){case 0:return function(){return Kt.call($t)};case 1:return function(et){return Kt.call($t,et)};case 2:return function(et,tt){return Kt.call($t,et,tt)};case 3:return function(et,tt,lt){return Kt.call($t,et,tt,lt)}}return function(){return Kt.apply($t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=function($t){return typeof $t=="function"?$t:void 0};jt.exports=function($t,Ct){return arguments.length<2?Kt(oe[$t]):oe[$t]&&oe[$t][Ct]}},"./node_modules/core-js/internals/global.js":function(jt){var te=function(Pt){return Pt&&Pt.Math==Math&&Pt};jt.exports=te(typeof globalThis=="object"&&globalThis)||te(typeof window=="object"&&window)||te(typeof self=="object"&&self)||te(typeof Ft.g=="object"&&Ft.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-object.js"),Kt={}.hasOwnProperty;jt.exports=Object.hasOwn||function(Ct,et){return Kt.call(oe(Ct),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/html.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js");jt.exports=oe("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),$t=Pt("./node_modules/core-js/internals/document-create-element.js");jt.exports=!oe&&!Kt(function(){return Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/classof-raw.js"),$t="".split;jt.exports=oe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ct){return Kt(Ct)=="String"?$t.call(Ct,""):Object(Ct)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/object-set-prototype-of.js");jt.exports=function($t,Ct,et){var tt,lt;return Kt&&typeof(tt=Ct.constructor)=="function"&&tt!==et&&oe(lt=tt.prototype)&&lt!==et.prototype&&Kt($t,lt),$t}},"./node_modules/core-js/internals/inspect-source.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/shared-store.js"),Kt=Function.toString;typeof oe.inspectSource!="function"&&(oe.inspectSource=function($t){return Kt.call($t)}),jt.exports=oe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/native-weak-map.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),$t=Pt("./node_modules/core-js/internals/is-object.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Pt("./node_modules/core-js/internals/has.js"),tt=Pt("./node_modules/core-js/internals/shared-store.js"),lt=Pt("./node_modules/core-js/internals/shared-key.js"),rt=Pt("./node_modules/core-js/internals/hidden-keys.js"),ht="Object already initialized",dt=Kt.WeakMap,xt,Nt,Ut,Gt=function(Wt){return Ut(Wt)?Nt(Wt):xt(Wt,{})},se=function(Wt){return function(Ge){var _e;if(!$t(Ge)||(_e=Nt(Ge)).type!==Wt)throw TypeError("Incompatible receiver, "+Wt+" required");return _e}};if(oe||tt.state){var le=tt.state||(tt.state=new dt),Ae=le.get,Pe=le.has,qt=le.set;xt=function(Wt,Ge){if(Pe.call(le,Wt))throw new TypeError(ht);return Ge.facade=Wt,qt.call(le,Wt,Ge),Ge},Nt=function(Wt){return Ae.call(le,Wt)||{}},Ut=function(Wt){return Pe.call(le,Wt)}}else{var ze=lt("state");rt[ze]=!0,xt=function(Wt,Ge){if(et(Wt,ze))throw new TypeError(ht);return Ge.facade=Wt,Ct(Wt,ze,Ge),Ge},Nt=function(Wt){return et(Wt,ze)?Wt[ze]:{}},Ut=function(Wt){return et(Wt,ze)}}jt.exports={set:xt,get:Nt,has:Ut,enforce:Gt,getterFor:se}},"./node_modules/core-js/internals/is-array.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/classof-raw.js");jt.exports=Array.isArray||function($t){return oe($t)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=/#|\.prototype\./,$t=function(rt,ht){var dt=et[Ct(rt)];return dt==lt?!0:dt==tt?!1:typeof ht=="function"?oe(ht):!!ht},Ct=$t.normalize=function(rt){return String(rt).replace(Kt,".").toLowerCase()},et=$t.data={},tt=$t.NATIVE="N",lt=$t.POLYFILL="P";jt.exports=$t},"./node_modules/core-js/internals/is-object.js":function(jt){jt.exports=function(te){return typeof te=="object"?te!==null:typeof te=="function"}},"./node_modules/core-js/internals/is-pure.js":function(jt){jt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js"),Kt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js");jt.exports=Kt?function($t){return typeof $t=="symbol"}:function($t){var Ct=oe("Symbol");return typeof Ct=="function"&&Object($t)instanceof Ct}},"./node_modules/core-js/internals/iterators-core.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/fails.js"),Kt=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),$t=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=Pt("./node_modules/core-js/internals/has.js"),et=Pt("./node_modules/core-js/internals/well-known-symbol.js"),tt=Pt("./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=Kt(Kt(Nt)),xt!==Object.prototype&&(dt=xt)):rt=!0);var Ut=dt==null||oe(function(){var Gt={};return dt[lt].call(Gt)!==Gt});Ut&&(dt={}),(!tt||Ut)&&!Ct(dt,lt)&&$t(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Kt=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!!Object.getOwnPropertySymbols&&!Kt(function(){var $t=Symbol();return!String($t)||!(Object($t)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/inspect-source.js"),$t=oe.WeakMap;jt.exports=typeof $t=="function"&&/native code/.test(Kt($t))},"./node_modules/core-js/internals/object-assign.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),$t=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),tt=Pt("./node_modules/core-js/internals/to-object.js"),lt=Pt("./node_modules/core-js/internals/indexed-object.js"),rt=Object.assign,ht=Object.defineProperty;jt.exports=!rt||Kt(function(){if(oe&&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(Gt){xt[Gt]=Gt}),rt({},dt)[Nt]!=7||$t(rt({},xt)).join("")!=Ut})?function(xt,Nt){for(var Ut=tt(xt),Gt=arguments.length,se=1,le=Ct.f,Ae=et.f;Gt>se;)for(var Pe=lt(arguments[se++]),qt=le?$t(Pe).concat(le(Pe)):$t(Pe),ze=qt.length,Wt=0,Ge;ze>Wt;)Ge=qt[Wt++],(!oe||Ae.call(Pe,Ge))&&(Ut[Ge]=Pe[Ge]);return Ut}:rt},"./node_modules/core-js/internals/object-create.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/an-object.js"),Kt=Pt("./node_modules/core-js/internals/object-define-properties.js"),$t=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),Ct=Pt("./node_modules/core-js/internals/hidden-keys.js"),et=Pt("./node_modules/core-js/internals/html.js"),tt=Pt("./node_modules/core-js/internals/document-create-element.js"),lt=Pt("./node_modules/core-js/internals/shared-key.js"),rt=">",ht="<",dt="prototype",xt="script",Nt=lt("IE_PROTO"),Ut=function(){},Gt=function(qt){return ht+xt+rt+qt+ht+"/"+xt+rt},se=function(qt){qt.write(Gt("")),qt.close();var ze=qt.parentWindow.Object;return qt=null,ze},le=function(){var qt=tt("iframe"),ze="java"+xt+":",Wt;if(qt.style)return qt.style.display="none",et.appendChild(qt),qt.src=String(ze),Wt=qt.contentWindow.document,Wt.open(),Wt.write(Gt("document.F=Object")),Wt.close(),Wt.F},Ae,Pe=function(){try{Ae=new ActiveXObject("htmlfile")}catch(ze){}Pe=document.domain&&Ae?se(Ae):le()||se(Ae);for(var qt=$t.length;qt--;)delete Pe[dt][$t[qt]];return Pe()};Ct[Nt]=!0,jt.exports=Object.create||function(ze,Wt){var Ge;return ze!==null?(Ut[dt]=oe(ze),Ge=new Ut,Ut[dt]=null,Ge[Nt]=ze):Ge=Pe(),Wt===void 0?Ge:Kt(Ge,Wt)}},"./node_modules/core-js/internals/object-define-properties.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js"),$t=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/object-keys.js");jt.exports=oe?Object.defineProperties:function(tt,lt){$t(tt);for(var rt=Ct(lt),ht=rt.length,dt=0,xt;ht>dt;)Kt.f(tt,xt=rt[dt++],lt[xt]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),$t=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;te.f=oe?et:function(lt,rt,ht){if($t(lt),rt=Ct(rt),$t(ht),Kt)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,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),$t=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/to-indexed-object.js"),et=Pt("./node_modules/core-js/internals/to-property-key.js"),tt=Pt("./node_modules/core-js/internals/has.js"),lt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),rt=Object.getOwnPropertyDescriptor;te.f=oe?rt:function(dt,xt){if(dt=Ct(dt),xt=et(xt),lt)try{return rt(dt,xt)}catch(Nt){}if(tt(dt,xt))return $t(!Kt.f.call(dt,xt),dt[xt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,$t={}.toString,Ct=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return Kt(tt)}catch(lt){return Ct.slice()}};jt.exports.f=function(lt){return Ct&&$t.call(lt)=="[object Window]"?et(lt):Kt(oe(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/object-keys-internal.js"),Kt=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),$t=Kt.concat("length","prototype");te.f=Object.getOwnPropertyNames||function(et){return oe(et,$t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(jt,te){te.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/to-object.js"),$t=Pt("./node_modules/core-js/internals/shared-key.js"),Ct=Pt("./node_modules/core-js/internals/correct-prototype-getter.js"),et=$t("IE_PROTO"),tt=Object.prototype;jt.exports=Ct?Object.getPrototypeOf:function(lt){return lt=Kt(lt),oe(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),Kt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),$t=Pt("./node_modules/core-js/internals/array-includes.js").indexOf,Ct=Pt("./node_modules/core-js/internals/hidden-keys.js");jt.exports=function(et,tt){var lt=Kt(et),rt=0,ht=[],dt;for(dt in lt)!oe(Ct,dt)&&oe(lt,dt)&&ht.push(dt);for(;tt.length>rt;)oe(lt,dt=tt[rt++])&&(~$t(ht,dt)||ht.push(dt));return ht}},"./node_modules/core-js/internals/object-keys.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/object-keys-internal.js"),Kt=Pt("./node_modules/core-js/internals/enum-bug-keys.js");jt.exports=Object.keys||function(Ct){return oe(Ct,Kt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(jt,te){"use strict";var Pt={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,Kt=oe&&!Pt.call({1:2},1);te.f=Kt?function(Ct){var et=oe(this,Ct);return!!et&&et.enumerable}:Pt},"./node_modules/core-js/internals/object-set-prototype-of.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/an-object.js"),Kt=Pt("./node_modules/core-js/internals/a-possible-prototype.js");jt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var $t=!1,Ct={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Ct,[]),$t=Ct instanceof Array}catch(tt){}return function(lt,rt){return oe(lt),Kt(rt),$t?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/classof.js");jt.exports=oe?{}.toString:function(){return"[object "+Kt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(Kt,$t){var Ct,et;if($t==="string"&&typeof(Ct=Kt.toString)=="function"&&!oe(et=Ct.call(Kt))||typeof(Ct=Kt.valueOf)=="function"&&!oe(et=Ct.call(Kt))||$t!=="string"&&typeof(Ct=Kt.toString)=="function"&&!oe(et=Ct.call(Kt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js"),Kt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),$t=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ct=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=oe("Reflect","ownKeys")||function(tt){var lt=Kt.f(Ct(tt)),rt=$t.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js");jt.exports=oe},"./node_modules/core-js/internals/redefine.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),$t=Pt("./node_modules/core-js/internals/has.js"),Ct=Pt("./node_modules/core-js/internals/set-global.js"),et=Pt("./node_modules/core-js/internals/inspect-source.js"),tt=Pt("./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 Gt=Ut?!!Ut.unsafe:!1,se=Ut?!!Ut.enumerable:!1,le=Ut?!!Ut.noTargetGet:!1,Ae;if(typeof Nt=="function"&&(typeof xt=="string"&&!$t(Nt,"name")&&Kt(Nt,"name",xt),Ae=rt(Nt),Ae.source||(Ae.source=ht.join(typeof xt=="string"?xt:""))),dt===oe){se?dt[xt]=Nt:Ct(xt,Nt);return}else Gt?!le&&dt[xt]&&(se=!0):delete dt[xt];se?dt[xt]=Nt:Kt(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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=function(){var Kt=oe(this),$t="";return Kt.global&&($t+="g"),Kt.ignoreCase&&($t+="i"),Kt.multiline&&($t+="m"),Kt.dotAll&&($t+="s"),Kt.unicode&&($t+="u"),Kt.sticky&&($t+="y"),$t}},"./node_modules/core-js/internals/require-object-coercible.js":function(jt){jt.exports=function(te){if(te==null)throw TypeError("Can't call method on "+te);return te}},"./node_modules/core-js/internals/set-global.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js");jt.exports=function(Kt,$t){try{Object.defineProperty(oe,Kt,{value:$t,configurable:!0,writable:!0})}catch(Ct){oe[Kt]=$t}return $t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/object-define-property.js").f,Kt=Pt("./node_modules/core-js/internals/has.js"),$t=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=$t("toStringTag");jt.exports=function(et,tt,lt){et&&!Kt(et=lt?et:et.prototype,Ct)&&oe(et,Ct,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/shared.js"),Kt=Pt("./node_modules/core-js/internals/uid.js"),$t=oe("keys");jt.exports=function(Ct){return $t[Ct]||($t[Ct]=Kt(Ct))}},"./node_modules/core-js/internals/shared-store.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/set-global.js"),$t="__core-js_shared__",Ct=oe[$t]||Kt($t,{});jt.exports=Ct},"./node_modules/core-js/internals/shared.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-pure.js"),Kt=Pt("./node_modules/core-js/internals/shared-store.js");(jt.exports=function($t,Ct){return Kt[$t]||(Kt[$t]=Ct!==void 0?Ct:{})})("versions",[]).push({version:"3.16.0",mode:oe?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(Kt){return oe(function(){var $t=""[Kt]('"');return $t!==$t.toLowerCase()||$t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Ct=function(et){return function(tt,lt){var rt=Kt($t(tt)),ht=oe(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=Pt("./node_modules/core-js/internals/whitespaces.js"),Ct="["+$t+"]",et=RegExp("^"+Ct+Ct+"*"),tt=RegExp(Ct+Ct+"*$"),lt=function(rt){return function(ht){var dt=Kt(oe(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,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Math.max,$t=Math.min;jt.exports=function(Ct,et){var tt=oe(Ct);return tt<0?Kt(tt+et,0):$t(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function($t){return oe(Kt($t))}},"./node_modules/core-js/internals/to-integer.js":function(jt){var te=Math.ceil,Pt=Math.floor;jt.exports=function(oe){return isNaN(oe=+oe)?0:(oe>0?Pt:te)(oe)}},"./node_modules/core-js/internals/to-length.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),Kt=Math.min;jt.exports=function($t){return $t>0?Kt(oe($t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Kt){return Object(oe(Kt))}},"./node_modules/core-js/internals/to-primitive.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),Kt=Pt("./node_modules/core-js/internals/is-symbol.js"),$t=Pt("./node_modules/core-js/internals/ordinary-to-primitive.js"),Ct=Pt("./node_modules/core-js/internals/well-known-symbol.js"),et=Ct("toPrimitive");jt.exports=function(tt,lt){if(!oe(tt)||Kt(tt))return tt;var rt=tt[et],ht;if(rt!==void 0){if(lt===void 0&&(lt="default"),ht=rt.call(tt,lt),!oe(ht)||Kt(ht))return ht;throw TypeError("Can't convert object to primitive value")}return lt===void 0&&(lt="number"),$t(tt,lt)}},"./node_modules/core-js/internals/to-property-key.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-primitive.js"),Kt=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function($t){var Ct=oe($t,"string");return Kt(Ct)?Ct:String(Ct)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Kt=oe("toStringTag"),$t={};$t[Kt]="z",jt.exports=String($t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Kt){if(oe(Kt))throw TypeError("Cannot convert a Symbol value to a string");return String(Kt)}},"./node_modules/core-js/internals/uid.js":function(jt){var te=0,Pt=Math.random();jt.exports=function(oe){return"Symbol("+String(oe===void 0?"":oe)+")_"+(++te+Pt).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/native-symbol.js");jt.exports=oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js");te.f=oe},"./node_modules/core-js/internals/well-known-symbol.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/shared.js"),$t=Pt("./node_modules/core-js/internals/has.js"),Ct=Pt("./node_modules/core-js/internals/uid.js"),et=Pt("./node_modules/core-js/internals/native-symbol.js"),tt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js"),lt=Kt("wks"),rt=oe.Symbol,ht=tt?rt:rt&&rt.withoutSetter||Ct;jt.exports=function(dt){return(!$t(lt,dt)||!(et||typeof lt[dt]=="string"))&&(et&&$t(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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/fails.js"),$t=Pt("./node_modules/core-js/internals/is-array.js"),Ct=Pt("./node_modules/core-js/internals/is-object.js"),et=Pt("./node_modules/core-js/internals/to-object.js"),tt=Pt("./node_modules/core-js/internals/to-length.js"),lt=Pt("./node_modules/core-js/internals/create-property.js"),rt=Pt("./node_modules/core-js/internals/array-species-create.js"),ht=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),xt=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Nt=dt("isConcatSpreadable"),Ut=9007199254740991,Gt="Maximum allowed index exceeded",se=xt>=51||!Kt(function(){var qt=[];return qt[Nt]=!1,qt.concat()[0]!==qt}),le=ht("concat"),Ae=function(qt){if(!Ct(qt))return!1;var ze=qt[Nt];return ze!==void 0?!!ze:$t(qt)},Pe=!se||!le;oe({target:"Array",proto:!0,forced:Pe},{concat:function(ze){var Wt=et(this),Ge=rt(Wt,0),_e=0,Ne,We,Re,ve,ne;for(Ne=-1,Re=arguments.length;Ne<Re;Ne++)if(ne=Ne===-1?Wt:arguments[Ne],Ae(ne)){if(ve=tt(ne.length),_e+ve>Ut)throw TypeError(Gt);for(We=0;We<ve;We++,_e++)We in ne&&lt(Ge,_e,ne[We])}else{if(_e>=Ut)throw TypeError(Gt);lt(Ge,_e++,ne)}return Ge.length=_e,Ge}})},"./node_modules/core-js/modules/es.array.iterator.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Kt=Pt("./node_modules/core-js/internals/add-to-unscopables.js"),$t=Pt("./node_modules/core-js/internals/iterators.js"),Ct=Pt("./node_modules/core-js/internals/internal-state.js"),et=Pt("./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:oe(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"),$t.Arguments=$t.Array,Kt("keys"),Kt("values"),Kt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/indexed-object.js"),$t=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Ct=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,tt=Kt!=Object,lt=Ct("join",",");oe({target:"Array",proto:!0,forced:tt||!lt},{join:function(ht){return et.call($t(this),ht===void 0?",":ht)}})},"./node_modules/core-js/modules/es.array.map.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/array-iteration.js").map,$t=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),Ct=$t("map");oe({target:"Array",proto:!0,forced:!Ct},{map:function(tt){return Kt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/is-object.js"),$t=Pt("./node_modules/core-js/internals/is-array.js"),Ct=Pt("./node_modules/core-js/internals/to-absolute-index.js"),et=Pt("./node_modules/core-js/internals/to-length.js"),tt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),lt=Pt("./node_modules/core-js/internals/create-property.js"),rt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),ht=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=ht("slice"),xt=rt("species"),Nt=[].slice,Ut=Math.max;oe({target:"Array",proto:!0,forced:!dt},{slice:function(se,le){var Ae=tt(this),Pe=et(Ae.length),qt=Ct(se,Pe),ze=Ct(le===void 0?Pe:le,Pe),Wt,Ge,_e;if($t(Ae)&&(Wt=Ae.constructor,typeof Wt=="function"&&(Wt===Array||$t(Wt.prototype))?Wt=void 0:Kt(Wt)&&(Wt=Wt[xt],Wt===null&&(Wt=void 0)),Wt===Array||Wt===void 0))return Nt.call(Ae,qt,ze);for(Ge=new(Wt===void 0?Array:Wt)(Ut(ze-qt,0)),_e=0;qt<ze;qt++,_e++)qt in Ae&&lt(Ge,_e,Ae[qt]);return Ge.length=_e,Ge}})},"./node_modules/core-js/modules/es.function.name.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/object-define-property.js").f,$t=Function.prototype,Ct=$t.toString,et=/^\s*function ([^ (]*)/,tt="name";oe&&!(tt in $t)&&Kt($t,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,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/descriptors.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),$t=Pt("./node_modules/core-js/internals/is-forced.js"),Ct=Pt("./node_modules/core-js/internals/redefine.js"),et=Pt("./node_modules/core-js/internals/has.js"),tt=Pt("./node_modules/core-js/internals/classof-raw.js"),lt=Pt("./node_modules/core-js/internals/inherit-if-required.js"),rt=Pt("./node_modules/core-js/internals/is-symbol.js"),ht=Pt("./node_modules/core-js/internals/to-primitive.js"),dt=Pt("./node_modules/core-js/internals/fails.js"),xt=Pt("./node_modules/core-js/internals/object-create.js"),Nt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Ut=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Gt=Pt("./node_modules/core-js/internals/object-define-property.js").f,se=Pt("./node_modules/core-js/internals/string-trim.js").trim,le="Number",Ae=Kt[le],Pe=Ae.prototype,qt=tt(xt(Pe))==le,ze=function(We){if(rt(We))throw TypeError("Cannot convert a Symbol value to a number");var Re=ht(We,"number"),ve,ne,Ce,bn,Ln,Ze,Mn,Vn;if(typeof Re=="string"&&Re.length>2){if(Re=se(Re),ve=Re.charCodeAt(0),ve===43||ve===45){if(ne=Re.charCodeAt(2),ne===88||ne===120)return NaN}else if(ve===48){switch(Re.charCodeAt(1)){case 66:case 98:Ce=2,bn=49;break;case 79:case 111:Ce=8,bn=55;break;default:return+Re}for(Ln=Re.slice(2),Ze=Ln.length,Mn=0;Mn<Ze;Mn++)if(Vn=Ln.charCodeAt(Mn),Vn<48||Vn>bn)return NaN;return parseInt(Ln,Ce)}}return+Re};if($t(le,!Ae(" 0o1")||!Ae("0b1")||Ae("+0x1"))){for(var Wt=function(Re){var ve=arguments.length<1?0:Re,ne=this;return ne instanceof Wt&&(qt?dt(function(){Pe.valueOf.call(ne)}):tt(ne)!=le)?lt(new Ae(ze(ve)),ne,Wt):ze(ve)},Ge=oe?Nt(Ae):"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;Ge.length>_e;_e++)et(Ae,Ne=Ge[_e])&&!et(Wt,Ne)&&Gt(Wt,Ne,Ut(Ae,Ne));Wt.prototype=Pe,Pe.constructor=Wt,Ct(Kt,le,Wt)}},"./node_modules/core-js/modules/es.object.assign.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/object-assign.js");oe({target:"Object",stat:!0,forced:Object.assign!==Kt},{assign:Kt})},"./node_modules/core-js/modules/es.object.keys.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/to-object.js"),$t=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Ct(function(){$t(1)});oe({target:"Object",stat:!0,forced:et},{keys:function(lt){return $t(Kt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),Kt=Pt("./node_modules/core-js/internals/redefine.js"),$t=Pt("./node_modules/core-js/internals/object-to-string.js");oe||Kt(Object.prototype,"toString",$t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/redefine.js"),Kt=Pt("./node_modules/core-js/internals/an-object.js"),$t=Pt("./node_modules/core-js/internals/to-string.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Pt("./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)&&oe(RegExp.prototype,tt,function(){var Nt=Kt(this),Ut=$t(Nt.source),Gt=Nt.flags,se=$t(Gt===void 0&&Nt instanceof RegExp&&!("flags"in lt)?et.call(Nt):Gt);return"/"+Ut+"/"+se},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/string-multibyte.js").charAt,Kt=Pt("./node_modules/core-js/internals/to-string.js"),$t=Pt("./node_modules/core-js/internals/internal-state.js"),Ct=Pt("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=$t.set,lt=$t.getterFor(et);Ct(String,"String",function(rt){tt(this,{type:et,string:Kt(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=oe(dt,xt),ht.index+=Nt.length,{value:Nt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/create-html.js"),$t=Pt("./node_modules/core-js/internals/string-html-forced.js");oe({target:"String",proto:!0,forced:$t("link")},{link:function(et){return Kt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/descriptors.js"),$t=Pt("./node_modules/core-js/internals/global.js"),Ct=Pt("./node_modules/core-js/internals/has.js"),et=Pt("./node_modules/core-js/internals/is-object.js"),tt=Pt("./node_modules/core-js/internals/object-define-property.js").f,lt=Pt("./node_modules/core-js/internals/copy-constructor-properties.js"),rt=$t.Symbol;if(Kt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ht={},dt=function(){var le=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ae=this instanceof dt?new rt(le):le===void 0?rt():rt(le);return le===""&&(ht[Ae]=!0),Ae};lt(dt,rt);var xt=dt.prototype=rt.prototype;xt.constructor=dt;var Nt=xt.toString,Ut=String(rt("test"))=="Symbol(test)",Gt=/^Symbol\((.*)\)[^)]+$/;tt(xt,"description",{configurable:!0,get:function(){var le=et(this)?this.valueOf():this,Ae=Nt.call(le);if(Ct(ht,le))return"";var Pe=Ut?Ae.slice(7,-1):Ae.replace(Gt,"$1");return Pe===""?void 0:Pe}}),oe({global:!0,forced:!0},{Symbol:dt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/define-well-known-symbol.js");oe("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(jt,te,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),Kt=Pt("./node_modules/core-js/internals/global.js"),$t=Pt("./node_modules/core-js/internals/get-built-in.js"),Ct=Pt("./node_modules/core-js/internals/is-pure.js"),et=Pt("./node_modules/core-js/internals/descriptors.js"),tt=Pt("./node_modules/core-js/internals/native-symbol.js"),lt=Pt("./node_modules/core-js/internals/fails.js"),rt=Pt("./node_modules/core-js/internals/has.js"),ht=Pt("./node_modules/core-js/internals/is-array.js"),dt=Pt("./node_modules/core-js/internals/is-object.js"),xt=Pt("./node_modules/core-js/internals/is-symbol.js"),Nt=Pt("./node_modules/core-js/internals/an-object.js"),Ut=Pt("./node_modules/core-js/internals/to-object.js"),Gt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),se=Pt("./node_modules/core-js/internals/to-property-key.js"),le=Pt("./node_modules/core-js/internals/to-string.js"),Ae=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Pe=Pt("./node_modules/core-js/internals/object-create.js"),qt=Pt("./node_modules/core-js/internals/object-keys.js"),ze=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),Wt=Pt("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ge=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),_e=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ne=Pt("./node_modules/core-js/internals/object-define-property.js"),We=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),Re=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),ve=Pt("./node_modules/core-js/internals/redefine.js"),ne=Pt("./node_modules/core-js/internals/shared.js"),Ce=Pt("./node_modules/core-js/internals/shared-key.js"),bn=Pt("./node_modules/core-js/internals/hidden-keys.js"),Ln=Pt("./node_modules/core-js/internals/uid.js"),Ze=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Mn=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Vn=Pt("./node_modules/core-js/internals/define-well-known-symbol.js"),fi=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),Kn=Pt("./node_modules/core-js/internals/internal-state.js"),Bi=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,en=Ce("hidden"),Fi="Symbol",Oi="prototype",Ot=Ze("toPrimitive"),Tt=Kn.set,vt=Kn.getterFor(Fi),ft=Object[Oi],gt=Kt.Symbol,At=$t("JSON","stringify"),ue=_e.f,xe=Ne.f,ae=Wt.f,ye=We.f,Te=ne("symbols"),De=ne("op-symbols"),Me=ne("string-to-symbol-registry"),sn=ne("symbol-to-string-registry"),Gn=ne("wks"),an=Kt.QObject,un=!an||!an[Oi]||!an[Oi].findChild,Bn=et&&lt(function(){return Pe(xe({},"a",{get:function(){return xe(this,"a",{value:7}).a}})).a!=7})?function(Jr,Lr,Zr){var oo=ue(ft,Lr);oo&&delete ft[Lr],xe(Jr,Lr,Zr),oo&&Jr!==ft&&xe(ft,Lr,oo)}:xe,ai=function(Jr,Lr){var Zr=Te[Jr]=Pe(gt[Oi]);return Tt(Zr,{type:Fi,tag:Jr,description:Lr}),et||(Zr.description=Lr),Zr},On=function(Lr,Zr,oo){Lr===ft&&On(De,Zr,oo),Nt(Lr);var Uo=se(Zr);return Nt(oo),rt(Te,Uo)?(oo.enumerable?(rt(Lr,en)&&Lr[en][Uo]&&(Lr[en][Uo]=!1),oo=Pe(oo,{enumerable:Ae(0,!1)})):(rt(Lr,en)||xe(Lr,en,Ae(1,{})),Lr[en][Uo]=!0),Bn(Lr,Uo,oo)):xe(Lr,Uo,oo)},ji=function(Lr,Zr){Nt(Lr);var oo=Gt(Zr),Uo=qt(oo).concat(so(oo));return Bi(Uo,function(fs){(!et||Ji.call(oo,fs))&&On(Lr,fs,oo[fs])}),Lr},er=function(Lr,Zr){return Zr===void 0?Pe(Lr):ji(Pe(Lr),Zr)},Ji=function(Lr){var Zr=se(Lr),oo=ye.call(this,Zr);return this===ft&&rt(Te,Zr)&&!rt(De,Zr)?!1:oo||!rt(this,Zr)||!rt(Te,Zr)||rt(this,en)&&this[en][Zr]?oo:!0},Fr=function(Lr,Zr){var oo=Gt(Lr),Uo=se(Zr);if(!(oo===ft&&rt(Te,Uo)&&!rt(De,Uo))){var fs=ue(oo,Uo);return fs&&rt(Te,Uo)&&!(rt(oo,en)&&oo[en][Uo])&&(fs.enumerable=!0),fs}},vr=function(Lr){var Zr=ae(Gt(Lr)),oo=[];return Bi(Zr,function(Uo){!rt(Te,Uo)&&!rt(bn,Uo)&&oo.push(Uo)}),oo},so=function(Lr){var Zr=Lr===ft,oo=ae(Zr?De:Gt(Lr)),Uo=[];return Bi(oo,function(fs){rt(Te,fs)&&(!Zr||rt(ft,fs))&&Uo.push(Te[fs])}),Uo};if(tt||(gt=function(){if(this instanceof gt)throw TypeError("Symbol is not a constructor");var Lr=!arguments.length||arguments[0]===void 0?void 0:le(arguments[0]),Zr=Ln(Lr),oo=function(Uo){this===ft&&oo.call(De,Uo),rt(this,en)&&rt(this[en],Zr)&&(this[en][Zr]=!1),Bn(this,Zr,Ae(1,Uo))};return et&&un&&Bn(ft,Zr,{configurable:!0,set:oo}),ai(Zr,Lr)},ve(gt[Oi],"toString",function(){return vt(this).tag}),ve(gt,"withoutSetter",function(Jr){return ai(Ln(Jr),Jr)}),We.f=Ji,Ne.f=On,_e.f=Fr,ze.f=Wt.f=vr,Ge.f=so,Mn.f=function(Jr){return ai(Ze(Jr),Jr)},et&&(xe(gt[Oi],"description",{configurable:!0,get:function(){return vt(this).description}}),Ct||ve(ft,"propertyIsEnumerable",Ji,{unsafe:!0}))),oe({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:gt}),Bi(qt(Gn),function(Jr){Vn(Jr)}),oe({target:Fi,stat:!0,forced:!tt},{for:function(Jr){var Lr=le(Jr);if(rt(Me,Lr))return Me[Lr];var Zr=gt(Lr);return Me[Lr]=Zr,sn[Zr]=Lr,Zr},keyFor:function(Lr){if(!xt(Lr))throw TypeError(Lr+" is not a symbol");if(rt(sn,Lr))return sn[Lr]},useSetter:function(){un=!0},useSimple:function(){un=!1}}),oe({target:"Object",stat:!0,forced:!tt,sham:!et},{create:er,defineProperty:On,defineProperties:ji,getOwnPropertyDescriptor:Fr}),oe({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:vr,getOwnPropertySymbols:so}),oe({target:"Object",stat:!0,forced:lt(function(){Ge.f(1)})},{getOwnPropertySymbols:function(Lr){return Ge.f(Ut(Lr))}}),At){var Yr=!tt||lt(function(){var Jr=gt();return At([Jr])!="[null]"||At({a:Jr})!="{}"||At(Object(Jr))!="{}"});oe({target:"JSON",stat:!0,forced:Yr},{stringify:function(Lr,Zr,oo){for(var Uo=[Lr],fs=1,eo;arguments.length>fs;)Uo.push(arguments[fs++]);if(eo=Zr,!(!dt(Zr)&&Lr===void 0||xt(Lr)))return ht(Zr)||(Zr=function(Os,yo){if(typeof eo=="function"&&(yo=eo.call(this,Os,yo)),!xt(yo))return yo}),Uo[1]=Zr,At.apply(null,Uo)}})}gt[Oi][Ot]||Re(gt[Oi],Ot,gt[Oi].valueOf),fi(gt,Fi),bn[en]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/dom-iterables.js"),$t=Pt("./node_modules/core-js/internals/array-for-each.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in Kt){var tt=oe[et],lt=tt&&tt.prototype;if(lt&&lt.forEach!==$t)try{Ct(lt,"forEach",$t)}catch(rt){lt.forEach=$t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(jt,te,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),Kt=Pt("./node_modules/core-js/internals/dom-iterables.js"),$t=Pt("./node_modules/core-js/modules/es.array.iterator.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Pt("./node_modules/core-js/internals/well-known-symbol.js"),tt=et("iterator"),lt=et("toStringTag"),rt=$t.values;for(var ht in Kt){var dt=oe[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),Kt[ht]){for(var Nt in $t)if(xt[Nt]!==$t[Nt])try{Ct(xt,Nt,$t[Nt])}catch(Ut){xt[Nt]=$t[Nt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(jt){(function(te,Pt){jt.exports=Pt()})(this,function(){"use strict";function te(an){var un=typeof an;return an!==null&&(un==="object"||un==="function")}function Pt(an){return typeof an=="function"}var oe=void 0;Array.isArray?oe=Array.isArray:oe=function(an){return Object.prototype.toString.call(an)==="[object Array]"};var Kt=oe,$t=0,Ct=void 0,et=void 0,tt=function(un,Bn){qt[$t]=un,qt[$t+1]=Bn,$t+=2,$t===2&&(et?et(ze):Ge())};function lt(an){et=an}function rt(an){tt=an}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 Gt(){return function(){return Lt.nextTick(ze)}}function se(){return typeof Ct!="undefined"?function(){Ct(ze)}:Pe()}function le(){var an=0,un=new xt(ze),Bn=document.createTextNode("");return un.observe(Bn,{characterData:!0}),function(){Bn.data=an=++an%2}}function Ae(){var an=new MessageChannel;return an.port1.onmessage=ze,function(){return an.port2.postMessage(0)}}function Pe(){var an=setTimeout;return function(){return an(ze,1)}}var qt=new Array(1e3);function ze(){for(var an=0;an<$t;an+=2){var un=qt[an],Bn=qt[an+1];un(Bn),qt[an]=void 0,qt[an+1]=void 0}$t=0}function Wt(){try{var an=Function("return this")().require("vertx");return Ct=an.runOnLoop||an.runOnContext,se()}catch(un){return Pe()}}var Ge=void 0;Nt?Ge=Gt():xt?Ge=le():Ut?Ge=Ae():ht===void 0?Ge=Wt():Ge=Pe();function _e(an,un){var Bn=this,ai=new this.constructor(Re);ai[We]===void 0&&At(ai);var On=Bn._state;if(On){var ji=arguments[On-1];tt(function(){return Tt(On,ai,ji,Bn._result)})}else Oi(Bn,ai,an,un);return ai}function Ne(an){var un=this;if(an&&typeof an=="object"&&an.constructor===un)return an;var Bn=new un(Re);return Kn(Bn,an),Bn}var We=Math.random().toString(36).substring(2);function Re(){}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 Ze(an,un,Bn,ai){try{an.call(un,Bn,ai)}catch(On){return On}}function Mn(an,un,Bn){tt(function(ai){var On=!1,ji=Ze(Bn,un,function(er){On||(On=!0,un!==er?Kn(ai,er):en(ai,er))},function(er){On||(On=!0,Fi(ai,er))},"Settle: "+(ai._label||" unknown promise"));!On&&ji&&(On=!0,Fi(ai,ji))},an)}function Vn(an,un){un._state===ne?en(an,un._result):un._state===Ce?Fi(an,un._result):Oi(un,void 0,function(Bn){return Kn(an,Bn)},function(Bn){return Fi(an,Bn)})}function fi(an,un,Bn){un.constructor===an.constructor&&Bn===_e&&un.constructor.resolve===Ne?Vn(an,un):Bn===void 0?en(an,un):Pt(Bn)?Mn(an,un,Bn):en(an,un)}function Kn(an,un){if(an===un)Fi(an,bn());else if(te(un)){var Bn=void 0;try{Bn=un.then}catch(ai){Fi(an,ai);return}fi(an,un,Bn)}else en(an,un)}function Bi(an){an._onerror&&an._onerror(an._result),Ot(an)}function en(an,un){an._state===ve&&(an._result=un,an._state=ne,an._subscribers.length!==0&&tt(Ot,an))}function Fi(an,un){an._state===ve&&(an._state=Ce,an._result=un,tt(Bi,an))}function Oi(an,un,Bn,ai){var On=an._subscribers,ji=On.length;an._onerror=null,On[ji]=un,On[ji+ne]=Bn,On[ji+Ce]=ai,ji===0&&an._state&&tt(Ot,an)}function Ot(an){var un=an._subscribers,Bn=an._state;if(un.length!==0){for(var ai=void 0,On=void 0,ji=an._result,er=0;er<un.length;er+=3)ai=un[er],On=un[er+Bn],ai?Tt(Bn,ai,On,ji):On(ji);an._subscribers.length=0}}function Tt(an,un,Bn,ai){var On=Pt(Bn),ji=void 0,er=void 0,Ji=!0;if(On){try{ji=Bn(ai)}catch(Fr){Ji=!1,er=Fr}if(un===ji){Fi(un,Ln());return}}else ji=ai;un._state!==ve||(On&&Ji?Kn(un,ji):Ji===!1?Fi(un,er):an===ne?en(un,ji):an===Ce&&Fi(un,ji))}function vt(an,un){try{un(function(ai){Kn(an,ai)},function(ai){Fi(an,ai)})}catch(Bn){Fi(an,Bn)}}var ft=0;function gt(){return ft++}function At(an){an[We]=ft++,an._state=void 0,an._result=void 0,an._subscribers=[]}function ue(){return new Error("Array Methods must be provided an Array")}var xe=function(){function an(un,Bn){this._instanceConstructor=un,this.promise=new un(Re),this.promise[We]||At(this.promise),Kt(Bn)?(this.length=Bn.length,this._remaining=Bn.length,this._result=new Array(this.length),this.length===0?en(this.promise,this._result):(this.length=this.length||0,this._enumerate(Bn),this._remaining===0&&en(this.promise,this._result))):Fi(this.promise,ue())}return an.prototype._enumerate=function(Bn){for(var ai=0;this._state===ve&&ai<Bn.length;ai++)this._eachEntry(Bn[ai],ai)},an.prototype._eachEntry=function(Bn,ai){var On=this._instanceConstructor,ji=On.resolve;if(ji===Ne){var er=void 0,Ji=void 0,Fr=!1;try{er=Bn.then}catch(so){Fr=!0,Ji=so}if(er===_e&&Bn._state!==ve)this._settledAt(Bn._state,ai,Bn._result);else if(typeof er!="function")this._remaining--,this._result[ai]=Bn;else if(On===sn){var vr=new On(Re);Fr?Fi(vr,Ji):fi(vr,Bn,er),this._willSettleAt(vr,ai)}else this._willSettleAt(new On(function(so){return so(Bn)}),ai)}else this._willSettleAt(ji(Bn),ai)},an.prototype._settledAt=function(Bn,ai,On){var ji=this.promise;ji._state===ve&&(this._remaining--,Bn===Ce?Fi(ji,On):this._result[ai]=On),this._remaining===0&&en(ji,this._result)},an.prototype._willSettleAt=function(Bn,ai){var On=this;Oi(Bn,void 0,function(ji){return On._settledAt(ne,ai,ji)},function(ji){return On._settledAt(Ce,ai,ji)})},an}();function ae(an){return new xe(this,an).promise}function ye(an){var un=this;return Kt(an)?new un(function(Bn,ai){for(var On=an.length,ji=0;ji<On;ji++)un.resolve(an[ji]).then(Bn,ai)}):new un(function(Bn,ai){return ai(new TypeError("You must pass an array to race."))})}function Te(an){var un=this,Bn=new un(Re);return Fi(Bn,an),Bn}function De(){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 sn=function(){function an(un){this[We]=gt(),this._result=this._state=void 0,this._subscribers=[],Re!==un&&(typeof un!="function"&&De(),this instanceof an?vt(this,un):Me())}return an.prototype.catch=function(Bn){return this.then(null,Bn)},an.prototype.finally=function(Bn){var ai=this,On=ai.constructor;return Pt(Bn)?ai.then(function(ji){return On.resolve(Bn()).then(function(){return ji})},function(ji){return On.resolve(Bn()).then(function(){throw ji})}):ai.then(Bn,Bn)},an}();sn.prototype.then=_e,sn.all=ae,sn.race=ye,sn.resolve=Ne,sn.reject=Te,sn._setScheduler=lt,sn._setAsap=rt,sn._asap=tt;function Gn(){var an=void 0;if(typeof Ft.g!="undefined")an=Ft.g;else if(typeof self!="undefined")an=self;else try{an=Function("return this")()}catch(ai){throw new Error("polyfill failed because global object is unavailable in this environment")}var un=an.Promise;if(un){var Bn=null;try{Bn=Object.prototype.toString.call(un.resolve())}catch(ai){}if(Bn==="[object Promise]"&&!un.cast)return}an.Promise=sn}return sn.polyfill=Gn,sn.Promise=sn,sn})},html2canvas:function(jt){"use strict";jt.exports=re},jspdf:function(jt){"use strict";jt.exports=ce}},ee={};function Vt(jt){var te=ee[jt];if(te!==void 0)return te.exports;var Pt=ee[jt]={exports:{}};return ke[jt].call(Pt.exports,Pt,Pt.exports,Vt),Pt.exports}(function(){Vt.n=function(jt){var te=jt&&jt.__esModule?function(){return jt.default}:function(){return jt};return Vt.d(te,{a:te}),te}})(),function(){Vt.d=function(jt,te){for(var Pt in te)Vt.o(te,Pt)&&!Vt.o(jt,Pt)&&Object.defineProperty(jt,Pt,{enumerable:!0,get:te[Pt]})}}(),function(){Vt.o=function(jt,te){return Object.prototype.hasOwnProperty.call(jt,te)}}(),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"),te=Vt("./src/plugin/jspdf-plugin.js"),Pt=Vt("./src/plugin/pagebreaks.js"),oe=Vt("./src/plugin/hyperlinks.js"),Kt=function $t(Ct,et){var tt=new $t.Worker(et);return Ct?tt.from(Ct).save():tt};Kt.Worker=jt.default,Mt.default=Kt}(),Mt=Mt.default,Mt}()})},67467:function(hi,Cn){Cn.read=function(Ft,Lt,ce,re,ke){var ee,Vt,Mt=ke*8-re-1,jt=(1<<Mt)-1,te=jt>>1,Pt=-7,oe=ce?ke-1:0,Kt=ce?-1:1,$t=Ft[Lt+oe];for(oe+=Kt,ee=$t&(1<<-Pt)-1,$t>>=-Pt,Pt+=Mt;Pt>0;ee=ee*256+Ft[Lt+oe],oe+=Kt,Pt-=8);for(Vt=ee&(1<<-Pt)-1,ee>>=-Pt,Pt+=re;Pt>0;Vt=Vt*256+Ft[Lt+oe],oe+=Kt,Pt-=8);if(ee===0)ee=1-te;else{if(ee===jt)return Vt?NaN:($t?-1:1)*(1/0);Vt=Vt+Math.pow(2,re),ee=ee-te}return($t?-1:1)*Vt*Math.pow(2,ee-re)},Cn.write=function(Ft,Lt,ce,re,ke,ee){var Vt,Mt,jt,te=ee*8-ke-1,Pt=(1<<te)-1,oe=Pt>>1,Kt=ke===23?Math.pow(2,-24)-Math.pow(2,-77):0,$t=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=Pt):(Vt=Math.floor(Math.log(Lt)/Math.LN2),Lt*(jt=Math.pow(2,-Vt))<1&&(Vt--,jt*=2),Vt+oe>=1?Lt+=Kt/jt:Lt+=Kt*Math.pow(2,1-oe),Lt*jt>=2&&(Vt++,jt/=2),Vt+oe>=Pt?(Mt=0,Vt=Pt):Vt+oe>=1?(Mt=(Lt*jt-1)*Math.pow(2,ke),Vt=Vt+oe):(Mt=Lt*Math.pow(2,oe-1)*Math.pow(2,ke),Vt=0));ke>=8;Ft[ce+$t]=Mt&255,$t+=Ct,Mt/=256,ke-=8);for(Vt=Vt<<ke|Mt,te+=ke;te>0;Ft[ce+$t]=Vt&255,$t+=Ct,Vt/=256,te-=8);Ft[ce+$t-Ct]|=et*128}},73207:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{AcroForm:function(){return Eu},AcroFormAppearance:function(){return zo},AcroFormButton:function(){return Ja},AcroFormCheckBox:function(){return bu},AcroFormChoiceField:function(){return ou},AcroFormComboBox:function(){return Mo},AcroFormEditBox:function(){return ja},AcroFormListBox:function(){return Ya},AcroFormPasswordField:function(){return eu},AcroFormPushButton:function(){return su},AcroFormRadioButton:function(){return $l},AcroFormTextField:function(){return fu},GState:function(){return Lo},ShadingPattern:function(){return Js},TilingPattern:function(){return ua},default:function(){return Yl},jsPDF:function(){return Ho}});var Lt=Ft(39559),ce={},re=function(Et,wt,bt,Ht,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,be=we.$e$;if(be){var $e=new Error(be[0]);$e.code=be[1],$e.stack=be[2],ie($e,null)}else ie(null,we)},Yt.postMessage(bt,Ht),Yt},ke=Uint8Array,ee=Uint16Array,Vt=Int32Array,Mt=new ke([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 ke([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]),te=new ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pt=function(Et,wt){for(var bt=new ee(31),Ht=0;Ht<31;++Ht)bt[Ht]=wt+=1<<Et[Ht-1];for(var ie=new Vt(bt[30]),Ht=1;Ht<30;++Ht)for(var Yt=bt[Ht];Yt<bt[Ht+1];++Yt)ie[Yt]=Yt-bt[Ht]<<5|Ht;return{b:bt,r:ie}},oe=Pt(Mt,2),Kt=oe.b,$t=oe.r;Kt[28]=258,$t[258]=28;for(var Ct=Pt(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,bt){for(var Ht=Et.length,ie=0,Yt=new ee(wt);ie<Ht;++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(bt){we=new ee(1<<wt);var be=15-wt;for(ie=0;ie<Ht;++ie)if(Et[ie])for(var $e=ie<<4|Et[ie],fn=wt-Et[ie],gn=ge[Et[ie]-1]++<<fn,Pn=gn|(1<<fn)-1;gn<=Pn;++gn)we[lt[gn]>>be]=$e}else for(we=new ee(Ht),ie=0;ie<Ht;++ie)Et[ie]&&(we[ie]=lt[ge[Et[ie]-1]++]>>15-Et[ie]);return we},xt=new ke(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 ke(32),rt=0;rt<32;++rt)Nt[rt]=5;var Ut=dt(xt,9,0),Gt=dt(xt,9,1),se=dt(Nt,5,0),le=dt(Nt,5,1),Ae=function(Et){for(var wt=Et[0],bt=1;bt<Et.length;++bt)Et[bt]>wt&&(wt=Et[bt]);return wt},Pe=function(Et,wt,bt){var Ht=wt/8|0;return(Et[Ht]|Et[Ht+1]<<8)>>(wt&7)&bt},qt=function(Et,wt){var bt=wt/8|0;return(Et[bt]|Et[bt+1]<<8|Et[bt+2]<<16)>>(wt&7)},ze=function(Et){return(Et+7)/8|0},Wt=function(Et,wt,bt){return(wt==null||wt<0)&&(wt=0),(bt==null||bt>Et.length)&&(bt=Et.length),new ke(Et.subarray(wt,bt))},Ge={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,bt){var Ht=new Error(wt||_e[Et]);if(Ht.code=Et,Error.captureStackTrace&&Error.captureStackTrace(Ht,Ne),!bt)throw Ht;return Ht},We=function(Et,wt,bt,Ht){var ie=Et.length,Yt=Ht?Ht.length:0;if(!ie||wt.f&&!wt.l)return bt||new ke(0);var ge=!bt,we=ge||wt.i!=2,be=wt.i;ge&&(bt=new ke(ie*3));var $e=function(Zi){var Ar=bt.length;if(Zi>Ar){var br=new ke(Math.max(Ar*2,Zi));br.set(bt),bt=br}},fn=wt.f||0,gn=wt.p||0,Pn=wt.b||0,Ke=wt.l,gi=wt.d,Jn=wt.m,vi=wt.n,Rn=ie*8;do{if(!Ke){fn=Pe(Et,gn,1);var di=Pe(Et,gn+1,3);if(gn+=3,di)if(di==1)Ke=Gt,gi=le,Jn=9,vi=5;else if(di==2){var ao=Pe(Et,gn,31)+257,gr=Pe(Et,gn+10,15)+4,Ti=ao+Pe(Et,gn+5,31)+1;gn+=14;for(var xr=new ke(Ti),kr=new ke(19),$n=0;$n<gr;++$n)kr[te[$n]]=Pe(Et,gn+$n*3,7);gn+=gr*3;for(var ii=Ae(kr),pe=(1<<ii)-1,me=dt(kr,ii,1),$n=0;$n<Ti;){var Xe=me[Pe(Et,gn,pe)];gn+=Xe&15;var Qi=Xe>>4;if(Qi<16)xr[$n++]=Qi;else{var Je=0,vn=0;for(Qi==16?(vn=3+Pe(Et,gn,3),gn+=2,Je=xr[$n-1]):Qi==17?(vn=3+Pe(Et,gn,7),gn+=3):Qi==18&&(vn=11+Pe(Et,gn,127),gn+=7);vn--;)xr[$n++]=Je}}var nn=xr.subarray(0,ao),Tn=xr.subarray(ao);Jn=Ae(nn),vi=Ae(Tn),Ke=dt(nn,Jn,1),gi=dt(Tn,vi,1)}else Ne(1);else{var Qi=ze(gn)+4,rr=Et[Qi-4]|Et[Qi-3]<<8,Er=Qi+rr;if(Er>ie){be&&Ne(0);break}we&&$e(Pn+rr),bt.set(Et.subarray(Qi,Er),Pn),wt.b=Pn+=rr,wt.p=gn=Er*8,wt.f=fn;continue}if(gn>Rn){be&&Ne(0);break}}we&&$e(Pn+131072);for(var Un=(1<<Jn)-1,Yn=(1<<vi)-1,Qe=gn;;Qe=gn){var Je=Ke[qt(Et,gn)&Un],hn=Je>>4;if(gn+=Je&15,gn>Rn){be&&Ne(0);break}if(Je||Ne(2),hn<256)bt[Pn++]=hn;else if(hn==256){Qe=gn,Ke=null;break}else{var mn=hn-254;if(hn>264){var $n=hn-257,Qn=Mt[$n];mn=Pe(Et,gn,(1<<Qn)-1)+Kt[$n],gn+=Qn}var Zn=gi[qt(Et,gn)&Yn],ni=Zn>>4;Zn||Ne(3),gn+=Zn&15;var Tn=et[ni];if(ni>3){var Qn=jt[ni];Tn+=qt(Et,gn)&(1<<Qn)-1,gn+=Qn}if(gn>Rn){be&&Ne(0);break}we&&$e(Pn+131072);var Ei=Pn+mn;if(Pn<Tn){var li=Yt-Tn,Xi=Math.min(Tn,Ei);for(li+Pn<0&&Ne(3);Pn<Xi;++Pn)bt[Pn]=Ht[li+Pn]}for(;Pn<Ei;++Pn)bt[Pn]=bt[Pn-Tn]}}wt.l=Ke,wt.p=Qe,wt.b=Pn,wt.f=fn,Ke&&(fn=1,wt.m=Jn,wt.d=gi,wt.n=vi)}while(!fn);return Pn!=bt.length&&ge?Wt(bt,0,Pn):bt.subarray(0,Pn)},Re=function(Et,wt,bt){bt<<=wt&7;var Ht=wt/8|0;Et[Ht]|=bt,Et[Ht+1]|=bt>>8},ve=function(Et,wt,bt){bt<<=wt&7;var Ht=wt/8|0;Et[Ht]|=bt,Et[Ht+1]|=bt>>8,Et[Ht+2]|=bt>>16},ne=function(Et,wt){for(var bt=[],Ht=0;Ht<Et.length;++Ht)Et[Ht]&&bt.push({s:Ht,f:Et[Ht]});var ie=bt.length,Yt=bt.slice();if(!ie)return{t:fi,l:0};if(ie==1){var ge=new ke(bt[0].s+1);return ge[bt[0].s]=1,{t:ge,l:1}}bt.sort(function(Er,ao){return Er.f-ao.f}),bt.push({s:-1,f:25001});var we=bt[0],be=bt[1],$e=0,fn=1,gn=2;for(bt[0]={s:-1,f:we.f+be.f,l:we,r:be};fn!=ie-1;)we=bt[bt[$e].f<bt[gn].f?$e++:gn++],be=bt[$e!=fn&&bt[$e].f<bt[gn].f?$e++:gn++],bt[fn++]={s:-1,f:we.f+be.f,l:we,r:be};for(var Pn=Yt[0].s,Ht=1;Ht<ie;++Ht)Yt[Ht].s>Pn&&(Pn=Yt[Ht].s);var Ke=new ee(Pn+1),gi=Ce(bt[fn-1],Ke,0);if(gi>wt){var Ht=0,Jn=0,vi=gi-wt,Rn=1<<vi;for(Yt.sort(function(ao,gr){return Ke[gr.s]-Ke[ao.s]||ao.f-gr.f});Ht<ie;++Ht){var di=Yt[Ht].s;if(Ke[di]>wt)Jn+=Rn-(1<<gi-Ke[di]),Ke[di]=wt;else break}for(Jn>>=vi;Jn>0;){var Qi=Yt[Ht].s;Ke[Qi]<wt?Jn-=1<<wt-Ke[Qi]++-1:++Ht}for(;Ht>=0&&Jn;--Ht){var rr=Yt[Ht].s;Ke[rr]==wt&&(--Ke[rr],++Jn)}gi=wt}return{t:new ke(Ke),l:gi}},Ce=function(Et,wt,bt){return Et.s==-1?Math.max(Ce(Et.l,wt,bt+1),Ce(Et.r,wt,bt+1)):wt[Et.s]=bt},bn=function(Et){for(var wt=Et.length;wt&&!Et[--wt];);for(var bt=new ee(++wt),Ht=0,ie=Et[0],Yt=1,ge=function(be){bt[Ht++]=be},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:bt.subarray(0,Ht),n:wt}},Ln=function(Et,wt){for(var bt=0,Ht=0;Ht<wt.length;++Ht)bt+=Et[Ht]*wt[Ht];return bt},Ze=function(Et,wt,bt){var Ht=bt.length,ie=ze(wt+2);Et[ie]=Ht&255,Et[ie+1]=Ht>>8,Et[ie+2]=Et[ie]^255,Et[ie+3]=Et[ie+1]^255;for(var Yt=0;Yt<Ht;++Yt)Et[ie+Yt+4]=bt[Yt];return(ie+4+Ht)*8},Mn=function(Et,wt,bt,Ht,ie,Yt,ge,we,be,$e,fn){Re(wt,fn++,bt),++ie[256];for(var gn=ne(ie,15),Pn=gn.t,Ke=gn.l,gi=ne(Yt,15),Jn=gi.t,vi=gi.l,Rn=bn(Pn),di=Rn.c,Qi=Rn.n,rr=bn(Jn),Er=rr.c,ao=rr.n,gr=new ee(19),Ti=0;Ti<di.length;++Ti)++gr[di[Ti]&31];for(var Ti=0;Ti<Er.length;++Ti)++gr[Er[Ti]&31];for(var xr=ne(gr,7),kr=xr.t,$n=xr.l,ii=19;ii>4&&!kr[te[ii-1]];--ii);var pe=$e+5<<3,me=Ln(ie,xt)+Ln(Yt,Nt)+ge,Xe=Ln(ie,Pn)+Ln(Yt,Jn)+ge+14+3*ii+Ln(gr,kr)+2*gr[16]+3*gr[17]+7*gr[18];if(be>=0&&pe<=me&&pe<=Xe)return Ze(wt,fn,Et.subarray(be,be+$e));var Je,vn,nn,Tn;if(Re(wt,fn,1+(Xe<me)),fn+=2,Xe<me){Je=dt(Pn,Ke,0),vn=Pn,nn=dt(Jn,vi,0),Tn=Jn;var Un=dt(kr,$n,0);Re(wt,fn,Qi-257),Re(wt,fn+5,ao-1),Re(wt,fn+10,ii-4),fn+=14;for(var Ti=0;Ti<ii;++Ti)Re(wt,fn+3*Ti,kr[te[Ti]]);fn+=3*ii;for(var Yn=[di,Er],Qe=0;Qe<2;++Qe)for(var hn=Yn[Qe],Ti=0;Ti<hn.length;++Ti){var mn=hn[Ti]&31;Re(wt,fn,Un[mn]),fn+=kr[mn],mn>15&&(Re(wt,fn,hn[Ti]>>5&127),fn+=hn[Ti]>>12)}}else Je=Ut,vn=xt,nn=se,Tn=Nt;for(var Ti=0;Ti<we;++Ti){var Qn=Ht[Ti];if(Qn>255){var mn=Qn>>18&31;ve(wt,fn,Je[mn+257]),fn+=vn[mn+257],mn>7&&(Re(wt,fn,Qn>>23&31),fn+=Mt[mn]);var Zn=Qn&31;ve(wt,fn,nn[Zn]),fn+=Tn[Zn],Zn>3&&(ve(wt,fn,Qn>>5&8191),fn+=jt[Zn])}else ve(wt,fn,Je[Qn]),fn+=vn[Qn]}return ve(wt,fn,Je[256]),fn+vn[256]},Vn=new Vt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fi=new ke(0),Kn=function(Et,wt,bt,Ht,ie,Yt){var ge=Yt.z||Et.length,we=new ke(Ht+ge+5*(1+Math.ceil(ge/7e3))+ie),be=we.subarray(Ht,we.length-ie),$e=Yt.l,fn=(Yt.r||0)&7;if(wt){fn&&(be[0]=Yt.r>>3);for(var gn=Vn[wt-1],Pn=gn>>13,Ke=gn&8191,gi=(1<<bt)-1,Jn=Yt.p||new ee(32768),vi=Yt.h||new ee(gi+1),Rn=Math.ceil(bt/3),di=2*Rn,Qi=function(io){return(Et[io]^Et[io+1]<<Rn^Et[io+2]<<di)&gi},rr=new Vt(25e3),Er=new ee(288),ao=new ee(32),gr=0,Ti=0,xr=Yt.i||0,kr=0,$n=Yt.w||0,ii=0;xr+2<ge;++xr){var pe=Qi(xr),me=xr&32767,Xe=vi[pe];if(Jn[me]=Xe,vi[pe]=me,$n<=xr){var Je=ge-xr;if((gr>7e3||kr>24576)&&(Je>423||!$e)){fn=Mn(Et,be,0,rr,Er,ao,Ti,kr,ii,xr-ii,fn),kr=gr=Ti=0,ii=xr;for(var vn=0;vn<286;++vn)Er[vn]=0;for(var vn=0;vn<30;++vn)ao[vn]=0}var nn=2,Tn=0,Un=Ke,Yn=me-Xe&32767;if(Je>2&&pe==Qi(xr-Yn))for(var Qe=Math.min(Pn,Je)-1,hn=Math.min(32767,xr),mn=Math.min(258,Je);Yn<=hn&&--Un&&me!=Xe;){if(Et[xr+nn]==Et[xr+nn-Yn]){for(var Qn=0;Qn<mn&&Et[xr+Qn]==Et[xr+Qn-Yn];++Qn);if(Qn>nn){if(nn=Qn,Tn=Yn,Qn>Qe)break;for(var Zn=Math.min(Yn,Qn-2),ni=0,vn=0;vn<Zn;++vn){var Ei=xr-Yn+vn&32767,li=Jn[Ei],Xi=Ei-li&32767;Xi>ni&&(ni=Xi,Xe=Ei)}}}me=Xe,Xe=Jn[me],Yn+=me-Xe&32767}if(Tn){rr[kr++]=268435456|$t[nn]<<18|tt[Tn];var Zi=$t[nn]&31,Ar=tt[Tn]&31;Ti+=Mt[Zi]+jt[Ar],++Er[257+Zi],++ao[Ar],$n=xr+nn,++gr}else rr[kr++]=Et[xr],++Er[Et[xr]]}}for(xr=Math.max(xr,$n);xr<ge;++xr)rr[kr++]=Et[xr],++Er[Et[xr]];fn=Mn(Et,be,$e,rr,Er,ao,Ti,kr,ii,xr-ii,fn),$e||(Yt.r=fn&7|be[fn/8|0]<<3,fn-=7,Yt.h=vi,Yt.p=Jn,Yt.i=xr,Yt.w=$n)}else{for(var xr=Yt.w||0;xr<ge+$e;xr+=65535){var br=xr+65535;br>=ge&&(be[fn/8|0]=$e,br=ge),fn=Ze(be,fn+1,Et.subarray(xr,br))}Yt.i=ge}return Wt(we,0,Ht+ze(fn)+ie)},Bi=null,en=function(){var Et=-1;return{p:function(wt){for(var bt=Et,Ht=0;Ht<wt.length;++Ht)bt=Bi[bt&255^wt[Ht]]^bt>>>8;Et=bt},d:function(){return~Et}}},Fi=function(){var Et=1,wt=0;return{p:function(bt){for(var Ht=Et,ie=wt,Yt=bt.length|0,ge=0;ge!=Yt;){for(var we=Math.min(ge+2655,Yt);ge<we;++ge)ie+=Ht+=bt[ge];Ht=(Ht&65535)+15*(Ht>>16),ie=(ie&65535)+15*(ie>>16)}Et=Ht,wt=ie},d:function(){return Et%=65521,wt%=65521,(Et&255)<<24|(Et&65280)<<8|(wt&255)<<8|wt>>8}}},Oi=function(Et,wt,bt,Ht,ie){if(!ie&&(ie={l:1},wt.dictionary)){var Yt=wt.dictionary.subarray(-32768),ge=new ke(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,bt,Ht,ie)},Ot=function(Et,wt){var bt={};for(var Ht in Et)bt[Ht]=Et[Ht];for(var Ht in wt)bt[Ht]=wt[Ht];return bt},Tt=function(Et,wt,bt){for(var Ht=Et(),ie=Et.toString(),Yt=ie.slice(ie.indexOf("[")+1,ie.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<Ht.length;++ge){var we=Ht[ge],be=Yt[ge];if(typeof we=="function"){wt+=";"+be+"=";var $e=we.toString();if(we.prototype)if($e.indexOf("[native code]")!=-1){var fn=$e.indexOf(" ",8)+1;wt+=$e.slice(fn,$e.indexOf("(",fn))}else{wt+=$e;for(var gn in we.prototype)wt+=";"+be+".prototype."+gn+"="+we.prototype[gn].toString()}else wt+=$e}else bt[be]=we}return wt},vt=null,ft=function(Et){var wt=[];for(var bt in Et)Et[bt].buffer&&wt.push((Et[bt]=new Et[bt].constructor(Et[bt])).buffer);return wt},gt=function(Et,wt,bt,Ht){if(!vt[bt]){for(var ie="",Yt={},ge=Et.length-1,we=0;we<ge;++we)ie=Tt(Et[we],ie,Yt);vt[bt]={c:Tt(Et[ge],ie,Yt),e:Yt}}var be=Ot({},vt[bt].e);return re(vt[bt].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+wt.toString()+"}",bt,be,ft(be),Ht)},At=function(){return[ke,ee,Vt,Mt,jt,te,Kt,et,Gt,le,lt,_e,dt,Ae,Pe,qt,ze,Wt,Ne,We,Os,De,Me]},ue=function(){return[ke,ee,Vt,Mt,jt,te,$t,tt,Ut,xt,se,Nt,lt,Vn,fi,dt,Re,ve,ne,Ce,bn,Ln,Ze,Mn,ze,Wt,Kn,Oi,oo,De]},xe=function(){return[ji,Fr,On,en,Bi]},ae=function(){return[er,Ji]},ye=function(){return[vr,On,Fi]},Te=function(){return[so]},De=function(Et){return postMessage(Et,[Et.buffer])},Me=function(Et){return Et&&{out:Et.size&&new ke(Et.size),dictionary:Et.dictionary}},sn=function(Et,wt,bt,Ht,ie,Yt){var ge=gt(bt,Ht,ie,function(we,be){ge.terminate(),Yt(we,be)});return ge.postMessage([Et,wt],wt.consume?[Et.buffer]:[]),function(){ge.terminate()}},Gn=function(Et){return Et.ondata=function(wt,bt){return postMessage([wt,bt],[wt.buffer])},function(wt){wt.data.length?(Et.push(wt.data[0],wt.data[1]),postMessage([wt.data[0].length])):Et.flush()}},an=function(Et,wt,bt,Ht,ie,Yt,ge){var we,be=gt(Et,Ht,ie,function($e,fn){$e?(be.terminate(),wt.ondata.call(wt,$e)):Array.isArray(fn)?fn.length==1?(wt.queuedSize-=fn[0],wt.ondrain&&wt.ondrain(fn[0])):(fn[1]&&be.terminate(),wt.ondata.call(wt,$e,fn[0],fn[1])):ge(fn)});be.postMessage(bt),wt.queuedSize=0,wt.push=function($e,fn){wt.ondata||Ne(5),we&&wt.ondata(Ne(4,0,1),null,!!fn),wt.queuedSize+=$e.length,be.postMessage([$e,we=fn],[$e.buffer])},wt.terminate=function(){be.terminate()},Yt&&(wt.flush=function(){be.postMessage([])})},un=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},ai=function(Et,wt){return Bn(Et,wt)+Bn(Et,wt+4)*4294967296},On=function(Et,wt,bt){for(;bt;++wt)Et[wt]=bt,bt>>>=8},ji=function(Et,wt){var bt=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)),bt){Et[3]=8;for(var Ht=0;Ht<=bt.length;++Ht)Et[Ht+10]=bt.charCodeAt(Ht)}},er=function(Et){(Et[0]!=31||Et[1]!=139||Et[2]!=8)&&Ne(6,"invalid gzip data");var wt=Et[3],bt=10;wt&4&&(bt+=(Et[10]|Et[11]<<8)+2);for(var Ht=(wt>>3&1)+(wt>>4&1);Ht>0;Ht-=!Et[bt++]);return bt+(wt&2)},Ji=function(Et){var wt=Et.length;return(Et[wt-4]|Et[wt-3]<<8|Et[wt-2]<<16|Et[wt-1]<<24)>>>0},Fr=function(Et){return 10+(Et.filename?Et.filename.length+1:0)},vr=function(Et,wt){var bt=wt.level,Ht=bt==0?0:bt<6?1:bt==9?3:2;if(Et[0]=120,Et[1]=Ht<<6|(wt.dictionary&&32),Et[1]|=31-(Et[0]<<8|Et[1])%31,wt.dictionary){var ie=Fi();ie.p(wt.dictionary),On(Et,2,ie.d())}},so=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 Jr=null,Lr=null;function Zr(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),sn(Et,wt,[ue],function(Ht){return De(oo(Ht.data[0],Ht.data[1]))},0,bt)}function oo(Et,wt){return Oi(Et,wt||{},0,0)}var Uo=null,fs=null;function eo(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),sn(Et,wt,[At],function(Ht){return De(Os(Ht.data[0],Me(Ht.data[1])))},1,bt)}function Os(Et,wt){return We(Et,{i:2},wt&&wt.out,wt&&wt.dictionary)}var yo=null,Xt=null;function ti(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),sn(Et,wt,[ue,xe,function(){return[gs]}],function(Ht){return De(gs(Ht.data[0],Ht.data[1]))},2,bt)}function gs(Et,wt){wt||(wt={});var bt=en(),Ht=Et.length;bt.p(Et);var ie=Oi(Et,wt,Fr(wt),8),Yt=ie.length;return ji(ie,wt),On(ie,Yt-8,bt.d()),On(ie,Yt-4,Ht),ie}var ia=null,Zs=null;function la(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),sn(Et,wt,[At,ae,function(){return[Xs]}],function(Ht){return De(Xs(Ht.data[0],Ht.data[1]))},3,bt)}function Xs(Et,wt){var bt=er(Et);return bt+8>Et.length&&Ne(6,"invalid gzip data"),We(Et.subarray(bt,-8),{i:2},wt&&wt.out||new ke(Ji(Et)),wt&&wt.dictionary)}var Rr=null,_r=null;function Dn(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),sn(Et,wt,[ue,ye,function(){return[Nn]}],function(Ht){return De(Nn(Ht.data[0],Ht.data[1]))},4,bt)}function Nn(Et,wt){wt||(wt={});var bt=Fi();bt.p(Et);var Ht=Oi(Et,wt,wt.dictionary?6:2,4);return vr(Ht,wt),On(Ht,Ht.length-4,bt.d()),Ht}var je=null,ei=null;function xi(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),sn(Et,wt,[At,Te,function(){return[dn]}],function(Ht){return De(dn(Ht.data[0],Me(Ht.data[1])))},5,bt)}function dn(Et,wt){return We(Et.subarray(so(Et,wt&&wt.dictionary),-4),{i:2},wt&&wt.out,wt&&wt.dictionary)}var Fe=null,wn=null;function Hn(Et,wt,bt){return bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7),Et[0]==31&&Et[1]==139&&Et[2]==8?la(Et,wt,bt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?eo(Et,wt,bt):xi(Et,wt,bt)}function Si(Et,wt){return Et[0]==31&&Et[1]==139&&Et[2]==8?Xs(Et,wt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?Os(Et,wt):dn(Et,wt)}var Di=function(Et,wt,bt,Ht){for(var ie in Et){var Yt=Et[ie],ge=wt+ie,we=Ht;Array.isArray(Yt)&&(we=Ot(Ht,Yt[1]),Yt=Yt[0]),Yt instanceof ke?bt[ge]=[Yt,we]:(bt[ge+="/"]=[new ke(0),we],Di(Yt,ge,bt,Ht))}},tn=typeof TextEncoder!="undefined"&&new TextEncoder,oi=typeof TextDecoder!="undefined"&&new TextDecoder,Li=0;try{oi.decode(fi,{stream:!0}),Li=1}catch(Et){}var tr=function(Et){for(var wt="",bt=0;;){var Ht=Et[bt++],ie=(Ht>127)+(Ht>223)+(Ht>239);if(bt+ie>Et.length)return{s:wt,r:Wt(Et,bt-1)};ie?ie==3?(Ht=((Ht&15)<<18|(Et[bt++]&63)<<12|(Et[bt++]&63)<<6|Et[bt++]&63)-65536,wt+=String.fromCharCode(55296|Ht>>10,56320|Ht&1023)):ie&1?wt+=String.fromCharCode((Ht&31)<<6|Et[bt++]&63):wt+=String.fromCharCode((Ht&15)<<12|(Et[bt++]&63)<<6|Et[bt++]&63):wt+=String.fromCharCode(Ht)}},kn=null,ui=null;function Sr(Et,wt){if(wt){for(var bt=new ke(Et.length),Ht=0;Ht<Et.length;++Ht)bt[Ht]=Et.charCodeAt(Ht);return bt}if(tn)return tn.encode(Et);for(var ie=Et.length,Yt=new ke(Et.length+(Et.length>>1)),ge=0,we=function(fn){Yt[ge++]=fn},Ht=0;Ht<ie;++Ht){if(ge+5>Yt.length){var be=new ke(ge+8+(ie-Ht<<1));be.set(Yt),Yt=be}var $e=Et.charCodeAt(Ht);$e<128||wt?we($e):$e<2048?(we(192|$e>>6),we(128|$e&63)):$e>55295&&$e<57344?($e=65536+($e&1047552)|Et.charCodeAt(++Ht)&1023,we(240|$e>>18),we(128|$e>>12&63),we(128|$e>>6&63),we(128|$e&63)):(we(224|$e>>12),we(128|$e>>6&63),we(128|$e&63))}return Wt(Yt,0,ge)}function cr(Et,wt){if(wt){for(var bt="",Ht=0;Ht<Et.length;Ht+=16384)bt+=String.fromCharCode.apply(null,Et.subarray(Ht,Ht+16384));return bt}else{if(oi)return oi.decode(Et);var ie=tr(Et),Yt=ie.s,bt=ie.r;return bt.length&&Ne(8),Yt}}var zr=function(Et){return Et==1?3:Et<6?2:Et==9?1:0},dr=function(Et,wt){return wt+30+un(Et,wt+26)+un(Et,wt+28)},Mr=function(Et,wt,bt){var Ht=un(Et,wt+28),ie=cr(Et.subarray(wt+46,wt+46+Ht),!(un(Et,wt+8)&2048)),Yt=wt+46+Ht,ge=Bn(Et,wt+20),we=bt&&ge==4294967295?nr(Et,Yt):[ge,Bn(Et,wt+24),Bn(Et,wt+42)],be=we[0],$e=we[1],fn=we[2];return[un(Et,wt+10),be,$e,ie,Yt+un(Et,wt+30)+un(Et,wt+32),fn]},nr=function(Et,wt){for(;un(Et,wt)!=1;wt+=4+un(Et,wt+2));return[ai(Et,wt+12),ai(Et,wt+4),ai(Et,wt+20)]},Cr=function(Et){var wt=0;if(Et)for(var bt in Et){var Ht=Et[bt].length;Ht>65535&&Ne(9),wt+=Ht+4}return wt},no=function(Et,wt,bt,Ht,ie,Yt,ge,we){var be=Ht.length,$e=bt.extra,fn=we&&we.length,gn=Cr($e);On(Et,wt,ge!=null?33639248:67324752),wt+=4,ge!=null&&(Et[wt++]=20,Et[wt++]=bt.os),Et[wt]=20,wt+=2,Et[wt++]=bt.flag<<1|(Yt<0&&8),Et[wt++]=ie&&8,Et[wt++]=bt.compression&255,Et[wt++]=bt.compression>>8;var Pn=new Date(bt.mtime==null?Date.now():bt.mtime),Ke=Pn.getFullYear()-1980;if((Ke<0||Ke>119)&&Ne(10),On(Et,wt,Ke<<25|Pn.getMonth()+1<<21|Pn.getDate()<<16|Pn.getHours()<<11|Pn.getMinutes()<<5|Pn.getSeconds()>>1),wt+=4,Yt!=-1&&(On(Et,wt,bt.crc),On(Et,wt+4,Yt<0?-Yt-2:Yt),On(Et,wt+8,bt.size)),On(Et,wt+12,be),On(Et,wt+14,gn),wt+=16,ge!=null&&(On(Et,wt,fn),On(Et,wt+6,bt.attrs),On(Et,wt+10,ge),wt+=14),Et.set(Ht,wt),wt+=be,gn)for(var gi in $e){var Jn=$e[gi],vi=Jn.length;On(Et,wt,+gi),On(Et,wt+2,vi),Et.set(Jn,wt+4),wt+=4+vi}return fn&&(Et.set(we,wt),wt+=fn),wt},Ro=function(Et,wt,bt,Ht,ie){On(Et,wt,101010256),On(Et,wt+8,bt),On(Et,wt+10,bt),On(Et,wt+12,Ht),On(Et,wt+16,ie)},yi=null,Po=null,ws=null,Zo=null;function pi(Et,wt,bt){bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7);var Ht={};Di(Et,"",Ht,wt);var ie=Object.keys(Ht),Yt=ie.length,ge=0,we=0,be=Yt,$e=new Array(Yt),fn=[],gn=function(){for(var vi=0;vi<fn.length;++vi)fn[vi]()},Pn=function(vi,Rn){mi(function(){bt(vi,Rn)})};mi(function(){Pn=bt});var Ke=function(){var vi=new ke(we+22),Rn=ge,di=we-ge;we=0;for(var Qi=0;Qi<be;++Qi){var rr=$e[Qi];try{var Er=rr.c.length;no(vi,we,rr,rr.f,rr.u,Er);var ao=30+rr.f.length+Cr(rr.extra),gr=we+ao;vi.set(rr.c,gr),no(vi,ge,rr,rr.f,rr.u,Er,we,rr.m),ge+=16+ao+(rr.m?rr.m.length:0),we=gr+Er}catch(Ti){return Pn(Ti,null)}}Ro(vi,ge,$e.length,di,Rn),Pn(null,vi)};Yt||Ke();for(var gi=function(vi){var Rn=ie[vi],di=Ht[Rn],Qi=di[0],rr=di[1],Er=en(),ao=Qi.length;Er.p(Qi);var gr=Sr(Rn),Ti=gr.length,xr=rr.comment,kr=xr&&Sr(xr),$n=kr&&kr.length,ii=Cr(rr.extra),pe=rr.level==0?0:8,me=function(Xe,Je){if(Xe)gn(),Pn(Xe,null);else{var vn=Je.length;$e[vi]=Ot(rr,{size:ao,crc:Er.d(),c:Je,f:gr,m:kr,u:Ti!=Rn.length||kr&&xr.length!=$n,compression:pe}),ge+=30+Ti+ii+vn,we+=76+2*(Ti+ii)+($n||0)+vn,--Yt||Ke()}};if(Ti>65535&&me(Ne(11,0,1),null),!pe)me(null,Qi);else if(ao<16e4)try{me(null,oo(Qi,rr))}catch(Xe){me(Xe,null)}else fn.push(Zr(Qi,rr,me))},Jn=0;Jn<be;++Jn)gi(Jn);return gn}function or(Et,wt){wt||(wt={});var bt={},Ht=[];Di(Et,"",bt,wt);var ie=0,Yt=0;for(var ge in bt){var we=bt[ge],be=we[0],$e=we[1],fn=$e.level==0?0:8,gn=Sr(ge),Pn=gn.length,Ke=$e.comment,gi=Ke&&Sr(Ke),Jn=gi&&gi.length,vi=Cr($e.extra);Pn>65535&&Ne(11);var Rn=fn?oo(be,$e):be,di=Rn.length,Qi=en();Qi.p(be),Ht.push(Ot($e,{size:be.length,crc:Qi.d(),c:Rn,f:gn,m:gi,u:Pn!=ge.length||gi&&Ke.length!=Jn,o:ie,compression:fn})),ie+=30+Pn+vi+di,Yt+=76+2*(Pn+vi)+(Jn||0)+di}for(var rr=new ke(Yt+22),Er=ie,ao=Yt-ie,gr=0;gr<Ht.length;++gr){var gn=Ht[gr];no(rr,gn.o,gn,gn.f,gn.u,gn.c.length);var Ti=30+gn.f.length+Cr(gn.extra);rr.set(gn.c,gn.o+Ti),no(rr,ie,gn,gn.f,gn.u,gn.c.length,gn.o,gn.m),ie+=16+Ti+(gn.m?gn.m.length:0)}return Ro(rr,ie,Ht.length,ao,Er),rr}var Hr=null,uo=null,to=null,Fo=null,mi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Et){Et()};function wo(Et,wt,bt){bt||(bt=wt,wt={}),typeof bt!="function"&&Ne(7);var Ht=[],ie=function(){for(var vi=0;vi<Ht.length;++vi)Ht[vi]()},Yt={},ge=function(vi,Rn){mi(function(){bt(vi,Rn)})};mi(function(){ge=bt});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 be=un(Et,we+8);if(be){var $e=be,fn=Bn(Et,we+16),gn=fn==4294967295||$e==65535;if(gn){var Pn=Bn(Et,we-12);gn=Bn(Et,Pn)==101075792,gn&&($e=be=Bn(Et,Pn+32),fn=Bn(Et,Pn+48))}for(var Ke=wt&&wt.filter,gi=function(vi){var Rn=Mr(Et,fn,gn),di=Rn[0],Qi=Rn[1],rr=Rn[2],Er=Rn[3],ao=Rn[4],gr=Rn[5],Ti=dr(Et,gr);fn=ao;var xr=function($n,ii){$n?(ie(),ge($n,null)):(ii&&(Yt[Er]=ii),--be||ge(null,Yt))};if(!Ke||Ke({name:Er,size:Qi,originalSize:rr,compression:di}))if(!di)xr(null,Wt(Et,Ti,Ti+Qi));else if(di==8){var kr=Et.subarray(Ti,Ti+Qi);if(rr<524288||Qi>.8*rr)try{xr(null,Os(kr,{out:new ke(rr)}))}catch($n){xr($n,null)}else Ht.push(eo(kr,{size:rr},xr))}else xr(Ne(14,"unknown compression type "+di,1),null);else xr(null,null)},Jn=0;Jn<$e;++Jn)gi(Jn)}else ge(null,{});return ie}function Dr(Et,wt){for(var bt={},Ht=Et.length-22;Bn(Et,Ht)!=101010256;--Ht)(!Ht||Et.length-Ht>65558)&&Ne(13);var ie=un(Et,Ht+8);if(!ie)return{};var Yt=Bn(Et,Ht+16),ge=Yt==4294967295||ie==65535;if(ge){var we=Bn(Et,Ht-12);ge=Bn(Et,we)==101075792,ge&&(ie=Bn(Et,we+32),Yt=Bn(Et,we+48))}for(var be=wt&&wt.filter,$e=0;$e<ie;++$e){var fn=Mr(Et,Yt,ge),gn=fn[0],Pn=fn[1],Ke=fn[2],gi=fn[3],Jn=fn[4],vi=fn[5],Rn=dr(Et,vi);Yt=Jn,(!be||be({name:gi,size:Pn,originalSize:Ke,compression:gn}))&&(gn?gn==8?bt[gi]=Os(Et.subarray(Rn,Rn+Pn),{out:new ke(Ke)}):Ne(14,"unknown compression type "+gn):bt[gi]=Wt(Et,Rn,Rn+Pn))}return bt}var Br=function(){return typeof window!="undefined"?window:typeof Ft.g!="undefined"?Ft.g:typeof self!="undefined"?self:this}();function Pi(){Br.console&&typeof Br.console.log=="function"&&Br.console.log.apply(Br.console,arguments)}var bo={log:Pi,warn:function(Et){Br.console&&(typeof Br.console.warn=="function"?Br.console.warn.apply(Br.console,arguments):Pi.call(null,arguments))},error:function(Et){Br.console&&(typeof Br.console.error=="function"?Br.console.error.apply(Br.console,arguments):Pi(Et))}};function Ci(Et,wt,bt){var Ht=new XMLHttpRequest;Ht.open("GET",Et),Ht.responseType="blob",Ht.onload=function(){Gs(Ht.response,wt,bt)},Ht.onerror=function(){bo.error("could not download file")},Ht.send()}function Xo(Et){var wt=new XMLHttpRequest;wt.open("HEAD",Et,!1);try{wt.send()}catch(bt){}return wt.status>=200&&wt.status<=299}function ra(Et){try{Et.dispatchEvent(new MouseEvent("click"))}catch(bt){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 xs,va,Gs=Br.saveAs||((typeof window=="undefined"?"undefined":(0,Lt.Z)(window))!=="object"||window!==Br?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Et,wt,bt){var Ht=Br.URL||Br.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?Xo(ie.href)?Ci(Et,wt,bt):ra(ie,ie.target="_blank"):ra(ie)):(ie.href=Ht.createObjectURL(Et),setTimeout(function(){Ht.revokeObjectURL(ie.href)},4e4),setTimeout(function(){ra(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(Et,wt,bt){if(wt=wt||Et.name||"download",typeof Et=="string")if(Xo(Et))Ci(Et,wt,bt);else{var Ht=document.createElement("a");Ht.href=Et,Ht.target="_blank",setTimeout(function(){ra(Ht)})}else navigator.msSaveOrOpenBlob(function(ie,Yt){return Yt===void 0?Yt={autoBom:!1}:(0,Lt.Z)(Yt)!=="object"&&(bo.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,bt),wt)}:function(Et,wt,bt,Ht){if((Ht=Ht||open("","_blank"))&&(Ht.document.title=Ht.document.body.innerText="downloading..."),typeof Et=="string")return Ci(Et,wt,bt);var ie=Et.type==="application/octet-stream",Yt=/constructor/i.test(Br.HTMLElement)||Br.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 fn=we.result;fn=ge?fn:fn.replace(/^data:[^;]*;/,"data:attachment/file;"),Ht?Ht.location.href=fn:location=fn,Ht=null},we.readAsDataURL(Et)}else{var be=Br.URL||Br.webkitURL,$e=be.createObjectURL(Et);Ht?Ht.location=$e:location.href=$e,Ht=null,setTimeout(function(){be.revokeObjectURL($e)},4e4)}});function Io(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 bt=[{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)]}}],Ht=0;Ht<bt.length;Ht++){var ie=bt[Ht].re,Yt=bt[Ht].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),be=this.g.toString(16),$e=this.b.toString(16);return we.length==1&&(we="0"+we),be.length==1&&(be="0"+be),$e.length==1&&($e="0"+$e),"#"+we+be+$e}}function _o(Et,wt){var bt=Et[0],Ht=Et[1],ie=Et[2],Yt=Et[3];bt=ls(bt,Ht,ie,Yt,wt[0],7,-680876936),Yt=ls(Yt,bt,Ht,ie,wt[1],12,-389564586),ie=ls(ie,Yt,bt,Ht,wt[2],17,606105819),Ht=ls(Ht,ie,Yt,bt,wt[3],22,-1044525330),bt=ls(bt,Ht,ie,Yt,wt[4],7,-176418897),Yt=ls(Yt,bt,Ht,ie,wt[5],12,1200080426),ie=ls(ie,Yt,bt,Ht,wt[6],17,-1473231341),Ht=ls(Ht,ie,Yt,bt,wt[7],22,-45705983),bt=ls(bt,Ht,ie,Yt,wt[8],7,1770035416),Yt=ls(Yt,bt,Ht,ie,wt[9],12,-1958414417),ie=ls(ie,Yt,bt,Ht,wt[10],17,-42063),Ht=ls(Ht,ie,Yt,bt,wt[11],22,-1990404162),bt=ls(bt,Ht,ie,Yt,wt[12],7,1804603682),Yt=ls(Yt,bt,Ht,ie,wt[13],12,-40341101),ie=ls(ie,Yt,bt,Ht,wt[14],17,-1502002290),bt=wr(bt,Ht=ls(Ht,ie,Yt,bt,wt[15],22,1236535329),ie,Yt,wt[1],5,-165796510),Yt=wr(Yt,bt,Ht,ie,wt[6],9,-1069501632),ie=wr(ie,Yt,bt,Ht,wt[11],14,643717713),Ht=wr(Ht,ie,Yt,bt,wt[0],20,-373897302),bt=wr(bt,Ht,ie,Yt,wt[5],5,-701558691),Yt=wr(Yt,bt,Ht,ie,wt[10],9,38016083),ie=wr(ie,Yt,bt,Ht,wt[15],14,-660478335),Ht=wr(Ht,ie,Yt,bt,wt[4],20,-405537848),bt=wr(bt,Ht,ie,Yt,wt[9],5,568446438),Yt=wr(Yt,bt,Ht,ie,wt[14],9,-1019803690),ie=wr(ie,Yt,bt,Ht,wt[3],14,-187363961),Ht=wr(Ht,ie,Yt,bt,wt[8],20,1163531501),bt=wr(bt,Ht,ie,Yt,wt[13],5,-1444681467),Yt=wr(Yt,bt,Ht,ie,wt[2],9,-51403784),ie=wr(ie,Yt,bt,Ht,wt[7],14,1735328473),bt=Ie(bt,Ht=wr(Ht,ie,Yt,bt,wt[12],20,-1926607734),ie,Yt,wt[5],4,-378558),Yt=Ie(Yt,bt,Ht,ie,wt[8],11,-2022574463),ie=Ie(ie,Yt,bt,Ht,wt[11],16,1839030562),Ht=Ie(Ht,ie,Yt,bt,wt[14],23,-35309556),bt=Ie(bt,Ht,ie,Yt,wt[1],4,-1530992060),Yt=Ie(Yt,bt,Ht,ie,wt[4],11,1272893353),ie=Ie(ie,Yt,bt,Ht,wt[7],16,-155497632),Ht=Ie(Ht,ie,Yt,bt,wt[10],23,-1094730640),bt=Ie(bt,Ht,ie,Yt,wt[13],4,681279174),Yt=Ie(Yt,bt,Ht,ie,wt[0],11,-358537222),ie=Ie(ie,Yt,bt,Ht,wt[3],16,-722521979),Ht=Ie(Ht,ie,Yt,bt,wt[6],23,76029189),bt=Ie(bt,Ht,ie,Yt,wt[9],4,-640364487),Yt=Ie(Yt,bt,Ht,ie,wt[12],11,-421815835),ie=Ie(ie,Yt,bt,Ht,wt[15],16,530742520),bt=cs(bt,Ht=Ie(Ht,ie,Yt,bt,wt[2],23,-995338651),ie,Yt,wt[0],6,-198630844),Yt=cs(Yt,bt,Ht,ie,wt[7],10,1126891415),ie=cs(ie,Yt,bt,Ht,wt[14],15,-1416354905),Ht=cs(Ht,ie,Yt,bt,wt[5],21,-57434055),bt=cs(bt,Ht,ie,Yt,wt[12],6,1700485571),Yt=cs(Yt,bt,Ht,ie,wt[3],10,-1894986606),ie=cs(ie,Yt,bt,Ht,wt[10],15,-1051523),Ht=cs(Ht,ie,Yt,bt,wt[1],21,-2054922799),bt=cs(bt,Ht,ie,Yt,wt[8],6,1873313359),Yt=cs(Yt,bt,Ht,ie,wt[15],10,-30611744),ie=cs(ie,Yt,bt,Ht,wt[6],15,-1560198380),Ht=cs(Ht,ie,Yt,bt,wt[13],21,1309151649),bt=cs(bt,Ht,ie,Yt,wt[4],6,-145523070),Yt=cs(Yt,bt,Ht,ie,wt[11],10,-1120210379),ie=cs(ie,Yt,bt,Ht,wt[2],15,718787259),Ht=cs(Ht,ie,Yt,bt,wt[9],21,-343485551),Et[0]=xo(bt,Et[0]),Et[1]=xo(Ht,Et[1]),Et[2]=xo(ie,Et[2]),Et[3]=xo(Yt,Et[3])}function As(Et,wt,bt,Ht,ie,Yt){return wt=xo(xo(wt,Et),xo(Ht,Yt)),xo(wt<<ie|wt>>>32-ie,bt)}function ls(Et,wt,bt,Ht,ie,Yt,ge){return As(wt&bt|~wt&Ht,Et,wt,ie,Yt,ge)}function wr(Et,wt,bt,Ht,ie,Yt,ge){return As(wt&Ht|bt&~Ht,Et,wt,ie,Yt,ge)}function Ie(Et,wt,bt,Ht,ie,Yt,ge){return As(wt^bt^Ht,Et,wt,ie,Yt,ge)}function cs(Et,wt,bt,Ht,ie,Yt,ge){return As(bt^(wt|~Ht),Et,wt,ie,Yt,ge)}function oa(Et){var wt,bt=Et.length,Ht=[1732584193,-271733879,-1732584194,271733878];for(wt=64;wt<=Et.length;wt+=64)_o(Ht,ll(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(_o(Ht,ie),wt=0;wt<16;wt++)ie[wt]=0;return ie[14]=8*bt,_o(Ht,ie),Ht}function ll(Et){var wt,bt=[];for(wt=0;wt<64;wt+=4)bt[wt>>2]=Et.charCodeAt(wt)+(Et.charCodeAt(wt+1)<<8)+(Et.charCodeAt(wt+2)<<16)+(Et.charCodeAt(wt+3)<<24);return bt}xs=Br.atob.bind(Br),va=Br.btoa.bind(Br);var Ll="0123456789abcdef".split("");function fl(Et){for(var wt="",bt=0;bt<4;bt++)wt+=Ll[Et>>8*bt+4&15]+Ll[Et>>8*bt&15];return wt}function _l(Et){return String.fromCharCode((255&Et)>>0,(65280&Et)>>8,(16711680&Et)>>16,(4278190080&Et)>>24)}function ns(Et){return oa(Et).map(_l).join("")}var Yo=function(Et){for(var wt=0;wt<Et.length;wt++)Et[wt]=fl(Et[wt]);return Et.join("")}(oa("hello"))!="5d41402abc4b2a76b9719d911017c592";function xo(Et,wt){if(Yo){var bt=(65535&Et)+(65535&wt);return(Et>>16)+(wt>>16)+(bt>>16)<<16|65535&bt}return Et+wt&4294967295}function ks(Et,wt){var bt,Ht,ie,Yt;if(Et!==bt){for(var ge=(ie=Et,Yt=1+(256/Et.length>>0),new Array(Yt+1).join(ie)),we=[],be=0;be<256;be++)we[be]=be;var $e=0;for(be=0;be<256;be++){var fn=we[be];$e=($e+fn+ge.charCodeAt(be))%256,we[be]=we[$e],we[$e]=fn}bt=Et,Ht=we}else we=Ht;var gn=wt.length,Pn=0,Ke=0,gi="";for(be=0;be<gn;be++)Ke=(Ke+(fn=we[Pn=(Pn+1)%256]))%256,we[Pn]=we[Ke],we[Ke]=fn,ge=we[(we[Pn]+we[Ke])%256],gi+=String.fromCharCode(wt.charCodeAt(be)^ge);return gi}var fa={print:4,modify:8,copy:16,"annot-forms":32};function fo(Et,wt,bt,Ht){this.v=1,this.r=2;var ie=192;Et.forEach(function(we){if(fa.perm!==void 0)throw new Error("Invalid permission: "+we);ie+=fa[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=(bt+this.padding).substr(0,32);this.O=this.processOwnerPassword(Yt,ge),this.P=-(1+(255^ie)),this.encryptionKey=ns(Yt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ht)).substr(0,5),this.U=ks(this.encryptionKey,this.padding)}function co(Et){if(/[^\u0000-\u00ff]/.test(Et))throw new Error("Invalid PDF Name Object: "+Et+", Only accept ASCII characters.");for(var wt="",bt=Et.length,Ht=0;Ht<bt;Ht++){var ie=Et.charCodeAt(Ht);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[Ht]}return wt}function Vi(Et){if((0,Lt.Z)(Et)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var wt={};this.subscribe=function(bt,Ht,ie){if(ie=ie||!1,typeof bt!="string"||typeof Ht!="function"||typeof ie!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");wt.hasOwnProperty(bt)||(wt[bt]={});var Yt=Math.random().toString(35);return wt[bt][Yt]=[Ht,!!ie],Yt},this.unsubscribe=function(bt){for(var Ht in wt)if(wt[Ht][bt])return delete wt[Ht][bt],Object.keys(wt[Ht]).length===0&&delete wt[Ht],!0;return!1},this.publish=function(bt){if(wt.hasOwnProperty(bt)){var Ht=Array.prototype.slice.call(arguments,1),ie=[];for(var Yt in wt[bt]){var ge=wt[bt][Yt];try{ge[0].apply(Et,Ht)}catch(we){Br.console&&bo.error("jsPDF PubSub Error",we.message,we)}ge[1]&&ie.push(Yt)}ie.length&&ie.forEach(this.unsubscribe)}},this.getTopics=function(){return wt}}function Lo(Et){if(!(this instanceof Lo))return new Lo(Et);var wt="opacity,stroke-opacity".split(",");for(var bt in Et)Et.hasOwnProperty(bt)&&wt.indexOf(bt)>=0&&(this[bt]=Et[bt]);this.id="",this.objectNumber=-1}function Bs(Et,wt){this.gState=Et,this.matrix=wt,this.id="",this.objectNumber=-1}function Js(Et,wt,bt,Ht,ie){if(!(this instanceof Js))return new Js(Et,wt,bt,Ht,ie);this.type=Et==="axial"?2:3,this.coords=wt,this.colors=bt,Bs.call(this,Ht,ie)}function ua(Et,wt,bt,Ht,ie){if(!(this instanceof ua))return new ua(Et,wt,bt,Ht,ie);this.boundingBox=Et,this.xStep=wt,this.yStep=bt,this.stream="",this.cloneIndex=0,Bs.call(this,Ht,ie)}function Ho(Et){var wt,bt=typeof arguments[0]=="string"?arguments[0]:"p",Ht=arguments[1],ie=arguments[2],Yt=arguments[3],ge=[],we=1,be=16,$e="S",fn=null;(0,Lt.Z)(Et=Et||{})==="object"&&(bt=Et.orientation,Ht=Et.unit||Ht,ie=Et.format||ie,Yt=Et.compress||Et.compressPdf||Yt,(fn=Et.encryption||null)!==null&&(fn.userPassword=fn.userPassword||"",fn.ownerPassword=fn.ownerPassword||"",fn.userPermissions=fn.userPermissions||[]),we=typeof Et.userUnit=="number"?Math.abs(Et.userUnit):1,Et.precision!==void 0&&(wt=Et.precision),Et.floatPrecision!==void 0&&(be=Et.floatPrecision),$e=Et.defaultPathOperation||"S"),ge=Et.filters||(Yt===!0?["FlateEncode"]:ge),Ht=Ht||"mm",bt=(""+(bt||"P")).toLowerCase();var gn=Et.putOnlyUsedFonts||!1,Pn={},Ke={internal:{},__private__:{}};Ke.__private__.PubSub=Vi;var gi="1.3",Jn=Ke.__private__.getPdfVersion=function(){return gi};Ke.__private__.setPdfVersion=function(fe){gi=fe};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]};Ke.__private__.getPageFormats=function(){return vi};var Rn=Ke.__private__.getPageFormat=function(fe){return vi[fe]};ie=ie||"a4";var di={COMPAT:"compat",ADVANCED:"advanced"},Qi=di.COMPAT;function rr(){this.saveGraphicsState(),Xn(new Es(So,0,0,-So,0,$d()*So).toString()+" cm"),this.setFontSize(this.getFontSize()/So),$e="n",Qi=di.ADVANCED}function Er(){this.restoreGraphicsState(),$e="S",Qi=di.COMPAT}var ao=Ke.__private__.combineFontStyleAndFontWeight=function(fe,yn){if(fe=="bold"&&yn=="normal"||fe=="bold"&&yn==400||fe=="normal"&&yn=="italic"||fe=="bold"&&yn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return yn&&(fe=yn==400||yn==="normal"?fe==="italic"?"italic":"normal":yn!=700&&yn!=="bold"||fe!=="normal"?(yn==700?"bold":yn)+""+fe:"bold"),fe};Ke.advancedAPI=function(fe){var yn=Qi===di.COMPAT;return yn&&rr.call(this),typeof fe!="function"||(fe(this),yn&&Er.call(this)),this},Ke.compatAPI=function(fe){var yn=Qi===di.ADVANCED;return yn&&Er.call(this),typeof fe!="function"||(fe(this),yn&&rr.call(this)),this},Ke.isAdvancedAPI=function(){return Qi===di.ADVANCED};var gr,Ti=function(fe){if(Qi!==di.ADVANCED)throw new Error(fe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xr=Ke.roundToPrecision=Ke.__private__.roundToPrecision=function(fe,yn){var wi=wt||yn;if(isNaN(fe)||isNaN(wi))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return fe.toFixed(wi).replace(/0+$/,"")};gr=Ke.hpf=Ke.__private__.hpf=typeof be=="number"?function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(fe,be)}:be==="smart"?function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(fe,fe>-1&&fe<1?16:5)}:function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(fe,16)};var kr=Ke.f2=Ke.__private__.f2=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.f2");return xr(fe,2)},$n=Ke.__private__.f3=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.f3");return xr(fe,3)},ii=Ke.scale=Ke.__private__.scale=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.scale");return Qi===di.COMPAT?fe*So:Qi===di.ADVANCED?fe:void 0},pe=function(fe){return Qi===di.COMPAT?$d()-fe:Qi===di.ADVANCED?fe:void 0},me=function(fe){return ii(pe(fe))};Ke.__private__.setPrecision=Ke.setPrecision=function(fe){typeof parseInt(fe,10)=="number"&&(wt=parseInt(fe,10))};var Xe,Je="00000000000000000000000000000000",vn=Ke.__private__.getFileId=function(){return Je},nn=Ke.__private__.setFileId=function(fe){return Je=fe!==void 0&&/^[a-fA-F0-9]{32}$/.test(fe)?fe.toUpperCase():Je.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),fn!==null&&(Wu=new fo(fn.userPermissions,fn.userPassword,fn.ownerPassword,Je)),Je};Ke.setFileId=function(fe){return nn(fe),this},Ke.getFileId=function(){return vn()};var Tn=Ke.__private__.convertDateToPDFDate=function(fe){var yn=fe.getTimezoneOffset(),wi=yn<0?"+":"-",_i=Math.floor(Math.abs(yn/60)),ur=Math.abs(yn%60),jr=[wi,mn(_i),"'",mn(ur),"'"].join("");return["D:",fe.getFullYear(),mn(fe.getMonth()+1),mn(fe.getDate()),mn(fe.getHours()),mn(fe.getMinutes()),mn(fe.getSeconds()),jr].join("")},Un=Ke.__private__.convertPDFDateToDate=function(fe){var yn=parseInt(fe.substr(2,4),10),wi=parseInt(fe.substr(6,2),10)-1,_i=parseInt(fe.substr(8,2),10),ur=parseInt(fe.substr(10,2),10),jr=parseInt(fe.substr(12,2),10),Co=parseInt(fe.substr(14,2),10);return new Date(yn,wi,_i,ur,jr,Co,0)},Yn=Ke.__private__.setCreationDate=function(fe){var yn;if(fe===void 0&&(fe=new Date),fe instanceof Date)yn=Tn(fe);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(fe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");yn=fe}return Xe=yn},Qe=Ke.__private__.getCreationDate=function(fe){var yn=Xe;return fe==="jsDate"&&(yn=Un(Xe)),yn};Ke.setCreationDate=function(fe){return Yn(fe),this},Ke.getCreationDate=function(fe){return Qe(fe)};var hn,mn=Ke.__private__.padd2=function(fe){return("0"+parseInt(fe)).slice(-2)},Qn=Ke.__private__.padd2Hex=function(fe){return("00"+(fe=fe.toString())).substr(fe.length)},Zn=0,ni=[],Ei=[],li=0,Xi=[],Zi=[],Ar=!1,br=Ei,io=function(){Zn=0,li=0,Ei=[],ni=[],Xi=[],ka=Kl(),Xa=Kl()};Ke.__private__.setCustomOutputDestination=function(fe){Ar=!0,br=fe};var Ii=function(fe){Ar||(br=fe)};Ke.__private__.resetCustomOutputDestination=function(){Ar=!1,br=Ei};var Xn=Ke.__private__.out=function(fe){return fe=fe.toString(),li+=fe.length+1,br.push(fe),br},Bo=Ke.__private__.write=function(fe){return Xn(arguments.length===1?fe.toString():Array.prototype.join.call(arguments," "))},Pr=Ke.__private__.getArrayBuffer=function(fe){for(var yn=fe.length,wi=new ArrayBuffer(yn),_i=new Uint8Array(wi);yn--;)_i[yn]=fe.charCodeAt(yn);return wi},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]];Ke.__private__.getStandardFonts=function(){return sr};var ar=Et.fontSize||16;Ke.__private__.setFontSize=Ke.setFontSize=function(fe){return ar=Qi===di.ADVANCED?fe/So:fe,this};var qi,pr=Ke.__private__.getFontSize=Ke.getFontSize=function(){return Qi===di.COMPAT?ar:ar*So},Wr=Et.R2L||!1;Ke.__private__.setR2L=Ke.setR2L=function(fe){return Wr=fe,this},Ke.__private__.getR2L=Ke.getR2L=function(){return Wr};var ho,po=Ke.__private__.setZoomMode=function(fe){var yn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(fe))qi=fe;else if(isNaN(fe)){if(yn.indexOf(fe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+fe+'" is not recognized.');qi=fe}else qi=parseInt(fe,10)};Ke.__private__.getZoomMode=function(){return qi};var Ur,jo=Ke.__private__.setPageMode=function(fe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(fe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+fe+'" is not recognized.');ho=fe};Ke.__private__.getPageMode=function(){return ho};var us=Ke.__private__.setLayoutMode=function(fe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(fe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+fe+'" is not recognized.');Ur=fe};Ke.__private__.getLayoutMode=function(){return Ur},Ke.__private__.setDisplayMode=Ke.setDisplayMode=function(fe,yn,wi){return po(fe),us(yn),jo(wi),this};var qo={title:"",subject:"",author:"",keywords:"",creator:""};Ke.__private__.getDocumentProperty=function(fe){if(Object.keys(qo).indexOf(fe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return qo[fe]},Ke.__private__.getDocumentProperties=function(){return qo},Ke.__private__.setDocumentProperties=Ke.setProperties=Ke.setDocumentProperties=function(fe){for(var yn in qo)qo.hasOwnProperty(yn)&&fe[yn]&&(qo[yn]=fe[yn]);return this},Ke.__private__.setDocumentProperty=function(fe,yn){if(Object.keys(qo).indexOf(fe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return qo[fe]=yn};var is,So,wa,Vo,rs,Cs={},qs={},Ua=[],$s={},Ko={},Go={},ds={},es=null,Ts=0,ro=[],Wo=new Vi(Ke),ha=Et.hotfixes||[],Us={},Ql={},Fl=[],Es=function fe(yn,wi,_i,ur,jr,Co){if(!(this instanceof fe))return new fe(yn,wi,_i,ur,jr,Co);isNaN(yn)&&(yn=1),isNaN(wi)&&(wi=0),isNaN(_i)&&(_i=0),isNaN(ur)&&(ur=1),isNaN(jr)&&(jr=0),isNaN(Co)&&(Co=0),this._matrix=[yn,wi,_i,ur,jr,Co]};Object.defineProperty(Es.prototype,"sx",{get:function(){return this._matrix[0]},set:function(fe){this._matrix[0]=fe}}),Object.defineProperty(Es.prototype,"shy",{get:function(){return this._matrix[1]},set:function(fe){this._matrix[1]=fe}}),Object.defineProperty(Es.prototype,"shx",{get:function(){return this._matrix[2]},set:function(fe){this._matrix[2]=fe}}),Object.defineProperty(Es.prototype,"sy",{get:function(){return this._matrix[3]},set:function(fe){this._matrix[3]=fe}}),Object.defineProperty(Es.prototype,"tx",{get:function(){return this._matrix[4]},set:function(fe){this._matrix[4]=fe}}),Object.defineProperty(Es.prototype,"ty",{get:function(){return this._matrix[5]},set:function(fe){this._matrix[5]=fe}}),Object.defineProperty(Es.prototype,"a",{get:function(){return this._matrix[0]},set:function(fe){this._matrix[0]=fe}}),Object.defineProperty(Es.prototype,"b",{get:function(){return this._matrix[1]},set:function(fe){this._matrix[1]=fe}}),Object.defineProperty(Es.prototype,"c",{get:function(){return this._matrix[2]},set:function(fe){this._matrix[2]=fe}}),Object.defineProperty(Es.prototype,"d",{get:function(){return this._matrix[3]},set:function(fe){this._matrix[3]=fe}}),Object.defineProperty(Es.prototype,"e",{get:function(){return this._matrix[4]},set:function(fe){this._matrix[4]=fe}}),Object.defineProperty(Es.prototype,"f",{get:function(){return this._matrix[5]},set:function(fe){this._matrix[5]=fe}}),Object.defineProperty(Es.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Es.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Es.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Es.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Es.prototype.join=function(fe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(gr).join(fe)},Es.prototype.multiply=function(fe){var yn=fe.sx*this.sx+fe.shy*this.shx,wi=fe.sx*this.shy+fe.shy*this.sy,_i=fe.shx*this.sx+fe.sy*this.shx,ur=fe.shx*this.shy+fe.sy*this.sy,jr=fe.tx*this.sx+fe.ty*this.shx+this.tx,Co=fe.tx*this.shy+fe.ty*this.sy+this.ty;return new Es(yn,wi,_i,ur,jr,Co)},Es.prototype.decompose=function(){var fe=this.sx,yn=this.shy,wi=this.shx,_i=this.sy,ur=this.tx,jr=this.ty,Co=Math.sqrt(fe*fe+yn*yn),ps=(fe/=Co)*wi+(yn/=Co)*_i;wi-=fe*ps,_i-=yn*ps;var Ys=Math.sqrt(wi*wi+_i*_i);return ps/=Ys,fe*(_i/=Ys)<yn*(wi/=Ys)&&(fe=-fe,yn=-yn,ps=-ps,Co=-Co),{scale:new Es(Co,0,0,Ys,0,0),translate:new Es(1,0,0,1,ur,jr),rotate:new Es(fe,yn,-yn,fe,0,0),skew:new Es(1,0,ps,1,0,0)}},Es.prototype.toString=function(fe){return this.join(" ")},Es.prototype.inversed=function(){var fe=this.sx,yn=this.shy,wi=this.shx,_i=this.sy,ur=this.tx,jr=this.ty,Co=1/(fe*_i-yn*wi),ps=_i*Co,Ys=-yn*Co,Pa=-wi*Co,ba=fe*Co;return new Es(ps,Ys,Pa,ba,-ps*ur-Pa*jr,-Ys*ur-ba*jr)},Es.prototype.applyToPoint=function(fe){var yn=fe.x*this.sx+fe.y*this.shx+this.tx,wi=fe.x*this.shy+fe.y*this.sy+this.ty;return new Kc(yn,wi)},Es.prototype.applyToRectangle=function(fe){var yn=this.applyToPoint(fe),wi=this.applyToPoint(new Kc(fe.x+fe.w,fe.y+fe.h));return new hA(yn.x,yn.y,wi.x-yn.x,wi.y-yn.y)},Es.prototype.clone=function(){var fe=this.sx,yn=this.shy,wi=this.shx,_i=this.sy,ur=this.tx,jr=this.ty;return new Es(fe,yn,wi,_i,ur,jr)},Ke.Matrix=Es;var da=Ke.matrixMult=function(fe,yn){return yn.multiply(fe)},Dl=new Es(1,0,0,1,0,0);Ke.unitMatrix=Ke.identityMatrix=Dl;var Ao=function(fe,yn){if(!Ko[fe]){var wi=(yn instanceof Js?"Sh":"P")+(Object.keys($s).length+1).toString(10);yn.id=wi,Ko[fe]=wi,$s[wi]=yn,Wo.publish("addPattern",yn)}};Ke.ShadingPattern=Js,Ke.TilingPattern=ua,Ke.addShadingPattern=function(fe,yn){return Ti("addShadingPattern()"),Ao(fe,yn),this},Ke.beginTilingPattern=function(fe){Ti("beginTilingPattern()"),bA(fe.boundingBox[0],fe.boundingBox[1],fe.boundingBox[2]-fe.boundingBox[0],fe.boundingBox[3]-fe.boundingBox[1],fe.matrix)},Ke.endTilingPattern=function(fe,yn){Ti("endTilingPattern()"),yn.stream=Zi[hn].join(`
`),Ao(fe,yn),Wo.publish("endTilingPattern",yn),Fl.pop().restore()};var Ra=Ke.__private__.newObject=function(){var fe=Kl();return ta(fe,!0),fe},Kl=Ke.__private__.newObjectDeferred=function(){return Zn++,ni[Zn]=function(){return li},Zn},ta=function(fe,yn){return yn=typeof yn=="boolean"&&yn,ni[fe]=li,yn&&Xn(fe+" 0 obj"),fe},ca=Ke.__private__.newAdditionalObject=function(){var fe={objId:Kl(),content:""};return Xi.push(fe),fe},ka=Kl(),Xa=Kl(),al=Ke.__private__.decodeColorString=function(fe){var yn=fe.split(" ");if(yn.length!==2||yn[1]!=="g"&&yn[1]!=="G")yn.length===5&&(yn[4]==="k"||yn[4]==="K")&&(yn=[(1-yn[0])*(1-yn[3]),(1-yn[1])*(1-yn[3]),(1-yn[2])*(1-yn[3]),"r"]);else{var wi=parseFloat(yn[0]);yn=[wi,wi,wi,"r"]}for(var _i="#",ur=0;ur<3;ur++)_i+=("0"+Math.floor(255*parseFloat(yn[ur])).toString(16)).slice(-2);return _i},Rs=Ke.__private__.encodeColorString=function(fe){var yn;typeof fe=="string"&&(fe={ch1:fe});var wi=fe.ch1,_i=fe.ch2,ur=fe.ch3,jr=fe.ch4,Co=fe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof wi=="string"&&wi.charAt(0)!=="#"){var ps=new Io(wi);if(ps.ok)wi=ps.toHex();else if(!/^\d*\.?\d*$/.test(wi))throw new Error('Invalid color "'+wi+'" passed to jsPDF.encodeColorString.')}if(typeof wi=="string"&&/^#[0-9A-Fa-f]{3}$/.test(wi)&&(wi="#"+wi[1]+wi[1]+wi[2]+wi[2]+wi[3]+wi[3]),typeof wi=="string"&&/^#[0-9A-Fa-f]{6}$/.test(wi)){var Ys=parseInt(wi.substr(1),16);wi=Ys>>16&255,_i=Ys>>8&255,ur=255&Ys}if(_i===void 0||jr===void 0&&wi===_i&&_i===ur)if(typeof wi=="string")yn=wi+" "+Co[0];else switch(fe.precision){case 2:yn=kr(wi/255)+" "+Co[0];break;case 3:default:yn=$n(wi/255)+" "+Co[0]}else if(jr===void 0||(0,Lt.Z)(jr)==="object"){if(jr&&!isNaN(jr.a)&&jr.a===0)return yn=["1.","1.","1.",Co[1]].join(" ");if(typeof wi=="string")yn=[wi,_i,ur,Co[1]].join(" ");else switch(fe.precision){case 2:yn=[kr(wi/255),kr(_i/255),kr(ur/255),Co[1]].join(" ");break;default:case 3:yn=[$n(wi/255),$n(_i/255),$n(ur/255),Co[1]].join(" ")}}else if(typeof wi=="string")yn=[wi,_i,ur,jr,Co[2]].join(" ");else switch(fe.precision){case 2:yn=[kr(wi),kr(_i),kr(ur),kr(jr),Co[2]].join(" ");break;case 3:default:yn=[$n(wi),$n(_i),$n(ur),$n(jr),Co[2]].join(" ")}return yn},Ta=Ke.__private__.getFilters=function(){return ge},xl=Ke.__private__.putStream=function(fe){var yn=(fe=fe||{}).data||"",wi=fe.filters||Ta(),_i=fe.alreadyAppliedFilters||[],ur=fe.addLength1||!1,jr=yn.length,Co=fe.objectId,ps=function(zl){return zl};if(fn!==null&&Co===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");fn!==null&&(ps=Wu.encryptor(Co,0));var Ys={};wi===!0&&(wi=["FlateEncode"]);var Pa=fe.additionalKeyValues||[],ba=(Ys=Ho.API.processDataByFilters!==void 0?Ho.API.processDataByFilters(yn,wi):{data:yn,reverseChain:[]}).reverseChain+(Array.isArray(_i)?_i.join(" "):_i.toString());if(Ys.data.length!==0&&(Pa.push({key:"Length",value:Ys.data.length}),ur===!0&&Pa.push({key:"Length1",value:jr})),ba.length!=0)if(ba.split("/").length-1==1)Pa.push({key:"Filter",value:ba});else{Pa.push({key:"Filter",value:"["+ba+"]"});for(var ms=0;ms<Pa.length;ms+=1)if(Pa[ms].key==="DecodeParms"){for(var nu=[],iu=0;iu<Ys.reverseChain.split("/").length-1;iu+=1)nu.push("null");nu.push(Pa[ms].value),Pa[ms].value="["+nu.join(" ")+"]"}}Xn("<<");for(var Ka=0;Ka<Pa.length;Ka++)Xn("/"+Pa[Ka].key+" "+Pa[Ka].value);Xn(">>"),Ys.data.length!==0&&(Xn("stream"),Xn(ps(Ys.data)),Xn("endstream"))},pu=Ke.__private__.putPage=function(fe){var yn=fe.number,wi=fe.data,_i=fe.objId,ur=fe.contentsObjId;ta(_i,!0),Xn("<</Type /Page"),Xn("/Parent "+fe.rootDictionaryObjId+" 0 R"),Xn("/Resources "+fe.resourceDictionaryObjId+" 0 R"),Xn("/MediaBox ["+parseFloat(gr(fe.mediaBox.bottomLeftX))+" "+parseFloat(gr(fe.mediaBox.bottomLeftY))+" "+gr(fe.mediaBox.topRightX)+" "+gr(fe.mediaBox.topRightY)+"]"),fe.cropBox!==null&&Xn("/CropBox ["+gr(fe.cropBox.bottomLeftX)+" "+gr(fe.cropBox.bottomLeftY)+" "+gr(fe.cropBox.topRightX)+" "+gr(fe.cropBox.topRightY)+"]"),fe.bleedBox!==null&&Xn("/BleedBox ["+gr(fe.bleedBox.bottomLeftX)+" "+gr(fe.bleedBox.bottomLeftY)+" "+gr(fe.bleedBox.topRightX)+" "+gr(fe.bleedBox.topRightY)+"]"),fe.trimBox!==null&&Xn("/TrimBox ["+gr(fe.trimBox.bottomLeftX)+" "+gr(fe.trimBox.bottomLeftY)+" "+gr(fe.trimBox.topRightX)+" "+gr(fe.trimBox.topRightY)+"]"),fe.artBox!==null&&Xn("/ArtBox ["+gr(fe.artBox.bottomLeftX)+" "+gr(fe.artBox.bottomLeftY)+" "+gr(fe.artBox.topRightX)+" "+gr(fe.artBox.topRightY)+"]"),typeof fe.userUnit=="number"&&fe.userUnit!==1&&Xn("/UserUnit "+fe.userUnit),Wo.publish("putPage",{objId:_i,pageContext:ro[yn],pageNumber:yn,page:wi}),Xn("/Contents "+ur+" 0 R"),Xn(">>"),Xn("endobj");var jr=wi.join(`
`);return Qi===di.ADVANCED&&(jr+=`
Q`),ta(ur,!0),xl({data:jr,filters:Ta(),objectId:ur}),Xn("endobj"),_i},au=Ke.__private__.putPages=function(){var fe,yn,wi=[];for(fe=1;fe<=Ts;fe++)ro[fe].objId=Kl(),ro[fe].contentsObjId=Kl();for(fe=1;fe<=Ts;fe++)wi.push(pu({number:fe,data:Zi[fe],objId:ro[fe].objId,contentsObjId:ro[fe].contentsObjId,mediaBox:ro[fe].mediaBox,cropBox:ro[fe].cropBox,bleedBox:ro[fe].bleedBox,trimBox:ro[fe].trimBox,artBox:ro[fe].artBox,userUnit:ro[fe].userUnit,rootDictionaryObjId:ka,resourceDictionaryObjId:Xa}));ta(ka,!0),Xn("<</Type /Pages");var _i="/Kids [";for(yn=0;yn<Ts;yn++)_i+=wi[yn]+" 0 R ";Xn(_i+"]"),Xn("/Count "+Ts),Xn(">>"),Xn("endobj"),Wo.publish("postPutPages")},Uu=function(fe){Wo.publish("putFont",{font:fe,out:Xn,newObject:Ra,putStream:xl}),fe.isAlreadyPutted!==!0&&(fe.objectNumber=Ra(),Xn("<<"),Xn("/Type /Font"),Xn("/BaseFont /"+co(fe.postScriptName)),Xn("/Subtype /Type1"),typeof fe.encoding=="string"&&Xn("/Encoding /"+fe.encoding),Xn("/FirstChar 32"),Xn("/LastChar 255"),Xn(">>"),Xn("endobj"))},Xu=function(){for(var fe in Cs)Cs.hasOwnProperty(fe)&&(gn===!1||gn===!0&&Pn.hasOwnProperty(fe))&&Uu(Cs[fe])},dh=function(fe){fe.objectNumber=Ra();var yn=[];yn.push({key:"Type",value:"/XObject"}),yn.push({key:"Subtype",value:"/Form"}),yn.push({key:"BBox",value:"["+[gr(fe.x),gr(fe.y),gr(fe.x+fe.width),gr(fe.y+fe.height)].join(" ")+"]"}),yn.push({key:"Matrix",value:"["+fe.matrix.toString()+"]"});var wi=fe.pages[1].join(`
`);xl({data:wi,additionalKeyValues:yn,objectId:fe.objectNumber}),Xn("endobj")},$u=function(){for(var fe in Us)Us.hasOwnProperty(fe)&&dh(Us[fe])},_a=function(fe,yn){var wi,_i=[],ur=1/(yn-1);for(wi=0;wi<1;wi+=ur)_i.push(wi);if(_i.push(1),fe[0].offset!=0){var jr={offset:0,color:fe[0].color};fe.unshift(jr)}if(fe[fe.length-1].offset!=1){var Co={offset:1,color:fe[fe.length-1].color};fe.push(Co)}for(var ps="",Ys=0,Pa=0;Pa<_i.length;Pa++){for(wi=_i[Pa];wi>fe[Ys+1].offset;)Ys++;var ba=fe[Ys].offset,ms=(wi-ba)/(fe[Ys+1].offset-ba),nu=fe[Ys].color,iu=fe[Ys+1].color;ps+=Qn(Math.round((1-ms)*nu[0]+ms*iu[0]).toString(16))+Qn(Math.round((1-ms)*nu[1]+ms*iu[1]).toString(16))+Qn(Math.round((1-ms)*nu[2]+ms*iu[2]).toString(16))}return ps.trim()},Bu=function(fe,yn){yn||(yn=21);var wi=Ra(),_i=_a(fe.colors,yn),ur=[];ur.push({key:"FunctionType",value:"0"}),ur.push({key:"Domain",value:"[0.0 1.0]"}),ur.push({key:"Size",value:"["+yn+"]"}),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:wi}),Xn("endobj"),fe.objectNumber=Ra(),Xn("<< /ShadingType "+fe.type),Xn("/ColorSpace /DeviceRGB");var jr="/Coords ["+gr(parseFloat(fe.coords[0]))+" "+gr(parseFloat(fe.coords[1]))+" ";fe.type===2?jr+=gr(parseFloat(fe.coords[2]))+" "+gr(parseFloat(fe.coords[3])):jr+=gr(parseFloat(fe.coords[2]))+" "+gr(parseFloat(fe.coords[3]))+" "+gr(parseFloat(fe.coords[4]))+" "+gr(parseFloat(fe.coords[5])),Xn(jr+="]"),fe.matrix&&Xn("/Matrix ["+fe.matrix.toString()+"]"),Xn("/Function "+wi+" 0 R"),Xn("/Extend [true true]"),Xn(">>"),Xn("endobj")},jl=function(fe,yn){var wi=Kl(),_i=Ra();yn.push({resourcesOid:wi,objectOid:_i}),fe.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:"["+fe.boundingBox.map(gr).join(" ")+"]"}),ur.push({key:"XStep",value:gr(fe.xStep)}),ur.push({key:"YStep",value:gr(fe.yStep)}),ur.push({key:"Resources",value:wi+" 0 R"}),fe.matrix&&ur.push({key:"Matrix",value:"["+fe.matrix.toString()+"]"}),xl({data:fe.stream,additionalKeyValues:ur,objectId:fe.objectNumber}),Xn("endobj")},nl=function(fe){var yn;for(yn in $s)$s.hasOwnProperty(yn)&&($s[yn]instanceof Js?Bu($s[yn]):$s[yn]instanceof ua&&jl($s[yn],fe))},ph=function(fe){for(var yn in fe.objectNumber=Ra(),Xn("<<"),fe)switch(yn){case"opacity":Xn("/ca "+kr(fe[yn]));break;case"stroke-opacity":Xn("/CA "+kr(fe[yn]))}Xn(">>"),Xn("endobj")},Cc=function(){var fe;for(fe in Go)Go.hasOwnProperty(fe)&&ph(Go[fe])},mh=function(){for(var fe in Xn("/XObject <<"),Us)Us.hasOwnProperty(fe)&&Us[fe].objectNumber>=0&&Xn("/"+fe+" "+Us[fe].objectNumber+" 0 R");Wo.publish("putXobjectDict"),Xn(">>")},ic=function(){Wu.oid=Ra(),Xn("<<"),Xn("/Filter /Standard"),Xn("/V "+Wu.v),Xn("/R "+Wu.r),Xn("/U <"+Wu.toHexString(Wu.U)+">"),Xn("/O <"+Wu.toHexString(Wu.O)+">"),Xn("/P "+Wu.P),Xn(">>"),Xn("endobj")},rc=function(){for(var fe in Xn("/Font <<"),Cs)Cs.hasOwnProperty(fe)&&(gn===!1||gn===!0&&Pn.hasOwnProperty(fe))&&Xn("/"+fe+" "+Cs[fe].objectNumber+" 0 R");Xn(">>")},vh=function(){if(Object.keys($s).length>0){for(var fe in Xn("/Shading <<"),$s)$s.hasOwnProperty(fe)&&$s[fe]instanceof Js&&$s[fe].objectNumber>=0&&Xn("/"+fe+" "+$s[fe].objectNumber+" 0 R");Wo.publish("putShadingPatternDict"),Xn(">>")}},ga=function(fe){if(Object.keys($s).length>0){for(var yn in Xn("/Pattern <<"),$s)$s.hasOwnProperty(yn)&&$s[yn]instanceof Ke.TilingPattern&&$s[yn].objectNumber>=0&&$s[yn].objectNumber<fe&&Xn("/"+yn+" "+$s[yn].objectNumber+" 0 R");Wo.publish("putTilingPatternDict"),Xn(">>")}},Sl=function(){if(Object.keys(Go).length>0){var fe;for(fe in Xn("/ExtGState <<"),Go)Go.hasOwnProperty(fe)&&Go[fe].objectNumber>=0&&Xn("/"+fe+" "+Go[fe].objectNumber+" 0 R");Wo.publish("putGStateDict"),Xn(">>")}},Ba=function(fe){ta(fe.resourcesOid,!0),Xn("<<"),Xn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),rc(),vh(),ga(fe.objectOid),Sl(),mh(),Xn(">>"),Xn("endobj")},pl=function(){var fe=[];Xu(),Cc(),$u(),nl(fe),Wo.publish("putResources"),fe.forEach(Ba),Ba({resourcesOid:Xa,objectOid:Number.MAX_SAFE_INTEGER}),Wo.publish("postPutResources")},pa=function(){Wo.publish("putAdditionalObjects");for(var fe=0;fe<Xi.length;fe++){var yn=Xi[fe];ta(yn.objId,!0),Xn(yn.content),Xn("endobj")}Wo.publish("postPutAdditionalObjects")},lu=function(fe){qs[fe.fontName]=qs[fe.fontName]||{},qs[fe.fontName][fe.fontStyle]=fe.id},Fu=function(fe,yn,wi,_i,ur){var jr={id:"F"+(Object.keys(Cs).length+1).toString(10),postScriptName:fe,fontName:yn,fontStyle:wi,encoding:_i,isStandardFont:ur||!1,metadata:{}};return Wo.publish("addFont",{font:jr,instance:this}),Cs[jr.id]=jr,lu(jr),jr.id},zh=function(fe){for(var yn=0,wi=sr.length;yn<wi;yn++){var _i=Fu.call(this,fe[yn][0],fe[yn][1],fe[yn][2],sr[yn][3],!0);gn===!1&&(Pn[_i]=!0);var ur=fe[yn][0].split("-");lu({id:_i,fontName:ur[0],fontStyle:ur[1]||""})}Wo.publish("addFonts",{fonts:Cs,dictionary:qs})},Ih=function(fe){return fe.foo=function(){try{return fe.apply(this,arguments)}catch(_i){var yn=_i.stack||"";~yn.indexOf(" at ")&&(yn=yn.split(" at ")[1]);var wi="Error in function "+yn.split(`
`)[0].split("<")[0]+": "+_i.message;if(!Br.console)throw new Error(wi);Br.console.error(wi,_i),Br.alert&&alert(wi)}},fe.foo.bar=fe,fe.foo},_n=function(fe,yn){var wi,_i,ur,jr,Co,ps,Ys,Pa,ba;if(ur=(yn=yn||{}).sourceEncoding||"Unicode",Co=yn.outputEncoding,(yn.autoencode||Co)&&Cs[is].metadata&&Cs[is].metadata[ur]&&Cs[is].metadata[ur].encoding&&(jr=Cs[is].metadata[ur].encoding,!Co&&Cs[is].encoding&&(Co=Cs[is].encoding),!Co&&jr.codePages&&(Co=jr.codePages[0]),typeof Co=="string"&&(Co=jr[Co]),Co)){for(Ys=!1,ps=[],wi=0,_i=fe.length;wi<_i;wi++)(Pa=Co[fe.charCodeAt(wi)])?ps.push(String.fromCharCode(Pa)):ps.push(fe[wi]),ps[wi].charCodeAt(0)>>8&&(Ys=!0);fe=ps.join("")}for(wi=fe.length;Ys===void 0&&wi!==0;)fe.charCodeAt(wi-1)>>8&&(Ys=!0),wi--;if(!Ys)return fe;for(ps=yn.noBOM?[]:[254,255],wi=0,_i=fe.length;wi<_i;wi++){if((ba=(Pa=fe.charCodeAt(wi))>>8)>>8)throw new Error("Character at position "+wi+" of string '"+fe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ps.push(ba),ps.push(Pa-(ba<<8))}return String.fromCharCode.apply(void 0,ps)},Ru=Ke.__private__.pdfEscape=Ke.pdfEscape=function(fe,yn){return _n(fe,yn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kh=Ke.__private__.beginPage=function(fe){Zi[++Ts]=[],ro[Ts]={objId:0,contentsObjId:0,userUnit:Number(we),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(fe[0]),topRightY:Number(fe[1])}},gc(Ts),Ii(Zi[hn])},lA=function(fe,yn){var wi,_i,ur;switch(bt=yn||bt,typeof fe=="string"&&(wi=Rn(fe.toLowerCase()),Array.isArray(wi)&&(_i=wi[0],ur=wi[1])),Array.isArray(fe)&&(_i=fe[0]*So,ur=fe[1]*So),isNaN(_i)&&(_i=ie[0],ur=ie[1]),(_i>14400||ur>14400)&&(bo.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],bt.substr(0,1)){case"l":ur>_i&&(ie=[ur,_i]);break;case"p":_i>ur&&(ie=[ur,_i])}kh(ie),Ph(Mu),Xn(oc),KA!==0&&Xn(KA+" J"),bd!==0&&Xn(bd+" j"),Wo.publish("addPage",{pageNumber:Ts})},nd=function(fe){fe>0&&fe<=Ts&&(Zi.splice(fe,1),ro.splice(fe,1),Ts--,hn>Ts&&(hn=Ts),this.setPage(hn))},gc=function(fe){fe>0&&fe<=Ts&&(hn=fe)},xd=Ke.__private__.getNumberOfPages=Ke.getNumberOfPages=function(){return Zi.length-1},SA=function(fe,yn,wi){var _i,ur=void 0;return wi=wi||{},fe=fe!==void 0?fe:Cs[is].fontName,yn=yn!==void 0?yn:Cs[is].fontStyle,_i=fe.toLowerCase(),qs[_i]!==void 0&&qs[_i][yn]!==void 0?ur=qs[_i][yn]:qs[fe]!==void 0&&qs[fe][yn]!==void 0?ur=qs[fe][yn]:wi.disableWarning===!1&&bo.warn("Unable to look up font label for font '"+fe+"', '"+yn+"'. Refer to getFontList() for available fonts."),ur||wi.noFallback||(ur=qs.times[yn])==null&&(ur=qs.times.normal),ur},Lu=Ke.__private__.putInfo=function(){var fe=Ra(),yn=function(_i){return _i};for(var wi in fn!==null&&(yn=Wu.encryptor(fe,0)),Xn("<<"),Xn("/Producer ("+Ru(yn("jsPDF "+Ho.version))+")"),qo)qo.hasOwnProperty(wi)&&qo[wi]&&Xn("/"+wi.substr(0,1).toUpperCase()+wi.substr(1)+" ("+Ru(yn(qo[wi]))+")");Xn("/CreationDate ("+Ru(yn(Xe))+")"),Xn(">>"),Xn("endobj")},jc=Ke.__private__.putCatalog=function(fe){var yn=(fe=fe||{}).rootDictionaryObjId||ka;switch(Ra(),Xn("<<"),Xn("/Type /Catalog"),Xn("/Pages "+yn+" 0 R"),qi||(qi="fullwidth"),qi){case"fullwidth":Xn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Xn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Xn("/OpenAction [3 0 R /Fit]");break;case"original":Xn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var wi=""+qi;wi.substr(wi.length-1)==="%"&&(qi=parseInt(qi)/100),typeof qi=="number"&&Xn("/OpenAction [3 0 R /XYZ null null "+kr(qi)+"]")}switch(Ur||(Ur="continuous"),Ur){case"continuous":Xn("/PageLayout /OneColumn");break;case"single":Xn("/PageLayout /SinglePage");break;case"two":case"twoleft":Xn("/PageLayout /TwoColumnLeft");break;case"tworight":Xn("/PageLayout /TwoColumnRight")}ho&&Xn("/PageMode /"+ho),Wo.publish("putCatalog"),Xn(">>"),Xn("endobj")},Kd=Ke.__private__.putTrailer=function(){Xn("trailer"),Xn("<<"),Xn("/Size "+(Zn+1)),Xn("/Root "+Zn+" 0 R"),Xn("/Info "+(Zn-1)+" 0 R"),fn!==null&&Xn("/Encrypt "+Wu.oid+" 0 R"),Xn("/ID [ <"+Je+"> <"+Je+"> ]"),Xn(">>")},id=Ke.__private__.putHeader=function(){Xn("%PDF-"+gi),Xn("%\xBA\xDF\xAC\xE0")},CA=Ke.__private__.putXRef=function(){var fe="0000000000";Xn("xref"),Xn("0 "+(Zn+1)),Xn("0000000000 65535 f ");for(var yn=1;yn<=Zn;yn++)typeof ni[yn]=="function"?Xn((fe+ni[yn]()).slice(-10)+" 00000 n "):ni[yn]!==void 0?Xn((fe+ni[yn]).slice(-10)+" 00000 n "):Xn("0000000000 00000 n ")},Uc=Ke.__private__.buildDocument=function(){io(),Ii(Ei),Wo.publish("buildDocument"),id(),au(),pa(),pl(),fn!==null&&ic(),Lu(),jc();var fe=li;return CA(),Kd(),Xn("startxref"),Xn(""+fe),Xn("%%EOF"),Ii(Zi[hn]),Ei.join(`
`)},Sd=Ke.__private__.getBlob=function(fe){return new Blob([Pr(fe)],{type:"application/pdf"})},Yu=Ke.output=Ke.__private__.output=Ih(function(fe,yn){switch(typeof(yn=yn||{})=="string"?yn={filename:yn}:yn.filename=yn.filename||"generated.pdf",fe){case void 0:return Uc();case"save":Ke.save(yn.filename);break;case"arraybuffer":return Pr(Uc());case"blob":return Sd(Uc());case"bloburi":case"bloburl":if(Br.URL!==void 0&&typeof Br.URL.createObjectURL=="function")return Br.URL&&Br.URL.createObjectURL(Sd(Uc()))||void 0;bo.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var wi="",_i=Uc();try{wi=va(_i)}catch(iu){wi=va(unescape(encodeURIComponent(_i)))}return"data:application/pdf;filename="+yn.filename+";base64,"+wi;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Br)==="[object Window]"){var ur="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",jr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';yn.pdfObjectUrl&&(ur=yn.pdfObjectUrl,jr="");var Co='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ur+'"'+jr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(yn)+");<\/script></body></html>",ps=Br.open();return ps!==null&&ps.document.write(Co),ps}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Br)==="[object Window]"){var Ys='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(yn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+yn.filename+'" width="500px" height="400px" /></body></html>',Pa=Br.open();if(Pa!==null){Pa.document.write(Ys);var ba=this;Pa.document.documentElement.querySelector("#pdfViewer").onload=function(){Pa.document.title=yn.filename,Pa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ba.output("bloburl"))}}return Pa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Br)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ms='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",yn)+'"></iframe></body></html>',nu=Br.open();if(nu!==null&&(nu.document.write(ms),nu.document.title=yn.filename),nu||typeof safari=="undefined")return nu;break;case"datauri":case"dataurl":return Br.document.location.href=this.output("datauristring",yn);default:return null}}),sh=function(fe){return Array.isArray(ha)===!0&&ha.indexOf(fe)>-1};switch(Ht){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=sh("px_scaling")==1?.75:96/72;break;case"pc":case"em":So=12;break;case"ex":So=6;break;default:if(typeof Ht!="number")throw new Error("Invalid unit: "+Ht);So=Ht}var Wu=null;Yn(),nn();var BA=function(fe){return fn!==null?Wu.encryptor(fe,0):function(yn){return yn}},Kh=Ke.__private__.getPageInfo=Ke.getPageInfo=function(fe){if(isNaN(fe)||fe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ro[fe].objId,pageNumber:fe,pageContext:ro[fe]}},na=Ke.__private__.getPageInfoByObjId=function(fe){if(isNaN(fe)||fe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var yn in ro)if(ro[yn].objId===fe)break;return Kh(yn)},Cd=Ke.__private__.getCurrentPageInfo=Ke.getCurrentPageInfo=function(){return{objId:ro[hn].objId,pageNumber:hn,pageContext:ro[hn]}};Ke.addPage=function(){return lA.apply(this,arguments),this},Ke.setPage=function(){return gc.apply(this,arguments),Ii.call(this,Zi[hn]),this},Ke.insertPage=function(fe){return this.addPage(),this.movePage(hn,fe),this},Ke.movePage=function(fe,yn){var wi,_i;if(fe>yn){wi=Zi[fe],_i=ro[fe];for(var ur=fe;ur>yn;ur--)Zi[ur]=Zi[ur-1],ro[ur]=ro[ur-1];Zi[yn]=wi,ro[yn]=_i,this.setPage(yn)}else if(fe<yn){wi=Zi[fe],_i=ro[fe];for(var jr=fe;jr<yn;jr++)Zi[jr]=Zi[jr+1],ro[jr]=ro[jr+1];Zi[yn]=wi,ro[yn]=_i,this.setPage(yn)}return this},Ke.deletePage=function(){return nd.apply(this,arguments),this},Ke.__private__.text=Ke.text=function(fe,yn,wi,_i,ur){var jr,Co,ps,Ys,Pa,ba,ms,nu,iu,Ka=(_i=_i||{}).scope||this;if(typeof fe=="number"&&typeof yn=="number"&&(typeof wi=="string"||Array.isArray(wi))){var zl=wi;wi=yn,yn=fe,fe=zl}if(arguments[3]instanceof Es?(Ti("The transform parameter of text() with a Matrix value"),iu=ur):(ps=arguments[4],Ys=arguments[5],(0,Lt.Z)(ms=arguments[3])==="object"&&ms!==null||(typeof ps=="string"&&(Ys=ps,ps=null),typeof ms=="string"&&(Ys=ms,ms=null),typeof ms=="number"&&(ps=ms,ms=null),_i={flags:ms,angle:ps,align:Ys})),isNaN(yn)||isNaN(wi)||fe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(fe.length===0)return Ka;var Nu="",sc=!1,bh=typeof _i.lineHeightFactor=="number"?_i.lineHeightFactor:$a,ac=Ka.internal.scaleFactor;function LA(La){return La=La.split(" ").join(Array(_i.TabLen||9).join(" ")),Ru(La,ms)}function dA(La){for(var Sa,vl=La.concat(),yl=[],Eo=vl.length;Eo--;)typeof(Sa=vl.shift())=="string"?yl.push(Sa):Array.isArray(La)&&(Sa.length===1||Sa[1]===void 0&&Sa[2]===void 0)?yl.push(Sa[0]):yl.push([Sa[0],Sa[1],Sa[2]]);return yl}function MA(La,Sa){var vl;if(typeof La=="string")vl=Sa(La)[0];else if(Array.isArray(La)){for(var yl,Eo,Ca=La.concat(),Ml=[],Nl=Ca.length;Nl--;)typeof(yl=Ca.shift())=="string"?Ml.push(Sa(yl)[0]):Array.isArray(yl)&&typeof yl[0]=="string"&&(Eo=Sa(yl[0],yl[1],yl[2]),Ml.push([Eo[0],Eo[1],Eo[2]]));vl=Ml}return vl}var pc=!1,Fd=!0;if(typeof fe=="string")pc=!0;else if(Array.isArray(fe)){var Gc=fe.concat();Co=[];for(var ml,Iu=Gc.length;Iu--;)(typeof(ml=Gc.shift())!="string"||Array.isArray(ml)&&typeof ml[0]!="string")&&(Fd=!1);pc=Fd}if(pc===!1)throw new Error('Type of text must be string or Array. "'+fe+'" is not recognized.');typeof fe=="string"&&(fe=fe.match(/[\r?\n]/)?fe.split(/\r\n|\r|\n/g):[fe]);var Yd=ar/Ka.internal.scaleFactor,Gl=Yd*(bh-1);switch(_i.baseline){case"bottom":wi-=Gl;break;case"top":wi+=Yd-Gl;break;case"hanging":wi+=Yd-2*Gl;break;case"middle":wi+=Yd/2-Gl}if((ba=_i.maxWidth||0)>0&&(typeof fe=="string"?fe=Ka.splitTextToSize(fe,ba):Object.prototype.toString.call(fe)==="[object Array]"&&(fe=fe.reduce(function(La,Sa){return La.concat(Ka.splitTextToSize(Sa,ba))},[]))),jr={text:fe,x:yn,y:wi,options:_i,mutex:{pdfEscape:Ru,activeFontKey:is,fonts:Cs,activeFontSize:ar}},Wo.publish("preProcessText",jr),fe=jr.text,ps=(_i=jr.options).angle,!(iu instanceof Es)&&ps&&typeof ps=="number"){ps*=Math.PI/180,_i.rotationDirection===0&&(ps=-ps),Qi===di.ADVANCED&&(ps=-ps);var Oh=Math.cos(ps),mc=Math.sin(ps);iu=new Es(Oh,mc,-mc,Oh,0,0)}else ps&&ps instanceof Es&&(iu=ps);Qi!==di.ADVANCED||iu||(iu=Dl),(Pa=_i.charSpace||uA)!==void 0&&(Nu+=gr(ii(Pa))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(nu=_i.horizontalScale)!==void 0&&(Nu+=gr(100*nu)+` Tz
`),_i.lang;var qu=-1,Wl=_i.renderingMode!==void 0?_i.renderingMode:_i.stroke,Ld=Ka.internal.getCurrentPageInfo().pageContext;switch(Wl){case 0:case!1:case"fill":qu=0;break;case 1:case!0:case"stroke":qu=1;break;case 2:case"fillThenStroke":qu=2;break;case 3:case"invisible":qu=3;break;case 4:case"fillAndAddForClipping":qu=4;break;case 5:case"strokeAndAddPathForClipping":qu=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":qu=6;break;case 7:case"addToPathForClipping":qu=7}var Dh=Ld.usedRenderingMode!==void 0?Ld.usedRenderingMode:-1;qu!==-1?Nu+=qu+` Tr
`:Dh!==-1&&(Nu+=`0 Tr
`),qu!==-1&&(Ld.usedRenderingMode=qu),Ys=_i.align||"left";var ah,sd=ar*bh,it=Ka.internal.pageSize.getWidth(),st=Cs[is];Pa=_i.charSpace||uA,ba=_i.maxWidth||0,ms=Object.assign({autoencode:!0,noBOM:!0},_i.flags);var mt=[],pt=function(La){return Ka.getStringUnitWidth(La,{font:st,charSpace:Pa,fontSize:ar,doKerning:!1})*ar/ac};if(Object.prototype.toString.call(fe)==="[object Array]"){var Bt;Co=dA(fe),Ys!=="left"&&(ah=Co.map(pt));var Jt,Se=0;if(Ys==="right"){yn-=ah[0],fe=[],Iu=Co.length;for(var Ue=0;Ue<Iu;Ue++)Ue===0?(Jt=Vu(yn),Bt=yh(wi)):(Jt=ii(Se-ah[Ue]),Bt=-sd),fe.push([Co[Ue],Jt,Bt]),Se=ah[Ue]}else if(Ys==="center"){yn-=ah[0]/2,fe=[],Iu=Co.length;for(var Oe=0;Oe<Iu;Oe++)Oe===0?(Jt=Vu(yn),Bt=yh(wi)):(Jt=ii((Se-ah[Oe])/2),Bt=-sd),fe.push([Co[Oe],Jt,Bt]),Se=ah[Oe]}else if(Ys==="left"){fe=[],Iu=Co.length;for(var ln=0;ln<Iu;ln++)fe.push(Co[ln])}else if(Ys==="justify"&&st.encoding==="Identity-H"){fe=[],Iu=Co.length,ba=ba!==0?ba:it;for(var ri=0,pn=0;pn<Iu;pn++)if(Bt=pn===0?yh(wi):-sd,Jt=pn===0?Vu(yn):ri,pn<Iu-1){var ki=ii((ba-ah[pn])/(Co[pn].split(" ").length-1)),bi=Co[pn].split(" ");fe.push([bi[0]+" ",Jt,Bt]),ri=0;for(var yr=1;yr<bi.length;yr++){var Tr=(pt(bi[yr-1]+" "+bi[yr])-pt(bi[yr]))*ac+ki;yr==bi.length-1?fe.push([bi[yr],Tr,0]):fe.push([bi[yr]+" ",Tr,0]),ri-=Tr}}else fe.push([Co[pn],Jt,Bt]);fe.push(["",ri,0])}else{if(Ys!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(fe=[],Iu=Co.length,ba=ba!==0?ba:it,pn=0;pn<Iu;pn++)Bt=pn===0?yh(wi):-sd,Jt=pn===0?Vu(yn):0,pn<Iu-1?mt.push(gr(ii((ba-ah[pn])/(Co[pn].split(" ").length-1)))):mt.push(0),fe.push([Co[pn],Jt,Bt])}}var qr=typeof _i.R2L=="boolean"?_i.R2L:Wr;qr===!0&&(fe=MA(fe,function(La,Sa,vl){return[La.split("").reverse().join(""),Sa,vl]})),jr={text:fe,x:yn,y:wi,options:_i,mutex:{pdfEscape:Ru,activeFontKey:is,fonts:Cs,activeFontSize:ar}},Wo.publish("postProcessText",jr),fe=jr.text,sc=jr.mutex.isHex||!1;var vo=Cs[is].encoding;vo!=="WinAnsiEncoding"&&vo!=="StandardEncoding"||(fe=MA(fe,function(La,Sa,vl){return[LA(La),Sa,vl]})),Co=dA(fe),fe=[];for(var $o,ko,ss,Ns=0,To=1,ea=Array.isArray(Co[0])?To:Ns,Cl="",ku=function(La,Sa,vl){var yl="";return vl instanceof Es?(vl=typeof _i.angle=="number"?da(vl,new Es(1,0,0,1,La,Sa)):da(new Es(1,0,0,1,La,Sa),vl),Qi===di.ADVANCED&&(vl=da(new Es(1,0,0,-1,0,0),vl)),yl=vl.join(" ")+` Tm
`):yl=gr(La)+" "+gr(Sa)+` Td
`,yl},cl=0;cl<Co.length;cl++){switch(Cl="",ea){case To:ss=(sc?"<":"(")+Co[cl][0]+(sc?">":")"),$o=parseFloat(Co[cl][1]),ko=parseFloat(Co[cl][2]);break;case Ns:ss=(sc?"<":"(")+Co[cl]+(sc?">":")"),$o=Vu(yn),ko=yh(wi)}mt!==void 0&&mt[cl]!==void 0&&(Cl=mt[cl]+` Tw
`),cl===0?fe.push(Cl+ku($o,ko,iu)+ss):ea===Ns?fe.push(Cl+ss):ea===To&&fe.push(Cl+ku($o,ko,iu)+ss)}fe=ea===Ns?fe.join(` Tj
T* `):fe.join(` Tj
`),fe+=` Tj
`;var yu=`BT
/`;return yu+=is+" "+ar+` Tf
`,yu+=gr(ar*bh)+` TL
`,yu+=od+`
`,yu+=Nu,yu+=fe,Xn(yu+="ET"),Pn[is]=!0,Ka};var rd=Ke.__private__.clip=Ke.clip=function(fe){return Xn(fe==="evenodd"?"W*":"W"),this};Ke.clipEvenOdd=function(){return rd("evenodd")},Ke.__private__.discardPath=Ke.discardPath=function(){return Xn("n"),this};var mu=Ke.__private__.isValidStyle=function(fe){var yn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(fe)!==-1&&(yn=!0),yn};Ke.__private__.setDefaultPathOperation=Ke.setDefaultPathOperation=function(fe){return mu(fe)&&($e=fe),this};var Gd=Ke.__private__.getStyle=Ke.getStyle=function(fe){var yn=$e;switch(fe){case"D":case"S":yn="S";break;case"F":yn="f";break;case"FD":case"DF":yn="B";break;case"f":case"f*":case"B":case"B*":yn=fe}return yn},Wd=Ke.close=function(){return Xn("h"),this};Ke.stroke=function(){return Xn("S"),this},Ke.fill=function(fe){return Ju("f",fe),this},Ke.fillEvenOdd=function(fe){return Ju("f*",fe),this},Ke.fillStroke=function(fe){return Ju("B",fe),this},Ke.fillStrokeEvenOdd=function(fe){return Ju("B*",fe),this};var Ju=function(fe,yn){(0,Lt.Z)(yn)==="object"?Vd(yn,fe):Xn(fe)},Rc=function(fe){fe===null||Qi===di.ADVANCED&&fe===void 0||(fe=Gd(fe),Xn(fe))};function Bd(fe,yn,wi,_i,ur){var jr=new ua(yn||this.boundingBox,wi||this.xStep,_i||this.yStep,this.gState,ur||this.matrix);jr.stream=this.stream;var Co=fe+"$$"+this.cloneIndex+++"$$";return Ao(Co,jr),jr}var Vd=function(fe,yn){var wi=Ko[fe.key],_i=$s[wi];if(_i instanceof Js)Xn("q"),Xn(uu(yn)),_i.gState&&Ke.setGState(_i.gState),Xn(fe.matrix.toString()+" cm"),Xn("/"+wi+" sh"),Xn("Q");else if(_i instanceof ua){var ur=new Es(1,0,0,-1,0,$d());fe.matrix&&(ur=ur.multiply(fe.matrix||Dl),wi=Bd.call(_i,fe.key,fe.boundingBox,fe.xStep,fe.yStep,ur).id),Xn("q"),Xn("/Pattern cs"),Xn("/"+wi+" scn"),_i.gState&&Ke.setGState(_i.gState),Xn(yn),Xn("Q")}},uu=function(fe){switch(fe){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=Ke.moveTo=function(fe,yn){return Xn(gr(ii(fe))+" "+gr(me(yn))+" m"),this},_c=Ke.lineTo=function(fe,yn){return Xn(gr(ii(fe))+" "+gr(me(yn))+" l"),this},Ul=Ke.curveTo=function(fe,yn,wi,_i,ur,jr){return Xn([gr(ii(fe)),gr(me(yn)),gr(ii(wi)),gr(me(_i)),gr(ii(ur)),gr(me(jr)),"c"].join(" ")),this};Ke.__private__.line=Ke.line=function(fe,yn,wi,_i,ur){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||!mu(ur))throw new Error("Invalid arguments passed to jsPDF.line");return Qi===di.COMPAT?this.lines([[wi-fe,_i-yn]],fe,yn,[1,1],ur||"S"):this.lines([[wi-fe,_i-yn]],fe,yn,[1,1]).stroke()},Ke.__private__.lines=Ke.lines=function(fe,yn,wi,_i,ur,jr){var Co,ps,Ys,Pa,ba,ms,nu,iu,Ka,zl,Nu,sc;if(typeof fe=="number"&&(sc=wi,wi=yn,yn=fe,fe=sc),_i=_i||[1,1],jr=jr||!1,isNaN(yn)||isNaN(wi)||!Array.isArray(fe)||!Array.isArray(_i)||!mu(ur)||typeof jr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(vu(yn,wi),Co=_i[0],ps=_i[1],Pa=fe.length,zl=yn,Nu=wi,Ys=0;Ys<Pa;Ys++)(ba=fe[Ys]).length===2?(zl=ba[0]*Co+zl,Nu=ba[1]*ps+Nu,_c(zl,Nu)):(ms=ba[0]*Co+zl,nu=ba[1]*ps+Nu,iu=ba[2]*Co+zl,Ka=ba[3]*ps+Nu,zl=ba[4]*Co+zl,Nu=ba[5]*ps+Nu,Ul(ms,nu,iu,Ka,zl,Nu));return jr&&Wd(),Rc(ur),this},Ke.path=function(fe){for(var yn=0;yn<fe.length;yn++){var wi=fe[yn],_i=wi.c;switch(wi.op){case"m":vu(_i[0],_i[1]);break;case"l":_c(_i[0],_i[1]);break;case"c":Ul.apply(this,_i);break;case"h":Wd()}}return this},Ke.__private__.rect=Ke.rect=function(fe,yn,wi,_i,ur){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||!mu(ur))throw new Error("Invalid arguments passed to jsPDF.rect");return Qi===di.COMPAT&&(_i=-_i),Xn([gr(ii(fe)),gr(me(yn)),gr(ii(wi)),gr(ii(_i)),"re"].join(" ")),Rc(ur),this},Ke.__private__.triangle=Ke.triangle=function(fe,yn,wi,_i,ur,jr,Co){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||isNaN(ur)||isNaN(jr)||!mu(Co))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[wi-fe,_i-yn],[ur-wi,jr-_i],[fe-ur,yn-jr]],fe,yn,[1,1],Co,!0),this},Ke.__private__.roundedRect=Ke.roundedRect=function(fe,yn,wi,_i,ur,jr,Co){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||isNaN(ur)||isNaN(jr)||!mu(Co))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ps=4/3*(Math.SQRT2-1);return ur=Math.min(ur,.5*wi),jr=Math.min(jr,.5*_i),this.lines([[wi-2*ur,0],[ur*ps,0,ur,jr-jr*ps,ur,jr],[0,_i-2*jr],[0,jr*ps,-ur*ps,jr,-ur,jr],[2*ur-wi,0],[-ur*ps,0,-ur,-jr*ps,-ur,-jr],[0,2*jr-_i],[0,-jr*ps,ur*ps,-jr,ur,-jr]],fe+ur,yn,[1,1],Co,!0),this},Ke.__private__.ellipse=Ke.ellipse=function(fe,yn,wi,_i,ur){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||isNaN(_i)||!mu(ur))throw new Error("Invalid arguments passed to jsPDF.ellipse");var jr=4/3*(Math.SQRT2-1)*wi,Co=4/3*(Math.SQRT2-1)*_i;return vu(fe+wi,yn),Ul(fe+wi,yn-Co,fe+jr,yn-_i,fe,yn-_i),Ul(fe-jr,yn-_i,fe-wi,yn-Co,fe-wi,yn),Ul(fe-wi,yn+Co,fe-jr,yn+_i,fe,yn+_i),Ul(fe+jr,yn+_i,fe+wi,yn+Co,fe+wi,yn),Rc(ur),this},Ke.__private__.circle=Ke.circle=function(fe,yn,wi,_i){if(isNaN(fe)||isNaN(yn)||isNaN(wi)||!mu(_i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(fe,yn,wi,wi,_i)},Ke.setFont=function(fe,yn,wi){return wi&&(yn=ao(yn,wi)),is=SA(fe,yn,{disableWarning:!1}),this};var Oa=Ke.__private__.getFont=Ke.getFont=function(){return Cs[SA.apply(Ke,arguments)]};Ke.__private__.getFontList=Ke.getFontList=function(){var fe,yn,wi={};for(fe in qs)if(qs.hasOwnProperty(fe))for(yn in wi[fe]=[],qs[fe])qs[fe].hasOwnProperty(yn)&&wi[fe].push(yn);return wi},Ke.addFont=function(fe,yn,wi,_i,ur){var jr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&jr.indexOf(arguments[3])!==-1?ur=arguments[3]:arguments[3]&&jr.indexOf(arguments[3])==-1&&(wi=ao(wi,_i)),ur=ur||"Identity-H",Fu.call(this,fe,yn,wi,ur)};var $a,Mu=Et.lineWidth||.200025,Ah=Ke.__private__.getLineWidth=Ke.getLineWidth=function(){return Mu},Ph=Ke.__private__.setLineWidth=Ke.setLineWidth=function(fe){return Mu=fe,Xn(gr(ii(fe))+" w"),this};Ke.__private__.setLineDash=Ho.API.setLineDash=Ho.API.setLineDashPattern=function(fe,yn){if(fe=fe||[],yn=yn||0,isNaN(yn)||!Array.isArray(fe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return fe=fe.map(function(wi){return gr(ii(wi))}).join(" "),yn=gr(ii(yn)),Xn("["+fe+"] "+yn+" d"),this};var Zd=Ke.__private__.getLineHeight=Ke.getLineHeight=function(){return ar*$a};Ke.__private__.getLineHeight=Ke.getLineHeight=function(){return ar*$a};var Bc=Ke.__private__.setLineHeightFactor=Ke.setLineHeightFactor=function(fe){return typeof(fe=fe||1.15)=="number"&&($a=fe),this},Pd=Ke.__private__.getLineHeightFactor=Ke.getLineHeightFactor=function(){return $a};Bc(Et.lineHeight);var Vu=Ke.__private__.getHorizontalCoordinate=function(fe){return ii(fe)},yh=Ke.__private__.getVerticalCoordinate=function(fe){return Qi===di.ADVANCED?fe:ro[hn].mediaBox.topRightY-ro[hn].mediaBox.bottomLeftY-ii(fe)},PA=Ke.__private__.getHorizontalCoordinateString=Ke.getHorizontalCoordinateString=function(fe){return gr(Vu(fe))},Hc=Ke.__private__.getVerticalCoordinateString=Ke.getVerticalCoordinateString=function(fe){return gr(yh(fe))},oc=Et.strokeColor||"0 G";Ke.__private__.getStrokeColor=Ke.getDrawColor=function(){return al(oc)},Ke.__private__.setStrokeColor=Ke.setDrawColor=function(fe,yn,wi,_i){return oc=Rs({ch1:fe,ch2:yn,ch3:wi,ch4:_i,pdfColorType:"draw",precision:2}),Xn(oc),this};var Qc=Et.fillColor||"0 g";Ke.__private__.getFillColor=Ke.getFillColor=function(){return al(Qc)},Ke.__private__.setFillColor=Ke.setFillColor=function(fe,yn,wi,_i){return Qc=Rs({ch1:fe,ch2:yn,ch3:wi,ch4:_i,pdfColorType:"fill",precision:2}),Xn(Qc),this};var od=Et.textColor||"0 g",lf=Ke.__private__.getTextColor=Ke.getTextColor=function(){return al(od)};Ke.__private__.setTextColor=Ke.setTextColor=function(fe,yn,wi,_i){return od=Rs({ch1:fe,ch2:yn,ch3:wi,ch4:_i,pdfColorType:"text",precision:3}),this};var uA=Et.charSpace,Pc=Ke.__private__.getCharSpace=Ke.getCharSpace=function(){return parseFloat(uA||0)};Ke.__private__.setCharSpace=Ke.setCharSpace=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=fe,this};var KA=0;Ke.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},Ke.__private__.setLineCap=Ke.setLineCap=function(fe){var yn=Ke.CapJoinStyles[fe];if(yn===void 0)throw new Error("Line cap style of '"+fe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return KA=yn,Xn(yn+" J"),this};var bd=0;Ke.__private__.setLineJoin=Ke.setLineJoin=function(fe){var yn=Ke.CapJoinStyles[fe];if(yn===void 0)throw new Error("Line join style of '"+fe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return bd=yn,Xn(yn+" j"),this},Ke.__private__.setLineMiterLimit=Ke.__private__.setMiterLimit=Ke.setLineMiterLimit=Ke.setMiterLimit=function(fe){if(fe=fe||0,isNaN(fe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Xn(gr(ii(fe))+" M"),this},Ke.GState=Lo,Ke.setGState=function(fe){(fe=typeof fe=="string"?Go[ds[fe]]:zc(null,fe)).equals(es)||(Xn("/"+fe.id+" gs"),es=fe)};var zc=function(fe,yn){if(!fe||!ds[fe]){var wi=!1;for(var _i in Go)if(Go.hasOwnProperty(_i)&&Go[_i].equals(yn)){wi=!0;break}if(wi)yn=Go[_i];else{var ur="GS"+(Object.keys(Go).length+1).toString(10);Go[ur]=yn,yn.id=ur}return fe&&(ds[fe]=yn.id),Wo.publish("addGState",yn),yn}};Ke.addGState=function(fe,yn){return zc(fe,yn),this},Ke.saveGraphicsState=function(){return Xn("q"),Ua.push({key:is,size:ar,color:od}),this},Ke.restoreGraphicsState=function(){Xn("Q");var fe=Ua.pop();return is=fe.key,ar=fe.size,od=fe.color,es=null,this},Ke.setCurrentTransformationMatrix=function(fe){return Xn(fe.toString()+" cm"),this},Ke.comment=function(fe){return Xn("#"+fe),this};var Kc=function(fe,yn){var wi=fe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return wi},set:function(jr){isNaN(jr)||(wi=parseFloat(jr))}});var _i=yn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _i},set:function(jr){isNaN(jr)||(_i=parseFloat(jr))}});var ur="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ur},set:function(jr){ur=jr.toString()}}),this},hA=function(fe,yn,wi,_i){Kc.call(this,fe,yn),this.type="rect";var ur=wi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ur},set:function(Co){isNaN(Co)||(ur=parseFloat(Co))}});var jr=_i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return jr},set:function(Co){isNaN(Co)||(jr=parseFloat(Co))}}),this},Th=function(){this.page=Ts,this.currentPage=hn,this.pages=Zi.slice(0),this.pagesContext=ro.slice(0),this.x=wa,this.y=Vo,this.matrix=rs,this.width=Xd(hn),this.height=$d(hn),this.outputDestination=br,this.id="",this.objectNumber=-1};Th.prototype.restore=function(){Ts=this.page,hn=this.currentPage,ro=this.pagesContext,Zi=this.pages,wa=this.x,Vo=this.y,rs=this.matrix,Ed(hn,this.width),FA(hn,this.height),br=this.outputDestination};var bA=function(fe,yn,wi,_i,ur){Fl.push(new Th),Ts=hn=0,Zi=[],wa=fe,Vo=yn,rs=ur,kh([wi,_i])},EA=function(fe){if(Ql[fe])Fl.pop().restore();else{var yn=new Th,wi="Xo"+(Object.keys(Us).length+1).toString(10);yn.id=wi,Ql[fe]=wi,Us[wi]=yn,Wo.publish("addFormObject",yn),Fl.pop().restore()}};for(var cA in Ke.beginFormObject=function(fe,yn,wi,_i,ur){return bA(fe,yn,wi,_i,ur),this},Ke.endFormObject=function(fe){return EA(fe),this},Ke.doFormObject=function(fe,yn){var wi=Us[Ql[fe]];return Xn("q"),Xn(yn.toString()+" cm"),Xn("/"+wi.id+" Do"),Xn("Q"),this},Ke.getFormObject=function(fe){var yn=Us[Ql[fe]];return{x:yn.x,y:yn.y,width:yn.width,height:yn.height,matrix:yn.matrix}},Ke.save=function(fe,yn){return fe=fe||"generated.pdf",(yn=yn||{}).returnPromise=yn.returnPromise||!1,yn.returnPromise===!1?(Gs(Sd(Uc()),fe),typeof Gs.unload=="function"&&Br.setTimeout&&setTimeout(Gs.unload,911),this):new Promise(function(wi,_i){try{var ur=Gs(Sd(Uc()),fe);typeof Gs.unload=="function"&&Br.setTimeout&&setTimeout(Gs.unload,911),wi(ur)}catch(jr){_i(jr.message)}})},Ho.API)Ho.API.hasOwnProperty(cA)&&(cA==="events"&&Ho.API.events.length?function(fe,yn){var wi,_i,ur;for(ur=yn.length-1;ur!==-1;ur--)wi=yn[ur][0],_i=yn[ur][1],fe.subscribe.apply(fe,[wi].concat(typeof _i=="function"?[_i]:_i))}(Wo,Ho.API.events):Ke[cA]=Ho.API[cA]);var Xd=Ke.getPageWidth=function(fe){return(ro[fe=fe||hn].mediaBox.topRightX-ro[fe].mediaBox.bottomLeftX)/So},Ed=Ke.setPageWidth=function(fe,yn){ro[fe].mediaBox.topRightX=yn*So+ro[fe].mediaBox.bottomLeftX},$d=Ke.getPageHeight=function(fe){return(ro[fe=fe||hn].mediaBox.topRightY-ro[fe].mediaBox.bottomLeftY)/So},FA=Ke.setPageHeight=function(fe,yn){ro[fe].mediaBox.topRightY=yn*So+ro[fe].mediaBox.bottomLeftY};return Ke.internal={pdfEscape:Ru,getStyle:Gd,getFont:Oa,getFontSize:pr,getCharSpace:Pc,getTextColor:lf,getLineHeight:Zd,getLineHeightFactor:Pd,getLineWidth:Ah,write:Bo,getHorizontalCoordinate:Vu,getVerticalCoordinate:yh,getCoordinateString:PA,getVerticalCoordinateString:Hc,collections:{},newObject:Ra,newAdditionalObject:ca,newObjectDeferred:Kl,newObjectDeferredBegin:ta,getFilters:Ta,putStream:xl,events:Wo,scaleFactor:So,pageSize:{getWidth:function(){return Xd(hn)},setWidth:function(fe){Ed(hn,fe)},getHeight:function(){return $d(hn)},setHeight:function(fe){FA(hn,fe)}},encryptionOptions:fn,encryption:Wu,getEncryptor:BA,output:Yu,getNumberOfPages:xd,pages:Zi,out:Xn,f2:kr,f3:$n,getPageInfo:Kh,getPageInfoByObjId:na,getCurrentPageInfo:Cd,getPDFVersion:Jn,Point:Kc,Rectangle:hA,Matrix:Es,hasHotfix:sh},Object.defineProperty(Ke.internal.pageSize,"width",{get:function(){return Xd(hn)},set:function(fe){Ed(hn,fe)},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.internal.pageSize,"height",{get:function(){return $d(hn)},set:function(fe){FA(hn,fe)},enumerable:!0,configurable:!0}),zh.call(Ke,sr),is="F1",lA(ie,bt),Wo.publish("initialized"),Ke}fo.prototype.lsbFirstWord=function(Et){return String.fromCharCode(Et>>0&255,Et>>8&255,Et>>16&255,Et>>24&255)},fo.prototype.toHexString=function(Et){return Et.split("").map(function(wt){return("0"+(255&wt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},fo.prototype.hexToBytes=function(Et){for(var wt=[],bt=0;bt<Et.length;bt+=2)wt.push(String.fromCharCode(parseInt(Et.substr(bt,2),16)));return wt.join("")},fo.prototype.processOwnerPassword=function(Et,wt){return ks(ns(wt).substr(0,5),Et)},fo.prototype.encryptor=function(Et,wt){var bt=ns(this.encryptionKey+String.fromCharCode(255&Et,Et>>8&255,Et>>16&255,255&wt,wt>>8&255)).substr(0,10);return function(Ht){return ks(bt,Ht)}},Lo.prototype.equals=function(Et){var wt,bt="id,objectNumber,equals";if(!Et||(0,Lt.Z)(Et)!==(0,Lt.Z)(this))return!1;var Ht=0;for(wt in this)if(!(bt.indexOf(wt)>=0)){if(this.hasOwnProperty(wt)&&!Et.hasOwnProperty(wt)||this[wt]!==Et[wt])return!1;Ht++}for(wt in Et)Et.hasOwnProperty(wt)&&bt.indexOf(wt)<0&&Ht--;return Ht===0},Ho.API={events:[]},Ho.version="3.0.0";var Ks=Ho.API,Na=1,Tl=function(Et){return Et.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Va=function(Et){return Et.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ps=function(Et){return Et.toFixed(2)},si=function(Et){return Et.toFixed(5)};Ks.__acroform__={};var Ia=function(Et,wt){Et.prototype=Object.create(wt.prototype),Et.prototype.constructor=Et},Ac=function(Et){return Et*Na},du=function(Et){var wt=new Za,bt=zo.internal.getHeight(Et)||0,Ht=zo.internal.getWidth(Et)||0;return wt.BBox=[0,0,Number(Ps(Ht)),Number(Ps(bt))],wt},Hh=Ks.__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},$r=Ks.__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)},Qs=Ks.__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},Ms=Ks.__acroform__.getBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Qs(Et,wt-1)},bs=Ks.__acroform__.setBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hh(Et,wt-1)},zs=Ks.__acroform__.clearBitForPdf=function(Et,wt){if(isNaN(Et)||isNaN(wt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return $r(Et,wt-1)},Au=Ks.__acroform__.calculateCoordinates=function(Et,wt){var bt=wt.internal.getHorizontalCoordinate,Ht=wt.internal.getVerticalCoordinate,ie=Et[0],Yt=Et[1],ge=Et[2],we=Et[3],be={};return be.lowerLeft_X=bt(ie)||0,be.lowerLeft_Y=Ht(Yt+we)||0,be.upperRight_X=bt(ie+ge)||0,be.upperRight_Y=Ht(Yt)||0,[Number(Ps(be.lowerLeft_X)),Number(Ps(be.lowerLeft_Y)),Number(Ps(be.upperRight_X)),Number(Ps(be.upperRight_Y))]},Jo=function(Et){if(Et.appearanceStreamContent)return Et.appearanceStreamContent;if(Et.V||Et.DV){var wt=[],bt=Et._V||Et.DV,Ht=Hs(Et,bt),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+" "+Ps(Ht.fontSize)+" Tf"),wt.push("1 0 0 1 0 0 Tm"),wt.push(Ht.text),wt.push("ET"),wt.push("Q"),wt.push("EMC");var Yt=du(Et);return Yt.scope=Et.scope,Yt.stream=wt.join(`
`),Yt}},Hs=function(Et,wt){var bt=Et.fontSize===0?Et.maxFontSize:Et.fontSize,Ht={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($n){return $n.split(`
`)}):ie.map(function($n){return[$n]});var Yt=bt,ge=zo.internal.getHeight(Et)||0;ge=ge<0?-ge:ge;var we=zo.internal.getWidth(Et)||0;we=we<0?-we:we;var be=function($n,ii,pe){if($n+1<ie.length){var me=ii+" "+ie[$n+1][0];return Ss(me,Et,pe).width<=we-4}return!1};Yt++;t:for(;Yt>0;){wt="",Yt--;var $e,fn,gn=Ss("3",Et,Yt).height,Pn=Et.multiline?ge-Yt:(ge-gn)/2,Ke=Pn+=2,gi=0,Jn=0,vi=0;if(Yt<=0){wt=`(...) Tj
`,wt+="% Width of Text: "+Ss(wt,Et,Yt=12).width+", FieldWidth:"+we+`
`;break}for(var Rn="",di=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((gn+2)*(di+2)+2>ge)continue t;Rn+=ie[Qi][vi],rr=!0,Jn=Qi,Qi--}else{Rn=(Rn+=ie[Qi][vi]+" ").substr(Rn.length-1)==" "?Rn.substr(0,Rn.length-1):Rn;var Er=parseInt(Qi),ao=be(Er,Rn,Yt),gr=Qi>=ie.length-1;if(ao&&!gr){Rn+=" ",vi=0;continue}if(ao||gr){if(gr)Jn=Er;else if(Et.multiline&&(gn+2)*(di+2)+2>ge)continue t}else{if(!Et.multiline||(gn+2)*(di+2)+2>ge)continue t;Jn=Er}}for(var Ti="",xr=gi;xr<=Jn;xr++){var kr=ie[xr];if(Et.multiline){if(xr===Jn){Ti+=kr[vi]+" ",vi=(vi+1)%kr.length;continue}if(xr===gi){Ti+=kr[kr.length-1]+" ";continue}}Ti+=kr[0]+" "}switch(Ti=Ti.substr(Ti.length-1)==" "?Ti.substr(0,Ti.length-1):Ti,fn=Ss(Ti,Et,Yt).width,Et.textAlign){case"right":$e=we-fn-2;break;case"center":$e=(we-fn)/2;break;case"left":default:$e=2}wt+=Ps($e)+" "+Ps(Ke)+` Td
`,wt+="("+Tl(Ti)+`) Tj
`,wt+=-Ps($e)+` 0 Td
`,Ke=-(Yt+2),fn=0,gi=rr?Jn:Jn+1,di++,Rn=""}break}return Ht.text=wt,Ht.fontSize=Yt,Ht},Ss=function(Et,wt,bt){var Ht=wt.scope.internal.getFont(wt.fontName,wt.fontStyle),ie=wt.scope.getStringUnitWidth(Et,{font:Ht,fontSize:parseFloat(bt),charSpace:0})*parseFloat(bt);return{height:wt.scope.getStringUnitWidth("3",{font:Ht,fontSize:parseFloat(bt),charSpace:0})*parseFloat(bt)*1.5,width:ie}},Qr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ul=function(Et,wt){var bt={type:"reference",object:Et};wt.internal.getPageInfo(Et.page).pageContext.annotations.find(function(Ht){return Ht.type===bt.type&&Ht.object===bt.object})===void 0&&wt.internal.getPageInfo(Et.page).pageContext.annotations.push(bt)},Ds=function(Et,wt){for(var bt in Et)if(Et.hasOwnProperty(bt)){var Ht=bt,ie=Et[bt];wt.internal.newObjectDeferredBegin(ie.objId,!0),(0,Lt.Z)(ie)==="object"&&typeof ie.putStream=="function"&&ie.putStream(),delete Et[Ht]}},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(Qr)),Et.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Na=Et.internal.scaleFactor,Et.internal.acroformPlugin.acroFormDictionaryRoot=new rl,Et.internal.acroformPlugin.acroFormDictionaryRoot.scope=Et,Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Et.internal.events.subscribe("postPutResources",function(){(function(bt){bt.internal.events.unsubscribe(bt.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete bt.internal.acroformPlugin.acroFormDictionaryRoot._eventID,bt.internal.acroformPlugin.printedOut=!0})(Et)}),Et.internal.events.subscribe("buildDocument",function(){(function(bt){bt.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ht=bt.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ie in Ht)if(Ht.hasOwnProperty(ie)){var Yt=Ht[ie];Yt.objId=void 0,Yt.hasAnnotation&&ul(Yt,bt)}})(Et)}),Et.internal.events.subscribe("putCatalog",function(){(function(bt){if(bt.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");bt.internal.write("/AcroForm "+bt.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Et)}),Et.internal.events.subscribe("postPutPages",function(bt){(function(Ht,ie){var Yt=!Ht;for(var ge in Ht||(ie.internal.newObjectDeferredBegin(ie.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ie.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ht=Ht||ie.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ht.hasOwnProperty(ge)){var we=Ht[ge],be=[],$e=we.Rect;if(we.Rect&&(we.Rect=Au(we.Rect,ie)),ie.internal.newObjectDeferredBegin(we.objId,!0),we.DA=zo.createDefaultAppearanceStream(we),(0,Lt.Z)(we)==="object"&&typeof we.getKeyValueListForStream=="function"&&(be=we.getKeyValueListForStream()),we.Rect=$e,we.hasAppearanceStream&&!we.appearanceStreamContent){var fn=Jo(we);be.push({key:"AP",value:"<</N "+fn+">>"}),ie.internal.acroformPlugin.xForms.push(fn)}if(we.appearanceStreamContent){var gn="";for(var Pn in we.appearanceStreamContent)if(we.appearanceStreamContent.hasOwnProperty(Pn)){var Ke=we.appearanceStreamContent[Pn];if(gn+="/"+Pn+" ",gn+="<<",Object.keys(Ke).length>=1||Array.isArray(Ke)){for(var ge in Ke)if(Ke.hasOwnProperty(ge)){var gi=Ke[ge];typeof gi=="function"&&(gi=gi.call(ie,we)),gn+="/"+ge+" "+gi+" ",ie.internal.acroformPlugin.xForms.indexOf(gi)>=0||ie.internal.acroformPlugin.xForms.push(gi)}}else typeof(gi=Ke)=="function"&&(gi=gi.call(ie,we)),gn+="/"+ge+" "+gi,ie.internal.acroformPlugin.xForms.indexOf(gi)>=0||ie.internal.acroformPlugin.xForms.push(gi);gn+=">>"}be.push({key:"AP",value:`<<
`+gn+">>"})}ie.internal.putStream({additionalKeyValues:be,objectId:we.objId}),ie.internal.out("endobj")}Yt&&Ds(ie.internal.acroformPlugin.xForms,ie)})(bt,Et)}),Et.internal.acroformPlugin.isInitialized=!0}},zu=Ks.__acroform__.arrayToPdfArray=function(Et,wt,bt){var Ht=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&&bt&&(Ht=bt.internal.getEncryptor(wt)),ie+="("+Tl(Ht(Et[Yt].toString()))+")"):ie+=Et[Yt].toString()}return ie+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Xl=function(Et,wt,bt){var Ht=function(ie){return ie};return wt!==void 0&&bt&&(Ht=bt.internal.getEncryptor(wt)),(Et=Et||"").toString(),Et="("+Tl(Ht(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 bt in wt)if(Object.getOwnPropertyDescriptor(this,wt[bt]).configurable===!1){var Ht=wt[bt],ie=this[Ht];ie&&(Array.isArray(ie)?Et.push({key:Ht,value:zu(ie,this.objId,this.scope)}):ie instanceof fr?(ie.scope=this.scope,Et.push({key:Ht,value:ie.objId+" 0 R"})):typeof ie!="function"&&Et.push({key:Ht,value:ie}))}return Et};var Za=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(bt){wt=bt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(bt){Et=bt.trim()},get:function(){return Et||null}})};Ia(Za,fr);var rl=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 bt=function(Ht){return Ht};return this.scope&&(bt=this.scope.internal.getEncryptor(this.objId)),"("+Tl(bt(Et))+")"}},set:function(bt){Et=bt}})};Ia(rl,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!!Ms(wt,3)},set:function(Rn){Rn?this.F=bs(wt,3):this.F=zs(wt,3)}});var bt=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return bt},set:function(Rn){if(isNaN(Rn))throw new Error('Invalid value "'+Rn+'" for attribute Ff supplied.');bt=Rn}});var Ht=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ht.length!==0)return Ht},set:function(Rn){Ht=Rn!==void 0?Rn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[0])?0:Ht[0]},set:function(Rn){Ht[0]=Rn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[1])?0:Ht[1]},set:function(Rn){Ht[1]=Rn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[2])?0:Ht[2]},set:function(Rn){Ht[2]=Rn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ht||isNaN(Ht[3])?0:Ht[3]},set:function(Rn){Ht[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(di){return di};return this.scope&&(Rn=this.scope.internal.getEncryptor(this.objId)),"("+Tl(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 be=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return be},set:function(Rn){be=Rn}});var $e=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return $e===void 0?50/Na:$e},set:function(Rn){$e=Rn}});var fn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return fn},set:function(Rn){fn=Rn}});var gn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!gn||this instanceof Pu||this instanceof fu))return Xl(gn,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),gn=Rn}});var Pn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Pn)return this instanceof Ja?Pn:Xl(Pn,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),Pn=this instanceof Ja?Rn:Rn.substr(0,1)==="("?Va(Rn.substr(1,Rn.length-2)):Va(Rn)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ja?Va(Pn.substr(1,Pn.length-1)):Pn},set:function(Rn){Rn=Rn.toString(),Pn=this instanceof Ja?"/"+Rn:Rn}});var Ke=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ke)return Ke},set:function(Rn){this.V=Rn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ke)return this instanceof Ja?Ke:Xl(Ke,this.objId,this.scope)},set:function(Rn){Rn=Rn.toString(),Ke=this instanceof Ja?Rn:Rn.substr(0,1)==="("?Va(Rn.substr(1,Rn.length-2)):Va(Rn)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ja?Va(Ke.substr(1,Ke.length-1)):Ke},set:function(Rn){Rn=Rn.toString(),Ke=this instanceof Ja?"/"+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 gi,Jn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Jn},set:function(Rn){Rn=!!Rn,Jn=Rn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(gi)return gi},set:function(Rn){gi=Rn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,1)},set:function(Rn){Rn?this.Ff=bs(this.Ff,1):this.Ff=zs(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,2)},set:function(Rn){Rn?this.Ff=bs(this.Ff,2):this.Ff=zs(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,3)},set:function(Rn){Rn?this.Ff=bs(this.Ff,3):this.Ff=zs(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}}})};Ia(bl,fr);var ou=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(bt){Et=bt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(bt){Et=bt}});var wt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return zu(wt,this.objId,this.scope)},set:function(bt){var Ht,ie;ie=[],typeof(Ht=bt)=="string"&&(ie=function(Yt,ge,we){we||(we=1);for(var be,$e=[];be=ge.exec(Yt);)$e.push(be[we]);return $e}(Ht,/\((.*?)\)/g)),wt=ie}}),this.getOptions=function(){return wt},this.setOptions=function(bt){wt=bt,this.sort&&wt.sort()},this.addOption=function(bt){bt=(bt=bt||"").toString(),wt.push(bt),this.sort&&wt.sort()},this.removeOption=function(bt,Ht){for(Ht=Ht||!1,bt=(bt=bt||"").toString();wt.indexOf(bt)!==-1&&(wt.splice(wt.indexOf(bt),1),Ht!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,18)},set:function(bt){bt?this.Ff=bs(this.Ff,18):this.Ff=zs(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,19)},set:function(bt){this.combo===!0&&(bt?this.Ff=bs(this.Ff,19):this.Ff=zs(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,20)},set:function(bt){bt?(this.Ff=bs(this.Ff,20),wt.sort()):this.Ff=zs(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,22)},set:function(bt){bt?this.Ff=bs(this.Ff,22):this.Ff=zs(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,23)},set:function(bt){bt?this.Ff=bs(this.Ff,23):this.Ff=zs(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,27)},set:function(bt){bt?this.Ff=bs(this.Ff,27):this.Ff=zs(this.Ff,27)}}),this.hasAppearanceStream=!1};Ia(ou,bl);var Ya=function(){ou.call(this),this.fontName="helvetica",this.combo=!1};Ia(Ya,ou);var Mo=function(){Ya.call(this),this.combo=!0};Ia(Mo,Ya);var ja=function(){Mo.call(this),this.edit=!0};Ia(ja,Mo);var Ja=function(){bl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,15)},set:function(bt){bt?this.Ff=bs(this.Ff,15):this.Ff=zs(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,16)},set:function(bt){bt?this.Ff=bs(this.Ff,16):this.Ff=zs(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,17)},set:function(bt){bt?this.Ff=bs(this.Ff,17):this.Ff=zs(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,26)},set:function(bt){bt?this.Ff=bs(this.Ff,26):this.Ff=zs(this.Ff,26)}});var Et,wt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var bt=function(Yt){return Yt};if(this.scope&&(bt=this.scope.internal.getEncryptor(this.objId)),Object.keys(wt).length!==0){var Ht,ie=[];for(Ht in ie.push("<<"),wt)ie.push("/"+Ht+" ("+Tl(bt(wt[Ht]))+")");return ie.push(">>"),ie.join(`
`)}},set:function(bt){(0,Lt.Z)(bt)==="object"&&(wt=bt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return wt.CA||""},set:function(bt){typeof bt=="string"&&(wt.CA=bt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(bt){Et=bt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Et.substr(1,Et.length-1)},set:function(bt){Et="/"+bt}})};Ia(Ja,bl);var su=function(){Ja.call(this),this.pushButton=!0};Ia(su,Ja);var $l=function(){Ja.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:[]}})};Ia($l,Ja);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 bt,Ht={};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("<<"),Ht)ge.push("/"+Yt+" ("+Tl(ie(Ht[Yt]))+")");return ge.push(">>"),ge.join(`
`)},set:function(ie){(0,Lt.Z)(ie)==="object"&&(Ht=ie)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ht.CA||""},set:function(ie){typeof ie=="string"&&(Ht.CA=ie)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return bt},set:function(ie){bt=ie}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return bt.substr(1,bt.length-1)},set:function(ie){bt="/"+ie}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=zo.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ia(Pu,bl),$l.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 bt=this.Kids[wt];bt.appearanceStreamContent=Et.createAppearanceStream(bt.optionName),bt.caption=Et.getCA()}},$l.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(){Ja.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=zo.CheckBox.createAppearanceStream()};Ia(bu,Ja);var fu=function(){bl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,13)},set:function(wt){wt?this.Ff=bs(this.Ff,13):this.Ff=zs(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,21)},set:function(wt){wt?this.Ff=bs(this.Ff,21):this.Ff=zs(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,23)},set:function(wt){wt?this.Ff=bs(this.Ff,23):this.Ff=zs(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,24)},set:function(wt){wt?this.Ff=bs(this.Ff,24):this.Ff=zs(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,25)},set:function(wt){wt?this.Ff=bs(this.Ff,25):this.Ff=zs(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,26)},set:function(wt){wt?this.Ff=bs(this.Ff,26):this.Ff=zs(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}})};Ia(fu,bl);var eu=function(){fu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ms(this.Ff,14)},set:function(Et){Et?this.Ff=bs(this.Ff,14):this.Ff=zs(this.Ff,14)}}),this.password=!0};Ia(eu,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=du(Et);wt.scope=Et.scope;var bt=[],Ht=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,ie=Et.scope.__private__.encodeColorString(Et.color),Yt=Hs(Et,Et.caption);return bt.push("0.749023 g"),bt.push("0 0 "+Ps(zo.internal.getWidth(Et))+" "+Ps(zo.internal.getHeight(Et))+" re"),bt.push("f"),bt.push("BMC"),bt.push("q"),bt.push("0 0 1 rg"),bt.push("/"+Ht+" "+Ps(Yt.fontSize)+" Tf "+ie),bt.push("BT"),bt.push(Yt.text),bt.push("ET"),bt.push("Q"),bt.push("EMC"),wt.stream=bt.join(`
`),wt},YesNormal:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Ht=Et.scope.__private__.encodeColorString(Et.color),ie=[],Yt=zo.internal.getHeight(Et),ge=zo.internal.getWidth(Et),we=Hs(Et,Et.caption);return ie.push("1 g"),ie.push("0 0 "+Ps(ge)+" "+Ps(Yt)+" re"),ie.push("f"),ie.push("q"),ie.push("0 0 1 rg"),ie.push("0 0 "+Ps(ge-1)+" "+Ps(Yt-1)+" re"),ie.push("W"),ie.push("n"),ie.push("0 g"),ie.push("BT"),ie.push("/"+bt+" "+Ps(we.fontSize)+" Tf "+Ht),ie.push(we.text),ie.push("ET"),ie.push("Q"),wt.stream=ie.join(`
`),wt},OffPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[];return bt.push("0.749023 g"),bt.push("0 0 "+Ps(zo.internal.getWidth(Et))+" "+Ps(zo.internal.getHeight(Et))+" re"),bt.push("f"),wt.stream=bt.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=du(Et);wt.scope=Et.scope;var bt=[],Ht=zo.internal.getWidth(Et)<=zo.internal.getHeight(Et)?zo.internal.getWidth(Et)/4:zo.internal.getHeight(Et)/4;Ht=Number((.9*Ht).toFixed(5));var ie=zo.internal.Bezier_C,Yt=Number((Ht*ie).toFixed(5));return bt.push("q"),bt.push("1 0 0 1 "+si(zo.internal.getWidth(Et)/2)+" "+si(zo.internal.getHeight(Et)/2)+" cm"),bt.push(Ht+" 0 m"),bt.push(Ht+" "+Yt+" "+Yt+" "+Ht+" 0 "+Ht+" c"),bt.push("-"+Yt+" "+Ht+" -"+Ht+" "+Yt+" -"+Ht+" 0 c"),bt.push("-"+Ht+" -"+Yt+" -"+Yt+" -"+Ht+" 0 -"+Ht+" c"),bt.push(Yt+" -"+Ht+" "+Ht+" -"+Yt+" "+Ht+" 0 c"),bt.push("f"),bt.push("Q"),wt.stream=bt.join(`
`),wt},YesPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=zo.internal.getWidth(Et)<=zo.internal.getHeight(Et)?zo.internal.getWidth(Et)/4:zo.internal.getHeight(Et)/4;Ht=Number((.9*Ht).toFixed(5));var ie=Number((2*Ht).toFixed(5)),Yt=Number((ie*zo.internal.Bezier_C).toFixed(5)),ge=Number((Ht*zo.internal.Bezier_C).toFixed(5));return bt.push("0.749023 g"),bt.push("q"),bt.push("1 0 0 1 "+si(zo.internal.getWidth(Et)/2)+" "+si(zo.internal.getHeight(Et)/2)+" cm"),bt.push(ie+" 0 m"),bt.push(ie+" "+Yt+" "+Yt+" "+ie+" 0 "+ie+" c"),bt.push("-"+Yt+" "+ie+" -"+ie+" "+Yt+" -"+ie+" 0 c"),bt.push("-"+ie+" -"+Yt+" -"+Yt+" -"+ie+" 0 -"+ie+" c"),bt.push(Yt+" -"+ie+" "+ie+" -"+Yt+" "+ie+" 0 c"),bt.push("f"),bt.push("Q"),bt.push("0 g"),bt.push("q"),bt.push("1 0 0 1 "+si(zo.internal.getWidth(Et)/2)+" "+si(zo.internal.getHeight(Et)/2)+" cm"),bt.push(Ht+" 0 m"),bt.push(Ht+" "+ge+" "+ge+" "+Ht+" 0 "+Ht+" c"),bt.push("-"+ge+" "+Ht+" -"+Ht+" "+ge+" -"+Ht+" 0 c"),bt.push("-"+Ht+" -"+ge+" -"+ge+" -"+Ht+" 0 -"+Ht+" c"),bt.push(ge+" -"+Ht+" "+Ht+" -"+ge+" "+Ht+" 0 c"),bt.push("f"),bt.push("Q"),wt.stream=bt.join(`
`),wt},OffPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[],Ht=zo.internal.getWidth(Et)<=zo.internal.getHeight(Et)?zo.internal.getWidth(Et)/4:zo.internal.getHeight(Et)/4;Ht=Number((.9*Ht).toFixed(5));var ie=Number((2*Ht).toFixed(5)),Yt=Number((ie*zo.internal.Bezier_C).toFixed(5));return bt.push("0.749023 g"),bt.push("q"),bt.push("1 0 0 1 "+si(zo.internal.getWidth(Et)/2)+" "+si(zo.internal.getHeight(Et)/2)+" cm"),bt.push(ie+" 0 m"),bt.push(ie+" "+Yt+" "+Yt+" "+ie+" 0 "+ie+" c"),bt.push("-"+Yt+" "+ie+" -"+ie+" "+Yt+" -"+ie+" 0 c"),bt.push("-"+ie+" -"+Yt+" -"+Yt+" -"+ie+" 0 -"+ie+" c"),bt.push(Yt+" -"+ie+" "+ie+" -"+Yt+" "+ie+" 0 c"),bt.push("f"),bt.push("Q"),wt.stream=bt.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=du(Et);wt.scope=Et.scope;var bt=[],Ht=zo.internal.calculateCross(Et);return bt.push("q"),bt.push("1 1 "+Ps(zo.internal.getWidth(Et)-2)+" "+Ps(zo.internal.getHeight(Et)-2)+" re"),bt.push("W"),bt.push("n"),bt.push(Ps(Ht.x1.x)+" "+Ps(Ht.x1.y)+" m"),bt.push(Ps(Ht.x2.x)+" "+Ps(Ht.x2.y)+" l"),bt.push(Ps(Ht.x4.x)+" "+Ps(Ht.x4.y)+" m"),bt.push(Ps(Ht.x3.x)+" "+Ps(Ht.x3.y)+" l"),bt.push("s"),bt.push("Q"),wt.stream=bt.join(`
`),wt},YesPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=zo.internal.calculateCross(Et),Ht=[];return Ht.push("0.749023 g"),Ht.push("0 0 "+Ps(zo.internal.getWidth(Et))+" "+Ps(zo.internal.getHeight(Et))+" re"),Ht.push("f"),Ht.push("q"),Ht.push("1 1 "+Ps(zo.internal.getWidth(Et)-2)+" "+Ps(zo.internal.getHeight(Et)-2)+" re"),Ht.push("W"),Ht.push("n"),Ht.push(Ps(bt.x1.x)+" "+Ps(bt.x1.y)+" m"),Ht.push(Ps(bt.x2.x)+" "+Ps(bt.x2.y)+" l"),Ht.push(Ps(bt.x4.x)+" "+Ps(bt.x4.y)+" m"),Ht.push(Ps(bt.x3.x)+" "+Ps(bt.x3.y)+" l"),Ht.push("s"),Ht.push("Q"),wt.stream=Ht.join(`
`),wt},OffPushDown:function(Et){var wt=du(Et);wt.scope=Et.scope;var bt=[];return bt.push("0.749023 g"),bt.push("0 0 "+Ps(zo.internal.getWidth(Et))+" "+Ps(zo.internal.getHeight(Et))+" re"),bt.push("f"),wt.stream=bt.join(`
`),wt}}},createDefaultAppearanceStream:function(Et){var wt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,bt=Et.scope.__private__.encodeColorString(Et.color);return"/"+wt+" "+Et.fontSize+" Tf "+bt}};zo.internal={Bezier_C:.551915024494,calculateCross:function(Et){var wt=zo.internal.getWidth(Et),bt=zo.internal.getHeight(Et),Ht=Math.min(wt,bt);return{x1:{x:(wt-Ht)/2,y:(bt-Ht)/2+Ht},x2:{x:(wt-Ht)/2+Ht,y:(bt-Ht)/2},x3:{x:(wt-Ht)/2,y:(bt-Ht)/2},x4:{x:(wt-Ht)/2+Ht,y:(bt-Ht)/2+Ht}}}},zo.internal.getWidth=function(Et){var wt=0;return(0,Lt.Z)(Et)==="object"&&(wt=Ac(Et.Rect[2])),wt},zo.internal.getHeight=function(Et){var wt=0;return(0,Lt.Z)(Et)==="object"&&(wt=Ac(Et.Rect[3])),wt};var Hd=Ks.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};Ks.AcroFormChoiceField=ou,Ks.AcroFormListBox=Ya,Ks.AcroFormComboBox=Mo,Ks.AcroFormEditBox=ja,Ks.AcroFormButton=Ja,Ks.AcroFormPushButton=su,Ks.AcroFormRadioButton=$l,Ks.AcroFormCheckBox=bu,Ks.AcroFormTextField=fu,Ks.AcroFormPasswordField=eu,Ks.AcroFormAppearance=zo,Ks.AcroForm={ChoiceField:ou,ListBox:Ya,ComboBox:Mo,EditBox:ja,Button:Ja,PushButton:su,RadioButton:$l,CheckBox:bu,TextField:fu,PasswordField:eu,Appearance:zo},Ho.AcroForm={ChoiceField:ou,ListBox:Ya,ComboBox:Mo,EditBox:ja,Button:Ja,PushButton:su,RadioButton:$l,CheckBox:bu,TextField:fu,PasswordField:eu,Appearance:zo};var Eu=Ho.AcroForm;function yd(Et){return Et.reduce(function(wt,bt,Ht){return wt[bt]=Ht,wt},{})}(function(Et){Et.__addimage__={};var wt="UNKNOWN",bt={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]]},Ht=Et.__addimage__.getImageFileTypeByImageData=function($n,ii){var pe,me,Xe,Je,vn,nn=wt;if((ii=ii||wt)==="RGBA"||$n.data!==void 0&&$n.data instanceof Uint8ClampedArray&&"height"in $n&&"width"in $n)return"RGBA";if(ao($n))for(vn in bt)for(Xe=bt[vn],pe=0;pe<Xe.length;pe+=1){for(Je=!0,me=0;me<Xe[pe].length;me+=1)if(Xe[pe][me]!==void 0&&Xe[pe][me]!==$n[me]){Je=!1;break}if(Je===!0){nn=vn;break}}else for(vn in bt)for(Xe=bt[vn],pe=0;pe<Xe.length;pe+=1){for(Je=!0,me=0;me<Xe[pe].length;me+=1)if(Xe[pe][me]!==void 0&&Xe[pe][me]!==$n.charCodeAt(me)){Je=!1;break}if(Je===!0){nn=vn;break}}return nn===wt&&ii!==wt&&(nn=ii),nn},ie=function $n(ii){for(var pe=this.internal.write,me=this.internal.putStream,Xe=(0,this.internal.getFilters)();Xe.indexOf("FlateEncode")!==-1;)Xe.splice(Xe.indexOf("FlateEncode"),1);ii.objectId=this.internal.newObject();var Je=[];if(Je.push({key:"Type",value:"/XObject"}),Je.push({key:"Subtype",value:"/Image"}),Je.push({key:"Width",value:ii.width}),Je.push({key:"Height",value:ii.height}),ii.colorSpace===vi.INDEXED?Je.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(ii.palette.length/3-1)+" "+("sMask"in ii&&ii.sMask!==void 0?ii.objectId+2:ii.objectId+1)+" 0 R]"}):(Je.push({key:"ColorSpace",value:"/"+ii.colorSpace}),ii.colorSpace===vi.DEVICE_CMYK&&Je.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Je.push({key:"BitsPerComponent",value:ii.bitsPerComponent}),"decodeParameters"in ii&&ii.decodeParameters!==void 0&&Je.push({key:"DecodeParms",value:"<<"+ii.decodeParameters+">>"}),"transparency"in ii&&Array.isArray(ii.transparency)){for(var vn="",nn=0,Tn=ii.transparency.length;nn<Tn;nn++)vn+=ii.transparency[nn]+" "+ii.transparency[nn]+" ";Je.push({key:"Mask",value:"["+vn+"]"})}ii.sMask!==void 0&&Je.push({key:"SMask",value:ii.objectId+1+" 0 R"});var Un=ii.filter!==void 0?["/"+ii.filter]:void 0;if(me({data:ii.data,additionalKeyValues:Je,alreadyAppliedFilters:Un,objectId:ii.objectId}),pe("endobj"),"sMask"in ii&&ii.sMask!==void 0){var Yn="/Predictor "+ii.predictor+" /Colors 1 /BitsPerComponent "+ii.bitsPerComponent+" /Columns "+ii.width,Qe={width:ii.width,height:ii.height,colorSpace:"DeviceGray",bitsPerComponent:ii.bitsPerComponent,decodeParameters:Yn,data:ii.sMask};"filter"in ii&&(Qe.filter=ii.filter),$n.call(this,Qe)}if(ii.colorSpace===vi.INDEXED){var hn=this.internal.newObject();me({data:Ti(new Uint8Array(ii.palette)),objectId:hn}),pe("endobj")}},Yt=function(){var $n=this.internal.collections.addImage_images;for(var ii in $n)ie.call(this,$n[ii])},ge=function(){var $n,ii=this.internal.collections.addImage_images,pe=this.internal.write;for(var me in ii)pe("/I"+($n=ii[me]).index,$n.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))},be=function(){var $n=this.internal.collections.addImage_images;return we.call(this),$n},$e=function(){return Object.keys(this.internal.collections.addImage_images).length},fn=function($n){return typeof Et["process"+$n.toUpperCase()]=="function"},gn=function($n){return(0,Lt.Z)($n)==="object"&&$n.nodeType===1},Pn=function($n,ii){if($n.nodeName==="IMG"&&$n.hasAttribute("src")){var pe=""+$n.getAttribute("src");if(pe.indexOf("data:image/")===0)return xs(unescape(pe).split("base64,").pop());var me=Et.loadFile(pe,!0);if(me!==void 0)return me}if($n.nodeName==="CANVAS"){if($n.width===0||$n.height===0)throw new Error("Given canvas must have data. Canvas width: "+$n.width+", height: "+$n.height);var Xe;switch(ii){case"PNG":Xe="image/png";break;case"WEBP":Xe="image/webp";break;case"JPEG":case"JPG":default:Xe="image/jpeg"}return xs($n.toDataURL(Xe,1).split("base64,").pop())}},Ke=function($n){var ii=this.internal.collections.addImage_images;if(ii){for(var pe in ii)if($n===ii[pe].alias)return ii[pe]}},gi=function($n,ii,pe){return $n||ii||($n=-96,ii=-96),$n<0&&($n=-1*pe.width*72/$n/this.internal.scaleFactor),ii<0&&(ii=-1*pe.height*72/ii/this.internal.scaleFactor),$n===0&&($n=ii*pe.width/pe.height),ii===0&&(ii=$n*pe.height/pe.width),[$n,ii]},Jn=function($n,ii,pe,me,Xe,Je){var vn=gi.call(this,pe,me,Xe),nn=this.internal.getCoordinateString,Tn=this.internal.getVerticalCoordinateString,Un=be.call(this);if(pe=vn[0],me=vn[1],Un[Xe.index]=Xe,Je){Je*=Math.PI/180;var Yn=Math.cos(Je),Qe=Math.sin(Je),hn=function(Qn){return Qn.toFixed(4)},mn=[hn(Yn),hn(Qe),hn(-1*Qe),hn(Yn),0,0,"cm"]}this.internal.write("q"),Je?(this.internal.write([1,"0","0",1,nn($n),Tn(ii+me),"cm"].join(" ")),this.internal.write(mn.join(" ")),this.internal.write([nn(pe),"0","0",nn(me),"0","0","cm"].join(" "))):this.internal.write([nn(pe),"0","0",nn(me),nn($n),Tn(ii+me),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Xe.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"},di=Et.__addimage__.sHashCode=function($n){var ii,pe,me=0;if(typeof $n=="string")for(pe=$n.length,ii=0;ii<pe;ii++)me=(me<<5)-me+$n.charCodeAt(ii),me|=0;else if(ao($n))for(pe=$n.byteLength/2,ii=0;ii<pe;ii++)me=(me<<5)-me+$n[ii],me|=0;return me},Qi=Et.__addimage__.validateStringAsBase64=function($n){($n=$n||"").toString().trim();var ii=!0;return $n.length===0&&(ii=!1),$n.length%4!=0&&(ii=!1),/^[A-Za-z0-9+/]+$/.test($n.substr(0,$n.length-2))===!1&&(ii=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test($n.substr(-2))===!1&&(ii=!1),ii},rr=Et.__addimage__.extractImageFromDataUrl=function($n){var ii=($n=$n||"").split("base64,"),pe=null;if(ii.length===2){var me=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(ii[0]);Array.isArray(me)&&(pe={mimeType:me[1],charset:me[2],data:ii[1]})}return pe},Er=Et.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Et.__addimage__.isArrayBuffer=function($n){return Er()&&$n instanceof ArrayBuffer};var ao=Et.__addimage__.isArrayBufferView=function($n){return Er()&&typeof Uint32Array!="undefined"&&($n instanceof Int8Array||$n instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&$n instanceof Uint8ClampedArray||$n instanceof Int16Array||$n instanceof Uint16Array||$n instanceof Int32Array||$n instanceof Uint32Array||$n instanceof Float32Array||$n instanceof Float64Array)},gr=Et.__addimage__.binaryStringToUint8Array=function($n){for(var ii=$n.length,pe=new Uint8Array(ii),me=0;me<ii;me++)pe[me]=$n.charCodeAt(me);return pe},Ti=Et.__addimage__.arrayBufferToBinaryString=function($n){for(var ii="",pe=ao($n)?$n:new Uint8Array($n),me=0;me<pe.length;me+=8192)ii+=String.fromCharCode.apply(null,pe.subarray(me,me+8192));return ii};Et.addImage=function(){var $n,ii,pe,me,Xe,Je,vn,nn,Tn;if(typeof arguments[1]=="number"?(ii=wt,pe=arguments[1],me=arguments[2],Xe=arguments[3],Je=arguments[4],vn=arguments[5],nn=arguments[6],Tn=arguments[7]):(ii=arguments[1],pe=arguments[2],me=arguments[3],Xe=arguments[4],Je=arguments[5],vn=arguments[6],nn=arguments[7],Tn=arguments[8]),(0,Lt.Z)($n=arguments[0])==="object"&&!gn($n)&&"imageData"in $n){var Un=$n;$n=Un.imageData,ii=Un.format||ii||wt,pe=Un.x||pe||0,me=Un.y||me||0,Xe=Un.w||Un.width||Xe,Je=Un.h||Un.height||Je,vn=Un.alias||vn,nn=Un.compression||nn,Tn=Un.rotation||Un.angle||Tn}var Yn=this.internal.getFilters();if(nn===void 0&&Yn.indexOf("FlateEncode")!==-1&&(nn="SLOW"),isNaN(pe)||isNaN(me))throw new Error("Invalid coordinates passed to jsPDF.addImage");we.call(this);var Qe=xr.call(this,$n,ii,vn,nn);return Jn.call(this,pe,me,Xe,Je,Qe,Tn),this};var xr=function($n,ii,pe,me){var Xe,Je,vn;if(typeof $n=="string"&&Ht($n)===wt){$n=unescape($n);var nn=kr($n,!1);(nn!==""||(nn=Et.loadFile($n,!0))!==void 0)&&($n=nn)}if(gn($n)&&($n=Pn($n,ii)),ii=Ht($n,ii),!fn(ii))throw new Error("addImage does not support files of type '"+ii+"', please ensure that a plugin for '"+ii+"' support is added.");if(((vn=pe)==null||vn.length===0)&&(pe=function(Tn){return typeof Tn=="string"||ao(Tn)?di(Tn):ao(Tn.data)?di(Tn.data):null}($n)),(Xe=Ke.call(this,pe))||(Er()&&($n instanceof Uint8Array||ii==="RGBA"||(Je=$n,$n=gr($n))),Xe=this["process"+ii.toUpperCase()]($n,$e.call(this),pe,function(Tn){return Tn&&typeof Tn=="string"&&(Tn=Tn.toUpperCase()),Tn in Et.image_compression?Tn:Rn.NONE}(me),Je)),!Xe)throw new Error("An unknown error occurred whilst processing the image.");return Xe},kr=Et.__addimage__.convertBase64ToBinaryString=function($n,ii){var pe;ii=typeof ii!="boolean"||ii;var me,Xe="";if(typeof $n=="string"){me=(pe=rr($n))!==null?pe.data:$n;try{Xe=xs(me)}catch(Je){if(ii)throw Qi(me)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Je.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Xe};Et.getImageProperties=function($n){var ii,pe,me="";if(gn($n)&&($n=Pn($n)),typeof $n=="string"&&Ht($n)===wt&&((me=kr($n,!1))===""&&(me=Et.loadFile($n)||""),$n=me),pe=Ht($n),!fn(pe))throw new Error("addImage does not support files of type '"+pe+"', please ensure that a plugin for '"+pe+"' support is added.");if(!Er()||$n instanceof Uint8Array||($n=gr($n)),!(ii=this["process"+pe.toUpperCase()]($n)))throw new Error("An unknown error occurred whilst processing the image");return ii.fileType=pe,ii}})(Ho.API),function(Et){var wt=function(bt){if(bt!==void 0&&bt!="")return!0};Ho.API.events.push(["addPage",function(bt){this.internal.getPageInfo(bt.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(bt){for(var Ht,ie,Yt,ge=this.internal.getCoordinateString,we=this.internal.getVerticalCoordinateString,be=this.internal.getPageInfoByObjId(bt.objId),$e=bt.pageContext.annotations,fn=!1,gn=0;gn<$e.length&&!fn;gn++)switch((Ht=$e[gn]).type){case"link":(wt(Ht.options.url)||wt(Ht.options.pageNumber))&&(fn=!0);break;case"reference":case"text":case"freetext":fn=!0}if(fn!=0){this.internal.write("/Annots [");for(var Pn=0;Pn<$e.length;Pn++){Ht=$e[Pn];var Ke=this.internal.pdfEscape,gi=this.internal.getEncryptor(bt.objId);switch(Ht.type){case"reference":this.internal.write(" "+Ht.object.objId+" 0 R ");break;case"text":var Jn=this.internal.newAdditionalObject(),vi=this.internal.newAdditionalObject(),Rn=this.internal.getEncryptor(Jn.objId),di=Ht.title||"Note";Yt="<</Type /Annot /Subtype /Text "+(ie="/Rect ["+ge(Ht.bounds.x)+" "+we(Ht.bounds.y+Ht.bounds.h)+" "+ge(Ht.bounds.x+Ht.bounds.w)+" "+we(Ht.bounds.y)+"] ")+"/Contents ("+Ke(Rn(Ht.contents))+")",Yt+=" /Popup "+vi.objId+" 0 R",Yt+=" /P "+be.objId+" 0 R",Yt+=" /T ("+Ke(Rn(di))+") >>",Jn.content=Yt;var Qi=Jn.objId+" 0 R";Yt="<</Type /Annot /Subtype /Popup "+(ie="/Rect ["+ge(Ht.bounds.x+30)+" "+we(Ht.bounds.y+Ht.bounds.h)+" "+ge(Ht.bounds.x+Ht.bounds.w+30)+" "+we(Ht.bounds.y)+"] ")+" /Parent "+Qi,Ht.open&&(Yt+=" /Open true"),Yt+=" >>",vi.content=Yt,this.internal.write(Jn.objId,"0 R",vi.objId,"0 R");break;case"freetext":ie="/Rect ["+ge(Ht.bounds.x)+" "+we(Ht.bounds.y)+" "+ge(Ht.bounds.x+Ht.bounds.w)+" "+we(Ht.bounds.y+Ht.bounds.h)+"] ";var rr=Ht.color||"#000000";Yt="<</Type /Annot /Subtype /FreeText "+ie+"/Contents ("+Ke(gi(Ht.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(Ht.options.name){var Er=this.annotations._nameMap[Ht.options.name];Ht.options.pageNumber=Er.page,Ht.options.top=Er.y}else Ht.options.top||(Ht.options.top=0);if(ie="/Rect ["+Ht.finalBounds.x+" "+Ht.finalBounds.y+" "+Ht.finalBounds.w+" "+Ht.finalBounds.h+"] ",Yt="",Ht.options.url)Yt="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /A <</S /URI /URI ("+Ke(gi(Ht.options.url))+") >>";else if(Ht.options.pageNumber)switch(Yt="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ht.options.pageNumber).objId+" 0 R",Ht.options.magFactor=Ht.options.magFactor||"XYZ",Ht.options.magFactor){case"Fit":Yt+=" /Fit]";break;case"FitH":Yt+=" /FitH "+Ht.options.top+"]";break;case"FitV":Ht.options.left=Ht.options.left||0,Yt+=" /FitV "+Ht.options.left+"]";break;case"XYZ":default:var ao=we(Ht.options.top);Ht.options.left=Ht.options.left||0,Ht.options.zoom===void 0&&(Ht.options.zoom=0),Yt+=" /XYZ "+Ht.options.left+" "+ao+" "+Ht.options.zoom+"]"}Yt!=""&&(Yt+=" >>",this.internal.write(Yt))}}this.internal.write("]")}}]),Et.createAnnotation=function(bt){var Ht=this.internal.getCurrentPageInfo();switch(bt.type){case"link":this.link(bt.bounds.x,bt.bounds.y,bt.bounds.w,bt.bounds.h,bt);break;case"text":case"freetext":Ht.pageContext.annotations.push(bt)}},Et.link=function(bt,Ht,ie,Yt,ge){var we=this.internal.getCurrentPageInfo(),be=this.internal.getCoordinateString,$e=this.internal.getVerticalCoordinateString;we.pageContext.annotations.push({finalBounds:{x:be(bt),y:$e(Ht),w:be(bt+ie),h:$e(Ht+Yt)},options:ge,type:"link"})},Et.textWithLink=function(bt,Ht,ie,Yt){var ge,we,be=this.getTextWidth(bt),$e=this.internal.getLineHeight()/this.internal.scaleFactor;if(Yt.maxWidth!==void 0){we=Yt.maxWidth;var fn=this.splitTextToSize(bt,we).length;ge=Math.ceil($e*fn)}else we=be,ge=$e;return this.text(bt,Ht,ie,Yt),ie+=.2*$e,Yt.align==="center"&&(Ht-=be/2),Yt.align==="right"&&(Ht-=be),this.link(Ht,ie-$e,we,ge,Yt),be},Et.getTextWidth=function(bt){var Ht=this.internal.getFontSize();return this.getStringUnitWidth(bt)*Ht/this.internal.scaleFactor}}(Ho.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]},bt={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}},Ht={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ie=[1570,1571,1573,1575];Et.__arabicParser__={};var Yt=Et.__arabicParser__.isInArabicSubstitutionA=function(Jn){return wt[Jn.charCodeAt(0)]!==void 0},ge=Et.__arabicParser__.isArabicLetter=function(Jn){return typeof Jn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Jn)},we=Et.__arabicParser__.isArabicEndLetter=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length<=2},be=Et.__arabicParser__.isArabicAlfLetter=function(Jn){return ge(Jn)&&ie.indexOf(Jn.charCodeAt(0))>=0};Et.__arabicParser__.arabicLetterHasIsolatedForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length>=1};var $e=Et.__arabicParser__.arabicLetterHasFinalForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length>=2};Et.__arabicParser__.arabicLetterHasInitialForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length>=3};var fn=Et.__arabicParser__.arabicLetterHasMedialForm=function(Jn){return ge(Jn)&&Yt(Jn)&&wt[Jn.charCodeAt(0)].length==4},gn=Et.__arabicParser__.resolveLigatures=function(Jn){var vi=0,Rn=bt,di="",Qi=0;for(vi=0;vi<Jn.length;vi+=1)Rn[Jn.charCodeAt(vi)]!==void 0?(Qi++,typeof(Rn=Rn[Jn.charCodeAt(vi)])=="number"&&(di+=String.fromCharCode(Rn),Rn=bt,Qi=0),vi===Jn.length-1&&(Rn=bt,di+=Jn.charAt(vi-(Qi-1)),vi-=Qi-1,Qi=0)):(Rn=bt,di+=Jn.charAt(vi-Qi),vi-=Qi,Qi=0);return di};Et.__arabicParser__.isArabicDiacritic=function(Jn){return Jn!==void 0&&Ht[Jn.charCodeAt(0)]!==void 0};var Pn=Et.__arabicParser__.getCorrectForm=function(Jn,vi,Rn){return ge(Jn)?Yt(Jn)===!1?-1:!$e(Jn)||!ge(vi)&&!ge(Rn)||!ge(Rn)&&we(vi)||we(Jn)&&!ge(vi)||we(Jn)&&be(vi)||we(Jn)&&we(vi)?0:fn(Jn)&&ge(vi)&&!we(vi)&&ge(Rn)&&$e(Rn)?3:we(Jn)||!ge(Rn)?1:2:-1},Ke=function(Jn){var vi=0,Rn=0,di=0,Qi="",rr="",Er="",ao=(Jn=Jn||"").split("\\s+"),gr=[];for(vi=0;vi<ao.length;vi+=1){for(gr.push(""),Rn=0;Rn<ao[vi].length;Rn+=1)Qi=ao[vi][Rn],rr=ao[vi][Rn-1],Er=ao[vi][Rn+1],ge(Qi)?(di=Pn(Qi,rr,Er),gr[vi]+=di!==-1?String.fromCharCode(wt[Qi.charCodeAt(0)][di]):Qi):gr[vi]+=Qi;gr[vi]=gn(gr[vi])}return gr.join(" ")},gi=Et.__arabicParser__.processArabic=Et.processArabic=function(){var Jn,vi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Rn=[];if(Array.isArray(vi)){var di=0;for(Rn=[],di=0;di<vi.length;di+=1)Array.isArray(vi[di])?Rn.push([Ke(vi[di][0]),vi[di][1],vi[di][2]]):Rn.push([Ke(vi[di])]);Jn=Rn}else Jn=Ke(vi);return typeof arguments[0]=="string"?Jn:(arguments[0].text=Jn,arguments[0])};Et.events.push(["preProcessText",gi])}(Ho.API),Ho.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 bt=void 0;Object.defineProperty(this,"pdf",{get:function(){return bt},set:function(we){bt=we}});var Ht=150;Object.defineProperty(this,"width",{get:function(){return Ht},set:function(we){Ht=isNaN(we)||Number.isInteger(we)===!1||we<0?150:we,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ht+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(bt,Ht){var ie;if((bt=bt||"2d")!=="2d")return null;for(ie in Ht)this.pdf.context2d.hasOwnProperty(ie)&&(this.pdf.context2d[ie]=Ht[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}])}(Ho.API),function(Et){var wt={left:0,top:0,bottom:0,right:0},bt=!1,Ht=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 be=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return be},set:function(Jn){be=Jn}});var $e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return $e},set:function(Jn){$e=Jn}});var fn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return fn},set:function(Jn){fn=Jn}});var gn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return gn},set:function(Jn){gn=Jn}});var Pn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Pn},set:function(Jn){Pn=Jn}});var Ke=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ke},set:function(Jn){Ke=Jn}});var gi=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return gi},set:function(Jn){gi=Jn}}),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(be){return Ht.call(this),this.internal.__cell__.headerFunction=typeof be=="function"?be:void 0,this},Et.getTextDimensions=function(be,$e){Ht.call(this);var fn=($e=$e||{}).fontSize||this.getFontSize(),gn=$e.font||this.getFont(),Pn=$e.scaleFactor||this.internal.scaleFactor,Ke=0,gi=0,Jn=0,vi=this;if(!Array.isArray(be)&&typeof be!="string"){if(typeof be!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");be=String(be)}var Rn=$e.maxWidth;Rn>0?typeof be=="string"?be=this.splitTextToSize(be,Rn):Object.prototype.toString.call(be)==="[object Array]"&&(be=be.reduce(function(Qi,rr){return Qi.concat(vi.splitTextToSize(rr,Rn))},[])):be=Array.isArray(be)?be:[be];for(var di=0;di<be.length;di++)Ke<(Jn=this.getStringUnitWidth(be[di],{font:gn})*fn)&&(Ke=Jn);return Ke!==0&&(gi=be.length),{w:Ke/=Pn,h:Math.max((gi*fn*this.getLineHeightFactor()-fn*(this.getLineHeightFactor()-1))/Pn,0)}},Et.cellAddPage=function(){Ht.call(this),this.addPage();var be=this.internal.__cell__.margins||wt;return this.internal.__cell__.lastCell=new Yt(be.left,be.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=Et.cell=function(){var be;be=arguments[0]instanceof Yt?arguments[0]:new Yt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ht.call(this);var $e=this.internal.__cell__.lastCell,fn=this.internal.__cell__.padding,gn=this.internal.__cell__.margins||wt,Pn=this.internal.__cell__.tableHeaderRow,Ke=this.internal.__cell__.printHeaders;return $e.lineNumber!==void 0&&($e.lineNumber===be.lineNumber?(be.x=($e.x||0)+($e.width||0),be.y=$e.y||0):$e.y+$e.height+be.height+gn.bottom>this.getPageHeight()?(this.cellAddPage(),be.y=gn.top,Ke&&Pn&&(this.printHeaderRow(be.lineNumber,!0),be.y+=Pn[0].height)):be.y=$e.y+$e.height||be.y),be.text[0]!==void 0&&(this.rect(be.x,be.y,be.width,be.height,bt===!0?"FD":void 0),be.align==="right"?this.text(be.text,be.x+be.width-fn,be.y+fn,{align:"right",baseline:"top"}):be.align==="center"?this.text(be.text,be.x+be.width/2,be.y+fn,{align:"center",baseline:"top",maxWidth:be.width-fn-fn}):this.text(be.text,be.x+fn,be.y+fn,{align:"left",baseline:"top",maxWidth:be.width-fn-fn})),this.internal.__cell__.lastCell=be,this};Et.table=function(be,$e,fn,gn,Pn){if(Ht.call(this),!fn)throw new Error("No data for PDF table.");var Ke,gi,Jn,vi,Rn=[],di=[],Qi=[],rr={},Er={},ao=[],gr=[],Ti=(Pn=Pn||{}).autoSize||!1,xr=Pn.printHeaders!==!1,kr=Pn.css&&Pn.css["font-size"]!==void 0?16*Pn.css["font-size"]:Pn.fontSize||12,$n=Pn.margins||Object.assign({width:this.getPageWidth()},wt),ii=typeof Pn.padding=="number"?Pn.padding:3,pe=Pn.headerBackgroundColor||"#c8c8c8",me=Pn.headerTextColor||"#000";if(ie.call(this),this.internal.__cell__.printHeaders=xr,this.internal.__cell__.margins=$n,this.internal.__cell__.table_font_size=kr,this.internal.__cell__.padding=ii,this.internal.__cell__.headerBackgroundColor=pe,this.internal.__cell__.headerTextColor=me,this.setFontSize(kr),gn==null)di=Rn=Object.keys(fn[0]),Qi=Rn.map(function(){return"left"});else if(Array.isArray(gn)&&(0,Lt.Z)(gn[0])==="object")for(Rn=gn.map(function(Un){return Un.name}),di=gn.map(function(Un){return Un.prompt||Un.name||""}),Qi=gn.map(function(Un){return Un.align||"left"}),Ke=0;Ke<gn.length;Ke+=1)Er[gn[Ke].name]=gn[Ke].width*(19.049976/25.4);else Array.isArray(gn)&&typeof gn[0]=="string"&&(di=Rn=gn,Qi=Rn.map(function(){return"left"}));if(Ti||Array.isArray(gn)&&typeof gn[0]=="string")for(Ke=0;Ke<Rn.length;Ke+=1){for(rr[vi=Rn[Ke]]=fn.map(function(Un){return Un[vi]}),this.setFont(void 0,"bold"),ao.push(this.getTextDimensions(di[Ke],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),gi=rr[vi],this.setFont(void 0,"normal"),Jn=0;Jn<gi.length;Jn+=1)ao.push(this.getTextDimensions(gi[Jn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Er[vi]=Math.max.apply(null,ao)+ii+ii,ao=[]}if(xr){var Xe={};for(Ke=0;Ke<Rn.length;Ke+=1)Xe[Rn[Ke]]={},Xe[Rn[Ke]].text=di[Ke],Xe[Rn[Ke]].align=Qi[Ke];var Je=we.call(this,Xe,Er);gr=Rn.map(function(Un){return new Yt(be,$e,Er[Un],Je,Xe[Un].text,void 0,Xe[Un].align)}),this.setTableHeaderRow(gr),this.printHeaderRow(1,!1)}var vn=gn.reduce(function(Un,Yn){return Un[Yn.name]=Yn.align,Un},{});for(Ke=0;Ke<fn.length;Ke+=1){"rowStart"in Pn&&Pn.rowStart instanceof Function&&Pn.rowStart({row:Ke,data:fn[Ke]},this);var nn=we.call(this,fn[Ke],Er);for(Jn=0;Jn<Rn.length;Jn+=1){var Tn=fn[Ke][Rn[Jn]];"cellStart"in Pn&&Pn.cellStart instanceof Function&&Pn.cellStart({row:Ke,col:Jn,data:Tn},this),ge.call(this,new Yt(be,$e,Er[Rn[Jn]],nn,Tn,Ke+2,vn[Rn[Jn]]))}}return this.internal.__cell__.table_x=be,this.internal.__cell__.table_y=$e,this};var we=function(be,$e){var fn=this.internal.__cell__.padding,gn=this.internal.__cell__.table_font_size,Pn=this.internal.scaleFactor;return Object.keys(be).map(function(Ke){var gi=be[Ke];return this.splitTextToSize(gi.hasOwnProperty("text")?gi.text:gi,$e[Ke]-fn-fn)},this).map(function(Ke){return this.getLineHeightFactor()*Ke.length*gn/Pn+fn+fn},this).reduce(function(Ke,gi){return Math.max(Ke,gi)},0)};Et.setTableHeaderRow=function(be){Ht.call(this),this.internal.__cell__.tableHeaderRow=be},Et.printHeaderRow=function(be,$e){if(Ht.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var fn;if(bt=!0,typeof this.internal.__cell__.headerFunction=="function"){var gn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Yt(gn[0],gn[1],gn[2],gn[3],void 0,-1)}this.setFont(void 0,"bold");for(var Pn=[],Ke=0;Ke<this.internal.__cell__.tableHeaderRow.length;Ke+=1){fn=this.internal.__cell__.tableHeaderRow[Ke].clone(),$e&&(fn.y=this.internal.__cell__.margins.top||0,Pn.push(fn)),fn.lineNumber=be;var gi=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,fn),this.setTextColor(gi)}Pn.length>0&&this.setTableHeaderRow(Pn),this.setFont(void 0,"normal"),bt=!1}}(Ho.API);var Nh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ec=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ol=yd(ec),xh=[100,200,300,400,500,600,700,800,900],Qd=yd(xh);function Oc(Et){var wt=Et.family.replace(/"|'/g,"").toLowerCase(),bt=function(Yt){return Nh[Yt=Yt||"normal"]?Yt:"normal"}(Et.style),Ht=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 ol[Yt=Yt||"normal"]=="number"?Yt:"normal"}(Et.stretch);return{family:wt,style:bt,weight:Ht,stretch:ie,src:Et.src||[],ref:Et.ref||{name:wt,style:[ie,bt,Ht].join(" ")}}}function Dc(Et,wt,bt,Ht){var ie;for(ie=bt;ie>=0&&ie<wt.length;ie+=Ht)if(Et[wt[ie]])return Et[wt[ie]];for(ie=bt;ie>=0&&ie<wt.length;ie-=Ht)if(Et[wt[ie]])return Et[wt[ie]]}var Fs={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ya={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ju(Et){return[Et.stretch,Et.style,Et.weight,Et.family].join(" ")}function qa(Et,wt,bt){for(var Ht=(bt=bt||{}).defaultFontFamily||"times",ie=Object.assign({},Fs,bt.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[Ht]))throw new Error("Could not find a font-family for the rule '"+ju(Yt)+"' and default family '"+Ht+"'.");if(ge=function(be,$e){if($e[be])return $e[be];var fn=ol[be],gn=fn<=ol.normal?-1:1,Pn=Dc($e,ec,fn,gn);if(!Pn)throw new Error("Could not find a matching font-stretch value for "+be);return Pn}(Yt.stretch,ge),ge=function(be,$e){if($e[be])return $e[be];for(var fn=Nh[be],gn=0;gn<fn.length;++gn)if($e[fn[gn]])return $e[fn[gn]];throw new Error("Could not find a matching font-style for "+be)}(Yt.style,ge),!(ge=function(be,$e){if($e[be])return $e[be];if(be===400&&$e[500])return $e[500];if(be===500&&$e[400])return $e[400];var fn=Qd[be],gn=Dc($e,xh,fn,be<400?-1:1);if(!gn)throw new Error("Could not find a matching font-weight for value "+be);return gn}(Yt.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+ju(Yt)+"'.");return ge}function sl(Et){return Et.trimLeft()}function za(Et,wt){for(var bt=0;bt<Et.length;){if(Et.charAt(bt)===wt)return[Et.substring(0,bt),Et.substring(bt+1)];bt+=1}return null}function Aa(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 tl,Ol,fc,ch=["times"];(function(Et){var wt,bt,Ht,ie,Yt,ge,we,be,$e,fn=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 be,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 gn(this),wt=this.internal.f2,bt=this.internal.getCoordinateString,Ht=this.internal.getVerticalCoordinateString,ie=this.internal.getHorizontalCoordinate,Yt=this.internal.getVerticalCoordinate,ge=this.internal.Point,we=this.internal.Rectangle,be=this.internal.Matrix,$e=new fn}]);var gn=function(Qe){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var hn=Qe;Object.defineProperty(this,"pdf",{get:function(){return hn}});var mn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return mn},set:function(Ii){mn=!!Ii}});var Qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Qn},set:function(Ii){Qn=!!Ii}});var Zn=0;Object.defineProperty(this,"posX",{get:function(){return Zn},set:function(Ii){isNaN(Ii)||(Zn=Ii)}});var ni=0;Object.defineProperty(this,"posY",{get:function(){return ni},set:function(Ii){isNaN(Ii)||(ni=Ii)}}),Object.defineProperty(this,"margin",{get:function(){return $e.margin},set:function(Ii){var Xn;typeof Ii=="number"?Xn=[Ii,Ii,Ii,Ii]:((Xn=new Array(4))[0]=Ii[0],Xn[1]=Ii.length>=2?Ii[1]:Xn[0],Xn[2]=Ii.length>=3?Ii[2]:Xn[0],Xn[3]=Ii.length>=4?Ii[3]:Xn[1]),$e.margin=Xn}});var Ei=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ei},set:function(Ii){Ei=Ii}});var li=0;Object.defineProperty(this,"lastBreak",{get:function(){return li},set:function(Ii){li=Ii}});var Xi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Xi},set:function(Ii){Xi=Ii}}),Object.defineProperty(this,"ctx",{get:function(){return $e},set:function(Ii){Ii instanceof fn&&($e=Ii)}}),Object.defineProperty(this,"path",{get:function(){return $e.path},set:function(Ii){$e.path=Ii}});var Zi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Zi},set:function(Ii){Zi=Ii}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ii){var Xn;Xn=Pn(Ii),this.ctx.fillStyle=Xn.style,this.ctx.isFillTransparent=Xn.a===0,this.ctx.fillOpacity=Xn.a,this.pdf.setFillColor(Xn.r,Xn.g,Xn.b,{a:Xn.a}),this.pdf.setTextColor(Xn.r,Xn.g,Xn.b,{a:Xn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ii){var Xn=Pn(Ii);this.ctx.strokeStyle=Xn.style,this.ctx.isStrokeTransparent=Xn.a===0,this.ctx.strokeOpacity=Xn.a,Xn.a===0?this.pdf.setDrawColor(255,255,255):(Xn.a,this.pdf.setDrawColor(Xn.r,Xn.g,Xn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ii){["butt","round","square"].indexOf(Ii)!==-1&&(this.ctx.lineCap=Ii,this.pdf.setLineCap(Ii))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ii){isNaN(Ii)||(this.ctx.lineWidth=Ii,this.pdf.setLineWidth(Ii))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ii){["bevel","round","miter"].indexOf(Ii)!==-1&&(this.ctx.lineJoin=Ii,this.pdf.setLineJoin(Ii))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ii){isNaN(Ii)||(this.ctx.miterLimit=Ii,this.pdf.setMiterLimit(Ii))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ii){this.ctx.textBaseline=Ii}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ii){["right","end","center","left","start"].indexOf(Ii)!==-1&&(this.ctx.textAlign=Ii)}});var Ar=null;function br(Ii,Xn){if(Ar===null){var Bo=function(Pr){var sr=[];return Object.keys(Pr).forEach(function(ar){Pr[ar].forEach(function(qi){var pr=null;switch(qi){case"bold":pr={family:ar,weight:"bold"};break;case"italic":pr={family:ar,style:"italic"};break;case"bolditalic":pr={family:ar,weight:"bold",style:"italic"};break;case"":case"normal":pr={family:ar}}pr!==null&&(pr.ref={name:ar,style:qi},sr.push(pr))})}),sr}(Ii.getFontList());Ar=function(Pr){for(var sr={},ar=0;ar<Pr.length;++ar){var qi=Oc(Pr[ar]),pr=qi.family,Wr=qi.stretch,ho=qi.style,po=qi.weight;sr[pr]=sr[pr]||{},sr[pr][Wr]=sr[pr][Wr]||{},sr[pr][Wr][ho]=sr[pr][Wr][ho]||{},sr[pr][Wr][ho][po]=qi}return sr}(Bo.concat(Xn))}return Ar}var io=null;Object.defineProperty(this,"fontFaces",{get:function(){return io},set:function(Ii){Ar=null,io=Ii}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ii){var Xn;if(this.ctx.font=Ii,(Xn=/^\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(Ii))!==null){var Bo=Xn[1],Pr=(Xn[2],Xn[3]),sr=Xn[4],ar=(Xn[5],Xn[6]),qi=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(sr)[2];sr=Math.floor(qi==="px"?parseFloat(sr)*this.pdf.internal.scaleFactor:qi==="em"?parseFloat(sr)*this.pdf.getFontSize():parseFloat(sr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(sr);var pr=function(qo){var is,So,wa=[],Vo=qo.trim();if(Vo==="")return ch;if(Vo in ya)return[ya[Vo]];for(;Vo!=="";){switch(So=null,is=(Vo=sl(Vo)).charAt(0)){case'"':case"'":So=za(Vo.substring(1),is);break;default:So=Aa(Vo)}if(So===null||(wa.push(So[0]),(Vo=sl(So[1]))!==""&&Vo.charAt(0)!==","))return ch;Vo=Vo.replace(/^,/,"")}return wa}(ar);if(this.fontFaces){var Wr=qa(br(this.pdf,this.fontFaces),pr.map(function(qo){return{family:qo,stretch:"normal",weight:Pr,style:Bo}}));this.pdf.setFont(Wr.ref.name,Wr.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="",Ur={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"},jo=0;jo<pr.length;jo++){if(this.pdf.internal.getFont(pr[jo],ho,{noFallback:!0,disableWarning:!0})!==void 0){po=pr[jo];break}if(ho==="bolditalic"&&this.pdf.internal.getFont(pr[jo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)po=pr[jo],ho="bold";else if(this.pdf.internal.getFont(pr[jo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){po=pr[jo],ho="normal";break}}if(po===""){for(var us=0;us<pr.length;us++)if(Ur[pr[us]]){po=Ur[pr[us]];break}}po=po===""?"Times":po,this.pdf.setFont(po,ho)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ii){this.ctx.globalCompositeOperation=Ii}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ii){this.ctx.globalAlpha=Ii}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ii){this.ctx.lineDashOffset=Ii,Yn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ii){this.ctx.lineDash=Ii,Yn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ii){this.ctx.ignoreClearRect=!!Ii}})};gn.prototype.setLineDash=function(Qe){this.lineDash=Qe},gn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},gn.prototype.fill=function(){rr.call(this,"fill",!1)},gn.prototype.stroke=function(){rr.call(this,"stroke",!1)},gn.prototype.beginPath=function(){this.path=[{type:"begin"}]},gn.prototype.moveTo=function(Qe,hn){if(isNaN(Qe)||isNaN(hn))throw bo.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var mn=this.ctx.transform.applyToPoint(new ge(Qe,hn));this.path.push({type:"mt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new ge(Qe,hn)},gn.prototype.closePath=function(){var Qe=new ge(0,0),hn=0;for(hn=this.path.length-1;hn!==-1;hn--)if(this.path[hn].type==="begin"&&(0,Lt.Z)(this.path[hn+1])==="object"&&typeof this.path[hn+1].x=="number"){Qe=new ge(this.path[hn+1].x,this.path[hn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ge(Qe.x,Qe.y)},gn.prototype.lineTo=function(Qe,hn){if(isNaN(Qe)||isNaN(hn))throw bo.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var mn=this.ctx.transform.applyToPoint(new ge(Qe,hn));this.path.push({type:"lt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new ge(mn.x,mn.y)},gn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),rr.call(this,null,!0)},gn.prototype.quadraticCurveTo=function(Qe,hn,mn,Qn){if(isNaN(mn)||isNaN(Qn)||isNaN(Qe)||isNaN(hn))throw bo.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Zn=this.ctx.transform.applyToPoint(new ge(mn,Qn)),ni=this.ctx.transform.applyToPoint(new ge(Qe,hn));this.path.push({type:"qct",x1:ni.x,y1:ni.y,x:Zn.x,y:Zn.y}),this.ctx.lastPoint=new ge(Zn.x,Zn.y)},gn.prototype.bezierCurveTo=function(Qe,hn,mn,Qn,Zn,ni){if(isNaN(Zn)||isNaN(ni)||isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn))throw bo.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Ei=this.ctx.transform.applyToPoint(new ge(Zn,ni)),li=this.ctx.transform.applyToPoint(new ge(Qe,hn)),Xi=this.ctx.transform.applyToPoint(new ge(mn,Qn));this.path.push({type:"bct",x1:li.x,y1:li.y,x2:Xi.x,y2:Xi.y,x:Ei.x,y:Ei.y}),this.ctx.lastPoint=new ge(Ei.x,Ei.y)},gn.prototype.arc=function(Qe,hn,mn,Qn,Zn,ni){if(isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn)||isNaN(Zn))throw bo.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ni=!!ni,!this.ctx.transform.isIdentity){var Ei=this.ctx.transform.applyToPoint(new ge(Qe,hn));Qe=Ei.x,hn=Ei.y;var li=this.ctx.transform.applyToPoint(new ge(0,mn)),Xi=this.ctx.transform.applyToPoint(new ge(0,0));mn=Math.sqrt(Math.pow(li.x-Xi.x,2)+Math.pow(li.y-Xi.y,2))}Math.abs(Zn-Qn)>=2*Math.PI&&(Qn=0,Zn=2*Math.PI),this.path.push({type:"arc",x:Qe,y:hn,radius:mn,startAngle:Qn,endAngle:Zn,counterclockwise:ni})},gn.prototype.arcTo=function(Qe,hn,mn,Qn,Zn){throw new Error("arcTo not implemented.")},gn.prototype.rect=function(Qe,hn,mn,Qn){if(isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn))throw bo.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Qe,hn),this.lineTo(Qe+mn,hn),this.lineTo(Qe+mn,hn+Qn),this.lineTo(Qe,hn+Qn),this.lineTo(Qe,hn),this.lineTo(Qe+mn,hn),this.lineTo(Qe,hn)},gn.prototype.fillRect=function(Qe,hn,mn,Qn){if(isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn))throw bo.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ke.call(this)){var Zn={};this.lineCap!=="butt"&&(Zn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Qe,hn,mn,Qn),this.fill(),Zn.hasOwnProperty("lineCap")&&(this.lineCap=Zn.lineCap),Zn.hasOwnProperty("lineJoin")&&(this.lineJoin=Zn.lineJoin)}},gn.prototype.strokeRect=function(Qe,hn,mn,Qn){if(isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn))throw bo.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");gi.call(this)||(this.beginPath(),this.rect(Qe,hn,mn,Qn),this.stroke())},gn.prototype.clearRect=function(Qe,hn,mn,Qn){if(isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn))throw bo.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Qe,hn,mn,Qn))},gn.prototype.save=function(Qe){Qe=typeof Qe!="boolean"||Qe;for(var hn=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("q");if(this.pdf.setPage(hn),Qe){this.ctx.fontSize=this.pdf.internal.getFontSize();var Qn=new fn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Qn}},gn.prototype.restore=function(Qe){Qe=typeof Qe!="boolean"||Qe;for(var hn=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("Q");this.pdf.setPage(hn),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)},gn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Pn=function(Qe){var hn,mn,Qn,Zn;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))hn=0,mn=0,Qn=0,Zn=0;else{var ni=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Qe);if(ni!==null)hn=parseInt(ni[1]),mn=parseInt(ni[2]),Qn=parseInt(ni[3]),Zn=1;else if((ni=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Qe))!==null)hn=parseInt(ni[1]),mn=parseInt(ni[2]),Qn=parseInt(ni[3]),Zn=parseFloat(ni[4]);else{if(Zn=1,typeof Qe=="string"&&Qe.charAt(0)!=="#"){var Ei=new Io(Qe);Qe=Ei.ok?Ei.toHex():"#000000"}Qe.length===4?(hn=Qe.substring(1,2),hn+=hn,mn=Qe.substring(2,3),mn+=mn,Qn=Qe.substring(3,4),Qn+=Qn):(hn=Qe.substring(1,3),mn=Qe.substring(3,5),Qn=Qe.substring(5,7)),hn=parseInt(hn,16),mn=parseInt(mn,16),Qn=parseInt(Qn,16)}}return{r:hn,g:mn,b:Qn,a:Zn,style:Qe}},Ke=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},gi=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};gn.prototype.fillText=function(Qe,hn,mn,Qn){if(isNaN(hn)||isNaN(mn)||typeof Qe!="string")throw bo.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Qn=isNaN(Qn)?void 0:Qn,!Ke.call(this)){var Zn=nn(this.ctx.transform.rotation),ni=this.ctx.transform.scaleX;ii.call(this,{text:Qe,x:hn,y:mn,scale:ni,angle:Zn,align:this.textAlign,maxWidth:Qn})}},gn.prototype.strokeText=function(Qe,hn,mn,Qn){if(isNaN(hn)||isNaN(mn)||typeof Qe!="string")throw bo.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!gi.call(this)){Qn=isNaN(Qn)?void 0:Qn;var Zn=nn(this.ctx.transform.rotation),ni=this.ctx.transform.scaleX;ii.call(this,{text:Qe,x:hn,y:mn,scale:ni,renderingMode:"stroke",angle:Zn,align:this.textAlign,maxWidth:Qn})}},gn.prototype.measureText=function(Qe){if(typeof Qe!="string")throw bo.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var hn=this.pdf,mn=this.pdf.internal.scaleFactor,Qn=hn.internal.getFontSize(),Zn=hn.getStringUnitWidth(Qe)*Qn/hn.internal.scaleFactor,ni=function(Ei){var li=(Ei=Ei||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return li}}),this};return new ni({width:Zn*=Math.round(96*mn/72*1e4)/1e4})},gn.prototype.scale=function(Qe,hn){if(isNaN(Qe)||isNaN(hn))throw bo.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var mn=new be(Qe,0,0,hn,0,0);this.ctx.transform=this.ctx.transform.multiply(mn)},gn.prototype.rotate=function(Qe){if(isNaN(Qe))throw bo.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var hn=new be(Math.cos(Qe),Math.sin(Qe),-Math.sin(Qe),Math.cos(Qe),0,0);this.ctx.transform=this.ctx.transform.multiply(hn)},gn.prototype.translate=function(Qe,hn){if(isNaN(Qe)||isNaN(hn))throw bo.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var mn=new be(1,0,0,1,Qe,hn);this.ctx.transform=this.ctx.transform.multiply(mn)},gn.prototype.transform=function(Qe,hn,mn,Qn,Zn,ni){if(isNaN(Qe)||isNaN(hn)||isNaN(mn)||isNaN(Qn)||isNaN(Zn)||isNaN(ni))throw bo.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Ei=new be(Qe,hn,mn,Qn,Zn,ni);this.ctx.transform=this.ctx.transform.multiply(Ei)},gn.prototype.setTransform=function(Qe,hn,mn,Qn,Zn,ni){Qe=isNaN(Qe)?1:Qe,hn=isNaN(hn)?0:hn,mn=isNaN(mn)?0:mn,Qn=isNaN(Qn)?1:Qn,Zn=isNaN(Zn)?0:Zn,ni=isNaN(ni)?0:ni,this.ctx.transform=new be(Qe,hn,mn,Qn,Zn,ni)};var Jn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};gn.prototype.drawImage=function(Qe,hn,mn,Qn,Zn,ni,Ei,li,Xi){var Zi=this.pdf.getImageProperties(Qe),Ar=1,br=1,io=1,Ii=1;Qn!==void 0&&li!==void 0&&(io=li/Qn,Ii=Xi/Zn,Ar=Zi.width/Qn*li/Qn,br=Zi.height/Zn*Xi/Zn),ni===void 0&&(ni=hn,Ei=mn,hn=0,mn=0),Qn!==void 0&&li===void 0&&(li=Qn,Xi=Zn),Qn===void 0&&li===void 0&&(li=Zi.width,Xi=Zi.height);for(var Xn,Bo=this.ctx.transform.decompose(),Pr=nn(Bo.rotate.shx),sr=new be,ar=(sr=(sr=(sr=sr.multiply(Bo.translate)).multiply(Bo.skew)).multiply(Bo.scale)).applyToRectangle(new we(ni-hn*io,Ei-mn*Ii,Qn*Ar,Zn*br)),qi=vi.call(this,ar),pr=[],Wr=0;Wr<qi.length;Wr+=1)pr.indexOf(qi[Wr])===-1&&pr.push(qi[Wr]);if(Qi(pr),this.autoPaging)for(var ho=pr[0],po=pr[pr.length-1],Ur=ho;Ur<po+1;Ur++){this.pdf.setPage(Ur);var jo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],us=Ur===1?this.posY+this.margin[0]:this.margin[0],qo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],is=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],So=Ur===1?0:qo+(Ur-2)*is;if(this.ctx.clip_path.length!==0){var wa=this.path;Xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=di(Xn,this.posX+this.margin[3],-So+us+this.ctx.prevPageLastElemOffset),Er.call(this,"fill",!0),this.path=wa}var Vo=JSON.parse(JSON.stringify(ar));Vo=di([Vo],this.posX+this.margin[3],-So+us+this.ctx.prevPageLastElemOffset)[0];var rs=(Ur>ho||Ur<po)&&Jn.call(this);rs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],jo,is,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,hn,mn){var Qn=[];hn=hn||this.pdf.internal.pageSize.width,mn=mn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Zn=this.posY+this.ctx.prevPageLastElemOffset;switch(Qe.type){default:case"mt":case"lt":Qn.push(Math.floor((Qe.y+Zn)/mn)+1);break;case"arc":Qn.push(Math.floor((Qe.y+Zn-Qe.radius)/mn)+1),Qn.push(Math.floor((Qe.y+Zn+Qe.radius)/mn)+1);break;case"qct":var ni=Tn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Qe.x1,Qe.y1,Qe.x,Qe.y);Qn.push(Math.floor((ni.y+Zn)/mn)+1),Qn.push(Math.floor((ni.y+ni.h+Zn)/mn)+1);break;case"bct":var Ei=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((Ei.y+Zn)/mn)+1),Qn.push(Math.floor((Ei.y+Ei.h+Zn)/mn)+1);break;case"rect":Qn.push(Math.floor((Qe.y+Zn)/mn)+1),Qn.push(Math.floor((Qe.y+Qe.h+Zn)/mn)+1)}for(var li=0;li<Qn.length;li+=1)for(;this.pdf.internal.getNumberOfPages()<Qn[li];)Rn.call(this);return Qn},Rn=function(){var Qe=this.fillStyle,hn=this.strokeStyle,mn=this.font,Qn=this.lineCap,Zn=this.lineWidth,ni=this.lineJoin;this.pdf.addPage(),this.fillStyle=Qe,this.strokeStyle=hn,this.font=mn,this.lineCap=Qn,this.lineWidth=Zn,this.lineJoin=ni},di=function(Qe,hn,mn){for(var Qn=0;Qn<Qe.length;Qn++)switch(Qe[Qn].type){case"bct":Qe[Qn].x2+=hn,Qe[Qn].y2+=mn;case"qct":Qe[Qn].x1+=hn,Qe[Qn].y1+=mn;case"mt":case"lt":case"arc":default:Qe[Qn].x+=hn,Qe[Qn].y+=mn}return Qe},Qi=function(Qe){return Qe.sort(function(hn,mn){return hn-mn})},rr=function(Qe,hn){for(var mn,Qn,Zn=this.fillStyle,ni=this.strokeStyle,Ei=this.lineCap,li=this.lineWidth,Xi=Math.abs(li*this.ctx.transform.scaleX),Zi=this.lineJoin,Ar=JSON.parse(JSON.stringify(this.path)),br=JSON.parse(JSON.stringify(this.path)),io=[],Ii=0;Ii<br.length;Ii++)if(br[Ii].x!==void 0)for(var Xn=vi.call(this,br[Ii]),Bo=0;Bo<Xn.length;Bo+=1)io.indexOf(Xn[Bo])===-1&&io.push(Xn[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],qi=sr;qi<ar+1;qi++){this.pdf.setPage(qi),this.fillStyle=Zn,this.strokeStyle=ni,this.lineCap=Ei,this.lineWidth=Xi,this.lineJoin=Zi;var pr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Wr=qi===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],Ur=qi===1?0:ho+(qi-2)*po;if(this.ctx.clip_path.length!==0){var jo=this.path;mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=di(mn,this.posX+this.margin[3],-Ur+Wr+this.ctx.prevPageLastElemOffset),Er.call(this,Qe,!0),this.path=jo}if(Qn=JSON.parse(JSON.stringify(Ar)),this.path=di(Qn,this.posX+this.margin[3],-Ur+Wr+this.ctx.prevPageLastElemOffset),hn===!1||qi===0){var us=(qi>sr||qi<ar)&&Jn.call(this);us&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pr,po,null).clip().discardPath()),Er.call(this,Qe,hn),us&&this.pdf.restoreGraphicsState()}this.lineWidth=li}else this.lineWidth=Xi,Er.call(this,Qe,hn),this.lineWidth=li;this.path=Ar},Er=function(Qe,hn){if((Qe!=="stroke"||hn||!gi.call(this))&&(Qe==="stroke"||hn||!Ke.call(this))){for(var mn,Qn,Zn=[],ni=this.path,Ei=0;Ei<ni.length;Ei++){var li=ni[Ei];switch(li.type){case"begin":Zn.push({begin:!0});break;case"close":Zn.push({close:!0});break;case"mt":Zn.push({start:li,deltas:[],abs:[]});break;case"lt":var Xi=Zn.length;if(ni[Ei-1]&&!isNaN(ni[Ei-1].x)&&(mn=[li.x-ni[Ei-1].x,li.y-ni[Ei-1].y],Xi>0)){for(;Xi>=0;Xi--)if(Zn[Xi-1].close!==!0&&Zn[Xi-1].begin!==!0){Zn[Xi-1].deltas.push(mn),Zn[Xi-1].abs.push(li);break}}break;case"bct":mn=[li.x1-ni[Ei-1].x,li.y1-ni[Ei-1].y,li.x2-ni[Ei-1].x,li.y2-ni[Ei-1].y,li.x-ni[Ei-1].x,li.y-ni[Ei-1].y],Zn[Zn.length-1].deltas.push(mn);break;case"qct":var Zi=ni[Ei-1].x+2/3*(li.x1-ni[Ei-1].x),Ar=ni[Ei-1].y+2/3*(li.y1-ni[Ei-1].y),br=li.x+2/3*(li.x1-li.x),io=li.y+2/3*(li.y1-li.y),Ii=li.x,Xn=li.y;mn=[Zi-ni[Ei-1].x,Ar-ni[Ei-1].y,br-ni[Ei-1].x,io-ni[Ei-1].y,Ii-ni[Ei-1].x,Xn-ni[Ei-1].y],Zn[Zn.length-1].deltas.push(mn);break;case"arc":Zn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Zn[Zn.length-1].abs)&&Zn[Zn.length-1].abs.push(li)}}Qn=hn?null:Qe==="stroke"?"stroke":"fill";for(var Bo=!1,Pr=0;Pr<Zn.length;Pr++)if(Zn[Pr].arc)for(var sr=Zn[Pr].abs,ar=0;ar<sr.length;ar++){var qi=sr[ar];qi.type==="arc"?Ti.call(this,qi.x,qi.y,qi.radius,qi.startAngle,qi.endAngle,qi.counterclockwise,void 0,hn,!Bo):pe.call(this,qi.x,qi.y),Bo=!0}else if(Zn[Pr].close===!0)this.pdf.internal.out("h"),Bo=!1;else if(Zn[Pr].begin!==!0){var pr=Zn[Pr].start.x,Wr=Zn[Pr].start.y;me.call(this,Zn[Pr].deltas,pr,Wr),Bo=!0}Qn&&xr.call(this,Qn),hn&&kr.call(this)}},ao=function(Qe){var hn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,mn=hn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Qe-mn;case"top":return Qe+hn-mn;case"hanging":return Qe+hn-2*mn;case"middle":return Qe+hn/2-mn;case"ideographic":return Qe;case"alphabetic":default:return Qe}},gr=function(Qe){return Qe+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};gn.prototype.createLinearGradient=function(){var Qe=function(){};return Qe.colorStops=[],Qe.addColorStop=function(hn,mn){this.colorStops.push([hn,mn])},Qe.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Qe.isCanvasGradient=!0,Qe},gn.prototype.createPattern=function(){return this.createLinearGradient()},gn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ti=function(Qe,hn,mn,Qn,Zn,ni,Ei,li,Xi){for(var Zi=Je.call(this,mn,Qn,Zn,ni),Ar=0;Ar<Zi.length;Ar++){var br=Zi[Ar];Ar===0&&(Xi?$n.call(this,br.x1+Qe,br.y1+hn):pe.call(this,br.x1+Qe,br.y1+hn)),Xe.call(this,Qe,hn,br.x2,br.y2,br.x3,br.y3,br.x4,br.y4)}li?kr.call(this):xr.call(this,Ei)},xr=function(Qe){switch(Qe){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},kr=function(){this.pdf.clip(),this.pdf.discardPath()},$n=function(Qe,hn){this.pdf.internal.out(bt(Qe)+" "+Ht(hn)+" m")},ii=function(Qe){var hn;switch(Qe.align){case"right":case"end":hn="right";break;case"center":hn="center";break;case"left":case"start":default:hn="left"}var mn=this.pdf.getTextDimensions(Qe.text),Qn=ao.call(this,Qe.y),Zn=gr.call(this,Qn)-mn.h,ni=this.ctx.transform.applyToPoint(new ge(Qe.x,Qn)),Ei=this.ctx.transform.decompose(),li=new be;li=(li=(li=li.multiply(Ei.translate)).multiply(Ei.skew)).multiply(Ei.scale);for(var Xi,Zi,Ar,br=this.ctx.transform.applyToRectangle(new we(Qe.x,Qn,mn.w,mn.h)),io=li.applyToRectangle(new we(Qe.x,Zn,mn.w,mn.h)),Ii=vi.call(this,io),Xn=[],Bo=0;Bo<Ii.length;Bo+=1)Xn.indexOf(Ii[Bo])===-1&&Xn.push(Ii[Bo]);if(Qi(Xn),this.autoPaging)for(var Pr=Xn[0],sr=Xn[Xn.length-1],ar=Pr;ar<sr+1;ar++){this.pdf.setPage(ar);var qi=ar===1?this.posY+this.margin[0]:this.margin[0],pr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Wr=this.pdf.internal.pageSize.height-this.margin[2],ho=Wr-this.margin[0],po=this.pdf.internal.pageSize.width-this.margin[1],Ur=po-this.margin[3],jo=ar===1?0:pr+(ar-2)*ho;if(this.ctx.clip_path.length!==0){var us=this.path;Xi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=di(Xi,this.posX+this.margin[3],-1*jo+qi),Er.call(this,"fill",!0),this.path=us}var qo=di([JSON.parse(JSON.stringify(io))],this.posX+this.margin[3],-jo+qi+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 is=this.autoPaging!=="text";if(is||qo.y+qo.h<=Wr){if(is||qo.y>=qi&&qo.x<=po){var So=is?Qe.text:this.pdf.splitTextToSize(Qe.text,Qe.maxWidth||po-qo.x)[0],wa=di([JSON.parse(JSON.stringify(br))],this.posX+this.margin[3],-jo+qi+this.ctx.prevPageLastElemOffset)[0],Vo=is&&(ar>Pr||ar<sr)&&Jn.call(this);Vo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ur,ho,null).clip().discardPath()),this.pdf.text(So,wa.x,wa.y,{angle:Qe.angle,align:hn,renderingMode:Qe.renderingMode}),Vo&&this.pdf.restoreGraphicsState()}}else qo.y<Wr&&(this.ctx.prevPageLastElemOffset+=Wr-qo.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,ni.x+this.posX,ni.y+this.posY,{angle:Qe.angle,align:hn,renderingMode:Qe.renderingMode,maxWidth:Qe.maxWidth}),Qe.scale>=.01&&(this.pdf.setFontSize(Zi),this.lineWidth=Ar)},pe=function(Qe,hn,mn,Qn){mn=mn||0,Qn=Qn||0,this.pdf.internal.out(bt(Qe+mn)+" "+Ht(hn+Qn)+" l")},me=function(Qe,hn,mn){return this.pdf.lines(Qe,hn,mn,null,null)},Xe=function(Qe,hn,mn,Qn,Zn,ni,Ei,li){this.pdf.internal.out([wt(ie(mn+Qe)),wt(Yt(Qn+hn)),wt(ie(Zn+Qe)),wt(Yt(ni+hn)),wt(ie(Ei+Qe)),wt(Yt(li+hn)),"c"].join(" "))},Je=function(Qe,hn,mn,Qn){for(var Zn=2*Math.PI,ni=Math.PI/2;hn>mn;)hn-=Zn;var Ei=Math.abs(mn-hn);Ei<Zn&&Qn&&(Ei=Zn-Ei);for(var li=[],Xi=Qn?-1:1,Zi=hn;Ei>1e-5;){var Ar=Zi+Xi*Math.min(Ei,ni);li.push(vn.call(this,Qe,Zi,Ar)),Ei-=Math.abs(Ar-Zi),Zi=Ar}return li},vn=function(Qe,hn,mn){var Qn=(mn-hn)/2,Zn=Qe*Math.cos(Qn),ni=Qe*Math.sin(Qn),Ei=Zn,li=-ni,Xi=Ei*Ei+li*li,Zi=Xi+Ei*Zn+li*ni,Ar=4/3*(Math.sqrt(2*Xi*Zi)-Zi)/(Ei*ni-li*Zn),br=Ei-Ar*li,io=li+Ar*Ei,Ii=br,Xn=-io,Bo=Qn+hn,Pr=Math.cos(Bo),sr=Math.sin(Bo);return{x1:Qe*Math.cos(hn),y1:Qe*Math.sin(hn),x2:br*Pr-io*sr,y2:br*sr+io*Pr,x3:Ii*Pr-Xn*sr,y3:Ii*sr+Xn*Pr,x4:Qe*Math.cos(mn),y4:Qe*Math.sin(mn)}},nn=function(Qe){return 180*Qe/Math.PI},Tn=function(Qe,hn,mn,Qn,Zn,ni){var Ei=Qe+.5*(mn-Qe),li=hn+.5*(Qn-hn),Xi=Zn+.5*(mn-Zn),Zi=ni+.5*(Qn-ni),Ar=Math.min(Qe,Zn,Ei,Xi),br=Math.max(Qe,Zn,Ei,Xi),io=Math.min(hn,ni,li,Zi),Ii=Math.max(hn,ni,li,Zi);return new we(Ar,io,br-Ar,Ii-io)},Un=function(Qe,hn,mn,Qn,Zn,ni,Ei,li){var Xi,Zi,Ar,br,io,Ii,Xn,Bo,Pr,sr,ar,qi,pr,Wr,ho=mn-Qe,po=Qn-hn,Ur=Zn-mn,jo=ni-Qn,us=Ei-Zn,qo=li-ni;for(Zi=0;Zi<41;Zi++)Pr=(Xn=(Ar=Qe+(Xi=Zi/40)*ho)+Xi*((io=mn+Xi*Ur)-Ar))+Xi*(io+Xi*(Zn+Xi*us-io)-Xn),sr=(Bo=(br=hn+Xi*po)+Xi*((Ii=Qn+Xi*jo)-br))+Xi*(Ii+Xi*(ni+Xi*qo-Ii)-Bo),Zi==0?(ar=Pr,qi=sr,pr=Pr,Wr=sr):(ar=Math.min(ar,Pr),qi=Math.min(qi,sr),pr=Math.max(pr,Pr),Wr=Math.max(Wr,sr));return new we(Math.round(ar),Math.round(qi),Math.round(pr-ar),Math.round(Wr-qi))},Yn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Qe,hn,mn=(Qe=this.ctx.lineDash,hn=this.ctx.lineDashOffset,JSON.stringify({lineDash:Qe,lineDashOffset:hn}));this.prevLineDash!==mn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=mn)}}})(Ho.API),function(Et){var wt=function(Yt){var ge,we,be,$e,fn,gn,Pn,Ke,gi,Jn;for(/[^\x00-\xFF]/.test(Yt),we=[],be=0,$e=(Yt+=ge="\0\0\0\0".slice(Yt.length%4||4)).length;$e>be;be+=4)(fn=(Yt.charCodeAt(be)<<24)+(Yt.charCodeAt(be+1)<<16)+(Yt.charCodeAt(be+2)<<8)+Yt.charCodeAt(be+3))!==0?(gn=(fn=((fn=((fn=((fn=(fn-(Jn=fn%85))/85)-(gi=fn%85))/85)-(Ke=fn%85))/85)-(Pn=fn%85))/85)%85,we.push(gn+33,Pn+33,Ke+33,gi+33,Jn+33)):we.push(122);return function(vi,Rn){for(var di=Rn;di>0;di--)vi.pop()}(we,ge.length),String.fromCharCode.apply(String,we)+"~>"},bt=function(Yt){var ge,we,be,$e,fn,gn=String,Pn="length",Ke=255,gi="charCodeAt",Jn="slice",vi="replace";for(Yt[Jn](-2),Yt=Yt[Jn](0,-2)[vi](/\s/g,"")[vi]("z","!!!!!"),be=[],$e=0,fn=(Yt+=ge="uuuuu"[Jn](Yt[Pn]%5||5))[Pn];fn>$e;$e+=5)we=52200625*(Yt[gi]($e)-33)+614125*(Yt[gi]($e+1)-33)+7225*(Yt[gi]($e+2)-33)+85*(Yt[gi]($e+3)-33)+(Yt[gi]($e+4)-33),be.push(Ke&we>>24,Ke&we>>16,Ke&we>>8,Ke&we);return function(Rn,di){for(var Qi=di;Qi>0;Qi--)Rn.pop()}(be,ge[Pn]),gn.fromCharCode.apply(gn,be)},Ht=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="",be=0;be<Yt.length;be+=2)we+=String.fromCharCode("0x"+(Yt[be]+Yt[be+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=Nn(ge)).reduce(function(be,$e){return be+String.fromCharCode($e)},"")};Et.processDataByFilters=function(Yt,ge){var we=0,be=Yt||"",$e=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),we=0;we<ge.length;we+=1)switch(ge[we]){case"ASCII85Decode":case"/ASCII85Decode":be=bt(be),$e.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":be=wt(be),$e.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":be=Ht(be),$e.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":be=be.split("").map(function(fn){return("0"+fn.charCodeAt().toString(16)).slice(-2)}).join("")+">",$e.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":be=ie(be),$e.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[we]+'" is not implemented')}return{data:be,reverseChain:$e.reverse().join(" ")}}}(Ho.API),function(Et){Et.loadFile=function(wt,bt,Ht){return function(ie,Yt,ge){Yt=Yt!==!1,ge=typeof ge=="function"?ge:function(){};var we=void 0;try{we=function(be,$e,fn){var gn=new XMLHttpRequest,Pn=0,Ke=function(gi){var Jn=gi.length,vi=[],Rn=String.fromCharCode;for(Pn=0;Pn<Jn;Pn+=1)vi.push(Rn(255&gi.charCodeAt(Pn)));return vi.join("")};if(gn.open("GET",be,!$e),gn.overrideMimeType("text/plain; charset=x-user-defined"),$e===!1&&(gn.onload=function(){gn.status===200?fn(Ke(this.responseText)):fn(void 0)}),gn.send(null),$e&&gn.status===200)return Ke(gn.responseText)}(ie,Yt,ge)}catch(be){}return we}(wt,bt,Ht)},Et.loadImageFile=Et.loadFile}(Ho.API),function(Et){function wt(){return(Br.html2canvas?Promise.resolve(Br.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 bt(){return(Br.DOMPurify?Promise.resolve(Br.DOMPurify):Ft.e(7631).then(Ft.bind(Ft,87631))).catch(function(ge){return Promise.reject(new Error("Could not load dompurify: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}var Ht=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 be=document.createElement(ge);for(var $e in we.className&&(be.className=we.className),we.innerHTML&&we.dompurify&&(be.innerHTML=we.dompurify.sanitize(we.innerHTML)),we.style)be.style[$e]=we.style[$e];return be},Yt=function ge(we){var be=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),$e=ge.convert(Promise.resolve(),be);return $e=($e=$e.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(be){switch(Ht(be)){case"string":return"string";case"element":return be.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(bt).then(function(be){return this.set({src:ie("div",{innerHTML:ge,dompurify:be})})});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 be($e,fn){for(var gn=$e.nodeType===3?document.createTextNode($e.nodeValue):$e.cloneNode(!1),Pn=$e.firstChild;Pn;Pn=Pn.nextSibling)fn!==!0&&Pn.nodeType===1&&Pn.nodeName==="SCRIPT"||gn.appendChild(be(Pn,fn));return $e.nodeType===1&&($e.nodeName==="CANVAS"?(gn.width=$e.width,gn.height=$e.height,gn.getContext("2d").drawImage($e,0,0)):$e.nodeName!=="TEXTAREA"&&$e.nodeName!=="SELECT"||(gn.value=$e.value),gn.addEventListener("load",function(){gn.scrollTop=$e.scrollTop,gn.scrollLeft=$e.scrollLeft},!0)),gn}(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 be=Object.assign({},this.opt.html2canvas);return delete be.onrendered,we(this.prop.container,be)}).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 be=this.opt.jsPDF,$e=this.opt.fontFaces,fn=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,gn=Object.assign({async:!0,allowTaint:!0,scale:fn,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 gn.onrendered,be.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,be.context2d.posX=this.opt.x,be.context2d.posY=this.opt.y,be.context2d.margin=this.opt.margin,be.context2d.fontFaces=$e,$e)for(var Pn=0;Pn<$e.length;++Pn){var Ke=$e[Pn],gi=Ke.src.find(function(Jn){return Jn.format==="truetype"});gi&&be.addFont(gi.url,Ke.ref.name,Ke.ref.style)}return gn.windowHeight=gn.windowHeight||0,gn.windowHeight=gn.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):gn.windowHeight,be.context2d.save(!0),we(this.prop.container,gn)}).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,be){return(be=be||"pdf").toLowerCase()==="img"||be.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(Ht(ge)!=="object")return this;var we=Object.keys(ge||{}).map(function(be){if(be in Yt.template.prop)return function(){this.prop[be]=ge[be]};switch(be){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[be]=ge[be]}}},this);return this.then(function(){return this.thenList(we)})},Yt.prototype.get=function(ge,we){return this.then(function(){var be=ge in Yt.template.prop?this.prop[ge]:this.opt[ge];return we?we(be):be})},Yt.prototype.setMargin=function(ge){return this.then(function(){switch(Ht(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(be,$e){return Math.floor(be*$e/72*96)}return this.then(function(){(ge=ge||Ho.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,be,$e){return ge!=null&&(this.progress.val=ge),we!=null&&(this.progress.state=we),be!=null&&(this.progress.n=be),$e!=null&&(this.progress.stack=$e),this.progress.ratio=this.progress.val/this.progress.state,this},Yt.prototype.updateProgress=function(ge,we,be,$e){return this.setProgress(ge?this.progress.val+ge:null,we||null,be?this.progress.n+be:null,$e?this.progress.stack.concat($e):null)},Yt.prototype.then=function(ge,we){var be=this;return this.thenCore(ge,we,function($e,fn){return be.updateProgress(null,null,1,[$e]),Promise.prototype.then.call(this,function(gn){return be.updateProgress(null,$e),gn}).then($e,fn).then(function(gn){return be.updateProgress(1),gn})})},Yt.prototype.thenCore=function(ge,we,be){be=be||Promise.prototype.then,ge&&(ge=ge.bind(this)),we&&(we=we.bind(this));var $e=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Yt.convert(Object.assign({},this),Promise.prototype),fn=be.call($e,ge,we);return Yt.convert(fn,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(be){we=we.thenCore(be)}),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,Ho.getPageSize=function(ge,we,be){if((0,Lt.Z)(ge)==="object"){var $e=ge;ge=$e.orientation,we=$e.unit||we,be=$e.format||be}we=we||"mm",be=be||"a4",ge=(""+(ge||"P")).toLowerCase();var fn,gn=(""+be).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":fn=1;break;case"mm":fn=72/25.4;break;case"cm":fn=72/2.54;break;case"in":fn=72;break;case"px":fn=.75;break;case"pc":case"em":fn=12;break;case"ex":fn=6;break;default:throw"Invalid unit: "+we}var Ke,gi=0,Jn=0;if(Pn.hasOwnProperty(gn))gi=Pn[gn][1]/fn,Jn=Pn[gn][0]/fn;else try{gi=be[1],Jn=be[0]}catch(vi){throw new Error("Invalid format: "+be)}if(ge==="p"||ge==="portrait")ge="p",Jn>gi&&(Ke=Jn,Jn=gi,gi=Ke);else{if(ge!=="l"&&ge!=="landscape")throw"Invalid orientation: "+ge;ge="l",gi>Jn&&(Ke=Jn,Jn=gi,gi=Ke)}return{width:Jn,height:gi,unit:we,k:fn,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 be=new Yt(we);return we.worker?be:be.from(ge).doCallback()}}(Ho.API),Ho.API.addJS=function(Et){return fc=Et,this.internal.events.subscribe("postPutResources",function(){tl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(tl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ol=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(){tl!==void 0&&Ol!==void 0&&this.internal.out("/Names <</JavaScript "+tl+" 0 R>>")}),this},function(Et){var wt;Et.events.push(["postPutResources",function(){var bt=this,Ht=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ie=bt.outline.render().split(/\r\n/),Yt=0;Yt<ie.length;Yt++){var ge=ie[Yt],we=Ht.exec(ge);if(we!=null){var be=we[1];bt.internal.newObjectDeferredBegin(be,!1)}bt.internal.write(ge)}if(this.outline.createNamedDestinations){var $e=this.internal.pages.length,fn=[];for(Yt=0;Yt<$e;Yt++){var gn=bt.internal.newObject();fn.push(gn);var Pn=bt.internal.getPageInfo(Yt+1);bt.internal.write("<< /D["+Pn.objId+" 0 R /XYZ null null null]>> endobj")}var Ke=bt.internal.newObject();for(bt.internal.write("<< /Names [ "),Yt=0;Yt<fn.length;Yt++)bt.internal.write("(page_"+(Yt+1)+")"+fn[Yt]+" 0 R");bt.internal.write(" ] >>","endobj"),wt=bt.internal.newObject(),bt.internal.write("<< /Dests "+Ke+" 0 R"),bt.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 bt=this;bt.outline={createNamedDestinations:!1,root:{children:[]}},bt.outline.add=function(Ht,ie,Yt){var ge={title:ie,options:Yt,children:[]};return Ht==null&&(Ht=this.root),Ht.children.push(ge),ge},bt.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=bt,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},bt.outline.genIds_r=function(Ht){Ht.id=bt.internal.newObjectDeferred();for(var ie=0;ie<Ht.children.length;ie++)this.genIds_r(Ht.children[ie])},bt.outline.renderRoot=function(Ht){this.objStart(Ht),this.line("/Type /Outlines"),Ht.children.length>0&&(this.line("/First "+this.makeRef(Ht.children[0])),this.line("/Last "+this.makeRef(Ht.children[Ht.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ht)),this.objEnd()},bt.outline.renderItems=function(Ht){for(var ie=this.ctx.pdf.internal.getVerticalCoordinateString,Yt=0;Yt<Ht.children.length;Yt++){var ge=Ht.children[Yt];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(Ht)),Yt>0&&this.line("/Prev "+this.makeRef(Ht.children[Yt-1])),Yt<Ht.children.length-1&&this.line("/Next "+this.makeRef(Ht.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 be=bt.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+be.objId+" 0 R /XYZ 0 "+ie(0)+" 0]")}this.objEnd()}for(var $e=0;$e<Ht.children.length;$e++)this.renderItems(Ht.children[$e])},bt.outline.line=function(Ht){this.ctx.val+=Ht+`\r
`},bt.outline.makeRef=function(Ht){return Ht.id+" 0 R"},bt.outline.makeString=function(Ht){return"("+bt.internal.pdfEscape(Ht)+")"},bt.outline.objStart=function(Ht){this.ctx.val+=`\r
`+Ht.id+` 0 obj\r
<<\r
`},bt.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},bt.outline.count_r=function(Ht,ie){for(var Yt=0;Yt<ie.children.length;Yt++)Ht.count++,this.count_r(Ht,ie.children[Yt]);return Ht.count}}])}(Ho.API),function(Et){var wt=[192,193,194,195,196,197,198,199];Et.processJPEG=function(bt,Ht,ie,Yt,ge,we){var be,$e=this.decode.DCT_DECODE,fn=null;if(typeof bt=="string"||this.__addimage__.isArrayBuffer(bt)||this.__addimage__.isArrayBufferView(bt)){switch(bt=ge||bt,bt=this.__addimage__.isArrayBuffer(bt)?new Uint8Array(bt):bt,(be=function(gn){for(var Pn,Ke=256*gn.charCodeAt(4)+gn.charCodeAt(5),gi=gn.length,Jn={width:0,height:0,numcomponents:1},vi=4;vi<gi;vi+=2){if(vi+=Ke,wt.indexOf(gn.charCodeAt(vi+1))!==-1){Pn=256*gn.charCodeAt(vi+5)+gn.charCodeAt(vi+6),Jn={width:256*gn.charCodeAt(vi+7)+gn.charCodeAt(vi+8),height:Pn,numcomponents:gn.charCodeAt(vi+9)};break}Ke=256*gn.charCodeAt(vi+2)+gn.charCodeAt(vi+3)}return Jn}(bt=this.__addimage__.isArrayBufferView(bt)?this.__addimage__.arrayBufferToBinaryString(bt):bt)).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}fn={data:bt,width:be.width,height:be.height,colorSpace:we,bitsPerComponent:8,filter:$e,index:Ht,alias:ie}}return fn}}(Ho.API);var hl,zd,td,Sh,Qo,sA=function(){var Et,wt,bt;function Ht(Yt){var ge,we,be,$e,fn,gn,Pn,Ke,gi,Jn,vi,Rn,di,Qi;for(this.data=Yt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},gn=null;;){switch(ge=this.readUInt32(),gi=function(){var rr,Er;for(Er=[],rr=0;rr<4;++rr)Er.push(String.fromCharCode(this.data[this.pos++]));return Er}.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":gn&&this.animation.frames.push(gn),this.pos+=4,gn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},fn=this.readUInt16(),$e=this.readUInt16()||100,gn.delay=1e3*fn/$e,gn.disposeOp=this.data[this.pos++],gn.blendOp=this.data[this.pos++],gn.data=[];break;case"IDAT":case"fdAT":for(gi==="fdAT"&&(this.pos+=4,ge-=4),Yt=(gn!=null?gn.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(be=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>be)throw new Error("More transparent colors than palette size");if((Jn=be-this.transparency.indexed.length)>0)for(di=0;0<=Jn?di<Jn:di>Jn;0<=Jn?++di:--di)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),Ke=String.fromCharCode.apply(String,vi.slice(0,Pn)),this.text[Ke]=String.fromCharCode.apply(String,vi.slice(Pn+1));break;case"IEND":return gn&&this.animation.frames.push(gn),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")}}Ht.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},Ht.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ht.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ht.prototype.decodePixels=function(Yt){var ge=this.pixelBitlength/8,we=new Uint8Array(this.width*this.height*ge),be=0,$e=this;if(Yt==null&&(Yt=this.imgData),Yt.length===0)return new Uint8Array(0);function fn(gn,Pn,Ke,gi){var Jn,vi,Rn,di,Qi,rr,Er,ao,gr,Ti,xr,kr,$n,ii,pe,me,Xe,Je,vn,nn,Tn,Un=Math.ceil(($e.width-gn)/Ke),Yn=Math.ceil(($e.height-Pn)/gi),Qe=$e.width==Un&&$e.height==Yn;for(ii=ge*Un,kr=Qe?we:new Uint8Array(ii*Yn),rr=Yt.length,$n=0,vi=0;$n<Yn&&be<rr;){switch(Yt[be++]){case 0:for(di=Xe=0;Xe<ii;di=Xe+=1)kr[vi++]=Yt[be++];break;case 1:for(di=Je=0;Je<ii;di=Je+=1)Jn=Yt[be++],Qi=di<ge?0:kr[vi-ge],kr[vi++]=(Jn+Qi)%256;break;case 2:for(di=vn=0;vn<ii;di=vn+=1)Jn=Yt[be++],Rn=(di-di%ge)/ge,pe=$n&&kr[($n-1)*ii+Rn*ge+di%ge],kr[vi++]=(pe+Jn)%256;break;case 3:for(di=nn=0;nn<ii;di=nn+=1)Jn=Yt[be++],Rn=(di-di%ge)/ge,Qi=di<ge?0:kr[vi-ge],pe=$n&&kr[($n-1)*ii+Rn*ge+di%ge],kr[vi++]=(Jn+Math.floor((Qi+pe)/2))%256;break;case 4:for(di=Tn=0;Tn<ii;di=Tn+=1)Jn=Yt[be++],Rn=(di-di%ge)/ge,Qi=di<ge?0:kr[vi-ge],$n===0?pe=me=0:(pe=kr[($n-1)*ii+Rn*ge+di%ge],me=Rn&&kr[($n-1)*ii+(Rn-1)*ge+di%ge]),Er=Qi+pe-me,ao=Math.abs(Er-Qi),Ti=Math.abs(Er-pe),xr=Math.abs(Er-me),gr=ao<=Ti&&ao<=xr?Qi:Ti<=xr?pe:me,kr[vi++]=(Jn+gr)%256;break;default:throw new Error("Invalid filter algorithm: "+Yt[be-1])}if(!Qe){var hn=((Pn+$n*gi)*$e.width+gn)*ge,mn=$n*ii;for(di=0;di<Un;di+=1){for(var Qn=0;Qn<ge;Qn+=1)we[hn++]=kr[mn++];hn+=(Ke-1)*ge}}$n++}}return Yt=dn(Yt),$e.interlaceMethod==1?(fn(0,0,8,8),fn(4,0,8,8),fn(0,4,4,8),fn(2,0,4,4),fn(0,2,2,4),fn(1,0,2,2),fn(0,1,1,2)):fn(0,0,1,1),we},Ht.prototype.decodePalette=function(){var Yt,ge,we,be,$e,fn,gn,Pn,Ke;for(we=this.palette,fn=this.transparency.indexed||[],$e=new Uint8Array((fn.length||0)+we.length),be=0,Yt=0,ge=gn=0,Pn=we.length;gn<Pn;ge=gn+=3)$e[be++]=we[ge],$e[be++]=we[ge+1],$e[be++]=we[ge+2],$e[be++]=(Ke=fn[Yt++])!=null?Ke:255;return $e},Ht.prototype.copyToImageData=function(Yt,ge){var we,be,$e,fn,gn,Pn,Ke,gi,Jn,vi,Rn;if(be=this.colors,Jn=null,we=this.hasAlphaChannel,this.palette.length&&(Jn=(Rn=this._decodedPalette)!=null?Rn:this._decodedPalette=this.decodePalette(),be=4,we=!0),gi=($e=Yt.data||Yt).length,gn=Jn||ge,fn=Pn=0,be===1)for(;fn<gi;)Ke=Jn?4*ge[fn/4]:Pn,vi=gn[Ke++],$e[fn++]=vi,$e[fn++]=vi,$e[fn++]=vi,$e[fn++]=we?gn[Ke++]:255,Pn=Ke;else for(;fn<gi;)Ke=Jn?4*ge[fn/4]:Pn,$e[fn++]=gn[Ke++],$e[fn++]=gn[Ke++],$e[fn++]=gn[Ke++],$e[fn++]=we?gn[Ke++]:255,Pn=Ke},Ht.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(Br)==="[object Window]"){try{wt=Br.document.createElement("canvas"),bt=wt.getContext("2d")}catch(Yt){return!1}return!0}return!1};return ie(),Et=function(Yt){var ge;if(ie()===!0)return bt.width=Yt.width,bt.height=Yt.height,bt.clearRect(0,0,Yt.width,Yt.height),bt.putImageData(Yt,0,0),(ge=new Image).src=wt.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},Ht.prototype.decodeFrames=function(Yt){var ge,we,be,$e,fn,gn,Pn,Ke;if(this.animation){for(Ke=[],we=fn=0,gn=(Pn=this.animation.frames).length;fn<gn;we=++fn)ge=Pn[we],be=Yt.createImageData(ge.width,ge.height),$e=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(be,$e),ge.imageData=be,Ke.push(ge.image=Et(be));return Ke}},Ht.prototype.renderFrame=function(Yt,ge){var we,be,$e;return we=(be=this.animation.frames)[ge],$e=be[ge-1],ge===0&&Yt.clearRect(0,0,this.width,this.height),($e!=null?$e.disposeOp:void 0)===1?Yt.clearRect($e.xOffset,$e.yOffset,$e.width,$e.height):($e!=null?$e.disposeOp:void 0)===2&&Yt.putImageData($e.imageData,$e.xOffset,$e.yOffset),we.blendOp===0&&Yt.clearRect(we.xOffset,we.yOffset,we.width,we.height),Yt.drawImage(we.image,we.xOffset,we.yOffset)},Ht.prototype.animate=function(Yt){var ge,we,be,$e,fn,gn,Pn=this;return we=0,gn=this.animation,$e=gn.numFrames,be=gn.frames,fn=gn.numPlays,(ge=function(){var Ke,gi;if(Ke=we++%$e,gi=be[Ke],Pn.renderFrame(Yt,Ke),$e>1&&we/$e<fn)return Pn.animation._timeout=setTimeout(ge,gi.delay)})()},Ht.prototype.stopAnimation=function(){var Yt;return clearTimeout((Yt=this.animation)!=null?Yt._timeout:void 0)},Ht.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))},Ht}();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 bt=Et[wt++]|Et[wt++]<<8,Ht=Et[wt++]|Et[wt++]<<8,ie=Et[wt++],Yt=ie>>7,ge=1<<(7&ie)+1;Et[wt++],Et[wt++];var we=null,be=null;Yt&&(we=wt,be=ge,wt+=3*ge);var $e=!0,fn=[],gn=0,Pn=null,Ke=0,gi=null;for(this.width=bt,this.height=Ht;$e&&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,gi=Et[wt++]|Et[wt++]<<8,wt++;else for(wt+=12;;){if(!(($n=Et[wt++])>=0))throw Error("Invalid block size");if($n===0)break;wt+=$n}break;case 249:if(Et[wt++]!==4||Et[wt+4]!==0)throw new Error("Invalid graphics extension block.");var Jn=Et[wt++];gn=Et[wt++]|Et[wt++]<<8,Pn=Et[wt++],!(1&Jn)&&(Pn=null),Ke=Jn>>2&7,wt++;break;case 254:for(;;){if(!(($n=Et[wt++])>=0))throw Error("Invalid block size");if($n===0)break;wt+=$n}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,di=Et[wt++]|Et[wt++]<<8,Qi=Et[wt++]|Et[wt++]<<8,rr=Et[wt++],Er=rr>>6&1,ao=1<<(7&rr)+1,gr=we,Ti=be,xr=!1;rr>>7&&(xr=!0,gr=wt,Ti=ao,wt+=3*ao);var kr=wt;for(wt++;;){var $n;if(!(($n=Et[wt++])>=0))throw Error("Invalid block size");if($n===0)break;wt+=$n}fn.push({x:vi,y:Rn,width:di,height:Qi,has_local_palette:xr,palette_offset:gr,palette_size:Ti,data_offset:kr,data_length:wt-kr,transparent_index:Pn,interlaced:!!Er,delay:gn,disposal:Ke});break;case 59:$e=!1;break;default:throw new Error("Unknown gif block: 0x"+Et[wt-1].toString(16))}this.numFrames=function(){return fn.length},this.loopCount=function(){return gi},this.frameInfo=function(ii){if(ii<0||ii>=fn.length)throw new Error("Frame index out of range.");return fn[ii]},this.decodeAndBlitFrameBGRA=function(ii,pe){var me=this.frameInfo(ii),Xe=me.width*me.height,Je=new Uint8Array(Xe);Wi(Et,me.data_offset,Je,Xe);var vn=me.palette_offset,nn=me.transparent_index;nn===null&&(nn=256);var Tn=me.width,Un=bt-Tn,Yn=Tn,Qe=4*(me.y*bt+me.x),hn=4*((me.y+me.height)*bt+me.x),mn=Qe,Qn=4*Un;me.interlaced===!0&&(Qn+=4*bt*7);for(var Zn=8,ni=0,Ei=Je.length;ni<Ei;++ni){var li=Je[ni];if(Yn===0&&(Yn=Tn,(mn+=Qn)>=hn&&(Qn=4*Un+4*bt*(Zn-1),mn=Qe+(Tn+Un)*(Zn<<1),Zn>>=1)),li===nn)mn+=4;else{var Xi=Et[vn+3*li],Zi=Et[vn+3*li+1],Ar=Et[vn+3*li+2];pe[mn++]=Ar,pe[mn++]=Zi,pe[mn++]=Xi,pe[mn++]=255}--Yn}},this.decodeAndBlitFrameRGBA=function(ii,pe){var me=this.frameInfo(ii),Xe=me.width*me.height,Je=new Uint8Array(Xe);Wi(Et,me.data_offset,Je,Xe);var vn=me.palette_offset,nn=me.transparent_index;nn===null&&(nn=256);var Tn=me.width,Un=bt-Tn,Yn=Tn,Qe=4*(me.y*bt+me.x),hn=4*((me.y+me.height)*bt+me.x),mn=Qe,Qn=4*Un;me.interlaced===!0&&(Qn+=4*bt*7);for(var Zn=8,ni=0,Ei=Je.length;ni<Ei;++ni){var li=Je[ni];if(Yn===0&&(Yn=Tn,(mn+=Qn)>=hn&&(Qn=4*Un+4*bt*(Zn-1),mn=Qe+(Tn+Un)*(Zn<<1),Zn>>=1)),li===nn)mn+=4;else{var Xi=Et[vn+3*li],Zi=Et[vn+3*li+1],Ar=Et[vn+3*li+2];pe[mn++]=Xi,pe[mn++]=Zi,pe[mn++]=Ar,pe[mn++]=255}--Yn}}}function Wi(Et,wt,bt,Ht){for(var ie=Et[wt++],Yt=1<<ie,ge=Yt+1,we=ge+1,be=ie+1,$e=(1<<be)-1,fn=0,gn=0,Pn=0,Ke=Et[wt++],gi=new Int32Array(4096),Jn=null;;){for(;fn<16&&Ke!==0;)gn|=Et[wt++]<<fn,fn+=8,Ke===1?Ke=Et[wt++]:--Ke;if(fn<be)break;var vi=gn&$e;if(gn>>=be,fn-=be,vi!==Yt){if(vi===ge)break;for(var Rn=vi<we?vi:Jn,di=0,Qi=Rn;Qi>Yt;)Qi=gi[Qi]>>8,++di;var rr=Qi;if(Pn+di+(Rn!==vi?1:0)>Ht)return void bo.log("Warning, gif stream longer than expected.");bt[Pn++]=rr;var Er=Pn+=di;for(Rn!==vi&&(bt[Pn++]=rr),Qi=Rn;di--;)Qi=gi[Qi],bt[--Er]=255&Qi,Qi>>=8;Jn!==null&&we<4096&&(gi[we++]=Jn<<8|rr,we>=$e+1&&be<12&&(++be,$e=$e<<1|1)),Jn=vi}else we=ge+1,$e=(1<<(be=ie+1))-1,Jn=null}return Pn!==Ht&&bo.log("Warning, gif stream shorter than expected."),bt}function aA(Et){var wt,bt,Ht,ie,Yt,ge=Math.floor,we=new Array(64),be=new Array(64),$e=new Array(64),fn=new Array(64),gn=new Array(65535),Pn=new Array(65535),Ke=new Array(64),gi=new Array(64),Jn=[],vi=0,Rn=7,di=new Array(64),Qi=new Array(64),rr=new Array(64),Er=new Array(256),ao=new Array(2048),gr=[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],Ti=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],xr=[0,1,2,3,4,5,6,7,8,9,10,11],kr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],$n=[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],ii=[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],Xe=[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 Je(Qe,hn){for(var mn=0,Qn=0,Zn=new Array,ni=1;ni<=16;ni++){for(var Ei=1;Ei<=Qe[ni];Ei++)Zn[hn[Qn]]=[],Zn[hn[Qn]][0]=mn,Zn[hn[Qn]][1]=ni,Qn++,mn++;mn*=2}return Zn}function vn(Qe){for(var hn=Qe[0],mn=Qe[1]-1;mn>=0;)hn&1<<mn&&(vi|=1<<Rn),mn--,--Rn<0&&(vi==255?(nn(255),nn(0)):nn(vi),Rn=7,vi=0)}function nn(Qe){Jn.push(Qe)}function Tn(Qe){nn(Qe>>8&255),nn(255&Qe)}function Un(Qe,hn,mn,Qn,Zn){for(var ni,Ei=Zn[0],li=Zn[240],Xi=function(sr,ar){var qi,pr,Wr,ho,po,Ur,jo,us,qo,is,So=0;for(qo=0;qo<8;++qo){qi=sr[So],pr=sr[So+1],Wr=sr[So+2],ho=sr[So+3],po=sr[So+4],Ur=sr[So+5],jo=sr[So+6];var wa=qi+(us=sr[So+7]),Vo=qi-us,rs=pr+jo,Cs=pr-jo,qs=Wr+Ur,Ua=Wr-Ur,$s=ho+po,Ko=ho-po,Go=wa+$s,ds=wa-$s,es=rs+qs,Ts=rs-qs;sr[So]=Go+es,sr[So+4]=Go-es;var ro=.707106781*(Ts+ds);sr[So+2]=ds+ro,sr[So+6]=ds-ro;var Wo=.382683433*((Go=Ko+Ua)-(Ts=Cs+Vo)),ha=.5411961*Go+Wo,Us=1.306562965*Ts+Wo,Ql=.707106781*(es=Ua+Cs),Fl=Vo+Ql,Es=Vo-Ql;sr[So+5]=Es+ha,sr[So+3]=Es-ha,sr[So+1]=Fl+Us,sr[So+7]=Fl-Us,So+=8}for(So=0,qo=0;qo<8;++qo){qi=sr[So],pr=sr[So+8],Wr=sr[So+16],ho=sr[So+24],po=sr[So+32],Ur=sr[So+40],jo=sr[So+48];var da=qi+(us=sr[So+56]),Dl=qi-us,Ao=pr+jo,Ra=pr-jo,Kl=Wr+Ur,ta=Wr-Ur,ca=ho+po,ka=ho-po,Xa=da+ca,al=da-ca,Rs=Ao+Kl,Ta=Ao-Kl;sr[So]=Xa+Rs,sr[So+32]=Xa-Rs;var xl=.707106781*(Ta+al);sr[So+16]=al+xl,sr[So+48]=al-xl;var pu=.382683433*((Xa=ka+ta)-(Ta=Ra+Dl)),au=.5411961*Xa+pu,Uu=1.306562965*Ta+pu,Xu=.707106781*(Rs=ta+Ra),dh=Dl+Xu,$u=Dl-Xu;sr[So+40]=$u+au,sr[So+24]=$u-au,sr[So+8]=dh+Uu,sr[So+56]=dh-Uu,So++}for(qo=0;qo<64;++qo)is=sr[qo]*ar[qo],Ke[qo]=is>0?is+.5|0:is-.5|0;return Ke}(Qe,hn),Zi=0;Zi<64;++Zi)gi[gr[Zi]]=Xi[Zi];var Ar=gi[0]-mn;mn=gi[0],Ar==0?vn(Qn[0]):(vn(Qn[Pn[ni=32767+Ar]]),vn(gn[ni]));for(var br=63;br>0&&gi[br]==0;)br--;if(br==0)return vn(Ei),mn;for(var io,Ii=1;Ii<=br;){for(var Xn=Ii;gi[Ii]==0&&Ii<=br;)++Ii;var Bo=Ii-Xn;if(Bo>=16){io=Bo>>4;for(var Pr=1;Pr<=io;++Pr)vn(li);Bo&=15}ni=32767+gi[Ii],vn(Zn[(Bo<<4)+Pn[ni]]),vn(gn[ni]),Ii++}return br!=63&&vn(Ei),mn}function Yn(Qe){Qe=Math.min(Math.max(Qe,1),100),Yt!=Qe&&(function(hn){for(var mn=[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 Zn=ge((mn[Qn]*hn+50)/100);Zn=Math.min(Math.max(Zn,1),255),we[gr[Qn]]=Zn}for(var ni=[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],Ei=0;Ei<64;Ei++){var li=ge((ni[Ei]*hn+50)/100);li=Math.min(Math.max(li,1),255),be[gr[Ei]]=li}for(var Xi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Zi=0,Ar=0;Ar<8;Ar++)for(var br=0;br<8;br++)$e[Zi]=1/(we[gr[Zi]]*Xi[Ar]*Xi[br]*8),fn[Zi]=1/(be[gr[Zi]]*Xi[Ar]*Xi[br]*8),Zi++}(Qe<50?Math.floor(5e3/Qe):Math.floor(200-2*Qe)),Yt=Qe)}this.encode=function(Qe,hn){hn&&Yn(hn),Jn=new Array,vi=0,Rn=7,Tn(65496),Tn(65504),Tn(16),nn(74),nn(70),nn(73),nn(70),nn(0),nn(1),nn(1),nn(0),Tn(1),Tn(1),nn(0),nn(0),function(){Tn(65499),Tn(132),nn(0);for(var pr=0;pr<64;pr++)nn(we[pr]);nn(1);for(var Wr=0;Wr<64;Wr++)nn(be[Wr])}(),function(pr,Wr){Tn(65472),Tn(17),nn(8),Tn(Wr),Tn(pr),nn(3),nn(1),nn(17),nn(0),nn(2),nn(17),nn(1),nn(3),nn(17),nn(1)}(Qe.width,Qe.height),function(){Tn(65476),Tn(418),nn(0);for(var pr=0;pr<16;pr++)nn(Ti[pr+1]);for(var Wr=0;Wr<=11;Wr++)nn(xr[Wr]);nn(16);for(var ho=0;ho<16;ho++)nn(kr[ho+1]);for(var po=0;po<=161;po++)nn($n[po]);nn(1);for(var Ur=0;Ur<16;Ur++)nn(ii[Ur+1]);for(var jo=0;jo<=11;jo++)nn(pe[jo]);nn(17);for(var us=0;us<16;us++)nn(me[us+1]);for(var qo=0;qo<=161;qo++)nn(Xe[qo])}(),Tn(65498),Tn(12),nn(3),nn(1),nn(0),nn(2),nn(17),nn(3),nn(17),nn(0),nn(63),nn(0);var mn=0,Qn=0,Zn=0;vi=0,Rn=7,this.encode.displayName="_encode_";for(var ni,Ei,li,Xi,Zi,Ar,br,io,Ii,Xn=Qe.data,Bo=Qe.width,Pr=Qe.height,sr=4*Bo,ar=0;ar<Pr;){for(ni=0;ni<sr;){for(Zi=sr*ar+ni,br=-1,io=0,Ii=0;Ii<64;Ii++)Ar=Zi+(io=Ii>>3)*sr+(br=4*(7&Ii)),ar+io>=Pr&&(Ar-=sr*(ar+1+io-Pr)),ni+br>=sr&&(Ar-=ni+br-sr+4),Ei=Xn[Ar++],li=Xn[Ar++],Xi=Xn[Ar++],di[Ii]=(ao[Ei]+ao[li+256>>0]+ao[Xi+512>>0]>>16)-128,Qi[Ii]=(ao[Ei+768>>0]+ao[li+1024>>0]+ao[Xi+1280>>0]>>16)-128,rr[Ii]=(ao[Ei+1280>>0]+ao[li+1536>>0]+ao[Xi+1792>>0]>>16)-128;mn=Un(di,$e,mn,wt,Ht),Qn=Un(Qi,fn,Qn,bt,ie),Zn=Un(rr,fn,Zn,bt,ie),ni+=32}ar+=8}if(Rn>=0){var qi=[];qi[1]=Rn+1,qi[0]=(1<<Rn+1)-1,vn(qi)}return Tn(65497),new Uint8Array(Jn)},Et=Et||50,function(){for(var Qe=String.fromCharCode,hn=0;hn<256;hn++)Er[hn]=Qe(hn)}(),wt=Je(Ti,xr),bt=Je(ii,pe),Ht=Je(kr,$n),ie=Je(me,Xe),function(){for(var Qe=1,hn=2,mn=1;mn<=15;mn++){for(var Qn=Qe;Qn<hn;Qn++)Pn[32767+Qn]=mn,gn[32767+Qn]=[],gn[32767+Qn][1]=mn,gn[32767+Qn][0]=Qn;for(var Zn=-(hn-1);Zn<=-Qe;Zn++)Pn[32767+Zn]=mn,gn[32767+Zn]=[],gn[32767+Zn][1]=mn,gn[32767+Zn][0]=hn-1+Zn;Qe<<=1,hn<<=1}}(),function(){for(var Qe=0;Qe<256;Qe++)ao[Qe]=19595*Qe,ao[Qe+256>>0]=38470*Qe,ao[Qe+512>>0]=7471*Qe+32768,ao[Qe+768>>0]=-11059*Qe,ao[Qe+1024>>0]=-21709*Qe,ao[Qe+1280>>0]=32768*Qe+8421375,ao[Qe+1536>>0]=-27439*Qe,ao[Qe+1792>>0]=-5329*Qe}(),Yn(Et)}function nc(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 Ku(Et){function wt(Ti){if(!Ti)throw Error("assert :P")}function bt(Ti,xr,kr){for(var $n=0;4>$n;$n++)if(Ti[xr+$n]!=kr.charCodeAt($n))return!0;return!1}function Ht(Ti,xr,kr,$n,ii){for(var pe=0;pe<ii;pe++)Ti[xr+pe]=kr[$n+pe]}function ie(Ti,xr,kr,$n){for(var ii=0;ii<$n;ii++)Ti[xr+ii]=kr}function Yt(Ti){return new Int32Array(Ti)}function ge(Ti,xr){for(var kr=[],$n=0;$n<Ti;$n++)kr.push(new xr);return kr}function we(Ti,xr){var kr=[];return function $n(ii,pe,me){for(var Xe=me[pe],Je=0;Je<Xe&&(ii.push(me.length>pe+1?[]:new xr),!(me.length<pe+1));Je++)$n(ii[Je],pe+1,me)}(kr,0,Ti),kr}var be=function(){var Ti=this;function xr(St,Qt){for(var de=1<<Qt-1>>>0;St&de;)de>>>=1;return de?(St&de-1)+de:St}function kr(St,Qt,de,Ee,on){wt(!(Ee%de));do St[Qt+(Ee-=de)]=on;while(0<Ee)}function $n(St,Qt,de,Ee,on){if(wt(2328>=on),512>=on)var cn=Yt(512);else if((cn=Yt(on))==null)return 0;return function(An,xn,In,zn,Ai,$i){var Yi,Ni,Gr=xn,Ir=1<<In,Hi=Yt(16),Ui=Yt(16);for(wt(Ai!=0),wt(zn!=null),wt(An!=null),wt(0<In),Ni=0;Ni<Ai;++Ni){if(15<zn[Ni])return 0;++Hi[zn[Ni]]}if(Hi[0]==Ai)return 0;for(Ui[1]=0,Yi=1;15>Yi;++Yi){if(Hi[Yi]>1<<Yi)return 0;Ui[Yi+1]=Ui[Yi]+Hi[Yi]}for(Ni=0;Ni<Ai;++Ni)Yi=zn[Ni],0<zn[Ni]&&($i[Ui[Yi]++]=Ni);if(Ui[15]==1)return(zn=new ii).g=0,zn.value=$i[0],kr(An,Gr,1,Ir,zn),Ir;var Kr,lo=-1,Xr=Ir-1,as=0,ts=1,ci=1,os=1<<In;for(Ni=0,Yi=1,Ai=2;Yi<=In;++Yi,Ai<<=1){if(ts+=ci<<=1,0>(ci-=Hi[Yi]))return 0;for(;0<Hi[Yi];--Hi[Yi])(zn=new ii).g=Yi,zn.value=$i[Ni++],kr(An,Gr+as,Ai,os,zn),as=xr(as,Yi)}for(Yi=In+1,Ai=2;15>=Yi;++Yi,Ai<<=1){if(ts+=ci<<=1,0>(ci-=Hi[Yi]))return 0;for(;0<Hi[Yi];--Hi[Yi]){if(zn=new ii,(as&Xr)!=lo){for(Gr+=os,Kr=1<<(lo=Yi)-In;15>lo&&!(0>=(Kr-=Hi[lo]));)++lo,Kr<<=1;Ir+=os=1<<(Kr=lo-In),An[xn+(lo=as&Xr)].g=Kr+In,An[xn+lo].value=Gr-xn-lo}zn.g=Yi-In,zn.value=$i[Ni++],kr(An,Gr+(as>>In),Ai,os,zn),as=xr(as,Yi)}}return ts!=2*Ui[15]-1?0:Ir}(St,Qt,de,Ee,on,cn)}function ii(){this.value=this.g=0}function pe(){this.value=this.g=0}function me(){this.G=ge(5,ii),this.H=Yt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(Iu,pe)}function Xe(St,Qt,de,Ee){wt(St!=null),wt(Qt!=null),wt(2147483648>Ee),St.Ca=254,St.I=0,St.b=-8,St.Ka=0,St.oa=Qt,St.pa=de,St.Jd=Qt,St.Yc=de+Ee,St.Zc=4<=Ee?de+Ee-4+1:de,ni(St)}function Je(St,Qt){for(var de=0;0<Qt--;)de|=li(St,128)<<Qt;return de}function vn(St,Qt){var de=Je(St,Qt);return Ei(St)?-de:de}function nn(St,Qt,de,Ee){var on,cn=0;for(wt(St!=null),wt(Qt!=null),wt(4294967288>Ee),St.Sb=Ee,St.Ra=0,St.u=0,St.h=0,4<Ee&&(Ee=4),on=0;on<Ee;++on)cn+=Qt[de+on]<<8*on;St.Ra=cn,St.bb=Ee,St.oa=Qt,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]<<Oh-8>>>0,++St.bb,St.u-=8;mn(St)&&(St.h=1,St.u=0)}function Un(St,Qt){if(wt(0<=Qt),!St.h&&Qt<=Gl){var de=hn(St)&Yd[Qt];return St.u+=Qt,Tn(St),de}return St.h=1,St.u=0}function Yn(){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 hn(St){return St.Ra>>>(St.u&Oh-1)>>>0}function mn(St){return wt(St.bb<=St.Sb),St.h||St.bb==St.Sb&&St.u>Oh}function Qn(St,Qt){St.u=Qt,St.h=mn(St)}function Zn(St){St.u>=mc&&(wt(St.u>=mc),Tn(St))}function ni(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 Ei(St){return Je(St,1)}function li(St,Qt){var de=St.Ca;0>St.b&&ni(St);var Ee=St.b,on=de*Qt>>>8,cn=(St.I>>>Ee>on)+0;for(cn?(de-=on,St.I-=on+1<<Ee>>>0):de=on+1,Ee=de,on=0;256<=Ee;)on+=8,Ee>>=8;return Ee=7^on+qu[Ee],St.b-=Ee,St.Ca=(de<<Ee)-1,cn}function Xi(St,Qt,de){St[Qt+0]=de>>24&255,St[Qt+1]=de>>16&255,St[Qt+2]=de>>8&255,St[Qt+3]=de>>0&255}function Zi(St,Qt){return St[Qt+0]<<0|St[Qt+1]<<8}function Ar(St,Qt){return Zi(St,Qt)|St[Qt+2]<<16}function br(St,Qt){return Zi(St,Qt)|Zi(St,Qt+2)<<16}function io(St,Qt){var de=1<<Qt;return wt(St!=null),wt(0<Qt),St.X=Yt(de),St.X==null?0:(St.Mb=32-Qt,St.Xa=Qt,1)}function Ii(St,Qt){wt(St!=null),wt(Qt!=null),wt(St.Xa==Qt.Xa),Ht(Qt.X,0,St.X,0,1<<Qt.Xa)}function Xn(){this.X=[],this.Xa=this.Mb=0}function Bo(St,Qt,de,Ee){wt(de!=null),wt(Ee!=null);var on=de[0],cn=Ee[0];return on==0&&(on=(St*cn+Qt/2)/Qt),cn==0&&(cn=(Qt*on+St/2)/St),0>=on||0>=cn?0:(de[0]=on,Ee[0]=cn,1)}function Pr(St,Qt){return St+(1<<Qt)-1>>>Qt}function sr(St,Qt){return((4278255360&St)+(4278255360&Qt)>>>0&4278255360)+((16711935&St)+(16711935&Qt)>>>0&16711935)>>>0}function ar(St,Qt){Ti[Qt]=function(de,Ee,on,cn,An,xn,In){var zn;for(zn=0;zn<An;++zn){var Ai=Ti[St](xn[In+zn-1],on,cn+zn);xn[In+zn]=sr(de[Ee+zn],Ai)}}}function qi(){this.ud=this.hd=this.jd=0}function pr(St,Qt){return((4278124286&(St^Qt))>>>1)+(St&Qt)>>>0}function Wr(St){return 0<=St&&256>St?St:0>St?0:255<St?255:void 0}function ho(St,Qt){return Wr(St+(St-Qt+.5>>1))}function po(St,Qt,de){return Math.abs(Qt-de)-Math.abs(St-de)}function Ur(St,Qt,de,Ee,on,cn,An){for(Ee=cn[An-1],de=0;de<on;++de)cn[An+de]=Ee=sr(St[Qt+de],Ee)}function jo(St,Qt,de,Ee,on){var cn;for(cn=0;cn<de;++cn){var An=St[Qt+cn],xn=An>>8&255,In=16711935&(In=(In=16711935&An)+((xn<<16)+xn));Ee[on+cn]=(4278255360&An)+In>>>0}}function us(St,Qt){Qt.jd=St>>0&255,Qt.hd=St>>8&255,Qt.ud=St>>16&255}function qo(St,Qt,de,Ee,on,cn){var An;for(An=0;An<Ee;++An){var xn=Qt[de+An],In=xn>>>8,zn=xn,Ai=255&(Ai=(Ai=xn>>>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)*(Ai<<24>>24)>>>5)),on[cn+An]=(4278255360&xn)+(Ai<<16)+zn}}function is(St,Qt,de,Ee,on){Ti[Qt]=function(cn,An,xn,In,zn,Ai,$i,Yi,Ni){for(In=$i;In<Yi;++In)for($i=0;$i<Ni;++$i)zn[Ai++]=on(xn[Ee(cn[An++])])},Ti[St]=function(cn,An,xn,In,zn,Ai,$i){var Yi=8>>cn.b,Ni=cn.Ea,Gr=cn.K[0],Ir=cn.w;if(8>Yi)for(cn=(1<<cn.b)-1,Ir=(1<<Yi)-1;An<xn;++An){var Hi,Ui=0;for(Hi=0;Hi<Ni;++Hi)Hi&cn||(Ui=Ee(In[zn++])),Ai[$i++]=on(Gr[Ui&Ir]),Ui>>=Yi}else Ti["VP8LMapColor"+de](In,zn,Gr,Ir,Ai,$i,An,xn,Ni)}}function So(St,Qt,de,Ee,on){for(de=Qt+de;Qt<de;){var cn=St[Qt++];Ee[on++]=cn>>16&255,Ee[on++]=cn>>8&255,Ee[on++]=cn>>0&255}}function wa(St,Qt,de,Ee,on){for(de=Qt+de;Qt<de;){var cn=St[Qt++];Ee[on++]=cn>>16&255,Ee[on++]=cn>>8&255,Ee[on++]=cn>>0&255,Ee[on++]=cn>>24&255}}function Vo(St,Qt,de,Ee,on){for(de=Qt+de;Qt<de;){var cn=(An=St[Qt++])>>16&240|An>>12&15,An=An>>0&240|An>>28&15;Ee[on++]=cn,Ee[on++]=An}}function rs(St,Qt,de,Ee,on){for(de=Qt+de;Qt<de;){var cn=(An=St[Qt++])>>16&248|An>>13&7,An=An>>5&224|An>>3&31;Ee[on++]=cn,Ee[on++]=An}}function Cs(St,Qt,de,Ee,on){for(de=Qt+de;Qt<de;){var cn=St[Qt++];Ee[on++]=cn>>0&255,Ee[on++]=cn>>8&255,Ee[on++]=cn>>16&255}}function qs(St,Qt,de,Ee,on,cn){if(cn==0)for(de=Qt+de;Qt<de;)Xi(Ee,((cn=St[Qt++])[0]>>24|cn[1]>>8&65280|cn[2]<<8&16711680|cn[3]<<24)>>>0),on+=32;else Ht(Ee,on,St,Qt,de)}function Ua(St,Qt){Ti[Qt][0]=Ti[St+"0"],Ti[Qt][1]=Ti[St+"1"],Ti[Qt][2]=Ti[St+"2"],Ti[Qt][3]=Ti[St+"3"],Ti[Qt][4]=Ti[St+"4"],Ti[Qt][5]=Ti[St+"5"],Ti[Qt][6]=Ti[St+"6"],Ti[Qt][7]=Ti[St+"7"],Ti[Qt][8]=Ti[St+"8"],Ti[Qt][9]=Ti[St+"9"],Ti[Qt][10]=Ti[St+"10"],Ti[Qt][11]=Ti[St+"11"],Ti[Qt][12]=Ti[St+"12"],Ti[Qt][13]=Ti[St+"13"],Ti[Qt][14]=Ti[St+"0"],Ti[Qt][15]=Ti[St+"0"]}function $s(St){return St==Wc||St==Jd||St==zf||St==Eh}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 ds(){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 Ts(){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,Qt){var de=St.T,Ee=Qt.ba.f.RGBA,on=Ee.eb,cn=Ee.fb+St.ka*Ee.A,An=Tu[Qt.ba.S],xn=St.y,In=St.O,zn=St.f,Ai=St.N,$i=St.ea,Yi=St.W,Ni=Qt.cc,Gr=Qt.dc,Ir=Qt.Mc,Hi=Qt.Nc,Ui=St.ka,Kr=St.ka+St.T,lo=St.U,Xr=lo+1>>1;for(Ui==0?An(xn,In,null,null,zn,Ai,$i,Yi,zn,Ai,$i,Yi,on,cn,null,null,lo):(An(Qt.ec,Qt.fc,xn,In,Ni,Gr,Ir,Hi,zn,Ai,$i,Yi,on,cn-Ee.A,on,cn,lo),++de);Ui+2<Kr;Ui+=2)Ni=zn,Gr=Ai,Ir=$i,Hi=Yi,Ai+=St.Rc,Yi+=St.Rc,cn+=2*Ee.A,An(xn,(In+=2*St.fa)-St.fa,xn,In,Ni,Gr,Ir,Hi,zn,Ai,$i,Yi,on,cn-Ee.A,on,cn,lo);return In+=St.fa,St.j+Kr<St.o?(Ht(Qt.ec,Qt.fc,xn,In,lo),Ht(Qt.cc,Qt.dc,zn,Ai,Xr),Ht(Qt.Mc,Qt.Nc,$i,Yi,Xr),de--):1&Kr||An(xn,In,null,null,zn,Ai,$i,Yi,zn,Ai,$i,Yi,on,cn+Ee.A,null,null,lo),de}function ha(St,Qt,de){var Ee=St.F,on=[St.J];if(Ee!=null){var cn=St.U,An=Qt.ba.S,xn=An==wh||An==zf;Qt=Qt.ba.f.RGBA;var In=[0],zn=St.ka;In[0]=St.T,St.Kb&&(zn==0?--In[0]:(--zn,on[0]-=St.width),St.j+St.ka+St.T==St.o&&(In[0]=St.o-St.j-zn));var Ai=Qt.eb;zn=Qt.fb+zn*Qt.A,St=Sa(Ee,on[0],St.width,cn,In,Ai,zn+(xn?0:3),Qt.A),wt(de==In),St&&$s(An)&&yu(Ai,zn,xn,cn,In,Qt.A)}return 0}function Us(St){var Qt=St.ma,de=Qt.ba.S,Ee=11>de,on=de==ad||de==uh||de==wh||de==Il||de==12||$s(de);if(Qt.memory=null,Qt.Ib=null,Qt.Jb=null,Qt.Nd=null,!Fd(Qt.Oa,St,on?11:12))return 0;if(on&&$s(de)&&Co(),St.da)alert("todo:use_scaling");else{if(Ee){if(Qt.Ib=ro,St.Kb){if(de=St.U+1>>1,Qt.memory=Yt(St.U+2*de),Qt.memory==null)return 0;Qt.ec=Qt.memory,Qt.fc=0,Qt.cc=Qt.ec,Qt.dc=Qt.fc+St.U,Qt.Mc=Qt.cc,Qt.Nc=Qt.dc+de,Qt.Ib=Wo,Co()}}else alert("todo:EmitYUV");on&&(Qt.Jb=ha,Ee&&ur())}if(Ee&&!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),_t[St]=113618*(St-128)+kA>>IA;for(St=Fc;St<Vf;++St)Qt=76283*(St-16)+kA>>IA,Ye[St-Fc]=bh(Qt,255),Fn[St-Fc]=bh(Qt+8>>4,15);Dt=1}return 1}function Ql(St){var Qt=St.ma,de=St.U,Ee=St.T;return wt(!(1&St.ka)),0>=de||0>=Ee?0:(de=Qt.Ib(St,Qt),Qt.Jb!=null&&Qt.Jb(St,Qt,de),Qt.Dc+=de,1)}function Fl(St){St.ma.memory=null}function Es(St,Qt,de,Ee){return Un(St,8)!=47?0:(Qt[0]=Un(St,14)+1,de[0]=Un(St,14)+1,Ee[0]=Un(St,1),Un(St,3)!=0?0:!St.h)}function da(St,Qt){if(4>St)return St+1;var de=St-2>>1;return(2+(1&St)<<de)+Un(Qt,de)+1}function Dl(St,Qt){return 120<Qt?Qt-120:1<=(de=((de=NA[Qt-1])>>4)*St+(8-(15&de)))?de:1;var de}function Ao(St,Qt,de){var Ee=hn(de),on=St[Qt+=255&Ee].g-8;return 0<on&&(Qn(de,de.u+8),Ee=hn(de),Qt+=St[Qt].value,Qt+=Ee&(1<<on)-1),Qn(de,de.u+St[Qt].g),St[Qt].value}function Ra(St,Qt,de){return de.g+=St.g,de.value+=St.value<<Qt>>>0,wt(8>=de.g),St.g}function Kl(St,Qt,de){var Ee=St.xc;return wt((Qt=Ee==0?0:St.vc[St.md*(de>>Ee)+(Qt>>Ee)])<St.Wb),St.Ya[Qt]}function ta(St,Qt,de,Ee){var on=St.ab,cn=St.c*Qt,An=St.C;Qt=An+Qt;var xn=de,In=Ee;for(Ee=St.Ta,de=St.Ua;0<on--;){var zn=St.gc[on],Ai=An,$i=Qt,Yi=xn,Ni=In,Gr=(In=Ee,xn=de,zn.Ea);switch(wt(Ai<$i),wt($i<=zn.nc),zn.hc){case 2:Dh(Yi,Ni,($i-Ai)*Gr,In,xn);break;case 0:var Ir=Ai,Hi=$i,Ui=In,Kr=xn,lo=(os=zn).Ea;Ir==0&&(Wl(Yi,Ni,null,null,1,Ui,Kr),Ur(Yi,Ni+1,0,0,lo-1,Ui,Kr+1),Ni+=lo,Kr+=lo,++Ir);for(var Xr=1<<os.b,as=Xr-1,ts=Pr(lo,os.b),ci=os.K,os=os.w+(Ir>>os.b)*ts;Ir<Hi;){var Bl=ci,Pl=os,il=1;for(Ld(Yi,Ni,Ui,Kr-lo,1,Ui,Kr);il<lo;){var Ga=(il&~as)+Xr;Ga>lo&&(Ga=lo),(0,mt[Bl[Pl++]>>8&15])(Yi,Ni+ +il,Ui,Kr+il-lo,Ga-il,Ui,Kr+il),il=Ga}Ni+=lo,Kr+=lo,++Ir&as||(os+=ts)}$i!=zn.nc&&Ht(In,xn-Gr,In,xn+($i-Ai-1)*Gr,Gr);break;case 1:for(Gr=Yi,Hi=Ni,lo=(Yi=zn.Ea)-(Kr=Yi&~(Ui=(Ni=1<<zn.b)-1)),Ir=Pr(Yi,zn.b),Xr=zn.K,zn=zn.w+(Ai>>zn.b)*Ir;Ai<$i;){for(as=Xr,ts=zn,ci=new qi,os=Hi+Kr,Bl=Hi+Yi;Hi<os;)us(as[ts++],ci),pt(ci,Gr,Hi,Ni,In,xn),Hi+=Ni,xn+=Ni;Hi<Bl&&(us(as[ts++],ci),pt(ci,Gr,Hi,lo,In,xn),Hi+=lo,xn+=lo),++Ai&Ui||(zn+=Ir)}break;case 3:if(Yi==In&&Ni==xn&&0<zn.b){for(Hi=In,Yi=Gr=xn+($i-Ai)*Gr-(Kr=($i-Ai)*Pr(zn.Ea,zn.b)),Ni=In,Ui=xn,Ir=[],Kr=(lo=Kr)-1;0<=Kr;--Kr)Ir[Kr]=Ni[Ui+Kr];for(Kr=lo-1;0<=Kr;--Kr)Hi[Yi+Kr]=Ir[Kr];ah(zn,Ai,$i,In,Gr,In,xn)}else ah(zn,Ai,$i,Yi,Ni,In,xn)}xn=Ee,In=de}In!=de&&Ht(Ee,de,xn,In,cn)}function ca(St,Qt){var de=St.V,Ee=St.Ba+St.c*St.C,on=Qt-St.C;if(wt(Qt<=St.l.o),wt(16>=on),0<on){var cn=St.l,An=St.Ta,xn=St.Ua,In=cn.width;if(ta(St,on,de,Ee),on=xn=[xn],wt((de=St.C)<(Ee=Qt)),wt(cn.v<cn.va),Ee>cn.o&&(Ee=cn.o),de<cn.j){var zn=cn.j-de;de=cn.j,on[0]+=zn*In}if(de>=Ee?de=0:(on[0]+=4*cn.v,cn.ka=de-cn.j,cn.U=cn.va-cn.v,cn.T=Ee-de,de=1),de){if(xn=xn[0],11>(de=St.ca).S){var Ai=de.f.RGBA,$i=(Ee=de.S,on=cn.U,cn=cn.T,zn=Ai.eb,Ai.A),Yi=cn;for(Ai=Ai.fb+St.Ma*Ai.A;0<Yi--;){var Ni=An,Gr=xn,Ir=on,Hi=zn,Ui=Ai;switch(Ee){case hu:Bt(Ni,Gr,Ir,Hi,Ui);break;case ad:Jt(Ni,Gr,Ir,Hi,Ui);break;case Wc:Jt(Ni,Gr,Ir,Hi,Ui),yu(Hi,Ui,0,Ir,1,0);break;case lc:Oe(Ni,Gr,Ir,Hi,Ui);break;case uh:qs(Ni,Gr,Ir,Hi,Ui,1);break;case Jd:qs(Ni,Gr,Ir,Hi,Ui,1),yu(Hi,Ui,0,Ir,1,0);break;case wh:qs(Ni,Gr,Ir,Hi,Ui,0);break;case zf:qs(Ni,Gr,Ir,Hi,Ui,0),yu(Hi,Ui,1,Ir,1,0);break;case Il:Se(Ni,Gr,Ir,Hi,Ui);break;case Eh:Se(Ni,Gr,Ir,Hi,Ui),La(Hi,Ui,Ir,1,0);break;case th:Ue(Ni,Gr,Ir,Hi,Ui);break;default:wt(0)}xn+=In,Ai+=$i}St.Ma+=cn}else alert("todo:EmitRescaledRowsYUVA");wt(St.Ma<=de.height)}}St.C=Qt,wt(St.C<=St.i)}function ka(St){var Qt;if(0<St.ua)return 0;for(Qt=0;Qt<St.Wb;++Qt){var de=St.Ya[Qt].G,Ee=St.Ya[Qt].H;if(0<de[1][Ee[1]+0].g||0<de[2][Ee[2]+0].g||0<de[3][Ee[3]+0].g)return 0}return 1}function Xa(St,Qt,de,Ee,on,cn){if(St.Z!=0){var An=St.qd,xn=St.rd;for(wt(Td[St.Z]!=null);Qt<de;++Qt)Td[St.Z](An,xn,Ee,on,Ee,on,cn),An=Ee,xn=on,on+=cn;St.qd=An,St.rd=xn}}function al(St,Qt){var de=St.l.ma,Ee=de.Z==0||de.Z==1?St.l.j:St.C;if(Ee=St.C<Ee?Ee:St.C,wt(Qt<=St.l.o),Qt>Ee){var on=St.l.width,cn=de.ca,An=de.tb+on*Ee,xn=St.V,In=St.Ba+St.c*Ee,zn=St.gc;wt(St.ab==1),wt(zn[0].hc==3),it(zn[0],Ee,Qt,xn,In,cn,An),Xa(de,Ee,Qt,cn,An,on)}St.C=St.Ma=Qt}function Rs(St,Qt,de,Ee,on,cn,An){var xn=St.$/Ee,In=St.$%Ee,zn=St.m,Ai=St.s,$i=de+St.$,Yi=$i;on=de+Ee*on;var Ni=de+Ee*cn,Gr=280+Ai.ua,Ir=St.Pb?xn:16777216,Hi=0<Ai.ua?Ai.Wa:null,Ui=Ai.wc,Kr=$i<Ni?Kl(Ai,In,xn):null;wt(St.C<cn),wt(Ni<=on);var lo=!1;t:for(;;){for(;lo||$i<Ni;){var Xr=0;if(xn>=Ir){var as=$i-de;wt((Ir=St).Pb),Ir.wd=Ir.m,Ir.xd=as,0<Ir.s.ua&&Ii(Ir.s.Wa,Ir.s.vb),Ir=xn+WA}if(In&Ui||(Kr=Kl(Ai,In,xn)),wt(Kr!=null),Kr.Qb&&(Qt[$i]=Kr.qb,lo=!0),!lo)if(Zn(zn),Kr.jc){Xr=zn,as=Qt;var ts=$i,ci=Kr.pd[hn(Xr)&Iu-1];wt(Kr.jc),256>ci.g?(Qn(Xr,Xr.u+ci.g),as[ts]=ci.value,Xr=0):(Qn(Xr,Xr.u+ci.g-256),wt(256<=ci.value),Xr=ci.value),Xr==0&&(lo=!0)}else Xr=Ao(Kr.G[0],Kr.H[0],zn);if(zn.h)break;if(lo||256>Xr){if(!lo)if(Kr.nd)Qt[$i]=(Kr.qb|Xr<<8)>>>0;else{if(Zn(zn),lo=Ao(Kr.G[1],Kr.H[1],zn),Zn(zn),as=Ao(Kr.G[2],Kr.H[2],zn),ts=Ao(Kr.G[3],Kr.H[3],zn),zn.h)break;Qt[$i]=(ts<<24|lo<<16|Xr<<8|as)>>>0}if(lo=!1,++$i,++In>=Ee&&(In=0,++xn,An!=null&&xn<=cn&&!(xn%16)&&An(St,xn),Hi!=null))for(;Yi<$i;)Xr=Qt[Yi++],Hi.X[(506832829*Xr&4294967295)>>>Hi.Mb]=Xr}else if(280>Xr){if(Xr=da(Xr-256,zn),as=Ao(Kr.G[4],Kr.H[4],zn),Zn(zn),as=Dl(Ee,as=da(as,zn)),zn.h)break;if($i-de<as||on-$i<Xr)break t;for(ts=0;ts<Xr;++ts)Qt[$i+ts]=Qt[$i+ts-as];for($i+=Xr,In+=Xr;In>=Ee;)In-=Ee,++xn,An!=null&&xn<=cn&&!(xn%16)&&An(St,xn);if(wt($i<=on),In&Ui&&(Kr=Kl(Ai,In,xn)),Hi!=null)for(;Yi<$i;)Xr=Qt[Yi++],Hi.X[(506832829*Xr&4294967295)>>>Hi.Mb]=Xr}else{if(!(Xr<Gr))break t;for(lo=Xr-280,wt(Hi!=null);Yi<$i;)Xr=Qt[Yi++],Hi.X[(506832829*Xr&4294967295)>>>Hi.Mb]=Xr;Xr=$i,wt(!(lo>>>(as=Hi).Xa)),Qt[Xr]=as.X[lo],lo=!0}lo||wt(zn.h==mn(zn))}if(St.Pb&&zn.h&&$i<on)wt(St.m.h),St.a=5,St.m=St.wd,St.$=St.xd,0<St.s.ua&&Ii(St.s.vb,St.s.Wa);else{if(zn.h)break t;An!=null&&An(St,xn>cn?cn:xn),St.a=0,St.$=$i-de}return 1}return St.a=3,0}function Ta(St){wt(St!=null),St.vc=null,St.yc=null,St.Ya=null;var Qt=St.Wa;Qt!=null&&(Qt.X=null),St.vb=null,wt(St!=null)}function xl(){var St=new EA;return St==null?null:(St.a=0,St.xb=kd,Ua("Predictor","VP8LPredictors"),Ua("Predictor","VP8LPredictors_C"),Ua("PredictorAdd","VP8LPredictorsAdd"),Ua("PredictorAdd","VP8LPredictorsAdd_C"),Dh=jo,pt=qo,Bt=So,Jt=wa,Se=Vo,Ue=rs,Oe=Cs,Ti.VP8LMapColor32b=sd,Ti.VP8LMapColor8b=st,St)}function pu(St,Qt,de,Ee,on){var cn=1,An=[St],xn=[Qt],In=Ee.m,zn=Ee.s,Ai=null,$i=0;t:for(;;){if(de)for(;cn&&Un(In,1);){var Yi=An,Ni=xn,Gr=Ee,Ir=1,Hi=Gr.m,Ui=Gr.gc[Gr.ab],Kr=Un(Hi,2);if(Gr.Oc&1<<Kr)cn=0;else{switch(Gr.Oc|=1<<Kr,Ui.hc=Kr,Ui.Ea=Yi[0],Ui.nc=Ni[0],Ui.K=[null],++Gr.ab,wt(4>=Gr.ab),Kr){case 0:case 1:Ui.b=Un(Hi,3)+2,Ir=pu(Pr(Ui.Ea,Ui.b),Pr(Ui.nc,Ui.b),0,Gr,Ui.K),Ui.K=Ui.K[0];break;case 3:var lo,Xr=Un(Hi,8)+1,as=16<Xr?0:4<Xr?1:2<Xr?2:3;if(Yi[0]=Pr(Ui.Ea,as),Ui.b=as,lo=Ir=pu(Xr,1,0,Gr,Ui.K)){var ts,ci=Xr,os=Ui,Bl=1<<(8>>os.b),Pl=Yt(Bl);if(Pl==null)lo=0;else{var il=os.K[0],Ga=os.w;for(Pl[0]=os.K[0][0],ts=1;ts<1*ci;++ts)Pl[ts]=sr(il[Ga+ts],Pl[ts-1]);for(;ts<4*Bl;++ts)Pl[ts]=0;os.K[0]=null,os.K[0]=Pl,lo=1}}Ir=lo;break;case 2:break;default:wt(0)}cn=Ir}}if(An=An[0],xn=xn[0],cn&&Un(In,1)&&!(cn=1<=($i=Un(In,4))&&11>=$i)){Ee.a=3;break t}var Ha;if(Ha=cn)e:{var dl,Ma,Gh,ud=Ee,jh=An,hd=xn,kl=$i,cd=de,dd=ud.m,Wh=ud.s,uc=[null],Vc=1,qd=0,TA=Kf[kl];n:for(;;){if(cd&&Un(dd,1)){var ru=Un(dd,3)+2,uf=Pr(jh,ru),OA=Pr(hd,ru),Zf=uf*OA;if(!pu(uf,OA,0,ud,uc))break n;for(uc=uc[0],Wh.xc=ru,dl=0;dl<Zf;++dl){var DA=uc[dl]>>8&65535;uc[dl]=DA,DA>=Vc&&(Vc=DA+1)}}if(dd.h)break n;for(Ma=0;5>Ma;++Ma){var fh=yf[Ma];!Ma&&0<kl&&(fh+=1<<kl),qd<fh&&(qd=fh)}var Zg=ge(Vc*TA,ii),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(dl=Gh=0;dl<Vc;++dl){var hh=Zc[dl],Xc=hh.G,Fh=hh.H,Vl=0,Xf=1,Yg=0;for(Ma=0;5>Ma;++Ma){fh=yf[Ma],Xc[Ma]=$g,Fh[Ma]=Gh,!Ma&&0<kl&&(fh+=1<<kl);r:{var Pg,$f=fh,Yf=ud,Oo=Bg,Sf=$g,bg=Gh,Jg=0,jA=Yf.m,Pp=Un(jA,1);if(ie(Oo,0,0,$f),Pp){var Cf=Un(jA,1)+1,n0=Un(jA,1),um=Un(jA,n0==0?1:8);Oo[um]=1,Cf==2&&(Oo[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 aa=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=Oo,Jf=0,cf=Fg.m,cm=8,qg=ge(128,ii);i:for(;$n(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--;){Zn(cf);var Lp=qg[0+(127&hn(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=$n(Sf,bg,8,Oo,$f)),Ad&&Jg!=0?aa=Jg:(Yf.a=3,aa=0)}if(aa==0)break n;if(Xf&&wf[Ma]==1&&(Xf=$g[Gh].g==0),Vl+=$g[Gh].g,Gh+=aa,3>=Ma){var Lg,gm=Bg[0];for(Lg=1;Lg<fh;++Lg)Bg[Lg]>gm&&(gm=Bg[Lg]);Yg+=gm}}if(hh.nd=Xf,hh.Qb=0,Xf&&(hh.qb=(Xc[3][Fh[3]+0].value<<24|Xc[1][Fh[1]+0].value<<16|Xc[2][Fh[2]+0].value)>>>0,Vl==0&&256>Xc[0][Fh[0]+0].value&&(hh.Qb=1,hh.qb+=Xc[0][Fh[0]+0].value<<8)),hh.jc=!hh.Qb&&6>Yg,hh.jc){var Mg,$A=hh;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>>=Ra(Bf,8,YA),UA>>=Ra($A.G[1][$A.H[1]+UA],16,YA),UA>>=Ra($A.G[2][$A.H[2]+UA],0,YA),Ra($A.G[3][$A.H[3]+UA],24,YA))}}}Wh.vc=uc,Wh.Wb=Vc,Wh.Ya=Zc,Wh.yc=Zg,Ha=1;break e}Ha=0}if(!(cn=Ha)){Ee.a=3;break t}if(0<$i){if(zn.ua=1<<$i,!io(zn.Wa,$i)){Ee.a=1,cn=0;break t}}else zn.ua=0;var Mp=Ee,Lh=An,Np=xn,np=Mp.s,Od=np.xc;if(Mp.c=Lh,Mp.i=Np,np.md=Pr(Lh,Od),np.wc=Od==0?-1:(1<<Od)-1,de){Ee.xb=ld;break t}if((Ai=Yt(An*xn))==null){Ee.a=1,cn=0;break t}cn=(cn=Rs(Ee,Ai,0,An,xn,xn,null))&&!In.h;break t}return cn?(on!=null?on[0]=Ai:(wt(Ai==null),wt(de)),Ee.$=0,de||Ta(zn)):Ta(zn),cn}function au(St,Qt){var de=St.c*St.i,Ee=de+Qt+16*Qt;return wt(St.c<=Qt),St.V=Yt(Ee),St.V==null?(St.Ta=null,St.Ua=0,St.a=1,0):(St.Ta=St.V,St.Ua=St.Ba+de+Qt,1)}function Uu(St,Qt){var de=St.C,Ee=Qt-de,on=St.V,cn=St.Ba+St.c*de;for(wt(Qt<=St.l.o);0<Ee;){var An=16<Ee?16:Ee,xn=St.l.ma,In=St.l.width,zn=In*An,Ai=xn.ca,$i=xn.tb+In*de,Yi=St.Ta,Ni=St.Ua;ta(St,An,on,cn),vl(Yi,Ni,Ai,$i,zn),Xa(xn,de,de+An,Ai,$i,In),Ee-=An,on+=An*St.c,de+=An}wt(de==Qt),St.C=St.Ma=Qt}function Xu(){this.ub=this.yd=this.td=this.Rb=0}function dh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $u(){this.Fb=this.Bb=this.Cb=0,this.Zb=Yt(4),this.Lb=Yt(4)}function _a(){this.Yb=function(){var St=[];return function Qt(de,Ee,on){for(var cn=on[Ee],An=0;An<cn&&(de.push(on.length>Ee+1?[]:0),!(on.length<Ee+1));An++)Qt(de[An],Ee+1,on)}(St,0,[3,11]),St}()}function Bu(){this.jb=Yt(3),this.Wc=we([4,8],_a),this.Xc=we([4,17],_a)}function jl(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Yt(4),this.od=new Yt(4)}function nl(){this.ld=this.La=this.dd=this.tc=0}function ph(){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 mh(){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 ic(){this.uc=this.M=this.Nb=0,this.wa=Array(new nl),this.Y=0,this.ya=Array(new mh),this.aa=0,this.l=new ga}function rc(){this.y=Yt(16),this.f=Yt(8),this.ea=Yt(8)}function vh(){this.cb=this.a=0,this.sc="",this.m=new Yn,this.Od=new Xu,this.Kc=new dh,this.ed=new jl,this.Qa=new $u,this.Ic=this.$c=this.Aa=0,this.D=new ic,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ge(8,Yn),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 rc),this.Hd=0,this.rb=Array(new ph),this.sb=0,this.wa=Array(new nl),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 mh),this.L=this.aa=0,this.gd=we([4,2],nl),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 ga(){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 vh;return St!=null&&(St.a=0,St.sc="OK",St.cb=0,St.Xb=0,eh||(eh=lu)),St}function Ba(St,Qt,de){return St.a==0&&(St.a=Qt,St.sc=de,St.cb=0),0}function pl(St,Qt,de){return 3<=de&&St[Qt+0]==157&&St[Qt+1]==1&&St[Qt+2]==42}function pa(St,Qt){if(St==null)return 0;if(St.a=0,St.sc="OK",Qt==null)return Ba(St,2,"null VP8Io passed to VP8GetHeaders()");var de=Qt.data,Ee=Qt.w,on=Qt.ha;if(4>on)return Ba(St,7,"Truncated header.");var cn=de[Ee+0]|de[Ee+1]<<8|de[Ee+2]<<16,An=St.Od;if(An.Rb=!(1&cn),An.td=cn>>1&7,An.yd=cn>>4&1,An.ub=cn>>5,3<An.td)return Ba(St,3,"Incorrect keyframe parameters.");if(!An.yd)return Ba(St,4,"Frame not displayable.");Ee+=3,on-=3;var xn=St.Kc;if(An.Rb){if(7>on)return Ba(St,7,"cannot parse picture header");if(!pl(de,Ee,on))return Ba(St,3,"Bad code word");xn.c=16383&(de[Ee+4]<<8|de[Ee+3]),xn.Td=de[Ee+4]>>6,xn.i=16383&(de[Ee+6]<<8|de[Ee+5]),xn.Ud=de[Ee+6]>>6,Ee+=7,on-=7,St.za=xn.c+15>>4,St.Ub=xn.i+15>>4,Qt.width=xn.c,Qt.height=xn.i,Qt.Da=0,Qt.j=0,Qt.v=0,Qt.va=Qt.width,Qt.o=Qt.height,Qt.da=0,Qt.ib=Qt.width,Qt.hb=Qt.height,Qt.U=Qt.width,Qt.T=Qt.height,ie((cn=St.Pa).jb,0,255,cn.jb.length),wt((cn=St.Qa)!=null),cn.Cb=0,cn.Bb=0,cn.Fb=1,ie(cn.Zb,0,0,cn.Zb.length),ie(cn.Lb,0,0,cn.Lb)}if(An.ub>on)return Ba(St,7,"bad partition length");Xe(cn=St.m,de,Ee,An.ub),Ee+=An.ub,on-=An.ub,An.Rb&&(xn.Ld=Ei(cn),xn.Kd=Ei(cn)),xn=St.Qa;var In,zn=St.Pa;if(wt(cn!=null),wt(xn!=null),xn.Cb=Ei(cn),xn.Cb){if(xn.Bb=Ei(cn),Ei(cn)){for(xn.Fb=Ei(cn),In=0;4>In;++In)xn.Zb[In]=Ei(cn)?vn(cn,7):0;for(In=0;4>In;++In)xn.Lb[In]=Ei(cn)?vn(cn,6):0}if(xn.Bb)for(In=0;3>In;++In)zn.jb[In]=Ei(cn)?Je(cn,8):255}else xn.Bb=0;if(cn.Ka)return Ba(St,3,"cannot parse segment header");if((xn=St.ed).zd=Ei(cn),xn.Tb=Je(cn,6),xn.wb=Je(cn,3),xn.Pc=Ei(cn),xn.Pc&&Ei(cn)){for(zn=0;4>zn;++zn)Ei(cn)&&(xn.vd[zn]=vn(cn,6));for(zn=0;4>zn;++zn)Ei(cn)&&(xn.od[zn]=vn(cn,6))}if(St.L=xn.Tb==0?0:xn.zd?1:2,cn.Ka)return Ba(St,3,"cannot parse filter header");var Ai=on;if(on=In=Ee,Ee=In+Ai,xn=Ai,St.Xb=(1<<Je(St.m,2))-1,Ai<3*(zn=St.Xb))de=7;else{for(In+=3*zn,xn-=3*zn,Ai=0;Ai<zn;++Ai){var $i=de[on+0]|de[on+1]<<8|de[on+2]<<16;$i>xn&&($i=xn),Xe(St.Jc[+Ai],de,In,$i),In+=$i,xn-=$i,on+=3}Xe(St.Jc[+zn],de,In,xn),de=In<Ee?0:5}if(de!=0)return Ba(St,de,"cannot parse partitions");for(de=Je(In=St.m,7),on=Ei(In)?vn(In,4):0,Ee=Ei(In)?vn(In,4):0,xn=Ei(In)?vn(In,4):0,zn=Ei(In)?vn(In,4):0,In=Ei(In)?vn(In,4):0,Ai=St.Qa,$i=0;4>$i;++$i){if(Ai.Cb){var Yi=Ai.Zb[$i];Ai.Fb||(Yi+=de)}else{if(0<$i){St.pb[$i]=St.pb[0];continue}Yi=de}var Ni=St.pb[$i];Ni.Sc[0]=Nd[bh(Yi+on,127)],Ni.Sc[1]=_u[bh(Yi+0,127)],Ni.Eb[0]=2*Nd[bh(Yi+Ee,127)],Ni.Eb[1]=101581*_u[bh(Yi+xn,127)]>>16,8>Ni.Eb[1]&&(Ni.Eb[1]=8),Ni.Qc[0]=Nd[bh(Yi+zn,117)],Ni.Qc[1]=_u[bh(Yi+In,127)],Ni.lc=Yi+In}if(!An.Rb)return Ba(St,4,"Not a key frame.");for(Ei(cn),An=St.Pa,de=0;4>de;++de){for(on=0;8>on;++on)for(Ee=0;3>Ee;++Ee)for(xn=0;11>xn;++xn)zn=li(cn,Wf[de][on][Ee][xn])?Je(cn,8):VA[de][on][Ee][xn],An.Wc[de][on].Yb[Ee][xn]=zn;for(on=0;17>on;++on)An.Xc[de][on]=An.Wc[de][Cp[on]]}return St.kc=Ei(cn),St.kc&&(St.Bd=Je(cn,8)),St.cb=1}function lu(St,Qt,de,Ee,on,cn,An){var xn=Qt[on].Yb[de];for(de=0;16>on;++on){if(!li(St,xn[de+0]))return on;for(;!li(St,xn[de+1]);)if(xn=Qt[++on].Yb[0],de=0,on==16)return 16;var In=Qt[on+1].Yb;if(li(St,xn[de+2])){var zn=St,Ai=0;if(li(zn,(Yi=xn)[($i=de)+3]))if(li(zn,Yi[$i+6])){for(xn=0,$i=2*(Ai=li(zn,Yi[$i+8]))+(Yi=li(zn,Yi[$i+9+Ai])),Ai=0,Yi=Gf[$i];Yi[xn];++xn)Ai+=Ai+li(zn,Yi[xn]);Ai+=3+(8<<$i)}else li(zn,Yi[$i+7])?(Ai=7+2*li(zn,165),Ai+=li(zn,145)):Ai=5+li(zn,159);else Ai=li(zn,Yi[$i+4])?3+li(zn,Yi[$i+5]):2;xn=In[2]}else Ai=1,xn=In[1];In=An+Sp[on],0>(zn=St).b&&ni(zn);var $i,Yi=zn.b,Ni=($i=zn.Ca>>1)-(zn.I>>Yi)>>31;--zn.b,zn.Ca+=Ni,zn.Ca|=1,zn.I-=($i+1&Ni)<<Yi,cn[In]=((Ai^Ni)-Ni)*Ee[(0<on)+0]}return 16}function Fu(St){var Qt=St.rb[St.sb-1];Qt.la=0,Qt.Na=0,ie(St.zc,0,0,St.zc.length),St.ja=0}function zh(St,Qt){if(St==null)return 0;if(Qt==null)return Ba(St,2,"NULL VP8Io parameter in VP8Decode().");if(!St.cb&&!pa(St,Qt))return 0;if(wt(St.cb),Qt.ac==null||Qt.ac(Qt)){Qt.ob&&(St.L=0);var de=jn[St.L];if(St.L==2?(St.yb=0,St.zb=0):(St.yb=Qt.v-de>>4,St.zb=Qt.j-de>>4,0>St.yb&&(St.yb=0),0>St.zb&&(St.zb=0)),St.Va=Qt.o+15+de>>4,St.Hb=Qt.va+15+de>>4,St.Hb>St.za&&(St.Hb=St.za),St.Va>St.Ub&&(St.Va=St.Ub),0<St.L){var Ee=St.ed;for(de=0;4>de;++de){var on;if(St.Qa.Cb){var cn=St.Qa.Lb[de];St.Qa.Fb||(cn+=Ee.Tb)}else cn=Ee.Tb;for(on=0;1>=on;++on){var An=St.gd[de][on],xn=cn;if(Ee.Pc&&(xn+=Ee.vd[0],on&&(xn+=Ee.od[0])),0<(xn=0>xn?0:63<xn?63:xn)){var In=xn;0<Ee.wb&&(In=4<Ee.wb?In>>2:In>>1)>9-Ee.wb&&(In=9-Ee.wb),1>In&&(In=1),An.dd=In,An.tc=2*xn+In,An.ld=40<=xn?2:15<=xn?1:0}else An.tc=0;An.La=on}}}de=0}else Ba(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,Ee=4*(In=St.za);var zn=32*In,Ai=In+1,$i=0<St.L?In*(0<St.Aa?2:1):0,Yi=(St.Aa==2?2:1)*In;if((An=Ee+832+(on=3*(16*de+jn[St.L])/2*zn)+(cn=St.Fa!=null&&0<St.Fa.length?St.Kc.c*St.Kc.i:0))!=An)de=0;else{if(An>St.Vb){if(St.Vb=0,St.Ec=Yt(An),St.Fc=0,St.Ec==null){de=Ba(St,1,"no memory during frame initialization.");break t}St.Vb=An}An=St.Ec,xn=St.Fc,St.Ac=An,St.Bc=xn,xn+=Ee,St.Gd=ge(zn,rc),St.Hd=0,St.rb=ge(Ai+1,ph),St.sb=1,St.wa=$i?ge($i,nl):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=An,St.pc=xn,xn+=832,St.ya=ge(Yi,mh),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=An,St.ta=xn+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,xn+=on,St.mb=cn?An:null,St.nb=cn?xn:null,wt(xn+cn<=St.Fc+St.Vb),Fu(St),ie(St.Ac,St.Bc,0,Ee),de=1}}if(de){if(Qt.ka=0,Qt.y=St.sa,Qt.O=St.ta,Qt.f=St.qa,Qt.N=St.ra,Qt.ea=St.Ha,Qt.Vd=St.Ia,Qt.fa=St.R,Qt.Rc=St.B,Qt.F=null,Qt.J=0,!Nl){for(de=-255;255>=de;++de)yl[255+de]=0>de?-de:de;for(de=-1020;1020>=de;++de)Eo[1020+de]=-128>de?-128:127<de?127:de;for(de=-112;112>=de;++de)Ca[112+de]=-16>de?-16:15<de?15:de;for(de=-255;510>=de;++de)Ml[255+de]=0>de?0:255<de?255:de;Nl=1}ln=Lu,ri=nd,ki=gc,bi=xd,yr=SA,pn=lA,Tr=Qc,qr=od,vo=Pc,$o=KA,ko=lf,ss=uA,Ns=bd,To=zc,ea=Pd,Cl=Vu,ku=yh,cl=PA,Ec[0]=mu,Ec[1]=Kd,Ec[2]=Cd,Ec[3]=rd,Ec[4]=Gd,Ec[5]=Ju,Ec[6]=Wd,Ec[7]=Rc,Ec[8]=Vd,Ec[9]=Bd,bc[0]=sh,bc[1]=CA,bc[2]=Uc,bc[3]=Sd,bc[4]=Wu,bc[5]=BA,bc[6]=Kh,Id[0]=Ul,Id[1]=id,Id[2]=uu,Id[3]=vu,Id[4]=$a,Id[5]=Oa,Id[6]=Mu,de=1}else de=0}de&&(de=function(Ni,Gr){for(Ni.M=0;Ni.M<Ni.Va;++Ni.M){var Ir,Hi=Ni.Jc[Ni.M&Ni.Xb],Ui=Ni.m,Kr=Ni;for(Ir=0;Ir<Kr.za;++Ir){var lo=Ui,Xr=Kr,as=Xr.Ac,ts=Xr.Bc+4*Ir,ci=Xr.zc,os=Xr.ya[Xr.aa+Ir];if(Xr.Qa.Bb?os.$b=li(lo,Xr.Pa.jb[0])?2+li(lo,Xr.Pa.jb[2]):li(lo,Xr.Pa.jb[1]):os.$b=0,Xr.kc&&(os.Ad=li(lo,Xr.Bd)),os.Za=!li(lo,145)+0,os.Za){var Bl=os.Ob,Pl=0;for(Xr=0;4>Xr;++Xr){var il,Ga=ci[0+Xr];for(il=0;4>il;++il){Ga=ZA[as[ts+il]][Ga];for(var Ha=zg[li(lo,Ga[0])];0<Ha;)Ha=zg[2*Ha+li(lo,Ga[Ha])];Ga=-Ha,as[ts+il]=Ga}Ht(Bl,Pl,as,ts,4),Pl+=4,ci[0+Xr]=Ga}}else Ga=li(lo,156)?li(lo,128)?1:3:li(lo,163)?2:0,os.Ob[0]=Ga,ie(as,ts,Ga,4),ie(ci,0,Ga,4);os.Dd=li(lo,142)?li(lo,114)?li(lo,183)?1:3:2:0}if(Kr.m.Ka)return Ba(Ni,7,"Premature end-of-partition0 encountered.");for(;Ni.ja<Ni.za;++Ni.ja){if(Kr=Hi,lo=(Ui=Ni).rb[Ui.sb-1],as=Ui.rb[Ui.sb+Ui.ja],Ir=Ui.ya[Ui.aa+Ui.ja],ts=Ui.kc?Ir.Ad:0)lo.la=as.la=0,Ir.Za||(lo.Na=as.Na=0),Ir.Hc=0,Ir.Gc=0,Ir.ia=0;else{var dl,Ma;if(lo=as,as=Kr,ts=Ui.Pa.Xc,ci=Ui.ya[Ui.aa+Ui.ja],os=Ui.pb[ci.$b],Xr=ci.ad,Bl=0,Pl=Ui.rb[Ui.sb-1],Ga=il=0,ie(Xr,Bl,0,384),ci.Za)var Gh=0,ud=ts[3];else{Ha=Yt(16);var jh=lo.Na+Pl.Na;if(jh=eh(as,ts[1],jh,os.Eb,0,Ha,0),lo.Na=Pl.Na=(0<jh)+0,1<jh)ln(Ha,0,Xr,Bl);else{var hd=Ha[0]+3>>3;for(Ha=0;256>Ha;Ha+=16)Xr[Bl+Ha]=hd}Gh=1,ud=ts[0]}var kl=15&lo.la,cd=15&Pl.la;for(Ha=0;4>Ha;++Ha){var dd=1&cd;for(hd=Ma=0;4>hd;++hd)kl=kl>>1|(dd=(jh=eh(as,ud,jh=dd+(1&kl),os.Sc,Gh,Xr,Bl))>Gh)<<7,Ma=Ma<<2|(3<jh?3:1<jh?2:Xr[Bl+0]!=0),Bl+=16;kl>>=4,cd=cd>>1|dd<<7,il=(il<<8|Ma)>>>0}for(ud=kl,Gh=cd>>4,dl=0;4>dl;dl+=2){for(Ma=0,kl=lo.la>>4+dl,cd=Pl.la>>4+dl,Ha=0;2>Ha;++Ha){for(dd=1&cd,hd=0;2>hd;++hd)jh=dd+(1&kl),kl=kl>>1|(dd=0<(jh=eh(as,ts[2],jh,os.Qc,0,Xr,Bl)))<<3,Ma=Ma<<2|(3<jh?3:1<jh?2:Xr[Bl+0]!=0),Bl+=16;kl>>=2,cd=cd>>1|dd<<5}Ga|=Ma<<4*dl,ud|=kl<<4<<dl,Gh|=(240&cd)<<dl}lo.la=ud,Pl.la=Gh,ci.Hc=il,ci.Gc=Ga,ci.ia=43690&Ga?0:os.ia,ts=!(il|Ga)}if(0<Ui.L&&(Ui.wa[Ui.Y+Ui.ja]=Ui.gd[Ir.$b][Ir.Za],Ui.wa[Ui.Y+Ui.ja].La|=!ts),Kr.Ka)return Ba(Ni,7,"Premature end-of-file encountered.")}if(Fu(Ni),Ui=Gr,Kr=1,Ir=(Hi=Ni).D,lo=0<Hi.L&&Hi.M>=Hi.zb&&Hi.M<=Hi.Va,Hi.Aa==0)t:{if(Ir.M=Hi.M,Ir.uc=lo,MA(Hi,Ir),Kr=1,Ir=(Ma=Hi.D).Nb,lo=(Ga=jn[Hi.L])*Hi.R,as=Ga/2*Hi.B,Ha=16*Ir*Hi.R,hd=8*Ir*Hi.B,ts=Hi.sa,ci=Hi.ta-lo+Ha,os=Hi.qa,Xr=Hi.ra-as+hd,Bl=Hi.Ha,Pl=Hi.Ia-as+hd,cd=(kl=Ma.M)==0,il=kl>=Hi.Va-1,Hi.Aa==2&&MA(Hi,Ma),Ma.uc)for(dd=(jh=Hi).D.M,wt(jh.D.uc),Ma=jh.yb;Ma<jh.Hb;++Ma){Gh=Ma,ud=dd;var Wh=(uc=(fh=jh).D).Nb;dl=fh.R;var uc=uc.wa[uc.Y+Gh],Vc=fh.sa,qd=fh.ta+16*Wh*dl+16*Gh,TA=uc.dd,ru=uc.tc;if(ru!=0)if(wt(3<=ru),fh.L==1)0<Gh&&Cl(Vc,qd,dl,ru+4),uc.La&&cl(Vc,qd,dl,ru),0<ud&&ea(Vc,qd,dl,ru+4),uc.La&&ku(Vc,qd,dl,ru);else{var uf=fh.B,OA=fh.qa,Zf=fh.ra+8*Wh*uf+8*Gh,DA=fh.Ha,fh=fh.Ia+8*Wh*uf+8*Gh;Wh=uc.ld,0<Gh&&(qr(Vc,qd,dl,ru+4,TA,Wh),$o(OA,Zf,DA,fh,uf,ru+4,TA,Wh)),uc.La&&(ss(Vc,qd,dl,ru,TA,Wh),To(OA,Zf,DA,fh,uf,ru,TA,Wh)),0<ud&&(Tr(Vc,qd,dl,ru+4,TA,Wh),vo(OA,Zf,DA,fh,uf,ru+4,TA,Wh)),uc.La&&(ko(Vc,qd,dl,ru,TA,Wh),Ns(OA,Zf,DA,fh,uf,ru,TA,Wh))}}if(Hi.ia&&alert("todo:DitherRow"),Ui.put!=null){if(Ma=16*kl,kl=16*(kl+1),cd?(Ui.y=Hi.sa,Ui.O=Hi.ta+Ha,Ui.f=Hi.qa,Ui.N=Hi.ra+hd,Ui.ea=Hi.Ha,Ui.W=Hi.Ia+hd):(Ma-=Ga,Ui.y=ts,Ui.O=ci,Ui.f=os,Ui.N=Xr,Ui.ea=Bl,Ui.W=Pl),il||(kl-=Ga),kl>Ui.o&&(kl=Ui.o),Ui.F=null,Ui.J=null,Hi.Fa!=null&&0<Hi.Fa.length&&Ma<kl&&(Ui.J=FA(Hi,Ui,Ma,kl-Ma),Ui.F=Hi.mb,Ui.F==null&&Ui.F.length==0)){Kr=Ba(Hi,3,"Could not decode alpha data.");break t}Ma<Ui.j&&(Ga=Ui.j-Ma,Ma=Ui.j,wt(!(1&Ga)),Ui.O+=Hi.R*Ga,Ui.N+=Hi.B*(Ga>>1),Ui.W+=Hi.B*(Ga>>1),Ui.F!=null&&(Ui.J+=Ui.width*Ga)),Ma<kl&&(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=kl-Ma,Kr=Ui.put(Ui))}Ir+1!=Hi.Ic||il||(Ht(Hi.sa,Hi.ta-lo,ts,ci+16*Hi.R,lo),Ht(Hi.qa,Hi.ra-as,os,Xr+8*Hi.B,as),Ht(Hi.Ha,Hi.Ia-as,Bl,Pl+8*Hi.B,as))}if(!Kr)return Ba(Ni,6,"Output aborted.")}return 1}(St,Qt)),Qt.bc!=null&&Qt.bc(Qt),de&=1}return de?(St.cb=0,de):0}function Ih(St,Qt,de,Ee,on){on=St[Qt+de+32*Ee]+(on>>3),St[Qt+de+32*Ee]=-256&on?0>on?0:255:on}function _n(St,Qt,de,Ee,on,cn){Ih(St,Qt,0,de,Ee+on),Ih(St,Qt,1,de,Ee+cn),Ih(St,Qt,2,de,Ee-cn),Ih(St,Qt,3,de,Ee-on)}function Ru(St){return(20091*St>>16)+St}function kh(St,Qt,de,Ee){var on,cn=0,An=Yt(16);for(on=0;4>on;++on){var xn=St[Qt+0]+St[Qt+8],In=St[Qt+0]-St[Qt+8],zn=(35468*St[Qt+4]>>16)-Ru(St[Qt+12]),Ai=Ru(St[Qt+4])+(35468*St[Qt+12]>>16);An[cn+0]=xn+Ai,An[cn+1]=In+zn,An[cn+2]=In-zn,An[cn+3]=xn-Ai,cn+=4,Qt++}for(on=cn=0;4>on;++on)xn=(St=An[cn+0]+4)+An[cn+8],In=St-An[cn+8],zn=(35468*An[cn+4]>>16)-Ru(An[cn+12]),Ih(de,Ee,0,0,xn+(Ai=Ru(An[cn+4])+(35468*An[cn+12]>>16))),Ih(de,Ee,1,0,In+zn),Ih(de,Ee,2,0,In-zn),Ih(de,Ee,3,0,xn-Ai),cn++,Ee+=32}function lA(St,Qt,de,Ee){var on=St[Qt+0]+4,cn=35468*St[Qt+4]>>16,An=Ru(St[Qt+4]),xn=35468*St[Qt+1]>>16;_n(de,Ee,0,on+An,St=Ru(St[Qt+1]),xn),_n(de,Ee,1,on+cn,St,xn),_n(de,Ee,2,on-cn,St,xn),_n(de,Ee,3,on-An,St,xn)}function nd(St,Qt,de,Ee,on){kh(St,Qt,de,Ee),on&&kh(St,Qt+16,de,Ee+4)}function gc(St,Qt,de,Ee){ri(St,Qt+0,de,Ee,1),ri(St,Qt+32,de,Ee+128,1)}function xd(St,Qt,de,Ee){var on;for(St=St[Qt+0]+4,on=0;4>on;++on)for(Qt=0;4>Qt;++Qt)Ih(de,Ee,Qt,on,St)}function SA(St,Qt,de,Ee){St[Qt+0]&&bi(St,Qt+0,de,Ee),St[Qt+16]&&bi(St,Qt+16,de,Ee+4),St[Qt+32]&&bi(St,Qt+32,de,Ee+128),St[Qt+48]&&bi(St,Qt+48,de,Ee+128+4)}function Lu(St,Qt,de,Ee){var on,cn=Yt(16);for(on=0;4>on;++on){var An=St[Qt+0+on]+St[Qt+12+on],xn=St[Qt+4+on]+St[Qt+8+on],In=St[Qt+4+on]-St[Qt+8+on],zn=St[Qt+0+on]-St[Qt+12+on];cn[0+on]=An+xn,cn[8+on]=An-xn,cn[4+on]=zn+In,cn[12+on]=zn-In}for(on=0;4>on;++on)An=(St=cn[0+4*on]+3)+cn[3+4*on],xn=cn[1+4*on]+cn[2+4*on],In=cn[1+4*on]-cn[2+4*on],zn=St-cn[3+4*on],de[Ee+0]=An+xn>>3,de[Ee+16]=zn+In>>3,de[Ee+32]=An-xn>>3,de[Ee+48]=zn-In>>3,Ee+=64}function jc(St,Qt,de){var Ee,on=Qt-32,cn=_s,An=255-St[on-1];for(Ee=0;Ee<de;++Ee){var xn,In=cn,zn=An+St[Qt-1];for(xn=0;xn<de;++xn)St[Qt+xn]=In[zn+St[on+xn]];Qt+=32}}function Kd(St,Qt){jc(St,Qt,4)}function id(St,Qt){jc(St,Qt,8)}function CA(St,Qt){jc(St,Qt,16)}function Uc(St,Qt){var de;for(de=0;16>de;++de)Ht(St,Qt+32*de,St,Qt-32,16)}function Sd(St,Qt){var de;for(de=16;0<de;--de)ie(St,Qt,St[Qt-1],16),Qt+=32}function Yu(St,Qt,de){var Ee;for(Ee=0;16>Ee;++Ee)ie(Qt,de+32*Ee,St,16)}function sh(St,Qt){var de,Ee=16;for(de=0;16>de;++de)Ee+=St[Qt-1+32*de]+St[Qt+de-32];Yu(Ee>>5,St,Qt)}function Wu(St,Qt){var de,Ee=8;for(de=0;16>de;++de)Ee+=St[Qt-1+32*de];Yu(Ee>>4,St,Qt)}function BA(St,Qt){var de,Ee=8;for(de=0;16>de;++de)Ee+=St[Qt+de-32];Yu(Ee>>4,St,Qt)}function Kh(St,Qt){Yu(128,St,Qt)}function na(St,Qt,de){return St+2*Qt+de+2>>2}function Cd(St,Qt){var de,Ee=Qt-32;for(Ee=new Uint8Array([na(St[Ee-1],St[Ee+0],St[Ee+1]),na(St[Ee+0],St[Ee+1],St[Ee+2]),na(St[Ee+1],St[Ee+2],St[Ee+3]),na(St[Ee+2],St[Ee+3],St[Ee+4])]),de=0;4>de;++de)Ht(St,Qt+32*de,Ee,0,Ee.length)}function rd(St,Qt){var de=St[Qt-1],Ee=St[Qt-1+32],on=St[Qt-1+64],cn=St[Qt-1+96];Xi(St,Qt+0,16843009*na(St[Qt-1-32],de,Ee)),Xi(St,Qt+32,16843009*na(de,Ee,on)),Xi(St,Qt+64,16843009*na(Ee,on,cn)),Xi(St,Qt+96,16843009*na(on,cn,cn))}function mu(St,Qt){var de,Ee=4;for(de=0;4>de;++de)Ee+=St[Qt+de-32]+St[Qt-1+32*de];for(Ee>>=3,de=0;4>de;++de)ie(St,Qt+32*de,Ee,4)}function Gd(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],on=St[Qt-1+64],cn=St[Qt-1-32],An=St[Qt+0-32],xn=St[Qt+1-32],In=St[Qt+2-32],zn=St[Qt+3-32];St[Qt+0+96]=na(Ee,on,St[Qt-1+96]),St[Qt+1+96]=St[Qt+0+64]=na(de,Ee,on),St[Qt+2+96]=St[Qt+1+64]=St[Qt+0+32]=na(cn,de,Ee),St[Qt+3+96]=St[Qt+2+64]=St[Qt+1+32]=St[Qt+0+0]=na(An,cn,de),St[Qt+3+64]=St[Qt+2+32]=St[Qt+1+0]=na(xn,An,cn),St[Qt+3+32]=St[Qt+2+0]=na(In,xn,An),St[Qt+3+0]=na(zn,In,xn)}function Wd(St,Qt){var de=St[Qt+1-32],Ee=St[Qt+2-32],on=St[Qt+3-32],cn=St[Qt+4-32],An=St[Qt+5-32],xn=St[Qt+6-32],In=St[Qt+7-32];St[Qt+0+0]=na(St[Qt+0-32],de,Ee),St[Qt+1+0]=St[Qt+0+32]=na(de,Ee,on),St[Qt+2+0]=St[Qt+1+32]=St[Qt+0+64]=na(Ee,on,cn),St[Qt+3+0]=St[Qt+2+32]=St[Qt+1+64]=St[Qt+0+96]=na(on,cn,An),St[Qt+3+32]=St[Qt+2+64]=St[Qt+1+96]=na(cn,An,xn),St[Qt+3+64]=St[Qt+2+96]=na(An,xn,In),St[Qt+3+96]=na(xn,In,In)}function Ju(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],on=St[Qt-1+64],cn=St[Qt-1-32],An=St[Qt+0-32],xn=St[Qt+1-32],In=St[Qt+2-32],zn=St[Qt+3-32];St[Qt+0+0]=St[Qt+1+64]=cn+An+1>>1,St[Qt+1+0]=St[Qt+2+64]=An+xn+1>>1,St[Qt+2+0]=St[Qt+3+64]=xn+In+1>>1,St[Qt+3+0]=In+zn+1>>1,St[Qt+0+96]=na(on,Ee,de),St[Qt+0+64]=na(Ee,de,cn),St[Qt+0+32]=St[Qt+1+96]=na(de,cn,An),St[Qt+1+32]=St[Qt+2+96]=na(cn,An,xn),St[Qt+2+32]=St[Qt+3+96]=na(An,xn,In),St[Qt+3+32]=na(xn,In,zn)}function Rc(St,Qt){var de=St[Qt+0-32],Ee=St[Qt+1-32],on=St[Qt+2-32],cn=St[Qt+3-32],An=St[Qt+4-32],xn=St[Qt+5-32],In=St[Qt+6-32],zn=St[Qt+7-32];St[Qt+0+0]=de+Ee+1>>1,St[Qt+1+0]=St[Qt+0+64]=Ee+on+1>>1,St[Qt+2+0]=St[Qt+1+64]=on+cn+1>>1,St[Qt+3+0]=St[Qt+2+64]=cn+An+1>>1,St[Qt+0+32]=na(de,Ee,on),St[Qt+1+32]=St[Qt+0+96]=na(Ee,on,cn),St[Qt+2+32]=St[Qt+1+96]=na(on,cn,An),St[Qt+3+32]=St[Qt+2+96]=na(cn,An,xn),St[Qt+3+64]=na(An,xn,In),St[Qt+3+96]=na(xn,In,zn)}function Bd(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],on=St[Qt-1+64],cn=St[Qt-1+96];St[Qt+0+0]=de+Ee+1>>1,St[Qt+2+0]=St[Qt+0+32]=Ee+on+1>>1,St[Qt+2+32]=St[Qt+0+64]=on+cn+1>>1,St[Qt+1+0]=na(de,Ee,on),St[Qt+3+0]=St[Qt+1+32]=na(Ee,on,cn),St[Qt+3+32]=St[Qt+1+64]=na(on,cn,cn),St[Qt+3+64]=St[Qt+2+64]=St[Qt+0+96]=St[Qt+1+96]=St[Qt+2+96]=St[Qt+3+96]=cn}function Vd(St,Qt){var de=St[Qt-1+0],Ee=St[Qt-1+32],on=St[Qt-1+64],cn=St[Qt-1+96],An=St[Qt-1-32],xn=St[Qt+0-32],In=St[Qt+1-32],zn=St[Qt+2-32];St[Qt+0+0]=St[Qt+2+32]=de+An+1>>1,St[Qt+0+32]=St[Qt+2+64]=Ee+de+1>>1,St[Qt+0+64]=St[Qt+2+96]=on+Ee+1>>1,St[Qt+0+96]=cn+on+1>>1,St[Qt+3+0]=na(xn,In,zn),St[Qt+2+0]=na(An,xn,In),St[Qt+1+0]=St[Qt+3+32]=na(de,An,xn),St[Qt+1+32]=St[Qt+3+64]=na(Ee,de,An),St[Qt+1+64]=St[Qt+3+96]=na(on,Ee,de),St[Qt+1+96]=na(cn,on,Ee)}function uu(St,Qt){var de;for(de=0;8>de;++de)Ht(St,Qt+32*de,St,Qt-32,8)}function vu(St,Qt){var de;for(de=0;8>de;++de)ie(St,Qt,St[Qt-1],8),Qt+=32}function _c(St,Qt,de){var Ee;for(Ee=0;8>Ee;++Ee)ie(Qt,de+32*Ee,St,8)}function Ul(St,Qt){var de,Ee=8;for(de=0;8>de;++de)Ee+=St[Qt+de-32]+St[Qt-1+32*de];_c(Ee>>4,St,Qt)}function Oa(St,Qt){var de,Ee=4;for(de=0;8>de;++de)Ee+=St[Qt+de-32];_c(Ee>>3,St,Qt)}function $a(St,Qt){var de,Ee=4;for(de=0;8>de;++de)Ee+=St[Qt-1+32*de];_c(Ee>>3,St,Qt)}function Mu(St,Qt){_c(128,St,Qt)}function Ah(St,Qt,de){var Ee=St[Qt-de],on=St[Qt+0],cn=3*(on-Ee)+lh[1020+St[Qt-2*de]-St[Qt+de]],An=Da[112+(cn+4>>3)];St[Qt-de]=_s[255+Ee+Da[112+(cn+3>>3)]],St[Qt+0]=_s[255+on-An]}function Ph(St,Qt,de,Ee){var on=St[Qt+0],cn=St[Qt+de];return wu[255+St[Qt-2*de]-St[Qt-de]]>Ee||wu[255+cn-on]>Ee}function Zd(St,Qt,de,Ee){return 4*wu[255+St[Qt-de]-St[Qt+0]]+wu[255+St[Qt-2*de]-St[Qt+de]]<=Ee}function Bc(St,Qt,de,Ee,on){var cn=St[Qt-3*de],An=St[Qt-2*de],xn=St[Qt-de],In=St[Qt+0],zn=St[Qt+de],Ai=St[Qt+2*de],$i=St[Qt+3*de];return 4*wu[255+xn-In]+wu[255+An-zn]>Ee?0:wu[255+St[Qt-4*de]-cn]<=on&&wu[255+cn-An]<=on&&wu[255+An-xn]<=on&&wu[255+$i-Ai]<=on&&wu[255+Ai-zn]<=on&&wu[255+zn-In]<=on}function Pd(St,Qt,de,Ee){var on=2*Ee+1;for(Ee=0;16>Ee;++Ee)Zd(St,Qt+Ee,de,on)&&Ah(St,Qt+Ee,de)}function Vu(St,Qt,de,Ee){var on=2*Ee+1;for(Ee=0;16>Ee;++Ee)Zd(St,Qt+Ee*de,1,on)&&Ah(St,Qt+Ee*de,1)}function yh(St,Qt,de,Ee){var on;for(on=3;0<on;--on)Pd(St,Qt+=4*de,de,Ee)}function PA(St,Qt,de,Ee){var on;for(on=3;0<on;--on)Vu(St,Qt+=4,de,Ee)}function Hc(St,Qt,de,Ee,on,cn,An,xn){for(cn=2*cn+1;0<on--;){if(Bc(St,Qt,de,cn,An))if(Ph(St,Qt,de,xn))Ah(St,Qt,de);else{var In=St,zn=Qt,Ai=de,$i=In[zn-2*Ai],Yi=In[zn-Ai],Ni=In[zn+0],Gr=In[zn+Ai],Ir=In[zn+2*Ai],Hi=27*(Kr=lh[1020+3*(Ni-Yi)+lh[1020+$i-Gr]])+63>>7,Ui=18*Kr+63>>7,Kr=9*Kr+63>>7;In[zn-3*Ai]=_s[255+In[zn-3*Ai]+Kr],In[zn-2*Ai]=_s[255+$i+Ui],In[zn-Ai]=_s[255+Yi+Hi],In[zn+0]=_s[255+Ni-Hi],In[zn+Ai]=_s[255+Gr-Ui],In[zn+2*Ai]=_s[255+Ir-Kr]}Qt+=Ee}}function oc(St,Qt,de,Ee,on,cn,An,xn){for(cn=2*cn+1;0<on--;){if(Bc(St,Qt,de,cn,An))if(Ph(St,Qt,de,xn))Ah(St,Qt,de);else{var In=St,zn=Qt,Ai=de,$i=In[zn-Ai],Yi=In[zn+0],Ni=In[zn+Ai],Gr=Da[112+((Ir=3*(Yi-$i))+4>>3)],Ir=Da[112+(Ir+3>>3)],Hi=Gr+1>>1;In[zn-2*Ai]=_s[255+In[zn-2*Ai]+Hi],In[zn-Ai]=_s[255+$i+Ir],In[zn+0]=_s[255+Yi-Gr],In[zn+Ai]=_s[255+Ni-Hi]}Qt+=Ee}}function Qc(St,Qt,de,Ee,on,cn){Hc(St,Qt,de,1,16,Ee,on,cn)}function od(St,Qt,de,Ee,on,cn){Hc(St,Qt,1,de,16,Ee,on,cn)}function lf(St,Qt,de,Ee,on,cn){var An;for(An=3;0<An;--An)oc(St,Qt+=4*de,de,1,16,Ee,on,cn)}function uA(St,Qt,de,Ee,on,cn){var An;for(An=3;0<An;--An)oc(St,Qt+=4,1,de,16,Ee,on,cn)}function Pc(St,Qt,de,Ee,on,cn,An,xn){Hc(St,Qt,on,1,8,cn,An,xn),Hc(de,Ee,on,1,8,cn,An,xn)}function KA(St,Qt,de,Ee,on,cn,An,xn){Hc(St,Qt,1,on,8,cn,An,xn),Hc(de,Ee,1,on,8,cn,An,xn)}function bd(St,Qt,de,Ee,on,cn,An,xn){oc(St,Qt+4*on,on,1,8,cn,An,xn),oc(de,Ee+4*on,on,1,8,cn,An,xn)}function zc(St,Qt,de,Ee,on,cn,An,xn){oc(St,Qt+4,1,on,8,cn,An,xn),oc(de,Ee+4,1,on,8,cn,An,xn)}function Kc(){this.ba=new ds,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ts,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 Th(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bA(){this.ua=0,this.Wa=new Xn,this.vb=new Xn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new me,this.yc=new ii}function EA(){this.xb=this.a=0,this.l=new ga,this.ca=new ds,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,Th),this.Oc=0}function cA(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ga,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Xd(St,Qt,de,Ee,on,cn,An){for(St=St==null?0:St[Qt+0],Qt=0;Qt<An;++Qt)on[cn+Qt]=St+de[Ee+Qt]&255,St=on[cn+Qt]}function Ed(St,Qt,de,Ee,on,cn,An){var xn;if(St==null)Xd(null,null,de,Ee,on,cn,An);else for(xn=0;xn<An;++xn)on[cn+xn]=St[Qt+xn]+de[Ee+xn]&255}function $d(St,Qt,de,Ee,on,cn,An){if(St==null)Xd(null,null,de,Ee,on,cn,An);else{var xn,In=St[Qt+0],zn=In,Ai=In;for(xn=0;xn<An;++xn)zn=Ai+(In=St[Qt+xn])-zn,Ai=de[Ee+xn]+(-256&zn?0>zn?0:255:zn)&255,zn=In,on[cn+xn]=Ai}}function FA(St,Qt,de,Ee){var on=Qt.width,cn=Qt.o;if(wt(St!=null&&Qt!=null),0>de||0>=Ee||de+Ee>cn)return null;if(!St.Cc){if(St.ga==null){var An;if(St.ga=new cA,(An=St.ga==null)||(An=Qt.width*Qt.o,wt(St.Gb.length==0),St.Gb=Yt(An),St.Uc=0,St.Gb==null?An=0:(St.mb=St.Gb,St.nb=St.Uc,St.rc=null,An=1),An=!An),!An){An=St.ga;var xn=St.Fa,In=St.P,zn=St.qc,Ai=St.mb,$i=St.nb,Yi=In+1,Ni=zn-1,Gr=An.l;if(wt(xn!=null&&Ai!=null&&Qt!=null),Td[0]=null,Td[1]=Xd,Td[2]=Ed,Td[3]=$d,An.ca=Ai,An.tb=$i,An.c=Qt.width,An.i=Qt.height,wt(0<An.c&&0<An.i),1>=zn)Qt=0;else if(An.$a=xn[In+0]>>0&3,An.Z=xn[In+0]>>2&3,An.Lc=xn[In+0]>>4&3,In=xn[In+0]>>6&3,0>An.$a||1<An.$a||4<=An.Z||1<An.Lc||In)Qt=0;else if(Gr.put=Ql,Gr.ac=Us,Gr.bc=Fl,Gr.ma=An,Gr.width=Qt.width,Gr.height=Qt.height,Gr.Da=Qt.Da,Gr.v=Qt.v,Gr.va=Qt.va,Gr.j=Qt.j,Gr.o=Qt.o,An.$a)t:{wt(An.$a==1),Qt=xl();e:for(;;){if(Qt==null){Qt=0;break t}if(wt(An!=null),An.mc=Qt,Qt.c=An.c,Qt.i=An.i,Qt.l=An.l,Qt.l.ma=An,Qt.l.width=An.c,Qt.l.height=An.i,Qt.a=0,nn(Qt.m,xn,Yi,Ni),!pu(An.c,An.i,1,Qt,null)||(Qt.ab==1&&Qt.gc[0].hc==3&&ka(Qt.s)?(An.ic=1,xn=Qt.c*Qt.i,Qt.Ta=null,Qt.Ua=0,Qt.V=Yt(xn),Qt.Ba=0,Qt.V==null?(Qt.a=1,Qt=0):Qt=1):(An.ic=0,Qt=au(Qt,An.c)),!Qt))break e;Qt=1;break t}An.mc=null,Qt=0}else Qt=Ni>=An.c*An.i;An=!Qt}if(An)return null;St.ga.Lc!=1?St.Ga=0:Ee=cn-de}wt(St.ga!=null),wt(de+Ee<=cn);t:{if(Qt=(xn=St.ga).c,cn=xn.l.o,xn.$a==0){if(Yi=St.rc,Ni=St.Vc,Gr=St.Fa,In=St.P+1+de*Qt,zn=St.mb,Ai=St.nb+de*Qt,wt(In<=St.P+St.qc),xn.Z!=0)for(wt(Td[xn.Z]!=null),An=0;An<Ee;++An)Td[xn.Z](Yi,Ni,Gr,In,zn,Ai,Qt),Yi=zn,Ni=Ai,Ai+=Qt,In+=Qt;else for(An=0;An<Ee;++An)Ht(zn,Ai,Gr,In,Qt),Yi=zn,Ni=Ai,Ai+=Qt,In+=Qt;St.rc=Yi,St.Vc=Ni}else{if(wt(xn.mc!=null),Qt=de+Ee,wt((An=xn.mc)!=null),wt(Qt<=An.i),An.C>=Qt)Qt=1;else if(xn.ic||ur(),xn.ic){xn=An.V,Yi=An.Ba,Ni=An.c;var Ir=An.i,Hi=(Gr=1,In=An.$/Ni,zn=An.$%Ni,Ai=An.m,$i=An.s,An.$),Ui=Ni*Ir,Kr=Ni*Qt,lo=$i.wc,Xr=Hi<Kr?Kl($i,zn,In):null;wt(Hi<=Ui),wt(Qt<=Ir),wt(ka($i));e:for(;;){for(;!Ai.h&&Hi<Kr;){if(zn&lo||(Xr=Kl($i,zn,In)),wt(Xr!=null),Zn(Ai),256>(Ir=Ao(Xr.G[0],Xr.H[0],Ai)))xn[Yi+Hi]=Ir,++Hi,++zn>=Ni&&(zn=0,++In<=Qt&&!(In%16)&&al(An,In));else{if(!(280>Ir)){Gr=0;break e}Ir=da(Ir-256,Ai);var as,ts=Ao(Xr.G[4],Xr.H[4],Ai);if(Zn(Ai),!(Hi>=(ts=Dl(Ni,ts=da(ts,Ai)))&&Ui-Hi>=Ir)){Gr=0;break e}for(as=0;as<Ir;++as)xn[Yi+Hi+as]=xn[Yi+Hi+as-ts];for(Hi+=Ir,zn+=Ir;zn>=Ni;)zn-=Ni,++In<=Qt&&!(In%16)&&al(An,In);Hi<Kr&&zn&lo&&(Xr=Kl($i,zn,In))}wt(Ai.h==mn(Ai))}al(An,In>Qt?Qt:In);break e}!Gr||Ai.h&&Hi<Ui?(Gr=0,An.a=Ai.h?5:3):An.$=Hi,Qt=Gr}else Qt=Rs(An,An.V,An.Ba,An.c,An.i,Qt,Uu);if(!Qt){Ee=0;break t}}de+Ee>=cn&&(St.Cc=1),Ee=1}if(!Ee)return null;if(St.Cc&&((Ee=St.ga)!=null&&(Ee.mc=null),St.ga=null,0<St.Ga))return alert("todo:WebPDequantizeLevels"),null}return St.nb+de*on}function fe(St,Qt,de,Ee,on,cn){for(;0<on--;){var An,xn=St,In=Qt+(de?1:0),zn=St,Ai=Qt+(de?0:3);for(An=0;An<Ee;++An){var $i=zn[Ai+4*An];$i!=255&&($i*=32897,xn[In+4*An+0]=xn[In+4*An+0]*$i>>23,xn[In+4*An+1]=xn[In+4*An+1]*$i>>23,xn[In+4*An+2]=xn[In+4*An+2]*$i>>23)}Qt+=cn}}function yn(St,Qt,de,Ee,on){for(;0<Ee--;){var cn;for(cn=0;cn<de;++cn){var An=St[Qt+2*cn+0],xn=15&(zn=St[Qt+2*cn+1]),In=4369*xn,zn=(240&zn|zn>>4)*In>>16;St[Qt+2*cn+0]=(240&An|An>>4)*In>>16&240|(15&An|An<<4)*In>>16>>4&15,St[Qt+2*cn+1]=240&zn|xn}Qt+=on}}function wi(St,Qt,de,Ee,on,cn,An,xn){var In,zn,Ai=255;for(zn=0;zn<on;++zn){for(In=0;In<Ee;++In){var $i=St[Qt+In];cn[An+4*In]=$i,Ai&=$i}Qt+=de,An+=xn}return Ai!=255}function _i(St,Qt,de,Ee,on){var cn;for(cn=0;cn<on;++cn)de[Ee+cn]=St[Qt+cn]>>8}function ur(){yu=fe,La=yn,Sa=wi,vl=_i}function jr(St,Qt,de){Ti[St]=function(Ee,on,cn,An,xn,In,zn,Ai,$i,Yi,Ni,Gr,Ir,Hi,Ui,Kr,lo){var Xr,as=lo-1>>1,ts=xn[In+0]|zn[Ai+0]<<16,ci=$i[Yi+0]|Ni[Gr+0]<<16;wt(Ee!=null);var os=3*ts+ci+131074>>2;for(Qt(Ee[on+0],255&os,os>>16,Ir,Hi),cn!=null&&(os=3*ci+ts+131074>>2,Qt(cn[An+0],255&os,os>>16,Ui,Kr)),Xr=1;Xr<=as;++Xr){var Bl=xn[In+Xr]|zn[Ai+Xr]<<16,Pl=$i[Yi+Xr]|Ni[Gr+Xr]<<16,il=ts+Bl+ci+Pl+524296,Ga=il+2*(Bl+ci)>>3;os=Ga+ts>>1,ts=(il=il+2*(ts+Pl)>>3)+Bl>>1,Qt(Ee[on+2*Xr-1],255&os,os>>16,Ir,Hi+(2*Xr-1)*de),Qt(Ee[on+2*Xr-0],255&ts,ts>>16,Ir,Hi+(2*Xr-0)*de),cn!=null&&(os=il+ci>>1,ts=Ga+Pl>>1,Qt(cn[An+2*Xr-1],255&os,os>>16,Ui,Kr+(2*Xr-1)*de),Qt(cn[An+2*Xr+0],255&ts,ts>>16,Ui,Kr+(2*Xr+0)*de)),ts=Bl,ci=Pl}1&lo||(os=3*ts+ci+131074>>2,Qt(Ee[on+lo-1],255&os,os>>16,Ir,Hi+(lo-1)*de),cn!=null&&(os=3*ci+ts+131074>>2,Qt(cn[An+lo-1],255&os,os>>16,Ui,Kr+(lo-1)*de)))}}function Co(){Tu[hu]=XA,Tu[ad]=xf,Tu[lc]=lm,Tu[uh]=js,Tu[wh]=Kg,Tu[Il]=Gg,Tu[th]=Wg,Tu[Wc]=xf,Tu[Jd]=js,Tu[zf]=Kg,Tu[Eh]=Gg}function ps(St){return St&~Vg?0>St?0:255:St>>Cg}function Ys(St,Qt){return ps((19077*St>>8)+(26149*Qt>>8)-14234)}function Pa(St,Qt,de){return ps((19077*St>>8)-(6419*Qt>>8)-(13320*de>>8)+8708)}function ba(St,Qt){return ps((19077*St>>8)+(33050*Qt>>8)-17685)}function ms(St,Qt,de,Ee,on){Ee[on+0]=Ys(St,de),Ee[on+1]=Pa(St,Qt,de),Ee[on+2]=ba(St,Qt)}function nu(St,Qt,de,Ee,on){Ee[on+0]=ba(St,Qt),Ee[on+1]=Pa(St,Qt,de),Ee[on+2]=Ys(St,de)}function iu(St,Qt,de,Ee,on){var cn=Pa(St,Qt,de);Qt=cn<<3&224|ba(St,Qt)>>3,Ee[on+0]=248&Ys(St,de)|cn>>5,Ee[on+1]=Qt}function Ka(St,Qt,de,Ee,on){var cn=240&ba(St,Qt)|15;Ee[on+0]=240&Ys(St,de)|Pa(St,Qt,de)>>4,Ee[on+1]=cn}function zl(St,Qt,de,Ee,on){Ee[on+0]=255,ms(St,Qt,de,Ee,on+1)}function Nu(St,Qt,de,Ee,on){nu(St,Qt,de,Ee,on),Ee[on+3]=255}function sc(St,Qt,de,Ee,on){ms(St,Qt,de,Ee,on),Ee[on+3]=255}function bh(St,Qt){return 0>St?0:St>Qt?Qt:St}function ac(St,Qt,de){Ti[St]=function(Ee,on,cn,An,xn,In,zn,Ai,$i){for(var Yi=Ai+(-2&$i)*de;Ai!=Yi;)Qt(Ee[on+0],cn[An+0],xn[In+0],zn,Ai),Qt(Ee[on+1],cn[An+0],xn[In+0],zn,Ai+de),on+=2,++An,++In,Ai+=2*de;1&$i&&Qt(Ee[on+0],cn[An+0],xn[In+0],zn,Ai)}}function LA(St,Qt,de){return de==0?St==0?Qt==0?6:5:Qt==0?4:0:de}function dA(St,Qt,de,Ee,on){switch(St>>>30){case 3:ri(Qt,de,Ee,on,0);break;case 2:pn(Qt,de,Ee,on);break;case 1:bi(Qt,de,Ee,on)}}function MA(St,Qt){var de,Ee,on=Qt.M,cn=Qt.Nb,An=St.oc,xn=St.pc+40,In=St.oc,zn=St.pc+584,Ai=St.oc,$i=St.pc+600;for(de=0;16>de;++de)An[xn+32*de-1]=129;for(de=0;8>de;++de)In[zn+32*de-1]=129,Ai[$i+32*de-1]=129;for(0<on?An[xn-1-32]=In[zn-1-32]=Ai[$i-1-32]=129:(ie(An,xn-32-1,127,21),ie(In,zn-32-1,127,9),ie(Ai,$i-32-1,127,9)),Ee=0;Ee<St.za;++Ee){var Yi=Qt.ya[Qt.aa+Ee];if(0<Ee){for(de=-1;16>de;++de)Ht(An,xn+32*de-4,An,xn+32*de+12,4);for(de=-1;8>de;++de)Ht(In,zn+32*de-4,In,zn+32*de+4,4),Ht(Ai,$i+32*de-4,Ai,$i+32*de+4,4)}var Ni=St.Gd,Gr=St.Hd+Ee,Ir=Yi.ad,Hi=Yi.Hc;if(0<on&&(Ht(An,xn-32,Ni[Gr].y,0,16),Ht(In,zn-32,Ni[Gr].f,0,8),Ht(Ai,$i-32,Ni[Gr].ea,0,8)),Yi.Za){var Ui=An,Kr=xn-32+16;for(0<on&&(Ee>=St.za-1?ie(Ui,Kr,Ni[Gr].y[15],4):Ht(Ui,Kr,Ni[Gr+1].y,0,4)),de=0;4>de;de++)Ui[Kr+128+de]=Ui[Kr+256+de]=Ui[Kr+384+de]=Ui[Kr+0+de];for(de=0;16>de;++de,Hi<<=2)Ui=An,Kr=xn+qn[de],Ec[Yi.Ob[de]](Ui,Kr),dA(Hi,Ir,16*+de,Ui,Kr)}else if(Ui=LA(Ee,on,Yi.Ob[0]),bc[Ui](An,xn),Hi!=0)for(de=0;16>de;++de,Hi<<=2)dA(Hi,Ir,16*+de,An,xn+qn[de]);for(de=Yi.Gc,Ui=LA(Ee,on,Yi.Dd),Id[Ui](In,zn),Id[Ui](Ai,$i),Hi=Ir,Ui=In,Kr=zn,255&(Yi=de>>0)&&(170&Yi?ki(Hi,256,Ui,Kr):yr(Hi,256,Ui,Kr)),Yi=Ai,Hi=$i,255&(de>>=8)&&(170&de?ki(Ir,320,Yi,Hi):yr(Ir,320,Yi,Hi)),on<St.Ub-1&&(Ht(Ni[Gr].y,0,An,xn+480,16),Ht(Ni[Gr].f,0,In,zn+224,8),Ht(Ni[Gr].ea,0,Ai,$i+224,8)),de=8*cn*St.B,Ni=St.sa,Gr=St.ta+16*Ee+16*cn*St.R,Ir=St.qa,Yi=St.ra+8*Ee+de,Hi=St.Ha,Ui=St.Ia+8*Ee+de,de=0;16>de;++de)Ht(Ni,Gr+de*St.R,An,xn+32*de,16);for(de=0;8>de;++de)Ht(Ir,Yi+de*St.B,In,zn+32*de,8),Ht(Hi,Ui+de*St.B,Ai,$i+32*de,8)}}function pc(St,Qt,de,Ee,on,cn,An,xn,In){var zn=[0],Ai=[0],$i=0,Yi=In!=null?In.kd:0,Ni=In!=null?In:new hA;if(St==null||12>de)return 7;Ni.data=St,Ni.w=Qt,Ni.ha=de,Qt=[Qt],de=[de],Ni.gb=[Ni.gb];t:{var Gr=Qt,Ir=de,Hi=Ni.gb;if(wt(St!=null),wt(Ir!=null),wt(Hi!=null),Hi[0]=0,12<=Ir[0]&&!bt(St,Gr[0],"RIFF")){if(bt(St,Gr[0]+8,"WEBP")){Hi=3;break t}var Ui=br(St,Gr[0]+4);if(12>Ui||4294967286<Ui){Hi=3;break t}if(Yi&&Ui>Ir[0]-8){Hi=7;break t}Hi[0]=Ui,Gr[0]+=12,Ir[0]-=12}Hi=0}if(Hi!=0)return Hi;for(Ui=0<Ni.gb[0],de=de[0];;){t:{var Kr=St;Ir=Qt,Hi=de;var lo=zn,Xr=Ai,as=Gr=[0];if((os=$i=[$i])[0]=0,8>Hi[0])Hi=7;else{if(!bt(Kr,Ir[0],"VP8X")){if(br(Kr,Ir[0]+4)!=10){Hi=3;break t}if(18>Hi[0]){Hi=7;break t}var ts=br(Kr,Ir[0]+8),ci=1+Ar(Kr,Ir[0]+12);if(2147483648<=ci*(Kr=1+Ar(Kr,Ir[0]+15))){Hi=3;break t}as!=null&&(as[0]=ts),lo!=null&&(lo[0]=ci),Xr!=null&&(Xr[0]=Kr),Ir[0]+=18,Hi[0]-=18,os[0]=1}Hi=0}}if($i=$i[0],Gr=Gr[0],Hi!=0)return Hi;if(Ir=!!(2&Gr),!Ui&&$i)return 3;if(cn!=null&&(cn[0]=!!(16&Gr)),An!=null&&(An[0]=Ir),xn!=null&&(xn[0]=0),An=zn[0],Gr=Ai[0],$i&&Ir&&In==null){Hi=0;break}if(4>de){Hi=7;break}if(Ui&&$i||!Ui&&!$i&&!bt(St,Qt[0],"ALPH")){de=[de],Ni.na=[Ni.na],Ni.P=[Ni.P],Ni.Sa=[Ni.Sa];t:{ts=St,Hi=Qt,Ui=de;var os=Ni.gb;lo=Ni.na,Xr=Ni.P,as=Ni.Sa,ci=22,wt(ts!=null),wt(Ui!=null),Kr=Hi[0];var Bl=Ui[0];for(wt(lo!=null),wt(as!=null),lo[0]=null,Xr[0]=null,as[0]=0;;){if(Hi[0]=Kr,Ui[0]=Bl,8>Bl){Hi=7;break t}var Pl=br(ts,Kr+4);if(4294967286<Pl){Hi=3;break t}var il=8+Pl+1&-2;if(ci+=il,0<os&&ci>os){Hi=3;break t}if(!bt(ts,Kr,"VP8 ")||!bt(ts,Kr,"VP8L")){Hi=0;break t}if(Bl[0]<il){Hi=7;break t}bt(ts,Kr,"ALPH")||(lo[0]=ts,Xr[0]=Kr+8,as[0]=Pl),Kr+=il,Bl-=il}}if(de=de[0],Ni.na=Ni.na[0],Ni.P=Ni.P[0],Ni.Sa=Ni.Sa[0],Hi!=0)break}de=[de],Ni.Ja=[Ni.Ja],Ni.xa=[Ni.xa];t:if(os=St,Hi=Qt,Ui=de,lo=Ni.gb[0],Xr=Ni.Ja,as=Ni.xa,ts=Hi[0],Kr=!bt(os,ts,"VP8 "),ci=!bt(os,ts,"VP8L"),wt(os!=null),wt(Ui!=null),wt(Xr!=null),wt(as!=null),8>Ui[0])Hi=7;else{if(Kr||ci){if(os=br(os,ts+4),12<=lo&&os>lo-12){Hi=3;break t}if(Yi&&os>Ui[0]-8){Hi=7;break t}Xr[0]=os,Hi[0]+=8,Ui[0]-=8,as[0]=ci}else as[0]=5<=Ui[0]&&os[ts+0]==47&&!(os[ts+4]>>5),Xr[0]=Ui[0];Hi=0}if(de=de[0],Ni.Ja=Ni.Ja[0],Ni.xa=Ni.xa[0],Qt=Qt[0],Hi!=0)break;if(4294967286<Ni.Ja)return 3;if(xn==null||Ir||(xn[0]=Ni.xa?2:1),An=[An],Gr=[Gr],Ni.xa){if(5>de){Hi=7;break}xn=An,Yi=Gr,Ir=cn,St==null||5>de?St=0:5<=de&&St[Qt+0]==47&&!(St[Qt+4]>>5)?(Ui=[0],os=[0],lo=[0],nn(Xr=new Qe,St,Qt,de),Es(Xr,Ui,os,lo)?(xn!=null&&(xn[0]=Ui[0]),Yi!=null&&(Yi[0]=os[0]),Ir!=null&&(Ir[0]=lo[0]),St=1):St=0):St=0}else{if(10>de){Hi=7;break}xn=Gr,St==null||10>de||!pl(St,Qt+3,de-3)?St=0:(Yi=St[Qt+0]|St[Qt+1]<<8|St[Qt+2]<<16,Ir=16383&(St[Qt+7]<<8|St[Qt+6]),St=16383&(St[Qt+9]<<8|St[Qt+8]),1&Yi||3<(Yi>>1&7)||!(Yi>>4&1)||Yi>>5>=Ni.Ja||!Ir||!St?St=0:(An&&(An[0]=Ir),xn&&(xn[0]=St),St=1))}if(!St||(An=An[0],Gr=Gr[0],$i&&(zn[0]!=An||Ai[0]!=Gr)))return 3;In!=null&&(In[0]=Ni,In.offset=Qt-In.w,wt(4294967286>Qt-In.w),wt(In.offset==In.ha-de));break}return Hi==0||Hi==7&&$i&&In==null?(cn!=null&&(cn[0]|=Ni.na!=null&&0<Ni.na.length),Ee!=null&&(Ee[0]=An),on!=null&&(on[0]=Gr),0):Hi}function Fd(St,Qt,de){var Ee=Qt.width,on=Qt.height,cn=0,An=0,xn=Ee,In=on;if(Qt.Da=St!=null&&0<St.Da,Qt.Da&&(xn=St.cd,In=St.bd,cn=St.v,An=St.j,11>de||(cn&=-2,An&=-2),0>cn||0>An||0>=xn||0>=In||cn+xn>Ee||An+In>on))return 0;if(Qt.v=cn,Qt.j=An,Qt.va=cn+xn,Qt.o=An+In,Qt.U=xn,Qt.T=In,Qt.da=St!=null&&0<St.da,Qt.da){if(!Bo(xn,In,de=[St.ib],cn=[St.hb]))return 0;Qt.ib=de[0],Qt.hb=cn[0]}return Qt.ob=St!=null&&St.ob,Qt.Kb=St==null||!St.Sd,Qt.da&&(Qt.ob=Qt.ib<3*Ee/4&&Qt.hb<3*on/4,Qt.Kb=0),1}function Gc(St){if(St==null)return 2;if(11>St.S){var Qt=St.f.RGBA;Qt.fb+=(St.height-1)*Qt.A,Qt.A=-Qt.A}else Qt=St.f.kb,St=St.height,Qt.O+=(St-1)*Qt.fa,Qt.fa=-Qt.fa,Qt.N+=(St-1>>1)*Qt.Ab,Qt.Ab=-Qt.Ab,Qt.W+=(St-1>>1)*Qt.Db,Qt.Db=-Qt.Db,Qt.F!=null&&(Qt.J+=(St-1)*Qt.lb,Qt.lb=-Qt.lb);return 0}function ml(St,Qt,de,Ee){if(Ee==null||0>=St||0>=Qt)return 2;if(de!=null){if(de.Da){var on=de.cd,cn=de.bd,An=-2&de.v,xn=-2&de.j;if(0>An||0>xn||0>=on||0>=cn||An+on>St||xn+cn>Qt)return 2;St=on,Qt=cn}if(de.da){if(!Bo(St,Qt,on=[de.ib],cn=[de.hb]))return 2;St=on[0],Qt=cn[0]}}Ee.width=St,Ee.height=Qt;t:{var In=Ee.width,zn=Ee.height;if(St=Ee.S,0>=In||0>=zn||!(St>=hu&&13>St))St=2;else{if(0>=Ee.Rd&&Ee.sd==null){An=cn=on=Qt=0;var Ai=(xn=In*lr[St])*zn;if(11>St||(cn=(zn+1)/2*(Qt=(In+1)/2),St==12&&(An=(on=In)*zn)),(zn=Yt(Ai+2*cn+An))==null){St=1;break t}Ee.sd=zn,11>St?((In=Ee.f.RGBA).eb=zn,In.fb=0,In.A=xn,In.size=Ai):((In=Ee.f.kb).y=zn,In.O=0,In.fa=xn,In.Fd=Ai,In.f=zn,In.N=0+Ai,In.Ab=Qt,In.Cd=cn,In.ea=zn,In.W=0+Ai+cn,In.Db=Qt,In.Ed=cn,St==12&&(In.F=zn,In.J=0+Ai+2*cn),In.Tc=An,In.lb=on)}if(Qt=1,on=Ee.S,cn=Ee.width,An=Ee.height,on>=hu&&13>on)if(11>on)St=Ee.f.RGBA,Qt&=(xn=Math.abs(St.A))*(An-1)+cn<=St.size,Qt&=xn>=cn*lr[on],Qt&=St.eb!=null;else{St=Ee.f.kb,xn=(cn+1)/2,Ai=(An+1)/2,In=Math.abs(St.fa),zn=Math.abs(St.Ab);var $i=Math.abs(St.Db),Yi=Math.abs(St.lb),Ni=Yi*(An-1)+cn;Qt&=In*(An-1)+cn<=St.Fd,Qt&=zn*(Ai-1)+xn<=St.Cd,Qt=(Qt&=$i*(Ai-1)+xn<=St.Ed)&In>=cn&zn>=xn&$i>=xn,Qt&=St.y!=null,Qt&=St.f!=null,Qt&=St.ea!=null,on==12&&(Qt&=Yi>=cn,Qt&=Ni<=St.Tc,Qt&=St.F!=null)}else Qt=0;St=Qt?0:2}}return St!=0||de!=null&&de.fd&&(St=Gc(Ee)),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],Gl=24,Oh=32,mc=8,qu=[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"),Ti.Predictor0=function(){return 4278190080},Ti.Predictor1=function(St){return St},Ti.Predictor2=function(St,Qt,de){return Qt[de+0]},Ti.Predictor3=function(St,Qt,de){return Qt[de+1]},Ti.Predictor4=function(St,Qt,de){return Qt[de-1]},Ti.Predictor5=function(St,Qt,de){return pr(pr(St,Qt[de+1]),Qt[de+0])},Ti.Predictor6=function(St,Qt,de){return pr(St,Qt[de-1])},Ti.Predictor7=function(St,Qt,de){return pr(St,Qt[de+0])},Ti.Predictor8=function(St,Qt,de){return pr(Qt[de-1],Qt[de+0])},Ti.Predictor9=function(St,Qt,de){return pr(Qt[de+0],Qt[de+1])},Ti.Predictor10=function(St,Qt,de){return pr(pr(St,Qt[de-1]),pr(Qt[de+0],Qt[de+1]))},Ti.Predictor11=function(St,Qt,de){var Ee=Qt[de+0];return 0>=po(Ee>>24&255,St>>24&255,(Qt=Qt[de-1])>>24&255)+po(Ee>>16&255,St>>16&255,Qt>>16&255)+po(Ee>>8&255,St>>8&255,Qt>>8&255)+po(255&Ee,255&St,255&Qt)?Ee:St},Ti.Predictor12=function(St,Qt,de){var Ee=Qt[de+0];return(Wr((St>>24&255)+(Ee>>24&255)-((Qt=Qt[de-1])>>24&255))<<24|Wr((St>>16&255)+(Ee>>16&255)-(Qt>>16&255))<<16|Wr((St>>8&255)+(Ee>>8&255)-(Qt>>8&255))<<8|Wr((255&St)+(255&Ee)-(255&Qt)))>>>0},Ti.Predictor13=function(St,Qt,de){var Ee=Qt[de-1];return(ho((St=pr(St,Qt[de+0]))>>24&255,Ee>>24&255)<<24|ho(St>>16&255,Ee>>16&255)<<16|ho(St>>8&255,Ee>>8&255)<<8|ho(St>>0&255,Ee>>0&255))>>>0};var Wl=Ti.PredictorAdd0;Ti.PredictorAdd1=Ur,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=Ti.PredictorAdd2;is("ColorIndexInverseTransform","MapARGB","32b",function(St){return St>>8&255},function(St){return St}),is("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(St){return St},function(St){return St>>8&255});var Dh,ah=Ti.ColorIndexInverseTransform,sd=Ti.MapARGB,it=Ti.VP8LColorIndexInverseTransformAlpha,st=Ti.MapAlpha,mt=Ti.VP8LPredictorsAdd=[];mt.length=16,(Ti.VP8LPredictors=[]).length=16,(Ti.VP8LPredictorsAdd_C=[]).length=16,(Ti.VP8LPredictors_C=[]).length=16;var pt,Bt,Jt,Se,Ue,Oe,ln,ri,pn,ki,bi,yr,Tr,qr,vo,$o,ko,ss,Ns,To,ea,Cl,ku,cl,yu,La,Sa,vl,yl=Yt(511),Eo=Yt(2041),Ca=Yt(225),Ml=Yt(767),Nl=0,lh=Eo,Da=Ca,_s=Ml,wu=yl,hu=0,ad=1,lc=2,uh=3,wh=4,Il=5,th=6,Wc=7,Jd=8,zf=9,Eh=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],_u=[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],eh=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=[];jr("UpsampleRgbLinePair",ms,3),jr("UpsampleBgrLinePair",nu,3),jr("UpsampleRgbaLinePair",sc,4),jr("UpsampleBgraLinePair",Nu,4),jr("UpsampleArgbLinePair",zl,4),jr("UpsampleRgba4444LinePair",Ka,2),jr("UpsampleRgb565LinePair",iu,2);var XA=Ti.UpsampleRgbLinePair,lm=Ti.UpsampleBgrLinePair,xf=Ti.UpsampleRgbaLinePair,js=Ti.UpsampleBgraLinePair,Kg=Ti.UpsampleArgbLinePair,Gg=Ti.UpsampleRgba4444LinePair,Wg=Ti.UpsampleRgb565LinePair,IA=16,kA=1<<IA-1,Fc=-227,Vf=482,Cg=6,Vg=(256<<Cg)-1,Dt=0,kt=Yt(256),_t=Yt(256),Rt=Yt(256),Be=Yt(256),Ye=Yt(Vf-Fc),Fn=Yt(Vf-Fc);ac("YuvToRgbRow",ms,3),ac("YuvToBgrRow",nu,3),ac("YuvToRgbaRow",sc,4),ac("YuvToBgraRow",Nu,4),ac("YuvToArgbRow",zl,4),ac("YuvToRgba4444Row",Ka,2),ac("YuvToRgb565Row",iu,2);var qn=[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,Qt,de,Ee,on){var cn=ad,An=new Kc,xn=new ds;An.ba=xn,xn.S=cn,xn.width=[xn.width],xn.height=[xn.height];var In=xn.width,zn=xn.height,Ai=new es;if(Ai==null||St==null)var $i=2;else wt(Ai!=null),$i=pc(St,Qt,de,Ai.width,Ai.height,Ai.Pd,Ai.Qd,Ai.format,null);if($i!=0?In=0:(In!=null&&(In[0]=Ai.width[0]),zn!=null&&(zn[0]=Ai.height[0]),In=1),In){xn.width=xn.width[0],xn.height=xn.height[0],Ee!=null&&(Ee[0]=xn.width),on!=null&&(on[0]=xn.height);t:{if(Ee=new ga,(on=new hA).data=St,on.w=Qt,on.ha=de,on.kd=1,Qt=[0],wt(on!=null),((St=pc(on.data,on.w,on.ha,null,null,null,Qt,null,on))==0||St==7)&&Qt[0]&&(St=4),(Qt=St)==0){if(wt(An!=null),Ee.data=on.data,Ee.w=on.w+on.offset,Ee.ha=on.ha-on.offset,Ee.put=Ql,Ee.ac=Us,Ee.bc=Fl,Ee.ma=An,on.xa){if((St=xl())==null){An=1;break t}if(function(Yi,Ni){var Gr=[0],Ir=[0],Hi=[0];e:for(;;){if(Yi==null)return 0;if(Ni==null)return Yi.a=2,0;if(Yi.l=Ni,Yi.a=0,nn(Yi.m,Ni.data,Ni.w,Ni.ha),!Es(Yi.m,Gr,Ir,Hi)){Yi.a=3;break e}if(Yi.xb=kd,Ni.width=Gr[0],Ni.height=Ir[0],!pu(Gr[0],Ir[0],1,Yi,null))break e;return 1}return wt(Yi.a!=0),0}(St,Ee)){if(Ee=(Qt=ml(Ee.width,Ee.height,An.Oa,An.ba))==0){e:{Ee=St;n:for(;;){if(Ee==null){Ee=0;break e}if(wt(Ee.s.yc!=null),wt(Ee.s.Ya!=null),wt(0<Ee.s.Wb),wt((de=Ee.l)!=null),wt((on=de.ma)!=null),Ee.xb!=0){if(Ee.ca=on.ba,Ee.tb=on.tb,wt(Ee.ca!=null),!Fd(on.Oa,de,uh)){Ee.a=2;break n}if(!au(Ee,de.width)||de.da)break n;if((de.da||$s(Ee.ca.S))&&ur(),11>Ee.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ee.ca.f.kb.F!=null&&ur()),Ee.Pb&&0<Ee.s.ua&&Ee.s.vb.X==null&&!io(Ee.s.vb,Ee.s.Wa.Xa)){Ee.a=1;break n}Ee.xb=0}if(!Rs(Ee,Ee.V,Ee.Ba,Ee.c,Ee.i,de.o,ca))break n;on.Dc=Ee.Ma,Ee=1;break e}wt(Ee.a!=0),Ee=0}Ee=!Ee}Ee&&(Qt=St.a)}else Qt=St.a}else{if((St=new Sl)==null){An=1;break t}if(St.Fa=on.na,St.P=on.P,St.qc=on.Sa,pa(St,Ee)){if((Qt=ml(Ee.width,Ee.height,An.Oa,An.ba))==0){if(St.Aa=0,de=An.Oa,wt((on=St)!=null),de!=null){if(0<(In=0>(In=de.Md)?0:100<In?255:255*In/100)){for(zn=Ai=0;4>zn;++zn)12>($i=on.pb[zn]).lc&&($i.ia=In*Ri[0>$i.lc?0:$i.lc]>>3),Ai|=$i.ia;Ai&&(alert("todo:VP8InitRandom"),on.ia=1)}on.Ga=de.Id,100<on.Ga?on.Ga=100:0>on.Ga&&(on.Ga=0)}zh(St,Ee)||(Qt=St.a)}}else Qt=St.a}Qt==0&&An.Oa!=null&&An.Oa.fd&&(Qt=Gc(An.ba))}An=Qt}cn=An!=0?null:11>cn?xn.f.RGBA.eb:xn.f.kb.y}else cn=null;return cn};var lr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function $e(Ti,xr){for(var kr="",$n=0;$n<4;$n++)kr+=String.fromCharCode(Ti[xr++]);return kr}function fn(Ti,xr){return(Ti[xr+0]<<0|Ti[xr+1]<<8|Ti[xr+2]<<16)>>>0}function gn(Ti,xr){return(Ti[xr+0]<<0|Ti[xr+1]<<8|Ti[xr+2]<<16|Ti[xr+3]<<24)>>>0}new be;var Pn=[0],Ke=[0],gi=[],Jn=new be,vi=Et,Rn=function(Ti,xr){var kr={},$n=0,ii=!1,pe=0,me=0;if(kr.frames=[],!function(hn,mn,Qn,Zn){for(var ni=0;ni<Zn;ni++)if(hn[mn+ni]!=Qn.charCodeAt(ni))return!0;return!1}(Ti,xr,"RIFF",4)){var Xe,Je;for(gn(Ti,xr+=4),xr+=8;xr<Ti.length;){var vn=$e(Ti,xr),nn=gn(Ti,xr+=4);xr+=4;var Tn=nn+(1&nn);switch(vn){case"VP8 ":case"VP8L":kr.frames[$n]===void 0&&(kr.frames[$n]={}),(Qe=kr.frames[$n]).src_off=ii?me:xr-8,Qe.src_size=pe+nn+8,$n++,ii&&(ii=!1,pe=0,me=0);break;case"VP8X":(Qe=kr.header={}).feature_flags=Ti[xr];var Un=xr+4;Qe.canvas_width=1+fn(Ti,Un),Un+=3,Qe.canvas_height=1+fn(Ti,Un),Un+=3;break;case"ALPH":ii=!0,pe=Tn+8,me=xr-8;break;case"ANIM":(Qe=kr.header).bgcolor=gn(Ti,xr),Un=xr+4,Qe.loop_count=(Xe=Ti)[(Je=Un)+0]<<0|Xe[Je+1]<<8,Un+=2;break;case"ANMF":var Yn,Qe;(Qe=kr.frames[$n]={}).offset_x=2*fn(Ti,xr),xr+=3,Qe.offset_y=2*fn(Ti,xr),xr+=3,Qe.width=1+fn(Ti,xr),xr+=3,Qe.height=1+fn(Ti,xr),xr+=3,Qe.duration=fn(Ti,xr),xr+=3,Yn=Ti[xr++],Qe.dispose=1&Yn,Qe.blend=Yn>>1&1}vn!="ANMF"&&(xr+=Tn)}return kr}}(vi,0);Rn.response=vi,Rn.rgbaoutput=!0,Rn.dataurl=!1;var di=Rn.header?Rn.header:null,Qi=Rn.frames?Rn.frames:null;if(di){di.loop_counter=di.loop_count,Pn=[di.canvas_height],Ke=[di.canvas_width];for(var rr=0;rr<Qi.length&&Qi[rr].blend!=0;rr++);}var Er=Qi[0],ao=Jn.WebPDecodeRGBA(vi,Er.src_off,Er.src_size,Ke,Pn);Er.rgba=ao,Er.imgwidth=Ke[0],Er.imgheight=Pn[0];for(var gr=0;gr<Ke[0]*Pn[0]*4;gr++)gi[gr]=ao[gr];return this.width=Ke,this.height=Pn,this.data=gi,this}(function(Et){var wt=function(){return typeof Nn=="function"},bt=function(Pn,Ke,gi,Jn){var vi=4,Rn=ge;switch(Jn){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=be}Pn=Ht(Pn,Ke,gi,Rn);var di=Nn(Pn,{level:vi});return Et.__addimage__.arrayBufferToBinaryString(di)},Ht=function(Pn,Ke,gi,Jn){for(var vi,Rn,di,Qi=Pn.length/Ke,rr=new Uint8Array(Pn.length+Qi),Er=fn(),ao=0;ao<Qi;ao+=1){if(di=ao*Ke,vi=Pn.subarray(di,di+Ke),Jn)rr.set(Jn(vi,gi,Rn),di+ao);else{for(var gr,Ti=Er.length,xr=[];gr<Ti;gr+=1)xr[gr]=Er[gr](vi,gi,Rn);var kr=gn(xr.concat());rr.set(xr[kr],di+ao)}Rn=vi}return rr},ie=function(Pn){var Ke=Array.apply([],Pn);return Ke.unshift(0),Ke},Yt=function(Pn,Ke){var gi,Jn=[],vi=Pn.length;Jn[0]=1;for(var Rn=0;Rn<vi;Rn+=1)gi=Pn[Rn-Ke]||0,Jn[Rn+1]=Pn[Rn]-gi+256&255;return Jn},ge=function(Pn,Ke,gi){var Jn,vi=[],Rn=Pn.length;vi[0]=2;for(var di=0;di<Rn;di+=1)Jn=gi&&gi[di]||0,vi[di+1]=Pn[di]-Jn+256&255;return vi},we=function(Pn,Ke,gi){var Jn,vi,Rn=[],di=Pn.length;Rn[0]=3;for(var Qi=0;Qi<di;Qi+=1)Jn=Pn[Qi-Ke]||0,vi=gi&&gi[Qi]||0,Rn[Qi+1]=Pn[Qi]+256-(Jn+vi>>>1)&255;return Rn},be=function(Pn,Ke,gi){var Jn,vi,Rn,di,Qi=[],rr=Pn.length;Qi[0]=4;for(var Er=0;Er<rr;Er+=1)Jn=Pn[Er-Ke]||0,vi=gi&&gi[Er]||0,Rn=gi&&gi[Er-Ke]||0,di=$e(Jn,vi,Rn),Qi[Er+1]=Pn[Er]-di+256&255;return Qi},$e=function(Pn,Ke,gi){if(Pn===Ke&&Ke===gi)return Pn;var Jn=Math.abs(Ke-gi),vi=Math.abs(Pn-gi),Rn=Math.abs(Pn+Ke-gi-gi);return Jn<=vi&&Jn<=Rn?Pn:vi<=Rn?Ke:gi},fn=function(){return[ie,Yt,ge,we,be]},gn=function(Pn){var Ke=Pn.map(function(gi){return gi.reduce(function(Jn,vi){return Jn+Math.abs(vi)},0)});return Ke.indexOf(Math.min.apply(null,Ke))};Et.processPNG=function(Pn,Ke,gi,Jn){var vi,Rn,di,Qi,rr,Er,ao,gr,Ti,xr,kr,$n,ii,pe,me,Xe=this.decode.FLATE_DECODE,Je="";if(this.__addimage__.isArrayBuffer(Pn)&&(Pn=new Uint8Array(Pn)),this.__addimage__.isArrayBufferView(Pn)){if(Pn=(di=new sA(Pn)).imgData,Rn=di.bits,vi=di.colorSpace,rr=di.colors,[4,6].indexOf(di.colorType)!==-1){if(di.bits===8){Ti=(gr=di.pixelBitlength==32?new Uint32Array(di.decodePixels().buffer):di.pixelBitlength==16?new Uint16Array(di.decodePixels().buffer):new Uint8Array(di.decodePixels().buffer)).length,kr=new Uint8Array(Ti*di.colors),xr=new Uint8Array(Ti);var vn,nn=di.pixelBitlength-di.bits;for(pe=0,me=0;pe<Ti;pe++){for(ii=gr[pe],vn=0;vn<nn;)kr[me++]=ii>>>vn&255,vn+=di.bits;xr[pe]=ii>>>vn&255}}if(di.bits===16){Ti=(gr=new Uint32Array(di.decodePixels().buffer)).length,kr=new Uint8Array(Ti*(32/di.pixelBitlength)*di.colors),xr=new Uint8Array(Ti*(32/di.pixelBitlength)),$n=di.colors>1,pe=0,me=0;for(var Tn=0;pe<Ti;)ii=gr[pe++],kr[me++]=ii>>>0&255,$n&&(kr[me++]=ii>>>16&255,ii=gr[pe++],kr[me++]=ii>>>0&255),xr[Tn++]=ii>>>16&255;Rn=8}Jn!==Et.image_compression.NONE&&wt()?(Pn=bt(kr,di.width*di.colors,di.colors,Jn),ao=bt(xr,di.width,1,Jn)):(Pn=kr,ao=xr,Xe=void 0)}if(di.colorType===3&&(vi=this.color_spaces.INDEXED,Er=di.palette,di.transparency.indexed)){var Un=di.transparency.indexed,Yn=0;for(pe=0,Ti=Un.length;pe<Ti;++pe)Yn+=Un[pe];if((Yn/=255)===Ti-1&&Un.indexOf(0)!==-1)Qi=[Un.indexOf(0)];else if(Yn!==Ti){for(gr=di.decodePixels(),xr=new Uint8Array(gr.length),pe=0,Ti=gr.length;pe<Ti;pe++)xr[pe]=Un[gr[pe]];ao=bt(xr,di.width,1)}}var Qe=function(hn){var mn;switch(hn){case Et.image_compression.FAST:mn=11;break;case Et.image_compression.MEDIUM:mn=13;break;case Et.image_compression.SLOW:mn=14;break;default:mn=12}return mn}(Jn);return Xe===this.decode.FLATE_DECODE&&(Je="/Predictor "+Qe+" "),Je+="/Colors "+rr+" /BitsPerComponent "+Rn+" /Columns "+di.width,(this.__addimage__.isArrayBuffer(Pn)||this.__addimage__.isArrayBufferView(Pn))&&(Pn=this.__addimage__.arrayBufferToBinaryString(Pn)),(ao&&this.__addimage__.isArrayBuffer(ao)||this.__addimage__.isArrayBufferView(ao))&&(ao=this.__addimage__.arrayBufferToBinaryString(ao)),{alias:gi,data:Pn,index:Ke,filter:Xe,decodeParameters:Je,transparency:Qi,palette:Er,sMask:ao,predictor:Qe,width:di.width,height:di.height,bitsPerComponent:Rn,colorSpace:vi}}}})(Ho.API),function(Et){Et.processGIF89A=function(wt,bt,Ht,ie){var Yt=new En(wt),ge=Yt.width,we=Yt.height,be=[];Yt.decodeAndBlitFrameRGBA(0,be);var $e={data:be,width:ge,height:we},fn=new aA(100).encode($e,100);return Et.processJPEG.call(this,fn,bt,Ht,ie)},Et.processGIF87A=Et.processGIF89A}(Ho.API),nc.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 bt=this.datav.getUint8(this.pos++,!0),Ht=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:Ht,blue:bt,quad:Yt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},nc.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(bt){bo.log("bit decode error:"+bt)}},nc.prototype.bit1=function(){var Et,wt=Math.ceil(this.width/8),bt=wt%4;for(Et=this.height-1;Et>=0;Et--){for(var Ht=this.bottom_up?Et:this.height-1-Et,ie=0;ie<wt;ie++)for(var Yt=this.datav.getUint8(this.pos++,!0),ge=Ht*this.width*4+8*ie*4,we=0;we<8&&8*ie+we<this.width;we++){var be=this.palette[Yt>>7-we&1];this.data[ge+4*we]=be.blue,this.data[ge+4*we+1]=be.green,this.data[ge+4*we+2]=be.red,this.data[ge+4*we+3]=255}bt!==0&&(this.pos+=4-bt)}},nc.prototype.bit4=function(){for(var Et=Math.ceil(this.width/2),wt=Et%4,bt=this.height-1;bt>=0;bt--){for(var Ht=this.bottom_up?bt:this.height-1-bt,ie=0;ie<Et;ie++){var Yt=this.datav.getUint8(this.pos++,!0),ge=Ht*this.width*4+2*ie*4,we=Yt>>4,be=15&Yt,$e=this.palette[we];if(this.data[ge]=$e.blue,this.data[ge+1]=$e.green,this.data[ge+2]=$e.red,this.data[ge+3]=255,2*ie+1>=this.width)break;$e=this.palette[be],this.data[ge+4]=$e.blue,this.data[ge+4+1]=$e.green,this.data[ge+4+2]=$e.red,this.data[ge+4+3]=255}wt!==0&&(this.pos+=4-wt)}},nc.prototype.bit8=function(){for(var Et=this.width%4,wt=this.height-1;wt>=0;wt--){for(var bt=this.bottom_up?wt:this.height-1-wt,Ht=0;Ht<this.width;Ht++){var ie=this.datav.getUint8(this.pos++,!0),Yt=bt*this.width*4+4*Ht;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)}},nc.prototype.bit15=function(){for(var Et=this.width%3,wt=parseInt("11111",2),bt=this.height-1;bt>=0;bt--){for(var Ht=this.bottom_up?bt:this.height-1-bt,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,be=(Yt>>10&wt)/wt*255|0,$e=Yt>>15?255:0,fn=Ht*this.width*4+4*ie;this.data[fn]=be,this.data[fn+1]=we,this.data[fn+2]=ge,this.data[fn+3]=$e}this.pos+=Et}},nc.prototype.bit16=function(){for(var Et=this.width%3,wt=parseInt("11111",2),bt=parseInt("111111",2),Ht=this.height-1;Ht>=0;Ht--){for(var ie=this.bottom_up?Ht:this.height-1-Ht,Yt=0;Yt<this.width;Yt++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var we=(ge&wt)/wt*255|0,be=(ge>>5&bt)/bt*255|0,$e=(ge>>11)/wt*255|0,fn=ie*this.width*4+4*Yt;this.data[fn]=$e,this.data[fn+1]=be,this.data[fn+2]=we,this.data[fn+3]=255}this.pos+=Et}},nc.prototype.bit24=function(){for(var Et=this.height-1;Et>=0;Et--){for(var wt=this.bottom_up?Et:this.height-1-Et,bt=0;bt<this.width;bt++){var Ht=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*bt;this.data[ge]=Yt,this.data[ge+1]=ie,this.data[ge+2]=Ht,this.data[ge+3]=255}this.pos+=this.width%4}},nc.prototype.bit32=function(){for(var Et=this.height-1;Et>=0;Et--)for(var wt=this.bottom_up?Et:this.height-1-Et,bt=0;bt<this.width;bt++){var Ht=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*bt;this.data[we]=Yt,this.data[we+1]=ie,this.data[we+2]=Ht,this.data[we+3]=ge}},nc.prototype.getData=function(){return this.data},function(Et){Et.processBMP=function(wt,bt,Ht,ie){var Yt=new nc(wt,!1),ge=Yt.width,we=Yt.height,be={data:Yt.getData(),width:ge,height:we},$e=new aA(100).encode(be,100);return Et.processJPEG.call(this,$e,bt,Ht,ie)}}(Ho.API),Ku.prototype.getData=function(){return this.data},function(Et){Et.processWEBP=function(wt,bt,Ht,ie){var Yt=new Ku(wt,!1),ge=Yt.width,we=Yt.height,be={data:Yt.getData(),width:ge,height:we},$e=new aA(100).encode(be,100);return Et.processJPEG.call(this,$e,bt,Ht,ie)}}(Ho.API),Ho.API.processRGBA=function(Et,wt,bt){for(var Ht=Et.data,ie=Ht.length,Yt=new Uint8Array(ie/4*3),ge=new Uint8Array(ie/4),we=0,be=0,$e=0;$e<ie;$e+=4){var fn=Ht[$e],gn=Ht[$e+1],Pn=Ht[$e+2],Ke=Ht[$e+3];Yt[we++]=fn,Yt[we++]=gn,Yt[we++]=Pn,ge[be++]=Ke}var gi=this.__addimage__.arrayBufferToBinaryString(Yt);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:gi,index:wt,alias:bt,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Et.width,height:Et.height}},Ho.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},hl=Ho.API,zd=hl.getCharWidthsArray=function(Et,wt){var bt,Ht,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,be=we.fof?we.fof:1,$e=wt.kerning?wt.kerning:ie.metadata.Unicode.kerning,fn=$e.fof?$e.fof:1,gn=wt.doKerning!==!1,Pn=0,Ke=Et.length,gi=0,Jn=we[0]||be,vi=[];for(bt=0;bt<Ke;bt++)Ht=Et.charCodeAt(bt),typeof ie.metadata.widthOfString=="function"?vi.push((ie.metadata.widthOfGlyph(ie.metadata.characterToGlyph(Ht))+ge*(1e3/Yt)||0)/1e3):(Pn=gn&&(0,Lt.Z)($e[Ht])==="object"&&!isNaN(parseInt($e[Ht][gi],10))?$e[Ht][gi]/fn:0,vi.push((we[Ht]||Jn)/be+Pn)),gi=Ht;return vi},td=hl.getStringUnitWidth=function(Et,wt){var bt=(wt=wt||{}).fontSize||this.internal.getFontSize(),Ht=wt.font||this.internal.getFont(),ie=wt.charSpace||this.internal.getCharSpace();return hl.processArabic&&(Et=hl.processArabic(Et)),typeof Ht.metadata.widthOfString=="function"?Ht.metadata.widthOfString(Et,bt,ie)/bt:zd.apply(this,arguments).reduce(function(Yt,ge){return Yt+ge},0)},Sh=function(Et,wt,bt,Ht){for(var ie=[],Yt=0,ge=Et.length,we=0;Yt!==ge&&we+wt[Yt]<bt;)we+=wt[Yt],Yt++;ie.push(Et.slice(0,Yt));var be=Yt;for(we=0;Yt!==ge;)we+wt[Yt]>Ht&&(ie.push(Et.slice(be,Yt)),we=0,be=Yt),we+=wt[Yt],Yt++;return be!==Yt&&ie.push(Et.slice(be,Yt)),ie},Qo=function(Et,wt,bt){bt||(bt={});var Ht,ie,Yt,ge,we,be,$e,fn=[],gn=[fn],Pn=bt.textIndent||0,Ke=0,gi=0,Jn=Et.split(" "),vi=zd.apply(this,[" ",bt])[0];if(be=bt.lineIndent===-1?Jn[0].length+2:bt.lineIndent||0){var Rn=Array(be).join(" "),di=[];Jn.map(function(rr){(rr=rr.split(/\s*\n/)).length>1?di=di.concat(rr.map(function(Er,ao){return(ao&&Er.length?`
`:"")+Er})):di.push(rr[0])}),Jn=di,be=td.apply(this,[Rn,bt])}for(Yt=0,ge=Jn.length;Yt<ge;Yt++){var Qi=0;if(Ht=Jn[Yt],be&&Ht[0]==`
`&&(Ht=Ht.substr(1),Qi=1),Pn+Ke+(gi=(ie=zd.apply(this,[Ht,bt])).reduce(function(rr,Er){return rr+Er},0))>wt||Qi){if(gi>wt){for(we=Sh.apply(this,[Ht,ie,wt-(Pn+Ke),wt]),fn.push(we.shift()),fn=[we.pop()];we.length;)gn.push([we.shift()]);gi=ie.slice(Ht.length-(fn[0]?fn[0].length:0)).reduce(function(rr,Er){return rr+Er},0)}else fn=[Ht];gn.push(fn),Pn=gi+be,Ke=vi}else fn.push(Ht),Pn+=Ke+gi,Ke=vi}return $e=be?function(rr,Er){return(Er?Rn:"")+rr.join(" ")}:function(rr){return rr.join(" ")},gn.map($e)},hl.splitTextToSize=function(Et,wt,bt){var Ht,ie=(bt=bt||{}).fontSize||this.internal.getFontSize(),Yt=function(fn){if(fn.widths&&fn.kerning)return{widths:fn.widths,kerning:fn.kerning};var gn=this.internal.getFont(fn.fontName,fn.fontStyle);return gn.metadata.Unicode?{widths:gn.metadata.Unicode.widths||{0:1},kerning:gn.metadata.Unicode.kerning||{}}:{font:gn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,bt);Ht=Array.isArray(Et)?Et:String(Et).split(/\r?\n/);var ge=1*this.internal.scaleFactor*wt/ie;Yt.textIndent=bt.textIndent?1*bt.textIndent*this.internal.scaleFactor/ie:0,Yt.lineIndent=bt.lineIndent;var we,be,$e=[];for(we=0,be=Ht.length;we<be;we++)$e=$e.concat(Qo.apply(this,[Ht[we],ge,Yt]));return $e},function(Et){Et.__fontmetrics__=Et.__fontmetrics__||{};for(var wt="klmnopqrstuvwxyz",bt={},Ht={},ie=0;ie<wt.length;ie++)bt[wt[ie]]="0123456789abcdef"[ie],Ht["0123456789abcdef"[ie]]=wt[ie];var Yt=function(gn){return"0x"+parseInt(gn,10).toString(16)},ge=Et.__fontmetrics__.compress=function(gn){var Pn,Ke,gi,Jn,vi=["{"];for(var Rn in gn){if(Pn=gn[Rn],isNaN(parseInt(Rn,10))?Ke="'"+Rn+"'":(Rn=parseInt(Rn,10),Ke=(Ke=Yt(Rn).slice(2)).slice(0,-1)+Ht[Ke.slice(-1)]),typeof Pn=="number")Pn<0?(gi=Yt(Pn).slice(3),Jn="-"):(gi=Yt(Pn).slice(2),Jn=""),gi=Jn+gi.slice(0,-1)+Ht[gi.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)+".");gi=ge(Pn)}vi.push(Ke+gi)}return vi.push("}"),vi.join("")},we=Et.__fontmetrics__.uncompress=function(gn){if(typeof gn!="string")throw new Error("Invalid argument passed to uncompress.");for(var Pn,Ke,gi,Jn,vi={},Rn=1,di=vi,Qi=[],rr="",Er="",ao=gn.length-1,gr=1;gr<ao;gr+=1)(Jn=gn[gr])=="'"?Pn?(gi=Pn.join(""),Pn=void 0):Pn=[]:Pn?Pn.push(Jn):Jn=="{"?(Qi.push([di,gi]),di={},gi=void 0):Jn=="}"?((Ke=Qi.pop())[0][Ke[1]]=di,gi=void 0,di=Ke[0]):Jn=="-"?Rn=-1:gi===void 0?bt.hasOwnProperty(Jn)?(rr+=bt[Jn],gi=parseInt(rr,16)*Rn,Rn=1,rr=""):rr+=Jn:bt.hasOwnProperty(Jn)?(Er+=bt[Jn],di[gi]=parseInt(Er,16)*Rn,Rn=1,gi=void 0,Er=""):Er+=Jn;return vi},be={codePages:["WinAnsiEncoding"],WinAnsiEncoding:we("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},$e={Unicode:{Courier:be,"Courier-Bold":be,"Courier-BoldOblique":be,"Courier-Oblique":be,Helvetica:be,"Helvetica-Bold":be,"Helvetica-BoldOblique":be,"Helvetica-Oblique":be,"Times-Roman":be,"Times-Bold":be,"Times-BoldItalic":be,"Times-Italic":be}},fn={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(gn){var Pn=gn.font,Ke=fn.Unicode[Pn.postScriptName];Ke&&(Pn.metadata.Unicode={},Pn.metadata.Unicode.widths=Ke.widths,Pn.metadata.Unicode.kerning=Ke.kerning);var gi=$e.Unicode[Pn.postScriptName];gi&&(Pn.metadata.Unicode.encoding=gi,Pn.encoding=gi.codePages[0])}])}(Ho.API),function(Et){var wt=function(bt){for(var Ht=bt.length,ie=new Uint8Array(Ht),Yt=0;Yt<Ht;Yt++)ie[Yt]=bt.charCodeAt(Yt);return ie};Et.API.events.push(["addFont",function(bt){var Ht=void 0,ie=bt.font,Yt=bt.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(Ht=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(xs(we)),ge.metadata=Et.API.TTFFont.open(we),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ie,Ht)}}])}(Ho),function(Et){function wt(){return(Br.canvg?Promise.resolve(Br.canvg):Ft.e(6949).then(Ft.bind(Ft,46949))).catch(function(bt){return Promise.reject(new Error("Could not load canvg: "+bt))}).then(function(bt){return bt.default?bt.default:bt})}Ho.API.addSvgAsImage=function(bt,Ht,ie,Yt,ge,we,be,$e){if(isNaN(Ht)||isNaN(ie))throw bo.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Yt)||isNaN(ge))throw bo.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var fn=document.createElement("canvas");fn.width=Yt,fn.height=ge;var gn=fn.getContext("2d");gn.fillStyle="#fff",gn.fillRect(0,0,fn.width,fn.height);var Pn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ke=this;return wt().then(function(gi){return gi.fromString(gn,bt,Pn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(gi){return gi.render(Pn)}).then(function(){Ke.addImage(fn.toDataURL("image/jpeg",1),Ht,ie,Yt,ge,be,$e)})}}(),Ho.API.putTotalPages=function(Et){var wt,bt=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(wt=new RegExp(Et,"g"),bt=this.internal.getNumberOfPages()):(wt=new RegExp(this.pdfEscape16(Et,this.internal.getFont()),"g"),bt=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ht=1;Ht<=this.internal.getNumberOfPages();Ht++)for(var ie=0;ie<this.internal.pages[Ht].length;ie++)this.internal.pages[Ht][ie]=this.internal.pages[Ht][ie].replace(wt,bt);return this},Ho.API.viewerPreferences=function(Et,wt){var bt;Et=Et||{},wt=wt||!1;var Ht,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),be=[],$e=0,fn=0,gn=0;function Pn(gi,Jn){var vi,Rn=!1;for(vi=0;vi<gi.length;vi+=1)gi[vi]===Jn&&(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),bt=this.internal.viewerpreferences.configuration,Et==="reset"||wt===!0){var Ke=we.length;for(gn=0;gn<Ke;gn+=1)bt[we[gn]].value=bt[we[gn]].defaultValue,bt[we[gn]].explicitSet=!1}if((0,Lt.Z)(Et)==="object"){for(ie in Et)if(Yt=Et[ie],Pn(we,ie)&&Yt!==void 0){if(bt[ie].type==="boolean"&&typeof Yt=="boolean")bt[ie].value=Yt;else if(bt[ie].type==="name"&&Pn(bt[ie].valueSet,Yt))bt[ie].value=Yt;else if(bt[ie].type==="integer"&&Number.isInteger(Yt))bt[ie].value=Yt;else if(bt[ie].type==="array"){for($e=0;$e<Yt.length;$e+=1)if(Ht=!0,Yt[$e].length===1&&typeof Yt[$e][0]=="number")be.push(String(Yt[$e]-1));else if(Yt[$e].length>1){for(fn=0;fn<Yt[$e].length;fn+=1)typeof Yt[$e][fn]!="number"&&(Ht=!1);Ht===!0&&be.push([Yt[$e][0]-1,Yt[$e][1]-1].join(" "))}bt[ie].value="["+be.join(" ")+"]"}else bt[ie].value=bt[ie].defaultValue;bt[ie].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var gi,Jn=[];for(gi in bt)bt[gi].explicitSet===!0&&(bt[gi].type==="name"?Jn.push("/"+gi+" /"+bt[gi].value):Jn.push("/"+gi+" "+bt[gi].value));Jn.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Jn.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=bt,this},function(Et){var wt=function(){var Ht='<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(Ht)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),we=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),be=unescape(encodeURIComponent("</x:xmpmeta>")),$e=Yt.length+ge.length+we.length+ie.length+be.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+$e+" >>"),this.internal.write("stream"),this.internal.write(ie+Yt+ge+we+be),this.internal.write("endstream"),this.internal.write("endobj")},bt=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Et.addMetadata=function(Ht,ie){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ht,namespaceuri:ie||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",bt),this.internal.events.subscribe("postPutResources",wt)),this}}(Ho.API),function(Et){var wt=Et.API,bt=wt.pdfEscape16=function(Yt,ge){for(var we,be=ge.metadata.Unicode.widths,$e=["","0","00","000","0000"],fn=[""],gn=0,Pn=Yt.length;gn<Pn;++gn){if(we=ge.metadata.characterToGlyph(Yt.charCodeAt(gn)),ge.metadata.glyIdsUsed.push(we),ge.metadata.toUnicode[we]=Yt.charCodeAt(gn),be.indexOf(we)==-1&&(be.push(we),be.push([parseInt(ge.metadata.widthOfGlyph(we),10)])),we=="0")return fn.join("");we=we.toString(16),fn.push($e[4-we.length],we)}return fn.join("")},Ht=function(Yt){var ge,we,be,$e,fn,gn,Pn;for(fn=`/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`,be=[],gn=0,Pn=(we=Object.keys(Yt).sort(function(Ke,gi){return Ke-gi})).length;gn<Pn;gn++)ge=we[gn],be.length>=100&&(fn+=`
`+be.length+` beginbfchar
`+be.join(`
`)+`
endbfchar`,be=[]),Yt[ge]!==void 0&&Yt[ge]!==null&&typeof Yt[ge].toString=="function"&&($e=("0000"+Yt[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),be.push("<"+ge+"><"+$e+">"));return be.length&&(fn+=`
`+be.length+` beginbfchar
`+be.join(`
`)+`
endbfchar
`),fn+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};wt.events.push(["putFont",function(Yt){(function(ge){var we=ge.font,be=ge.out,$e=ge.newObject,fn=ge.putStream;if(we.metadata instanceof Et.API.TTFFont&&we.encoding==="Identity-H"){for(var gn=we.metadata.Unicode.widths,Pn=we.metadata.subset.encode(we.metadata.glyIdsUsed,1),Ke="",gi=0;gi<Pn.length;gi++)Ke+=String.fromCharCode(Pn[gi]);var Jn=$e();fn({data:Ke,addLength1:!0,objectId:Jn}),be("endobj");var vi=$e();fn({data:Ht(we.metadata.toUnicode),addLength1:!0,objectId:vi}),be("endobj");var Rn=$e();be("<<"),be("/Type /FontDescriptor"),be("/FontName /"+co(we.fontName)),be("/FontFile2 "+Jn+" 0 R"),be("/FontBBox "+Et.API.PDFObject.convert(we.metadata.bbox)),be("/Flags "+we.metadata.flags),be("/StemV "+we.metadata.stemV),be("/ItalicAngle "+we.metadata.italicAngle),be("/Ascent "+we.metadata.ascender),be("/Descent "+we.metadata.decender),be("/CapHeight "+we.metadata.capHeight),be(">>"),be("endobj");var di=$e();be("<<"),be("/Type /Font"),be("/BaseFont /"+co(we.fontName)),be("/FontDescriptor "+Rn+" 0 R"),be("/W "+Et.API.PDFObject.convert(gn)),be("/CIDToGIDMap /Identity"),be("/DW 1000"),be("/Subtype /CIDFontType2"),be("/CIDSystemInfo"),be("<<"),be("/Supplement 0"),be("/Registry (Adobe)"),be("/Ordering ("+we.encoding+")"),be(">>"),be(">>"),be("endobj"),we.objectNumber=$e(),be("<<"),be("/Type /Font"),be("/Subtype /Type0"),be("/ToUnicode "+vi+" 0 R"),be("/BaseFont /"+co(we.fontName)),be("/Encoding /"+we.encoding),be("/DescendantFonts ["+di+" 0 R]"),be(">>"),be("endobj"),we.isAlreadyPutted=!0}})(Yt)}]),wt.events.push(["putFont",function(Yt){(function(ge){var we=ge.font,be=ge.out,$e=ge.newObject,fn=ge.putStream;if(we.metadata instanceof Et.API.TTFFont&&we.encoding==="WinAnsiEncoding"){for(var gn=we.metadata.rawData,Pn="",Ke=0;Ke<gn.length;Ke++)Pn+=String.fromCharCode(gn[Ke]);var gi=$e();fn({data:Pn,addLength1:!0,objectId:gi}),be("endobj");var Jn=$e();fn({data:Ht(we.metadata.toUnicode),addLength1:!0,objectId:Jn}),be("endobj");var vi=$e();be("<<"),be("/Descent "+we.metadata.decender),be("/CapHeight "+we.metadata.capHeight),be("/StemV "+we.metadata.stemV),be("/Type /FontDescriptor"),be("/FontFile2 "+gi+" 0 R"),be("/Flags 96"),be("/FontBBox "+Et.API.PDFObject.convert(we.metadata.bbox)),be("/FontName /"+co(we.fontName)),be("/ItalicAngle "+we.metadata.italicAngle),be("/Ascent "+we.metadata.ascender),be(">>"),be("endobj"),we.objectNumber=$e();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));be("<</Subtype/TrueType/Type/Font/ToUnicode "+Jn+" 0 R/BaseFont/"+co(we.fontName)+"/FontDescriptor "+vi+" 0 R/Encoding/"+we.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Et.API.PDFObject.convert(we.metadata.hmtx.widths)+">>"),be("endobj"),we.isAlreadyPutted=!0}})(Yt)}]);var ie=function(Yt){var ge,we=Yt.text||"",be=Yt.x,$e=Yt.y,fn=Yt.options||{},gn=Yt.mutex||{},Pn=gn.pdfEscape,Ke=gn.activeFontKey,gi=gn.fonts,Jn=Ke,vi="",Rn=0,di="",Qi=gi[Jn].encoding;if(gi[Jn].encoding!=="Identity-H")return{text:we,x:be,y:$e,options:fn,mutex:gn};for(di=we,Jn=Ke,Array.isArray(we)&&(di=we[0]),Rn=0;Rn<di.length;Rn+=1)gi[Jn].metadata.hasOwnProperty("cmap")&&(ge=gi[Jn].metadata.cmap.unicode.codeMap[di[Rn].charCodeAt(0)]),ge||di[Rn].charCodeAt(0)<256&&gi[Jn].metadata.hasOwnProperty("Unicode")?vi+=di[Rn]:vi+="";var rr="";return parseInt(Jn.slice(1))<14||Qi==="WinAnsiEncoding"?rr=Pn(vi,Jn).split("").map(function(Er){return Er.charCodeAt(0).toString(16)}).join(""):Qi==="Identity-H"&&(rr=bt(vi,gi[Jn])),gn.isHex=!0,{text:rr,x:be,y:$e,options:fn,mutex:gn}};wt.events.push(["postProcessText",function(Yt){var ge=Yt.text||"",we=[],be={text:ge,x:Yt.x,y:Yt.y,options:Yt.options,mutex:Yt.mutex};if(Array.isArray(ge)){var $e=0;for($e=0;$e<ge.length;$e+=1)Array.isArray(ge[$e])&&ge[$e].length===3?we.push([ie(Object.assign({},be,{text:ge[$e][0]})).text,ge[$e][1],ge[$e][2]]):we.push(ie(Object.assign({},be,{text:ge[$e]})).text);Yt.text=we}else Yt.text=ie(Object.assign({},be,{text:ge})).text}])}(Ho),function(Et){var wt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Et.existsFileInVFS=function(bt){return wt.call(this),this.internal.vFS[bt]!==void 0},Et.addFileToVFS=function(bt,Ht){return wt.call(this),this.internal.vFS[bt]=Ht,this},Et.getFileFromVFS=function(bt){return wt.call(this),this.internal.vFS[bt]!==void 0?this.internal.vFS[bt]:null}}(Ho.API),function(Et){Et.__bidiEngine__=Et.prototype.__bidiEngine__=function(Ht){var ie,Yt,ge,we,be,$e,fn,gn=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]],Ke=[[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]],gi={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Jn={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)$/),di=!1,Qi=0;this.__bidiEngine__={};var rr=function($n){var ii=$n.charCodeAt(),pe=ii>>8,me=Jn[pe];return me!==void 0?gn[256*me+(255&ii)]:pe===252||pe===253?"AL":Rn.test(pe)?"L":pe===8?"R":"N"},Er=function($n){for(var ii,pe=0;pe<$n.length;pe++){if((ii=rr($n.charAt(pe)))==="L")return!1;if(ii==="R")return!0}return!1},ao=function($n,ii,pe,me){var Xe,Je,vn,nn,Tn=ii[me];switch(Tn){case"L":case"R":di=!1;break;case"N":case"AN":break;case"EN":di&&(Tn="AN");break;case"AL":di=!0,Tn="R";break;case"WS":Tn="N";break;case"CS":me<1||me+1>=ii.length||(Xe=pe[me-1])!=="EN"&&Xe!=="AN"||(Je=ii[me+1])!=="EN"&&Je!=="AN"?Tn="N":di&&(Je="AN"),Tn=Je===Xe?Je:"N";break;case"ES":Tn=(Xe=me>0?pe[me-1]:"B")==="EN"&&me+1<ii.length&&ii[me+1]==="EN"?"EN":"N";break;case"ET":if(me>0&&pe[me-1]==="EN"){Tn="EN";break}if(di){Tn="N";break}for(vn=me+1,nn=ii.length;vn<nn&&ii[vn]==="ET";)vn++;Tn=vn<nn&&ii[vn]==="EN"?"EN":"N";break;case"NSM":if(ge&&!we){for(nn=ii.length,vn=me+1;vn<nn&&ii[vn]==="NSM";)vn++;if(vn<nn){var Un=$n[me],Yn=Un>=1425&&Un<=2303||Un===64286;if(Xe=ii[vn],Yn&&(Xe==="R"||Xe==="AL")){Tn="R";break}}}Tn=me<1||(Xe=ii[me-1])==="B"?"N":pe[me-1];break;case"B":di=!1,ie=!0,Tn=Qi;break;case"S":Yt=!0,Tn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":di=!1;break;case"BN":Tn="N"}return Tn},gr=function($n,ii,pe){var me=$n.split("");return pe&&Ti(me,pe,{hiLevel:Qi}),me.reverse(),ii&&ii.reverse(),me.join("")},Ti=function($n,ii,pe){var me,Xe,Je,vn,nn,Tn=-1,Un=$n.length,Yn=0,Qe=[],hn=Qi?Ke:Pn,mn=[];for(di=!1,ie=!1,Yt=!1,Xe=0;Xe<Un;Xe++)mn[Xe]=rr($n[Xe]);for(Je=0;Je<Un;Je++){if(nn=Yn,Qe[Je]=ao($n,mn,Qe,Je),me=240&(Yn=hn[nn][gi[Qe[Je]]]),Yn&=15,ii[Je]=vn=hn[Yn][5],me>0)if(me===16){for(Xe=Tn;Xe<Je;Xe++)ii[Xe]=1;Tn=-1}else Tn=-1;if(hn[Yn][6])Tn===-1&&(Tn=Je);else if(Tn>-1){for(Xe=Tn;Xe<Je;Xe++)ii[Xe]=vn;Tn=-1}mn[Je]==="B"&&(ii[Je]=0),pe.hiLevel|=vn}Yt&&function(Qn,Zn,ni){for(var Ei=0;Ei<ni;Ei++)if(Qn[Ei]==="S"){Zn[Ei]=Qi;for(var li=Ei-1;li>=0&&Qn[li]==="WS";li--)Zn[li]=Qi}}(mn,ii,Un)},xr=function($n,ii,pe,me,Xe){if(!(Xe.hiLevel<$n)){if($n===1&&Qi===1&&!ie)return ii.reverse(),void(pe&&pe.reverse());for(var Je,vn,nn,Tn,Un=ii.length,Yn=0;Yn<Un;){if(me[Yn]>=$n){for(nn=Yn+1;nn<Un&&me[nn]>=$n;)nn++;for(Tn=Yn,vn=nn-1;Tn<vn;Tn++,vn--)Je=ii[Tn],ii[Tn]=ii[vn],ii[vn]=Je,pe&&(Je=pe[Tn],pe[Tn]=pe[vn],pe[vn]=Je);Yn=nn}Yn++}}},kr=function($n,ii,pe){var me=$n.split(""),Xe={hiLevel:Qi};return pe||(pe=[]),Ti(me,pe,Xe),function(Je,vn,nn){if(nn.hiLevel!==0&&fn)for(var Tn,Un=0;Un<Je.length;Un++)vn[Un]===1&&(Tn=vi.indexOf(Je[Un]))>=0&&(Je[Un]=vi[Tn+1])}(me,pe,Xe),xr(2,me,ii,pe,Xe),xr(1,me,ii,pe,Xe),me.join("")};return this.__bidiEngine__.doBidiReorder=function($n,ii,pe){if(function(Xe,Je){if(Je)for(var vn=0;vn<Xe.length;vn++)Je[vn]=vn;we===void 0&&(we=Er(Xe)),$e===void 0&&($e=Er(Xe))}($n,ii),ge||!be||$e)if(ge&&be&&we^$e)Qi=we?1:0,$n=gr($n,ii,pe);else if(!ge&&be&&$e)Qi=we?1:0,$n=kr($n,ii,pe),$n=gr($n,ii);else if(!ge||we||be||$e){if(ge&&!be&&we^$e)$n=gr($n,ii),we?(Qi=0,$n=kr($n,ii,pe)):(Qi=1,$n=kr($n,ii,pe),$n=gr($n,ii));else if(ge&&we&&!be&&$e)Qi=1,$n=kr($n,ii,pe),$n=gr($n,ii);else if(!ge&&!be&&we^$e){var me=fn;we?(Qi=1,$n=kr($n,ii,pe),Qi=0,fn=!1,$n=kr($n,ii,pe),fn=me):(Qi=0,$n=kr($n,ii,pe),$n=gr($n,ii),Qi=1,fn=!1,$n=kr($n,ii,pe),fn=me,$n=gr($n,ii))}}else Qi=0,$n=kr($n,ii,pe);else Qi=we?1:0,$n=kr($n,ii,pe);return $n},this.__bidiEngine__.setOptions=function($n){$n&&(ge=$n.isInputVisual,be=$n.isOutputVisual,we=$n.isInputRtl,$e=$n.isOutputRtl,fn=$n.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ht),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"],bt=new Et.__bidiEngine__({isInputVisual:!0});Et.API.events.push(["postProcessText",function(Ht){var ie=Ht.text,Yt=(Ht.x,Ht.y,Ht.options||{}),ge=(Ht.mutex,Yt.lang,[]);if(Yt.isInputVisual=typeof Yt.isInputVisual!="boolean"||Yt.isInputVisual,bt.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([bt.doBidiReorder(ie[we][0]),ie[we][1],ie[we][2]]):ge.push([bt.doBidiReorder(ie[we])]);Ht.text=ge}else Ht.text=bt.doBidiReorder(ie);bt.setOptions({isInputVisual:!0})}])}(Ho),Ho.API.TTFFont=function(){function Et(wt){var bt;if(this.rawData=wt,bt=this.contents=new Ch(wt),this.contents.pos=4,bt.readString(4)==="ttcf")throw new Error("TTCF not supported.");bt.pos=0,this.parse(),this.subset=new Hl(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 vs(this),this.name=new wl(this),this.cmap=new Zu(this),this.toUnicode={},this.hhea=new El(this),this.maxp=new Qh(this),this.hmtx=new Cu(this),this.post=new gu(this),this.os2=new sa(this),this.loca=new gl(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,bt,Ht,ie,Yt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,we,be,$e;for($e=[],ge=0,we=(be=this.bbox).length;ge<we;ge++)wt=be[ge],$e.push(Math.round(wt*this.scaleFactor));return $e}.call(this),this.stemV=0,this.post.exists?(Ht=255&(ie=this.post.italic_angle),32768&(bt=ie>>16)&&(bt=-(1+(65535^bt))),this.italicAngle=+(bt+"."+Ht)):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 bt;return((bt=this.cmap.unicode)!=null?bt.codeMap[wt]:void 0)||0},Et.prototype.widthOfGlyph=function(wt){var bt;return bt=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(wt).advance*bt},Et.prototype.widthOfString=function(wt,bt,Ht){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))+Ht*(1e3/bt)||0;return ge*(bt/1e3)},Et.prototype.lineHeight=function(wt,bt){var Ht;return bt==null&&(bt=!1),Ht=bt?this.lineGap:0,(this.ascender+Ht-this.decender)/1e3*wt},Et}();var Gu,Ch=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 bt,Ht;for(Ht=[],bt=0;0<=wt?bt<wt:bt>wt;bt=0<=wt?++bt:--bt)Ht[bt]=String.fromCharCode(this.readByte());return Ht.join("")},Et.prototype.writeString=function(wt){var bt,Ht,ie;for(ie=[],bt=0,Ht=wt.length;0<=Ht?bt<Ht:bt>Ht;bt=0<=Ht?++bt:--bt)ie.push(this.writeByte(wt.charCodeAt(bt)));return ie},Et.prototype.readShort=function(){return this.readInt16()},Et.prototype.writeShort=function(wt){return this.writeInt16(wt)},Et.prototype.readLongLong=function(){var wt,bt,Ht,ie,Yt,ge,we,be;return wt=this.readByte(),bt=this.readByte(),Ht=this.readByte(),ie=this.readByte(),Yt=this.readByte(),ge=this.readByte(),we=this.readByte(),be=this.readByte(),128&wt?-1*(72057594037927940*(255^wt)+281474976710656*(255^bt)+1099511627776*(255^Ht)+4294967296*(255^ie)+16777216*(255^Yt)+65536*(255^ge)+256*(255^we)+(255^be)+1):72057594037927940*wt+281474976710656*bt+1099511627776*Ht+4294967296*ie+16777216*Yt+65536*ge+256*we+be},Et.prototype.writeLongLong=function(wt){var bt,Ht;return bt=Math.floor(wt/4294967296),Ht=4294967295&wt,this.writeByte(bt>>24&255),this.writeByte(bt>>16&255),this.writeByte(bt>>8&255),this.writeByte(255&bt),this.writeByte(Ht>>24&255),this.writeByte(Ht>>16&255),this.writeByte(Ht>>8&255),this.writeByte(255&Ht)},Et.prototype.readInt=function(){return this.readInt32()},Et.prototype.writeInt=function(wt){return this.writeInt32(wt)},Et.prototype.read=function(wt){var bt,Ht;for(bt=[],Ht=0;0<=wt?Ht<wt:Ht>wt;Ht=0<=wt?++Ht:--Ht)bt.push(this.readByte());return bt},Et.prototype.write=function(wt){var bt,Ht,ie,Yt;for(Yt=[],Ht=0,ie=wt.length;Ht<ie;Ht++)bt=wt[Ht],Yt.push(this.writeByte(bt));return Yt},Et}(),zA=function(){var Et;function wt(bt){var Ht,ie,Yt;for(this.scalarType=bt.readInt(),this.tableCount=bt.readShort(),this.searchRange=bt.readShort(),this.entrySelector=bt.readShort(),this.rangeShift=bt.readShort(),this.tables={},ie=0,Yt=this.tableCount;0<=Yt?ie<Yt:ie>Yt;ie=0<=Yt?++ie:--ie)Ht={tag:bt.readString(4),checksum:bt.readInt(),offset:bt.readInt(),length:bt.readInt()},this.tables[Ht.tag]=Ht}return wt.prototype.encode=function(bt){var Ht,ie,Yt,ge,we,be,$e,fn,gn,Pn,Ke,gi,Jn;for(Jn in Ke=Object.keys(bt).length,be=Math.log(2),gn=16*Math.floor(Math.log(Ke)/be),ge=Math.floor(gn/be),fn=16*Ke-gn,(ie=new Ch).writeInt(this.scalarType),ie.writeShort(Ke),ie.writeShort(gn),ie.writeShort(ge),ie.writeShort(fn),Yt=16*Ke,$e=ie.pos+Yt,we=null,gi=[],bt)for(Pn=bt[Jn],ie.writeString(Jn),ie.writeInt(Et(Pn)),ie.writeInt($e),ie.writeInt(Pn.length),gi=gi.concat(Pn),Jn==="head"&&(we=$e),$e+=Pn.length;$e%4;)gi.push(0),$e++;return ie.write(gi),Ht=2981146554-Et(ie.data),ie.pos=we+8,ie.writeUInt32(Ht),ie.data},Et=function(bt){var Ht,ie,Yt,ge;for(bt=wd.call(bt);bt.length%4;)bt.push(0);for(Yt=new Ch(bt),ie=0,Ht=0,ge=bt.length;Ht<ge;Ht=Ht+=4)ie+=Yt.readUInt32();return 4294967295&ie},wt}(),ed={}.hasOwnProperty,el=function(Et,wt){for(var bt in wt)ed.call(wt,bt)&&(Et[bt]=wt[bt]);function Ht(){this.constructor=Et}return Ht.prototype=wt.prototype,Et.prototype=new Ht,Et.__super__=wt.prototype,Et};Gu=function(){function Et(wt){var bt;this.file=wt,bt=this.file.directory.tables[this.tag],this.exists=!!bt,bt&&(this.offset=bt.offset,this.length=bt.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 vs=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="head",wt.prototype.parse=function(bt){return bt.pos=this.offset,this.version=bt.readInt(),this.revision=bt.readInt(),this.checkSumAdjustment=bt.readInt(),this.magicNumber=bt.readInt(),this.flags=bt.readShort(),this.unitsPerEm=bt.readShort(),this.created=bt.readLongLong(),this.modified=bt.readLongLong(),this.xMin=bt.readShort(),this.yMin=bt.readShort(),this.xMax=bt.readShort(),this.yMax=bt.readShort(),this.macStyle=bt.readShort(),this.lowestRecPPEM=bt.readShort(),this.fontDirectionHint=bt.readShort(),this.indexToLocFormat=bt.readShort(),this.glyphDataFormat=bt.readShort()},wt.prototype.encode=function(bt){var Ht;return(Ht=new Ch).writeInt(this.version),Ht.writeInt(this.revision),Ht.writeInt(this.checkSumAdjustment),Ht.writeInt(this.magicNumber),Ht.writeShort(this.flags),Ht.writeShort(this.unitsPerEm),Ht.writeLongLong(this.created),Ht.writeLongLong(this.modified),Ht.writeShort(this.xMin),Ht.writeShort(this.yMin),Ht.writeShort(this.xMax),Ht.writeShort(this.yMax),Ht.writeShort(this.macStyle),Ht.writeShort(this.lowestRecPPEM),Ht.writeShort(this.fontDirectionHint),Ht.writeShort(bt),Ht.writeShort(this.glyphDataFormat),Ht.data},wt}(),rh=function(){function Et(wt,bt){var Ht,ie,Yt,ge,we,be,$e,fn,gn,Pn,Ke,gi,Jn,vi,Rn,di,Qi;switch(this.platformID=wt.readUInt16(),this.encodingID=wt.readShort(),this.offset=bt+wt.readInt(),gn=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(be=0;be<256;++be)this.codeMap[be]=wt.readByte();break;case 4:for(Ke=wt.readUInt16(),Pn=Ke/2,wt.pos+=6,Yt=function(){var rr,Er;for(Er=[],be=rr=0;0<=Pn?rr<Pn:rr>Pn;be=0<=Pn?++rr:--rr)Er.push(wt.readUInt16());return Er}(),wt.pos+=2,Jn=function(){var rr,Er;for(Er=[],be=rr=0;0<=Pn?rr<Pn:rr>Pn;be=0<=Pn?++rr:--rr)Er.push(wt.readUInt16());return Er}(),$e=function(){var rr,Er;for(Er=[],be=rr=0;0<=Pn?rr<Pn:rr>Pn;be=0<=Pn?++rr:--rr)Er.push(wt.readUInt16());return Er}(),fn=function(){var rr,Er;for(Er=[],be=rr=0;0<=Pn?rr<Pn:rr>Pn;be=0<=Pn?++rr:--rr)Er.push(wt.readUInt16());return Er}(),ie=(this.length-wt.pos+this.offset)/2,we=function(){var rr,Er;for(Er=[],be=rr=0;0<=ie?rr<ie:rr>ie;be=0<=ie?++rr:--rr)Er.push(wt.readUInt16());return Er}(),be=Rn=0,Qi=Yt.length;Rn<Qi;be=++Rn)for(vi=Yt[be],Ht=di=gi=Jn[be];gi<=vi?di<=vi:di>=vi;Ht=gi<=vi?++di:--di)fn[be]===0?ge=Ht+$e[be]:(ge=we[fn[be]/2+(Ht-gi)-(Pn-be)]||0)!==0&&(ge+=$e[be]),this.codeMap[Ht]=65535&ge}wt.pos=gn}return Et.encode=function(wt,bt){var Ht,ie,Yt,ge,we,be,$e,fn,gn,Pn,Ke,gi,Jn,vi,Rn,di,Qi,rr,Er,ao,gr,Ti,xr,kr,$n,ii,pe,me,Xe,Je,vn,nn,Tn,Un,Yn,Qe,hn,mn,Qn,Zn,ni,Ei,li,Xi,Zi,Ar;switch(me=new Ch,ge=Object.keys(wt).sort(function(br,io){return br-io}),bt){case"macroman":for(Jn=0,vi=function(){var br=[];for(gi=0;gi<256;++gi)br.push(0);return br}(),di={0:0},Yt={},Xe=0,Tn=ge.length;Xe<Tn;Xe++)di[li=wt[ie=ge[Xe]]]==null&&(di[li]=++Jn),Yt[ie]={old:wt[ie],new:di[wt[ie]]},vi[ie]=di[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:Jn+1};case"unicode":for(ii=[],gn=[],Qi=0,di={},Ht={},Rn=$e=null,Je=0,Un=ge.length;Je<Un;Je++)di[Er=wt[ie=ge[Je]]]==null&&(di[Er]=++Qi),Ht[ie]={old:Er,new:di[Er]},we=di[Er]-ie,Rn!=null&&we===$e||(Rn&&gn.push(Rn),ii.push(ie),$e=we),Rn=ie;for(Rn&&gn.push(Rn),gn.push(65535),ii.push(65535),kr=2*(xr=ii.length),Ti=2*Math.pow(Math.log(xr)/Math.LN2,2),Pn=Math.log(Ti/2)/Math.LN2,gr=2*xr-Ti,be=[],ao=[],Ke=[],gi=vn=0,Yn=ii.length;vn<Yn;gi=++vn){if($n=ii[gi],fn=gn[gi],$n===65535){be.push(0),ao.push(0);break}if($n-(pe=Ht[$n].new)>=32768)for(be.push(0),ao.push(2*(Ke.length+xr-gi)),ie=nn=$n;$n<=fn?nn<=fn:nn>=fn;ie=$n<=fn?++nn:--nn)Ke.push(Ht[ie].new);else be.push(pe-$n),ao.push(0)}for(me.writeUInt16(3),me.writeUInt16(1),me.writeUInt32(12),me.writeUInt16(4),me.writeUInt16(16+8*xr+2*Ke.length),me.writeUInt16(0),me.writeUInt16(kr),me.writeUInt16(Ti),me.writeUInt16(Pn),me.writeUInt16(gr),ni=0,Qe=gn.length;ni<Qe;ni++)ie=gn[ni],me.writeUInt16(ie);for(me.writeUInt16(0),Ei=0,hn=ii.length;Ei<hn;Ei++)ie=ii[Ei],me.writeUInt16(ie);for(Xi=0,mn=be.length;Xi<mn;Xi++)we=be[Xi],me.writeUInt16(we);for(Zi=0,Qn=ao.length;Zi<Qn;Zi++)rr=ao[Zi],me.writeUInt16(rr);for(Ar=0,Zn=Ke.length;Ar<Zn;Ar++)Jn=Ke[Ar],me.writeUInt16(Jn);return{charMap:Ht,subtable:me.data,maxGlyphID:Qi+1}}},Et}(),Zu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="cmap",wt.prototype.parse=function(bt){var Ht,ie,Yt;for(bt.pos=this.offset,this.version=bt.readUInt16(),Yt=bt.readUInt16(),this.tables=[],this.unicode=null,ie=0;0<=Yt?ie<Yt:ie>Yt;ie=0<=Yt?++ie:--ie)Ht=new rh(bt,this.offset),this.tables.push(Ht),Ht.isUnicode&&this.unicode==null&&(this.unicode=Ht);return!0},wt.encode=function(bt,Ht){var ie,Yt;return Ht==null&&(Ht="macroman"),ie=rh.encode(bt,Ht),(Yt=new Ch).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 el(wt,Gu),wt.prototype.tag="hhea",wt.prototype.parse=function(bt){return bt.pos=this.offset,this.version=bt.readInt(),this.ascender=bt.readShort(),this.decender=bt.readShort(),this.lineGap=bt.readShort(),this.advanceWidthMax=bt.readShort(),this.minLeftSideBearing=bt.readShort(),this.minRightSideBearing=bt.readShort(),this.xMaxExtent=bt.readShort(),this.caretSlopeRise=bt.readShort(),this.caretSlopeRun=bt.readShort(),this.caretOffset=bt.readShort(),bt.pos+=8,this.metricDataFormat=bt.readShort(),this.numberOfMetrics=bt.readUInt16()},wt}(),sa=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="OS/2",wt.prototype.parse=function(bt){if(bt.pos=this.offset,this.version=bt.readUInt16(),this.averageCharWidth=bt.readShort(),this.weightClass=bt.readUInt16(),this.widthClass=bt.readUInt16(),this.type=bt.readShort(),this.ySubscriptXSize=bt.readShort(),this.ySubscriptYSize=bt.readShort(),this.ySubscriptXOffset=bt.readShort(),this.ySubscriptYOffset=bt.readShort(),this.ySuperscriptXSize=bt.readShort(),this.ySuperscriptYSize=bt.readShort(),this.ySuperscriptXOffset=bt.readShort(),this.ySuperscriptYOffset=bt.readShort(),this.yStrikeoutSize=bt.readShort(),this.yStrikeoutPosition=bt.readShort(),this.familyClass=bt.readShort(),this.panose=function(){var Ht,ie;for(ie=[],Ht=0;Ht<10;++Ht)ie.push(bt.readByte());return ie}(),this.charRange=function(){var Ht,ie;for(ie=[],Ht=0;Ht<4;++Ht)ie.push(bt.readInt());return ie}(),this.vendorID=bt.readString(4),this.selection=bt.readShort(),this.firstCharIndex=bt.readShort(),this.lastCharIndex=bt.readShort(),this.version>0&&(this.ascent=bt.readShort(),this.descent=bt.readShort(),this.lineGap=bt.readShort(),this.winAscent=bt.readShort(),this.winDescent=bt.readShort(),this.codePageRange=function(){var Ht,ie;for(ie=[],Ht=0;Ht<2;Ht=++Ht)ie.push(bt.readInt());return ie}(),this.version>1))return this.xHeight=bt.readShort(),this.capHeight=bt.readShort(),this.defaultChar=bt.readShort(),this.breakChar=bt.readShort(),this.maxContext=bt.readShort()},wt}(),gu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="post",wt.prototype.parse=function(bt){var Ht,ie,Yt;switch(bt.pos=this.offset,this.format=bt.readInt(),this.italicAngle=bt.readInt(),this.underlinePosition=bt.readShort(),this.underlineThickness=bt.readShort(),this.isFixedPitch=bt.readInt(),this.minMemType42=bt.readInt(),this.maxMemType42=bt.readInt(),this.minMemType1=bt.readInt(),this.maxMemType1=bt.readInt(),this.format){case 65536:break;case 131072:var ge;for(ie=bt.readUInt16(),this.glyphNameIndex=[],ge=0;0<=ie?ge<ie:ge>ie;ge=0<=ie?++ge:--ge)this.glyphNameIndex.push(bt.readUInt16());for(this.names=[],Yt=[];bt.pos<this.offset+this.length;)Ht=bt.readByte(),Yt.push(this.names.push(bt.readString(Ht)));return Yt;case 151552:return ie=bt.readUInt16(),this.offsets=bt.read(ie);case 196608:break;case 262144:return this.map=function(){var we,be,$e;for($e=[],ge=we=0,be=this.file.maxp.numGlyphs;0<=be?we<be:we>be;ge=0<=be?++we:--we)$e.push(bt.readUInt32());return $e}.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 el(wt,Gu),wt.prototype.tag="name",wt.prototype.parse=function(bt){var Ht,ie,Yt,ge,we,be,$e,fn,gn,Pn,Ke;for(bt.pos=this.offset,bt.readShort(),Ht=bt.readShort(),be=bt.readShort(),ie=[],ge=0;0<=Ht?ge<Ht:ge>Ht;ge=0<=Ht?++ge:--ge)ie.push({platformID:bt.readShort(),encodingID:bt.readShort(),languageID:bt.readShort(),nameID:bt.readShort(),length:bt.readShort(),offset:this.offset+be+bt.readShort()});for($e={},ge=gn=0,Pn=ie.length;gn<Pn;ge=++gn)Yt=ie[ge],bt.pos=Yt.offset,fn=bt.readString(Yt.length),we=new Bh(fn,Yt),$e[Ke=Yt.nameID]==null&&($e[Ke]=[]),$e[Yt.nameID].push(we);this.strings=$e,this.copyright=$e[0],this.fontFamily=$e[1],this.fontSubfamily=$e[2],this.uniqueSubfamily=$e[3],this.fontName=$e[4],this.version=$e[5];try{this.postscriptName=$e[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(gi){this.postscriptName=$e[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=$e[7],this.manufacturer=$e[8],this.designer=$e[9],this.description=$e[10],this.vendorUrl=$e[11],this.designerUrl=$e[12],this.license=$e[13],this.licenseUrl=$e[14],this.preferredFamily=$e[15],this.preferredSubfamily=$e[17],this.compatibleFull=$e[18],this.sampleText=$e[19]},wt}(),Qh=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="maxp",wt.prototype.parse=function(bt){return bt.pos=this.offset,this.version=bt.readInt(),this.numGlyphs=bt.readUInt16(),this.maxPoints=bt.readUInt16(),this.maxContours=bt.readUInt16(),this.maxCompositePoints=bt.readUInt16(),this.maxComponentContours=bt.readUInt16(),this.maxZones=bt.readUInt16(),this.maxTwilightPoints=bt.readUInt16(),this.maxStorage=bt.readUInt16(),this.maxFunctionDefs=bt.readUInt16(),this.maxInstructionDefs=bt.readUInt16(),this.maxStackElements=bt.readUInt16(),this.maxSizeOfInstructions=bt.readUInt16(),this.maxComponentElements=bt.readUInt16(),this.maxComponentDepth=bt.readUInt16()},wt}(),Cu=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="hmtx",wt.prototype.parse=function(bt){var Ht,ie,Yt,ge,we,be,$e;for(bt.pos=this.offset,this.metrics=[],Ht=0,be=this.file.hhea.numberOfMetrics;0<=be?Ht<be:Ht>be;Ht=0<=be?++Ht:--Ht)this.metrics.push({advance:bt.readUInt16(),lsb:bt.readInt16()});for(Yt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var fn,gn;for(gn=[],Ht=fn=0;0<=Yt?fn<Yt:fn>Yt;Ht=0<=Yt?++fn:--fn)gn.push(bt.readInt16());return gn}(),this.widths=function(){var fn,gn,Pn,Ke;for(Ke=[],fn=0,gn=(Pn=this.metrics).length;fn<gn;fn++)ge=Pn[fn],Ke.push(ge.advance);return Ke}.call(this),ie=this.widths[this.widths.length-1],$e=[],Ht=we=0;0<=Yt?we<Yt:we>Yt;Ht=0<=Yt?++we:--we)$e.push(this.widths.push(ie));return $e},wt.prototype.forGlyph=function(bt){return bt in this.metrics?this.metrics[bt]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[bt-this.metrics.length]}},wt}(),wd=[].slice,Ea=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="glyf",wt.prototype.parse=function(){return this.cache={}},wt.prototype.glyphFor=function(bt){var Ht,ie,Yt,ge,we,be,$e,fn,gn,Pn;return bt in this.cache?this.cache[bt]:(ge=this.file.loca,Ht=this.file.contents,ie=ge.indexOf(bt),(Yt=ge.lengthOf(bt))===0?this.cache[bt]=null:(Ht.pos=this.offset+ie,we=(be=new Ch(Ht.read(Yt))).readShort(),fn=be.readShort(),Pn=be.readShort(),$e=be.readShort(),gn=be.readShort(),this.cache[bt]=we===-1?new Fa(be,fn,Pn,$e,gn):new oh(be,we,fn,Pn,$e,gn),this.cache[bt]))},wt.prototype.encode=function(bt,Ht,ie){var Yt,ge,we,be,$e;for(we=[],ge=[],be=0,$e=Ht.length;be<$e;be++)Yt=bt[Ht[be]],ge.push(we.length),Yt&&(we=we.concat(Yt.encode(ie)));return ge.push(we.length),{table:we,offsets:ge}},wt}(),oh=function(){function Et(wt,bt,Ht,ie,Yt,ge){this.raw=wt,this.numberOfContours=bt,this.xMin=Ht,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,bt,Ht,ie,Yt){var ge,we;for(this.raw=wt,this.xMin=bt,this.yMin=Ht,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,bt,Ht;for(bt=new Ch(wd.call(this.raw.data)),wt=0,Ht=this.glyphIDs.length;wt<Ht;++wt)bt.pos=this.glyphOffsets[wt];return bt.data},Et}(),gl=function(Et){function wt(){return wt.__super__.constructor.apply(this,arguments)}return el(wt,Gu),wt.prototype.tag="loca",wt.prototype.parse=function(bt){var Ht,ie;return bt.pos=this.offset,Ht=this.file.head.indexToLocFormat,this.offsets=Ht===0?function(){var Yt,ge;for(ge=[],ie=0,Yt=this.length;ie<Yt;ie+=2)ge.push(2*bt.readUInt16());return ge}.call(this):function(){var Yt,ge;for(ge=[],ie=0,Yt=this.length;ie<Yt;ie+=4)ge.push(bt.readUInt32());return ge}.call(this)},wt.prototype.indexOf=function(bt){return this.offsets[bt]},wt.prototype.lengthOf=function(bt){return this.offsets[bt+1]-this.offsets[bt]},wt.prototype.encode=function(bt,Ht){for(var ie=new Uint32Array(this.offsets.length),Yt=0,ge=0,we=0;we<ie.length;++we)if(ie[we]=Yt,ge<Ht.length&&Ht[ge]==we){++ge,ie[we]=Yt;var be=this.offsets[we],$e=this.offsets[we+1]-be;$e>0&&(Yt+=$e)}for(var fn=new Array(4*ie.length),gn=0;gn<ie.length;++gn)fn[4*gn+3]=255&ie[gn],fn[4*gn+2]=(65280&ie[gn])>>8,fn[4*gn+1]=(16711680&ie[gn])>>16,fn[4*gn]=(4278190080&ie[gn])>>24;return fn},wt}(),Hl=function(){function Et(wt){this.font=wt,this.subset={},this.unicodes={},this.next=33}return Et.prototype.generateCmap=function(){var wt,bt,Ht,ie,Yt;for(bt in ie=this.font.cmap.tables[0].codeMap,wt={},Yt=this.subset)Ht=Yt[bt],wt[bt]=ie[Ht];return wt},Et.prototype.glyphsFor=function(wt){var bt,Ht,ie,Yt,ge,we,be;for(ie={},ge=0,we=wt.length;ge<we;ge++)ie[Yt=wt[ge]]=this.font.glyf.glyphFor(Yt);for(Yt in bt=[],ie)(Ht=ie[Yt])!=null&&Ht.compound&&bt.push.apply(bt,Ht.glyphIDs);if(bt.length>0)for(Yt in be=this.glyphsFor(bt))Ht=be[Yt],ie[Yt]=Ht;return ie},Et.prototype.encode=function(wt,bt){var Ht,ie,Yt,ge,we,be,$e,fn,gn,Pn,Ke,gi,Jn,vi,Rn;for(ie in Ht=Zu.encode(this.generateCmap(),"unicode"),ge=this.glyphsFor(wt),Ke={0:0},Rn=Ht.charMap)Ke[(be=Rn[ie]).old]=be.new;for(gi in Pn=Ht.maxGlyphID,ge)gi in Ke||(Ke[gi]=Pn++);return fn=function(di){var Qi,rr;for(Qi in rr={},di)rr[di[Qi]]=Qi;return rr}(Ke),gn=Object.keys(fn).sort(function(di,Qi){return di-Qi}),Jn=function(){var di,Qi,rr;for(rr=[],di=0,Qi=gn.length;di<Qi;di++)we=gn[di],rr.push(fn[we]);return rr}(),Yt=this.font.glyf.encode(ge,Jn,Ke),$e=this.font.loca.encode(Yt.offsets,Jn),vi={cmap:this.font.cmap.raw(),glyf:Yt.table,loca:$e,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(bt)},this.font.os2.exists&&(vi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(vi)},Et}();Ho.API.PDFObject=function(){var Et;function wt(){}return Et=function(bt,Ht){return(Array(Ht+1).join("0")+bt).slice(-Ht)},wt.convert=function(bt){var Ht,ie,Yt,ge;if(Array.isArray(bt))return"["+function(){var we,be,$e;for($e=[],we=0,be=bt.length;we<be;we++)Ht=bt[we],$e.push(wt.convert(Ht));return $e}().join(" ")+"]";if(typeof bt=="string")return"/"+bt;if(bt!=null&&bt.isString)return"("+bt+")";if(bt instanceof Date)return"(D:"+Et(bt.getUTCFullYear(),4)+Et(bt.getUTCMonth(),2)+Et(bt.getUTCDate(),2)+Et(bt.getUTCHours(),2)+Et(bt.getUTCMinutes(),2)+Et(bt.getUTCSeconds(),2)+"Z)";if({}.toString.call(bt)==="[object Object]"){for(ie in Yt=["<<"],bt)ge=bt[ie],Yt.push("/"+ie+" "+wt.convert(ge));return Yt.push(">>"),Yt.join(`
`)}return""+bt},wt}();var Yl=Ho},86129:function(hi,Cn,Ft){var Lt=Ft(19208).lW,ce=Ft(97671);(function(re){hi.exports=re()})(function(){return function re(ke,ee,Vt){function Mt(Pt,oe){if(!ee[Pt]){if(!ke[Pt]){var Kt=void 0;if(!oe&&Kt)return require(Pt,!0);if(jt)return jt(Pt,!0);var $t=new Error("Cannot find module '"+Pt+"'");throw $t.code="MODULE_NOT_FOUND",$t}var Ct=ee[Pt]={exports:{}};ke[Pt][0].call(Ct.exports,function(et){var tt=ke[Pt][1][et];return Mt(tt||et)},Ct,Ct.exports,re,ke,ee,Vt)}return ee[Pt].exports}for(var jt=void 0,te=0;te<Vt.length;te++)Mt(Vt[te]);return Mt}({1:[function(re,ke,ee){"use strict";var Vt=re("./utils"),Mt=re("./support"),jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ee.encode=function(te){for(var Pt,oe,Kt,$t,Ct,et,tt,lt=[],rt=0,ht=te.length,dt=ht,xt=Vt.getTypeOf(te)!=="string";rt<te.length;)dt=ht-rt,Kt=xt?(Pt=te[rt++],oe=rt<ht?te[rt++]:0,rt<ht?te[rt++]:0):(Pt=te.charCodeAt(rt++),oe=rt<ht?te.charCodeAt(rt++):0,rt<ht?te.charCodeAt(rt++):0),$t=Pt>>2,Ct=(3&Pt)<<4|oe>>4,et=1<dt?(15&oe)<<2|Kt>>6:64,tt=2<dt?63&Kt:64,lt.push(jt.charAt($t)+jt.charAt(Ct)+jt.charAt(et)+jt.charAt(tt));return lt.join("")},ee.decode=function(te){var Pt,oe,Kt,$t,Ct,et,tt=0,lt=0,rt="data:";if(te.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ht,dt=3*(te=te.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(te.charAt(te.length-1)===jt.charAt(64)&&dt--,te.charAt(te.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<te.length;)Pt=jt.indexOf(te.charAt(tt++))<<2|($t=jt.indexOf(te.charAt(tt++)))>>4,oe=(15&$t)<<4|(Ct=jt.indexOf(te.charAt(tt++)))>>2,Kt=(3&Ct)<<6|(et=jt.indexOf(te.charAt(tt++))),ht[lt++]=Pt,Ct!==64&&(ht[lt++]=oe),et!==64&&(ht[lt++]=Kt);return ht}},{"./support":30,"./utils":32}],2:[function(re,ke,ee){"use strict";var Vt=re("./external"),Mt=re("./stream/DataWorker"),jt=re("./stream/Crc32Probe"),te=re("./stream/DataLengthProbe");function Pt(oe,Kt,$t,Ct,et){this.compressedSize=oe,this.uncompressedSize=Kt,this.crc32=$t,this.compression=Ct,this.compressedContent=et}Pt.prototype={getContentWorker:function(){var oe=new Mt(Vt.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new te("data_length")),Kt=this;return oe.on("end",function(){if(this.streamInfo.data_length!==Kt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),oe},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)}},Pt.createWorkerFrom=function(oe,Kt,$t){return oe.pipe(new jt).pipe(new te("uncompressedSize")).pipe(Kt.compressWorker($t)).pipe(new te("compressedSize")).withStreamInfo("compression",Kt)},ke.exports=Pt},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(re,ke,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,ke,ee){"use strict";var Vt=re("./utils"),Mt=function(){for(var jt,te=[],Pt=0;Pt<256;Pt++){jt=Pt;for(var oe=0;oe<8;oe++)jt=1&jt?3988292384^jt>>>1:jt>>>1;te[Pt]=jt}return te}();ke.exports=function(jt,te){return jt!==void 0&&jt.length?Vt.getTypeOf(jt)!=="string"?function(Pt,oe,Kt,$t){var Ct=Mt,et=$t+Kt;Pt^=-1;for(var tt=$t;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^oe[tt])];return-1^Pt}(0|te,jt,jt.length,0):function(Pt,oe,Kt,$t){var Ct=Mt,et=$t+Kt;Pt^=-1;for(var tt=$t;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^oe.charCodeAt(tt))];return-1^Pt}(0|te,jt,jt.length,0):0}},{"./utils":32}],5:[function(re,ke,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,ke,ee){"use strict";var Vt=null;Vt=typeof Promise!="undefined"?Promise:re("lie"),ke.exports={Promise:Vt}},{lie:37}],7:[function(re,ke,ee){"use strict";var Vt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Mt=re("pako"),jt=re("./utils"),te=re("./stream/GenericWorker"),Pt=Vt?"uint8array":"array";function oe(Kt,$t){te.call(this,"FlateWorker/"+Kt),this._pako=null,this._pakoAction=Kt,this._pakoOptions=$t,this.meta={}}ee.magic="\b\0",jt.inherits(oe,te),oe.prototype.processChunk=function(Kt){this.meta=Kt.meta,this._pako===null&&this._createPako(),this._pako.push(jt.transformTo(Pt,Kt.data),!1)},oe.prototype.flush=function(){te.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},oe.prototype.cleanUp=function(){te.prototype.cleanUp.call(this),this._pako=null},oe.prototype._createPako=function(){this._pako=new Mt[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Kt=this;this._pako.onData=function($t){Kt.push({data:$t,meta:Kt.meta})}},ee.compressWorker=function(Kt){return new oe("Deflate",Kt)},ee.uncompressWorker=function(){return new oe("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(re,ke,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,Gt=ht!==Pt.utf8encode,se=jt.transformTo("string",ht(Nt.name)),le=jt.transformTo("string",Pt.utf8encode(Nt.name)),Ae=Nt.comment,Pe=jt.transformTo("string",ht(Ae)),qt=jt.transformTo("string",Pt.utf8encode(Ae)),ze=le.length!==Nt.name.length,Wt=qt.length!==Ae.length,Ge="",_e="",Ne="",We=Nt.dir,Re=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),Gt||!ze&&!Wt||(ne|=2048);var Ce=0,bn=0;We&&(Ce|=16),rt==="UNIX"?(bn=798,Ce|=function(Ze,Mn){var Vn=Ze;return Ze||(Vn=Mn?16893:33204),(65535&Vn)<<16}(Nt.unixPermissions,We)):(bn=20,Ce|=function(Ze){return 63&(Ze||0)}(Nt.dosPermissions)),dt=Re.getUTCHours(),dt<<=6,dt|=Re.getUTCMinutes(),dt<<=5,dt|=Re.getUTCSeconds()/2,xt=Re.getUTCFullYear()-1980,xt<<=4,xt|=Re.getUTCMonth()+1,xt<<=5,xt|=Re.getUTCDate(),ze&&(_e=Vt(1,1)+Vt(oe(se),4)+le,Ge+="up"+Vt(_e.length,2)+_e),Wt&&(Ne=Vt(1,1)+Vt(oe(Pe),4)+qt,Ge+="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(se.length,2),Ln+=Vt(Ge.length,2),{fileRecord:Kt.LOCAL_FILE_HEADER+Ln+se+Ge,dirRecord:Kt.CENTRAL_FILE_HEADER+Vt(bn,2)+Ln+Vt(Pe.length,2)+"\0\0\0\0"+Vt(Ce,4)+Vt(lt,4)+se+Ge+Pe}}var jt=re("../utils"),te=re("../stream/GenericWorker"),Pt=re("../utf8"),oe=re("../crc32"),Kt=re("../signature");function $t(Ct,et,tt,lt){te.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($t,te),$t.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,te.prototype.push.call(this,{data:Ct.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},$t.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},$t.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 Kt.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},$t.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 Kt.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}})},$t.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},$t.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},$t.prototype.resume=function(){return!!te.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},$t.prototype.error=function(Ct){var et=this._sources;if(!te.prototype.error.call(this,Ct))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(Ct)}catch(lt){}return!0},$t.prototype.lock=function(){te.prototype.lock.call(this);for(var Ct=this._sources,et=0;et<Ct.length;et++)Ct[et].lock()},ke.exports=$t},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(re,ke,ee){"use strict";var Vt=re("../compressions"),Mt=re("./ZipFileWorker");ee.generateWorker=function(jt,te,Pt){var oe=new Mt(te.streamFiles,Pt,te.platform,te.encodeFileName),Kt=0;try{jt.forEach(function($t,Ct){Kt++;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,te.compression),tt=Ct.options.compressionOptions||te.compressionOptions||{},lt=Ct.dir,rt=Ct.date;Ct._compressWorker(et,tt).withStreamInfo("file",{name:$t,dir:lt,date:rt,comment:Ct.comment||"",unixPermissions:Ct.unixPermissions,dosPermissions:Ct.dosPermissions}).pipe(oe)}),oe.entriesCount=Kt}catch($t){oe.error($t)}return oe}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(re,ke,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"),ke.exports=Vt},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(re,ke,ee){"use strict";var Vt=re("./utils"),Mt=re("./external"),jt=re("./utf8"),te=re("./zipEntries"),Pt=re("./stream/Crc32Probe"),oe=re("./nodejsUtils");function Kt($t){return new Mt.Promise(function(Ct,et){var tt=$t.decompressed.getContentWorker().pipe(new Pt);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==$t.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):Ct()}).resume()})}ke.exports=function($t,Ct){var et=this;return Ct=Vt.extend(Ct||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:jt.utf8decode}),oe.isNode&&oe.isStream($t)?Mt.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Vt.prepareContent("the loaded zip file",$t,!0,Ct.optimizedBinaryString,Ct.base64).then(function(tt){var lt=new te(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(Kt(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,ke,ee){"use strict";var Vt=re("../utils"),Mt=re("../stream/GenericWorker");function jt(te,Pt){Mt.call(this,"Nodejs stream input adapter for "+te),this._upstreamEnded=!1,this._bindStream(Pt)}Vt.inherits(jt,Mt),jt.prototype._bindStream=function(te){var Pt=this;(this._stream=te).pause(),te.on("data",function(oe){Pt.push({data:oe,meta:{percent:0}})}).on("error",function(oe){Pt.isPaused?this.generatedError=oe:Pt.error(oe)}).on("end",function(){Pt.isPaused?Pt._upstreamEnded=!0:Pt.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)},ke.exports=jt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(re,ke,ee){"use strict";var Vt=re("readable-stream").Readable;function Mt(jt,te,Pt){Vt.call(this,te),this._helper=jt;var oe=this;jt.on("data",function(Kt,$t){oe.push(Kt)||oe._helper.pause(),Pt&&Pt($t)}).on("error",function(Kt){oe.emit("error",Kt)}).on("end",function(){oe.push(null)})}re("../utils").inherits(Mt,Vt),Mt.prototype._read=function(){this._helper.resume()},ke.exports=Mt},{"../utils":32,"readable-stream":16}],14:[function(re,ke,ee){"use strict";ke.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,ke,ee){"use strict";function Vt(Nt,Ut,Gt){var se,le=jt.getTypeOf(Ut),Ae=jt.extend(Gt||{},oe);Ae.date=Ae.date||new Date,Ae.compression!==null&&(Ae.compression=Ae.compression.toUpperCase()),typeof Ae.unixPermissions=="string"&&(Ae.unixPermissions=parseInt(Ae.unixPermissions,8)),Ae.unixPermissions&&16384&Ae.unixPermissions&&(Ae.dir=!0),Ae.dosPermissions&&16&Ae.dosPermissions&&(Ae.dir=!0),Ae.dir&&(Nt=rt(Nt)),Ae.createFolders&&(se=lt(Nt))&&ht.call(this,se,!0);var Pe=le==="string"&&Ae.binary===!1&&Ae.base64===!1;Gt&&Gt.binary!==void 0||(Ae.binary=!Pe),(Ut instanceof Kt&&Ut.uncompressedSize===0||Ae.dir||!Ut||Ut.length===0)&&(Ae.base64=!1,Ae.binary=!0,Ut="",Ae.compression="STORE",le="string");var qt=null;qt=Ut instanceof Kt||Ut instanceof te?Ut:et.isNode&&et.isStream(Ut)?new tt(Nt,Ut):jt.prepareContent(Nt,Ut,Ae.binary,Ae.optimizedBinaryString,Ae.base64);var ze=new $t(Nt,qt,Ae);this.files[Nt]=ze}var Mt=re("./utf8"),jt=re("./utils"),te=re("./stream/GenericWorker"),Pt=re("./stream/StreamHelper"),oe=re("./defaults"),Kt=re("./compressedObject"),$t=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:oe.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,Gt,se;for(Ut in this.files)se=this.files[Ut],(Gt=Ut.slice(this.root.length,Ut.length))&&Ut.slice(0,this.root.length)===this.root&&Nt(Gt,se)},filter:function(Nt){var Ut=[];return this.forEach(function(Gt,se){Nt(Gt,se)&&Ut.push(se)}),Ut},file:function(Nt,Ut,Gt){if(arguments.length!==1)return Nt=this.root+Nt,Vt.call(this,Nt,Ut,Gt),this;if(dt(Nt)){var se=Nt;return this.filter(function(Ae,Pe){return!Pe.dir&&se.test(Ae)})}var le=this.files[this.root+Nt];return le&&!le.dir?le:null},folder:function(Nt){if(!Nt)return this;if(dt(Nt))return this.filter(function(le,Ae){return Ae.dir&&Nt.test(le)});var Ut=this.root+Nt,Gt=ht.call(this,Ut),se=this.clone();return se.root=Gt.name,se},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 Gt=this.filter(function(le,Ae){return Ae.name.slice(0,Nt.length)===Nt}),se=0;se<Gt.length;se++)delete this.files[Gt[se].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,Gt={};try{if((Gt=jt.extend(Nt||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Mt.utf8encode})).type=Gt.type.toLowerCase(),Gt.compression=Gt.compression.toUpperCase(),Gt.type==="binarystring"&&(Gt.type="string"),!Gt.type)throw new Error("No output type specified.");jt.checkSupport(Gt.type),Gt.platform!=="darwin"&&Gt.platform!=="freebsd"&&Gt.platform!=="linux"&&Gt.platform!=="sunos"||(Gt.platform="UNIX"),Gt.platform==="win32"&&(Gt.platform="DOS");var se=Gt.comment||this.comment||"";Ut=Ct.generateWorker(this,Gt,se)}catch(le){(Ut=new te("error")).error(le)}return new Pt(Ut,Gt.type||"string",Gt.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)}};ke.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,ke,ee){"use strict";ke.exports=re("stream")},{stream:void 0}],17:[function(re,ke,ee){"use strict";var Vt=re("./DataReader");function Mt(jt){Vt.call(this,jt);for(var te=0;te<this.data.length;te++)jt[te]=255&jt[te]}re("../utils").inherits(Mt,Vt),Mt.prototype.byteAt=function(jt){return this.data[this.zero+jt]},Mt.prototype.lastIndexOfSignature=function(jt){for(var te=jt.charCodeAt(0),Pt=jt.charCodeAt(1),oe=jt.charCodeAt(2),Kt=jt.charCodeAt(3),$t=this.length-4;0<=$t;--$t)if(this.data[$t]===te&&this.data[$t+1]===Pt&&this.data[$t+2]===oe&&this.data[$t+3]===Kt)return $t-this.zero;return-1},Mt.prototype.readAndCheckSignature=function(jt){var te=jt.charCodeAt(0),Pt=jt.charCodeAt(1),oe=jt.charCodeAt(2),Kt=jt.charCodeAt(3),$t=this.readData(4);return te===$t[0]&&Pt===$t[1]&&oe===$t[2]&&Kt===$t[3]},Mt.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return[];var te=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},ke.exports=Mt},{"../utils":32,"./DataReader":18}],18:[function(re,ke,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 te,Pt=0;for(this.checkOffset(jt),te=this.index+jt-1;te>=this.index;te--)Pt=(Pt<<8)+this.byteAt(te);return this.index+=jt,Pt},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))}},ke.exports=Mt},{"../utils":32}],19:[function(re,ke,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 te=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},ke.exports=Mt},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(re,ke,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 te=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},ke.exports=Mt},{"../utils":32,"./DataReader":18}],21:[function(re,ke,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 te=this.data.subarray(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,te},ke.exports=Mt},{"../utils":32,"./ArrayReader":17}],22:[function(re,ke,ee){"use strict";var Vt=re("../utils"),Mt=re("../support"),jt=re("./ArrayReader"),te=re("./StringReader"),Pt=re("./NodeBufferReader"),oe=re("./Uint8ArrayReader");ke.exports=function(Kt){var $t=Vt.getTypeOf(Kt);return Vt.checkSupport($t),$t!=="string"||Mt.uint8array?$t==="nodebuffer"?new Pt(Kt):Mt.uint8array?new oe(Vt.transformTo("uint8array",Kt)):new jt(Vt.transformTo("array",Kt)):new te(Kt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(re,ke,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,ke,ee){"use strict";var Vt=re("./GenericWorker"),Mt=re("../utils");function jt(te){Vt.call(this,"ConvertWorker to "+te),this.destType=te}Mt.inherits(jt,Vt),jt.prototype.processChunk=function(te){this.push({data:Mt.transformTo(this.destType,te.data),meta:te.meta})},ke.exports=jt},{"../utils":32,"./GenericWorker":28}],25:[function(re,ke,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(te){this.streamInfo.crc32=Mt(te.data,this.streamInfo.crc32||0),this.push(te)},ke.exports=jt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(re,ke,ee){"use strict";var Vt=re("../utils"),Mt=re("./GenericWorker");function jt(te){Mt.call(this,"DataLengthProbe for "+te),this.propName=te,this.withStreamInfo(te,0)}Vt.inherits(jt,Mt),jt.prototype.processChunk=function(te){if(te){var Pt=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=Pt+te.data.length}Mt.prototype.processChunk.call(this,te)},ke.exports=jt},{"../utils":32,"./GenericWorker":28}],27:[function(re,ke,ee){"use strict";var Vt=re("../utils"),Mt=re("./GenericWorker");function jt(te){Mt.call(this,"DataWorker");var Pt=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,te.then(function(oe){Pt.dataIsReady=!0,Pt.data=oe,Pt.max=oe&&oe.length||0,Pt.type=Vt.getTypeOf(oe),Pt.isPaused||Pt._tickAndRepeat()},function(oe){Pt.error(oe)})}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 te=null,Pt=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":te=this.data.substring(this.index,Pt);break;case"uint8array":te=this.data.subarray(this.index,Pt);break;case"array":case"nodebuffer":te=this.data.slice(this.index,Pt)}return this.index=Pt,this.push({data:te,meta:{percent:this.max?this.index/this.max*100:0}})},ke.exports=jt},{"../utils":32,"./GenericWorker":28}],28:[function(re,ke,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 te=0;te<this._listeners[Mt].length;te++)this._listeners[Mt][te].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(te){jt.processChunk(te)}),Mt.on("end",function(){jt.end()}),Mt.on("error",function(te){jt.error(te)}),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}},ke.exports=Vt},{}],29:[function(re,ke,ee){"use strict";var Vt=re("../utils"),Mt=re("./ConvertWorker"),jt=re("./GenericWorker"),te=re("../base64"),Pt=re("../support"),oe=re("../external"),Kt=null;if(Pt.nodestream)try{Kt=re("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function $t(et,tt){return new oe.Promise(function(lt,rt){var ht=[],dt=et._internalType,xt=et._outputType,Nt=et._mimeType;et.on("data",function(Ut,Gt){ht.push(Ut),tt&&tt(Gt)}).on("error",function(Ut){ht=[],rt(Ut)}).on("end",function(){try{var Ut=function(Gt,se,le){switch(Gt){case"blob":return Vt.newBlob(Vt.transformTo("arraybuffer",se),le);case"base64":return te.encode(se);default:return Vt.transformTo(Gt,se)}}(xt,function(Gt,se){var le,Ae=0,Pe=null,qt=0;for(le=0;le<se.length;le++)qt+=se[le].length;switch(Gt){case"string":return se.join("");case"array":return Array.prototype.concat.apply([],se);case"uint8array":for(Pe=new Uint8Array(qt),le=0;le<se.length;le++)Pe.set(se[le],Ae),Ae+=se[le].length;return Pe;case"nodebuffer":return Lt.concat(se);default:throw new Error("concat : unsupported type '"+Gt+"'")}}(dt,ht),Nt);lt(Ut)}catch(Gt){rt(Gt)}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 $t(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 Kt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},ke.exports=Ct},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(re,ke,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(te){ee.blob=!1}}}try{ee.nodestream=!!re("readable-stream").Readable}catch(jt){ee.nodestream=!1}},{"readable-stream":16}],31:[function(re,ke,ee){"use strict";for(var Vt=re("./utils"),Mt=re("./support"),jt=re("./nodejsUtils"),te=re("./stream/GenericWorker"),Pt=new Array(256),oe=0;oe<256;oe++)Pt[oe]=252<=oe?6:248<=oe?5:240<=oe?4:224<=oe?3:192<=oe?2:1;Pt[254]=Pt[254]=1;function Kt(){te.call(this,"utf-8 decode"),this.leftOver=null}function $t(){te.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=Pt[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(Kt,te),Kt.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+Pt[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})},Kt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ee.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ee.Utf8DecodeWorker=Kt,Vt.inherits($t,te),$t.prototype.processChunk=function(Ct){this.push({data:ee.utf8encode(Ct.data),meta:Ct.meta})},ee.Utf8EncodeWorker=$t},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(re,ke,ee){"use strict";var Vt=re("./support"),Mt=re("./base64"),jt=re("./nodejsUtils"),te=re("./external");function Pt(tt){return tt}function oe(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 Kt={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 $t(tt){var lt=65536,rt=ee.getTypeOf(tt),ht=!0;if(rt==="uint8array"?ht=Kt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ht=Kt.applyCanBeUsed.nodebuffer),ht)for(;1<lt;)try{return Kt.stringifyByChunk(tt,rt,lt)}catch(dt){lt=Math.floor(lt/2)}return Kt.stringifyByChar(tt)}function Ct(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}ee.applyFromCharCode=$t;var et={};et.string={string:Pt,array:function(tt){return oe(tt,new Array(tt.length))},arraybuffer:function(tt){return et.string.uint8array(tt).buffer},uint8array:function(tt){return oe(tt,new Uint8Array(tt.length))},nodebuffer:function(tt){return oe(tt,jt.allocBuffer(tt.length))}},et.array={string:$t,array:Pt,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 $t(new Uint8Array(tt))},array:function(tt){return Ct(new Uint8Array(tt),new Array(tt.byteLength))},arraybuffer:Pt,uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(new Uint8Array(tt))}},et.uint8array={string:$t,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return tt.buffer},uint8array:Pt,nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.nodebuffer={string:$t,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:Pt},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 te.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 te.Promise(function(Nt,Ut){var Gt=new FileReader;Gt.onload=function(se){Nt(se.target.result)},Gt.onerror=function(se){Ut(se.target.error)},Gt.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 oe(Ut,Vt.uint8array?new Uint8Array(Ut.length):new Array(Ut.length))}(xt))),xt):te.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,ke,ee){"use strict";var Vt=re("./reader/readerFor"),Mt=re("./utils"),jt=re("./signature"),te=re("./zipEntry"),Pt=re("./support");function oe(Kt){this.files=[],this.loadOptions=Kt}oe.prototype={checkSignature:function(Kt){if(!this.reader.readAndCheckSignature(Kt)){this.reader.index-=4;var $t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Mt.pretty($t)+", expected "+Mt.pretty(Kt)+")")}},isSignature:function(Kt,$t){var Ct=this.reader.index;this.reader.setIndex(Kt);var et=this.reader.readString(4)===$t;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 Kt=this.reader.readData(this.zipCommentLength),$t=Pt.uint8array?"uint8array":"array",Ct=Mt.transformTo($t,Kt);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 Kt,$t,Ct,et=this.zip64EndOfCentralSize-44;0<et;)Kt=this.reader.readInt(2),$t=this.reader.readInt(4),Ct=this.reader.readData($t),this.zip64ExtensibleData[Kt]={id:Kt,length:$t,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 Kt,$t;for(Kt=0;Kt<this.files.length;Kt++)$t=this.files[Kt],this.reader.setIndex($t.localHeaderOffset),this.checkSignature(jt.LOCAL_FILE_HEADER),$t.readLocalPart(this.reader),$t.handleUTF8(),$t.processAttributes()},readCentralDir:function(){var Kt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(jt.CENTRAL_FILE_HEADER);)(Kt=new te({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(Kt);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 Kt=this.reader.lastIndexOfSignature(jt.CENTRAL_DIRECTORY_END);if(Kt<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(Kt);var $t=Kt;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,(Kt=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(Kt),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=$t-Ct;if(0<et)this.isSignature($t,jt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(Kt){this.reader=Vt(Kt)},load:function(Kt){this.prepareReader(Kt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},ke.exports=oe},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(re,ke,ee){"use strict";var Vt=re("./reader/readerFor"),Mt=re("./utils"),jt=re("./compressedObject"),te=re("./crc32"),Pt=re("./utf8"),oe=re("./compressions"),Kt=re("./support");function $t(Ct,et){this.options=Ct,this.loadOptions=et}$t.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 oe)if(Object.prototype.hasOwnProperty.call(oe,rt)&&oe[rt].magic===lt)return oe[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=Kt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Pt.utf8decode(this.fileName),this.fileCommentStr=Pt.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||te(this.fileName)!==et.readInt(4)?null:Pt.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||te(this.fileComment)!==et.readInt(4)?null:Pt.utf8decode(et.readData(Ct.length-5))}return null}},ke.exports=$t},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(re,ke,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"),te=re("./utf8"),Pt=re("./compressedObject"),oe=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 te.Utf8EncodeWorker)),!ht&&rt&&(tt=tt.pipe(new te.Utf8DecodeWorker))}catch(dt){(tt=new oe("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 Pt&&this._data.compression.magic===et.magic)return this._data.getCompressedWorker();var lt=this._decompressWorker();return this._dataBinary||(lt=lt.pipe(new te.Utf8EncodeWorker)),Pt.createWorkerFrom(lt,et,tt)},_decompressWorker:function(){return this._data instanceof Pt?this._data.getContentWorker():this._data instanceof oe?this._data:new jt(this._data)}};for(var Kt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],$t=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ct=0;Ct<Kt.length;Ct++)Vt.prototype[Kt[Ct]]=$t;ke.exports=Vt},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(re,ke,ee){(function(Vt){"use strict";var Mt,jt,te=Vt.MutationObserver||Vt.WebKitMutationObserver;if(te){var Pt=0,oe=new te(et),Kt=Vt.document.createTextNode("");oe.observe(Kt,{characterData:!0}),Mt=function(){Kt.data=Pt=++Pt%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 $t=new Vt.MessageChannel;$t.port1.onmessage=et,Mt=function(){$t.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}ke.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,ke,ee){"use strict";var Vt=re("immediate");function Mt(){}var jt={},te=["REJECTED"],Pt=["FULFILLED"],oe=["PENDING"];function Kt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=oe,this.queue=[],this.outcome=void 0,rt!==Mt&&tt(this,rt)}function $t(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(Gt){dt||(dt=!0,jt.reject(rt,Gt))}function Nt(Gt){dt||(dt=!0,jt.resolve(rt,Gt))}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}(ke.exports=Kt).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})})},Kt.prototype.catch=function(rt){return this.then(null,rt)},Kt.prototype.then=function(rt,ht){if(typeof rt!="function"&&this.state===Pt||typeof ht!="function"&&this.state===te)return this;var dt=new this.constructor(Mt);return this.state!==oe?Ct(dt,this.state===Pt?rt:ht,this.outcome):this.queue.push(new $t(dt,rt,ht)),dt},$t.prototype.callFulfilled=function(rt){jt.resolve(this.promise,rt)},$t.prototype.otherCallFulfilled=function(rt){Ct(this.promise,this.onFulfilled,rt)},$t.prototype.callRejected=function(rt){jt.reject(this.promise,rt)},$t.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=Pt,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=te,rt.outcome=ht;for(var dt=-1,xt=rt.queue.length;++dt<xt;)rt.queue[dt].callRejected(ht);return rt},Kt.resolve=function(rt){return rt instanceof this?rt:jt.resolve(new this(Mt),rt)},Kt.reject=function(rt){var ht=new this(Mt);return jt.reject(ht,rt)},Kt.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,Gt=-1,se=new this(Mt);++Gt<dt;)le(rt[Gt],Gt);return se;function le(Ae,Pe){ht.resolve(Ae).then(function(qt){Nt[Pe]=qt,++Ut!==dt||xt||(xt=!0,jt.resolve(se,Nt))},function(qt){xt||(xt=!0,jt.reject(se,qt))})}},Kt.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;)Gt=rt[Nt],ht.resolve(Gt).then(function(se){xt||(xt=!0,jt.resolve(Ut,se))},function(se){xt||(xt=!0,jt.reject(Ut,se))});var Gt;return Ut}},{immediate:36}],38:[function(re,ke,ee){"use strict";var Vt={};(0,re("./lib/utils/common").assign)(Vt,re("./lib/deflate"),re("./lib/inflate"),re("./lib/zlib/constants")),ke.exports=Vt},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(re,ke,ee){"use strict";var Vt=re("./zlib/deflate"),Mt=re("./utils/common"),jt=re("./utils/strings"),te=re("./zlib/messages"),Pt=re("./zlib/zstream"),oe=Object.prototype.toString,Kt=0,$t=-1,Ct=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=Mt.assign({level:$t,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 Pt,this.strm.avail_out=0;var dt=Vt.deflateInit2(this.strm,ht.level,ht.method,ht.windowBits,ht.memLevel,ht.strategy);if(dt!==Kt)throw new Error(te[dt]);if(ht.header&&Vt.deflateSetHeader(this.strm,ht.header),ht.dictionary){var xt;if(xt=typeof ht.dictionary=="string"?jt.string2buf(ht.dictionary):oe.call(ht.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ht.dictionary):ht.dictionary,(dt=Vt.deflateSetDictionary(this.strm,xt))!==Kt)throw new Error(te[dt]);this._dict_set=!0}}function lt(rt,ht){var dt=new tt(ht);if(dt.push(rt,!0),dt.err)throw dt.msg||te[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):oe.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!==Kt)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===Kt):xt!==2||(this.onEnd(Kt),!(Nt.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===Kt&&(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,ke,ee){"use strict";var Vt=re("./zlib/inflate"),Mt=re("./utils/common"),jt=re("./utils/strings"),te=re("./zlib/constants"),Pt=re("./zlib/messages"),oe=re("./zlib/zstream"),Kt=re("./zlib/gzheader"),$t=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 oe,this.strm.avail_out=0;var rt=Vt.inflateInit2(this.strm,lt.windowBits);if(rt!==te.Z_OK)throw new Error(Pt[rt]);this.header=new Kt,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||Pt[rt.err];return rt.result}Ct.prototype.push=function(tt,lt){var rt,ht,dt,xt,Nt,Ut,Gt=this.strm,se=this.options.chunkSize,le=this.options.dictionary,Ae=!1;if(this.ended)return!1;ht=lt===~~lt?lt:lt===!0?te.Z_FINISH:te.Z_NO_FLUSH,typeof tt=="string"?Gt.input=jt.binstring2buf(tt):$t.call(tt)==="[object ArrayBuffer]"?Gt.input=new Uint8Array(tt):Gt.input=tt,Gt.next_in=0,Gt.avail_in=Gt.input.length;do{if(Gt.avail_out===0&&(Gt.output=new Mt.Buf8(se),Gt.next_out=0,Gt.avail_out=se),(rt=Vt.inflate(Gt,te.Z_NO_FLUSH))===te.Z_NEED_DICT&&le&&(Ut=typeof le=="string"?jt.string2buf(le):$t.call(le)==="[object ArrayBuffer]"?new Uint8Array(le):le,rt=Vt.inflateSetDictionary(this.strm,Ut)),rt===te.Z_BUF_ERROR&&Ae===!0&&(rt=te.Z_OK,Ae=!1),rt!==te.Z_STREAM_END&&rt!==te.Z_OK)return this.onEnd(rt),!(this.ended=!0);Gt.next_out&&(Gt.avail_out!==0&&rt!==te.Z_STREAM_END&&(Gt.avail_in!==0||ht!==te.Z_FINISH&&ht!==te.Z_SYNC_FLUSH)||(this.options.to==="string"?(dt=jt.utf8border(Gt.output,Gt.next_out),xt=Gt.next_out-dt,Nt=jt.buf2string(Gt.output,dt),Gt.next_out=xt,Gt.avail_out=se-xt,xt&&Mt.arraySet(Gt.output,Gt.output,dt,xt,0),this.onData(Nt)):this.onData(Mt.shrinkBuf(Gt.output,Gt.next_out)))),Gt.avail_in===0&&Gt.avail_out===0&&(Ae=!0)}while((0<Gt.avail_in||Gt.avail_out===0)&&rt!==te.Z_STREAM_END);return rt===te.Z_STREAM_END&&(ht=te.Z_FINISH),ht===te.Z_FINISH?(rt=Vt.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===te.Z_OK):ht!==te.Z_SYNC_FLUSH||(this.onEnd(te.Z_OK),!(Gt.avail_out=0))},Ct.prototype.onData=function(tt){this.chunks.push(tt)},Ct.prototype.onEnd=function(tt){tt===te.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,ke,ee){"use strict";var Vt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ee.assign=function(te){for(var Pt=Array.prototype.slice.call(arguments,1);Pt.length;){var oe=Pt.shift();if(oe){if(typeof oe!="object")throw new TypeError(oe+"must be non-object");for(var Kt in oe)oe.hasOwnProperty(Kt)&&(te[Kt]=oe[Kt])}}return te},ee.shrinkBuf=function(te,Pt){return te.length===Pt?te:te.subarray?te.subarray(0,Pt):(te.length=Pt,te)};var Mt={arraySet:function(te,Pt,oe,Kt,$t){if(Pt.subarray&&te.subarray)te.set(Pt.subarray(oe,oe+Kt),$t);else for(var Ct=0;Ct<Kt;Ct++)te[$t+Ct]=Pt[oe+Ct]},flattenChunks:function(te){var Pt,oe,Kt,$t,Ct,et;for(Pt=Kt=0,oe=te.length;Pt<oe;Pt++)Kt+=te[Pt].length;for(et=new Uint8Array(Kt),Pt=$t=0,oe=te.length;Pt<oe;Pt++)Ct=te[Pt],et.set(Ct,$t),$t+=Ct.length;return et}},jt={arraySet:function(te,Pt,oe,Kt,$t){for(var Ct=0;Ct<Kt;Ct++)te[$t+Ct]=Pt[oe+Ct]},flattenChunks:function(te){return[].concat.apply([],te)}};ee.setTyped=function(te){te?(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,ke,ee){"use strict";var Vt=re("./common"),Mt=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch(Kt){Mt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Kt){jt=!1}for(var te=new Vt.Buf8(256),Pt=0;Pt<256;Pt++)te[Pt]=252<=Pt?6:248<=Pt?5:240<=Pt?4:224<=Pt?3:192<=Pt?2:1;function oe(Kt,$t){if($t<65537&&(Kt.subarray&&jt||!Kt.subarray&&Mt))return String.fromCharCode.apply(null,Vt.shrinkBuf(Kt,$t));for(var Ct="",et=0;et<$t;et++)Ct+=String.fromCharCode(Kt[et]);return Ct}te[254]=te[254]=1,ee.string2buf=function(Kt){var $t,Ct,et,tt,lt,rt=Kt.length,ht=0;for(tt=0;tt<rt;tt++)(64512&(Ct=Kt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Kt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),ht+=Ct<128?1:Ct<2048?2:Ct<65536?3:4;for($t=new Vt.Buf8(ht),tt=lt=0;lt<ht;tt++)(64512&(Ct=Kt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Kt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),Ct<128?$t[lt++]=Ct:(Ct<2048?$t[lt++]=192|Ct>>>6:(Ct<65536?$t[lt++]=224|Ct>>>12:($t[lt++]=240|Ct>>>18,$t[lt++]=128|Ct>>>12&63),$t[lt++]=128|Ct>>>6&63),$t[lt++]=128|63&Ct);return $t},ee.buf2binstring=function(Kt){return oe(Kt,Kt.length)},ee.binstring2buf=function(Kt){for(var $t=new Vt.Buf8(Kt.length),Ct=0,et=$t.length;Ct<et;Ct++)$t[Ct]=Kt.charCodeAt(Ct);return $t},ee.buf2string=function(Kt,$t){var Ct,et,tt,lt,rt=$t||Kt.length,ht=new Array(2*rt);for(Ct=et=0;Ct<rt;)if((tt=Kt[Ct++])<128)ht[et++]=tt;else if(4<(lt=te[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&Kt[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 oe(ht,et)},ee.utf8border=function(Kt,$t){var Ct;for(($t=$t||Kt.length)>Kt.length&&($t=Kt.length),Ct=$t-1;0<=Ct&&(192&Kt[Ct])==128;)Ct--;return Ct<0||Ct===0?$t:Ct+te[Kt[Ct]]>$t?Ct:$t}},{"./common":41}],43:[function(re,ke,ee){"use strict";ke.exports=function(Vt,Mt,jt,te){for(var Pt=65535&Vt|0,oe=Vt>>>16&65535|0,Kt=0;jt!==0;){for(jt-=Kt=2e3<jt?2e3:jt;oe=oe+(Pt=Pt+Mt[te++]|0)|0,--Kt;);Pt%=65521,oe%=65521}return Pt|oe<<16|0}},{}],44:[function(re,ke,ee){"use strict";ke.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,ke,ee){"use strict";var Vt=function(){for(var Mt,jt=[],te=0;te<256;te++){Mt=te;for(var Pt=0;Pt<8;Pt++)Mt=1&Mt?3988292384^Mt>>>1:Mt>>>1;jt[te]=Mt}return jt}();ke.exports=function(Mt,jt,te,Pt){var oe=Vt,Kt=Pt+te;Mt^=-1;for(var $t=Pt;$t<Kt;$t++)Mt=Mt>>>8^oe[255&(Mt^jt[$t])];return-1^Mt}},{}],46:[function(re,ke,ee){"use strict";var Vt,Mt=re("../utils/common"),jt=re("./trees"),te=re("./adler32"),Pt=re("./crc32"),oe=re("./messages"),Kt=0,$t=4,Ct=0,et=-2,tt=-1,lt=4,rt=2,ht=8,dt=9,xt=286,Nt=30,Ut=19,Gt=2*xt+1,se=15,le=3,Ae=258,Pe=Ae+le+1,qt=42,ze=113,Wt=1,Ge=2,_e=3,Ne=4;function We(Ot,Tt){return Ot.msg=oe[Tt],Tt}function Re(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 Ze(Ot,Tt){var vt,ft,gt=Ot.max_chain_length,At=Ot.strstart,ue=Ot.prev_length,xe=Ot.nice_match,ae=Ot.strstart>Ot.w_size-Pe?Ot.strstart-(Ot.w_size-Pe):0,ye=Ot.window,Te=Ot.w_mask,De=Ot.prev,Me=Ot.strstart+Ae,sn=ye[At+ue-1],Gn=ye[At+ue];Ot.prev_length>=Ot.good_match&&(gt>>=2),xe>Ot.lookahead&&(xe=Ot.lookahead);do if(ye[(vt=Tt)+ue]===Gn&&ye[vt+ue-1]===sn&&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(ft=Ae-(Me-At),At=Me-Ae,ue<ft){if(Ot.match_start=Tt,xe<=(ue=ft))break;sn=ye[At+ue-1],Gn=ye[At+ue]}}while((Tt=De[Tt&Te])>ae&&--gt!=0);return ue<=Ot.lookahead?ue:Ot.lookahead}function Mn(Ot){var Tt,vt,ft,gt,At,ue,xe,ae,ye,Te,De=Ot.w_size;do{if(gt=Ot.window_size-Ot.lookahead-Ot.strstart,Ot.strstart>=De+(De-Pe)){for(Mt.arraySet(Ot.window,Ot.window,De,De,0),Ot.match_start-=De,Ot.strstart-=De,Ot.block_start-=De,Tt=vt=Ot.hash_size;ft=Ot.head[--Tt],Ot.head[Tt]=De<=ft?ft-De:0,--vt;);for(Tt=vt=De;ft=Ot.prev[--Tt],Ot.prev[Tt]=De<=ft?ft-De:0,--vt;);gt+=De}if(Ot.strm.avail_in===0)break;if(ue=Ot.strm,xe=Ot.window,ae=Ot.strstart+Ot.lookahead,ye=gt,Te=void 0,Te=ue.avail_in,ye<Te&&(Te=ye),vt=Te===0?0:(ue.avail_in-=Te,Mt.arraySet(xe,ue.input,ue.next_in,Te,ae),ue.state.wrap===1?ue.adler=te(ue.adler,xe,Te,ae):ue.state.wrap===2&&(ue.adler=Pt(ue.adler,xe,Te,ae)),ue.next_in+=Te,ue.total_in+=Te,Te),Ot.lookahead+=vt,Ot.lookahead+Ot.insert>=le)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+le-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<le)););}while(Ot.lookahead<Pe&&Ot.strm.avail_in!==0)}function Vn(Ot,Tt){for(var vt,ft;;){if(Ot.lookahead<Pe){if(Mn(Ot),Ot.lookahead<Pe&&Tt===Kt)return Wt;if(Ot.lookahead===0)break}if(vt=0,Ot.lookahead>=le&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+le-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-Pe&&(Ot.match_length=Ze(Ot,vt)),Ot.match_length>=le)if(ft=jt._tr_tally(Ot,Ot.strstart-Ot.match_start,Ot.match_length-le),Ot.lookahead-=Ot.match_length,Ot.match_length<=Ot.max_lazy_match&&Ot.lookahead>=le){for(Ot.match_length--;Ot.strstart++,Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+le-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 ft=jt._tr_tally(Ot,0,Ot.window[Ot.strstart]),Ot.lookahead--,Ot.strstart++;if(ft&&(Ce(Ot,!1),Ot.strm.avail_out===0))return Wt}return Ot.insert=Ot.strstart<le-1?Ot.strstart:le-1,Tt===$t?(Ce(Ot,!0),Ot.strm.avail_out===0?_e:Ne):Ot.last_lit&&(Ce(Ot,!1),Ot.strm.avail_out===0)?Wt:Ge}function fi(Ot,Tt){for(var vt,ft,gt;;){if(Ot.lookahead<Pe){if(Mn(Ot),Ot.lookahead<Pe&&Tt===Kt)return Wt;if(Ot.lookahead===0)break}if(vt=0,Ot.lookahead>=le&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+le-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=le-1,vt!==0&&Ot.prev_length<Ot.max_lazy_match&&Ot.strstart-vt<=Ot.w_size-Pe&&(Ot.match_length=Ze(Ot,vt),Ot.match_length<=5&&(Ot.strategy===1||Ot.match_length===le&&4096<Ot.strstart-Ot.match_start)&&(Ot.match_length=le-1)),Ot.prev_length>=le&&Ot.match_length<=Ot.prev_length){for(gt=Ot.strstart+Ot.lookahead-le,ft=jt._tr_tally(Ot,Ot.strstart-1-Ot.prev_match,Ot.prev_length-le),Ot.lookahead-=Ot.prev_length-1,Ot.prev_length-=2;++Ot.strstart<=gt&&(Ot.ins_h=(Ot.ins_h<<Ot.hash_shift^Ot.window[Ot.strstart+le-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=le-1,Ot.strstart++,ft&&(Ce(Ot,!1),Ot.strm.avail_out===0))return Wt}else if(Ot.match_available){if((ft=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&&(ft=jt._tr_tally(Ot,0,Ot.window[Ot.strstart-1]),Ot.match_available=0),Ot.insert=Ot.strstart<le-1?Ot.strstart:le-1,Tt===$t?(Ce(Ot,!0),Ot.strm.avail_out===0?_e:Ne):Ot.last_lit&&(Ce(Ot,!1),Ot.strm.avail_out===0)?Wt:Ge}function Kn(Ot,Tt,vt,ft,gt){this.good_length=Ot,this.max_lazy=Tt,this.nice_length=vt,this.max_chain=ft,this.func=gt}function Bi(){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*Gt),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(se+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 en(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?qt:ze,Ot.adler=Tt.wrap===2?0:1,Tt.last_flush=Kt,jt._tr_init(Tt),Ct):We(Ot,et)}function Fi(Ot){var Tt=en(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=le-1,vt.match_available=0,vt.ins_h=0}(Ot.state),Tt}function Oi(Ot,Tt,vt,ft,gt,At){if(!Ot)return et;var ue=1;if(Tt===tt&&(Tt=6),ft<0?(ue=0,ft=-ft):15<ft&&(ue=2,ft-=16),gt<1||dt<gt||vt!==ht||ft<8||15<ft||Tt<0||9<Tt||At<0||lt<At)return We(Ot,et);ft===8&&(ft=9);var xe=new Bi;return(Ot.state=xe).strm=Ot,xe.wrap=ue,xe.gzhead=null,xe.w_bits=ft,xe.w_size=1<<xe.w_bits,xe.w_mask=xe.w_size-1,xe.hash_bits=gt+7,xe.hash_size=1<<xe.hash_bits,xe.hash_mask=xe.hash_size-1,xe.hash_shift=~~((xe.hash_bits+le-1)/le),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<<gt+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,Fi(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(Mn(Ot),Ot.lookahead===0&&Tt===Kt)return Wt;if(Ot.lookahead===0)break}Ot.strstart+=Ot.lookahead,Ot.lookahead=0;var ft=Ot.block_start+vt;if((Ot.strstart===0||Ot.strstart>=ft)&&(Ot.lookahead=Ot.strstart-ft,Ot.strstart=ft,Ce(Ot,!1),Ot.strm.avail_out===0)||Ot.strstart-Ot.block_start>=Ot.w_size-Pe&&(Ce(Ot,!1),Ot.strm.avail_out===0))return Wt}return Ot.insert=0,Tt===$t?(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,Vn),new Kn(4,5,16,8,Vn),new Kn(4,6,32,32,Vn),new Kn(4,4,16,16,fi),new Kn(8,16,32,32,fi),new Kn(8,16,128,128,fi),new Kn(8,32,128,256,fi),new Kn(32,128,258,1024,fi),new Kn(32,258,258,4096,fi)],ee.deflateInit=function(Ot,Tt){return Oi(Ot,Tt,ht,15,8,0)},ee.deflateInit2=Oi,ee.deflateReset=Fi,ee.deflateResetKeep=en,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,ft,gt,At;if(!Ot||!Ot.state||5<Tt||Tt<0)return Ot?We(Ot,et):et;if(ft=Ot.state,!Ot.output||!Ot.input&&Ot.avail_in!==0||ft.status===666&&Tt!==$t)return We(Ot,Ot.avail_out===0?-5:et);if(ft.strm=Ot,vt=ft.last_flush,ft.last_flush=Tt,ft.status===qt)if(ft.wrap===2)Ot.adler=0,bn(ft,31),bn(ft,139),bn(ft,8),ft.gzhead?(bn(ft,(ft.gzhead.text?1:0)+(ft.gzhead.hcrc?2:0)+(ft.gzhead.extra?4:0)+(ft.gzhead.name?8:0)+(ft.gzhead.comment?16:0)),bn(ft,255&ft.gzhead.time),bn(ft,ft.gzhead.time>>8&255),bn(ft,ft.gzhead.time>>16&255),bn(ft,ft.gzhead.time>>24&255),bn(ft,ft.level===9?2:2<=ft.strategy||ft.level<2?4:0),bn(ft,255&ft.gzhead.os),ft.gzhead.extra&&ft.gzhead.extra.length&&(bn(ft,255&ft.gzhead.extra.length),bn(ft,ft.gzhead.extra.length>>8&255)),ft.gzhead.hcrc&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending,0)),ft.gzindex=0,ft.status=69):(bn(ft,0),bn(ft,0),bn(ft,0),bn(ft,0),bn(ft,0),bn(ft,ft.level===9?2:2<=ft.strategy||ft.level<2?4:0),bn(ft,3),ft.status=ze);else{var ue=ht+(ft.w_bits-8<<4)<<8;ue|=(2<=ft.strategy||ft.level<2?0:ft.level<6?1:ft.level===6?2:3)<<6,ft.strstart!==0&&(ue|=32),ue+=31-ue%31,ft.status=ze,Ln(ft,ue),ft.strstart!==0&&(Ln(ft,Ot.adler>>>16),Ln(ft,65535&Ot.adler)),Ot.adler=1}if(ft.status===69)if(ft.gzhead.extra){for(gt=ft.pending;ft.gzindex<(65535&ft.gzhead.extra.length)&&(ft.pending!==ft.pending_buf_size||(ft.gzhead.hcrc&&ft.pending>gt&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending-gt,gt)),ne(Ot),gt=ft.pending,ft.pending!==ft.pending_buf_size));)bn(ft,255&ft.gzhead.extra[ft.gzindex]),ft.gzindex++;ft.gzhead.hcrc&&ft.pending>gt&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending-gt,gt)),ft.gzindex===ft.gzhead.extra.length&&(ft.gzindex=0,ft.status=73)}else ft.status=73;if(ft.status===73)if(ft.gzhead.name){gt=ft.pending;do{if(ft.pending===ft.pending_buf_size&&(ft.gzhead.hcrc&&ft.pending>gt&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending-gt,gt)),ne(Ot),gt=ft.pending,ft.pending===ft.pending_buf_size)){At=1;break}At=ft.gzindex<ft.gzhead.name.length?255&ft.gzhead.name.charCodeAt(ft.gzindex++):0,bn(ft,At)}while(At!==0);ft.gzhead.hcrc&&ft.pending>gt&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending-gt,gt)),At===0&&(ft.gzindex=0,ft.status=91)}else ft.status=91;if(ft.status===91)if(ft.gzhead.comment){gt=ft.pending;do{if(ft.pending===ft.pending_buf_size&&(ft.gzhead.hcrc&&ft.pending>gt&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending-gt,gt)),ne(Ot),gt=ft.pending,ft.pending===ft.pending_buf_size)){At=1;break}At=ft.gzindex<ft.gzhead.comment.length?255&ft.gzhead.comment.charCodeAt(ft.gzindex++):0,bn(ft,At)}while(At!==0);ft.gzhead.hcrc&&ft.pending>gt&&(Ot.adler=Pt(Ot.adler,ft.pending_buf,ft.pending-gt,gt)),At===0&&(ft.status=103)}else ft.status=103;if(ft.status===103&&(ft.gzhead.hcrc?(ft.pending+2>ft.pending_buf_size&&ne(Ot),ft.pending+2<=ft.pending_buf_size&&(bn(ft,255&Ot.adler),bn(ft,Ot.adler>>8&255),Ot.adler=0,ft.status=ze)):ft.status=ze),ft.pending!==0){if(ne(Ot),Ot.avail_out===0)return ft.last_flush=-1,Ct}else if(Ot.avail_in===0&&Re(Tt)<=Re(vt)&&Tt!==$t)return We(Ot,-5);if(ft.status===666&&Ot.avail_in!==0)return We(Ot,-5);if(Ot.avail_in!==0||ft.lookahead!==0||Tt!==Kt&&ft.status!==666){var xe=ft.strategy===2?function(ae,ye){for(var Te;;){if(ae.lookahead===0&&(Mn(ae),ae.lookahead===0)){if(ye===Kt)return Wt;break}if(ae.match_length=0,Te=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,Te&&(Ce(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,ye===$t?(Ce(ae,!0),ae.strm.avail_out===0?_e:Ne):ae.last_lit&&(Ce(ae,!1),ae.strm.avail_out===0)?Wt:Ge}(ft,Tt):ft.strategy===3?function(ae,ye){for(var Te,De,Me,sn,Gn=ae.window;;){if(ae.lookahead<=Ae){if(Mn(ae),ae.lookahead<=Ae&&ye===Kt)return Wt;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=le&&0<ae.strstart&&(De=Gn[Me=ae.strstart-1])===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]){sn=ae.strstart+Ae;do;while(De===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]&&De===Gn[++Me]&&Me<sn);ae.match_length=Ae-(sn-Me),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=le?(Te=jt._tr_tally(ae,1,ae.match_length-le),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(Te=jt._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),Te&&(Ce(ae,!1),ae.strm.avail_out===0))return Wt}return ae.insert=0,ye===$t?(Ce(ae,!0),ae.strm.avail_out===0?_e:Ne):ae.last_lit&&(Ce(ae,!1),ae.strm.avail_out===0)?Wt:Ge}(ft,Tt):Vt[ft.level].func(ft,Tt);if(xe!==_e&&xe!==Ne||(ft.status=666),xe===Wt||xe===_e)return Ot.avail_out===0&&(ft.last_flush=-1),Ct;if(xe===Ge&&(Tt===1?jt._tr_align(ft):Tt!==5&&(jt._tr_stored_block(ft,0,0,!1),Tt===3&&(ve(ft.head),ft.lookahead===0&&(ft.strstart=0,ft.block_start=0,ft.insert=0))),ne(Ot),Ot.avail_out===0))return ft.last_flush=-1,Ct}return Tt!==$t?Ct:ft.wrap<=0?1:(ft.wrap===2?(bn(ft,255&Ot.adler),bn(ft,Ot.adler>>8&255),bn(ft,Ot.adler>>16&255),bn(ft,Ot.adler>>24&255),bn(ft,255&Ot.total_in),bn(ft,Ot.total_in>>8&255),bn(ft,Ot.total_in>>16&255),bn(ft,Ot.total_in>>24&255)):(Ln(ft,Ot.adler>>>16),Ln(ft,65535&Ot.adler)),ne(Ot),0<ft.wrap&&(ft.wrap=-ft.wrap),ft.pending!==0?Ct:1)},ee.deflateEnd=function(Ot){var Tt;return Ot&&Ot.state?(Tt=Ot.state.status)!==qt&&Tt!==69&&Tt!==73&&Tt!==91&&Tt!==103&&Tt!==ze&&Tt!==666?We(Ot,et):(Ot.state=null,Tt===ze?We(Ot,-3):Ct):et},ee.deflateSetDictionary=function(Ot,Tt){var vt,ft,gt,At,ue,xe,ae,ye,Te=Tt.length;if(!Ot||!Ot.state||(At=(vt=Ot.state).wrap)===2||At===1&&vt.status!==qt||vt.lookahead)return et;for(At===1&&(Ot.adler=te(Ot.adler,Tt,Te,0)),vt.wrap=0,Te>=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,Te-vt.w_size,vt.w_size,0),Tt=ye,Te=vt.w_size),ue=Ot.avail_in,xe=Ot.next_in,ae=Ot.input,Ot.avail_in=Te,Ot.next_in=0,Ot.input=Tt,Mn(vt);vt.lookahead>=le;){for(ft=vt.strstart,gt=vt.lookahead-(le-1);vt.ins_h=(vt.ins_h<<vt.hash_shift^vt.window[ft+le-1])&vt.hash_mask,vt.prev[ft&vt.w_mask]=vt.head[vt.ins_h],vt.head[vt.ins_h]=ft,ft++,--gt;);vt.strstart=ft,vt.lookahead=le-1,Mn(vt)}return vt.strstart+=vt.lookahead,vt.block_start=vt.strstart,vt.insert=vt.lookahead,vt.lookahead=0,vt.match_length=vt.prev_length=le-1,vt.match_available=0,Ot.next_in=xe,Ot.input=ae,Ot.avail_in=ue,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,ke,ee){"use strict";ke.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,ke,ee){"use strict";ke.exports=function(Vt,Mt){var jt,te,Pt,oe,Kt,$t,Ct,et,tt,lt,rt,ht,dt,xt,Nt,Ut,Gt,se,le,Ae,Pe,qt,ze,Wt,Ge;jt=Vt.state,te=Vt.next_in,Wt=Vt.input,Pt=te+(Vt.avail_in-5),oe=Vt.next_out,Ge=Vt.output,Kt=oe-(Mt-Vt.avail_out),$t=oe+(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,Gt=(1<<jt.distbits)-1;t:do{dt<15&&(ht+=Wt[te++]<<dt,dt+=8,ht+=Wt[te++]<<dt,dt+=8),se=xt[ht&Ut];e:for(;;){if(ht>>>=le=se>>>24,dt-=le,(le=se>>>16&255)===0)Ge[oe++]=65535&se;else{if(!(16&le)){if(!(64&le)){se=xt[(65535&se)+(ht&(1<<le)-1)];continue e}if(32&le){jt.mode=12;break t}Vt.msg="invalid literal/length code",jt.mode=30;break t}Ae=65535&se,(le&=15)&&(dt<le&&(ht+=Wt[te++]<<dt,dt+=8),Ae+=ht&(1<<le)-1,ht>>>=le,dt-=le),dt<15&&(ht+=Wt[te++]<<dt,dt+=8,ht+=Wt[te++]<<dt,dt+=8),se=Nt[ht&Gt];n:for(;;){if(ht>>>=le=se>>>24,dt-=le,!(16&(le=se>>>16&255))){if(!(64&le)){se=Nt[(65535&se)+(ht&(1<<le)-1)];continue n}Vt.msg="invalid distance code",jt.mode=30;break t}if(Pe=65535&se,dt<(le&=15)&&(ht+=Wt[te++]<<dt,(dt+=8)<le&&(ht+=Wt[te++]<<dt,dt+=8)),Ct<(Pe+=ht&(1<<le)-1)){Vt.msg="invalid distance too far back",jt.mode=30;break t}if(ht>>>=le,dt-=le,(le=oe-Kt)<Pe){if(tt<(le=Pe-le)&&jt.sane){Vt.msg="invalid distance too far back",jt.mode=30;break t}if(ze=rt,(qt=0)===lt){if(qt+=et-le,le<Ae){for(Ae-=le;Ge[oe++]=rt[qt++],--le;);qt=oe-Pe,ze=Ge}}else if(lt<le){if(qt+=et+lt-le,(le-=lt)<Ae){for(Ae-=le;Ge[oe++]=rt[qt++],--le;);if(qt=0,lt<Ae){for(Ae-=le=lt;Ge[oe++]=rt[qt++],--le;);qt=oe-Pe,ze=Ge}}}else if(qt+=lt-le,le<Ae){for(Ae-=le;Ge[oe++]=rt[qt++],--le;);qt=oe-Pe,ze=Ge}for(;2<Ae;)Ge[oe++]=ze[qt++],Ge[oe++]=ze[qt++],Ge[oe++]=ze[qt++],Ae-=3;Ae&&(Ge[oe++]=ze[qt++],1<Ae&&(Ge[oe++]=ze[qt++]))}else{for(qt=oe-Pe;Ge[oe++]=Ge[qt++],Ge[oe++]=Ge[qt++],Ge[oe++]=Ge[qt++],2<(Ae-=3););Ae&&(Ge[oe++]=Ge[qt++],1<Ae&&(Ge[oe++]=Ge[qt++]))}break}}break}}while(te<Pt&&oe<$t);te-=Ae=dt>>3,ht&=(1<<(dt-=Ae<<3))-1,Vt.next_in=te,Vt.next_out=oe,Vt.avail_in=te<Pt?Pt-te+5:5-(te-Pt),Vt.avail_out=oe<$t?$t-oe+257:257-(oe-$t),jt.hold=ht,jt.bits=dt}},{}],49:[function(re,ke,ee){"use strict";var Vt=re("../utils/common"),Mt=re("./adler32"),jt=re("./crc32"),te=re("./inffast"),Pt=re("./inftrees"),oe=1,Kt=2,$t=0,Ct=-2,et=1,tt=852,lt=592;function rt(qt){return(qt>>>24&255)+(qt>>>8&65280)+((65280&qt)<<8)+((255&qt)<<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(qt){var ze;return qt&&qt.state?(ze=qt.state,qt.total_in=qt.total_out=ze.total=0,qt.msg="",ze.wrap&&(qt.adler=1&ze.wrap),ze.mode=et,ze.last=0,ze.havedict=0,ze.dmax=32768,ze.head=null,ze.hold=0,ze.bits=0,ze.lencode=ze.lendyn=new Vt.Buf32(tt),ze.distcode=ze.distdyn=new Vt.Buf32(lt),ze.sane=1,ze.back=-1,$t):Ct}function xt(qt){var ze;return qt&&qt.state?((ze=qt.state).wsize=0,ze.whave=0,ze.wnext=0,dt(qt)):Ct}function Nt(qt,ze){var Wt,Ge;return qt&&qt.state?(Ge=qt.state,ze<0?(Wt=0,ze=-ze):(Wt=1+(ze>>4),ze<48&&(ze&=15)),ze&&(ze<8||15<ze)?Ct:(Ge.window!==null&&Ge.wbits!==ze&&(Ge.window=null),Ge.wrap=Wt,Ge.wbits=ze,xt(qt))):Ct}function Ut(qt,ze){var Wt,Ge;return qt?(Ge=new ht,(qt.state=Ge).window=null,(Wt=Nt(qt,ze))!==$t&&(qt.state=null),Wt):Ct}var Gt,se,le=!0;function Ae(qt){if(le){var ze;for(Gt=new Vt.Buf32(512),se=new Vt.Buf32(32),ze=0;ze<144;)qt.lens[ze++]=8;for(;ze<256;)qt.lens[ze++]=9;for(;ze<280;)qt.lens[ze++]=7;for(;ze<288;)qt.lens[ze++]=8;for(Pt(oe,qt.lens,0,288,Gt,0,qt.work,{bits:9}),ze=0;ze<32;)qt.lens[ze++]=5;Pt(Kt,qt.lens,0,32,se,0,qt.work,{bits:5}),le=!1}qt.lencode=Gt,qt.lenbits=9,qt.distcode=se,qt.distbits=5}function Pe(qt,ze,Wt,Ge){var _e,Ne=qt.state;return Ne.window===null&&(Ne.wsize=1<<Ne.wbits,Ne.wnext=0,Ne.whave=0,Ne.window=new Vt.Buf8(Ne.wsize)),Ge>=Ne.wsize?(Vt.arraySet(Ne.window,ze,Wt-Ne.wsize,Ne.wsize,0),Ne.wnext=0,Ne.whave=Ne.wsize):(Ge<(_e=Ne.wsize-Ne.wnext)&&(_e=Ge),Vt.arraySet(Ne.window,ze,Wt-Ge,_e,Ne.wnext),(Ge-=_e)?(Vt.arraySet(Ne.window,ze,Wt-Ge,Ge,0),Ne.wnext=Ge,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(qt){return Ut(qt,15)},ee.inflateInit2=Ut,ee.inflate=function(qt,ze){var Wt,Ge,_e,Ne,We,Re,ve,ne,Ce,bn,Ln,Ze,Mn,Vn,fi,Kn,Bi,en,Fi,Oi,Ot,Tt,vt,ft,gt=0,At=new Vt.Buf8(4),ue=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!qt||!qt.state||!qt.output||!qt.input&&qt.avail_in!==0)return Ct;(Wt=qt.state).mode===12&&(Wt.mode=13),We=qt.next_out,_e=qt.output,ve=qt.avail_out,Ne=qt.next_in,Ge=qt.input,Re=qt.avail_in,ne=Wt.hold,Ce=Wt.bits,bn=Re,Ln=ve,Tt=$t;t:for(;;)switch(Wt.mode){case et:if(Wt.wrap===0){Wt.mode=13;break}for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[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){qt.msg="incorrect header check",Wt.mode=30;break}if((15&ne)!=8){qt.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){qt.msg="invalid window size",Wt.mode=30;break}Wt.dmax=1<<Ot,qt.adler=Wt.check=1,Wt.mode=512&ne?10:12,Ce=ne=0;break;case 2:for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(Wt.flags=ne,(255&Wt.flags)!=8){qt.msg="unknown compression method",Wt.mode=30;break}if(57344&Wt.flags){qt.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(Re===0)break t;Re--,ne+=Ge[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(Re===0)break t;Re--,ne+=Ge[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(Re===0)break t;Re--,ne+=Ge[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&&(Re<(Ze=Wt.length)&&(Ze=Re),Ze&&(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,Ge,Ne,Ze,Ot)),512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Ze,Ne)),Re-=Ze,Ne+=Ze,Wt.length-=Ze),Wt.length))break t;Wt.length=0,Wt.mode=7;case 7:if(2048&Wt.flags){if(Re===0)break t;for(Ze=0;Ot=Ge[Ne+Ze++],Wt.head&&Ot&&Wt.length<65536&&(Wt.head.name+=String.fromCharCode(Ot)),Ot&&Ze<Re;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Ze,Ne)),Re-=Ze,Ne+=Ze,Ot)break t}else Wt.head&&(Wt.head.name=null);Wt.length=0,Wt.mode=8;case 8:if(4096&Wt.flags){if(Re===0)break t;for(Ze=0;Ot=Ge[Ne+Ze++],Wt.head&&Ot&&Wt.length<65536&&(Wt.head.comment+=String.fromCharCode(Ot)),Ot&&Ze<Re;);if(512&Wt.flags&&(Wt.check=jt(Wt.check,Ge,Ze,Ne)),Re-=Ze,Ne+=Ze,Ot)break t}else Wt.head&&(Wt.head.comment=null);Wt.mode=9;case 9:if(512&Wt.flags){for(;Ce<16;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(ne!==(65535&Wt.check)){qt.msg="header crc mismatch",Wt.mode=30;break}Ce=ne=0}Wt.head&&(Wt.head.hcrc=Wt.flags>>9&1,Wt.head.done=!0),qt.adler=Wt.check=0,Wt.mode=12;break;case 10:for(;Ce<32;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}qt.adler=Wt.check=rt(ne),Ce=ne=0,Wt.mode=11;case 11:if(Wt.havedict===0)return qt.next_out=We,qt.avail_out=ve,qt.next_in=Ne,qt.avail_in=Re,Wt.hold=ne,Wt.bits=Ce,2;qt.adler=Wt.check=1,Wt.mode=12;case 12:if(ze===5||ze===6)break t;case 13:if(Wt.last){ne>>>=7&Ce,Ce-=7&Ce,Wt.mode=27;break}for(;Ce<3;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}switch(Wt.last=1&ne,Ce-=1,3&(ne>>>=1)){case 0:Wt.mode=14;break;case 1:if(Ae(Wt),Wt.mode=20,ze!==6)break;ne>>>=2,Ce-=2;break t;case 2:Wt.mode=17;break;case 3:qt.msg="invalid block type",Wt.mode=30}ne>>>=2,Ce-=2;break;case 14:for(ne>>>=7&Ce,Ce-=7&Ce;Ce<32;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if((65535&ne)!=(ne>>>16^65535)){qt.msg="invalid stored block lengths",Wt.mode=30;break}if(Wt.length=65535&ne,Ce=ne=0,Wt.mode=15,ze===6)break t;case 15:Wt.mode=16;case 16:if(Ze=Wt.length){if(Re<Ze&&(Ze=Re),ve<Ze&&(Ze=ve),Ze===0)break t;Vt.arraySet(_e,Ge,Ne,Ze,We),Re-=Ze,Ne+=Ze,ve-=Ze,We+=Ze,Wt.length-=Ze;break}Wt.mode=12;break;case 17:for(;Ce<14;){if(Re===0)break t;Re--,ne+=Ge[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){qt.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(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}Wt.lens[ue[Wt.have++]]=7&ne,ne>>>=3,Ce-=3}for(;Wt.have<19;)Wt.lens[ue[Wt.have++]]=0;if(Wt.lencode=Wt.lendyn,Wt.lenbits=7,vt={bits:Wt.lenbits},Tt=Pt(0,Wt.lens,0,19,Wt.lencode,0,Wt.work,vt),Wt.lenbits=vt.bits,Tt){qt.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=(gt=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Bi=65535&gt,!((fi=gt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(Bi<16)ne>>>=fi,Ce-=fi,Wt.lens[Wt.have++]=Bi;else{if(Bi===16){for(ft=fi+2;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(ne>>>=fi,Ce-=fi,Wt.have===0){qt.msg="invalid bit length repeat",Wt.mode=30;break}Ot=Wt.lens[Wt.have-1],Ze=3+(3&ne),ne>>>=2,Ce-=2}else if(Bi===17){for(ft=fi+3;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}Ce-=fi,Ot=0,Ze=3+(7&(ne>>>=fi)),ne>>>=3,Ce-=3}else{for(ft=fi+7;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}Ce-=fi,Ot=0,Ze=11+(127&(ne>>>=fi)),ne>>>=7,Ce-=7}if(Wt.have+Ze>Wt.nlen+Wt.ndist){qt.msg="invalid bit length repeat",Wt.mode=30;break}for(;Ze--;)Wt.lens[Wt.have++]=Ot}}if(Wt.mode===30)break;if(Wt.lens[256]===0){qt.msg="invalid code -- missing end-of-block",Wt.mode=30;break}if(Wt.lenbits=9,vt={bits:Wt.lenbits},Tt=Pt(oe,Wt.lens,0,Wt.nlen,Wt.lencode,0,Wt.work,vt),Wt.lenbits=vt.bits,Tt){qt.msg="invalid literal/lengths set",Wt.mode=30;break}if(Wt.distbits=6,Wt.distcode=Wt.distdyn,vt={bits:Wt.distbits},Tt=Pt(Kt,Wt.lens,Wt.nlen,Wt.ndist,Wt.distcode,0,Wt.work,vt),Wt.distbits=vt.bits,Tt){qt.msg="invalid distances set",Wt.mode=30;break}if(Wt.mode=20,ze===6)break t;case 20:Wt.mode=21;case 21:if(6<=Re&&258<=ve){qt.next_out=We,qt.avail_out=ve,qt.next_in=Ne,qt.avail_in=Re,Wt.hold=ne,Wt.bits=Ce,te(qt,Ln),We=qt.next_out,_e=qt.output,ve=qt.avail_out,Ne=qt.next_in,Ge=qt.input,Re=qt.avail_in,ne=Wt.hold,Ce=Wt.bits,Wt.mode===12&&(Wt.back=-1);break}for(Wt.back=0;Kn=(gt=Wt.lencode[ne&(1<<Wt.lenbits)-1])>>>16&255,Bi=65535&gt,!((fi=gt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(Kn&&!(240&Kn)){for(en=fi,Fi=Kn,Oi=Bi;Kn=(gt=Wt.lencode[Oi+((ne&(1<<en+Fi)-1)>>en)])>>>16&255,Bi=65535&gt,!(en+(fi=gt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}ne>>>=en,Ce-=en,Wt.back+=en}if(ne>>>=fi,Ce-=fi,Wt.back+=fi,Wt.length=Bi,Kn===0){Wt.mode=26;break}if(32&Kn){Wt.back=-1,Wt.mode=12;break}if(64&Kn){qt.msg="invalid literal/length code",Wt.mode=30;break}Wt.extra=15&Kn,Wt.mode=22;case 22:if(Wt.extra){for(ft=Wt.extra;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[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=(gt=Wt.distcode[ne&(1<<Wt.distbits)-1])>>>16&255,Bi=65535&gt,!((fi=gt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(!(240&Kn)){for(en=fi,Fi=Kn,Oi=Bi;Kn=(gt=Wt.distcode[Oi+((ne&(1<<en+Fi)-1)>>en)])>>>16&255,Bi=65535&gt,!(en+(fi=gt>>>24)<=Ce);){if(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}ne>>>=en,Ce-=en,Wt.back+=en}if(ne>>>=fi,Ce-=fi,Wt.back+=fi,64&Kn){qt.msg="invalid distance code",Wt.mode=30;break}Wt.offset=Bi,Wt.extra=15&Kn,Wt.mode=24;case 24:if(Wt.extra){for(ft=Wt.extra;Ce<ft;){if(Re===0)break t;Re--,ne+=Ge[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){qt.msg="invalid distance too far back",Wt.mode=30;break}Wt.mode=25;case 25:if(ve===0)break t;if(Ze=Ln-ve,Wt.offset>Ze){if((Ze=Wt.offset-Ze)>Wt.whave&&Wt.sane){qt.msg="invalid distance too far back",Wt.mode=30;break}Mn=Ze>Wt.wnext?(Ze-=Wt.wnext,Wt.wsize-Ze):Wt.wnext-Ze,Ze>Wt.length&&(Ze=Wt.length),Vn=Wt.window}else Vn=_e,Mn=We-Wt.offset,Ze=Wt.length;for(ve<Ze&&(Ze=ve),ve-=Ze,Wt.length-=Ze;_e[We++]=Vn[Mn++],--Ze;);Wt.length===0&&(Wt.mode=21);break;case 26:if(ve===0)break t;_e[We++]=Wt.length,ve--,Wt.mode=21;break;case 27:if(Wt.wrap){for(;Ce<32;){if(Re===0)break t;Re--,ne|=Ge[Ne++]<<Ce,Ce+=8}if(Ln-=ve,qt.total_out+=Ln,Wt.total+=Ln,Ln&&(qt.adler=Wt.check=Wt.flags?jt(Wt.check,_e,Ln,We-Ln):Mt(Wt.check,_e,Ln,We-Ln)),Ln=ve,(Wt.flags?ne:rt(ne))!==Wt.check){qt.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(Re===0)break t;Re--,ne+=Ge[Ne++]<<Ce,Ce+=8}if(ne!==(4294967295&Wt.total)){qt.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 qt.next_out=We,qt.avail_out=ve,qt.next_in=Ne,qt.avail_in=Re,Wt.hold=ne,Wt.bits=Ce,(Wt.wsize||Ln!==qt.avail_out&&Wt.mode<30&&(Wt.mode<27||ze!==4))&&Pe(qt,qt.output,qt.next_out,Ln-qt.avail_out)?(Wt.mode=31,-4):(bn-=qt.avail_in,Ln-=qt.avail_out,qt.total_in+=bn,qt.total_out+=Ln,Wt.total+=Ln,Wt.wrap&&Ln&&(qt.adler=Wt.check=Wt.flags?jt(Wt.check,_e,Ln,qt.next_out-Ln):Mt(Wt.check,_e,Ln,qt.next_out-Ln)),qt.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||ze===4)&&Tt===$t&&(Tt=-5),Tt)},ee.inflateEnd=function(qt){if(!qt||!qt.state)return Ct;var ze=qt.state;return ze.window&&(ze.window=null),qt.state=null,$t},ee.inflateGetHeader=function(qt,ze){var Wt;return qt&&qt.state&&2&(Wt=qt.state).wrap?((Wt.head=ze).done=!1,$t):Ct},ee.inflateSetDictionary=function(qt,ze){var Wt,Ge=ze.length;return qt&&qt.state?(Wt=qt.state).wrap!==0&&Wt.mode!==11?Ct:Wt.mode===11&&Mt(1,ze,Ge,0)!==Wt.check?-3:Pe(qt,ze,Ge,Ge)?(Wt.mode=31,-4):(Wt.havedict=1,$t):Ct},ee.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(re,ke,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],te=[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],Pt=[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];ke.exports=function(oe,Kt,$t,Ct,et,tt,lt,rt){var ht,dt,xt,Nt,Ut,Gt,se,le,Ae,Pe=rt.bits,qt=0,ze=0,Wt=0,Ge=0,_e=0,Ne=0,We=0,Re=0,ve=0,ne=0,Ce=null,bn=0,Ln=new Vt.Buf16(16),Ze=new Vt.Buf16(16),Mn=null,Vn=0;for(qt=0;qt<=15;qt++)Ln[qt]=0;for(ze=0;ze<Ct;ze++)Ln[Kt[$t+ze]]++;for(_e=Pe,Ge=15;1<=Ge&&Ln[Ge]===0;Ge--);if(Ge<_e&&(_e=Ge),Ge===0)return et[tt++]=20971520,et[tt++]=20971520,rt.bits=1,0;for(Wt=1;Wt<Ge&&Ln[Wt]===0;Wt++);for(_e<Wt&&(_e=Wt),qt=Re=1;qt<=15;qt++)if(Re<<=1,(Re-=Ln[qt])<0)return-1;if(0<Re&&(oe===0||Ge!==1))return-1;for(Ze[1]=0,qt=1;qt<15;qt++)Ze[qt+1]=Ze[qt]+Ln[qt];for(ze=0;ze<Ct;ze++)Kt[$t+ze]!==0&&(lt[Ze[Kt[$t+ze]]++]=ze);if(Gt=oe===0?(Ce=Mn=lt,19):oe===1?(Ce=Mt,bn-=257,Mn=jt,Vn-=257,256):(Ce=te,Mn=Pt,-1),qt=Wt,Ut=tt,We=ze=ne=0,xt=-1,Nt=(ve=1<<(Ne=_e))-1,oe===1&&852<ve||oe===2&&592<ve)return 1;for(;;){for(se=qt-We,Ae=lt[ze]<Gt?(le=0,lt[ze]):lt[ze]>Gt?(le=Mn[Vn+lt[ze]],Ce[bn+lt[ze]]):(le=96,0),ht=1<<qt-We,Wt=dt=1<<Ne;et[Ut+(ne>>We)+(dt-=ht)]=se<<24|le<<16|Ae|0,dt!==0;);for(ht=1<<qt-1;ne&ht;)ht>>=1;if(ht!==0?(ne&=ht-1,ne+=ht):ne=0,ze++,--Ln[qt]==0){if(qt===Ge)break;qt=Kt[$t+lt[ze]]}if(_e<qt&&(ne&Nt)!==xt){for(We===0&&(We=_e),Ut+=Wt,Re=1<<(Ne=qt-We);Ne+We<Ge&&!((Re-=Ln[Ne+We])<=0);)Ne++,Re<<=1;if(ve+=1<<Ne,oe===1&&852<ve||oe===2&&592<ve)return 1;et[xt=ne&Nt]=_e<<24|Ne<<16|Ut-tt|0}}return ne!==0&&(et[Ut+ne]=qt-We<<24|64<<16|0),rt.bits=_e,0}},{"../utils/common":41}],51:[function(re,ke,ee){"use strict";ke.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,ke,ee){"use strict";var Vt=re("../utils/common"),Mt=0,jt=1;function te(gt){for(var At=gt.length;0<=--At;)gt[At]=0}var Pt=0,oe=29,Kt=256,$t=Kt+1+oe,Ct=30,et=19,tt=2*$t+1,lt=15,rt=16,ht=7,dt=256,xt=16,Nt=17,Ut=18,Gt=[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],se=[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],le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pe=new Array(2*($t+2));te(Pe);var qt=new Array(2*Ct);te(qt);var ze=new Array(512);te(ze);var Wt=new Array(256);te(Wt);var Ge=new Array(oe);te(Ge);var _e,Ne,We,Re=new Array(Ct);function ve(gt,At,ue,xe,ae){this.static_tree=gt,this.extra_bits=At,this.extra_base=ue,this.elems=xe,this.max_length=ae,this.has_stree=gt&&gt.length}function ne(gt,At){this.dyn_tree=gt,this.max_code=0,this.stat_desc=At}function Ce(gt){return gt<256?ze[gt]:ze[256+(gt>>>7)]}function bn(gt,At){gt.pending_buf[gt.pending++]=255&At,gt.pending_buf[gt.pending++]=At>>>8&255}function Ln(gt,At,ue){gt.bi_valid>rt-ue?(gt.bi_buf|=At<<gt.bi_valid&65535,bn(gt,gt.bi_buf),gt.bi_buf=At>>rt-gt.bi_valid,gt.bi_valid+=ue-rt):(gt.bi_buf|=At<<gt.bi_valid&65535,gt.bi_valid+=ue)}function Ze(gt,At,ue){Ln(gt,ue[2*At],ue[2*At+1])}function Mn(gt,At){for(var ue=0;ue|=1&gt,gt>>>=1,ue<<=1,0<--At;);return ue>>>1}function Vn(gt,At,ue){var xe,ae,ye=new Array(lt+1),Te=0;for(xe=1;xe<=lt;xe++)ye[xe]=Te=Te+ue[xe-1]<<1;for(ae=0;ae<=At;ae++){var De=gt[2*ae+1];De!==0&&(gt[2*ae]=Mn(ye[De]++,De))}}function fi(gt){var At;for(At=0;At<$t;At++)gt.dyn_ltree[2*At]=0;for(At=0;At<Ct;At++)gt.dyn_dtree[2*At]=0;for(At=0;At<et;At++)gt.bl_tree[2*At]=0;gt.dyn_ltree[2*dt]=1,gt.opt_len=gt.static_len=0,gt.last_lit=gt.matches=0}function Kn(gt){8<gt.bi_valid?bn(gt,gt.bi_buf):0<gt.bi_valid&&(gt.pending_buf[gt.pending++]=gt.bi_buf),gt.bi_buf=0,gt.bi_valid=0}function Bi(gt,At,ue,xe){var ae=2*At,ye=2*ue;return gt[ae]<gt[ye]||gt[ae]===gt[ye]&&xe[At]<=xe[ue]}function en(gt,At,ue){for(var xe=gt.heap[ue],ae=ue<<1;ae<=gt.heap_len&&(ae<gt.heap_len&&Bi(At,gt.heap[ae+1],gt.heap[ae],gt.depth)&&ae++,!Bi(At,xe,gt.heap[ae],gt.depth));)gt.heap[ue]=gt.heap[ae],ue=ae,ae<<=1;gt.heap[ue]=xe}function Fi(gt,At,ue){var xe,ae,ye,Te,De=0;if(gt.last_lit!==0)for(;xe=gt.pending_buf[gt.d_buf+2*De]<<8|gt.pending_buf[gt.d_buf+2*De+1],ae=gt.pending_buf[gt.l_buf+De],De++,xe===0?Ze(gt,ae,At):(Ze(gt,(ye=Wt[ae])+Kt+1,At),(Te=Gt[ye])!==0&&Ln(gt,ae-=Ge[ye],Te),Ze(gt,ye=Ce(--xe),ue),(Te=se[ye])!==0&&Ln(gt,xe-=Re[ye],Te)),De<gt.last_lit;);Ze(gt,dt,At)}function Oi(gt,At){var ue,xe,ae,ye=At.dyn_tree,Te=At.stat_desc.static_tree,De=At.stat_desc.has_stree,Me=At.stat_desc.elems,sn=-1;for(gt.heap_len=0,gt.heap_max=tt,ue=0;ue<Me;ue++)ye[2*ue]!==0?(gt.heap[++gt.heap_len]=sn=ue,gt.depth[ue]=0):ye[2*ue+1]=0;for(;gt.heap_len<2;)ye[2*(ae=gt.heap[++gt.heap_len]=sn<2?++sn:0)]=1,gt.depth[ae]=0,gt.opt_len--,De&&(gt.static_len-=Te[2*ae+1]);for(At.max_code=sn,ue=gt.heap_len>>1;1<=ue;ue--)en(gt,ye,ue);for(ae=Me;ue=gt.heap[1],gt.heap[1]=gt.heap[gt.heap_len--],en(gt,ye,1),xe=gt.heap[1],gt.heap[--gt.heap_max]=ue,gt.heap[--gt.heap_max]=xe,ye[2*ae]=ye[2*ue]+ye[2*xe],gt.depth[ae]=(gt.depth[ue]>=gt.depth[xe]?gt.depth[ue]:gt.depth[xe])+1,ye[2*ue+1]=ye[2*xe+1]=ae,gt.heap[1]=ae++,en(gt,ye,1),2<=gt.heap_len;);gt.heap[--gt.heap_max]=gt.heap[1],function(Gn,an){var un,Bn,ai,On,ji,er,Ji=an.dyn_tree,Fr=an.max_code,vr=an.stat_desc.static_tree,so=an.stat_desc.has_stree,Yr=an.stat_desc.extra_bits,Jr=an.stat_desc.extra_base,Lr=an.stat_desc.max_length,Zr=0;for(On=0;On<=lt;On++)Gn.bl_count[On]=0;for(Ji[2*Gn.heap[Gn.heap_max]+1]=0,un=Gn.heap_max+1;un<tt;un++)Lr<(On=Ji[2*Ji[2*(Bn=Gn.heap[un])+1]+1]+1)&&(On=Lr,Zr++),Ji[2*Bn+1]=On,Fr<Bn||(Gn.bl_count[On]++,ji=0,Jr<=Bn&&(ji=Yr[Bn-Jr]),er=Ji[2*Bn],Gn.opt_len+=er*(On+ji),so&&(Gn.static_len+=er*(vr[2*Bn+1]+ji)));if(Zr!==0){do{for(On=Lr-1;Gn.bl_count[On]===0;)On--;Gn.bl_count[On]--,Gn.bl_count[On+1]+=2,Gn.bl_count[Lr]--,Zr-=2}while(0<Zr);for(On=Lr;On!==0;On--)for(Bn=Gn.bl_count[On];Bn!==0;)Fr<(ai=Gn.heap[--un])||(Ji[2*ai+1]!==On&&(Gn.opt_len+=(On-Ji[2*ai+1])*Ji[2*ai],Ji[2*ai+1]=On),Bn--)}}(gt,At),Vn(ye,sn,gt.bl_count)}function Ot(gt,At,ue){var xe,ae,ye=-1,Te=At[1],De=0,Me=7,sn=4;for(Te===0&&(Me=138,sn=3),At[2*(ue+1)+1]=65535,xe=0;xe<=ue;xe++)ae=Te,Te=At[2*(xe+1)+1],++De<Me&&ae===Te||(De<sn?gt.bl_tree[2*ae]+=De:ae!==0?(ae!==ye&&gt.bl_tree[2*ae]++,gt.bl_tree[2*xt]++):De<=10?gt.bl_tree[2*Nt]++:gt.bl_tree[2*Ut]++,ye=ae,sn=(De=0)===Te?(Me=138,3):ae===Te?(Me=6,3):(Me=7,4))}function Tt(gt,At,ue){var xe,ae,ye=-1,Te=At[1],De=0,Me=7,sn=4;for(Te===0&&(Me=138,sn=3),xe=0;xe<=ue;xe++)if(ae=Te,Te=At[2*(xe+1)+1],!(++De<Me&&ae===Te)){if(De<sn)for(;Ze(gt,ae,gt.bl_tree),--De!=0;);else ae!==0?(ae!==ye&&(Ze(gt,ae,gt.bl_tree),De--),Ze(gt,xt,gt.bl_tree),Ln(gt,De-3,2)):De<=10?(Ze(gt,Nt,gt.bl_tree),Ln(gt,De-3,3)):(Ze(gt,Ut,gt.bl_tree),Ln(gt,De-11,7));ye=ae,sn=(De=0)===Te?(Me=138,3):ae===Te?(Me=6,3):(Me=7,4)}}te(Re);var vt=!1;function ft(gt,At,ue,xe){Ln(gt,(Pt<<1)+(xe?1:0),3),function(ae,ye,Te,De){Kn(ae),De&&(bn(ae,Te),bn(ae,~Te)),Vt.arraySet(ae.pending_buf,ae.window,ye,Te,ae.pending),ae.pending+=Te}(gt,At,ue,!0)}ee._tr_init=function(gt){vt||(function(){var At,ue,xe,ae,ye,Te=new Array(lt+1);for(ae=xe=0;ae<oe-1;ae++)for(Ge[ae]=xe,At=0;At<1<<Gt[ae];At++)Wt[xe++]=ae;for(Wt[xe-1]=ae,ae=ye=0;ae<16;ae++)for(Re[ae]=ye,At=0;At<1<<se[ae];At++)ze[ye++]=ae;for(ye>>=7;ae<Ct;ae++)for(Re[ae]=ye<<7,At=0;At<1<<se[ae]-7;At++)ze[256+ye++]=ae;for(ue=0;ue<=lt;ue++)Te[ue]=0;for(At=0;At<=143;)Pe[2*At+1]=8,At++,Te[8]++;for(;At<=255;)Pe[2*At+1]=9,At++,Te[9]++;for(;At<=279;)Pe[2*At+1]=7,At++,Te[7]++;for(;At<=287;)Pe[2*At+1]=8,At++,Te[8]++;for(Vn(Pe,$t+1,Te),At=0;At<Ct;At++)qt[2*At+1]=5,qt[2*At]=Mn(At,5);_e=new ve(Pe,Gt,Kt+1,$t,lt),Ne=new ve(qt,se,0,Ct,lt),We=new ve(new Array(0),le,0,et,ht)}(),vt=!0),gt.l_desc=new ne(gt.dyn_ltree,_e),gt.d_desc=new ne(gt.dyn_dtree,Ne),gt.bl_desc=new ne(gt.bl_tree,We),gt.bi_buf=0,gt.bi_valid=0,fi(gt)},ee._tr_stored_block=ft,ee._tr_flush_block=function(gt,At,ue,xe){var ae,ye,Te=0;0<gt.level?(gt.strm.data_type===2&&(gt.strm.data_type=function(De){var Me,sn=4093624447;for(Me=0;Me<=31;Me++,sn>>>=1)if(1&sn&&De.dyn_ltree[2*Me]!==0)return Mt;if(De.dyn_ltree[18]!==0||De.dyn_ltree[20]!==0||De.dyn_ltree[26]!==0)return jt;for(Me=32;Me<Kt;Me++)if(De.dyn_ltree[2*Me]!==0)return jt;return Mt}(gt)),Oi(gt,gt.l_desc),Oi(gt,gt.d_desc),Te=function(De){var Me;for(Ot(De,De.dyn_ltree,De.l_desc.max_code),Ot(De,De.dyn_dtree,De.d_desc.max_code),Oi(De,De.bl_desc),Me=et-1;3<=Me&&De.bl_tree[2*Ae[Me]+1]===0;Me--);return De.opt_len+=3*(Me+1)+5+5+4,Me}(gt),ae=gt.opt_len+3+7>>>3,(ye=gt.static_len+3+7>>>3)<=ae&&(ae=ye)):ae=ye=ue+5,ue+4<=ae&&At!==-1?ft(gt,At,ue,xe):gt.strategy===4||ye===ae?(Ln(gt,2+(xe?1:0),3),Fi(gt,Pe,qt)):(Ln(gt,4+(xe?1:0),3),function(De,Me,sn,Gn){var an;for(Ln(De,Me-257,5),Ln(De,sn-1,5),Ln(De,Gn-4,4),an=0;an<Gn;an++)Ln(De,De.bl_tree[2*Ae[an]+1],3);Tt(De,De.dyn_ltree,Me-1),Tt(De,De.dyn_dtree,sn-1)}(gt,gt.l_desc.max_code+1,gt.d_desc.max_code+1,Te+1),Fi(gt,gt.dyn_ltree,gt.dyn_dtree)),fi(gt),xe&&Kn(gt)},ee._tr_tally=function(gt,At,ue){return gt.pending_buf[gt.d_buf+2*gt.last_lit]=At>>>8&255,gt.pending_buf[gt.d_buf+2*gt.last_lit+1]=255&At,gt.pending_buf[gt.l_buf+gt.last_lit]=255&ue,gt.last_lit++,At===0?gt.dyn_ltree[2*ue]++:(gt.matches++,At--,gt.dyn_ltree[2*(Wt[ue]+Kt+1)]++,gt.dyn_dtree[2*Ce(At)]++),gt.last_lit===gt.lit_bufsize-1},ee._tr_align=function(gt){Ln(gt,2,3),Ze(gt,dt,Pe),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)}(gt)}},{"../utils/common":41}],53:[function(re,ke,ee){"use strict";ke.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,ke,ee){(function(Vt){(function(Mt,jt){"use strict";if(!Mt.setImmediate){var te,Pt,oe,Kt,$t=1,Ct={},et=!1,tt=Mt.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(Mt);lt=lt&&lt.setTimeout?lt:Mt,te={}.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}}()?(Kt="setImmediate$"+Math.random()+"$",Mt.addEventListener?Mt.addEventListener("message",dt,!1):Mt.attachEvent("onmessage",dt),function(xt){Mt.postMessage(Kt+xt,"*")}):Mt.MessageChannel?((oe=new MessageChannel).port1.onmessage=function(xt){ht(xt.data)},function(xt){oe.port2.postMessage(xt)}):tt&&"onreadystatechange"in tt.createElement("script")?(Pt=tt.documentElement,function(xt){var Nt=tt.createElement("script");Nt.onreadystatechange=function(){ht(xt),Nt.onreadystatechange=null,Pt.removeChild(Nt),Nt=null},Pt.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 Gt={callback:xt,args:Nt};return Ct[$t]=Gt,te($t),$t++},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 Gt=Ut.callback,se=Ut.args;switch(se.length){case 0:Gt();break;case 1:Gt(se[0]);break;case 2:Gt(se[0],se[1]);break;case 3:Gt(se[0],se[1],se[2]);break;default:Gt.apply(jt,se)}})(Nt)}finally{rt(xt),et=!1}}}}function dt(xt){xt.source===Mt&&typeof xt.data=="string"&&xt.data.indexOf(Kt)===0&&ht(+xt.data.slice(Kt.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,Cn,Ft){"use strict";Ft.d(Cn,{hP:function(){return Oi}});var Lt=function(Ot,Tt){return(Lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,ft){vt.__proto__=ft}||function(vt,ft){for(var gt in ft)Object.prototype.hasOwnProperty.call(ft,gt)&&(vt[gt]=ft[gt])})(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,ft){return new(vt||(vt=Promise))(function(gt,At){function ue(ye){try{ae(ft.next(ye))}catch(Te){At(Te)}}function xe(ye){try{ae(ft.throw(ye))}catch(Te){At(Te)}}function ae(ye){var Te;ye.done?gt(ye.value):(Te=ye.value,Te instanceof vt?Te:new vt(function(De){De(Te)})).then(ue,xe)}ae((ft=ft.apply(Ot,Tt||[])).next())})}function ke(Ot,Tt){var vt,ft,gt,At,ue={label:0,sent:function(){if(1&gt[0])throw gt[1];return gt[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(Te){if(vt)throw new TypeError("Generator is already executing.");for(;ue;)try{if(vt=1,ft&&(gt=2&Te[0]?ft.return:Te[0]?ft.throw||((gt=ft.return)&&gt.call(ft),0):ft.next)&&!(gt=gt.call(ft,Te[1])).done)return gt;switch(ft=0,gt&&(Te=[2&Te[0],gt.value]),Te[0]){case 0:case 1:gt=Te;break;case 4:return ue.label++,{value:Te[1],done:!1};case 5:ue.label++,ft=Te[1],Te=[0];continue;case 7:Te=ue.ops.pop(),ue.trys.pop();continue;default:if(gt=ue.trys,!((gt=gt.length>0&&gt[gt.length-1])||Te[0]!==6&&Te[0]!==2)){ue=0;continue}if(Te[0]===3&&(!gt||Te[1]>gt[0]&&Te[1]<gt[3])){ue.label=Te[1];break}if(Te[0]===6&&ue.label<gt[1]){ue.label=gt[1],gt=Te;break}if(gt&&ue.label<gt[2]){ue.label=gt[2],ue.ops.push(Te);break}gt[2]&&ue.ops.pop(),ue.trys.pop();continue}Te=Tt.call(Ot,ue)}catch(De){Te=[6,De],ft=0}finally{vt=gt=0}if(5&Te[0])throw Te[1];return{value:Te[0]?Te[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 ft=Array(Ot),gt=0;for(Tt=0;Tt<vt;Tt++)for(var At=arguments[Tt],ue=0,xe=At.length;ue<xe;ue++,gt++)ft[gt]=At[ue];return ft}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 ft=0,gt=vt;ft<gt.length;ft++){var At=gt[ft],ue=At[0],xe=At[1];Tt.setAttribute(ue,xe)}},Ot.createRect=function(Tt,vt,ft){var gt=document.createElementNS("http://www.w3.org/2000/svg","rect");return gt.setAttribute("width",Tt.toString()),gt.setAttribute("height",vt.toString()),ft&&Ot.setAttributes(gt,ft),gt},Ot.createLine=function(Tt,vt,ft,gt,At){var ue=document.createElementNS("http://www.w3.org/2000/svg","line");return ue.setAttribute("x1",Tt.toString()),ue.setAttribute("y1",vt.toString()),ue.setAttribute("x2",ft.toString()),ue.setAttribute("y2",gt.toString()),At&&Ot.setAttributes(ue,At),ue},Ot.createPolygon=function(Tt,vt){var ft=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ft.setAttribute("points",Tt),vt&&Ot.setAttributes(ft,vt),ft},Ot.createCircle=function(Tt,vt){var ft=document.createElementNS("http://www.w3.org/2000/svg","circle");return ft.setAttribute("cx",(Tt/2).toString()),ft.setAttribute("cy",(Tt/2).toString()),ft.setAttribute("r",Tt.toString()),vt&&Ot.setAttributes(ft,vt),ft},Ot.createEllipse=function(Tt,vt,ft){var gt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return gt.setAttribute("cx",(Tt/2).toString()),gt.setAttribute("cy",(vt/2).toString()),gt.setAttribute("rx",(Tt/2).toString()),gt.setAttribute("ry",(vt/2).toString()),ft&&Ot.setAttributes(gt,ft),gt},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,ft,gt,At,ue,xe){var ae=document.createElementNS("http://www.w3.org/2000/svg","marker");return Ot.setAttributes(ae,[["id",Tt],["orient",vt],["markerWidth",ft.toString()],["markerHeight",gt.toString()],["refX",At.toString()],["refY",ue.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 ft=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ft.textContent=Tt,vt&&Ot.setAttributes(ft,vt),ft},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 ft=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ft.x=Tt,ft.y=vt,ft},Ot.createPath=function(Tt,vt){var ft=document.createElementNS("http://www.w3.org/2000/svg","path");return ft.setAttribute("d",Tt),vt&&Ot.setAttributes(ft,vt),ft},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,ft){var gt=this;return new Promise(function(At){var ue=ft!==void 0?ft:document.createElement("canvas");Tt===null&&(gt.markersOnly=!0,gt.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,gt.naturalSize===!0?(xe.width.baseVal.value=Tt.naturalWidth,xe.height.baseVal.value=Tt.naturalHeight):gt.width!==void 0&&gt.height!==void 0&&(xe.width.baseVal.value=gt.width,xe.height.baseVal.value=gt.height),ue.width=xe.width.baseVal.value,ue.height=xe.height.baseVal.value;var ae=xe.outerHTML,ye=ue.getContext("2d");gt.markersOnly!==!0&&ye.drawImage(Tt,0,0,ue.width,ue.height);var Te=window.URL,De=new Image(ue.width,ue.height);De.setAttribute("crossOrigin","anonymous");var Me=new Blob([ae],{type:"image/svg+xml"}),sn=Te.createObjectURL(Me);De.onload=function(){ye.drawImage(De,0,0),Te.revokeObjectURL(sn);var Gn=ue.toDataURL(gt.imageType,gt.imageQuality);At(Gn)},De.src=sn})},Ot}(),te=function(){},Pt=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 oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Kt("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Kt("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}(),oe=function(Ot,Tt){this.selector=Ot,this.style=Tt},Kt=function(Ot,Tt){this.localName=Ot,this.style=Tt},$t=function(){function Ot(Tt,vt,ft,gt,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Tt,this.displayMode=vt,this.markerItems=ft,this.uiStyleSettings=gt,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 ft=document.createElement("div");ft.className=this.toolbarBlockStyleClass.name,ft.style.whiteSpace="nowrap",this.uiContainer.appendChild(ft),this.addActionButton(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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 ue=document.createElement("div");ue.className=""+vt.toolbarButtonStyleClass.name,ue.setAttribute("data-type-name",At.typeName),ue.innerHTML=At.icon,ue.addEventListener("click",function(){vt.markerToolbarButtonClicked(ue,At)}),vt.buttons.push(ue),vt.markerButtons.push(ue)}),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 gt=document.createElement("div");gt.className=this.toolbarBlockStyleClass.name,gt.style.whiteSpace="nowrap",gt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(gt),this.addActionButton(gt,'<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(gt,'<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,ft){var gt=this,At=document.createElement("div");switch(At.className=""+this.toolbarButtonStyleClass.name,At.innerHTML=vt,At.setAttribute("data-action",ft),At.addEventListener("click",function(){gt.actionToolbarButtonClicked(At,ft)}),ft){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 Kt("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 Kt("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Kt("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Tt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Kt("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 Kt("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Kt("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new oe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new oe("."+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(ft){return ft("marker",vt)}),this.markerButtonOverflowBlock.style.display="none"},Ot.prototype.actionToolbarButtonClicked=function(Tt,vt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ft){return ft("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(ft){return ft.getAttribute("data-type-name")===Tt});vt&&this.setActiveButton(vt)},Ot.prototype.setCurrentMarker=function(Tt){var vt=this;this.currentMarker=Tt,this.buttons.filter(function(ft){return/delete|notes/.test(ft.getAttribute("data-action"))}).forEach(function(ft){vt.currentMarker===void 0?(ft.style.fillOpacity="0.4",ft.style.pointerEvents="none"):(ft.style.fillOpacity="1",ft.style.pointerEvents="all")})},Ot}(),Ct=function(){function Ot(Tt,vt,ft,gt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Tt,this.displayMode=vt,this.uiStyleSettings=ft,this.styles=gt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Ot.prototype.addStyles=function(){var Tt;this.toolboxStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var vt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Kt("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Kt("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-panel-row_colors",`
background-color: `+((Tt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Tt!==void 0?Tt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Kt("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 Kt("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Kt("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new oe("."+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,ft,gt=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+" "+((ft=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ft!==void 0?ft:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(At){var ue;At.uiStyleSettings=gt.uiStyleSettings;var xe=document.createElement("div");xe.className=gt.toolboxButtonStyleClass.name+" "+((ue=gt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ue!==void 0?ue:gt.toolboxButtonStyleColorsClass.name),xe.innerHTML=At.icon,xe.title=At.title,xe.addEventListener("click",function(){gt.panelButtonClick(At)}),gt.panelButtons.push(xe),gt.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Ot.prototype.panelButtonClick=function(Tt){var vt=this,ft=-1;if(Tt!==this.activePanel){ft=this.panels.indexOf(Tt),this.panelRow.innerHTML="";var gt=Tt.getUi();gt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(gt),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,ue){var xe,ae;At.className=vt.toolboxButtonStyleClass.name+" "+(ue===ft?""+((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,ft,gt,At){var ue=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 ue.colors=[],ue.addTransparent=!1,ue.colorBoxes=[],ue.colors=ft,ue.currentColor=gt,ue.setCurrentColor=ue.setCurrentColor.bind(ue),ue.getColorBox=ue.getColorBox.bind(ue),ue}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,ft=document.createElement("div");return ft.style.overflow="hidden",ft.style.whiteSpace="nowrap",this.colors.forEach(function(gt){var At=vt.getColorBox(gt);ft.appendChild(At),vt.colorBoxes.push(At)}),ft},Tt.prototype.getColorBox=function(vt){var ft=this,gt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-gt,ue=document.createElement("div");ue.style.display="inline-block",ue.style.boxSizing="content-box",ue.style.width=At-2+"px",ue.style.height=At-2+"px",ue.style.padding="1px",ue.style.marginRight="2px",ue.style.marginBottom="2px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.borderRadius=(At+2)/2+"px",ue.style.borderColor=vt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){ft.setCurrentColor(vt,ue)});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>`),ue.appendChild(xe),ue},Tt.prototype.setCurrentColor=function(vt,ft){var gt=this;this.currentColor=vt,this.colorBoxes.forEach(function(At){At.style.borderColor=At===ft?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(vt)},Tt}(et),lt=function(){function Ot(Tt,vt,ft){this._state="new",this._isSelected=!1,this._container=Tt,this._overlayContainer=vt,this.globalSettings=ft,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,ft,gt){var At=Ot.call(this,vt,ft,gt)||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 ft=Vt.createTransform();this._visual.transform.baseVal.appendItem(ft)},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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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 gt=this.unrotatePoint(vt);if(this.manipulationStartX=gt.x,this.manipulationStartY=gt.y,this.offsetX=gt.x-this.left,this.offsetY=gt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ft),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ft)){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 ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Tt.prototype.pointerUp=function(vt){var ft=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",ft==="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 ft=this.unrotatePoint(vt);this.state==="creating"?this.resize(vt):this.state==="move"?(this.left=this.manipulationStartLeft+(ft.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ft.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ft):this.state==="rotate"&&this.rotate(vt)},Tt.prototype.resize=function(vt){var ft=this.manipulationStartLeft,gt=this.manipulationStartWidth,At=this.manipulationStartTop,ue=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ft=this.manipulationStartLeft+vt.x-this.manipulationStartX,gt=this.manipulationStartWidth+this.manipulationStartLeft-ft;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:gt=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,ue=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ue=this.manipulationStartHeight+vt.y-this.manipulationStartY}gt>=0?(this.left=ft,this.width=gt):(this.left=ft+gt,this.width=-gt),ue>=0?(this.top=At,this.height=ue):(this.top=At+ue,this.height=-ue),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 ft=Math.sign(vt.x-this.centerX);this.rotationAngle=180*Math.atan((vt.y-this.centerY)/(vt.x-this.centerX))/Math.PI+90*ft,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 ft=this.container.getCTM(),gt=Vt.createPoint(vt.x,vt.y);return{x:(gt=gt.matrixTransform(ft)).x,y:gt.y}},Tt.prototype.unrotatePoint=function(vt){if(this.rotationAngle===0)return vt;var ft=this.container.getCTM();ft=ft.inverse();var gt=Vt.createPoint(vt.x,vt.y);return{x:(gt=gt.matrixTransform(ft)).x,y:gt.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,ft=-vt/2,gt=ft,At=(this.width+this.CB_DISTANCE)/2-vt/2,ue=(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,ft,gt),this.positionGrip(this.controlGrips.topCenter.visual,At,gt),this.positionGrip(this.controlGrips.topRight.visual,ae,gt),this.positionGrip(this.controlGrips.centerLeft.visual,ft,ue),this.positionGrip(this.controlGrips.centerRight.visual,ae,ue),this.positionGrip(this.controlGrips.bottomLeft.visual,ft,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,gt-3*this.CB_DISTANCE)},Tt.prototype.positionGrip=function(vt,ft,gt){var At=vt.transform.baseVal.getItem(0);At.setTranslate(ft,gt),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 ft=vt;this.left=ft.left,this.top=ft.top,this.width=ft.width,this.height=ft.height,this.rotationAngle=ft.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ft.containerTransformMatrix))},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft);var gt=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:gt.x*vt,y:gt.y*ft});this.left=At.x,this.top=At.y,this.width=this.width*vt,this.height=this.height*ft,this.adjustControlBox()},Tt}(lt),Nt=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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 ft=vt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.opacity=ft.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft),this.setSize()},Tt.title="Rectangle marker",Tt}(xt),Ut=function(Ot){function Tt(vt,ft,gt,At){var ue=Ot.call(this,vt,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ue.widths=[],ue.widthBoxes=[],ue.widths=ft,ue.currentWidth=gt,ue.setCurrentWidth=ue.setCurrentWidth.bind(ue),ue}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",this.widths.forEach(function(gt){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=gt===vt.currentWidth?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentWidth(gt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.innerText=gt.toString(),ue.style.marginRight="5px",At.appendChild(ue);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=gt+"px solid "+vt.uiStyleSettings.toolboxColor,ae.style.flexGrow="2",xe.appendChild(ae),At.appendChild(xe),vt.widthBoxes.push(At)}),ft},Tt.prototype.setCurrentWidth=function(vt,ft){var gt=this;this.currentWidth=vt,this.widthBoxes.forEach(function(At){At.style.borderColor=At===ft?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Tt}(et),Gt=function(Ot){function Tt(vt,ft,gt,At){var ue=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 ue.styles=[],ue.styleBoxes=[],ue.styles=ft,ue.currentStyle=gt,ue.setCurrentStyle=ue.setCurrentStyle.bind(ue),ue}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",this.styles.forEach(function(gt){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=gt===vt.currentStyle?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentStyle(gt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.style.minHeight="20px",ue.style.flexGrow="2",ue.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" '+(gt!==""?'stroke-dasharray="'+gt+'"':"")+` />
</svg>`;ue.innerHTML=xe,At.appendChild(ue),vt.styleBoxes.push(At)}),ft},Tt.prototype.setCurrentStyle=function(vt,ft){var gt=this;this.currentStyle=vt,this.styleBoxes.forEach(function(At){At.style.borderColor=At===ft?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Tt}(et),se=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||this;return At.strokeColor=gt.defaultColor,At.strokeWidth=gt.defaultStrokeWidth,At.strokeDasharray=gt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",gt.defaultColorSet,gt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ut("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",gt.defaultStrokeDasharrays,gt.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),le=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"},Ae=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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(ft)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ft)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Tt.prototype.pointerUp=function(vt){var ft=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",ft==="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,ft,gt){var At=vt.transform.baseVal.getItem(0);At.setTranslate(ft,gt),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 ft=vt;this.x1=ft.x1,this.y1=ft.y1,this.x2=ft.x2,this.y2=ft.y2},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft),this.x1=this.x1*vt,this.y1=this.y1*ft,this.x2=this.x2*vt,this.y2=this.y2*ft,this.adjustVisual(),this.adjustControlBox()},Tt}(lt),Pe=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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=gt.defaultColor,At.strokeWidth=gt.defaultStrokeWidth,At.strokeDasharray=gt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",gt.defaultColorSet,gt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ut("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",gt.defaultStrokeDasharrays,gt.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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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 ft=vt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.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}(Ae),qt=function(Ot){function Tt(vt,ft,gt,At){var ue=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 ue.fonts=[],ue.fontBoxes=[],ue.fonts=ft,ue.currentFont=gt,ue.setCurrentFont=ue.setCurrentFont.bind(ue),ue}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,ft=document.createElement("div");return ft.style.overflow="hidden",ft.style.flexGrow="2",this.fonts.forEach(function(gt){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=gt===vt.currentFont?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentFont(gt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.style.display="flex",ue.style.minHeight="20px",ue.style.flexGrow="2",ue.style.fontFamily=gt,ue.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",ue.appendChild(xe),At.appendChild(ue),vt.fontBoxes.push(At)}),ft},Tt.prototype.setCurrentFont=function(vt,ft){var gt=this;this.currentFont=vt,this.fontBoxes.forEach(function(At){At.style.borderColor=At===ft?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Tt}(et),ze=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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=gt.defaultColor,At.fontFamily=gt.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",gt.defaultColorSet,gt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new qt("Font",gt.defaultFontFamilies,gt.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 ft=!1;return this.textElement.childNodes.forEach(function(gt){gt===vt&&(ft=!0)}),ft},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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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(ft){vt.textElement.appendChild(Vt.createTSpan(ft.trim()===""?" ":ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Tt.prototype.getTextScale=function(){var vt=this.textElement.getBBox(),ft=1;if(vt.width>0&&vt.height>0){var gt=(1*this.width-this.width*this.padding*2/100)/vt.width,At=(1*this.height-this.height*this.padding*2/100)/vt.height;ft=Math.min(gt,At)}return ft},Tt.prototype.getTextPosition=function(vt){var ft=this.textElement.getBBox(),gt=0,At=0;return ft.width>0&&ft.height>0&&(gt=(this.width-ft.width*vt)/2,At=this.height/2-ft.height*vt/2),{x:gt,y:At}},Tt.prototype.sizeText=function(){var vt=this.textElement.getBBox(),ft=this.getTextScale(),gt=this.getTextPosition(ft);gt.y-=vt.y*ft,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+gt.x+"px, "+gt.y+"px) scale("+ft+", "+ft+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(gt.x,gt.y),this.textElement.transform.baseVal.getItem(1).setScale(ft,ft))},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 ft=this.state;ft==="creating"&&(this._suppressMarkerCreateEvent=!0),Ot.prototype.pointerUp.call(this,vt),this.setSize(),(ft==="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(ft){ft.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ft=Number.parseFloat(vt.textEditor.style.fontSize);vt.textEditor.clientWidth>=Number.parseInt(vt.textEditor.style.maxWidth)&&ft>.9;)ft-=.1,vt.textEditor.style.fontSize=Math.max(ft,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ft){ft.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ft){if(ft.clipboardData){var gt=ft.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(gt)),ft.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(),ft=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),gt=this.textElement.getBBox(),At={x:gt.width*vt,y:gt.height*vt};ft.x-=At.x/2,ft.y-=At.y/2,this.textEditor.style.top=ft.y+"px",this.textEditor.style.left=ft.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ft.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,ft){Ot.prototype.dblClick.call(this,vt,ft),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 ft=vt;this.color=ft.color,this.fontFamily=ft.fontFamily,this.padding=ft.padding,this.text=ft.text,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft),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,ft,gt){var At=Ot.call(this,vt,ft,gt)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=gt.defaultColor,At.lineWidth=gt.defaultStrokeWidth,At.pixelRatio=gt.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",gt.defaultColorSet,gt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new Ut("Line width",gt.defaultStrokeWidths,gt.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,ft){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,ft)},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),ft=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],gt=ft[0],At=ft[1],ue=ft[2],xe=ft[3],ae=!1,ye=0;ye<this.canvasElement.height;ye++)for(var Te=0;Te<this.canvasElement.width;Te++)vt.data[ye*this.canvasElement.width*4+4*Te+3]>0&&(ae=!0,ye<At&&(At=ye),Te<gt&&(gt=Te),ye>xe&&(xe=ye),Te>ue&&(ue=Te));if(ae){this.left=gt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(ue-gt)/this.pixelRatio,this.height=(xe-At)/this.pixelRatio;var De=document.createElement("canvas");De.width=ue-gt,De.height=xe-At,De.getContext("2d").putImageData(this.canvasContext.getImageData(gt,At,ue-gt,xe-At),0,0),this.drawingImgUrl=De.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,ft){Ot.prototype.scale.call(this,vt,ft),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),Ge=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,gt||'<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=ft,At.setCurrentType=At.setCurrentType.bind(At),At}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,ft=document.createElement("div");ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2";for(var gt=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)}),ft.appendChild(ye),ae==="both"||ae==="start"){var Te=document.createElement("div");Te.style.display="flex",Te.style.alignItems="center",Te.style.minHeight="20px",Te.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>`,Te.style.marginLeft="5px",ye.appendChild(Te)}var De=document.createElement("div");De.style.display="flex",De.style.alignItems="center",De.style.minHeight="20px",De.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",De.appendChild(Me),ye.appendChild(De),ae==="both"||ae==="end"){var sn=document.createElement("div");sn.style.display="flex",sn.style.alignItems="center",sn.style.minHeight="20px",sn.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>`,sn.style.marginRight="5px",ye.appendChild(sn)}At.typeBoxes.push(ye)},At=this,ue=0;ue<4;ue++)gt(ue);return ft},Tt.prototype.setCurrentType=function(vt,ft){var gt=this;this.currentType=vt,this.typeBoxes.forEach(function(At){At.style.borderColor=At===ft?gt.uiStyleSettings!==void 0?gt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Tt}(et),_e=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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 Ge("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,ft){var gt=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return vt-gt/2+","+(ft+At/2)+" "+vt+","+(ft-At/2)+" "+(vt+gt/2)+","+(ft+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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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 ft=this.arrow1.transform.baseVal.getItem(0);ft.setRotate(vt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ft,0);var gt=this.arrow2.transform.baseVal.getItem(0);gt.setRotate(vt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(gt,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 ft=vt;this.arrowType=ft.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}(Pe),Ne=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||this;return At.fillColor=gt.defaultFillColor,At.strokeWidth=0,At.fillPanel=new tt("Color",gt.defaultColorSet,gt.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),We=function(Ot){function Tt(vt,ft,gt,At){var ue=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 ue.opacities=[],ue.opacityBoxes=[],ue.opacities=ft,ue.currentOpacity=gt,ue.setCurrentOpacity=ue.setCurrentOpacity.bind(ue),ue}return ce(Tt,Ot),Tt.prototype.getUi=function(){var vt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",ft.style.justifyContent="space-between",this.opacities.forEach(function(gt){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=gt===vt.currentOpacity?vt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){vt.setCurrentOpacity(gt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.innerText=100*gt+"%",At.appendChild(ue),vt.opacityBoxes.push(At)}),ft},Tt.prototype.setCurrentOpacity=function(vt,ft){var gt=this;this.currentOpacity=vt,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===ft?gt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Tt}(et),Re=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=gt.defaultHighlightColor,At.strokeWidth=0,At.opacity=gt.defaultHighlightOpacity,At.fillPanel=new tt("Color",gt.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new We("Opacity",gt.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,ft,gt){var At=Ot.call(this,vt,ft,gt)||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=gt.defaultStrokeColor,At.bgColor=gt.defaultFillColor,At.fontFamily=gt.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",gt.defaultColorSet,At.color,ve),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new tt("Fill color",gt.defaultColorSet,At.bgColor,ne),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new qt("Font",gt.defaultFontFamilies,gt.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,ft){this.state==="new"&&Ot.prototype.pointerDown.call(this,vt,ft),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ft)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Ot.prototype.pointerDown.call(this,vt,ft)},Tt.prototype.pointerUp=function(vt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Ot.prototype.pointerUp.call(this,vt);else{var ft=this.state==="creating";Ot.prototype.pointerUp.call(this,vt),this.setTipPoints(ft),this.positionTip()}},Tt.prototype.manipulate=function(vt){if(this.tipMoving){var ft=this.unrotatePoint(vt);this.tipPosition={x:ft.x-this.manipulationStartLeft,y:ft.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 ft=Math.min(this.height/2,15),gt=this.height/5;vt&&(this.tipPosition={x:ft+gt/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))?(gt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:ft,y:0},this.tipBase2Position={x:ft+gt,y:0}):(this.tipBase1Position={x:0,y:ft},this.tipBase2Position={x:0,y:ft+gt}):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))?(gt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ft-gt,y:0},this.tipBase2Position={x:this.width-ft,y:0}):(this.tipBase1Position={x:this.width,y:ft},this.tipBase2Position={x:this.width,y:ft+gt}):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))?(gt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ft-gt,y:this.height},this.tipBase2Position={x:this.width-ft,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ft-gt},this.tipBase2Position={x:this.width,y:this.height-ft}):At<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(gt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:ft,y:this.height},this.tipBase2Position={x:ft+gt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ft},this.tipBase2Position={x:0,y:this.height-ft-gt})},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 ft=vt;this.bgColor=ft.bgColor,this.tipPosition=ft.tipPosition,Ot.prototype.restoreState.call(this,vt),this.createTip(),this.setTipPoints()},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft),this.tipPosition={x:this.tipPosition.x*vt,y:this.tipPosition.y*ft},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}(ze),bn=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.strokeColor=gt.defaultColor,At.strokeWidth=gt.defaultStrokeWidth,At.strokeDasharray=gt.defaultStrokeDasharray,At.fillColor=gt.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(gt.defaultColorSet,["transparent"]),gt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(gt.defaultColorSet,["transparent"]),At.fillColor,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ut("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.opacityPanel=new We("Opacity",gt.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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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 ft=vt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.opacity=ft.opacity,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft),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,ft,gt){return Ot.call(this,vt,ft,gt)||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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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),ft=this.tip1.transform.baseVal.getItem(0);ft.setRotate(vt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ft,0);var gt=this.tip2.transform.baseVal.getItem(0);gt.setRotate(vt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(gt,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}(Pe),Ze=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||this;return At.strokePanel.colors=gt.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),Mn=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}(),Vn=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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=gt.defaultColor,At.strokeWidth=gt.defaultStrokeWidth,At.strokeDasharray=gt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",gt.defaultColorSet,gt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ut("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",gt.defaultStrokeDasharrays,gt.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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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(ft)&&(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,ft){this.curveX=this.curveX*vt,this.curveY=this.curveY*ft,Ot.prototype.scale.call(this,vt,ft)},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 ft=vt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.curveX=ft.curveX,this.curveY=ft.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}(Ae),fi=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,ft,gt)||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=gt.defaultColor,At.strokeWidth=gt.defaultStrokeWidth,At.strokeDasharray=gt.defaultStrokeDasharray,At.fillColor=gt.defaultFillColor,At.textColor=gt.defaultStrokeColor,At.fontFamily=gt.defaultFontFamily,At.fontSize=gt.defaultCaptionFontSize,At.captionText=gt.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(gt.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(gt.defaultColorSet,["transparent"]),At.fillColor,ne),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ut("Line width",gt.defaultStrokeWidths,gt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Gt("Line style",gt.defaultStrokeDasharrays,gt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new qt("Font",gt.defaultFontFamilies,gt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new tt("Text color",gt.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,ft){Ot.prototype.pointerDown.call(this,vt,ft),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(ft){ft.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ft){ft.key==="Enter"&&vt.finishTextEditing(vt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ft){ft.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,ft){Ot.prototype.dblClick.call(this,vt,ft),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 ft=vt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.textColor=ft.textColor,this.fontFamily=ft.fontFamily,this.captionText=ft.captionText,this.fontSize=ft.fontSize,this.createVisual(),Ot.prototype.restoreState.call(this,vt),this.setSize()},Tt.prototype.scale=function(vt,ft){Ot.prototype.scale.call(this,vt,ft),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}(),Bi=function(Ot){function Tt(vt,ft,gt){var At=Ot.call(this,vt,!1)||this;return At.dataUrl=ft,At.state=gt,At}return ce(Tt,Ot),Tt}(Kn),en=function(Ot){function Tt(vt,ft,gt){gt===void 0&&(gt=!1);var At=Ot.call(this,vt,gt)||this;return At.marker=ft,At}return ce(Tt,Ot),Tt}(Kn),Fi=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 ft=this[Tt].indexOf(vt);ft>-1&&this[Tt].splice(ft,1)},Ot}(),Oi=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 le,this._isOpen=!1,this.undoRedoManager=new Mn,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 Fi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Ot.instanceCounter++,this.styles=new Pt(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[se,Wt,_e,ze,Ze,bn,Re,Ce,Ln,Ne,Pe,Vn,fi]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[se,Wt,_e,ze,bn,Re,Ce]},enumerable:!1,configurable:!0}),Object.defineProperty(Ot.prototype,"BASIC_MARKER_TYPES",{get:function(){return[se,Wt,_e,ze,Re]},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(ft){if(typeof ft=="string"){var gt=vt.ALL_MARKER_TYPES.find(function(At){return At.typeName===ft});gt!==void 0&&vt._availableMarkerTypes.push(gt)}else vt._availableMarkerTypes.push(ft)})},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&&te.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=te.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 ke(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 ft=!1;Tt||this.eventListeners.beforeclose.forEach(function(gt){var At=new Kn(vt,!0);gt(At),At.defaultPrevented&&(ft=!0)}),ft||(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(gt){return gt(new Kn(vt))}),this.detachEvents(),this._isOpen=!1)}},Ot.prototype.addMarkersToToolbar=function(){for(var Tt,vt=[],ft=0;ft<arguments.length;ft++)vt[ft]=arguments[ft];(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,ft=vt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Tt;this.resize(vt,ft)},Ot.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Ot.prototype.resize=function(Tt,vt){this._isResizing=!0;var ft=Tt/this.imageWidth,gt=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(ft,gt),this._isResizing=!1},Ot.prototype.scaleMarkers=function(Tt,vt){var ft,gt=this;this._currentMarker&&this._currentMarker instanceof ze?this._currentMarker.scale(Tt,vt):(ft=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==gt._currentMarker&&At.scale(Tt,vt)}),ft!==void 0&&this.setCurrentMarker(ft)},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=[],ft=0;ft<arguments.length;ft++)vt[ft]=arguments[ft];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 $t(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(gt){var At=new en(Tt,Tt._currentMarker,!0);gt(At),At.defaultPrevented&&(vt=!0)}),!vt){var ft=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(gt){return gt(new en(Tt,ft))})}}},Ot.prototype.clear=function(){var Tt=this,vt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ue){var xe=new en(Tt,void 0,!0);ue(xe),xe.defaultPrevented&&(vt=!0)}),!vt)){this.setCurrentMarker();for(var ft=function(ue){var xe=gt.markers[ue];gt.setCurrentMarker(gt.markers[ue]),gt._currentMarker.dispose(),gt.markerImage.removeChild(gt._currentMarker.container),gt.markers.splice(gt.markers.indexOf(gt._currentMarker),1),gt.eventListeners.markerdelete.forEach(function(ae){return ae(new en(Tt,xe))})},gt=this,At=this.markers.length-1;At>=0;At--)ft(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(),ft=this.undoRedoManager.getLastUndoStep();if(!ft||ft.width===vt.width&&ft.height===vt.height){var gt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(vt),gt<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(ft){return ft(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(ft){return ft(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,ft=this;return ke(this,function(gt){switch(gt.label){case 0:return[4,this.render()];case 1:return Tt=gt.sent(),vt=this.getState(),this.eventListeners.render.forEach(function(At){return At(new Bi(ft,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(ft){return vt.markers.push(ft.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(ft){var gt=vt._availableMarkerTypes.find(function(ue){return ue.typeName===ft.typeName});if(gt!==void 0){var At=vt.addNewMarker(gt);At.restoreState(ft),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(ft){return ft(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,ft=this;(vt=typeof Tt=="string"?this._availableMarkerTypes.find(function(gt){return gt.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(gt){return gt(new en(ft,ft._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(ft){return ft(new en(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(ft){return ft(new en(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(ft){return ft(new en(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(ft){return ft(new en(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(ft){return ft.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(ft){return ft.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 ft=this.markerImage.getBoundingClientRect();return{x:(Tt-ft.left)/this.zoomLevel,y:(vt-ft.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,Cn,Ft){"use strict";Ft.d(Cn,{ZP:function(){return Mt}});var Lt=Ft(33606),ce=Ft(59301),re=Ft(47273),ke=0,ee=(0,re.Z)();function Vt(){var jt;return ee?(jt=ke,ke+=1):jt="TEST_OR_SSR",jt}function Mt(jt){var te=ce.useState(),Pt=(0,Lt.Z)(te,2),oe=Pt[0],Kt=Pt[1];return ce.useEffect(function(){Kt("rc_select_".concat(Vt()))},[]),jt||oe}},77861:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Ac:function(){return sn},Xo:function(){return Yr},Wx:function(){return Lr},ZP:function(){return xi},lk:function(){return xt}});var Lt=Ft(92413),ce=Ft(26407),re=Ft(400),ke=Ft(33708),ee=Ft(33606),Vt=Ft(37061),Mt=Ft(39559),jt=Ft(18929),te=Ft(48736),Pt=Ft(59301),oe=Ft(92310),Kt=Ft.n(oe),$t=Ft(34280),Ct=Ft(49658),et=Ft(10228),tt=Ft(8654),lt=function(Fe){var wn=Fe.className,Hn=Fe.customizeIcon,Si=Fe.customizeIconProps,Di=Fe.onMouseDown,tn=Fe.onClick,oi=Fe.children,Li;return typeof Hn=="function"?Li=Hn(Si):Li=Hn,Pt.createElement("span",{className:wn,onMouseDown:function(kn){kn.preventDefault(),Di&&Di(kn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:tn,"aria-hidden":!0},Li!==void 0?Li:Pt.createElement("span",{className:Kt()(wn.split(/\s+/).map(function(tr){return"".concat(tr,"-icon")}))},oi))},rt=lt;function ht(dn,Fe,wn,Hn,Si){var Di=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,tn=arguments.length>6?arguments[6]:void 0,oi=arguments.length>7?arguments[7]:void 0,Li=Pt.useMemo(function(){if((0,Mt.Z)(Hn)==="object")return Hn.clearIcon;if(Si)return Si},[Hn,Si]),tr=Pt.useMemo(function(){return!!(!Di&&Hn&&(wn.length||tn)&&!(oi==="combobox"&&tn===""))},[Hn,Di,wn.length,tn,oi]);return{allowClear:tr,clearIcon:Pt.createElement(rt,{className:"".concat(dn,"-clear"),onMouseDown:Fe,customizeIcon:Li},"\xD7")}}var dt=Pt.createContext(null);function xt(){return Pt.useContext(dt)}function Nt(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Fe=Pt.useState(!1),wn=(0,ee.Z)(Fe,2),Hn=wn[0],Si=wn[1],Di=Pt.useRef(null),tn=function(){window.clearTimeout(Di.current)};Pt.useEffect(function(){return tn},[]);var oi=function(tr,kn){tn(),Di.current=window.setTimeout(function(){Si(tr),kn&&kn()},dn)};return[Hn,oi,tn]}function Ut(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Fe=Pt.useRef(null),wn=Pt.useRef(null);Pt.useEffect(function(){return function(){window.clearTimeout(wn.current)}},[]);function Hn(Si){(Si||Fe.current===null)&&(Fe.current=Si),window.clearTimeout(wn.current),wn.current=window.setTimeout(function(){Fe.current=null},dn)}return[function(){return Fe.current},Hn]}function Gt(dn,Fe,wn,Hn){var Si=Pt.useRef(null);Si.current={open:Fe,triggerOpen:wn,customizedTrigger:Hn},Pt.useEffect(function(){function Di(tn){var oi;if(!((oi=Si.current)!==null&&oi!==void 0&&oi.customizedTrigger)){var Li=tn.target;Li.shadowRoot&&tn.composed&&(Li=tn.composedPath()[0]||Li),Si.current.open&&dn().filter(function(tr){return tr}).every(function(tr){return!tr.contains(Li)&&tr!==Li})&&Si.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Di),function(){return window.removeEventListener("mousedown",Di)}},[])}var se=Ft(26112),le=Ft(11780),Ae=function(Fe,wn){var Hn,Si,Di=Fe.prefixCls,tn=Fe.id,oi=Fe.inputElement,Li=Fe.disabled,tr=Fe.tabIndex,kn=Fe.autoFocus,ui=Fe.autoComplete,Sr=Fe.editable,cr=Fe.activeDescendantId,zr=Fe.value,dr=Fe.maxLength,Mr=Fe.onKeyDown,nr=Fe.onMouseDown,Cr=Fe.onChange,no=Fe.onPaste,Ro=Fe.onCompositionStart,yi=Fe.onCompositionEnd,Po=Fe.open,ws=Fe.attrs,Zo=oi||Pt.createElement("input",null),pi=Zo,or=pi.ref,Hr=pi.props,uo=Hr.onKeyDown,to=Hr.onChange,Fo=Hr.onMouseDown,mi=Hr.onCompositionStart,wo=Hr.onCompositionEnd,Dr=Hr.style;return(0,te.Kp)(!("maxLength"in Zo.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Zo=Pt.cloneElement(Zo,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},Hr),{},{id:tn,ref:(0,tt.sQ)(wn,or),disabled:Li,tabIndex:tr,autoComplete:ui||"off",autoFocus:kn,className:Kt()("".concat(Di,"-selection-search-input"),(Hn=Zo)===null||Hn===void 0||(Si=Hn.props)===null||Si===void 0?void 0:Si.className),role:"combobox","aria-label":"Search","aria-expanded":Po||!1,"aria-haspopup":"listbox","aria-owns":"".concat(tn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(tn,"_list"),"aria-activedescendant":Po?cr:void 0},ws),{},{value:Sr?zr:"",maxLength:dr,readOnly:!Sr,unselectable:Sr?null:"on",style:(0,ke.Z)((0,ke.Z)({},Dr),{},{opacity:Sr?null:0}),onKeyDown:function(Pi){Mr(Pi),uo&&uo(Pi)},onMouseDown:function(Pi){nr(Pi),Fo&&Fo(Pi)},onChange:function(Pi){Cr(Pi),to&&to(Pi)},onCompositionStart:function(Pi){Ro(Pi),mi&&mi(Pi)},onCompositionEnd:function(Pi){yi(Pi),wo&&wo(Pi)},onPaste:no})),Zo},Pe=Pt.forwardRef(Ae);Pe.displayName="Input";var qt=Pe;function ze(dn){return Array.isArray(dn)?dn:dn!==void 0?[dn]:[]}var Wt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ge=Wt;function _e(dn){return dn!=null}function Ne(dn){return!dn&&dn!==0}function We(dn){return["string","number"].includes((0,Mt.Z)(dn))}function Re(dn){var Fe=void 0;return dn&&(We(dn.title)?Fe=dn.title.toString():We(dn.label)&&(Fe=dn.label.toString())),Fe}function ve(dn,Fe){Ge?Pt.useLayoutEffect(dn,Fe):Pt.useEffect(dn,Fe)}function ne(dn){var Fe;return(Fe=dn.key)!==null&&Fe!==void 0?Fe:dn.value}var Ce=function(Fe){Fe.preventDefault(),Fe.stopPropagation()},bn=function(Fe){var wn=Fe.id,Hn=Fe.prefixCls,Si=Fe.values,Di=Fe.open,tn=Fe.searchValue,oi=Fe.autoClearSearchValue,Li=Fe.inputRef,tr=Fe.placeholder,kn=Fe.disabled,ui=Fe.mode,Sr=Fe.showSearch,cr=Fe.autoFocus,zr=Fe.autoComplete,dr=Fe.activeDescendantId,Mr=Fe.tabIndex,nr=Fe.removeIcon,Cr=Fe.maxTagCount,no=Fe.maxTagTextLength,Ro=Fe.maxTagPlaceholder,yi=Ro===void 0?function(cs){return"+ ".concat(cs.length," ...")}:Ro,Po=Fe.tagRender,ws=Fe.onToggleOpen,Zo=Fe.onRemove,pi=Fe.onInputChange,or=Fe.onInputPaste,Hr=Fe.onInputKeyDown,uo=Fe.onInputMouseDown,to=Fe.onInputCompositionStart,Fo=Fe.onInputCompositionEnd,mi=Pt.useRef(null),wo=(0,Pt.useState)(0),Dr=(0,ee.Z)(wo,2),Br=Dr[0],Pi=Dr[1],bo=(0,Pt.useState)(!1),Ci=(0,ee.Z)(bo,2),Xo=Ci[0],ra=Ci[1],xs="".concat(Hn,"-selection"),va=Di||ui==="multiple"&&oi===!1||ui==="tags"?tn:"",Gs=ui==="tags"||ui==="multiple"&&oi===!1||Sr&&(Di||Xo);ve(function(){Pi(mi.current.scrollWidth)},[va]);function Io(cs,oa,ll,Ll,fl){return Pt.createElement("span",{className:Kt()("".concat(xs,"-item"),(0,re.Z)({},"".concat(xs,"-item-disabled"),ll)),title:Re(cs)},Pt.createElement("span",{className:"".concat(xs,"-item-content")},oa),Ll&&Pt.createElement(rt,{className:"".concat(xs,"-item-remove"),onMouseDown:Ce,onClick:fl,customizeIcon:nr},"\xD7"))}function _o(cs,oa,ll,Ll,fl){var _l=function(Yo){Ce(Yo),ws(!Di)};return Pt.createElement("span",{onMouseDown:_l},Po({label:oa,value:cs,disabled:ll,closable:Ll,onClose:fl}))}function As(cs){var oa=cs.disabled,ll=cs.label,Ll=cs.value,fl=!kn&&!oa,_l=ll;if(typeof no=="number"&&(typeof ll=="string"||typeof ll=="number")){var ns=String(_l);ns.length>no&&(_l="".concat(ns.slice(0,no),"..."))}var Yo=function(ks){ks&&ks.stopPropagation(),Zo(cs)};return typeof Po=="function"?_o(Ll,_l,oa,fl,Yo):Io(cs,_l,oa,fl,Yo)}function ls(cs){var oa=typeof yi=="function"?yi(cs):yi;return Io({title:oa},oa,!1)}var wr=Pt.createElement("div",{className:"".concat(xs,"-search"),style:{width:Br},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},Pt.createElement(qt,{ref:Li,open:Di,prefixCls:Hn,id:wn,inputElement:null,disabled:kn,autoFocus:cr,autoComplete:zr,editable:Gs,activeDescendantId:dr,value:va,onKeyDown:Hr,onMouseDown:uo,onChange:pi,onPaste:or,onCompositionStart:to,onCompositionEnd:Fo,tabIndex:Mr,attrs:(0,se.Z)(Fe,!0)}),Pt.createElement("span",{ref:mi,className:"".concat(xs,"-search-mirror"),"aria-hidden":!0},va,"\xA0")),Ie=Pt.createElement(le.Z,{prefixCls:"".concat(xs,"-overflow"),data:Si,renderItem:As,renderRest:ls,suffix:wr,itemKey:ne,maxCount:Cr});return Pt.createElement(Pt.Fragment,null,Ie,!Si.length&&!va&&Pt.createElement("span",{className:"".concat(xs,"-placeholder")},tr))},Ln=bn,Ze=function(Fe){var wn=Fe.inputElement,Hn=Fe.prefixCls,Si=Fe.id,Di=Fe.inputRef,tn=Fe.disabled,oi=Fe.autoFocus,Li=Fe.autoComplete,tr=Fe.activeDescendantId,kn=Fe.mode,ui=Fe.open,Sr=Fe.values,cr=Fe.placeholder,zr=Fe.tabIndex,dr=Fe.showSearch,Mr=Fe.searchValue,nr=Fe.activeValue,Cr=Fe.maxLength,no=Fe.onInputKeyDown,Ro=Fe.onInputMouseDown,yi=Fe.onInputChange,Po=Fe.onInputPaste,ws=Fe.onInputCompositionStart,Zo=Fe.onInputCompositionEnd,pi=Fe.title,or=Pt.useState(!1),Hr=(0,ee.Z)(or,2),uo=Hr[0],to=Hr[1],Fo=kn==="combobox",mi=Fo||dr,wo=Sr[0],Dr=Mr||"";Fo&&nr&&!uo&&(Dr=nr),Pt.useEffect(function(){Fo&&to(!1)},[Fo,nr]);var Br=kn!=="combobox"&&!ui&&!dr?!1:!!Dr,Pi=pi===void 0?Re(wo):pi,bo=function(){if(wo)return null;var Xo=Br?{visibility:"hidden"}:void 0;return Pt.createElement("span",{className:"".concat(Hn,"-selection-placeholder"),style:Xo},cr)};return Pt.createElement(Pt.Fragment,null,Pt.createElement("span",{className:"".concat(Hn,"-selection-search")},Pt.createElement(qt,{ref:Di,prefixCls:Hn,id:Si,open:ui,inputElement:wn,disabled:tn,autoFocus:oi,autoComplete:Li,editable:mi,activeDescendantId:tr,value:Dr,onKeyDown:no,onMouseDown:Ro,onChange:function(Xo){to(!0),yi(Xo)},onPaste:Po,onCompositionStart:ws,onCompositionEnd:Zo,tabIndex:zr,attrs:(0,se.Z)(Fe,!0),maxLength:Fo?Cr:void 0})),!Fo&&wo?Pt.createElement("span",{className:"".concat(Hn,"-selection-item"),title:Pi,style:Br?{visibility:"hidden"}:void 0},wo.label):null,bo())},Mn=Ze;function Vn(dn){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(dn)}var fi=function(Fe,wn){var Hn=(0,Pt.useRef)(null),Si=(0,Pt.useRef)(!1),Di=Fe.prefixCls,tn=Fe.open,oi=Fe.mode,Li=Fe.showSearch,tr=Fe.tokenWithEnter,kn=Fe.autoClearSearchValue,ui=Fe.onSearch,Sr=Fe.onSearchSubmit,cr=Fe.onToggleOpen,zr=Fe.onInputKeyDown,dr=Fe.domRef;Pt.useImperativeHandle(wn,function(){return{focus:function(){Hn.current.focus()},blur:function(){Hn.current.blur()}}});var Mr=Ut(0),nr=(0,ee.Z)(Mr,2),Cr=nr[0],no=nr[1],Ro=function(Dr){var Br=Dr.which;(Br===et.Z.UP||Br===et.Z.DOWN)&&Dr.preventDefault(),zr&&zr(Dr),Br===et.Z.ENTER&&oi==="tags"&&!Si.current&&!tn&&(Sr==null||Sr(Dr.target.value)),Vn(Br)&&cr(!0)},yi=function(){no(!0)},Po=(0,Pt.useRef)(null),ws=function(Dr){ui(Dr,!0,Si.current)!==!1&&cr(!0)},Zo=function(){Si.current=!0},pi=function(Dr){Si.current=!1,oi!=="combobox"&&ws(Dr.target.value)},or=function(Dr){var Br=Dr.target.value;if(tr&&Po.current&&/[\r\n]/.test(Po.current)){var Pi=Po.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Br=Br.replace(Pi,Po.current)}Po.current=null,ws(Br)},Hr=function(Dr){var Br=Dr.clipboardData,Pi=Br.getData("text");Po.current=Pi},uo=function(Dr){var Br=Dr.target;if(Br!==Hn.current){var Pi=document.body.style.msTouchAction!==void 0;Pi?setTimeout(function(){Hn.current.focus()}):Hn.current.focus()}},to=function(Dr){var Br=Cr();Dr.target!==Hn.current&&!Br&&oi!=="combobox"&&Dr.preventDefault(),(oi!=="combobox"&&(!Li||!Br)||!tn)&&(tn&&kn!==!1&&ui("",!0,!1),cr())},Fo={inputRef:Hn,onInputKeyDown:Ro,onInputMouseDown:yi,onInputChange:or,onInputPaste:Hr,onInputCompositionStart:Zo,onInputCompositionEnd:pi},mi=oi==="multiple"||oi==="tags"?Pt.createElement(Ln,(0,Lt.Z)({},Fe,Fo)):Pt.createElement(Mn,(0,Lt.Z)({},Fe,Fo));return Pt.createElement("div",{ref:dr,className:"".concat(Di,"-selector"),onClick:uo,onMouseDown:to},mi)},Kn=Pt.forwardRef(fi);Kn.displayName="Selector";var Bi=Kn,en=Ft(35593),Fi=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Oi=function(Fe){var wn=Fe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:wn,adjustY:1},htmlRegion:"scroll"}}},Ot=function(Fe,wn){var Hn=Fe.prefixCls,Si=Fe.disabled,Di=Fe.visible,tn=Fe.children,oi=Fe.popupElement,Li=Fe.animation,tr=Fe.transitionName,kn=Fe.dropdownStyle,ui=Fe.dropdownClassName,Sr=Fe.direction,cr=Sr===void 0?"ltr":Sr,zr=Fe.placement,dr=Fe.builtinPlacements,Mr=Fe.dropdownMatchSelectWidth,nr=Fe.dropdownRender,Cr=Fe.dropdownAlign,no=Fe.getPopupContainer,Ro=Fe.empty,yi=Fe.getTriggerDOMNode,Po=Fe.onPopupVisibleChange,ws=Fe.onPopupMouseEnter,Zo=(0,Vt.Z)(Fe,Fi),pi="".concat(Hn,"-dropdown"),or=oi;nr&&(or=nr(oi));var Hr=Pt.useMemo(function(){return dr||Oi(Mr)},[dr,Mr]),uo=Li?"".concat(pi,"-").concat(Li):tr,to=typeof Mr=="number",Fo=Pt.useMemo(function(){return to?null:Mr===!1?"minWidth":"width"},[Mr,to]),mi=kn;to&&(mi=(0,ke.Z)((0,ke.Z)({},mi),{},{width:Mr}));var wo=Pt.useRef(null);return Pt.useImperativeHandle(wn,function(){return{getPopupElement:function(){return wo.current}}}),Pt.createElement(en.Z,(0,Lt.Z)({},Zo,{showAction:Po?["click"]:[],hideAction:Po?["click"]:[],popupPlacement:zr||(cr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Hr,prefixCls:pi,popupTransitionName:uo,popup:Pt.createElement("div",{ref:wo,onMouseEnter:ws},or),stretch:Fo,popupAlign:Cr,popupVisible:Di,getPopupContainer:no,popupClassName:Kt()(ui,(0,re.Z)({},"".concat(pi,"-empty"),Ro)),popupStyle:mi,getTriggerDOMNode:yi,onPopupVisibleChange:Po}),tn)},Tt=Pt.forwardRef(Ot);Tt.displayName="SelectTrigger";var vt=Tt,ft=Ft(34589);function gt(dn,Fe){var wn=dn.key,Hn;return"value"in dn&&(Hn=dn.value),wn!=null?wn:Hn!==void 0?Hn:"rc-index-key-".concat(Fe)}function At(dn,Fe){var wn=dn||{},Hn=wn.label,Si=wn.value,Di=wn.options,tn=wn.groupLabel,oi=Hn||(Fe?"children":"label");return{label:oi,value:Si||"value",options:Di||"options",groupLabel:tn||oi}}function ue(dn){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},wn=Fe.fieldNames,Hn=Fe.childrenAsData,Si=[],Di=At(wn,!1),tn=Di.label,oi=Di.value,Li=Di.options,tr=Di.groupLabel;function kn(ui,Sr){ui.forEach(function(cr){if(Sr||!(Li in cr)){var zr=cr[oi];Si.push({key:gt(cr,Si.length),groupOption:Sr,data:cr,label:cr[tn],value:zr})}else{var dr=cr[tr];dr===void 0&&Hn&&(dr=cr.label),Si.push({key:gt(cr,Si.length),group:!0,data:cr,label:dr}),kn(cr[Li],!0)}})}return kn(dn,!1),Si}function xe(dn){var Fe=(0,ke.Z)({},dn);return"props"in Fe||Object.defineProperty(Fe,"props",{get:function(){return(0,te.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Fe}}),Fe}function ae(dn,Fe){if(!Fe||!Fe.length)return null;var wn=!1;function Hn(Di,tn){var oi=(0,ft.Z)(tn),Li=oi[0],tr=oi.slice(1);if(!Li)return[Di];var kn=Di.split(Li);return wn=wn||kn.length>1,kn.reduce(function(ui,Sr){return[].concat((0,ce.Z)(ui),(0,ce.Z)(Hn(Sr,tr)))},[]).filter(function(ui){return ui})}var Si=Hn(dn,Fe);return wn?Si: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"],Te=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function De(dn){return dn==="tags"||dn==="multiple"}var Me=Pt.forwardRef(function(dn,Fe){var wn,Hn,Si=dn.id,Di=dn.prefixCls,tn=dn.className,oi=dn.showSearch,Li=dn.tagRender,tr=dn.direction,kn=dn.omitDomProps,ui=dn.displayValues,Sr=dn.onDisplayValuesChange,cr=dn.emptyOptions,zr=dn.notFoundContent,dr=zr===void 0?"Not Found":zr,Mr=dn.onClear,nr=dn.mode,Cr=dn.disabled,no=dn.loading,Ro=dn.getInputElement,yi=dn.getRawInputElement,Po=dn.open,ws=dn.defaultOpen,Zo=dn.onDropdownVisibleChange,pi=dn.activeValue,or=dn.onActiveValueChange,Hr=dn.activeDescendantId,uo=dn.searchValue,to=dn.autoClearSearchValue,Fo=dn.onSearch,mi=dn.onSearchSplit,wo=dn.tokenSeparators,Dr=dn.allowClear,Br=dn.suffixIcon,Pi=dn.clearIcon,bo=dn.OptionList,Ci=dn.animation,Xo=dn.transitionName,ra=dn.dropdownStyle,xs=dn.dropdownClassName,va=dn.dropdownMatchSelectWidth,Gs=dn.dropdownRender,Io=dn.dropdownAlign,_o=dn.placement,As=dn.builtinPlacements,ls=dn.getPopupContainer,wr=dn.showAction,Ie=wr===void 0?[]:wr,cs=dn.onFocus,oa=dn.onBlur,ll=dn.onKeyUp,Ll=dn.onKeyDown,fl=dn.onMouseDown,_l=(0,Vt.Z)(dn,ye),ns=De(nr),Yo=(oi!==void 0?oi:ns)||nr==="combobox",xo=(0,ke.Z)({},_l);Te.forEach(function(Fs){delete xo[Fs]}),kn==null||kn.forEach(function(Fs){delete xo[Fs]});var ks=Pt.useState(!1),fa=(0,ee.Z)(ks,2),fo=fa[0],co=fa[1];Pt.useEffect(function(){co((0,Ct.Z)())},[]);var Vi=Pt.useRef(null),Lo=Pt.useRef(null),Bs=Pt.useRef(null),Js=Pt.useRef(null),ua=Pt.useRef(null),Ho=Nt(),Ks=(0,ee.Z)(Ho,3),Na=Ks[0],Tl=Ks[1],Va=Ks[2];Pt.useImperativeHandle(Fe,function(){var Fs,ya;return{focus:(Fs=Js.current)===null||Fs===void 0?void 0:Fs.focus,blur:(ya=Js.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(qa){var sl;return(sl=ua.current)===null||sl===void 0?void 0:sl.scrollTo(qa)}}});var Ps=Pt.useMemo(function(){var Fs;if(nr!=="combobox")return uo;var ya=(Fs=ui[0])===null||Fs===void 0?void 0:Fs.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[uo,nr,ui]),si=nr==="combobox"&&typeof Ro=="function"&&Ro()||null,Ia=typeof yi=="function"&&yi(),Ac=(0,tt.x1)(Lo,Ia==null||(wn=Ia.props)===null||wn===void 0?void 0:wn.ref),du=Pt.useState(!1),Hh=(0,ee.Z)(du,2),$r=Hh[0],Qs=Hh[1];(0,$t.Z)(function(){Qs(!0)},[]);var Ms=(0,jt.Z)(!1,{defaultValue:ws,value:Po}),bs=(0,ee.Z)(Ms,2),zs=bs[0],Au=bs[1],Jo=$r?zs:!1,Hs=!dr&&cr;(Cr||Hs&&Jo&&nr==="combobox")&&(Jo=!1);var Ss=Hs?!1:Jo,Qr=Pt.useCallback(function(Fs){var ya=Fs!==void 0?Fs:!Jo;Cr||(Au(ya),Jo!==ya&&(Zo==null||Zo(ya)))},[Cr,Jo,Au,Zo]),ul=Pt.useMemo(function(){return(wo||[]).some(function(Fs){return[`
`,`\r
`].includes(Fs)})},[wo]),Ds=function(ya,ju,qa){var sl=!0,za=ya;or==null||or(null);var Aa=qa?null:ae(ya,wo);return nr!=="combobox"&&Aa&&(za="",mi==null||mi(Aa),Qr(!1),sl=!1),Fo&&Ps!==za&&Fo(za,{source:ju?"typing":"effect"}),sl},Su=function(ya){!ya||!ya.trim()||Fo(ya,{source:"submit"})};Pt.useEffect(function(){!Jo&&!ns&&nr!=="combobox"&&Ds("",!1,!1)},[Jo]),Pt.useEffect(function(){zs&&Cr&&Au(!1),Cr&&Tl(!1)},[Cr]);var zu=Ut(),Xl=(0,ee.Z)(zu,2),fr=Xl[0],Za=Xl[1],rl=function(ya){var ju=fr(),qa=ya.which;if(qa===et.Z.ENTER&&(nr!=="combobox"&&ya.preventDefault(),Jo||Qr(!0)),Za(!!Ps),qa===et.Z.BACKSPACE&&!ju&&ns&&!Ps&&ui.length){for(var sl=(0,ce.Z)(ui),za=null,Aa=sl.length-1;Aa>=0;Aa-=1){var tl=sl[Aa];if(!tl.disabled){sl.splice(Aa,1),za=tl;break}}za&&Sr(sl,{type:"remove",values:[za]})}for(var Ol=arguments.length,fc=new Array(Ol>1?Ol-1:0),ch=1;ch<Ol;ch++)fc[ch-1]=arguments[ch];if(Jo&&ua.current){var hl;(hl=ua.current).onKeyDown.apply(hl,[ya].concat(fc))}Ll==null||Ll.apply(void 0,[ya].concat(fc))},bl=function(ya){for(var ju=arguments.length,qa=new Array(ju>1?ju-1:0),sl=1;sl<ju;sl++)qa[sl-1]=arguments[sl];if(Jo&&ua.current){var za;(za=ua.current).onKeyUp.apply(za,[ya].concat(qa))}ll==null||ll.apply(void 0,[ya].concat(qa))},ou=function(ya){var ju=ui.filter(function(qa){return qa!==ya});Sr(ju,{type:"remove",values:[ya]})},Ya=Pt.useRef(!1),Mo=function(){Tl(!0),Cr||(cs&&!Ya.current&&cs.apply(void 0,arguments),Ie.includes("focus")&&Qr(!0)),Ya.current=!0},ja=function(){Tl(!1,function(){Ya.current=!1,Qr(!1)}),!Cr&&(Ps&&(nr==="tags"?Fo(Ps,{source:"submit"}):nr==="multiple"&&Fo("",{source:"blur"})),oa&&oa.apply(void 0,arguments))},Ja=[];Pt.useEffect(function(){return function(){Ja.forEach(function(Fs){return clearTimeout(Fs)}),Ja.splice(0,Ja.length)}},[]);var su=function(ya){var ju,qa=ya.target,sl=(ju=Bs.current)===null||ju===void 0?void 0:ju.getPopupElement();if(sl&&sl.contains(qa)){var za=setTimeout(function(){var fc=Ja.indexOf(za);if(fc!==-1&&Ja.splice(fc,1),Va(),!fo&&!sl.contains(document.activeElement)){var ch;(ch=Js.current)===null||ch===void 0||ch.focus()}});Ja.push(za)}for(var Aa=arguments.length,tl=new Array(Aa>1?Aa-1:0),Ol=1;Ol<Aa;Ol++)tl[Ol-1]=arguments[Ol];fl==null||fl.apply(void 0,[ya].concat(tl))},$l=Pt.useState({}),Pu=(0,ee.Z)($l,2),bu=Pu[1];function fu(){bu({})}var eu;Ia&&(eu=function(ya){Qr(ya)}),Gt(function(){var Fs;return[Vi.current,(Fs=Bs.current)===null||Fs===void 0?void 0:Fs.getPopupElement()]},Ss,Qr,!!Ia);var zo=Pt.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},dn),{},{notFoundContent:dr,open:Jo,triggerOpen:Ss,id:Si,showSearch:Yo,multiple:ns,toggleOpen:Qr})},[dn,dr,Ss,Jo,Si,Yo,ns,Qr]),Hd=!!Br||no,Eu;Hd&&(Eu=Pt.createElement(rt,{className:Kt()("".concat(Di,"-arrow"),(0,re.Z)({},"".concat(Di,"-arrow-loading"),no)),customizeIcon:Br,customizeIconProps:{loading:no,searchValue:Ps,open:Jo,focused:Na,showSearch:Yo}}));var yd=function(){var ya;Mr==null||Mr(),(ya=Js.current)===null||ya===void 0||ya.focus(),Sr([],{type:"clear",values:ui}),Ds("",!1,!1)},Nh=ht(Di,yd,ui,Dr,Pi,Cr,Ps,nr),ec=Nh.allowClear,ol=Nh.clearIcon,xh=Pt.createElement(bo,{ref:ua}),Qd=Kt()(Di,tn,(Hn={},(0,re.Z)(Hn,"".concat(Di,"-focused"),Na),(0,re.Z)(Hn,"".concat(Di,"-multiple"),ns),(0,re.Z)(Hn,"".concat(Di,"-single"),!ns),(0,re.Z)(Hn,"".concat(Di,"-allow-clear"),Dr),(0,re.Z)(Hn,"".concat(Di,"-show-arrow"),Hd),(0,re.Z)(Hn,"".concat(Di,"-disabled"),Cr),(0,re.Z)(Hn,"".concat(Di,"-loading"),no),(0,re.Z)(Hn,"".concat(Di,"-open"),Jo),(0,re.Z)(Hn,"".concat(Di,"-customize-input"),si),(0,re.Z)(Hn,"".concat(Di,"-show-search"),Yo),Hn)),Oc=Pt.createElement(vt,{ref:Bs,disabled:Cr,prefixCls:Di,visible:Ss,popupElement:xh,animation:Ci,transitionName:Xo,dropdownStyle:ra,dropdownClassName:xs,direction:tr,dropdownMatchSelectWidth:va,dropdownRender:Gs,dropdownAlign:Io,placement:_o,builtinPlacements:As,getPopupContainer:ls,empty:cr,getTriggerDOMNode:function(){return Lo.current},onPopupVisibleChange:eu,onPopupMouseEnter:fu},Ia?Pt.cloneElement(Ia,{ref:Ac}):Pt.createElement(Bi,(0,Lt.Z)({},dn,{domRef:Lo,prefixCls:Di,inputElement:si,ref:Js,id:Si,showSearch:Yo,autoClearSearchValue:to,mode:nr,activeDescendantId:Hr,tagRender:Li,values:ui,open:Jo,onToggleOpen:Qr,activeValue:pi,searchValue:Ps,onSearch:Ds,onSearchSubmit:Su,onRemove:ou,tokenWithEnter:ul}))),Dc;return Ia?Dc=Oc:Dc=Pt.createElement("div",(0,Lt.Z)({className:Qd},xo,{ref:Vi,onMouseDown:su,onKeyDown:rl,onKeyUp:bl,onFocus:Mo,onBlur:ja}),Na&&!Jo&&Pt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ui.map(function(Fs){var ya=Fs.label,ju=Fs.value;return["number","string"].includes((0,Mt.Z)(ya))?ya:ju}).join(", "))),Oc,Eu,ec&&ol),Pt.createElement(dt.Provider,{value:zo},Dc)}),sn=Me,Gn=function(dn,Fe){var wn=Pt.useRef({values:new Map,options:new Map}),Hn=Pt.useMemo(function(){var Di=wn.current,tn=Di.values,oi=Di.options,Li=dn.map(function(ui){if(ui.label===void 0){var Sr;return(0,ke.Z)((0,ke.Z)({},ui),{},{label:(Sr=tn.get(ui.value))===null||Sr===void 0?void 0:Sr.label})}return ui}),tr=new Map,kn=new Map;return Li.forEach(function(ui){tr.set(ui.value,ui),kn.set(ui.value,Fe.get(ui.value)||oi.get(ui.value))}),wn.current.values=tr,wn.current.options=kn,Li},[dn,Fe]),Si=Pt.useCallback(function(Di){return Fe.get(Di)||wn.current.options.get(Di)},[Fe]);return[Hn,Si]};function an(dn,Fe){return ze(dn).join("").toUpperCase().includes(Fe)}var un=function(dn,Fe,wn,Hn,Si){return Pt.useMemo(function(){if(!wn||Hn===!1)return dn;var Di=Fe.options,tn=Fe.label,oi=Fe.value,Li=[],tr=typeof Hn=="function",kn=wn.toUpperCase(),ui=tr?Hn:function(cr,zr){return Si?an(zr[Si],kn):zr[Di]?an(zr[tn!=="children"?tn:"label"],kn):an(zr[oi],kn)},Sr=tr?function(cr){return xe(cr)}:function(cr){return cr};return dn.forEach(function(cr){if(cr[Di]){var zr=ui(wn,Sr(cr));if(zr)Li.push(cr);else{var dr=cr[Di].filter(function(Mr){return ui(wn,Sr(Mr))});dr.length&&Li.push((0,ke.Z)((0,ke.Z)({},cr),{},(0,re.Z)({},Di,dr)))}return}ui(wn,Sr(cr))&&Li.push(cr)}),Li},[dn,Hn,Si,wn,Fe])},Bn=Ft(17115),ai=Ft(11592),On=["children","value"],ji=["children"];function er(dn){var Fe=dn,wn=Fe.key,Hn=Fe.props,Si=Hn.children,Di=Hn.value,tn=(0,Vt.Z)(Hn,On);return(0,ke.Z)({key:wn,value:Di!==void 0?Di:wn,children:Si},tn)}function Ji(dn){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ai.Z)(dn).map(function(wn,Hn){if(!Pt.isValidElement(wn)||!wn.type)return null;var Si=wn,Di=Si.type.isSelectOptGroup,tn=Si.key,oi=Si.props,Li=oi.children,tr=(0,Vt.Z)(oi,ji);return Fe||!Di?er(wn):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(tn===null?Hn:tn,"__"),label:tn},tr),{},{options:Ji(Li)})}).filter(function(wn){return wn})}function Fr(dn,Fe,wn,Hn,Si){return Pt.useMemo(function(){var Di=dn,tn=!dn;tn&&(Di=Ji(Fe));var oi=new Map,Li=new Map,tr=function(Sr,cr,zr){zr&&typeof zr=="string"&&Sr.set(cr[zr],cr)};function kn(ui){for(var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cr=0;cr<ui.length;cr+=1){var zr=ui[cr];!zr[wn.options]||Sr?(oi.set(zr[wn.value],zr),tr(Li,zr,wn.label),tr(Li,zr,Hn),tr(Li,zr,Si)):kn(zr[wn.options],!0)}}return kn(Di),{options:Di,valueOptions:oi,labelOptions:Li}},[dn,Fe,wn,Hn,Si])}function vr(dn){var Fe=Pt.useRef();Fe.current=dn;var wn=Pt.useCallback(function(){return Fe.current.apply(Fe,arguments)},[]);return wn}var so=function(){return null};so.isSelectOptGroup=!0;var Yr=so,Jr=function(){return null};Jr.isSelectOption=!0;var Lr=Jr,Zr=Ft(80547),oo=Ft(2738),Uo=Ft(4409),fs=Pt.createContext(null),eo=fs;function Os(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yo=["disabled","title","children","style","className"];function Xt(dn){return typeof dn=="string"||typeof dn=="number"}var ti=function(Fe,wn){var Hn=xt(),Si=Hn.prefixCls,Di=Hn.id,tn=Hn.open,oi=Hn.multiple,Li=Hn.mode,tr=Hn.searchValue,kn=Hn.toggleOpen,ui=Hn.notFoundContent,Sr=Hn.onPopupScroll,cr=Pt.useContext(eo),zr=cr.flattenOptions,dr=cr.onActiveValue,Mr=cr.defaultActiveFirstOption,nr=cr.onSelect,Cr=cr.menuItemSelectedIcon,no=cr.rawValues,Ro=cr.fieldNames,yi=cr.virtual,Po=cr.direction,ws=cr.listHeight,Zo=cr.listItemHeight,pi="".concat(Si,"-item"),or=(0,Zr.Z)(function(){return zr},[tn,zr],function(Io,_o){return _o[0]&&Io[1]!==_o[1]}),Hr=Pt.useRef(null),uo=function(_o){_o.preventDefault()},to=function(_o){Hr.current&&Hr.current.scrollTo(typeof _o=="number"?{index:_o}:_o)},Fo=function(_o){for(var As=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ls=or.length,wr=0;wr<ls;wr+=1){var Ie=(_o+wr*As+ls)%ls,cs=or[Ie],oa=cs.group,ll=cs.data;if(!oa&&!ll.disabled)return Ie}return-1},mi=Pt.useState(function(){return Fo(0)}),wo=(0,ee.Z)(mi,2),Dr=wo[0],Br=wo[1],Pi=function(_o){var As=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Br(_o);var ls={source:As?"keyboard":"mouse"},wr=or[_o];if(!wr){dr(null,-1,ls);return}dr(wr.value,_o,ls)};(0,Pt.useEffect)(function(){Pi(Mr!==!1?Fo(0):-1)},[or.length,tr]);var bo=Pt.useCallback(function(Io){return no.has(Io)&&Li!=="combobox"},[Li,(0,ce.Z)(no).toString(),no.size]);(0,Pt.useEffect)(function(){var Io=setTimeout(function(){if(!oi&&tn&&no.size===1){var As=Array.from(no)[0],ls=or.findIndex(function(wr){var Ie=wr.data;return Ie.value===As});ls!==-1&&(Pi(ls),to(ls))}});if(tn){var _o;(_o=Hr.current)===null||_o===void 0||_o.scrollTo(void 0)}return function(){return clearTimeout(Io)}},[tn,tr,zr.length]);var Ci=function(_o){_o!==void 0&&nr(_o,{selected:!no.has(_o)}),oi||kn(!1)};if(Pt.useImperativeHandle(wn,function(){return{onKeyDown:function(_o){var As=_o.which,ls=_o.ctrlKey;switch(As){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var wr=0;if(As===et.Z.UP?wr=-1:As===et.Z.DOWN?wr=1:Os()&&ls&&(As===et.Z.N?wr=1:As===et.Z.P&&(wr=-1)),wr!==0){var Ie=Fo(Dr+wr,wr);to(Ie),Pi(Ie,!0)}break}case et.Z.ENTER:{var cs=or[Dr];cs&&!cs.data.disabled?Ci(cs.value):Ci(void 0),tn&&_o.preventDefault();break}case et.Z.ESC:kn(!1),tn&&_o.stopPropagation()}},onKeyUp:function(){},scrollTo:function(_o){to(_o)}}}),or.length===0)return Pt.createElement("div",{role:"listbox",id:"".concat(Di,"_list"),className:"".concat(pi,"-empty"),onMouseDown:uo},ui);var Xo=Object.keys(Ro).map(function(Io){return Ro[Io]}),ra=function(_o){return _o.label};function xs(Io,_o){var As=Io.group;return{role:As?"presentation":"option",id:"".concat(Di,"_list_").concat(_o)}}var va=function(_o){var As=or[_o];if(!As)return null;var ls=As.data||{},wr=ls.value,Ie=As.group,cs=(0,se.Z)(ls,!0),oa=ra(As);return As?Pt.createElement("div",(0,Lt.Z)({"aria-label":typeof oa=="string"&&!Ie?oa:null},cs,{key:_o},xs(As,_o),{"aria-selected":bo(wr)}),wr):null},Gs={role:"listbox",id:"".concat(Di,"_list")};return Pt.createElement(Pt.Fragment,null,yi&&Pt.createElement("div",(0,Lt.Z)({},Gs,{style:{height:0,width:0,overflow:"hidden"}}),va(Dr-1),va(Dr),va(Dr+1)),Pt.createElement(Uo.Z,{itemKey:"key",ref:Hr,data:or,height:ws,itemHeight:Zo,fullHeight:!1,onMouseDown:uo,onScroll:Sr,virtual:yi,direction:Po,innerProps:yi?null:Gs},function(Io,_o){var As,ls=Io.group,wr=Io.groupOption,Ie=Io.data,cs=Io.label,oa=Io.value,ll=Ie.key;if(ls){var Ll,fl=(Ll=Ie.title)!==null&&Ll!==void 0?Ll:Xt(cs)?cs.toString():void 0;return Pt.createElement("div",{className:Kt()(pi,"".concat(pi,"-group")),title:fl},cs!==void 0?cs:ll)}var _l=Ie.disabled,ns=Ie.title,Yo=Ie.children,xo=Ie.style,ks=Ie.className,fa=(0,Vt.Z)(Ie,yo),fo=(0,oo.Z)(fa,Xo),co=bo(oa),Vi="".concat(pi,"-option"),Lo=Kt()(pi,Vi,ks,(As={},(0,re.Z)(As,"".concat(Vi,"-grouped"),wr),(0,re.Z)(As,"".concat(Vi,"-active"),Dr===_o&&!_l),(0,re.Z)(As,"".concat(Vi,"-disabled"),_l),(0,re.Z)(As,"".concat(Vi,"-selected"),co),As)),Bs=ra(Io),Js=!Cr||typeof Cr=="function"||co,ua=typeof Bs=="number"?Bs:Bs||oa,Ho=Xt(ua)?ua.toString():void 0;return ns!==void 0&&(Ho=ns),Pt.createElement("div",(0,Lt.Z)({},(0,se.Z)(fo),yi?{}:xs(Io,_o),{"aria-selected":co,className:Lo,title:Ho,onMouseMove:function(){Dr===_o||_l||Pi(_o)},onClick:function(){_l||Ci(oa)},style:xo}),Pt.createElement("div",{className:"".concat(Vi,"-content")},ua),Pt.isValidElement(Cr)||co,Js&&Pt.createElement(rt,{className:"".concat(pi,"-option-state"),customizeIcon:Cr,customizeIconProps:{isSelected:co}},co?"\u2713":null))}))},gs=Pt.forwardRef(ti);gs.displayName="OptionList";var ia=gs;function Zs(dn){var Fe=dn.mode,wn=dn.options,Hn=dn.children,Si=dn.backfill,Di=dn.allowClear,tn=dn.placeholder,oi=dn.getInputElement,Li=dn.showSearch,tr=dn.onSearch,kn=dn.defaultOpen,ui=dn.autoFocus,Sr=dn.labelInValue,cr=dn.value,zr=dn.inputValue,dr=dn.optionLabelProp,Mr=isMultiple(Fe),nr=Li!==void 0?Li:Mr||Fe==="combobox",Cr=wn||convertChildrenToData(Hn);if(warning(Fe!=="tags"||Cr.every(function(Po){return!Po.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Fe==="tags"||Fe==="combobox"){var no=Cr.some(function(Po){return Po.options?Po.options.some(function(ws){return typeof("value"in ws?ws.value:ws.key)=="number"}):typeof("value"in Po?Po.value:Po.key)=="number"});warning(!no,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Fe!=="combobox"||!dr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Fe==="combobox"||!Si,"`backfill` only works with `combobox` mode."),warning(Fe==="combobox"||!oi,"`getInputElement` only work with `combobox` mode."),noteOnce(Fe!=="combobox"||!oi||!Di||!tn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),tr&&!nr&&Fe!=="combobox"&&Fe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!kn||ui,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),cr!=null){var Ro=toArray(cr);warning(!Sr||Ro.every(function(Po){return _typeof(Po)==="object"&&("key"in Po||"value"in Po)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Mr||Array.isArray(cr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Hn){var yi=null;toNodeArray(Hn).some(function(Po){if(!React.isValidElement(Po)||!Po.type)return!1;var ws=Po,Zo=ws.type;if(Zo.isSelectOption)return!1;if(Zo.isSelectOptGroup){var pi=toNodeArray(Po.props.children).every(function(or){return!React.isValidElement(or)||!Po.type||or.type.isSelectOption?!0:(yi=or.type,!1)});return!pi}return yi=Zo,!0}),yi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(yi.displayName||yi.name||yi,"`.")),warning(zr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function la(dn,Fe){if(dn){var wn=function Hn(Si){for(var Di=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<Si.length;tn++){var oi=Si[tn];if(oi[Fe==null?void 0:Fe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Di&&Array.isArray(oi[Fe==null?void 0:Fe.options])&&Hn(oi[Fe==null?void 0:Fe.options],!0))break}};wn(dn)}}var Xs=null,Rr=["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"],_r=["inputValue"];function Dn(dn){return!dn||(0,Mt.Z)(dn)!=="object"}var Nn=Pt.forwardRef(function(dn,Fe){var wn=dn.id,Hn=dn.mode,Si=dn.prefixCls,Di=Si===void 0?"rc-select":Si,tn=dn.backfill,oi=dn.fieldNames,Li=dn.inputValue,tr=dn.searchValue,kn=dn.onSearch,ui=dn.autoClearSearchValue,Sr=ui===void 0?!0:ui,cr=dn.onSelect,zr=dn.onDeselect,dr=dn.dropdownMatchSelectWidth,Mr=dr===void 0?!0:dr,nr=dn.filterOption,Cr=dn.filterSort,no=dn.optionFilterProp,Ro=dn.optionLabelProp,yi=dn.options,Po=dn.children,ws=dn.defaultActiveFirstOption,Zo=dn.menuItemSelectedIcon,pi=dn.virtual,or=dn.direction,Hr=dn.listHeight,uo=Hr===void 0?200:Hr,to=dn.listItemHeight,Fo=to===void 0?20:to,mi=dn.value,wo=dn.defaultValue,Dr=dn.labelInValue,Br=dn.onChange,Pi=(0,Vt.Z)(dn,Rr),bo=(0,Bn.ZP)(wn),Ci=De(Hn),Xo=!!(!yi&&Po),ra=Pt.useMemo(function(){return nr===void 0&&Hn==="combobox"?!1:nr},[nr,Hn]),xs=Pt.useMemo(function(){return At(oi,Xo)},[JSON.stringify(oi),Xo]),va=(0,jt.Z)("",{value:tr!==void 0?tr:Li,postState:function(Hs){return Hs||""}}),Gs=(0,ee.Z)(va,2),Io=Gs[0],_o=Gs[1],As=Fr(yi,Po,xs,no,Ro),ls=As.valueOptions,wr=As.labelOptions,Ie=As.options,cs=Pt.useCallback(function(Jo){var Hs=ze(Jo);return Hs.map(function(Ss){var Qr,ul,Ds,Su,zu;if(Dn(Ss))Qr=Ss;else{var Xl;Ds=Ss.key,ul=Ss.label,Qr=(Xl=Ss.value)!==null&&Xl!==void 0?Xl:Ds}var fr=ls.get(Qr);if(fr){var Za;if(ul===void 0&&(ul=fr==null?void 0:fr[Ro||xs.label]),Ds===void 0&&(Ds=(Za=fr==null?void 0:fr.key)!==null&&Za!==void 0?Za:Qr),Su=fr==null?void 0:fr.disabled,zu=fr==null?void 0:fr.title,0)var rl}return{label:ul,value:Qr,key:Ds,disabled:Su,title:zu}})},[xs,Ro,ls]),oa=(0,jt.Z)(wo,{value:mi}),ll=(0,ee.Z)(oa,2),Ll=ll[0],fl=ll[1],_l=Pt.useMemo(function(){var Jo,Hs=cs(Ll);return Hn==="combobox"&&Ne((Jo=Hs[0])===null||Jo===void 0?void 0:Jo.value)?[]:Hs},[Ll,cs,Hn]),ns=Gn(_l,ls),Yo=(0,ee.Z)(ns,2),xo=Yo[0],ks=Yo[1],fa=Pt.useMemo(function(){if(!Hn&&xo.length===1){var Jo=xo[0];if(Jo.value===null&&(Jo.label===null||Jo.label===void 0))return[]}return xo.map(function(Hs){var Ss;return(0,ke.Z)((0,ke.Z)({},Hs),{},{label:(Ss=Hs.label)!==null&&Ss!==void 0?Ss:Hs.value})})},[Hn,xo]),fo=Pt.useMemo(function(){return new Set(xo.map(function(Jo){return Jo.value}))},[xo]);Pt.useEffect(function(){if(Hn==="combobox"){var Jo,Hs=(Jo=xo[0])===null||Jo===void 0?void 0:Jo.value;_o(_e(Hs)?String(Hs):"")}},[xo]);var co=vr(function(Jo,Hs){var Ss,Qr=Hs!=null?Hs:Jo;return Ss={},(0,re.Z)(Ss,xs.value,Jo),(0,re.Z)(Ss,xs.label,Qr),Ss}),Vi=Pt.useMemo(function(){if(Hn!=="tags")return Ie;var Jo=(0,ce.Z)(Ie),Hs=function(Qr){return ls.has(Qr)};return(0,ce.Z)(xo).sort(function(Ss,Qr){return Ss.value<Qr.value?-1:1}).forEach(function(Ss){var Qr=Ss.value;Hs(Qr)||Jo.push(co(Qr,Ss.label))}),Jo},[co,Ie,ls,xo,Hn]),Lo=un(Vi,xs,Io,ra,no),Bs=Pt.useMemo(function(){return Hn!=="tags"||!Io||Lo.some(function(Jo){return Jo[no||"value"]===Io})||Lo.some(function(Jo){return Jo[xs.value]===Io})?Lo:[co(Io)].concat((0,ce.Z)(Lo))},[co,no,Hn,Lo,Io,xs]),Js=Pt.useMemo(function(){return Cr?(0,ce.Z)(Bs).sort(function(Jo,Hs){return Cr(Jo,Hs)}):Bs},[Bs,Cr]),ua=Pt.useMemo(function(){return ue(Js,{fieldNames:xs,childrenAsData:Xo})},[Js,xs,Xo]),Ho=function(Hs){var Ss=cs(Hs);if(fl(Ss),Br&&(Ss.length!==xo.length||Ss.some(function(Ds,Su){var zu;return((zu=xo[Su])===null||zu===void 0?void 0:zu.value)!==(Ds==null?void 0:Ds.value)}))){var Qr=Dr?Ss:Ss.map(function(Ds){return Ds.value}),ul=Ss.map(function(Ds){return xe(ks(Ds.value))});Br(Ci?Qr:Qr[0],Ci?ul:ul[0])}},Ks=Pt.useState(null),Na=(0,ee.Z)(Ks,2),Tl=Na[0],Va=Na[1],Ps=Pt.useState(0),si=(0,ee.Z)(Ps,2),Ia=si[0],Ac=si[1],du=ws!==void 0?ws:Hn!=="combobox",Hh=Pt.useCallback(function(Jo,Hs){var Ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qr=Ss.source,ul=Qr===void 0?"keyboard":Qr;Ac(Hs),tn&&Hn==="combobox"&&Jo!==null&&ul==="keyboard"&&Va(String(Jo))},[tn,Hn]),$r=function(Hs,Ss,Qr){var ul=function(){var Ya,Mo=ks(Hs);return[Dr?{label:Mo==null?void 0:Mo[xs.label],value:Hs,key:(Ya=Mo==null?void 0:Mo.key)!==null&&Ya!==void 0?Ya:Hs}:Hs,xe(Mo)]};if(Ss&&cr){var Ds=ul(),Su=(0,ee.Z)(Ds,2),zu=Su[0],Xl=Su[1];cr(zu,Xl)}else if(!Ss&&zr&&Qr!=="clear"){var fr=ul(),Za=(0,ee.Z)(fr,2),rl=Za[0],bl=Za[1];zr(rl,bl)}},Qs=vr(function(Jo,Hs){var Ss,Qr=Ci?Hs.selected:!0;Qr?Ss=Ci?[].concat((0,ce.Z)(xo),[Jo]):[Jo]:Ss=xo.filter(function(ul){return ul.value!==Jo}),Ho(Ss),$r(Jo,Qr),Hn==="combobox"?Va(""):(!De||Sr)&&(_o(""),Va(""))}),Ms=function(Hs,Ss){Ho(Hs);var Qr=Ss.type,ul=Ss.values;(Qr==="remove"||Qr==="clear")&&ul.forEach(function(Ds){$r(Ds.value,!1,Qr)})},bs=function(Hs,Ss){if(_o(Hs),Va(null),Ss.source==="submit"){var Qr=(Hs||"").trim();if(Qr){var ul=Array.from(new Set([].concat((0,ce.Z)(fo),[Qr])));Ho(ul),$r(Qr,!0),_o("")}return}Ss.source!=="blur"&&(Hn==="combobox"&&Ho(Hs),kn==null||kn(Hs))},zs=function(Hs){var Ss=Hs;Hn!=="tags"&&(Ss=Hs.map(function(ul){var Ds=wr.get(ul);return Ds==null?void 0:Ds.value}).filter(function(ul){return ul!==void 0}));var Qr=Array.from(new Set([].concat((0,ce.Z)(fo),(0,ce.Z)(Ss))));Ho(Qr),Qr.forEach(function(ul){$r(ul,!0)})},Au=Pt.useMemo(function(){var Jo=pi!==!1&&Mr!==!1;return(0,ke.Z)((0,ke.Z)({},As),{},{flattenOptions:ua,onActiveValue:Hh,defaultActiveFirstOption:du,onSelect:Qs,menuItemSelectedIcon:Zo,rawValues:fo,fieldNames:xs,virtual:Jo,direction:or,listHeight:uo,listItemHeight:Fo,childrenAsData:Xo})},[As,ua,Hh,du,Qs,Zo,fo,xs,pi,Mr,uo,Fo,Xo]);return Pt.createElement(eo.Provider,{value:Au},Pt.createElement(sn,(0,Lt.Z)({},Pi,{id:bo,prefixCls:Di,ref:Fe,omitDomProps:_r,mode:Hn,displayValues:fa,onDisplayValuesChange:Ms,direction:or,searchValue:Io,onSearch:bs,autoClearSearchValue:Sr,onSearchSplit:zs,dropdownMatchSelectWidth:Mr,OptionList:ia,emptyOptions:!ua.length,activeValue:Tl,activeDescendantId:"".concat(bo,"_list_").concat(Ia)})))}),je=Nn;je.Option=Lr,je.OptGroup=Yr;var ei=je,xi=ei},9296:function(hi,Cn,Ft){"use strict";Ft.r(Cn),Ft.d(Cn,{ResizableTextArea:function(){return Pe},default:function(){return Ne}});var Lt=Ft(92413),ce=Ft(33708),re=Ft(400),ke=Ft(39559),ee=Ft(33606),Vt=Ft(37061),Mt=Ft(26407),jt=Ft(92310),te=Ft.n(jt),Pt=Ft(93681),oe=Ft(5643),Kt=Ft(18929),$t=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(We){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(Re&&ht[ve])return ht[ve];var ne=window.getComputedStyle(We),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")),Ze=rt.map(function(Vn){return"".concat(Vn,":").concat(ne.getPropertyValue(Vn))}).join(";"),Mn={sizingStyle:Ze,paddingSize:bn,borderSize:Ln,boxSizing:Ce};return Re&&ve&&(ht[ve]=Mn),Mn}function Nt(We){var Re=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)),We.getAttribute("wrap")?dt.setAttribute("wrap",We.getAttribute("wrap")):dt.removeAttribute("wrap");var Ce=xt(We,Re),bn=Ce.paddingSize,Ln=Ce.borderSize,Ze=Ce.boxSizing,Mn=Ce.sizingStyle;dt.setAttribute("style","".concat(Mn,";").concat(lt)),dt.value=We.value||We.placeholder||"";var Vn=void 0,fi=void 0,Kn,Bi=dt.scrollHeight;if(Ze==="border-box"?Bi+=Ln:Ze==="content-box"&&(Bi-=bn),ve!==null||ne!==null){dt.value=" ";var en=dt.scrollHeight-bn;ve!==null&&(Vn=en*ve,Ze==="border-box"&&(Vn=Vn+bn+Ln),Bi=Math.max(Vn,Bi)),ne!==null&&(fi=en*ne,Ze==="border-box"&&(fi=fi+bn+Ln),Kn=Bi>fi?"":"hidden",Bi=Math.min(fi,Bi))}var Fi={height:Bi,overflowY:Kn,resize:"none"};return Vn&&(Fi.minHeight=Vn),fi&&(Fi.maxHeight=fi),Fi}var Ut=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Gt=0,se=1,le=2,Ae=$t.forwardRef(function(We,Re){var ve=We,ne=ve.prefixCls,Ce=ve.onPressEnter,bn=ve.defaultValue,Ln=ve.value,Ze=ve.autoSize,Mn=ve.onResize,Vn=ve.className,fi=ve.style,Kn=ve.disabled,Bi=ve.onChange,en=ve.onInternalAutoSize,Fi=(0,Vt.Z)(ve,Ut),Oi=(0,Kt.Z)(bn,{value:Ln,postState:function(Yr){return Yr!=null?Yr:""}}),Ot=(0,ee.Z)(Oi,2),Tt=Ot[0],vt=Ot[1],ft=function(Yr){vt(Yr.target.value),Bi==null||Bi(Yr)},gt=$t.useRef();$t.useImperativeHandle(Re,function(){return{textArea:gt.current}});var At=$t.useMemo(function(){return Ze&&(0,ke.Z)(Ze)==="object"?[Ze.minRows,Ze.maxRows]:[]},[Ze]),ue=(0,ee.Z)(At,2),xe=ue[0],ae=ue[1],ye=!!Ze,Te=function(){try{if(document.activeElement===gt.current){var Yr=gt.current,Jr=Yr.selectionStart,Lr=Yr.selectionEnd,Zr=Yr.scrollTop;gt.current.setSelectionRange(Jr,Lr),gt.current.scrollTop=Zr}}catch(oo){}},De=$t.useState(le),Me=(0,ee.Z)(De,2),sn=Me[0],Gn=Me[1],an=$t.useState(),un=(0,ee.Z)(an,2),Bn=un[0],ai=un[1],On=function(){Gn(Gt)};(0,et.Z)(function(){ye&&On()},[Ln,xe,ae,ye]),(0,et.Z)(function(){if(sn===Gt)Gn(se);else if(sn===se){var so=Nt(gt.current,!1,xe,ae);Gn(le),ai(so)}else Te()},[sn]);var ji=$t.useRef(),er=function(){tt.Z.cancel(ji.current)},Ji=function(Yr){sn===le&&(Mn==null||Mn(Yr),Ze&&(er(),ji.current=(0,tt.Z)(function(){On()})))};$t.useEffect(function(){return er},[]);var Fr=ye?Bn:null,vr=(0,ce.Z)((0,ce.Z)({},fi),Fr);return(sn===Gt||sn===se)&&(vr.overflowY="hidden",vr.overflowX="hidden"),$t.createElement(Ct.Z,{onResize:Ji,disabled:!(Ze||Mn)},$t.createElement("textarea",(0,Lt.Z)({},Fi,{ref:gt,style:vr,className:te()(ne,Vn,(0,re.Z)({},"".concat(ne,"-disabled"),Kn)),disabled:Kn,value:Tt,onChange:ft})))}),Pe=Ae,qt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ze(We,Re){return(0,Mt.Z)(We||"").slice(0,Re).join("")}function Wt(We,Re,ve,ne){var Ce=ve;return We?Ce=ze(ve,ne):(0,Mt.Z)(Re||"").length<ve.length&&(0,Mt.Z)(ve||"").length>ne&&(Ce=Re),Ce}var Ge=$t.forwardRef(function(We,Re){var ve,ne=We.defaultValue,Ce=We.value,bn=We.onFocus,Ln=We.onBlur,Ze=We.onChange,Mn=We.allowClear,Vn=We.maxLength,fi=We.onCompositionStart,Kn=We.onCompositionEnd,Bi=We.suffix,en=We.prefixCls,Fi=en===void 0?"rc-textarea":en,Oi=We.classes,Ot=We.showCount,Tt=We.className,vt=We.style,ft=We.disabled,gt=We.hidden,At=We.classNames,ue=We.styles,xe=We.onResize,ae=(0,Vt.Z)(We,qt),ye=(0,Kt.Z)(ne,{value:Ce,defaultValue:ne}),Te=(0,ee.Z)(ye,2),De=Te[0],Me=Te[1],sn=(0,$t.useRef)(null),Gn=$t.useState(!1),an=(0,ee.Z)(Gn,2),un=an[0],Bn=an[1],ai=$t.useState(!1),On=(0,ee.Z)(ai,2),ji=On[0],er=On[1],Ji=$t.useRef(),Fr=$t.useRef(0),vr=$t.useState(null),so=(0,ee.Z)(vr,2),Yr=so[0],Jr=so[1],Lr=function(){var Dn;(Dn=sn.current)===null||Dn===void 0||Dn.textArea.focus()};(0,$t.useImperativeHandle)(Re,function(){return{resizableTextArea:sn.current,focus:Lr,blur:function(){var Dn;(Dn=sn.current)===null||Dn===void 0||Dn.textArea.blur()}}}),(0,$t.useEffect)(function(){Bn(function(_r){return!ft&&_r})},[ft]);var Zr=Number(Vn)>0,oo=function(Dn){er(!0),Ji.current=De,Fr.current=Dn.currentTarget.selectionStart,fi==null||fi(Dn)},Uo=function(Dn){er(!1);var Nn=Dn.currentTarget.value;if(Zr){var je,ei=Fr.current>=Vn+1||Fr.current===((je=Ji.current)===null||je===void 0?void 0:je.length);Nn=Wt(ei,Ji.current,Nn,Vn)}Nn!==De&&(Me(Nn),(0,oe.rJ)(Dn.currentTarget,Dn,Ze,Nn)),Kn==null||Kn(Dn)},fs=function(Dn){var Nn=Dn.target.value;if(!ji&&Zr){var je=Dn.target.selectionStart>=Vn+1||Dn.target.selectionStart===Nn.length||!Dn.target.selectionStart;Nn=Wt(je,De,Nn,Vn)}Me(Nn),(0,oe.rJ)(Dn.currentTarget,Dn,Ze,Nn)},eo=function(Dn){var Nn=ae.onPressEnter,je=ae.onKeyDown;Dn.key==="Enter"&&Nn&&Nn(Dn),je==null||je(Dn)},Os=function(Dn){Bn(!0),bn==null||bn(Dn)},yo=function(Dn){Bn(!1),Ln==null||Ln(Dn)},Xt=function(Dn){var Nn;Me(""),Lr(),(0,oe.rJ)((Nn=sn.current)===null||Nn===void 0?void 0:Nn.textArea,Dn,Ze)},ti=(0,oe.D7)(De);!ji&&Zr&&Ce==null&&(ti=ze(ti,Vn));var gs=Bi,ia;if(Ot){var Zs=(0,Mt.Z)(ti).length;(0,ke.Z)(Ot)==="object"?ia=Ot.formatter({value:ti,count:Zs,maxLength:Vn}):ia="".concat(Zs).concat(Zr?" / ".concat(Vn):""),gs=$t.createElement($t.Fragment,null,gs,$t.createElement("span",{className:te()("".concat(Fi,"-data-count"),At==null?void 0:At.count),style:ue==null?void 0:ue.count},ia))}var la=function(Dn){var Nn;xe==null||xe(Dn),(Nn=sn.current)!==null&&Nn!==void 0&&Nn.textArea.style.height&&Jr(!0)},Xs=!ae.autoSize&&!Ot&&!Mn,Rr=$t.createElement(Pt.BaseInput,{value:ti,allowClear:Mn,handleReset:Xt,suffix:gs,prefixCls:Fi,classes:{affixWrapper:te()(Oi==null?void 0:Oi.affixWrapper,(ve={},(0,re.Z)(ve,"".concat(Fi,"-show-count"),Ot),(0,re.Z)(ve,"".concat(Fi,"-textarea-allow-clear"),Mn),ve))},disabled:ft,focused:un,className:Tt,style:(0,ce.Z)((0,ce.Z)({},vt),Yr&&!Xs?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ia=="string"?ia:void 0}},hidden:gt,inputElement:$t.createElement(Pe,(0,Lt.Z)({},ae,{onKeyDown:eo,onChange:fs,onFocus:Os,onBlur:yo,onCompositionStart:oo,onCompositionEnd:Uo,className:At==null?void 0:At.textarea,style:(0,ce.Z)((0,ce.Z)({},ue==null?void 0:ue.textarea),{},{resize:vt==null?void 0:vt.resize}),disabled:ft,prefixCls:Fi,onResize:la,ref:sn}))});return Rr}),_e=Ge,Ne=_e},39417:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return se}});var Lt=Ft(92413),ce=Ft(400),re=Ft(37061),ke=Ft(33708),ee=Ft(6909),Vt=Ft(4771),Mt=Ft(25314),jt=Ft(9427),te=Ft(25440),Pt=Ft(92310),oe=Ft.n(Pt),Kt=Ft(26112),$t=Ft(59301),Ct=Ft(39378),et=function(Ae){for(var Pe=Ae.prefixCls,qt=Ae.level,ze=Ae.isStart,Wt=Ae.isEnd,Ge="".concat(Pe,"-indent-unit"),_e=[],Ne=0;Ne<qt;Ne+=1){var We;_e.push($t.createElement("span",{key:Ne,className:oe()(Ge,(We={},(0,ce.Z)(We,"".concat(Ge,"-start"),ze[Ne]),(0,ce.Z)(We,"".concat(Ge,"-end"),Wt[Ne]),We))}))}return $t.createElement("span",{"aria-hidden":"true",className:"".concat(Pe,"-indent")},_e)},tt=$t.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(le){(0,jt.Z)(Pe,le);var Ae=(0,te.Z)(Pe);function Pe(){var qt;(0,ee.Z)(this,Pe);for(var ze=arguments.length,Wt=new Array(ze),Ge=0;Ge<ze;Ge++)Wt[Ge]=arguments[Ge];return qt=Ae.call.apply(Ae,[this].concat(Wt)),qt.state={dragNodeHighlight:!1},qt.selectHandle=void 0,qt.cacheIndent=void 0,qt.onSelectorClick=function(_e){var Ne=qt.props.context.onNodeClick;Ne(_e,(0,rt.F)(qt.props)),qt.isSelectable()?qt.onSelect(_e):qt.onCheck(_e)},qt.onSelectorDoubleClick=function(_e){var Ne=qt.props.context.onNodeDoubleClick;Ne(_e,(0,rt.F)(qt.props))},qt.onSelect=function(_e){if(!qt.isDisabled()){var Ne=qt.props.context.onNodeSelect;Ne(_e,(0,rt.F)(qt.props))}},qt.onCheck=function(_e){if(!qt.isDisabled()){var Ne=qt.props,We=Ne.disableCheckbox,Re=Ne.checked,ve=qt.props.context.onNodeCheck;if(!(!qt.isCheckable()||We)){var ne=!Re;ve(_e,(0,rt.F)(qt.props),ne)}}},qt.onMouseEnter=function(_e){var Ne=qt.props.context.onNodeMouseEnter;Ne(_e,(0,rt.F)(qt.props))},qt.onMouseLeave=function(_e){var Ne=qt.props.context.onNodeMouseLeave;Ne(_e,(0,rt.F)(qt.props))},qt.onContextMenu=function(_e){var Ne=qt.props.context.onNodeContextMenu;Ne(_e,(0,rt.F)(qt.props))},qt.onDragStart=function(_e){var Ne=qt.props.context.onNodeDragStart;_e.stopPropagation(),qt.setState({dragNodeHighlight:!0}),Ne(_e,(0,Mt.Z)(qt));try{_e.dataTransfer.setData("text/plain","")}catch(We){}},qt.onDragEnter=function(_e){var Ne=qt.props.context.onNodeDragEnter;_e.preventDefault(),_e.stopPropagation(),Ne(_e,(0,Mt.Z)(qt))},qt.onDragOver=function(_e){var Ne=qt.props.context.onNodeDragOver;_e.preventDefault(),_e.stopPropagation(),Ne(_e,(0,Mt.Z)(qt))},qt.onDragLeave=function(_e){var Ne=qt.props.context.onNodeDragLeave;_e.stopPropagation(),Ne(_e,(0,Mt.Z)(qt))},qt.onDragEnd=function(_e){var Ne=qt.props.context.onNodeDragEnd;_e.stopPropagation(),qt.setState({dragNodeHighlight:!1}),Ne(_e,(0,Mt.Z)(qt))},qt.onDrop=function(_e){var Ne=qt.props.context.onNodeDrop;_e.preventDefault(),_e.stopPropagation(),qt.setState({dragNodeHighlight:!1}),Ne(_e,(0,Mt.Z)(qt))},qt.onExpand=function(_e){var Ne=qt.props,We=Ne.loading,Re=Ne.context.onNodeExpand;We||Re(_e,(0,rt.F)(qt.props))},qt.setSelectHandle=function(_e){qt.selectHandle=_e},qt.getNodeState=function(){var _e=qt.props.expanded;return qt.isLeaf()?null:_e?dt:xt},qt.hasChildren=function(){var _e=qt.props.eventKey,Ne=qt.props.context.keyEntities,We=(0,lt.Z)(Ne,_e)||{},Re=We.children;return!!(Re||[]).length},qt.isLeaf=function(){var _e=qt.props,Ne=_e.isLeaf,We=_e.loaded,Re=qt.props.context.loadData,ve=qt.hasChildren();return Ne===!1?!1:Ne||!Re&&!ve||Re&&We&&!ve},qt.isDisabled=function(){var _e=qt.props.disabled,Ne=qt.props.context.disabled;return!!(Ne||_e)},qt.isCheckable=function(){var _e=qt.props.checkable,Ne=qt.props.context.checkable;return!Ne||_e===!1?!1:Ne},qt.syncLoadData=function(_e){var Ne=_e.expanded,We=_e.loading,Re=_e.loaded,ve=qt.props.context,ne=ve.loadData,Ce=ve.onNodeLoad;We||ne&&Ne&&!qt.isLeaf()&&!qt.hasChildren()&&!Re&&Ce((0,rt.F)(qt.props))},qt.isDraggable=function(){var _e=qt.props,Ne=_e.data,We=_e.context.draggable;return!!(We&&(!We.nodeDraggable||We.nodeDraggable(Ne)))},qt.renderDragHandler=function(){var _e=qt.props.context,Ne=_e.draggable,We=_e.prefixCls;return Ne!=null&&Ne.icon?$t.createElement("span",{className:"".concat(We,"-draggable-icon")},Ne.icon):null},qt.renderSwitcherIconDom=function(_e){var Ne=qt.props.switcherIcon,We=qt.props.context.switcherIcon,Re=Ne||We;return typeof Re=="function"?Re((0,ke.Z)((0,ke.Z)({},qt.props),{},{isLeaf:_e})):Re},qt.renderSwitcher=function(){var _e=qt.props.expanded,Ne=qt.props.context.prefixCls;if(qt.isLeaf()){var We=qt.renderSwitcherIconDom(!0);return We!==!1?$t.createElement("span",{className:oe()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher-noop"))},We):null}var Re=oe()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher_").concat(_e?dt:xt)),ve=qt.renderSwitcherIconDom(!1);return ve!==!1?$t.createElement("span",{onClick:qt.onExpand,className:Re},ve):null},qt.renderCheckbox=function(){var _e=qt.props,Ne=_e.checked,We=_e.halfChecked,Re=_e.disableCheckbox,ve=qt.props.context.prefixCls,ne=qt.isDisabled(),Ce=qt.isCheckable();if(!Ce)return null;var bn=typeof Ce!="boolean"?Ce:null;return $t.createElement("span",{className:oe()("".concat(ve,"-checkbox"),Ne&&"".concat(ve,"-checkbox-checked"),!Ne&&We&&"".concat(ve,"-checkbox-indeterminate"),(ne||Re)&&"".concat(ve,"-checkbox-disabled")),onClick:qt.onCheck},bn)},qt.renderIcon=function(){var _e=qt.props.loading,Ne=qt.props.context.prefixCls;return $t.createElement("span",{className:oe()("".concat(Ne,"-iconEle"),"".concat(Ne,"-icon__").concat(qt.getNodeState()||"docu"),_e&&"".concat(Ne,"-icon_loading"))})},qt.renderSelector=function(){var _e=qt.state.dragNodeHighlight,Ne=qt.props,We=Ne.title,Re=We===void 0?Nt:We,ve=Ne.selected,ne=Ne.icon,Ce=Ne.loading,bn=Ne.data,Ln=qt.props.context,Ze=Ln.prefixCls,Mn=Ln.showIcon,Vn=Ln.icon,fi=Ln.loadData,Kn=Ln.titleRender,Bi=qt.isDisabled(),en="".concat(Ze,"-node-content-wrapper"),Fi;if(Mn){var Oi=ne||Vn;Fi=Oi?$t.createElement("span",{className:oe()("".concat(Ze,"-iconEle"),"".concat(Ze,"-icon__customize"))},typeof Oi=="function"?Oi(qt.props):Oi):qt.renderIcon()}else fi&&Ce&&(Fi=qt.renderIcon());var Ot;typeof Re=="function"?Ot=Re(bn):Kn?Ot=Kn(bn):Ot=Re;var Tt=$t.createElement("span",{className:"".concat(Ze,"-title")},Ot);return $t.createElement("span",{ref:qt.setSelectHandle,title:typeof Re=="string"?Re:"",className:oe()("".concat(en),"".concat(en,"-").concat(qt.getNodeState()||"normal"),!Bi&&(ve||_e)&&"".concat(Ze,"-node-selected")),onMouseEnter:qt.onMouseEnter,onMouseLeave:qt.onMouseLeave,onContextMenu:qt.onContextMenu,onClick:qt.onSelectorClick,onDoubleClick:qt.onSelectorDoubleClick},Fi,Tt,qt.renderDropIndicator())},qt.renderDropIndicator=function(){var _e=qt.props,Ne=_e.disabled,We=_e.eventKey,Re=qt.props.context,ve=Re.draggable,ne=Re.dropLevelOffset,Ce=Re.dropPosition,bn=Re.prefixCls,Ln=Re.indent,Ze=Re.dropIndicatorRender,Mn=Re.dragOverNodeKey,Vn=Re.direction,fi=!!ve,Kn=!Ne&&fi&&Mn===We,Bi=Ln!=null?Ln:qt.cacheIndent;return qt.cacheIndent=Ln,Kn?Ze({dropPosition:Ce,dropLevelOffset:ne,indent:Bi,prefixCls:bn,direction:Vn}):null},qt}return(0,Vt.Z)(Pe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ze=this.props.selectable,Wt=this.props.context.selectable;return typeof ze=="boolean"?ze:Wt}},{key:"render",value:function(){var ze,Wt=this.props,Ge=Wt.eventKey,_e=Wt.className,Ne=Wt.style,We=Wt.dragOver,Re=Wt.dragOverGapTop,ve=Wt.dragOverGapBottom,ne=Wt.isLeaf,Ce=Wt.isStart,bn=Wt.isEnd,Ln=Wt.expanded,Ze=Wt.selected,Mn=Wt.checked,Vn=Wt.halfChecked,fi=Wt.loading,Kn=Wt.domRef,Bi=Wt.active,en=Wt.data,Fi=Wt.onMouseMove,Oi=Wt.selectable,Ot=(0,re.Z)(Wt,ht),Tt=this.props.context,vt=Tt.prefixCls,ft=Tt.filterTreeNode,gt=Tt.keyEntities,At=Tt.dropContainerKey,ue=Tt.dropTargetKey,xe=Tt.draggingNodeKey,ae=this.isDisabled(),ye=(0,Kt.Z)(Ot,{aria:!0,data:!0}),Te=(0,lt.Z)(gt,Ge)||{},De=Te.level,Me=bn[bn.length-1],sn=this.isDraggable(),Gn=!ae&&sn,an=xe===Ge,un=Oi!==void 0?{"aria-selected":!!Oi}:void 0;return $t.createElement("div",(0,Lt.Z)({ref:Kn,className:oe()(_e,"".concat(vt,"-treenode"),(ze={},(0,ce.Z)(ze,"".concat(vt,"-treenode-disabled"),ae),(0,ce.Z)(ze,"".concat(vt,"-treenode-switcher-").concat(Ln?"open":"close"),!ne),(0,ce.Z)(ze,"".concat(vt,"-treenode-checkbox-checked"),Mn),(0,ce.Z)(ze,"".concat(vt,"-treenode-checkbox-indeterminate"),Vn),(0,ce.Z)(ze,"".concat(vt,"-treenode-selected"),Ze),(0,ce.Z)(ze,"".concat(vt,"-treenode-loading"),fi),(0,ce.Z)(ze,"".concat(vt,"-treenode-active"),Bi),(0,ce.Z)(ze,"".concat(vt,"-treenode-leaf-last"),Me),(0,ce.Z)(ze,"".concat(vt,"-treenode-draggable"),sn),(0,ce.Z)(ze,"dragging",an),(0,ce.Z)(ze,"drop-target",ue===Ge),(0,ce.Z)(ze,"drop-container",At===Ge),(0,ce.Z)(ze,"drag-over",!ae&&We),(0,ce.Z)(ze,"drag-over-gap-top",!ae&&Re),(0,ce.Z)(ze,"drag-over-gap-bottom",!ae&&ve),(0,ce.Z)(ze,"filter-node",ft&&ft((0,rt.F)(this.props))),ze)),style:Ne,draggable:Gn,"aria-grabbed":an,onDragStart:Gn?this.onDragStart:void 0,onDragEnter:sn?this.onDragEnter:void 0,onDragOver:sn?this.onDragOver:void 0,onDragLeave:sn?this.onDragLeave:void 0,onDrop:sn?this.onDrop:void 0,onDragEnd:sn?this.onDragEnd:void 0,onMouseMove:Fi},un,ye),$t.createElement(tt,{prefixCls:vt,level:De,isStart:Ce,isEnd:bn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Pe}($t.Component),Gt=function(Ae){return $t.createElement(Ct.k.Consumer,null,function(Pe){return $t.createElement(Ut,(0,Lt.Z)({},Ae,{context:Pe}))})};Gt.displayName="TreeNode",Gt.isTreeNode=1;var se=Gt},39378:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{k:function(){return ce}});var Lt=Ft(59301),ce=Lt.createContext(null)},23130:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{O:function(){return se.Z},Z:function(){return Tt}});var Lt=Ft(92413),ce=Ft(400),re=Ft(39559),ke=Ft(33708),ee=Ft(26407),Vt=Ft(6909),Mt=Ft(4771),jt=Ft(25314),te=Ft(9427),Pt=Ft(25440),oe=Ft(92310),Kt=Ft.n(oe),$t=Ft(10228),Ct=Ft(26112),et=Ft(48736),tt=Ft(59301),lt=Ft(39378);function rt(vt){var ft=vt.dropPosition,gt=vt.dropLevelOffset,At=vt.indent,ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ft){case-1:ue.top=0,ue.left=-gt*At;break;case 1:ue.bottom=0,ue.left=-gt*At;break;case 0:ue.bottom=0,ue.left=At;break}return tt.createElement("div",{style:ue})}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),Gt=Ft(77900),se=Ft(39417);function le(vt,ft){var gt=tt.useState(!1),At=(0,dt.Z)(gt,2),ue=At[0],xe=At[1];tt.useLayoutEffect(function(){if(ue)return vt(),function(){ft()}},[ue]),tt.useLayoutEffect(function(){return xe(!0),function(){xe(!1)}},[])}var Ae=Ft(71430),Pe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],qt=function(ft,gt){var At=ft.className,ue=ft.style,xe=ft.motion,ae=ft.motionNodes,ye=ft.motionType,Te=ft.onMotionStart,De=ft.onMotionEnd,Me=ft.active,sn=ft.treeNodeRequiredProps,Gn=(0,xt.Z)(ft,Pe),an=tt.useState(!0),un=(0,dt.Z)(an,2),Bn=un[0],ai=un[1],On=tt.useContext(lt.k),ji=On.prefixCls,er=ae&&ye!=="hide";(0,Nt.Z)(function(){ae&&er!==Bn&&ai(er)},[ae]);var Ji=function(){ae&&Te()},Fr=tt.useRef(!1),vr=function(){ae&&!Fr.current&&(Fr.current=!0,De())};le(Ji,vr);var so=function(Jr){er===Jr&&vr()};return ae?tt.createElement(Gt.default,(0,Lt.Z)({ref:gt,visible:Bn},xe,{motionAppear:ye==="show",onVisibleChanged:so}),function(Yr,Jr){var Lr=Yr.className,Zr=Yr.style;return tt.createElement("div",{ref:Jr,className:Kt()("".concat(ji,"-treenode-motion"),Lr),style:Zr},ae.map(function(oo){var Uo=(0,Lt.Z)({},(ht(oo.data),oo.data)),fs=oo.title,eo=oo.key,Os=oo.isStart,yo=oo.isEnd;delete Uo.children;var Xt=(0,Ae.H8)(eo,sn);return tt.createElement(se.Z,(0,Lt.Z)({},Uo,Xt,{title:fs,active:Me,data:oo.data,key:eo,isStart:Os,isEnd:yo}))}))}):tt.createElement(se.Z,(0,Lt.Z)({domRef:gt,className:At,style:ue},Gn,{active:Me}))};qt.displayName="MotionTreeNode";var ze=tt.forwardRef(qt),Wt=ze;function Ge(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],gt=vt.length,At=ft.length;if(Math.abs(gt-At)!==1)return{add:!1,key:null};function ue(xe,ae){var ye=new Map;xe.forEach(function(De){ye.set(De,!0)});var Te=ae.filter(function(De){return!ye.has(De)});return Te.length===1?Te[0]:null}return gt<At?{add:!0,key:ue(vt,ft)}:{add:!1,key:ue(ft,vt)}}function _e(vt,ft,gt){var At=vt.findIndex(function(ye){return ye.key===gt}),ue=vt[At+1],xe=ft.findIndex(function(ye){return ye.key===gt});if(ue){var ae=ft.findIndex(function(ye){return ye.key===ue.key});return ft.slice(xe+1,ae)}return ft.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"],We={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Re=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,ft,gt,At){return ft===!1||!gt?vt:vt.slice(0,Math.ceil(gt/At)+1)}function Ze(vt){var ft=vt.key,gt=vt.pos;return(0,Ae.km)(ft,gt)}function Mn(vt){for(var ft=String(vt.data.key),gt=vt;gt.parent;)gt=gt.parent,ft="".concat(gt.data.key," > ").concat(ft);return ft}var Vn=tt.forwardRef(function(vt,ft){var gt=vt.prefixCls,At=vt.data,ue=vt.selectable,xe=vt.checkable,ae=vt.expandedKeys,ye=vt.selectedKeys,Te=vt.checkedKeys,De=vt.loadedKeys,Me=vt.loadingKeys,sn=vt.halfCheckedKeys,Gn=vt.keyEntities,an=vt.disabled,un=vt.dragging,Bn=vt.dragOverNodeKey,ai=vt.dropPosition,On=vt.motion,ji=vt.height,er=vt.itemHeight,Ji=vt.virtual,Fr=vt.focusable,vr=vt.activeItem,so=vt.focused,Yr=vt.tabIndex,Jr=vt.onKeyDown,Lr=vt.onFocus,Zr=vt.onBlur,oo=vt.onActiveChange,Uo=vt.onListChangeStart,fs=vt.onListChangeEnd,eo=(0,xt.Z)(vt,Ne),Os=tt.useRef(null),yo=tt.useRef(null);tt.useImperativeHandle(ft,function(){return{scrollTo:function(ui){Os.current.scrollTo(ui)},getIndentWidth:function(){return yo.current.offsetWidth}}});var Xt=tt.useState(ae),ti=(0,dt.Z)(Xt,2),gs=ti[0],ia=ti[1],Zs=tt.useState(At),la=(0,dt.Z)(Zs,2),Xs=la[0],Rr=la[1],_r=tt.useState(At),Dn=(0,dt.Z)(_r,2),Nn=Dn[0],je=Dn[1],ei=tt.useState([]),xi=(0,dt.Z)(ei,2),dn=xi[0],Fe=xi[1],wn=tt.useState(null),Hn=(0,dt.Z)(wn,2),Si=Hn[0],Di=Hn[1],tn=tt.useRef(At);tn.current=At;function oi(){var kn=tn.current;Rr(kn),je(kn),Fe([]),Di(null),fs()}(0,Nt.Z)(function(){ia(ae);var kn=Ge(gs,ae);if(kn.key!==null)if(kn.add){var ui=Xs.findIndex(function(nr){var Cr=nr.key;return Cr===kn.key}),Sr=Ln(_e(Xs,At,kn.key),Ji,ji,er),cr=Xs.slice();cr.splice(ui+1,0,bn),je(cr),Fe(Sr),Di("show")}else{var zr=At.findIndex(function(nr){var Cr=nr.key;return Cr===kn.key}),dr=Ln(_e(At,Xs,kn.key),Ji,ji,er),Mr=At.slice();Mr.splice(zr+1,0,bn),je(Mr),Fe(dr),Di("hide")}else Xs!==At&&(Rr(At),je(At))},[ae,At]),tt.useEffect(function(){un||oi()},[un]);var Li=On?Nn:At,tr={expandedKeys:ae,selectedKeys:ye,loadedKeys:De,loadingKeys:Me,checkedKeys:Te,halfCheckedKeys:sn,dragOverNodeKey:Bn,dropPosition:ai,keyEntities:Gn};return tt.createElement(tt.Fragment,null,so&&vr&&tt.createElement("span",{style:We,"aria-live":"assertive"},Mn(vr)),tt.createElement("div",null,tt.createElement("input",{style:We,disabled:Fr===!1||an,tabIndex:Fr!==!1?Yr:null,onKeyDown:Jr,onFocus:Lr,onBlur:Zr,value:"",onChange:Re,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(gt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(gt,"-indent")},tt.createElement("div",{ref:yo,className:"".concat(gt,"-indent-unit")}))),tt.createElement(Ut.Z,(0,Lt.Z)({},eo,{data:Li,itemKey:Ze,height:ji,fullHeight:!1,virtual:Ji,itemHeight:er,prefixCls:"".concat(gt,"-list"),ref:Os,onVisibleChange:function(ui,Sr){var cr=new Set(ui),zr=Sr.filter(function(dr){return!cr.has(dr)});zr.some(function(dr){return Ze(dr)===ve})&&oi()}}),function(kn){var ui=kn.pos,Sr=(0,Lt.Z)({},(ht(kn.data),kn.data)),cr=kn.title,zr=kn.key,dr=kn.isStart,Mr=kn.isEnd,nr=(0,Ae.km)(zr,ui);delete Sr.key,delete Sr.children;var Cr=(0,Ae.H8)(nr,tr);return tt.createElement(Wt,(0,Lt.Z)({},Sr,Cr,{title:cr,active:!!vr&&zr===vr.key,pos:ui,data:kn.data,isStart:dr,isEnd:Mr,motion:On,motionNodes:zr===ve?dn:null,motionType:Si,onMotionStart:Uo,onMotionEnd:oi,treeNodeRequiredProps:tr,onMouseMove:function(){oo(null)}}))}))});Vn.displayName="NodeList";var fi=Vn,Kn=Ft(35654),Bi=Ft(90782),en=Ft(67841),Fi=10,Oi=function(vt){(0,te.Z)(gt,vt);var ft=(0,Pt.Z)(gt);function gt(){var At;(0,Vt.Z)(this,gt);for(var ue=arguments.length,xe=new Array(ue),ae=0;ae<ue;ae++)xe[ae]=arguments[ae];return At=ft.call.apply(ft,[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,Ae.w$)()},At.dragStartMousePosition=null,At.dragNode=void 0,At.currentMouseOverDroppableNodeKey=null,At.listRef=tt.createRef(),At.onNodeDragStart=function(ye,Te){var De=At.state,Me=De.expandedKeys,sn=De.keyEntities,Gn=At.props.onDragStart,an=Te.props.eventKey;At.dragNode=Te,At.dragStartMousePosition={x:ye.clientX,y:ye.clientY};var un=(0,Kn._5)(Me,an);At.setState({draggingNodeKey:an,dragChildrenKeys:(0,Kn.wA)(an,sn),indent:At.listRef.current.getIndentWidth()}),At.setExpandedKeys(un),window.addEventListener("dragend",At.onWindowDragEnd),Gn==null||Gn({event:ye,node:(0,Ae.F)(Te.props)})},At.onNodeDragEnter=function(ye,Te){var De=At.state,Me=De.expandedKeys,sn=De.keyEntities,Gn=De.dragChildrenKeys,an=De.flattenNodes,un=De.indent,Bn=At.props,ai=Bn.onDragEnter,On=Bn.onExpand,ji=Bn.allowDrop,er=Bn.direction,Ji=Te.props,Fr=Ji.pos,vr=Ji.eventKey,so=(0,jt.Z)(At),Yr=so.dragNode;if(At.currentMouseOverDroppableNodeKey!==vr&&(At.currentMouseOverDroppableNodeKey=vr),!Yr){At.resetDragState();return}var Jr=(0,Kn.OM)(ye,Yr,Te,un,At.dragStartMousePosition,ji,an,sn,Me,er),Lr=Jr.dropPosition,Zr=Jr.dropLevelOffset,oo=Jr.dropTargetKey,Uo=Jr.dropContainerKey,fs=Jr.dropTargetPos,eo=Jr.dropAllowed,Os=Jr.dragOverNodeKey;if(Gn.indexOf(oo)!==-1||!eo){At.resetDragState();return}if(At.delayedDragEnterLogic||(At.delayedDragEnterLogic={}),Object.keys(At.delayedDragEnterLogic).forEach(function(yo){clearTimeout(At.delayedDragEnterLogic[yo])}),Yr.props.eventKey!==Te.props.eventKey&&(ye.persist(),At.delayedDragEnterLogic[Fr]=window.setTimeout(function(){if(At.state.draggingNodeKey!==null){var yo=(0,ee.Z)(Me),Xt=(0,en.Z)(sn,Te.props.eventKey);Xt&&(Xt.children||[]).length&&(yo=(0,Kn.L0)(Me,Te.props.eventKey)),"expandedKeys"in At.props||At.setExpandedKeys(yo),On==null||On(yo,{node:(0,Ae.F)(Te.props),expanded:!0,nativeEvent:ye.nativeEvent})}},800)),Yr.props.eventKey===oo&&Zr===0){At.resetDragState();return}At.setState({dragOverNodeKey:Os,dropPosition:Lr,dropLevelOffset:Zr,dropTargetKey:oo,dropContainerKey:Uo,dropTargetPos:fs,dropAllowed:eo}),ai==null||ai({event:ye,node:(0,Ae.F)(Te.props),expandedKeys:Me})},At.onNodeDragOver=function(ye,Te){var De=At.state,Me=De.dragChildrenKeys,sn=De.flattenNodes,Gn=De.keyEntities,an=De.expandedKeys,un=De.indent,Bn=At.props,ai=Bn.onDragOver,On=Bn.allowDrop,ji=Bn.direction,er=(0,jt.Z)(At),Ji=er.dragNode;if(Ji){var Fr=(0,Kn.OM)(ye,Ji,Te,un,At.dragStartMousePosition,On,sn,Gn,an,ji),vr=Fr.dropPosition,so=Fr.dropLevelOffset,Yr=Fr.dropTargetKey,Jr=Fr.dropContainerKey,Lr=Fr.dropAllowed,Zr=Fr.dropTargetPos,oo=Fr.dragOverNodeKey;Me.indexOf(Yr)!==-1||!Lr||(Ji.props.eventKey===Yr&&so===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():vr===At.state.dropPosition&&so===At.state.dropLevelOffset&&Yr===At.state.dropTargetKey&&Jr===At.state.dropContainerKey&&Zr===At.state.dropTargetPos&&Lr===At.state.dropAllowed&&oo===At.state.dragOverNodeKey||At.setState({dropPosition:vr,dropLevelOffset:so,dropTargetKey:Yr,dropContainerKey:Jr,dropTargetPos:Zr,dropAllowed:Lr,dragOverNodeKey:oo}),ai==null||ai({event:ye,node:(0,Ae.F)(Te.props)}))}},At.onNodeDragLeave=function(ye,Te){At.currentMouseOverDroppableNodeKey===Te.props.eventKey&&!ye.currentTarget.contains(ye.relatedTarget)&&(At.resetDragState(),At.currentMouseOverDroppableNodeKey=null);var De=At.props.onDragLeave;De==null||De({event:ye,node:(0,Ae.F)(Te.props)})},At.onWindowDragEnd=function(ye){At.onNodeDragEnd(ye,null,!0),window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDragEnd=function(ye,Te){var De=At.props.onDragEnd;At.setState({dragOverNodeKey:null}),At.cleanDragState(),De==null||De({event:ye,node:(0,Ae.F)(Te.props)}),At.dragNode=null,window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDrop=function(ye,Te){var De,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,sn=At.state,Gn=sn.dragChildrenKeys,an=sn.dropPosition,un=sn.dropTargetKey,Bn=sn.dropTargetPos,ai=sn.dropAllowed;if(ai){var On=At.props.onDrop;if(At.setState({dragOverNodeKey:null}),At.cleanDragState(),un!==null){var ji=(0,ke.Z)((0,ke.Z)({},(0,Ae.H8)(un,At.getTreeNodeRequiredProps())),{},{active:((De=At.getActiveItem())===null||De===void 0?void 0:De.key)===un,data:(0,en.Z)(At.state.keyEntities,un).node}),er=Gn.indexOf(un)!==-1;(0,et.ZP)(!er,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ji=(0,Kn.yx)(Bn),Fr={event:ye,node:(0,Ae.F)(ji),dragNode:At.dragNode?(0,Ae.F)(At.dragNode.props):null,dragNodesKeys:[At.dragNode.props.eventKey].concat(Gn),dropToGap:an!==0,dropPosition:an+Number(Ji[Ji.length-1])};Me||On==null||On(Fr),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,Te){var De=At.state,Me=De.expandedKeys,sn=De.flattenNodes,Gn=Te.expanded,an=Te.key,un=Te.isLeaf;if(!(un||ye.shiftKey||ye.metaKey||ye.ctrlKey)){var Bn=sn.filter(function(On){return On.key===an})[0],ai=(0,Ae.F)((0,ke.Z)((0,ke.Z)({},(0,Ae.H8)(an,At.getTreeNodeRequiredProps())),{},{data:Bn.data}));At.setExpandedKeys(Gn?(0,Kn._5)(Me,an):(0,Kn.L0)(Me,an)),At.onNodeExpand(ye,ai)}},At.onNodeClick=function(ye,Te){var De=At.props,Me=De.onClick,sn=De.expandAction;sn==="click"&&At.triggerExpandActionExpand(ye,Te),Me==null||Me(ye,Te)},At.onNodeDoubleClick=function(ye,Te){var De=At.props,Me=De.onDoubleClick,sn=De.expandAction;sn==="doubleClick"&&At.triggerExpandActionExpand(ye,Te),Me==null||Me(ye,Te)},At.onNodeSelect=function(ye,Te){var De=At.state.selectedKeys,Me=At.state,sn=Me.keyEntities,Gn=Me.fieldNames,an=At.props,un=an.onSelect,Bn=an.multiple,ai=Te.selected,On=Te[Gn.key],ji=!ai;ji?Bn?De=(0,Kn.L0)(De,On):De=[On]:De=(0,Kn._5)(De,On);var er=De.map(function(Ji){var Fr=(0,en.Z)(sn,Ji);return Fr?Fr.node:null}).filter(function(Ji){return Ji});At.setUncontrolledState({selectedKeys:De}),un==null||un(De,{event:"select",selected:ji,node:Te,selectedNodes:er,nativeEvent:ye.nativeEvent})},At.onNodeCheck=function(ye,Te,De){var Me=At.state,sn=Me.keyEntities,Gn=Me.checkedKeys,an=Me.halfCheckedKeys,un=At.props,Bn=un.checkStrictly,ai=un.onCheck,On=Te.key,ji,er={event:"check",node:Te,checked:De,nativeEvent:ye.nativeEvent};if(Bn){var Ji=De?(0,Kn.L0)(Gn,On):(0,Kn._5)(Gn,On),Fr=(0,Kn._5)(an,On);ji={checked:Ji,halfChecked:Fr},er.checkedNodes=Ji.map(function(Zr){return(0,en.Z)(sn,Zr)}).filter(function(Zr){return Zr}).map(function(Zr){return Zr.node}),At.setUncontrolledState({checkedKeys:Ji})}else{var vr=(0,Bi.S)([].concat((0,ee.Z)(Gn),[On]),!0,sn),so=vr.checkedKeys,Yr=vr.halfCheckedKeys;if(!De){var Jr=new Set(so);Jr.delete(On);var Lr=(0,Bi.S)(Array.from(Jr),{checked:!1,halfCheckedKeys:Yr},sn);so=Lr.checkedKeys,Yr=Lr.halfCheckedKeys}ji=so,er.checkedNodes=[],er.checkedNodesPositions=[],er.halfCheckedKeys=Yr,so.forEach(function(Zr){var oo=(0,en.Z)(sn,Zr);if(oo){var Uo=oo.node,fs=oo.pos;er.checkedNodes.push(Uo),er.checkedNodesPositions.push({node:Uo,pos:fs})}}),At.setUncontrolledState({checkedKeys:so},!1,{halfCheckedKeys:Yr})}ai==null||ai(ji,er)},At.onNodeLoad=function(ye){var Te=ye.key,De=new Promise(function(Me,sn){At.setState(function(Gn){var an=Gn.loadedKeys,un=an===void 0?[]:an,Bn=Gn.loadingKeys,ai=Bn===void 0?[]:Bn,On=At.props,ji=On.loadData,er=On.onLoad;if(!ji||un.indexOf(Te)!==-1||ai.indexOf(Te)!==-1)return null;var Ji=ji(ye);return Ji.then(function(){var Fr=At.state.loadedKeys,vr=(0,Kn.L0)(Fr,Te);er==null||er(vr,{event:"load",node:ye}),At.setUncontrolledState({loadedKeys:vr}),At.setState(function(so){return{loadingKeys:(0,Kn._5)(so.loadingKeys,Te)}}),Me()}).catch(function(Fr){if(At.setState(function(so){return{loadingKeys:(0,Kn._5)(so.loadingKeys,Te)}}),At.loadingRetryTimes[Te]=(At.loadingRetryTimes[Te]||0)+1,At.loadingRetryTimes[Te]>=Fi){var vr=At.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),At.setUncontrolledState({loadedKeys:(0,Kn.L0)(vr,Te)}),Me()}sn(Fr)}),{loadingKeys:(0,Kn.L0)(ai,Te)}})});return De.catch(function(){}),De},At.onNodeMouseEnter=function(ye,Te){var De=At.props.onMouseEnter;De==null||De({event:ye,node:Te})},At.onNodeMouseLeave=function(ye,Te){var De=At.props.onMouseLeave;De==null||De({event:ye,node:Te})},At.onNodeContextMenu=function(ye,Te){var De=At.props.onRightClick;De&&(ye.preventDefault(),De({event:ye,node:Te}))},At.onFocus=function(){var ye=At.props.onFocus;At.setState({focused:!0});for(var Te=arguments.length,De=new Array(Te),Me=0;Me<Te;Me++)De[Me]=arguments[Me];ye==null||ye.apply(void 0,De)},At.onBlur=function(){var ye=At.props.onBlur;At.setState({focused:!1}),At.onActiveChange(null);for(var Te=arguments.length,De=new Array(Te),Me=0;Me<Te;Me++)De[Me]=arguments[Me];ye==null||ye.apply(void 0,De)},At.getTreeNodeRequiredProps=function(){var ye=At.state,Te=ye.expandedKeys,De=ye.selectedKeys,Me=ye.loadedKeys,sn=ye.loadingKeys,Gn=ye.checkedKeys,an=ye.halfCheckedKeys,un=ye.dragOverNodeKey,Bn=ye.dropPosition,ai=ye.keyEntities;return{expandedKeys:Te||[],selectedKeys:De||[],loadedKeys:Me||[],loadingKeys:sn||[],checkedKeys:Gn||[],halfCheckedKeys:an||[],dragOverNodeKey:un,dropPosition:Bn,keyEntities:ai}},At.setExpandedKeys=function(ye){var Te=At.state,De=Te.treeData,Me=Te.fieldNames,sn=(0,Ae.oH)(De,ye,Me);At.setUncontrolledState({expandedKeys:ye,flattenNodes:sn},!0)},At.onNodeExpand=function(ye,Te){var De=At.state.expandedKeys,Me=At.state,sn=Me.listChanging,Gn=Me.fieldNames,an=At.props,un=an.onExpand,Bn=an.loadData,ai=Te.expanded,On=Te[Gn.key];if(!sn){var ji=De.indexOf(On),er=!ai;if((0,et.ZP)(ai&&ji!==-1||!ai&&ji===-1,"Expand state not sync with index check"),er?De=(0,Kn.L0)(De,On):De=(0,Kn._5)(De,On),At.setExpandedKeys(De),un==null||un(De,{node:Te,expanded:er,nativeEvent:ye.nativeEvent}),er&&Bn){var Ji=At.onNodeLoad(Te);Ji&&Ji.then(function(){var Fr=(0,Ae.oH)(At.state.treeData,De,Gn);At.setUncontrolledState({flattenNodes:Fr})}).catch(function(){var Fr=At.state.expandedKeys,vr=(0,Kn._5)(Fr,On);At.setExpandedKeys(vr)})}}},At.onListChangeStart=function(){At.setUncontrolledState({listChanging:!0})},At.onListChangeEnd=function(){setTimeout(function(){At.setUncontrolledState({listChanging:!1})})},At.onActiveChange=function(ye){var Te=At.state.activeKey,De=At.props.onActiveChange;Te!==ye&&(At.setState({activeKey:ye}),ye!==null&&At.scrollTo({key:ye}),De==null||De(ye))},At.getActiveItem=function(){var ye=At.state,Te=ye.activeKey,De=ye.flattenNodes;return Te===null?null:De.find(function(Me){var sn=Me.key;return sn===Te})||null},At.offsetActiveKey=function(ye){var Te=At.state,De=Te.flattenNodes,Me=Te.activeKey,sn=De.findIndex(function(un){var Bn=un.key;return Bn===Me});sn===-1&&ye<0&&(sn=De.length),sn=(sn+ye+De.length)%De.length;var Gn=De[sn];if(Gn){var an=Gn.key;At.onActiveChange(an)}else At.onActiveChange(null)},At.onKeyDown=function(ye){var Te=At.state,De=Te.activeKey,Me=Te.expandedKeys,sn=Te.checkedKeys,Gn=Te.fieldNames,an=At.props,un=an.onKeyDown,Bn=an.checkable,ai=an.selectable;switch(ye.which){case $t.Z.UP:{At.offsetActiveKey(-1),ye.preventDefault();break}case $t.Z.DOWN:{At.offsetActiveKey(1),ye.preventDefault();break}}var On=At.getActiveItem();if(On&&On.data){var ji=At.getTreeNodeRequiredProps(),er=On.data.isLeaf===!1||!!(On.data[Gn.children]||[]).length,Ji=(0,Ae.F)((0,ke.Z)((0,ke.Z)({},(0,Ae.H8)(De,ji)),{},{data:On.data,active:!0}));switch(ye.which){case $t.Z.LEFT:{er&&Me.includes(De)?At.onNodeExpand({},Ji):On.parent&&At.onActiveChange(On.parent.key),ye.preventDefault();break}case $t.Z.RIGHT:{er&&!Me.includes(De)?At.onNodeExpand({},Ji):On.children&&On.children.length&&At.onActiveChange(On.children[0].key),ye.preventDefault();break}case $t.Z.ENTER:case $t.Z.SPACE:{Bn&&!Ji.disabled&&Ji.checkable!==!1&&!Ji.disableCheckbox?At.onNodeCheck({},Ji,!sn.includes(De)):!Bn&&ai&&!Ji.disabled&&Ji.selectable!==!1&&At.onNodeSelect({},Ji);break}}}un==null||un(ye)},At.setUncontrolledState=function(ye){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!At.destroyed){var Me=!1,sn=!0,Gn={};Object.keys(ye).forEach(function(an){if(an in At.props){sn=!1;return}Me=!0,Gn[an]=ye[an]}),Me&&(!Te||sn)&&At.setState((0,ke.Z)((0,ke.Z)({},Gn),De))}},At.scrollTo=function(ye){At.listRef.current.scrollTo(ye)},At}return(0,Mt.Z)(gt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ue=this.props.activeKey;ue!==void 0&&ue!==this.state.activeKey&&(this.setState({activeKey:ue}),ue!==null&&this.scrollTo({key:ue}))}},{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 ue,xe=this.state,ae=xe.focused,ye=xe.flattenNodes,Te=xe.keyEntities,De=xe.draggingNodeKey,Me=xe.activeKey,sn=xe.dropLevelOffset,Gn=xe.dropContainerKey,an=xe.dropTargetKey,un=xe.dropPosition,Bn=xe.dragOverNodeKey,ai=xe.indent,On=this.props,ji=On.prefixCls,er=On.className,Ji=On.style,Fr=On.showLine,vr=On.focusable,so=On.tabIndex,Yr=so===void 0?0:so,Jr=On.selectable,Lr=On.showIcon,Zr=On.icon,oo=On.switcherIcon,Uo=On.draggable,fs=On.checkable,eo=On.checkStrictly,Os=On.disabled,yo=On.motion,Xt=On.loadData,ti=On.filterTreeNode,gs=On.height,ia=On.itemHeight,Zs=On.virtual,la=On.titleRender,Xs=On.dropIndicatorRender,Rr=On.onContextMenu,_r=On.onScroll,Dn=On.direction,Nn=On.rootClassName,je=On.rootStyle,ei=(0,Ct.Z)(this.props,{aria:!0,data:!0}),xi;return Uo&&((0,re.Z)(Uo)==="object"?xi=Uo:typeof Uo=="function"?xi={nodeDraggable:Uo}:xi={}),tt.createElement(lt.k.Provider,{value:{prefixCls:ji,selectable:Jr,showIcon:Lr,icon:Zr,switcherIcon:oo,draggable:xi,draggingNodeKey:De,checkable:fs,checkStrictly:eo,disabled:Os,keyEntities:Te,dropLevelOffset:sn,dropContainerKey:Gn,dropTargetKey:an,dropPosition:un,dragOverNodeKey:Bn,indent:ai,direction:Dn,dropIndicatorRender:Xs,loadData:Xt,filterTreeNode:ti,titleRender:la,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:Kt()(ji,er,Nn,(ue={},(0,ce.Z)(ue,"".concat(ji,"-show-line"),Fr),(0,ce.Z)(ue,"".concat(ji,"-focused"),ae),(0,ce.Z)(ue,"".concat(ji,"-active-focused"),Me!==null),ue)),style:je},tt.createElement(fi,(0,Lt.Z)({ref:this.listRef,prefixCls:ji,style:Ji,data:ye,disabled:Os,selectable:Jr,checkable:!!fs,motion:yo,dragging:De!==null,height:gs,itemHeight:ia,virtual:Zs,focusable:vr,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:Rr,onScroll:_r},this.getTreeNodeRequiredProps(),ei))))}}],[{key:"getDerivedStateFromProps",value:function(ue,xe){var ae=xe.prevProps,ye={prevProps:ue};function Te(vr){return!ae&&vr in ue||ae&&ae[vr]!==ue[vr]}var De,Me=xe.fieldNames;if(Te("fieldNames")&&(Me=(0,Ae.w$)(ue.fieldNames),ye.fieldNames=Me),Te("treeData")?De=ue.treeData:Te("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),De=(0,Ae.zn)(ue.children)),De){ye.treeData=De;var sn=(0,Ae.I8)(De,{fieldNames:Me});ye.keyEntities=(0,ke.Z)((0,ce.Z)({},ve,Ce),sn.keyEntities)}var Gn=ye.keyEntities||xe.keyEntities;if(Te("expandedKeys")||ae&&Te("autoExpandParent"))ye.expandedKeys=ue.autoExpandParent||!ae&&ue.defaultExpandParent?(0,Kn.r7)(ue.expandedKeys,Gn):ue.expandedKeys;else if(!ae&&ue.defaultExpandAll){var an=(0,ke.Z)({},Gn);delete an[ve],ye.expandedKeys=Object.keys(an).map(function(vr){return an[vr].key})}else!ae&&ue.defaultExpandedKeys&&(ye.expandedKeys=ue.autoExpandParent||ue.defaultExpandParent?(0,Kn.r7)(ue.defaultExpandedKeys,Gn):ue.defaultExpandedKeys);if(ye.expandedKeys||delete ye.expandedKeys,De||ye.expandedKeys){var un=(0,Ae.oH)(De||xe.treeData,ye.expandedKeys||xe.expandedKeys,Me);ye.flattenNodes=un}if(ue.selectable&&(Te("selectedKeys")?ye.selectedKeys=(0,Kn.BT)(ue.selectedKeys,ue):!ae&&ue.defaultSelectedKeys&&(ye.selectedKeys=(0,Kn.BT)(ue.defaultSelectedKeys,ue))),ue.checkable){var Bn;if(Te("checkedKeys")?Bn=(0,Kn.E6)(ue.checkedKeys)||{}:!ae&&ue.defaultCheckedKeys?Bn=(0,Kn.E6)(ue.defaultCheckedKeys)||{}:De&&(Bn=(0,Kn.E6)(ue.checkedKeys)||{checkedKeys:xe.checkedKeys,halfCheckedKeys:xe.halfCheckedKeys}),Bn){var ai=Bn,On=ai.checkedKeys,ji=On===void 0?[]:On,er=ai.halfCheckedKeys,Ji=er===void 0?[]:er;if(!ue.checkStrictly){var Fr=(0,Bi.S)(ji,!0,Gn);ji=Fr.checkedKeys,Ji=Fr.halfCheckedKeys}ye.checkedKeys=ji,ye.halfCheckedKeys=Ji}}return Te("loadedKeys")&&(ye.loadedKeys=ue.loadedKeys),ye}}]),gt}(tt.Component);Oi.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},Oi.TreeNode=se.Z;var Ot=Oi,Tt=Ot},35654:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{BT:function(){return tt},E6:function(){return ht},L0:function(){return Pt},OM:function(){return et},_5:function(){return te},r7:function(){return dt},wA:function(){return Kt},yx:function(){return oe}});var Lt=Ft(26407),ce=Ft(39559),re=Ft(48736),ke=Ft(59301),ee=Ft(39417),Vt=Ft(67841),Mt=Ft(71430),jt=null;function te(xt,Nt){if(!xt)return[];var Ut=xt.slice(),Gt=Ut.indexOf(Nt);return Gt>=0&&Ut.splice(Gt,1),Ut}function Pt(xt,Nt){var Ut=(xt||[]).slice();return Ut.indexOf(Nt)===-1&&Ut.push(Nt),Ut}function oe(xt){return xt.split("-")}function Kt(xt,Nt){var Ut=[],Gt=(0,Vt.Z)(Nt,xt);function se(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];le.forEach(function(Ae){var Pe=Ae.key,qt=Ae.children;Ut.push(Pe),se(qt)})}return se(Gt.children),Ut}function $t(xt){if(xt.parent){var Nt=oe(xt.pos);return Number(Nt[Nt.length-1])===xt.parent.children.length-1}return!1}function Ct(xt){var Nt=oe(xt.pos);return Number(Nt[Nt.length-1])===0}function et(xt,Nt,Ut,Gt,se,le,Ae,Pe,qt,ze){var Wt,Ge=xt.clientX,_e=xt.clientY,Ne=xt.target.getBoundingClientRect(),We=Ne.top,Re=Ne.height,ve=(ze==="rtl"?-1:1)*(((se==null?void 0:se.x)||0)-Ge),ne=(ve-12)/Gt,Ce=(0,Vt.Z)(Pe,Ut.props.eventKey);if(_e<We+Re/2){var bn=Ae.findIndex(function(Tt){return Tt.key===Ce.key}),Ln=bn<=0?0:bn-1,Ze=Ae[Ln].key;Ce=(0,Vt.Z)(Pe,Ze)}var Mn=Ce.key,Vn=Ce,fi=Ce.key,Kn=0,Bi=0;if(!qt.includes(Mn))for(var en=0;en<ne&&$t(Ce);en+=1)Ce=Ce.parent,Bi+=1;var Fi=Nt.props.data,Oi=Ce.node,Ot=!0;return Ct(Ce)&&Ce.level===0&&_e<We+Re/2&&le({dragNode:Fi,dropNode:Oi,dropPosition:-1})&&Ce.key===Ut.props.eventKey?Kn=-1:(Vn.children||[]).length&&qt.includes(fi)?le({dragNode:Fi,dropNode:Oi,dropPosition:0})?Kn=0:Ot=!1:Bi===0?ne>-1.5?le({dragNode:Fi,dropNode:Oi,dropPosition:1})?Kn=1:Ot=!1:le({dragNode:Fi,dropNode:Oi,dropPosition:0})?Kn=0:le({dragNode:Fi,dropNode:Oi,dropPosition:1})?Kn=1:Ot=!1:le({dragNode:Fi,dropNode:Oi,dropPosition:1})?Kn=1:Ot=!1,{dropPosition:Kn,dropLevelOffset:Bi,dropTargetKey:Ce.key,dropTargetPos:Ce.pos,dragOverNodeKey:fi,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||{},Gt=Ut.processProps,se=Gt===void 0?lt:Gt,le=Array.isArray(xt)?xt:[xt];return le.map(function(Ae){var Pe=Ae.children,qt=_objectWithoutProperties(Ae,jt),ze=rt(Pe,Nt);return React.createElement(TreeNode,_extends({key:qt.key},se(qt)),ze)})}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 Gt(se){if(!Ut.has(se)){var le=(0,Vt.Z)(Nt,se);if(le){Ut.add(se);var Ae=le.parent,Pe=le.node;Pe.disabled||Ae&&Gt(Ae.key)}}}return(xt||[]).forEach(function(se){Gt(se)}),(0,Lt.Z)(Ut)}},90782:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{S:function(){return Mt}});var Lt=Ft(48736),ce=Ft(67841);function re(jt,te){var Pt=new Set;return jt.forEach(function(oe){te.has(oe)||Pt.add(oe)}),Pt}function ke(jt){var te=jt||{},Pt=te.disabled,oe=te.disableCheckbox,Kt=te.checkable;return!!(Pt||oe)||Kt===!1}function ee(jt,te,Pt,oe){for(var Kt=new Set(jt),$t=new Set,Ct=0;Ct<=Pt;Ct+=1){var et=te.get(Ct)||new Set;et.forEach(function(ht){var dt=ht.key,xt=ht.node,Nt=ht.children,Ut=Nt===void 0?[]:Nt;Kt.has(dt)&&!oe(xt)&&Ut.filter(function(Gt){return!oe(Gt.node)}).forEach(function(Gt){Kt.add(Gt.key)})})}for(var tt=new Set,lt=Pt;lt>=0;lt-=1){var rt=te.get(lt)||new Set;rt.forEach(function(ht){var dt=ht.parent,xt=ht.node;if(!(oe(xt)||!ht.parent||tt.has(ht.parent.key))){if(oe(ht.parent.node)){tt.add(dt.key);return}var Nt=!0,Ut=!1;(dt.children||[]).filter(function(Gt){return!oe(Gt.node)}).forEach(function(Gt){var se=Gt.key,le=Kt.has(se);Nt&&!le&&(Nt=!1),!Ut&&(le||$t.has(se))&&(Ut=!0)}),Nt&&Kt.add(dt.key),Ut&&$t.add(dt.key),tt.add(dt.key)}})}return{checkedKeys:Array.from(Kt),halfCheckedKeys:Array.from(re($t,Kt))}}function Vt(jt,te,Pt,oe,Kt){for(var $t=new Set(jt),Ct=new Set(te),et=0;et<=oe;et+=1){var tt=Pt.get(et)||new Set;tt.forEach(function(dt){var xt=dt.key,Nt=dt.node,Ut=dt.children,Gt=Ut===void 0?[]:Ut;!$t.has(xt)&&!Ct.has(xt)&&!Kt(Nt)&&Gt.filter(function(se){return!Kt(se.node)}).forEach(function(se){$t.delete(se.key)})})}Ct=new Set;for(var lt=new Set,rt=oe;rt>=0;rt-=1){var ht=Pt.get(rt)||new Set;ht.forEach(function(dt){var xt=dt.parent,Nt=dt.node;if(!(Kt(Nt)||!dt.parent||lt.has(dt.parent.key))){if(Kt(dt.parent.node)){lt.add(xt.key);return}var Ut=!0,Gt=!1;(xt.children||[]).filter(function(se){return!Kt(se.node)}).forEach(function(se){var le=se.key,Ae=$t.has(le);Ut&&!Ae&&(Ut=!1),!Gt&&(Ae||Ct.has(le))&&(Gt=!0)}),Ut||$t.delete(xt.key),Gt&&Ct.add(xt.key),lt.add(xt.key)}})}return{checkedKeys:Array.from($t),halfCheckedKeys:Array.from(re(Ct,$t))}}function Mt(jt,te,Pt,oe){var Kt=[],$t;oe?$t=oe:$t=ke;var Ct=new Set(jt.filter(function(rt){var ht=!!(0,ce.Z)(Pt,rt);return ht||Kt.push(rt),ht})),et=new Map,tt=0;Object.keys(Pt).forEach(function(rt){var ht=Pt[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)(!Kt.length,"Tree missing follow keys: ".concat(Kt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return te===!0?lt=ee(Ct,et,tt,$t):lt=Vt(Ct,te.halfCheckedKeys,et,tt,$t),lt}},67841:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Lt}});function Lt(ce,re){return ce[re]}},71430:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{F:function(){return dt},H8:function(){return ht},I8:function(){return rt},km:function(){return Kt},oH:function(){return tt},w$:function(){return $t},zn:function(){return et}});var Lt=Ft(39559),ce=Ft(26407),re=Ft(33708),ke=Ft(37061),ee=Ft(11592),Vt=Ft(2738),Mt=Ft(48736),jt=Ft(67841),te=["children"];function Pt(xt,Nt){return"".concat(xt,"-").concat(Nt)}function oe(xt){return xt&&xt.type&&xt.type.isTreeNode}function Kt(xt,Nt){return xt!=null?xt:Nt}function $t(xt){var Nt=xt||{},Ut=Nt.title,Gt=Nt._title,se=Nt.key,le=Nt.children,Ae=Ut||"title";return{title:Ae,_title:Gt||[Ae],key:se||"key",children:le||"children"}}function Ct(xt,Nt){var Ut=new Map;function Gt(se){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(se||[]).forEach(function(Ae){var Pe=Ae[Nt.key],qt=Ae[Nt.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(le).concat(Pe,"]"));var ze=String(Pe);warning(!Ut.has(ze)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(ze)),Ut.set(ze,!0),Gt(qt,"".concat(le).concat(ze," > "))})}Gt(xt)}function et(xt){function Nt(Ut){var Gt=(0,ee.Z)(Ut);return Gt.map(function(se){if(!oe(se))return(0,Mt.ZP)(!se,"Tree/TreeNode can only accept TreeNode as children."),null;var le=se.key,Ae=se.props,Pe=Ae.children,qt=(0,ke.Z)(Ae,te),ze=(0,re.Z)({key:le},qt),Wt=Nt(Pe);return Wt.length&&(ze.children=Wt),ze}).filter(function(se){return se})}return Nt(xt)}function tt(xt,Nt,Ut){var Gt=$t(Ut),se=Gt._title,le=Gt.key,Ae=Gt.children,Pe=new Set(Nt===!0?[]:Nt),qt=[];function ze(Wt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Wt.map(function(_e,Ne){for(var We=Pt(Ge?Ge.pos:"0",Ne),Re=Kt(_e[le],We),ve,ne=0;ne<se.length;ne+=1){var Ce=se[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)(se),[le,Ae]))),{},{title:ve,key:Re,parent:Ge,pos:We,children:null,data:_e,isStart:[].concat((0,ce.Z)(Ge?Ge.isStart:[]),[Ne===0]),isEnd:[].concat((0,ce.Z)(Ge?Ge.isEnd:[]),[Ne===Wt.length-1])});return qt.push(bn),Nt===!0||Pe.has(Re)?bn.children=ze(_e[Ae]||[],bn):bn.children=[],bn})}return ze(xt),qt}function lt(xt,Nt,Ut){var Gt={};(0,Lt.Z)(Ut)==="object"?Gt=Ut:Gt={externalGetKey:Ut},Gt=Gt||{};var se=Gt,le=se.childrenPropName,Ae=se.externalGetKey,Pe=se.fieldNames,qt=$t(Pe),ze=qt.key,Wt=qt.children,Ge=le||Wt,_e;Ae?typeof Ae=="string"?_e=function(Re){return Re[Ae]}:typeof Ae=="function"&&(_e=function(Re){return Ae(Re)}):_e=function(Re,ve){return Kt(Re[ze],ve)};function Ne(We,Re,ve,ne){var Ce=We?We[Ge]:xt,bn=We?Pt(ve.pos,Re):"0",Ln=We?[].concat((0,ce.Z)(ne),[We]):[];if(We){var Ze=_e(We,bn),Mn={node:We,index:Re,pos:bn,key:Ze,parentPos:ve.node?ve.pos:null,level:ve.level+1,nodes:Ln};Nt(Mn)}Ce&&Ce.forEach(function(Vn,fi){Ne(Vn,fi,{node:We,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,Gt=Nt.processEntity,se=Nt.onProcessFinished,le=Nt.externalGetKey,Ae=Nt.childrenPropName,Pe=Nt.fieldNames,qt=arguments.length>2?arguments[2]:void 0,ze=le||qt,Wt={},Ge={},_e={posEntities:Wt,keyEntities:Ge};return Ut&&(_e=Ut(_e)||_e),lt(xt,function(Ne){var We=Ne.node,Re=Ne.index,ve=Ne.pos,ne=Ne.key,Ce=Ne.parentPos,bn=Ne.level,Ln=Ne.nodes,Ze={node:We,nodes:Ln,index:Re,key:ne,pos:ve,level:bn},Mn=Kt(ne,ve);Wt[ve]=Ze,Ge[Mn]=Ze,Ze.parent=Wt[Ce],Ze.parent&&(Ze.parent.children=Ze.parent.children||[],Ze.parent.children.push(Ze)),Gt&&Gt(Ze,_e)},{externalGetKey:ze,childrenPropName:Ae,fieldNames:Pe}),se&&se(_e),_e}function ht(xt,Nt){var Ut=Nt.expandedKeys,Gt=Nt.selectedKeys,se=Nt.loadedKeys,le=Nt.loadingKeys,Ae=Nt.checkedKeys,Pe=Nt.halfCheckedKeys,qt=Nt.dragOverNodeKey,ze=Nt.dropPosition,Wt=Nt.keyEntities,Ge=(0,jt.Z)(Wt,xt),_e={eventKey:xt,expanded:Ut.indexOf(xt)!==-1,selected:Gt.indexOf(xt)!==-1,loaded:se.indexOf(xt)!==-1,loading:le.indexOf(xt)!==-1,checked:Ae.indexOf(xt)!==-1,halfChecked:Pe.indexOf(xt)!==-1,pos:String(Ge?Ge.pos:""),dragOver:qt===xt&&ze===0,dragOverGapTop:qt===xt&&ze===-1,dragOverGapBottom:qt===xt&&ze===1};return _e}function dt(xt){var Nt=xt.data,Ut=xt.expanded,Gt=xt.selected,se=xt.checked,le=xt.loaded,Ae=xt.loading,Pe=xt.halfChecked,qt=xt.dragOver,ze=xt.dragOverGapTop,Wt=xt.dragOverGapBottom,Ge=xt.pos,_e=xt.active,Ne=xt.eventKey,We=(0,re.Z)((0,re.Z)({},Nt),{},{expanded:Ut,selected:Gt,checked:se,loaded:le,loading:Ae,halfChecked:Pe,dragOver:qt,dragOverGapTop:ze,dragOverGapBottom:Wt,pos:Ge,active:_e,key:Ne});return"props"in We||Object.defineProperty(We,"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}}),We}},8224:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return ce}});var Lt=Ft(4676);function ce(re,ke,ee,Vt){var Mt=Lt.unstable_batchedUpdates?function(te){Lt.unstable_batchedUpdates(ee,te)}:ee;return re!=null&&re.addEventListener&&re.addEventListener(ke,Mt,Vt),{remove:function(){re!=null&&re.removeEventListener&&re.removeEventListener(ke,Mt,Vt)}}}},55468:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{g1:function(){return oe},os:function(){return $t}});var Lt=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function ke(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=ke(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 ke(Ct)}function jt(Ct){return Ct===document.body?document.documentElement.clientWidth:Ct.offsetWidth}function te(Ct){return Ct===document.body?window.innerHeight||document.documentElement.clientHeight:Ct.offsetHeight}function Pt(){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 oe(){var Ct=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Ct,height:et}}function Kt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function $t(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,Cn,Ft){"use strict";Ft.d(Cn,{G:function(){return ke}});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(te){return te in jt.style})}return!1},re=function(Vt,Mt){if(!ce(Vt))return!1;var jt=document.createElement("div"),te=jt.style[Vt];return jt.style[Vt]=Mt,jt.style[Vt]!==te};function ke(ee,Vt){return!Array.isArray(ee)&&Vt!==void 0?re(ee,Vt):ce(ee)}},4409:function(hi,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return Ot}});var Lt=Ft(92413),ce=Ft(39559),re=Ft(33708),ke=Ft(400),ee=Ft(33606),Vt=Ft(37061),Mt=Ft(92310),jt=Ft.n(Mt),te=Ft(29301),Pt=Ft(70425),oe=Ft(34280),Kt=Ft(59301),$t=Ft(4676),Ct=Kt.forwardRef(function(Tt,vt){var ft=Tt.height,gt=Tt.offsetY,At=Tt.offsetX,ue=Tt.children,xe=Tt.prefixCls,ae=Tt.onInnerResize,ye=Tt.innerProps,Te=Tt.rtl,De=Tt.extra,Me={},sn={display:"flex",flexDirection:"column"};return gt!==void 0&&(Me={height:ft,position:"relative",overflow:"hidden"},sn=(0,re.Z)((0,re.Z)({},sn),{},(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({transform:"translateY(".concat(gt,"px)")},Te?"marginRight":"marginLeft",-At),"position","absolute"),"left",0),"right",0),"top",0))),Kt.createElement("div",{style:Me},Kt.createElement(te.Z,{onResize:function(an){var un=an.offsetHeight;un&&ae&&ae()}},Kt.createElement("div",(0,Lt.Z)({style:sn,className:jt()((0,ke.Z)({},"".concat(xe,"-holder-inner"),xe)),ref:vt},ye),ue,De)))});Ct.displayName="Filler";var et=Ct;function tt(Tt){var vt=Tt.children,ft=Tt.setRef,gt=Kt.useCallback(function(At){ft(At)},[]);return Kt.cloneElement(vt,{ref:gt})}function lt(Tt,vt,ft,gt,At,ue,xe,ae){var ye=ae.getKey;return Tt.slice(vt,ft+1).map(function(Te,De){var Me=vt+De,sn=xe(Te,Me,{style:{width:gt},offsetX:At}),Gn=ye(Te);return Kt.createElement(tt,{key:Gn,setRef:function(un){return ue(Te,un)}},sn)})}function rt(Tt,vt,ft,gt){var At=ft-Tt,ue=vt-ft,xe=Math.min(At,ue)*2;if(gt<=xe){var ae=Math.floor(gt/2);return gt%2?ft+ae+1:ft-ae}return At>ue?ft-(gt-ue):ft+(gt-At)}function ht(Tt,vt,ft){var gt=Tt.length,At=vt.length,ue,xe;if(gt===0&&At===0)return null;gt<At?(ue=Tt,xe=vt):(ue=vt,xe=Tt);var ae={__EMPTY_ITEM__:!0};function ye(an){return an!==void 0?ft(an):ae}for(var Te=null,De=Math.abs(gt-At)!==1,Me=0;Me<xe.length;Me+=1){var sn=ye(ue[Me]),Gn=ye(xe[Me]);if(sn!==Gn){Te=Me,De=De||sn!==ye(xe[Me+1]);break}}return Te===null?null:{index:Te,multiple:De}}function dt(Tt,vt,ft){var gt=Kt.useState(Tt),At=(0,ee.Z)(gt,2),ue=At[0],xe=At[1],ae=Kt.useState(null),ye=(0,ee.Z)(ae,2),Te=ye[0],De=ye[1];return Kt.useEffect(function(){var Me=ht(ue||[],Tt||[],vt);(Me==null?void 0:Me.index)!==void 0&&(ft==null||ft(Me.index),De(Tt[Me.index])),xe(Tt)},[Tt]),[Te]}var xt=Ft(16089),Nt=(typeof navigator=="undefined"?"undefined":(0,ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ut=Nt,Gt=function(Tt,vt,ft,gt){var At=(0,Kt.useRef)(!1),ue=(0,Kt.useRef)(null);function xe(){clearTimeout(ue.current),At.current=!0,ue.current=setTimeout(function(){At.current=!1},50)}var ae=(0,Kt.useRef)({top:Tt,bottom:vt,left:ft,right:gt});return ae.current.top=Tt,ae.current.bottom=vt,ae.current.left=ft,ae.current.right=gt,function(ye,Te){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Me=ye?Te<0&&ae.current.left||Te>0&&ae.current.right:Te<0&&ae.current.top||Te>0&&ae.current.bottom;return De&&Me?(clearTimeout(ue.current),At.current=!1):(!Me||At.current)&&xe(),!At.current&&Me}};function se(Tt,vt,ft,gt,At,ue,xe){var ae=(0,Kt.useRef)(0),ye=(0,Kt.useRef)(null),Te=(0,Kt.useRef)(null),De=(0,Kt.useRef)(!1),Me=Gt(vt,ft,gt,At);function sn(On,ji){if(xt.Z.cancel(ye.current),!Me(!1,ji)){var er=On;if(!er._virtualHandled)er._virtualHandled=!0;else return;ae.current+=ji,Te.current=ji,Ut||er.preventDefault(),ye.current=(0,xt.Z)(function(){var Ji=De.current?10:1;xe(ae.current*Ji,!1),ae.current=0})}}function Gn(On,ji){xe(ji,!0),Ut||On.preventDefault()}var an=(0,Kt.useRef)(null),un=(0,Kt.useRef)(null);function Bn(On){if(Tt){xt.Z.cancel(un.current),un.current=(0,xt.Z)(function(){an.current=null},2);var ji=On.deltaX,er=On.deltaY,Ji=On.shiftKey,Fr=ji,vr=er;(an.current==="sx"||!an.current&&Ji&&er&&!ji)&&(Fr=er,vr=0,an.current="sx");var so=Math.abs(Fr),Yr=Math.abs(vr);an.current===null&&(an.current=ue&&so>Yr?"x":"y"),an.current==="y"?sn(On,vr):Gn(On,Fr)}}function ai(On){Tt&&(De.current=On.detail===Te.current)}return[Bn,ai]}function le(Tt,vt,ft,gt){var At=Kt.useMemo(function(){return[new Map,[]]},[Tt,ft.id,gt]),ue=(0,ee.Z)(At,2),xe=ue[0],ae=ue[1],ye=function(De){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De,sn=xe.get(De),Gn=xe.get(Me);if(sn===void 0||Gn===void 0)for(var an=Tt.length,un=ae.length;un<an;un+=1){var Bn,ai=Tt[un],On=vt(ai);xe.set(On,un);var ji=(Bn=ft.get(On))!==null&&Bn!==void 0?Bn:gt;if(ae[un]=(ae[un-1]||0)+ji,On===De&&(sn=un),On===Me&&(Gn=un),sn!==void 0&&Gn!==void 0)break}return{top:ae[sn-1]||0,bottom:ae[Gn]}};return ye}var Ae=Ft(76846),Pe=Ft(6909),qt=Ft(4771),ze=function(){function Tt(){(0,Pe.Z)(this,Tt),(0,ke.Z)(this,"maps",void 0),(0,ke.Z)(this,"id",0),(0,ke.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,qt.Z)(Tt,[{key:"set",value:function(ft,gt){this.maps[ft]=gt,this.id+=1,this.diffKeys.add(ft)}},{key:"get",value:function(ft){return this.maps[ft]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Tt}(),Wt=ze;function Ge(Tt){var vt=parseFloat(Tt);return isNaN(vt)?0:vt}function _e(Tt,vt,ft){var gt=Kt.useState(0),At=(0,ee.Z)(gt,2),ue=At[0],xe=At[1],ae=(0,Kt.useRef)(new Map),ye=(0,Kt.useRef)(new Wt),Te=(0,Kt.useRef)(0);function De(){Te.current+=1}function Me(){var Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;De();var an=function(){var ai=!1;ae.current.forEach(function(On,ji){if(On&&On.offsetParent){var er=(0,Ae.ZP)(On),Ji=er.offsetHeight,Fr=getComputedStyle(er),vr=Fr.marginTop,so=Fr.marginBottom,Yr=Ge(vr),Jr=Ge(so),Lr=Ji+Yr+Jr;ye.current.get(ji)!==Lr&&(ye.current.set(ji,Lr),ai=!0)}}),ai&&xe(function(On){return On+1})};if(Gn)an();else{Te.current+=1;var un=Te.current;Promise.resolve().then(function(){un===Te.current&&an()})}}function sn(Gn,an){var un=Tt(Gn),Bn=ae.current.get(un);an?(ae.current.set(un,an),Me()):ae.current.delete(un),!Bn!=!an&&(an?vt==null||vt(Gn):ft==null||ft(Gn))}return(0,Kt.useEffect)(function(){return De},[]),[sn,Me,ye.current,ue]}var Ne=14/15;function We(Tt,vt,ft){var gt=(0,Kt.useRef)(!1),At=(0,Kt.useRef)(0),ue=(0,Kt.useRef)(0),xe=(0,Kt.useRef)(null),ae=(0,Kt.useRef)(null),ye,Te=function(Gn){if(gt.current){var an=Math.ceil(Gn.touches[0].pageX),un=Math.ceil(Gn.touches[0].pageY),Bn=At.current-an,ai=ue.current-un,On=Math.abs(Bn)>Math.abs(ai);On?At.current=an:ue.current=un;var ji=ft(On,On?Bn:ai,!1,Gn);ji&&Gn.preventDefault(),clearInterval(ae.current),ji&&(ae.current=setInterval(function(){On?Bn*=Ne:ai*=Ne;var er=Math.floor(On?Bn:ai);(!ft(On,er,!0)||Math.abs(er)<=.1)&&clearInterval(ae.current)},16))}},De=function(){gt.current=!1,ye()},Me=function(Gn){ye(),Gn.touches.length===1&&!gt.current&&(gt.current=!0,At.current=Math.ceil(Gn.touches[0].pageX),ue.current=Math.ceil(Gn.touches[0].pageY),xe.current=Gn.target,xe.current.addEventListener("touchmove",Te,{passive:!1}),xe.current.addEventListener("touchend",De,{passive:!0}))};ye=function(){xe.current&&(xe.current.removeEventListener("touchmove",Te),xe.current.removeEventListener("touchend",De))},(0,oe.Z)(function(){return Tt&&vt.current.addEventListener("touchstart",Me,{passive:!0}),function(){var sn;(sn=vt.current)===null||sn===void 0||sn.removeEventListener("touchstart",Me),ye(),clearInterval(ae.current)}},[Tt])}function Re(Tt){return Math.floor(Math.pow(Tt,.5))}function ve(Tt,vt){var ft="touches"in Tt?Tt.touches[0]:Tt;return ft[vt?"pageX":"pageY"]-window[vt?"scrollX":"scrollY"]}function ne(Tt,vt,ft){Kt.useEffect(function(){var gt=vt.current;if(Tt&&gt){var At=!1,ue,xe,ae=function(){xt.Z.cancel(ue)},ye=function sn(){ae(),ue=(0,xt.Z)(function(){ft(xe),sn()})},Te=function(Gn){if(!Gn.target.draggable){var an=Gn;an._virtualHandled||(an._virtualHandled=!0,At=!0)}},De=function(){At=!1,ae()},Me=function(Gn){if(At){var an=ve(Gn,!1),un=gt.getBoundingClientRect(),Bn=un.top,ai=un.bottom;if(an<=Bn){var On=Bn-an;xe=-Re(On),ye()}else if(an>=ai){var ji=an-ai;xe=Re(ji),ye()}else ae()}};return gt.addEventListener("mousedown",Te),gt.ownerDocument.addEventListener("mouseup",De),gt.ownerDocument.addEventListener("mousemove",Me),function(){gt.removeEventListener("mousedown",Te),gt.ownerDocument.removeEventListener("mouseup",De),gt.ownerDocument.removeEventListener("mousemove",Me),ae()}}},[Tt])}var Ce=10;function bn(Tt,vt,ft,gt,At,ue,xe,ae){var ye=Kt.useRef(),Te=Kt.useState(null),De=(0,ee.Z)(Te,2),Me=De[0],sn=De[1];return(0,oe.Z)(function(){if(Me&&Me.times<Ce){if(!Tt.current){sn(function(Xt){return(0,re.Z)({},Xt)});return}ue();var Gn=Me.targetAlign,an=Me.originAlign,un=Me.index,Bn=Me.offset,ai=Tt.current.clientHeight,On=!1,ji=Gn,er=null;if(ai){for(var Ji=Gn||an,Fr=0,vr=0,so=0,Yr=Math.min(vt.length-1,un),Jr=0;Jr<=Yr;Jr+=1){var Lr=At(vt[Jr]);vr=Fr;var Zr=ft.get(Lr);so=vr+(Zr===void 0?gt:Zr),Fr=so}for(var oo=Ji==="top"?Bn:ai-Bn,Uo=Yr;Uo>=0;Uo-=1){var fs=At(vt[Uo]),eo=ft.get(fs);if(eo===void 0){On=!0;break}if(oo-=eo,oo<=0)break}switch(Ji){case"top":er=vr-Bn;break;case"bottom":er=so-ai+Bn;break;default:{var Os=Tt.current.scrollTop,yo=Os+ai;vr<Os?ji="top":so>yo&&(ji="bottom")}}er!==null&&xe(er),er!==Me.lastTop&&(On=!0)}On&&sn((0,re.Z)((0,re.Z)({},Me),{},{times:Me.times+1,targetAlign:ji,lastTop:er}))}},[Me,Tt.current]),function(Gn){if(Gn==null){ae();return}if(xt.Z.cancel(ye.current),typeof Gn=="number")xe(Gn);else if(Gn&&(0,ce.Z)(Gn)==="object"){var an,un=Gn.align;"index"in Gn?an=Gn.index:an=vt.findIndex(function(On){return At(On)===Gn.key});var Bn=Gn.offset,ai=Bn===void 0?0:Bn;sn({times:0,index:an,offset:ai,originAlign:un})}}}var Ln=Kt.forwardRef(function(Tt,vt){var ft=Tt.prefixCls,gt=Tt.rtl,At=Tt.scrollOffset,ue=Tt.scrollRange,xe=Tt.onStartMove,ae=Tt.onStopMove,ye=Tt.onScroll,Te=Tt.horizontal,De=Tt.spinSize,Me=Tt.containerSize,sn=Tt.style,Gn=Tt.thumbStyle,an=Tt.showScrollBar,un=Kt.useState(!1),Bn=(0,ee.Z)(un,2),ai=Bn[0],On=Bn[1],ji=Kt.useState(null),er=(0,ee.Z)(ji,2),Ji=er[0],Fr=er[1],vr=Kt.useState(null),so=(0,ee.Z)(vr,2),Yr=so[0],Jr=so[1],Lr=!gt,Zr=Kt.useRef(),oo=Kt.useRef(),Uo=Kt.useState(an),fs=(0,ee.Z)(Uo,2),eo=fs[0],Os=fs[1],yo=Kt.useRef(),Xt=function(){an===!0||an===!1||(clearTimeout(yo.current),Os(!0),yo.current=setTimeout(function(){Os(!1)},3e3))},ti=ue-Me||0,gs=Me-De||0,ia=Kt.useMemo(function(){if(At===0||ti===0)return 0;var ei=At/ti;return ei*gs},[At,ti,gs]),Zs=function(xi){xi.stopPropagation(),xi.preventDefault()},la=Kt.useRef({top:ia,dragging:ai,pageY:Ji,startTop:Yr});la.current={top:ia,dragging:ai,pageY:Ji,startTop:Yr};var Xs=function(xi){On(!0),Fr(ve(xi,Te)),Jr(la.current.top),xe(),xi.stopPropagation(),xi.preventDefault()};Kt.useEffect(function(){var ei=function(wn){wn.preventDefault()},xi=Zr.current,dn=oo.current;return xi.addEventListener("touchstart",ei,{passive:!1}),dn.addEventListener("touchstart",Xs,{passive:!1}),function(){xi.removeEventListener("touchstart",ei),dn.removeEventListener("touchstart",Xs)}},[]);var Rr=Kt.useRef();Rr.current=ti;var _r=Kt.useRef();_r.current=gs,Kt.useEffect(function(){if(ai){var ei,xi=function(wn){var Hn=la.current,Si=Hn.dragging,Di=Hn.pageY,tn=Hn.startTop;xt.Z.cancel(ei);var oi=Zr.current.getBoundingClientRect(),Li=Me/(Te?oi.width:oi.height);if(Si){var tr=(ve(wn,Te)-Di)*Li,kn=tn;!Lr&&Te?kn-=tr:kn+=tr;var ui=Rr.current,Sr=_r.current,cr=Sr?kn/Sr:0,zr=Math.ceil(cr*ui);zr=Math.max(zr,0),zr=Math.min(zr,ui),ei=(0,xt.Z)(function(){ye(zr,Te)})}},dn=function(){On(!1),ae()};return window.addEventListener("mousemove",xi,{passive:!0}),window.addEventListener("touchmove",xi,{passive:!0}),window.addEventListener("mouseup",dn,{passive:!0}),window.addEventListener("touchend",dn,{passive:!0}),function(){window.removeEventListener("mousemove",xi),window.removeEventListener("touchmove",xi),window.removeEventListener("mouseup",dn),window.removeEventListener("touchend",dn),xt.Z.cancel(ei)}}},[ai]),Kt.useEffect(function(){return Xt(),function(){clearTimeout(yo.current)}},[At]),Kt.useImperativeHandle(vt,function(){return{delayHidden:Xt}});var Dn="".concat(ft,"-scrollbar"),Nn={position:"absolute",visibility:eo?null:"hidden"},je={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Te?(Nn.height=8,Nn.left=0,Nn.right=0,Nn.bottom=0,je.height="100%",je.width=De,Lr?je.left=ia:je.right=ia):(Nn.width=8,Nn.top=0,Nn.bottom=0,Lr?Nn.right=0:Nn.left=0,je.width="100%",je.height=De,je.top=ia),Kt.createElement("div",{ref:Zr,className:jt()(Dn,(0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Dn,"-horizontal"),Te),"".concat(Dn,"-vertical"),!Te),"".concat(Dn,"-visible"),eo)),style:(0,re.Z)((0,re.Z)({},Nn),sn),onMouseDown:Zs,onMouseMove:Xt},Kt.createElement("div",{ref:oo,className:jt()("".concat(Dn,"-thumb"),(0,ke.Z)({},"".concat(Dn,"-thumb-moving"),ai)),style:(0,re.Z)((0,re.Z)({},je),Gn),onMouseDown:Xs}))}),Ze=Ln,Mn=20;function Vn(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ft=Tt/vt*Tt;return isNaN(ft)&&(ft=0),ft=Math.max(ft,Mn),Math.floor(ft)}var fi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Kn=[],Bi={overflowY:"auto",overflowAnchor:"none"};function en(Tt,vt){var ft=Tt.prefixCls,gt=ft===void 0?"rc-virtual-list":ft,At=Tt.className,ue=Tt.height,xe=Tt.itemHeight,ae=Tt.fullHeight,ye=ae===void 0?!0:ae,Te=Tt.style,De=Tt.data,Me=Tt.children,sn=Tt.itemKey,Gn=Tt.virtual,an=Tt.direction,un=Tt.scrollWidth,Bn=Tt.component,ai=Bn===void 0?"div":Bn,On=Tt.onScroll,ji=Tt.onVirtualScroll,er=Tt.onVisibleChange,Ji=Tt.innerProps,Fr=Tt.extraRender,vr=Tt.styles,so=Tt.showScrollBar,Yr=so===void 0?"optional":so,Jr=(0,Vt.Z)(Tt,fi),Lr=Kt.useCallback(function(ns){return typeof sn=="function"?sn(ns):ns==null?void 0:ns[sn]},[sn]),Zr=_e(Lr,null,null),oo=(0,ee.Z)(Zr,4),Uo=oo[0],fs=oo[1],eo=oo[2],Os=oo[3],yo=!!(Gn!==!1&&ue&&xe),Xt=Kt.useMemo(function(){return Object.values(eo.maps).reduce(function(ns,Yo){return ns+Yo},0)},[eo.id,eo.maps]),ti=yo&&De&&(Math.max(xe*De.length,Xt)>ue||!!un),gs=an==="rtl",ia=jt()(gt,(0,ke.Z)({},"".concat(gt,"-rtl"),gs),At),Zs=De||Kn,la=(0,Kt.useRef)(),Xs=(0,Kt.useRef)(),Rr=(0,Kt.useRef)(),_r=(0,Kt.useState)(0),Dn=(0,ee.Z)(_r,2),Nn=Dn[0],je=Dn[1],ei=(0,Kt.useState)(0),xi=(0,ee.Z)(ei,2),dn=xi[0],Fe=xi[1],wn=(0,Kt.useState)(!1),Hn=(0,ee.Z)(wn,2),Si=Hn[0],Di=Hn[1],tn=function(){Di(!0)},oi=function(){Di(!1)},Li={getKey:Lr};function tr(ns){je(function(Yo){var xo;typeof ns=="function"?xo=ns(Yo):xo=ns;var ks=mi(xo);return la.current.scrollTop=ks,ks})}var kn=(0,Kt.useRef)({start:0,end:Zs.length}),ui=(0,Kt.useRef)(),Sr=dt(Zs,Lr),cr=(0,ee.Z)(Sr,1),zr=cr[0];ui.current=zr;var dr=Kt.useMemo(function(){if(!yo)return{scrollHeight:void 0,start:0,end:Zs.length-1,offset:void 0};if(!ti){var ns;return{scrollHeight:((ns=Xs.current)===null||ns===void 0?void 0:ns.offsetHeight)||0,start:0,end:Zs.length-1,offset:void 0}}for(var Yo=0,xo,ks,fa,fo=Zs.length,co=0;co<fo;co+=1){var Vi=Zs[co],Lo=Lr(Vi),Bs=eo.get(Lo),Js=Yo+(Bs===void 0?xe:Bs);Js>=Nn&&xo===void 0&&(xo=co,ks=Yo),Js>Nn+ue&&fa===void 0&&(fa=co),Yo=Js}return xo===void 0&&(xo=0,ks=0,fa=Math.ceil(ue/xe)),fa===void 0&&(fa=Zs.length-1),fa=Math.min(fa+1,Zs.length-1),{scrollHeight:Yo,start:xo,end:fa,offset:ks}},[ti,yo,Nn,Zs,Os,ue]),Mr=dr.scrollHeight,nr=dr.start,Cr=dr.end,no=dr.offset;kn.current.start=nr,kn.current.end=Cr,Kt.useLayoutEffect(function(){var ns=eo.getRecord();if(ns.size===1){var Yo=Array.from(ns)[0],xo=Lr(Zs[nr]);if(xo===Yo){var ks=eo.get(Yo),fa=ks-xe;tr(function(fo){return fo+fa})}}eo.resetRecord()},[Mr]);var Ro=Kt.useState({width:0,height:ue}),yi=(0,ee.Z)(Ro,2),Po=yi[0],ws=yi[1],Zo=function(Yo){ws({width:Yo.offsetWidth,height:Yo.offsetHeight})},pi=(0,Kt.useRef)(),or=(0,Kt.useRef)(),Hr=Kt.useMemo(function(){return Vn(Po.width,un)},[Po.width,un]),uo=Kt.useMemo(function(){return Vn(Po.height,Mr)},[Po.height,Mr]),to=Mr-ue,Fo=(0,Kt.useRef)(to);Fo.current=to;function mi(ns){var Yo=ns;return Number.isNaN(Fo.current)||(Yo=Math.min(Yo,Fo.current)),Yo=Math.max(Yo,0),Yo}var wo=Nn<=0,Dr=Nn>=to,Br=dn<=0,Pi=dn>=un,bo=Gt(wo,Dr,Br,Pi),Ci=function(){return{x:gs?-dn:dn,y:Nn}},Xo=(0,Kt.useRef)(Ci()),ra=(0,Pt.useEvent)(function(ns){if(ji){var Yo=(0,re.Z)((0,re.Z)({},Ci()),ns);(Xo.current.x!==Yo.x||Xo.current.y!==Yo.y)&&(ji(Yo),Xo.current=Yo)}});function xs(ns,Yo){var xo=ns;Yo?((0,$t.flushSync)(function(){Fe(xo)}),ra()):tr(xo)}function va(ns){var Yo=ns.currentTarget.scrollTop;Yo!==Nn&&tr(Yo),On==null||On(ns),ra()}var Gs=function(Yo){var xo=Yo,ks=un?un-Po.width:0;return xo=Math.max(xo,0),xo=Math.min(xo,ks),xo},Io=(0,Pt.useEvent)(function(ns,Yo){Yo?((0,$t.flushSync)(function(){Fe(function(xo){var ks=xo+(gs?-ns:ns);return Gs(ks)})}),ra()):tr(function(xo){var ks=xo+ns;return ks})}),_o=se(yo,wo,Dr,Br,Pi,!!un,Io),As=(0,ee.Z)(_o,2),ls=As[0],wr=As[1];We(yo,la,function(ns,Yo,xo,ks){var fa=ks;return bo(ns,Yo,xo)?!1:!fa||!fa._virtualHandled?(fa&&(fa._virtualHandled=!0),ls({preventDefault:function(){},deltaX:ns?Yo:0,deltaY:ns?0:Yo}),!0):!1}),ne(ti,la,function(ns){tr(function(Yo){return Yo+ns})}),(0,oe.Z)(function(){function ns(xo){var ks=wo&&xo.detail<0,fa=Dr&&xo.detail>0;yo&&!ks&&!fa&&xo.preventDefault()}var Yo=la.current;return Yo.addEventListener("wheel",ls,{passive:!1}),Yo.addEventListener("DOMMouseScroll",wr,{passive:!0}),Yo.addEventListener("MozMousePixelScroll",ns,{passive:!1}),function(){Yo.removeEventListener("wheel",ls),Yo.removeEventListener("DOMMouseScroll",wr),Yo.removeEventListener("MozMousePixelScroll",ns)}},[yo,wo,Dr]),(0,oe.Z)(function(){if(un){var ns=Gs(dn);Fe(ns),ra({x:ns})}},[Po.width,un]);var Ie=function(){var Yo,xo;(Yo=pi.current)===null||Yo===void 0||Yo.delayHidden(),(xo=or.current)===null||xo===void 0||xo.delayHidden()},cs=bn(la,Zs,eo,xe,Lr,function(){return fs(!0)},tr,Ie);Kt.useImperativeHandle(vt,function(){return{nativeElement:Rr.current,getScrollInfo:Ci,scrollTo:function(Yo){function xo(ks){return ks&&(0,ce.Z)(ks)==="object"&&("left"in ks||"top"in ks)}xo(Yo)?(Yo.left!==void 0&&Fe(Gs(Yo.left)),cs(Yo.top)):cs(Yo)}}}),(0,oe.Z)(function(){if(er){var ns=Zs.slice(nr,Cr+1);er(ns,Zs)}},[nr,Cr,Zs]);var oa=le(Zs,Lr,eo,xe),ll=Fr==null?void 0:Fr({start:nr,end:Cr,virtual:ti,offsetX:dn,offsetY:no,rtl:gs,getSize:oa}),Ll=lt(Zs,nr,Cr,un,dn,Uo,Me,Li),fl=null;ue&&(fl=(0,re.Z)((0,ke.Z)({},ye?"height":"maxHeight",ue),Bi),yo&&(fl.overflowY="hidden",un&&(fl.overflowX="hidden"),Si&&(fl.pointerEvents="none")));var _l={};return gs&&(_l.dir="rtl"),Kt.createElement("div",(0,Lt.Z)({ref:Rr,style:(0,re.Z)((0,re.Z)({},Te),{},{position:"relative"}),className:ia},_l,Jr),Kt.createElement(te.Z,{onResize:Zo},Kt.createElement(ai,{className:"".concat(gt,"-holder"),style:fl,ref:la,onScroll:va,onMouseEnter:Ie},Kt.createElement(et,{prefixCls:gt,height:Mr,offsetX:dn,offsetY:no,scrollWidth:un,onInnerResize:fs,ref:Xs,innerProps:Ji,rtl:gs,extra:ll},Ll))),ti&&Mr>ue&&Kt.createElement(Ze,{ref:pi,prefixCls:gt,scrollOffset:Nn,scrollRange:Mr,rtl:gs,onScroll:xs,onStartMove:tn,onStopMove:oi,spinSize:uo,containerSize:Po.height,style:vr==null?void 0:vr.verticalScrollBar,thumbStyle:vr==null?void 0:vr.verticalScrollBarThumb,showScrollBar:Yr}),ti&&un>Po.width&&Kt.createElement(Ze,{ref:or,prefixCls:gt,scrollOffset:dn,scrollRange:un,rtl:gs,onScroll:xs,onStartMove:tn,onStopMove:oi,spinSize:Hr,containerSize:Po.width,horizontal:!0,style:vr==null?void 0:vr.horizontalScrollBar,thumbStyle:vr==null?void 0:vr.horizontalScrollBarThumb,showScrollBar:Yr}))}var Fi=Kt.forwardRef(en);Fi.displayName="List";var Oi=Fi,Ot=Oi},2637:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Object.defineProperty(Cn,"DraggableCore",{enumerable:!0,get:function(){return jt.default}}),Cn.default=void 0;var Lt=Kt(Ft(59301)),ce=Pt(Ft(12708)),re=Pt(Ft(4676)),ke=Pt(Ft(57780)),ee=Ft(13957),Vt=Ft(60976),Mt=Ft(36641),jt=Pt(Ft(80486)),te=Pt(Ft(94187));function Pt(rt){return rt&&rt.__esModule?rt:{default:rt}}function oe(rt){if(typeof WeakMap!="function")return null;var ht=new WeakMap,dt=new WeakMap;return(oe=function(xt){return xt?dt:ht})(rt)}function Kt(rt,ht){if(!ht&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var dt=oe(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 Gt=Nt?Object.getOwnPropertyDescriptor(rt,Ut):null;Gt&&(Gt.get||Gt.set)?Object.defineProperty(xt,Ut,Gt):xt[Ut]=rt[Ut]}return xt.default=rt,dt&&dt.set(rt,xt),xt}function $t(){return $t=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},$t.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,te.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,te.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,te.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:se,y:le}=Ut;Ut.x+=this.state.slackX,Ut.y+=this.state.slackY;const[Ae,Pe]=(0,Vt.getBoundPosition)(this,Ut.x,Ut.y);Ut.x=Ae,Ut.y=Pe,Ut.slackX=this.state.slackX+(se-Ut.x),Ut.slackY=this.state.slackY+(le-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,te.default)("Draggable: onDragStop: %j",xt);const Ut={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:se,y:le}=this.props.position;Ut.x=se,Ut.y=le}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:Gt,defaultClassNameDragged:se,position:le,positionOffset:Ae,scale:Pe}=ve,qt=Pw(ve,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let ze={},Wt=null;const _e=!!!le||this.state.dragging,Ne=le||Nt,We={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)(We,Ae):ze=(0,ee.createCSSTransform)(We,Ae);const Re=(0,ke.default)(xt.props.className||"",Ut,{[Gt]:this.state.dragging,[se]:this.state.dragged});return Lt.createElement(jt.default,$t({},qt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Lt.cloneElement(Lt.Children.only(xt),{className:Re,style:xg(xg({},xt.props.style),ze),transform:Wt}))}}Cn.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,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Lt=Pt(Ft(59301)),ce=jt(Ft(12708)),re=jt(Ft(4676)),ke=Ft(13957),ee=Ft(60976),Vt=Ft(36641),Mt=jt(Ft(94187));function jt(lt){return lt&&lt.__esModule?lt:{default:lt}}function te(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ht=new WeakMap;return(te=function(dt){return dt?ht:rt})(lt)}function Pt(lt,rt){if(!rt&&lt&&lt.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ht=te(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 oe(lt,rt,ht){return rt=Kt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ht,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ht,lt}function Kt(lt){var rt=$t(lt,"string");return typeof rt=="symbol"?rt:String(rt)}function $t(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),oe(this,"dragging",!1),oe(this,"lastX",NaN),oe(this,"lastY",NaN),oe(this,"touchIdentifier",null),oe(this,"mounted",!1),oe(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,ke.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ht)||this.props.cancel&&(0,ke.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ht))return;rt.type==="touchstart"&&rt.preventDefault();const xt=(0,ke.getTouchIdentifier)(rt);this.touchIdentifier=xt;const Nt=(0,ee.getControlPosition)(rt,xt,this);if(Nt==null)return;const{x:Ut,y:Gt}=Nt,se=(0,ee.createCoreData)(this,Ut,Gt);(0,Mt.default)("DraggableCore: handleDragStart: %j",se),(0,Mt.default)("calling",this.props.onStart),!(this.props.onStart(rt,se)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ke.addUserSelectStyles)(dt),this.dragging=!0,this.lastX=Ut,this.lastY=Gt,(0,ke.addEvent)(dt,et.move,this.handleDrag),(0,ke.addEvent)(dt,et.stop,this.handleDragStop))}),oe(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 Gt=dt-this.lastX,se=xt-this.lastY;if([Gt,se]=(0,ee.snapToGrid)(this.props.grid,Gt,se),!Gt&&!se)return;dt=this.lastX+Gt,xt=this.lastY+se}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(Gt){const se=document.createEvent("MouseEvents");se.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(se)}return}this.lastX=dt,this.lastY=xt}),oe(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 se=dt-this.lastX||0,le=xt-this.lastY||0;[se,le]=(0,ee.snapToGrid)(this.props.grid,se,le),dt=this.lastX+se,xt=this.lastY+le}const Nt=(0,ee.createCoreData)(this,dt,xt);if(this.props.onStop(rt,Nt)===!1||this.mounted===!1)return!1;const Gt=this.findDOMNode();Gt&&this.props.enableUserSelectHack&&(0,ke.removeUserSelectStyles)(Gt.ownerDocument),(0,Mt.default)("DraggableCore: handleDragStop: %j",Nt),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Gt&&((0,Mt.default)("DraggableCore: Removing handlers"),(0,ke.removeEvent)(Gt.ownerDocument,et.move,this.handleDrag),(0,ke.removeEvent)(Gt.ownerDocument,et.stop,this.handleDragStop))}),oe(this,"onMouseDown",rt=>(et=Ct.mouse,this.handleDragStart(rt))),oe(this,"onMouseUp",rt=>(et=Ct.mouse,this.handleDragStop(rt))),oe(this,"onTouchStart",rt=>(et=Ct.touch,this.handleDragStart(rt))),oe(this,"onTouchEnd",rt=>(et=Ct.touch,this.handleDragStop(rt)))}componentDidMount(){this.mounted=!0;const rt=this.findDOMNode();rt&&(0,ke.addEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ht}=rt;(0,ke.removeEvent)(ht,Ct.mouse.move,this.handleDrag),(0,ke.removeEvent)(ht,Ct.touch.move,this.handleDrag),(0,ke.removeEvent)(ht,Ct.mouse.stop,this.handleDragStop),(0,ke.removeEvent)(ht,Ct.touch.stop,this.handleDragStop),(0,ke.removeEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ke.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})}}Cn.default=tt,oe(tt,"displayName","DraggableCore"),oe(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}),oe(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(hi,Cn,Ft){"use strict";const{default:Lt,DraggableCore:ce}=Ft(2637);hi.exports=Lt,hi.exports.default=Lt,hi.exports.DraggableCore=ce},13957:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.addClassName=Nt,Cn.addEvent=jt,Cn.addUserSelectStyles=dt,Cn.createCSSTransform=et,Cn.createSVGTransform=tt,Cn.getTouch=rt,Cn.getTouchIdentifier=ht,Cn.getTranslation=lt,Cn.innerHeight=Kt,Cn.innerWidth=$t,Cn.matchesSelector=Vt,Cn.matchesSelectorAndParentsTo=Mt,Cn.offsetXYFromParent=Ct,Cn.outerHeight=Pt,Cn.outerWidth=oe,Cn.removeClassName=Ut,Cn.removeEvent=te,Cn.removeUserSelectStyles=xt;var Lt=Ft(36641),ce=ke(Ft(32092));function re(Gt){if(typeof WeakMap!="function")return null;var se=new WeakMap,le=new WeakMap;return(re=function(Ae){return Ae?le:se})(Gt)}function ke(Gt,se){if(!se&&Gt&&Gt.__esModule)return Gt;if(Gt===null||typeof Gt!="object"&&typeof Gt!="function")return{default:Gt};var le=re(se);if(le&&le.has(Gt))return le.get(Gt);var Ae={},Pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qt in Gt)if(qt!=="default"&&Object.prototype.hasOwnProperty.call(Gt,qt)){var ze=Pe?Object.getOwnPropertyDescriptor(Gt,qt):null;ze&&(ze.get||ze.set)?Object.defineProperty(Ae,qt,ze):Ae[qt]=Gt[qt]}return Ae.default=Gt,le&&le.set(Gt,Ae),Ae}let ee="";function Vt(Gt,se){return ee||(ee=(0,Lt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(le){return(0,Lt.isFunction)(Gt[le])})),(0,Lt.isFunction)(Gt[ee])?Gt[ee](se):!1}function Mt(Gt,se,le){let Ae=Gt;do{if(Vt(Ae,se))return!0;if(Ae===le)return!1;Ae=Ae.parentNode}while(Ae);return!1}function jt(Gt,se,le,Ae){if(!Gt)return;const Pe=xg({capture:!0},Ae);Gt.addEventListener?Gt.addEventListener(se,le,Pe):Gt.attachEvent?Gt.attachEvent("on"+se,le):Gt["on"+se]=le}function te(Gt,se,le,Ae){if(!Gt)return;const Pe=xg({capture:!0},Ae);Gt.removeEventListener?Gt.removeEventListener(se,le,Pe):Gt.detachEvent?Gt.detachEvent("on"+se,le):Gt["on"+se]=null}function Pt(Gt){let se=Gt.clientHeight;const le=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se+=(0,Lt.int)(le.borderTopWidth),se+=(0,Lt.int)(le.borderBottomWidth),se}function oe(Gt){let se=Gt.clientWidth;const le=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se+=(0,Lt.int)(le.borderLeftWidth),se+=(0,Lt.int)(le.borderRightWidth),se}function Kt(Gt){let se=Gt.clientHeight;const le=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se-=(0,Lt.int)(le.paddingTop),se-=(0,Lt.int)(le.paddingBottom),se}function $t(Gt){let se=Gt.clientWidth;const le=Gt.ownerDocument.defaultView.getComputedStyle(Gt);return se-=(0,Lt.int)(le.paddingLeft),se-=(0,Lt.int)(le.paddingRight),se}function Ct(Gt,se,le){const Pe=se===se.ownerDocument.body?{left:0,top:0}:se.getBoundingClientRect(),qt=(Gt.clientX+se.scrollLeft-Pe.left)/le,ze=(Gt.clientY+se.scrollTop-Pe.top)/le;return{x:qt,y:ze}}function et(Gt,se){const le=lt(Gt,se,"px");return{[(0,ce.browserPrefixToKey)("transform",ce.default)]:le}}function tt(Gt,se){return lt(Gt,se,"")}function lt(Gt,se,le){let{x:Ae,y:Pe}=Gt,qt="translate(".concat(Ae).concat(le,",").concat(Pe).concat(le,")");if(se){const ze="".concat(typeof se.x=="string"?se.x:se.x+le),Wt="".concat(typeof se.y=="string"?se.y:se.y+le);qt="translate(".concat(ze,", ").concat(Wt,")")+qt}return qt}function rt(Gt,se){return Gt.targetTouches&&(0,Lt.findInArray)(Gt.targetTouches,le=>se===le.identifier)||Gt.changedTouches&&(0,Lt.findInArray)(Gt.changedTouches,le=>se===le.identifier)}function ht(Gt){if(Gt.targetTouches&&Gt.targetTouches[0])return Gt.targetTouches[0].identifier;if(Gt.changedTouches&&Gt.changedTouches[0])return Gt.changedTouches[0].identifier}function dt(Gt){if(!Gt)return;let se=Gt.getElementById("react-draggable-style-el");se||(se=Gt.createElement("style"),se.type="text/css",se.id="react-draggable-style-el",se.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,se.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,Gt.getElementsByTagName("head")[0].appendChild(se)),Gt.body&&Nt(Gt.body,"react-draggable-transparent-selection")}function xt(Gt){if(Gt)try{if(Gt.body&&Ut(Gt.body,"react-draggable-transparent-selection"),Gt.selection)Gt.selection.empty();else{const se=(Gt.defaultView||window).getSelection();se&&se.type!=="Caret"&&se.removeAllRanges()}}catch(se){}}function Nt(Gt,se){Gt.classList?Gt.classList.add(se):Gt.className.match(new RegExp("(?:^|\\s)".concat(se,"(?!\\S)")))||(Gt.className+=" ".concat(se))}function Ut(Gt,se){Gt.classList?Gt.classList.remove(se):Gt.className=Gt.className.replace(new RegExp("(?:^|\\s)".concat(se,"(?!\\S)"),"g"),"")}},32092:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.browserPrefixToKey=ce,Cn.browserPrefixToStyle=re,Cn.default=void 0,Cn.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 te=0;te<Ft.length;te++)if(ce(Mt,Ft[te])in jt)return Ft[te];return""}function ce(Vt,Mt){return Mt?"".concat(Mt).concat(ke(Vt)):Vt}function re(Vt,Mt){return Mt?"-".concat(Mt.toLowerCase(),"-").concat(Vt):Vt}function ke(Vt){let Mt="",jt=!0;for(let te=0;te<Vt.length;te++)jt?(Mt+=Vt[te].toUpperCase(),jt=!1):Vt[te]==="-"?jt=!0:Mt+=Vt[te];return Mt}var ee=Cn.default=Lt()},94187:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=Ft;function Ft(){}},60976:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.canDragX=ee,Cn.canDragY=Vt,Cn.createCoreData=jt,Cn.createDraggableData=te,Cn.getBoundPosition=re,Cn.getControlPosition=Mt,Cn.snapToGrid=ke;var Lt=Ft(36641),ce=Ft(13957);function re(Kt,$t,Ct){if(!Kt.props.bounds)return[$t,Ct];let{bounds:et}=Kt.props;et=typeof et=="string"?et:Pt(et);const tt=oe(Kt);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)&&($t=Math.min($t,et.right)),(0,Lt.isNum)(et.bottom)&&(Ct=Math.min(Ct,et.bottom)),(0,Lt.isNum)(et.left)&&($t=Math.max($t,et.left)),(0,Lt.isNum)(et.top)&&(Ct=Math.max(Ct,et.top)),[$t,Ct]}function ke(Kt,$t,Ct){const et=Math.round($t/Kt[0])*Kt[0],tt=Math.round(Ct/Kt[1])*Kt[1];return[et,tt]}function ee(Kt){return Kt.props.axis==="both"||Kt.props.axis==="x"}function Vt(Kt){return Kt.props.axis==="both"||Kt.props.axis==="y"}function Mt(Kt,$t,Ct){const et=typeof $t=="number"?(0,ce.getTouch)(Kt,$t):null;if(typeof $t=="number"&&!et)return null;const tt=oe(Ct),lt=Ct.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ce.offsetXYFromParent)(et||Kt,lt,Ct.props.scale)}function jt(Kt,$t,Ct){const et=!(0,Lt.isNum)(Kt.lastX),tt=oe(Kt);return et?{node:tt,deltaX:0,deltaY:0,lastX:$t,lastY:Ct,x:$t,y:Ct}:{node:tt,deltaX:$t-Kt.lastX,deltaY:Ct-Kt.lastY,lastX:Kt.lastX,lastY:Kt.lastY,x:$t,y:Ct}}function te(Kt,$t){const Ct=Kt.props.scale;return{node:$t.node,x:Kt.state.x+$t.deltaX/Ct,y:Kt.state.y+$t.deltaY/Ct,deltaX:$t.deltaX/Ct,deltaY:$t.deltaY/Ct,lastX:Kt.state.x,lastY:Kt.state.y}}function Pt(Kt){return{left:Kt.left,top:Kt.top,right:Kt.right,bottom:Kt.bottom}}function oe(Kt){const $t=Kt.findDOMNode();if(!$t)throw new Error("<DraggableCore>: Unmounted during event!");return $t}},36641:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.dontSetMe=ke,Cn.findInArray=Ft,Cn.int=re,Cn.isFunction=Lt,Cn.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 ke(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,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.SizeSensorId=Cn.SensorTabIndex=Cn.SensorClassName=void 0;var Ft="size-sensor-id";Cn.SizeSensorId=Ft;var Lt="size-sensor-object";Cn.SensorClassName=Lt;var ce="-1";Cn.SensorTabIndex=ce},79301:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Ft=function(ce){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,ke=null;return function(){for(var ee=this,Vt=arguments.length,Mt=new Array(Vt),jt=0;jt<Vt;jt++)Mt[jt]=arguments[jt];clearTimeout(ke),ke=setTimeout(function(){ce.apply(ee,Mt)},re)}};Cn.default=Ft},79789:function(hi,Cn){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var Ft=1,Lt=function(){return"".concat(Ft++)};Cn.default=Lt},47242:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.ver=Cn.clear=Cn.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)}};Cn.bind=ce;var re=function(Vt){var Mt=(0,Lt.getSensor)(Vt);(0,Lt.removeSensor)(Mt)};Cn.clear=re;var ke="1.0.2";Cn.ver=ke},95270:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.removeSensor=Cn.getSensor=Cn.Sensors=void 0;var Lt=ke(Ft(79789)),ce=Ft(57829),re=Ft(27774);function ke(te){return te&&te.__esModule?te:{default:te}}var ee={};Cn.Sensors=ee;function Vt(te){te&&ee[te]&&delete ee[te]}var Mt=function(Pt){var oe=Pt.getAttribute(re.SizeSensorId);if(oe&&ee[oe])return ee[oe];var Kt=(0,Lt.default)();Pt.setAttribute(re.SizeSensorId,Kt);var $t=(0,ce.createSensor)(Pt,function(){return Vt(Kt)});return ee[Kt]=$t,$t};Cn.getSensor=Mt;var jt=function(Pt){var oe=Pt.element.getAttribute(re.SizeSensorId);Pt.destroy(),Vt(oe)};Cn.removeSensor=jt},57829:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Lt=Ft(20953),ce=Ft(55202),re=typeof ResizeObserver!="undefined"?ce.createSensor:Lt.createSensor;Cn.createSensor=re},20953:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Lt=re(Ft(79301)),ce=Ft(27774);function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var ke=function(Vt,Mt){var jt=void 0,te=[],Pt=function(){getComputedStyle(Vt).position==="static"&&(Vt.style.position="relative");var tt=document.createElement("object");return tt.onload=function(){tt.contentDocument.defaultView.addEventListener("resize",oe),oe()},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},oe=(0,Lt.default)(function(){te.forEach(function(et){et(Vt)})}),Kt=function(tt){jt||(jt=Pt()),te.indexOf(tt)===-1&&te.push(tt)},$t=function(){jt&&jt.parentNode&&(jt.contentDocument&&jt.contentDocument.defaultView.removeEventListener("resize",oe),jt.parentNode.removeChild(jt),Vt.removeAttribute(ce.SizeSensorId),jt=void 0,te=[],Mt&&Mt())},Ct=function(tt){var lt=te.indexOf(tt);lt!==-1&&te.splice(lt,1),te.length===0&&jt&&$t()};return{element:Vt,bind:Kt,destroy:$t,unbind:Ct}};Cn.createSensor=ke},55202:function(hi,Cn,Ft){"use strict";Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.createSensor=void 0;var Lt=Ft(27774),ce=re(Ft(79301));function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var ke=function(Vt,Mt){var jt=void 0,te=[],Pt=(0,ce.default)(function(){te.forEach(function(et){et(Vt)})}),oe=function(){var tt=new ResizeObserver(Pt);return tt.observe(Vt),Pt(),tt},Kt=function(tt){jt||(jt=oe()),te.indexOf(tt)===-1&&te.push(tt)},$t=function(){jt.disconnect(),te=[],jt=void 0,Vt.removeAttribute(Lt.SizeSensorId),Mt&&Mt()},Ct=function(tt){var lt=te.indexOf(tt);lt!==-1&&te.splice(lt,1),te.length===0&&jt&&$t()};return{element:Vt,bind:Kt,destroy:$t,unbind:Ct}};Cn.createSensor=ke},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,Cn,Ft){"use strict";Ft.d(Cn,{Z:function(){return jt}});const Lt=te=>typeof te=="object"&&te!=null&&te.nodeType===1,ce=(te,Pt)=>(!Pt||te!=="hidden")&&te!=="visible"&&te!=="clip",re=(te,Pt)=>{if(te.clientHeight<te.scrollHeight||te.clientWidth<te.scrollWidth){const oe=getComputedStyle(te,null);return ce(oe.overflowY,Pt)||ce(oe.overflowX,Pt)||(Kt=>{const $t=(Ct=>{if(!Ct.ownerDocument||!Ct.ownerDocument.defaultView)return null;try{return Ct.ownerDocument.defaultView.frameElement}catch(et){return null}})(Kt);return!!$t&&($t.clientHeight<Kt.scrollHeight||$t.clientWidth<Kt.scrollWidth)})(te)}return!1},ke=(te,Pt,oe,Kt,$t,Ct,et,tt)=>Ct<te&&et>Pt||Ct>te&&et<Pt?0:Ct<=te&&tt<=oe||et>=Pt&&tt>=oe?Ct-te-Kt:et>Pt&&tt<oe||Ct<te&&tt>oe?et-Pt+$t:0,ee=te=>{const Pt=te.parentElement;return Pt==null?te.getRootNode().host||null:Pt},Vt=(te,Pt)=>{var oe,Kt,$t,Ct;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ht}=Pt,dt=typeof rt=="function"?rt:Ln=>Ln!==rt;if(!Lt(te))throw new TypeError("Invalid target");const xt=document.scrollingElement||document.documentElement,Nt=[];let Ut=te;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 Gt=(Kt=(oe=window.visualViewport)==null?void 0:oe.width)!=null?Kt:innerWidth,se=(Ct=($t=window.visualViewport)==null?void 0:$t.height)!=null?Ct:innerHeight,{scrollX:le,scrollY:Ae}=window,{height:Pe,width:qt,top:ze,right:Wt,bottom:Ge,left:_e}=te.getBoundingClientRect(),{top:Ne,right:We,bottom:Re,left:ve}=(Ln=>{const Ze=window.getComputedStyle(Ln);return{top:parseFloat(Ze.scrollMarginTop)||0,right:parseFloat(Ze.scrollMarginRight)||0,bottom:parseFloat(Ze.scrollMarginBottom)||0,left:parseFloat(Ze.scrollMarginLeft)||0}})(te);let ne=tt==="start"||tt==="nearest"?ze-Ne:tt==="end"?Ge+Re:ze+Pe/2-Ne+Re,Ce=lt==="center"?_e+qt/2-ve+We:lt==="end"?Wt+We:_e-ve;const bn=[];for(let Ln=0;Ln<Nt.length;Ln++){const Ze=Nt[Ln],{height:Mn,width:Vn,top:fi,right:Kn,bottom:Bi,left:en}=Ze.getBoundingClientRect();if(et==="if-needed"&&ze>=0&&_e>=0&&Ge<=se&&Wt<=Gt&&(Ze===xt&&!re(Ze)||ze>=fi&&Ge<=Bi&&_e>=en&&Wt<=Kn))return bn;const Fi=getComputedStyle(Ze),Oi=parseInt(Fi.borderLeftWidth,10),Ot=parseInt(Fi.borderTopWidth,10),Tt=parseInt(Fi.borderRightWidth,10),vt=parseInt(Fi.borderBottomWidth,10);let ft=0,gt=0;const At="offsetWidth"in Ze?Ze.offsetWidth-Ze.clientWidth-Oi-Tt:0,ue="offsetHeight"in Ze?Ze.offsetHeight-Ze.clientHeight-Ot-vt:0,xe="offsetWidth"in Ze?Ze.offsetWidth===0?0:Vn/Ze.offsetWidth:0,ae="offsetHeight"in Ze?Ze.offsetHeight===0?0:Mn/Ze.offsetHeight:0;if(xt===Ze)ft=tt==="start"?ne:tt==="end"?ne-se:tt==="nearest"?ke(Ae,Ae+se,se,Ot,vt,Ae+ne,Ae+ne+Pe,Pe):ne-se/2,gt=lt==="start"?Ce:lt==="center"?Ce-Gt/2:lt==="end"?Ce-Gt:ke(le,le+Gt,Gt,Oi,Tt,le+Ce,le+Ce+qt,qt),ft=Math.max(0,ft+Ae),gt=Math.max(0,gt+le);else{ft=tt==="start"?ne-fi-Ot:tt==="end"?ne-Bi+vt+ue:tt==="nearest"?ke(fi,Bi,Mn,Ot,vt+ue,ne,ne+Pe,Pe):ne-(fi+Mn/2)+ue/2,gt=lt==="start"?Ce-en-Oi:lt==="center"?Ce-(en+Vn/2)+At/2:lt==="end"?Ce-Kn+Tt+At:ke(en,Kn,Vn,Oi,Tt+At,Ce,Ce+qt,qt);const{scrollLeft:ye,scrollTop:Te}=Ze;ft=ae===0?0:Math.max(0,Math.min(Te+ft/ae,Ze.scrollHeight-Mn/ae+ue)),gt=xe===0?0:Math.max(0,Math.min(ye+gt/xe,Ze.scrollWidth-Vn/xe+At)),ne+=Te-ft,Ce+=ye-gt}bn.push({el:Ze,top:ft,left:gt})}return bn},Mt=te=>te===!1?{block:"end",inline:"nearest"}:(Pt=>Pt===Object(Pt)&&Object.keys(Pt).length!==0)(te)?te:{block:"start",inline:"nearest"};function jt(te,Pt){if(!te.isConnected||!($t=>{let Ct=$t;for(;Ct&&Ct.parentNode;){if(Ct.parentNode===document)return!0;Ct=Ct.parentNode instanceof ShadowRoot?Ct.parentNode.host:Ct.parentNode}return!1})(te))return;const oe=($t=>{const Ct=window.getComputedStyle($t);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(te);if(($t=>typeof $t=="object"&&typeof $t.behavior=="function")(Pt))return Pt.behavior(Vt(te,Pt));const Kt=typeof Pt=="boolean"||Pt==null?void 0:Pt.behavior;for(const{el:$t,top:Ct,left:et}of Vt(te,Mt(Pt))){const tt=Ct-oe.top+oe.bottom,lt=et-oe.left+oe.right;$t.scroll({top:tt,left:lt,behavior:Kt})}}}}]);
}());